@charset "UTF-8";

.hd {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: var(--c-white);
  transition:
    background 0.45s ease,
    top 0.35s ease;
}

.hd__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  padding-bottom: 16px;
  transition:
    padding-top 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    padding-bottom 0.45s ease;
}

.hd__left {
  flex-shrink: 1;
  position: relative;
}

.hd__logo {
  --hd-logo-img-w: clamp(64px, 130px, 140px);
  --hd-logo-text-w: clamp(140px, 25vw, 218px);
  width: calc(var(--hd-logo-img-w) + var(--hd-logo-text-w));
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--c-navy-01);
  transition: opacity 0.3s ease;
}
.hd__logo:hover,
.hd__logo:hover .hd__logo-img {
  opacity: 1;
}
.hd__logo:hover .hd__logo-text {
  opacity: 0.8;
}
.hd__logo-img {
  position: absolute;
  top: -21px;
  left: 0;
  width: var(--hd-logo-img-w, 140px);
  height: auto;
  display: block;
  aspect-ratio: 140 / 176;
  flex-shrink: 0;
  z-index: 100;
  transition: top 0.35s ease;
}

.hd__logo-text {
  width: var(--hd-logo-text-w, clamp(140px, 25vw, 218px));
  margin-right: 0;
  margin-left: auto;
  height: auto;
  display: block;
  aspect-ratio: 218 / 37;
  flex-shrink: 0;
  z-index: 100;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.hd__logo-text-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* トップ: MV 下端が画面外に出たあと（top.js が .hd--past-mv を付与） */
/* backdrop-filter は .hd 本体に付けない（fixed 子の包含ブロックがヘッダーになり CTA が画面右下に来なくなるため） */
.hd.hd--past-mv:not(.hd--secondary) {
  background: rgba(255, 255, 255, 0.82);
}
.hd.hd--past-mv {
  background: rgba(255, 255, 255, 0.82);
}
.hd.hd--past-mv:not(.hd--secondary)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hd.hd--past-mv::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hd.hd--past-mv:not(.hd--secondary) .l-outer {
  position: relative;
  z-index: 1;
  padding-left: clamp(20px, 4%, 80px);
}
.hd.hd--past-mv:not(.hd--secondary) .hd__inner {
  padding-top: 16px;
  padding-bottom: 16px;
}
.hd.hd--past-mv:not(.hd--secondary) .hd__logo {
  --hd-logo-img-w: 240px;
  --hd-logo-text-w: 0;
  width: min(240px, 100%);
}
.hd.hd--past-mv:not(.hd--secondary) .hd__logo-text {
  opacity: 0;
  pointer-events: none;
}
.hd.hd--past-mv:not(.hd--secondary) .hd__logo-img {
  position: static;
  top: auto;
  width: min(240px, 100%);
  aspect-ratio: 389 / 53;
}

.hd__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hd__nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 24px;
}

.hd__nav-list li {
  display: flex;
  align-items: center;
}

.hd__nav-link {
  display: flex;
  align-items: center;
  letter-spacing: 0.1em;
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: opacity 0.3s ease;
  color: var(--c-blue-01);
}

.hd__nav-chevron {
  display: inline-flex;
  width: 27px;
  height: 27px;
  border: 1px solid var(--c-blue-01);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease-out;
}

.hd__nav-item--expand:hover .hd__nav-chevron,
.hd__nav-item--expand.is-open .hd__nav-chevron {
  opacity: 1;
}

.hd__nav-chevron::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  color: var(--c-blue-01);
  line-height: 1;
  width: 0.5em;
  height: 0.5em;
  border: 1px solid currentColor;
  border-left: 0;
  border-bottom: 0;
  box-sizing: border-box;
  transform: translateY(-25%) rotate(135deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hd__nav-item--expand.is-open .hd__nav-chevron::after {
  transform: translateY(25%) rotate(-45deg);
}

.hd__nav-item--expand {
  margin: 0;
}

.hd__nav-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hd__nav-expand-btn:hover {
  opacity: 0.8;
}

.hd__nav-expand-btn .hd__nav-chevron {
  opacity: 1;
}

/* 全部展開パネル */
.hd__dropdown-all {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: -4px;
  padding: 24px 30px 24px 170px;
  background: var(--c-white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-30px);
  transition:
    opacity 0.35s ease-out,
    visibility 0.35s ease-out,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 99;
}
.hd__dropdown-all::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(30px 140px);
  width: 100%;
  height: 1px;
  background: var(--c-gray-01);
}

