/*==============================================================
header
==============================================================*/
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  padding: 16px 16px;

  @media screen and (max-width: 1320px) {
    padding: 16px;
  }

  @media screen and (max-width: 991px) {
    padding: 8px 16px;
    height: 80px;
  }

  @media screen and (max-width: 560px) {
    padding: 8px;
  }
}

.hdr-sp {
  display: none;

  @media screen and (max-width: 991px) {
    display: unset;
  }

  .tel-icon {
    width: 40px;

    & img {
      object-fit: contain;
    }
  }
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 4px;
  background: #ffffff70;
  border-radius: 10px;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  height: 70px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  @media screen and (max-width: 991px) {
    gap: 16px;
    width: 100%;
    height: 100%;
    padding: 8px 12px;
  }
}

.left-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  @media screen and (max-width: 991px) {
    padding: 0;
    height: auto;
    justify-content: space-between;
    z-index: 10001;
  }
}

.header-contact-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #ff9100, #ffbb00);
  color: #fff;
  padding: 11px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-contact-inner img {
  max-height: 24px;
}

.header-contact.pc {
  @media (max-width: 991px) {
    display: none;
  }
}

.header-contact.sp {
  display: none;

  @media (min-width: 991px) and (max-width: 1320px) {
    display: flex;
    position: absolute;
    top: 90px;
    right: 16px;
  }
}

.header-contact .contact-button {
  color: #fff;
  margin: 0;
}

.site-logo {
  display: flex;
  align-items: center;
  position: relative;
  margin: 0;

  & img {
    @media screen and (max-width: 991px) {
      width: 100%;
      height: 80px;
    }

    @media screen and (max-width: 560px) {
      width: 180px;
      height: auto;
    }
  }
}

.site-logo img {
  object-fit: contain;

  @media screen and (max-width: 991px) {
    position: relative;
    z-index: 10000;
  }
}

.site-logo a {
  @media screen and (max-width: 991px) {
    display: flex;
  }
}

.sp-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.right-header {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  width: 100%;

  @media screen and (max-width: 991px) {
    padding: 6px 0;
    gap: 4px;
  }

  @media screen and (max-width: 560px) {
    width: auto;
  }
}

.nav-cont {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  position: relative;
}

.global-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;

  @media screen and (max-width: 1320px) {
    gap: 16px;
  }

  @media screen and (max-width: 991px) {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
}

.nav-list li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  line-height: 1;
  transition: color 0.3s ease;
  font-size: 14px;
  padding: 0;
  overflow: visible;

  @media screen and (max-width: 991px) {
    color: #ffffff;
    padding-bottom: 0;
  }
}

.nav-list li a:hover {
  color: #ff9100;
}

.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list .current-menu-ancestor > a,
.nav-list .current_page_ancestor > a,
.nav-list .current-menu-parent > a,
.nav-list .current-page-parent > a {
  color: #ff9100;
  font-weight: bold;

  @media screen and (max-width: 991px) {
    color: #ffffff;
  }
}

/* .nav-list .current-menu-item > a::after,
.nav-list .current_page_item > a::after,
.nav-list .current-menu-ancestor > a::after,
.nav-list .current_page_ancestor > a::after,
.nav-list .current-menu-parent > a::after,
.nav-list .current-page-parent > a::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 6px;
  border-radius: 50px;
  background: linear-gradient(90deg, #5d5dff, #43d2ff);

  @media screen and (max-width: 991px) {
    display: none;
  }
} */

