/*
Theme Name: Lightning Child
Theme URI:
Template: lightning
Description:
Author:
Tags:
Version: 0.6.1
*/

/* CSS for Lightning Child Theme */

/*
colors
--wp--preset--color--vk-color-primary
--wp--preset--color--vk-color-primary-vivid
--wp--preset--color--vk-color-custom-2


*/

:root {
  --base-font-color: hsl(0, 0%, 25%);
}

body {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--base-font-color);
}

h2 {
  position: relative;
  font-weight: 600;
  padding: 8px;
  border-left: solid 4px var(--wp--preset--color--vk-color-primary);
}

h3 {
  position: relative;
  font-weight: 500;
  padding: 8px !important;
  border-bottom: solid 2px var(--wp--preset--color--vk-color-primary) !important;
}

a {
  text-decoration: none;
  color: var(--vk-color-text-body);
}

li::marker {
  color: var(--wp--preset--color--vk-color-primary);
}

/* global */
.custom-base-btn a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: right;
  border-color: var(--wp--preset--color--vk-color-primary);
  border-radius: 16px;
  font-weight: 500;
  font-size: 1.2rem;
  transition: 0.5s;
}

/* news */
.wp-block-post-terms {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 999px;
  border: solid 2px var(--wp--preset--color--vk-color-primary);
}

/* header */
.site-header {
  position: absolute;
  background-color: rgba(200, 200, 200, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.post-template-default .site-header,
.blog .site-header,
.privacy-policy .site-header {
  position: relative;
}

header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.site-header-logo {
  display: block !important;
}

.menu-item {
  position: relative;
}
.menu-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0; /* 初期状態では非表示 */
  height: 2px;
  background-color: var(--wp--preset--color--vk-color-primary-vivid);
  transition: width 0.5s ease; /* アニメーション効果 */
}
.menu-item:hover::after {
  width: 100%;
}

.page-header {
  display: none;
}

.contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 8px;
  gap: 8px;
  width: 300px;
}
.contacts-top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  width: 100%;
}
.contacts-tel {
  font-size: 1.5rem;
  color: var(--wp--preset--color--vk-color-primary-dark);
}

.contacts a:hover {
  color: var(--wp--preset--color--vk-color-primary) !important;
  transition: 0.5s;
}

.contacts-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 16px;
  font-size: 0.8rem;
}
.contacts-bottom a {
  color: var(--vk-color-text-body);
}
.contacts-sp {
  display: none;
}

@media (max-width: 768px) {
  header .contacts {
    display: none;
  }
  .contacts-sp {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
  }
  .contacts-sp-tel a {
    font-size: 1rem;
    color: var(--vk-color-text-body);
  }
}

/* top video and sp*/
.top-video {
  position: relative;
  width: 100svw;
  height: 100svh;
  overflow: hidden;
}
.top-video .top-video-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}
.top-sp-content {
  display: none;
}
@media (max-width: 768px) {
  .top-video-content {
    display: none;
  }
  .top-sp-content {
    display: block;
    width: auto;
    height: 100svh;
  }
  .top-sp-content img {
    min-width: 200svw;
    height: 100svh;
    object-fit: cover;
  }
}

/* page top */

.custom-top {
  --left-size: min(5.555vw, 80px);
  --h1-radius: 16px;
  --height-size: 700px;
  --h1-height: 150px;
  --custom-img-height: 1000px;
  --h1-background: hsl(0, 0%, 100%);
  position: relative;
  height: var(--height-size);
  width: 100vw;
  background-color: var(--h1-background);
  overflow: hidden;
}
@media (max-width: 768px) {
  .custom-top {
    --height-size: 250px;
  }
}
.custom-top img {
  display: block;
  position: absolute;
  top: calc((var(--height-size) - var(--custom-img-height)) / 2);
  left: var(--left-size);
  height: var(--custom-img-height);
  width: auto;
  object-fit: cover;
}
@media screen and (max-width: 768px) {
  .custom-top img {
    top: 0%;
  }
}