.hd__dropdown-all.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hd__dropdown-all-inner {
  display: flex;
  gap: 48px;
  width: 100%;
  justify-content: center;
  align-items: flex-start;
}
.hd__dropdown-all-col {
  width: fit-content;
}
.hd__dropdown-all-ttl {
  display: flex;
  align-items: center;
  letter-spacing: 0.2em;
  gap: 8px;
  margin-bottom: 20px;
}

.hd__dropdown-all-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 6px solid var(--c-red-01);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.hd__dropdown-all-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hd__dropdown-all-list li {
  margin-bottom: 12px;
}

.hd__dropdown-all-list li:last-child {
  margin-bottom: 0;
}

.hd__dropdown-all-list a {
  display: block;
  padding-left: 16px;
  position: relative;
  text-decoration: none;
}

.hd__dropdown-all-list a:hover,
.hd__dropdown-all-list a:focus,
.hd__dropdown-all-ttl:hover,
.hd__dropdown-all-ttl:focus {
  color: var(--c-blue-01);
}

.hd__dropdown-all-list a:hover::before {
  background: var(--c-blue-01);
}

.hd__dropdown-all-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(50%);
  width: 4px;
  height: 1px;
  background: var(--c-black-01);
  transition: background 0.2s ease;
}

.hd__dropdown-all-main {
  display: block;
  font-size: var(--fs-15);
  letter-spacing: 0.075em;
}

.hd__dropdown-all-col2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.hd__dropdown-all-col--recruit .hd__dropdown-all-cta {
  margin-top: 20px;
}

.hd__dropdown-all-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--c-blue-01);
  padding: 0 12px;
  text-decoration: none;
  transition: opacity 0.3s ease;
  width: 172px;
  height: 52px;
}

.hd__dropdown-all-cta .hd__dropdown-all-chevron {
  flex-shrink: 0;
}

.hd__dropdown-all-cta .hd__dropdown-all-txt {
  color: var(--c-white);
  font-size: var(--fs-14);
  font-weight: var(--fw-bold);
  line-height: 1.5;
  letter-spacing: 0.255em;
}

.hd__right {
  flex-shrink: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.hd__nav-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hd__nav-wrap-logo {
  display: none;
  flex: 1;
  justify-content: center;
}

/* ハンバーガーボタン（960px以下で表示） */
.hd__hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.hd__hamburger-btn:hover {
  opacity: 0.8;
}

.hd__hamburger-bar {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--c-blue-01);
  border-radius: 1px;
  transform-origin: center;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease;
}

/* 3本線（高さ2px + gap4px）: 中央を消して上下を ±45deg で✕ */
.hd__hamburger-btn.is-open .hd__hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hd__hamburger-btn.is-open .hd__hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hd__hamburger-btn.is-open .hd__hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hd__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: var(--c-blue-01);
  color: var(--c-white);
  font-size: var(--fs-14);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  line-height: 1;
  text-decoration: none;
  transition:
    opacity 0.3s ease,
    background 0.3s ease;
}
@media screen and (max-width: 1200px) {
  .hd__inner {
    padding-top: 30px;
  }
  .hd__logo {
    --hd-logo-img-w: 90px;
  }
  .hd__logo-img {
    top: -10px;
  }
  .hd__nav-wrap,
  .hd__nav-list,
  .hd__dropdown-all-inner,
  .hd__right {
    gap: 24px;
  }
  .hd__nav-link {
    font-size: var(--fs-14);
  }
  .hd__nav-chevron {
    width: 20px;
    height: 20px;
  }
  .hd__nav-chevron::after {
    width: 5px;
    height: 5px;
  }
  .hd__cta {
    font-size: var(--fs-12);
  }
  .hd__dropdown-all {
    padding-left: 120px;
  }
  .hd__dropdown-all-col2 {
    gap: 0;
  }
}
@media screen and (max-width: 1100px) {
  .hd__nav-wrap,
  .hd__nav-list,
  .hd__dropdown-all-inner,
  .hd__right {
    gap: 16px;
  }
}

