@charset "UTF-8";

/* Header fixed */
/* header.hd: 下層ページはrelative（スクロールで流れる）、hd-scrollで固定バー表示 */
/* header.hd-second: トップは従来通りfixed */
header.hd-second {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}
header.hd {
  position: relative;
}

header.hd .hd-inr {
  padding: 96px 5% 0;
  align-items: center;
}
header.hd .logo a {
  width: 582px;
  height: 182px;
}
header.hd .logo a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
header.hd .hd-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-end;
  flex: 1;
}
header.hd .hd-ct {
  gap: 12px;
  align-items: center;
}
header.hd .hd-ct__ja {
  font-size: var(--fs-15);
  color: var(--color-white);
  width: 80px;
  height: 80px;
  background-color: var(--color-pink-03);
  font-weight: var(--fw-bold);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}
header.hd .hd-ct__lnk {
  height: 80px;
  width: auto;
}
header.hd .hd-ct__lnk img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
header.hd .hd-nav ul {
  display: flex;
}
header.hd .hd-nav ul li {
  position: relative;
  padding: 0 4px;
}
header.hd .hd-nav ul li a {
  padding: 0 40px;
  transition: background-color 0.3s ease;
  font-weight: var(--fw-bold);
  font-size: var(--fs-15);
}
header.hd .hd-nav ul li::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--color-text);
}
header.hd .hd-nav ul li:last-child::after {
  display: none;
}

header.hd .hd-nav ul li a:hover,
header.hd .hd-nav ul li a.is-active {
  background-color: var(--color-pink-05);
}

/* ==========================================================================
   header.hd スクロール時に出現する固定バー
   ========================================================================== */
.hd-scroll {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.hd-scroll.is-scrolled {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.hd-scroll__inr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 5%;
  max-width: 1400px;
  margin: 0 auto;
}
.hd-scroll__logo {
  width: 160px;
  height: auto;
  aspect-ratio: 582 / 182;
}
.hd-scroll__logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.hd-scroll__right-group {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hd-scroll__nav {
  display: flex;
  align-items: center;
}
.hd-scroll__nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}
.hd-scroll__nav-list li {
  position: relative;
  padding: 0 4px;
}
.hd-scroll__nav-list li::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--color-text);
}
.hd-scroll__nav-list li:last-child::after {
  display: none;
}
.hd-scroll__nav-list a {
  padding: 0 40px;
  font-weight: var(--fw-bold);
  font-size: var(--fs-15);
  transition: background-color 0.3s ease;
}
.hd-scroll__nav-list a:hover,
.hd-scroll__nav-list a.is-active {
  background-color: var(--color-pink-05);
}
.hd-scroll__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hd-scroll__ct {
  width: auto;
  height: 48px;
}
.hd-scroll__ct img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* 768px以下のみ：スクロール時にハンバーガーを表示 */
@media screen and (max-width: 768px) {
  .hd-wrap:has(.hd-scroll.is-scrolled) .hd-toggle,
  header.hd-second.is-scrolled .hd-toggle {
    display: flex !important;
    position: fixed;
    top: 8px;
    right: 5%;
    width: 40px;
    height: 40px;
  }
  .hd-wrap:has(.hd-scroll.is-scrolled) .hd-toggle__line,
  header.hd-second.is-scrolled .hd-toggle .hd-toggle__line {
    width: 12px;
    margin-left: -6px;
    background-color: var(--color-white);
  }
}

@media screen and (max-width: 1400px) {
  header.hd .hd-inr {
    padding: 64px 5% 0;
  }
  header.hd .logo a {
    width: 400px;
    height: 123px;
  }
  header.hd .hd-ct__lnk {
    height: 72px;
  }
  header.hd .hd-ct__ja {
    width: 72px;
    height: 72px;
    font-size: var(--fs-13);
  }
  header.hd .hd-right {
    gap: 24px;
  }
  header.hd .hd-nav ul li a {
    padding: 0 24px;
  }
  .hd-scroll__nav-list a {
    padding: 0 24px;
  }
}
@media screen and (max-width: 1100px) {
  header.hd .logo a {
    width: 320px;
    height: 98px;
  }
  header.hd .hd-right {
    gap: 16px;
  }

  header.hd .hd-ct__ja {
    width: 64px;
    height: 64px;
    font-size: var(--fs-12);
  }
  header.hd .hd-ct__lnk {
    height: 64px;
  }
  header.hd .hd-nav ul li a {
    padding: 0 16px;
    line-height: 1.5;
    font-size: var(--fs-13);
  }
  .hd-scroll__nav-list a {
    padding: 0 8px;
    line-height: 1.5;
    font-size: var(--fs-13);
  }
  .hd-scroll__right-group {
    gap: 8px;
  }
  .hd-scroll__ct {
    height: 32px;
  }
}
@media screen and (max-width: 960px) {
  header.hd .hd-inr {
    padding: 40px 5% 0;
  }
  header.hd .logo a {
    width: 300px;
    height: 92px;
  }
  header.hd .hd-ct__ja {
    width: 56px;
    height: 56px;
    font-size: 10px;
  }
  header.hd .hd-ct__lnk {
    height: 56px;
  }
}
@media screen and (max-width: 768px) {
  .hd-scroll__right-group {
    display: none;
  }
  .hd-scroll__inr {
    padding: 8px 5%;
    padding-right: calc(5% + 50px); /* 固定の.hd-toggle用スペース */
  }
  .hd-scroll__logo {
    width: 123px;
  }
}