.custom-top .custom-title {
  position: absolute;
  top: calc(100% - var(--h1-height));
  left: var(--left-size);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  width: calc(var(--h1-height) * 2);
  height: var(--h1-height);
  background-color: var(--h1-background);
  border-top-right-radius: var(--h1-radius);
  text-align: center;
}
.custom-top .custom-title > * {
  margin: 0;
  gap: 8px;
  display: block;
  width: 100%;
}

.custom-top h1 {
  font-weight: 500;
  font-feature-settings: "palt";
}
.custom-top p {
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--wp--preset--color--vk-color-primary-vivid);
  font-family: "Segoe UI", sans-serif;
}
@media (max-width: 768px) {
  .custom-top .custom-title {
    --h1-height: 70px;
    padding: 8px;
  }
  .custom-top h1 {
    font-size: 1.2rem;
  }
  .custom-top p {
    font-size: 0.8rem;
  }
}

.custom-title::before {
  content: "";
  position: absolute;
  top: calc(0% - var(--h1-radius));
  left: 0;
  width: var(--h1-radius);
  height: var(--h1-radius);
  background-color: var(--h1-background);
  clip-path: path("M 0 0 Q 0 16 16 16 L 0 16 Z");
}

.custom-title::after {
  content: "";
  position: absolute;
  bottom: 0%;
  right: calc(0% - var(--h1-radius));
  width: var(--h1-radius);
  height: var(--h1-radius);
  background-color: var(--h1-background);
  clip-path: path("M 0 0 Q 0 16 16 16 L 0 16 Z");
}

/* breadcrumb */
.breadcrumb {
  display: none;
}

/* home */
.swiper-button-next,
.swiper-button-prev {
  display: none;
}

.swiper-wrapper {
  transition-timing-function: linear;
}

@media screen and (min-width: 768px) {
  .home-icon-nav-parent {
    height: 250px;
  }
}

.home-icon-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background-color: hsl(0, 0%, 97%);
  color: var(--wp--preset--color--vk-color-primary);
  font-size: 1.2rem;
  padding: 16px;
  border-radius: 16px;
}
.home-icon-nav:hover {
  transition: 0.5s;
  background-color: var(--wp--preset--color--vk-color-primary);
  color: hsl(0, 0%, 100%);
  cursor: pointer;
}

@media (max-width: 768px) {
  .home-icon-nav {
    font-size: 1.5rem;
    padding: 8px;
  }
}

.home-btn-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
  gap: 8px;
  background-color: hsl(0, 0%, 97%);
  padding: 16px;
  padding-top: 0px;
  border-radius: 16px;
}
.home-btn-nav > div {
  margin-top: 64px !important;
}
.home-btn-nav > div > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  width: calc(50% - 16px);
  text-align: center;
  gap: 8px;
}
.home-btn-nav p {
  position: absolute;
  top: 0;
  width: fit-content;
  padding: 8px;
  padding-top: 16px;
  font-size: 1.2rem;
  color: hsl(0, 0%, 100%);
  background-color: var(--wp--preset--color--vk-color-primary);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.home-btn-nav a {
  justify-content: center;
}

.customHomeSlider {
  width: 100svw;
  max-width: 100svw;
  height: auto;
  overflow: visible;
}

.customHomeSlider .swiper-slide {
  width: 100%;
}

.customHomeSlider .swiper-slide img {
  height: auto;
  width: 100%;
}

/* @media screen and (max-width: 768px) {
  .customHomeSlider {
    height: 30svh;
  }
  .customHomeSlider .swiper-slide {
    width: 100%;
  }
} */

.home-recruit-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  width: 100vw;
  gap: 0px;
}
@media screen and (max-width: 768px) {
  .home-recruit-banner {
    flex-direction: column;
  }
}

.home-recruit-banner > div {
  overflow: hidden;
}

