/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  padding: 0 16px 0 clamp(14px, 2vw, 32px);
  z-index: 200;
  background: linear-gradient(137.69deg, #C8A7E9 4.92%, #E1A4D1 122.42%);
  display: flex;
  align-items: center;
  gap: 16px;
}

/* TOPページ: SP/PC共通でヘッダーはFVを過ぎたら表示。
   ハンバーガー: FV内では紫(SP)・透明(PC)、FV後は白で表示 */
.home .header {
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.home .header__menu-btn span {
  background: var(--color-primary);
  transition: background 0.15s ease;
}

.home .header__menu-btn[aria-expanded="true"] span {
  background: var(--color-white);
}

body.fv-passed.home .header {
  opacity: 1;
  pointer-events: auto;
}

body.fv-passed.home .header__menu-btn span {
  background: var(--color-white);
}

@media (min-width: 769px) {
  .home .header__menu-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .home .header__menu-btn span {
    background: var(--color-white);
  }

  body.fv-passed.home .header__menu-btn {
    opacity: 1;
    pointer-events: auto;
  }
}

/* TOP以外: ヘッダー分の上余白を確保 */
body:not(.home) {
  padding-top: 70px;
}

/* WP管理バー表示時（管理バー分の上余白は html 側でWPが確保するので、body は base のまま） */
body.admin-bar .header {
  top: 46px;
}

body.admin-bar .header__menu-btn {
  top: calc(46px + 13px) !important;
}

@media (min-width: 783px) {
  body.admin-bar .header {
    top: 32px;
  }

  body.admin-bar .header__menu-btn {
    top: calc(32px + 13px) !important;
  }
}

/* ロゴ */
.header__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  flex-shrink: 0;
  width: 128px;
}

.header__logo-mark {
  width: 128px;
  height: 48px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.header__logo-text {
  display: block;
  height: auto;
  width: 100%;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

@media (min-width: 769px) {
  .header {
    height: 80px;
    padding: 0 0 0 clamp(28px, 3vw, 48px);
  }

  body:not(.home) {
    padding-top: 80px;
  }
}

/* PC ナビ */
.header__nav {
  display: none;
}

@media (min-width: 1024px) {
  .header__nav {
    display: block;
    margin-left: auto;
  }
}

.header__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.5vw, 28px);
}

.header__nav-item {
  margin: 0;
}

.header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(13px, calc(5.00px + 0.78vw), 20px);
  line-height: 1.6;
  color: var(--color-white);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.header__nav-link:hover {
  opacity: 0.7;
}

.header__nav-icon {
  display: inline-block;
  flex-shrink: 0;
}

.header__nav-icon--arrow {
  width: 0.5em;
  height: 0.5em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.header__nav-icon--external {
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* 予約ボタン（PC右） — SP固定CTA（予約する）と同じ緑→白グラデ配色・ホバー */
.header__line {
  display: none;
}

@media (min-width: 1024px) {
  .header__line {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 0 clamp(28px, 2.8vw, 60px);
    background: linear-gradient(
      92.46deg,
      #02C19B 28%,
      var(--color-btn-yellow) 47%,
      var(--color-white) 50%,
      var(--color-white) 100%
    );
    background-size: 250% 100%;
    background-position: 0% 0%;
    color: var(--color-white);
    font-family: var(--font-mincho);
    font-weight: 900;
    font-size: clamp(15px, calc(5px + 0.9vw), 22px);
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    transition: background-position 0.5s ease, color 0.3s ease;
  }

  /* ホバー時のグラデ枠線は ::after で描画（透明borderのシーム対策で常時borderは持たない） */
  .header__line::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(92.46deg, #02C19B 55.98%, var(--color-btn-yellow) 114.54%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .header__line:hover {
    background-position: 100% 0%;
    color: #02C19B;
  }

  .header__line:hover::after {
    opacity: 1;
  }
}

/* ハンバーガーボタン（SP）— 常に右上固定 */
.header__menu-btn {
  position: fixed !important;
  top: 13px !important;
  right: 12px !important;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 9999;
}

.header__menu-btn span {
  display: block;
  width: 38px;
  height: 2px;
  background: var(--color-white);
}

.header__menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.header__menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .header__menu-btn {
    display: none;
  }
}

/* SPドロワー */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: linear-gradient(137.69deg, #C8A7E9 4.92%, #E1A4D1 122.42%);
  overflow-y: auto;
}

.drawer[hidden] {
  display: none;
}

.drawer__inner {
  padding: 56px 17.5vw 20px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-sizing: border-box;
}

.drawer__top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer__bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
}