@media screen and (max-width: 960px) {
  .hd__right {
    margin-left: auto;
    gap: 0;
  }
  .hd__nav-wrap {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 98;
    flex: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 80px 72px;
    background: var(--c-white);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0.35s;
  }
  .hd.is-menu-open .hd__nav-wrap {
    transform: translateX(0);
    visibility: visible;
    width: 536px;
    right: 0;
    left: auto;
    z-index: 102;
  }
  .hd.is-menu-open .hd__nav-wrap::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 536px;
    height: 2px;
    background: var(--c-white);
    z-index: 103;
    pointer-events: none;
  }
  .hd__hamburger-btn {
    display: flex;
    position: relative;
    z-index: 103;
  }
  .hd__nav-wrap-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    order: 0;
    flex: 0;
    margin-bottom: 40px;
  }
  .hd__nav-wrap-logo .hd__logo-img {
    position: relative;
    width: 240px;
    aspect-ratio: 389 /53;
    object-fit: contain;
    top: 0;
  }
  .hd__nav {
    display: none;
  }
  .hd__nav-list {
    display: none;
  }
  .hd__cta {
    position: fixed;
    bottom: 8px;
    right: 8px;
    width: 80px;
    height: 80px;
    display: block;
    z-index: 99;
    background-image: url("../../img/common//entry-btn.webp");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    text-indent: -9999px;
    overflow: hidden;
    background-color: initial;
  }
  .hd__cta:hover {
    opacity: 0.8;
  }

  .hd__dropdown-all {
    position: static;
    margin-left: 0;
    margin-top: 0;
    padding: 0;
    border-top: none;
    order: 2;
    display: block;
    opacity: 1;
    visibility: visible;
    background-color: initial;
  }
  .hd__dropdown-all::before {
    display: none;
  }
  .hd__dropdown-all-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 100%;
  }
  .hd__dropdown-all-col {
    padding-bottom: 24px;
  }
  .hd__dropdown-all-col2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .hd__dropdown-all-ttl {
    margin-bottom: 12px;
  }
  .hd__dropdown-all-col--recruit .hd__dropdown-all-cta {
    margin-top: 40px;
  }
  .hd.hd--past-mv:not(.hd--secondary) .hd__inner {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@media screen and (max-width: 768px) {
  .hd__inner {
    padding-top: 16px;
  }
  .hd.is-menu-open .hd__nav-wrap {
    padding: 120px 40px;
    width: 340px;
  }
  .hd__dropdown-all-col--recruit .hd__dropdown-all-cta {
    width: 100%;
  }
  .hd__logo-img {
    aspect-ratio: 244 / 272;
    top: 0;
  }
}
@media screen and (max-width: 600px) {
  .hd__inner {
    padding-top: 16px;
    padding-bottom: 12px;
  }
  .hd__logo {
    --hd-logo-img-w: 80px;
  }
  .hd.is-menu-open .hd__nav-wrap {
    padding: 64px 30px;
    width: 80%;
  }
  .hd__dropdown-all-col {
    width: 100%;
  }
  .hd__dropdown-all-cta {
    justify-content: center;
  }
  .hd__cta {
    width: 60px;
    height: 60px;
  }
  .hd__hamburger-btn {
    width: 24px;
    height: 24px;
  }
  .hd__hamburger-bar {
    width: 24px;
  }
  .hd.hd--past-mv:not(.hd--secondary) .hd__logo-img {
    width: 160px;
  }
}
@media screen and (max-width: 480px) {
  .hd__logo {
    --hd-logo-img-w: 56px;
  }
}

/* 固定ヘッダー相当の高さ（body の padding-top と同期） */
body:has(.hd--secondary) {
  --hd-offset: 91px;
}
@media screen and (max-width: 960px) {
  :root {
    --hd-offset: 79px;
  }
  body:has(.hd--secondary) {
    --hd-offset: 65px;
  }
}
@media screen and (max-width: 768px) {
  :root {
    --hd-offset: 62px;
  }
}
@media screen and (max-width: 600px) {
  :root {
    --hd-offset: 52px;
  }
  body:has(.hd--secondary) {
    --hd-offset: 57px;
  }
}

/* サブページ用（メディアクエリより前：ブレークポイント用変数を上書きできるようにする） */
.hd.hd--secondary.hd--secondary--peek .hd__inner {
  padding-top: 16px;
  padding-bottom: 16px;
}
@media screen and (max-width: 960px) {
  .hd.hd--secondary.hd--secondary--peek .hd__inner {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}
.hd--secondary .hd__inner {
  padding-top: 24px;
  padding-bottom: 24px;
}
.hd--secondary .hd__logo {
  --hd-logo-img-w: 240px;
  --hd-logo-text-w: 0;
}
.hd--secondary .hd__logo-img {
  position: static;
  aspect-ratio: 389 / 53;
}

@media screen and (max-width: 960px) {
  .hd--secondary .hd__inner {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .hd--secondary .hd__logo {
    --hd-logo-img-w: 200px;
  }
}

@media screen and (max-width: 480px) {
  .hd--secondary .hd__logo {
    --hd-logo-img-w: 160px;
  }
}