.recruit-hdr {
  .nav-list .current-menu-item > a,
  .nav-list .current_page_item > a,
  .nav-list .current-menu-ancestor > a,
  .nav-list .current_page_ancestor > a,
  .nav-list .current-menu-parent > a,
  .nav-list .current-page-parent > a {
    color: #ff9100;
  }

  .nav-list li a:hover {
    color: #ffbb00;
  }

  .nav-list .current-menu-item > a::after,
  .nav-list .current_page_item > a::after,
  .nav-list .current-menu-ancestor > a::after,
  .nav-list .current_page_ancestor > a::after,
  .nav-list .current-menu-parent > a::after,
  .nav-list .current-page-parent > a::after {
    background: linear-gradient(90deg, #ff9100, #ffbb00);
  }

  .header-contact-inner {
    background: linear-gradient(90deg, #ff9100, #ffbb00);
  }

  .header-tell {
    display: none;
  }
}

.hamburger {
  display: none;

  @media screen and (max-width: 991px) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10001;
    padding: 0;
  }
}

.hamburger span {
  display: none;

  @media screen and (max-width: 991px) {
    display: block;
    width: 100%;
    height: 4px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
}

.hamburger.active span {
  background-color: #fff;
}

@media screen and (max-width: 991px) {
  .global-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 80px 24px 0px;
    background-color: #000000b3;
    transform: translateY(-100%);
    opacity: 0;
    transition:
      transform 0.4s ease,
      opacity 0.4s ease;
    z-index: 9999;
    pointer-events: none;
  }

  .global-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .nav-open {
    overflow: hidden;
  }

  .nav-list li a {
    display: block;
    padding: 12px 16px;
    border-top: 1px solid #ccc;
  }

  .nav-list li:last-child a {
    border-bottom: 1px solid #ccc;
  }
}

.header-contact-sp {
  display: flex;
  justify-content: center;
  width: 100%;
}

.header-contact-sp .contact-button {
  display: block;
  background: #1f55b8;
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  text-align: center;
  width: 100%;
  font-weight: bold;
  white-space: nowrap;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;

  @media screen and (max-width: 1080px) {
    margin-top: 0px;
  }
}

.header-contact-sp .contact-button:hover {
  background: linear-gradient(135deg, #466bac, #30387b);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 15px rgba(7, 168, 217, 0.1);
}

.tel-contact-cont {
  display: flex;
  align-items: center;
  gap: 16px;

  @media screen and (max-width: 1480px) {
    position: absolute;
    top: 60px;
    right: -16px;
  }
}

.header-tell {
  display: block;

  @media screen and (max-width: 991px) {
    display: none;
  }
}

.tel-contact {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  gap: 6px;
  transition: opacity 0.3s ease;

  &:hover {
    opacity: 0.7;
    color: #333 !important;

    .tel-icon {
      animation: shake 0.5s ease;
    }
  }
}

@keyframes shake-rotate {
  0% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(15deg);
  }
  40% {
    transform: rotate(-15deg);
  }
  60% {
    transform: rotate(10deg);
  }
  80% {
    transform: rotate(-10deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.tel-contact:hover .tel-icon {
  animation: shake-rotate 0.5s ease;
}
.tel-icon img {
  height: 32px;
  width: auto;

  @media screen and (max-width: 991px) {
    position: relative;
    z-index: 10000;
  }
}

.tel-number-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: center;
}

.tel-number {
  font-size: clamp(1.25rem, 1.1667rem + 0.1736vw, 1.375rem);
  font-weight: bold;
  line-height: 20px;
  color: #333;
}

.tel-hours {
  font-size: clamp(0.75rem, 0.6667rem + 0.1736vw, 0.875rem);
  color: #333;
}

@media screen and (min-width: 992px) {
  .home .header:not(.is-scrolled) {
    .nav-list > .nav-item > .nav-link,
    .tel-number,
    .tel-hours {
      color: #fff;
    }

    .nav-list > .nav-item > .nav-link:hover {
      color: #ff9100;
    }
  }
}

.sp .tel-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  z-index: 15000;
}

.header-sp {
  display: none;

  @media screen and (max-width: 991px) {
    display: unset;
  }
}

.submenu-link {
  position: relative;
  padding-right: 36px;
}

.home .nav-list .submenu-link {
  color: #333;

  @media screen and (max-width: 991px) {
    color: #ffffff;
  }
}

/* 詳細度を上げて横線を完全リセット → 丸に上書き */
.nav-list .submenu .current-menu-item > .submenu-link::after,
.nav-list .submenu .current_page_item > .submenu-link::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff9100;
  bottom: auto;
  left: auto;
  transform: none;
  right: 10px;
  top: 50%;
  translate: 0 -50%;
}

/* SP：丸を非表示 */
@media screen and (max-width: 991px) {
  .nav-list .submenu .current-menu-item > .submenu-link::after,
  .nav-list .submenu .current_page_item > .submenu-link::after {
    display: none;
  }
}

/* ==============================================================
サブメニュー
============================================================== */

.nav-item {
  position: relative;
}

.submenu-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid currentColor;
  margin-left: 6px;
  transition: transform 0.3s ease;
  vertical-align: middle;
  position: relative;
  top: -1px;

  @media screen and (max-width: 991px) {
    float: right;
    margin-top: 6px;
  }
}

.nav-item.has-submenu:hover .submenu-arrow {
  @media screen and (min-width: 992px) {
    transform: rotate(180deg);
  }
}

.nav-item.has-submenu.sp-open .submenu-arrow {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 260px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
  z-index: 100;
}