.drawer__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  width: clamp(130px, 50vw, 320px);
  margin: 0 auto clamp(20px, 5vw, 40px);
}

.drawer__logo img {
  width: 100%;
  height: auto !important;
  display: block;
}

.drawer__logo-text {
  height: auto !important;
  width: 80% !important;
  margin: 0 auto;
}

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

.drawer__nav-item {
  border-bottom: 1px solid var(--color-white);
}

.drawer__nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 4px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(15px, calc(14.20px + 0.23vw), 16px);
  color: var(--color-white);
  text-decoration: none;
}

.drawer__nav-icon {
  display: inline-block;
  flex-shrink: 0;
  color: currentColor;
}

.drawer__nav-icon--arrow {
  width: 0.5em;
  height: 0.5em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.drawer__nav-icon--external {
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.drawer__sub-nav {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  font-size: 11px;
  text-align: center;
}

.drawer__sub-nav li:first-child {
  flex-basis: 100%;
}

.drawer__sub-nav a {
  color: var(--color-white);
  font-weight: 400;
  text-decoration: underline;
}

.drawer__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: calc(24px - 17.5vw);
  margin-right: calc(24px - 17.5vw);
}

.drawer__cta-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
  height: 56px;
  border-radius: 100px;
  font-family: var(--font-mincho);
  font-weight: 900;
  font-size: clamp(18px, calc(14.84px + 0.93vw), 22px);
  letter-spacing: 0.05em;
  text-decoration: none;
  overflow: hidden;
  z-index: 0;
  transition: background-position 0.5s ease, color 0.3s ease, border-color 0.3s ease;
}

.drawer__cta-btn--primary {
  background: linear-gradient(
    92.46deg,
    #02C19B 28%,
    #FFFFB6 47%,
    var(--color-white) 50%,
    var(--color-white) 100%
  );
  background-size: 250% 100%;
  background-position: 0% 0%;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  box-shadow: 3px 3px 0px 0px rgba(60, 60, 60, 0.25);
}

.drawer__cta-btn--primary:hover {
  background-position: 100% 0%;
  color: #02C19B;
  border-color: #02C19B;
}

.drawer__cta-btn--line {
  background:
    linear-gradient(92.46deg, var(--color-white) 0%, var(--color-white) 50%, #FFFFB6 53%, #02C19B 72%) padding-box,
    linear-gradient(92.46deg, #02C19B 55.98%, #FFFFB6 114.54%) border-box;
  background-size: 250% 100%, 100% 100%;
  background-position: 0% 0%, 0% 0%;
  background-repeat: no-repeat, no-repeat;
  color: #02C19B;
  border: 2px solid transparent;
  box-shadow: 3px 3px 0px 0px rgba(60, 60, 60, 0.25);
  transition: background-position 0.5s ease, color 0.3s ease;
}

.drawer__cta-btn--line:hover {
  background-position: 100% 0%, 0% 0%;
  color: var(--color-white);
  border-color: var(--color-white);
}

.drawer__cta-arrow {
  position: relative;
  display: inline-block;
  width: clamp(20px, calc(13.32px + 0.87vw), 30px);
  height: clamp(14px, calc(9.32px + 0.61vw), 21px);
  margin-left: 10px;
  /* かえしが左上のみに伸びる形状でインク重心が上寄りのため、
     わずかに下げてテキストの上下中央に光学的に合わせる */
  transform: translateY(2px);
}

.drawer__cta-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 1px);
  height: 2px;
  background: currentColor;
}

.drawer__cta-arrow::before {
  content: "";
  position: absolute;
  right: 0;
  top: calc(50% - 1px);
  width: clamp(11px, calc(7.32px + 0.48vw), 16px);
  height: 2px;
  background: currentColor;
  transform: rotate(40deg);
  transform-origin: 100% 50%;
}

/* ドロワー（ハンバーガーメニュー）の2ボタンも矢印を右端に固定して左右位置を揃える（文字は中央寄せのまま） */
.drawer__cta .drawer__cta-arrow {
  position: absolute;
  top: 50%;
  right: 14px;
  margin-left: 0;
  transform: translateY(calc(-50% + 2px));
}