.home-recruit-banner > div:nth-child(1) {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.home-recruit-banner figure {
  margin: 0 0 0em;
}

.home-recruit-banner img {
  width: 100%;
  height: auto;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
  transition: 0.5s;
}
.home-recruit-banner:hover img {
  transform: scale(1.05);
}
@media screen and (max-width: 768px) {
  .home-recruit-banner > div:nth-child(1) {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
  }
  .home-recruit-banner img {
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
  }
}

.home-recruit-banner-text {
  padding: 72px;
  background-color: var(--wp--preset--color--vk-color-custom-2);
  color: hsl(0, 0%, 100%);
  font-size: clamp(1.5rem, 2rem, 3rem);
}
.home-recruit-banner-text h2 {
  margin: 0;
  padding: 8px 0;
  font-size: clamp(2rem, 3rem, 4rem);
  font-weight: 700;
  border: none;
}
.home-recruit-banner-text .link-text {
  font-size: 1rem;
}

@media screen and (max-width: 768px) {
  .home-recruit-banner-text {
    padding: 32px;
  }
}

.home-under-banner {
  padding: 72px;
  gap: 72px;
  background-color: var(--wp--preset--color--vk-color-custom-3);
}
.home-under-banner h2 {
  color: var(--wp--preset--color--vk-color-primary);
  font-size: 2rem;
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  .home-under-banner {
    padding: 32px;
  }
}

/* site-body */
/* .site-body {
  background: url(http://hokoku-sdgs.conohawing.com/wp-content/uploads/2025/07/bg.png)
    no-repeat center top;
  background-attachment: fixed;
} */

/* table */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  border: none;
}
thead {
  background-color: hsl(45, 0%, 90%);
}
table th,
table td {
  padding: 16px !important;
  text-align: left;
  border: solid 1px var(--wp--preset--color--vk-color-custom-2) !important;
}
tr > td:nth-child(1) {
  width: 200px;
}

.row-table th,
.row-table td {
  text-align: center;
}

@media screen and (max-width: 768px) {
  table {
    font-size: 0.8rem;
  }
  tr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  td,
  tr > td:nth-child(1) {
    width: 100%;
    padding: 8px;
  }
  table th,
  table td {
    padding: 4px !important;
  }
  .row-table table {
    overflow-x: scroll !important;
    width: auto !important;
  }
  .row-table tr {
    flex-direction: row;
  }
  .row-table th,
  .row-table td {
    width: 100px !important;
  }
}

/* info */
.alert-info {
  background-color: var(--wp--preset--color--vk-color-custom-2);
  color: var(--base-font-color);
  border-color: transparent;
  opacity: 0.8;
}

/* footer */
footer {
  background-color: var(--wp--preset--color--vk-color-custom-2);
}

footer *,
footer *:hover,
footer [class] {
  color: hsl(0, 0%, 100%);
}

footer .contacts a:hover {
  color: hsl(0, 0%, 20%) !important;
}

footer .row > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 16px;
  border-left: solid 2px hsl(0, 0%, 100%);
}
@media (max-width: 768px) {
  footer .row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

footer .row > div:nth-child(0) {
  border-left: none;
}

footer .widget_nav_menu {
  width: 100%;
}

footer .menu-item::after {
  background-color: hsl(0, 0%, 100%);
}

footer .row > div:nth-child(2) {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
footer .row > div:nth-child(2) .widget {
  margin-bottom: 0px;
}

.site-footer-copyright p:nth-child(2) {
  display: none; /* Don't show copyright */
}

/* move to page_top btn */
#page_top {
  display: none;
}
.page_top_btn {
  display: none;
}

/* mobile nav */
.vk-mobile-nav-menu-btn {
  border-radius: 8px;
  border: none;
  background-color: var(--wp--preset--color--vk-color-primary);
}
.vk-mobile-nav-menu-open {
  border: none;
  background-color: var(--wp--preset--color--vk-color-primary);
}

.vk-mobile-nav nav > ul {
  border-top: 1px solid var(--wp--preset--color--vk-color-primary);
}

.vk-mobile-nav .widget_nav_menu ul li a,
.vk-mobile-nav nav ul li a {
  color: var(--base-font-color);
  border-bottom: 1px solid var(--wp--preset--color--vk-color-primary);
}