.submenu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #fff;
  box-shadow: -1px -1px 3px rgba(0, 0, 0, 0.08);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.nav-item.has-submenu:hover .submenu {
  @media screen and (min-width: 992px) {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

.submenu-link {
  display: block;
  padding: 8px 16px !important;
  text-decoration: none;
  color: #333;
  font-size: clamp(0.8rem, 0.75rem + 0.1vw, 0.875rem);
  font-weight: bold;
  transition:
    color 0.2s ease,
    background 0.2s ease;
  white-space: nowrap;
}

.submenu-link:hover {
  color: #ffa743;
  background: #fff0da;
}

.submenu .current-menu-item > .submenu-link,
.submenu .current_page_item > .submenu-link {
  color: #ffa743;
  background: #fff0da;
}

/* SP：サブメニュー */
@media screen and (max-width: 991px) {
  .submenu {
    position: static;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.08);
    padding: 0;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.4s ease,
      padding 0.4s ease;
  }

  .submenu::before {
    display: none;
  }

  .nav-item.has-submenu.sp-open .submenu {
    max-height: 500px;
  }

  .submenu-item {
    opacity: 0;
    transform: translateY(-6px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  .nav-item.has-submenu.sp-open .submenu-item {
    opacity: 1;
    transform: translateY(0);
  }

  /* 各アイテムを順番に遅延表示 */
  .nav-item.has-submenu.sp-open .submenu-item:nth-child(1) {
    transition-delay: 0.05s;
  }
  .nav-item.has-submenu.sp-open .submenu-item:nth-child(2) {
    transition-delay: 0.1s;
  }
  .nav-item.has-submenu.sp-open .submenu-item:nth-child(3) {
    transition-delay: 0.15s;
  }
  .nav-item.has-submenu.sp-open .submenu-item:nth-child(4) {
    transition-delay: 0.2s;
  }
  .nav-item.has-submenu.sp-open .submenu-item:nth-child(5) {
    transition-delay: 0.25s;
  }

  .submenu-link {
    color: #fff;
    padding: 10px 16px 10px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.875rem;
  }

  .submenu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
}

/*==============================================================
Footer
==============================================================*/
.footer {
  z-index: 2;
  position: relative;
}

.footer-cont {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  gap: 68px;

  @media screen and (max-width: 991px) {
    gap: 16px;
  }

  .footer-box {
    width: 100%;
    height: 100%;

    .footer-inner {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 32px;
      padding: 48px 16px 24px;
      font-size: 14px;
      max-width: 1720px;
      margin: 0 auto;

      @media (max-width: 991px) {
        flex-direction: column;
        gap: 4px;
        padding: 16px 8px;
      }
    }
  }
}

.footer-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;

  @media screen and (max-width: 991px) {
    width: 100%;
  }
}

.footer-middle {
  display: flex;
  justify-content: center;

  @media screen and (max-width: 991px) {
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0 0;
  }
}

.footer-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;

  @media screen and (max-width: 991px) {
    width: 100%;
  }
}

.sub-menu-cont {
  display: flex;
  gap: 8px;

  @media screen and (max-width: 991px) {
    width: 100%;
    justify-content: center;
  }
}

.f-recruit,
.f-contact {
  @media screen and (max-width: 991px) {
    flex: 1;
  }
}

.f-btn {
  border-radius: 50px;
  background: linear-gradient(135deg, #ff9100, #ffbb00);
  padding: 8px 24px;
  display: block;
  color: #fff;
  transition: all 0.3s ease;

  @media screen and (max-width: 991px) {
    text-align: center;
  }
}

.f-btn.other {
  background: linear-gradient(135deg, #333333, #606060);
}

.f-btn:hover {
  transform: scale(1.05);
}

.privacy {
  @media screen and (max-width: 991px) {
    width: 100%;
    text-align: center;
    margin-bottom: 16px;
  }
}

.privacy a {
  color: #dadada;
  border-bottom: 1px solid #dadada;
  padding-bottom: 4px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 230px;
  margin-bottom: 16px;

  @media screen and (max-width: 991px) {
    max-width: 180px;
    width: 100%;
    margin: 0 auto;
    align-items: center;
  }
}

.footer-logo img {
  width: 100%;
  display: block;
  max-height: 100px;

  @media screen and (max-width: 991px) {
    max-height: max-content;
  }
}

.footer-info p {
  margin: 4px 0;
  font-size: 15px;

  @media screen and (max-width: 991px) {
    margin: 0;
    line-height: 1.4;
  }
}

.footer-info a {
  text-decoration: none;
}

.footer-nav {
  width: 100%;
  max-width: 730px;
}

.footer-nav .footer-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;

  @media screen and (max-width: 991px) {
    flex-direction: column;
    gap: 0;
    margin: 0 0 16px;

    & li {
      border-top: 1px solid #ccc;
      padding: 8px;
    }

    & li:last-child {
      border-bottom: 1px solid #ccc;
    }
  }

  & li a {
    white-space: nowrap;
  }
}

.footer-menu li a {
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid #fff;

  @media screen and (max-width: 991px) {
    font-weight: 600;
    border-bottom: unset;
  }
}

.footer-copy {
  font-size: 14px;
  color: #ffffff;
  background: #333;
  padding: 8px 0;

  @media screen and (max-width: 991px) {
    text-align: center;
  }
}

.footer-info.sp {
  width: 100%;
  max-width: 60%;
  margin: 0 auto 0 0;

  @media screen and (max-width: 991px) {
    margin: 0 auto;
    max-width: 100%;
    text-align: center;
  }
}

.produced-by {
  color: #ffffff;
  text-decoration: none;
  transition:
    color 0.3s ease,
    text-decoration 0.3s ease;
}

.produced-by:hover {
  color: #0077ff;
}

.ftr-dec-img {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 32px;
  position: absolute;
  bottom: 16px;

  @media screen and (max-width: 991px) {
    padding: 0 16px;
  }
}

.ftr-dec-img img {
  @media screen and (max-width: 991px) {
    max-width: 40px;
    width: 100%;
    height: auto;
  }
}

small {
  @media screen and (max-width: 991px) {
    font-size: 100%;
  }
}

button.active {
  background: unset !important;
}