/* TOP header-secondary */
header.hd-second .hd-inr {
  padding-top: 40px;
}
header.hd-second .hd-ct {
  margin-bottom: 100px;
}
header.hd-second .hd-ct__lnk {
  margin-left: auto;
  margin-right: 5%;
  width: fit-content;
}
header.hd-second .hd-ct__lnk img {
  width: 366px;
  height: auto;
  transition: width 0.3s ease;
}
/* MVスクロール後：小さくする */
header.hd-second.is-scrolled .hd-ct__lnk img {
  width: 200px;
}
header.hd-second.is-scrolled .hd-inr {
  padding-top: 16px;
}
/* スクロールバーよりハンバーガーを前面に */
header.hd-second.is-scrolled {
  z-index: 101;
}
@media screen and (min-width: 769px) {
  header.hd-second.is-scrolled .hd-inr {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    padding-left: 5%;
    padding-right: 5%;
  }
  header.hd-second.is-scrolled .hd-ct {
    margin-bottom: 0;
    display: none;
  }
}

/* ==========================================================================
   Hamburger Menu & SP Nav
   ========================================================================== */

/* Toggle Button */
.hd-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background-image: url(../../img/common/hum-bg-img.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  z-index: 1100;
  position: relative;
}

.hd-toggle__line {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  margin-left: -8px;
  margin-top: -0.75px;
  background-color: var(--color-white);
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.hd-toggle__line:nth-child(1) {
  transform: translateY(-2.5px);
}
.hd-toggle__line:nth-child(2) {
  transform: translateY(2.5px);
}

/* Open State Animation - both lines overlap at center, rotate to form × */
.is-open .hd-toggle__line:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}
.is-open .hd-toggle__line:nth-child(2) {
  transform: translateY(0) rotate(-45deg);
}

/* SP Nav Overlay */
.sp-nav {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  max-width: 430px;
  height: 100vh;
  background-color: rgba(255, 242, 242, 0.9);
  z-index: 999;
  padding: 100px 40px 40px;
  overflow-y: auto;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border-radius: 30px 0 0 30px;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.is-open .sp-nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sp-nav__logo {
  width: 100%;
  margin-bottom: 48px;
  max-width: 240px;
}

.sp-nav__logo img {
  width: 100%;
  height: auto;
}

.sp-nav__list-wrap {
  width: 100%;
  margin-bottom: 48px;
}

.sp-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.sp-nav__item {
  width: 100%;
  text-align: center;
}

.sp-nav__lnk {
  font-size: var(--fs-16);
  font-weight: var(--fw-bold);
}
.sp-nav__lnk.is-active {
  color: var(--color-pink-03);
}
.sp-nav__tel,
.sp-nav__tel a {
  width: 100%;
  max-width: 314px;
}

.sp-nav__tel img {
  width: 100%;
  height: auto;
}

@media screen and (max-width: 600px) {
  .sp-nav {
    width: 65%;
  }
  .sp-nav__list {
    gap: 16px;
  }
}
@media screen and (max-width: 768px) {
  header.hd .hd-inr {
    padding: 20px 5% 0;
  }
  header.hd .logo a {
    width: 200px;
    height: auto;
  }
  .hd-right {
    display: none !important;
  }
  .hd-toggle {
    display: flex;
    position: fixed;
    top: 20px;
    right: 5%;
  }

  /* TOP header-secondary adjustments */
  header.hd-second .hd-inr {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 5%;
    padding-right: 5%;
  }
  /* MV上：SPでは連絡先のみ表示、ハンバーガーは非表示 */
  header.hd-second .hd-ct,
  header.hd-second .hd-nav {
    display: none !important;
  }
  header.hd-second .hd-toggle {
    display: none !important;
  }
  header.hd-second.is-scrolled .hd-ct,
  header.hd-second.is-scrolled .hd-nav {
    display: none !important;
  }
  /* 768px以下でスクロール時のみハンバーガー表示（上記メディア内の共通ルールで制御） */
  header.hd-second .logo-sp {
    display: block !important;
  }
  header.hd-second .logo-sp a {
    width: 200px;
    height: auto;
    display: block;
  }
  header.hd-second .logo-sp a img {
    width: 100%;
    height: auto;
  }
}
@media screen and (max-width: 600px) {
  header.hd .logo a {
    width: 140px;
  }
  .hd-toggle {
    width: 40px;
    height: 40px;
  }
  .hd-toggle__line {
    width: 12px;
    margin-left: -6px;
    margin-top: -0.75px;
  }
  .hd-toggle__line:nth-child(1) {
    transform: translateY(-2px);
  }
  .hd-toggle__line:nth-child(2) {
    transform: translateY(2px);
  }
  .is-open .hd-toggle__line:nth-child(1) {
    transform: translateY(0) rotate(45deg);
  }
  .is-open .hd-toggle__line:nth-child(2) {
    transform: translateY(0) rotate(-45deg);
  }
}

header.hd-second .logo-sp {
  display: none;
}

/* ==========================================================================
   Fixed Tel Bar (SP only)
   ========================================================================== */
.fixed-tel-bar {
  display: none;
}

@media screen and (max-width: 768px) {
  .fixed-tel-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-pink-03);
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    z-index: 998;
    padding: 10px 24px;
    height: 42px;
  }

  .fixed-tel-bar img {
    width: 50%;
    height: auto;
    object-fit: contain;
  }
}
@media screen and (max-width: 600px) {
  .fixed-tel-bar img {
    width: 80%;
  }
}
