/*==============================================================
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 24px;

  @media screen and (max-width: 1320px) {
    padding: 16px;
  }

  @media screen and (max-width: 991px) {
    padding: 8px 16px;
    height: 80px;
  }
}

.hdr-sp {
  display: none;

  @media screen and (max-width: 991px) {
    display: unset;
  }
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 4px;
  border-radius: 10px;

  @media screen and (max-width: 991px) {
    gap: 16px;
    width: 100%;
    height: 100%;
  }

  @media screen and (max-width: 480px) {
    background: #fff;
    padding: 8px 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
}

.left-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  flex: 1;
  align-items: center;

  @media screen and (max-width: 991px) {
    padding: 0;
    height: auto;
    justify-content: space-between;
    z-index: 10001;
  }
}

.header-contact {
  @media screen and (max-width: 1080px) {
    display: none;
  }
}

.header-contact-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #d0d82d;
  color: #fff;
  padding: 4px 14px 4px 4px;
  border-radius: 60px;
  text-decoration: none;
  font-weight: bold;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;

  &:hover {
    background: #b8c028;
    box-shadow: 0 4px 12px rgba(208, 216, 45, 0.5);

    .header-contact-inner-img {
      transform: translateX(4px);
    }
  }

  .header-contact-inner-img {
    transition: transform 0.25s ease;
  }
}

.header-contact-inner img {
  max-height: 32px;
}

.header-contact.pc {
  @media (min-width: 991px) and (max-width: 1320px) {
    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;
}

.site-logo {
  display: flex;
  align-items: center;
  position: relative;
}

.site-logo img {
  max-height: 48px;
  width: auto;
  height: auto;

  @media screen and (max-width: 991px) {
    max-height: 38px;
    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 {
  background-color: #fff;
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  border-radius: 50px;
  padding: 8px 8px 8px 22px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

  @media screen and (max-width: 1279px) {
    padding: 8px 22px;
  }

  @media screen and (max-width: 991px) {
    background-color: unset;
    padding: 6px 0;
    gap: 4px;
    box-shadow: unset;
  }
}

.nav-cont {
  display: flex;
  gap: 18px;
  align-items: center;
}

.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: bold;
  position: relative;
  line-height: 1;
  transition: color 0.3s ease;
  font-size: clamp(0.875rem, 0.7917rem + 0.1736vw, 1rem);
  padding-bottom: 8px;
  overflow: visible;

  @media screen and (max-width: 991px) {
    color: #333;
    padding-bottom: 0;
  }
}

.nav-list li a:hover {
  color: #fbba24;
}

.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: #fbba24;
  font-weight: bold;

  @media screen and (max-width: 991px) {
    color: #333;
  }
}

/* .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: 6px;
  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;
  }
}

.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: #333;
}

@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: 100%;
    height: 100vh;
    padding: 80px 24px 0px;
    background-color: #ffffffe3;
    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);
}

.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;
}

.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;
}

.tel-hours {
  font-size: clamp(0.75rem, 0.6667rem + 0.1736vw, 0.875rem);
  color: #666;
}

.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確保 */
.submenu-link {
  position: relative;
  padding-right: 36px;
}

/* 詳細度を上げて横線を完全リセット → 丸に上書き */
.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: #ffae00;
  bottom: auto;
  left: auto;
  transform: translateY(-50%);
  right: 16px;
  top: 53%;
}

/* 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: 200px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  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: 10px 32px 10px 20px;
  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: #43d2ff;
  background: #f5f7ff;
}

/* 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;
  background: #fff;
}

.footer-cont {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
}

.footer-box {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding: 48px 16px;
  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;
  flex-direction: column;
  justify-content: center;

  @media screen and (max-width: 991px) {
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0 0;
  }

  .menu-txt {
    color: #98d1ff;
    font-weight: 600;
  }

  .footer-nav {
    width: 100%;

    @media screen and (max-width: 991px) {
      max-width: unset;
    }
  }
}

.footer-right {
  flex: 1.2;
  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: 320px;
  border-radius: 50px;
  margin-bottom: 16px;

  @media screen and (max-width: 991px) {
    max-width: 260px;
    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 {
  font-size: 15px;
  line-height: 1.4;

  @media screen and (max-width: 991px) {
    margin: 4px 0;
  }
}

.footer-info a {
  color: #fff !important;
  text-decoration: none;
}

.footer-nav {
  width: 100%;
}

.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;
    max-width: unset;

    li {
      border-top: 1px solid #ccc;
      padding: 8px;
    }

    li:last-child {
      border-bottom: 1px solid #ccc;
    }
  }
}

.footer-menu li a {
  text-decoration: none;
  font-weight: 600;

  @media screen and (max-width: 991px) {
    font-weight: 600;
  }
}

.footer-copy {
  font-size: 14px;
  margin-bottom: 16px;

  @media screen and (max-width: 991px) {
    margin: 0 0 16px;
    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%;
  }
}

.submenu {
  li a {
    color: #333 !important;
    transition: color 0.3s ease;

    &:hover {
      color: #ffbb00 !important;
    }
  }
}
