:root {
  --cayuga-header-navy: #06316c;
  --cayuga-header-navy-deep: #031f4d;
  --cayuga-header-navy-light: #0d4489;
  --cayuga-header-gold: #d8b34f;
  --cayuga-header-gold-light: #f2d476;
  --cayuga-header-ivory: #f8f4ec;
  --cayuga-header-text: #092d62;
}

/* Affinger6の旧ロゴ・旧グローバルメニューだけを非表示 */
body.cayuga-custom-header-on #headbox-bg-fixed,
body.cayuga-custom-header-on #st-menubox {
  display: none !important;
}

body .cayuga-site-header,
body .cayuga-mobile-menu,
body .cayuga-site-header *,
body .cayuga-mobile-menu * {
  box-sizing: border-box;
}

body .cayuga-site-header {
  position: relative;
  z-index: 9990;
  display: block !important;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  color: #fff;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

body .cayuga-site-header--fallback {
  display: none !important;
}

.cayuga-site-header__bar {
  position: relative;
  z-index: 2;
  min-height: 100px;
  background: linear-gradient(90deg, var(--cayuga-header-navy-deep) 0%, var(--cayuga-header-navy) 52%, #08275b 100%);
}

.cayuga-site-header__inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.cayuga-site-header__brand {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 240px;
  color: #fff !important;
  text-decoration: none !important;
  line-height: 1;
}

.cayuga-site-header__brand img {
  display: block;
  width: 230px;
  height: auto;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
  margin: 0 !important;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.04));
}

.cayuga-site-header__brand span {
  display: block;
  margin-top: 3px;
  padding-left: 7px;
  color: rgba(255, 255, 255, 0.94);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.08em;
}

.cayuga-site-header__desktop-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
  min-width: 0;
}

.cayuga-site-header__desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  white-space: nowrap;
}

.cayuga-site-header__desktop-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 4px;
  height: 2px;
  background: var(--cayuga-header-gold-light);
  transition: left 0.22s ease, right 0.22s ease;
}

.cayuga-site-header__desktop-nav a:hover::after,
.cayuga-site-header__desktop-nav a:focus-visible::after {
  left: 0;
  right: 0;
}

.cayuga-site-header__member {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 144px;
  min-height: 50px;
  padding: 6px 14px 7px;
  border: 1.5px solid var(--cayuga-header-gold-light);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cayuga-site-header__member-icon {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--cayuga-header-gold-light);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s ease;
}

.cayuga-site-header__member-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1;
  white-space: nowrap;
}

.cayuga-site-header__member-copy small {
  color: var(--cayuga-header-gold-light);
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.13em;
  transition: color 0.2s ease;
}

.cayuga-site-header__member-copy strong {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.cayuga-site-header__member:hover,
.cayuga-site-header__member:focus-visible {
  transform: translateY(-2px);
  background: var(--cayuga-header-gold-light);
  box-shadow: 0 8px 18px rgba(1, 23, 58, 0.2);
  color: var(--cayuga-header-navy-deep) !important;
}

.cayuga-site-header__member:hover .cayuga-site-header__member-icon,
.cayuga-site-header__member:focus-visible .cayuga-site-header__member-icon {
  stroke: var(--cayuga-header-navy-deep);
}

.cayuga-site-header__member:hover .cayuga-site-header__member-copy small,
.cayuga-site-header__member:focus-visible .cayuga-site-header__member-copy small {
  color: var(--cayuga-header-navy-deep);
}

.cayuga-site-header__trial {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 178px;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: linear-gradient(135deg, #f4d36f 0%, #d5a52f 100%);
  box-shadow: 0 8px 20px rgba(1, 23, 58, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #082b60 !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-decoration: none !important;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cayuga-site-header__trial:hover,
.cayuga-site-header__trial:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.cayuga-site-header__menu-button {
  display: none;
}

.cayuga-site-header__wave {
  position: absolute;
  z-index: 1;
  left: 0;
  top: calc(100% - 1px);
  bottom: auto;
  display: block;
  width: 100%;
  height: 50px;
  overflow: visible;
  pointer-events: none;
}

.cayuga-site-header__wave-front {
  fill: url("#cayuga-header-wave-gradient");
}

.cayuga-site-header__wave-gold {
  fill: none;
  stroke: var(--cayuga-header-gold);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.cayuga-site-header__wave-shape--mobile {
  display: none;
}

/* モバイルメニュー */
body .cayuga-mobile-menu {
  position: fixed;
  z-index: 12000;
  inset: 0;
  display: block !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  transition: visibility 0s linear 0.32s, opacity 0.25s ease;
}

body .cayuga-mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.cayuga-mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 18, 48, 0.68);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.cayuga-mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(88vw, 420px);
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: max(22px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 110% -10%, rgba(212, 174, 75, 0.18), transparent 32%),
    var(--cayuga-header-ivory);
  box-shadow: -18px 0 50px rgba(0, 20, 55, 0.24);
  color: var(--cayuga-header-text);
  transform: translateX(102%);
  transition: transform 0.32s cubic-bezier(0.22, 0.75, 0.2, 1);
}

.cayuga-mobile-menu.is-open .cayuga-mobile-menu__panel {
  transform: translateX(0);
}

.cayuga-mobile-menu__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(10, 48, 99, 0.14);
}

.cayuga-mobile-menu__logo {
  display: flex;
  flex-direction: column;
  width: min(220px, calc(100% - 56px));
  color: var(--cayuga-header-text) !important;
  text-decoration: none !important;
}

.cayuga-mobile-menu__logo img {
  width: 100%;
  height: auto;
  margin: 0 !important;
}

.cayuga-mobile-menu__logo span {
  margin: 3px 0 0 6px;
  color: var(--cayuga-header-text);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cayuga-mobile-menu__close {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(8, 49, 108, 0.22);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.cayuga-mobile-menu__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--cayuga-header-navy);
}

.cayuga-mobile-menu__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.cayuga-mobile-menu__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.cayuga-mobile-menu__eyebrow {
  margin: 22px 0 7px;
  color: #b58925;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.cayuga-mobile-menu__nav {
  display: block;
  margin: 0;
  padding: 0;
}

.cayuga-mobile-menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 0 5px;
  border-bottom: 1px solid rgba(10, 48, 99, 0.12);
  color: var(--cayuga-header-text) !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-decoration: none !important;
}

.cayuga-mobile-menu__nav a span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--cayuga-header-gold);
  vertical-align: 2px;
}

.cayuga-mobile-menu__nav a i,
.cayuga-mobile-menu__member i,
.cayuga-mobile-menu__trial i {
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.cayuga-mobile-menu__member {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  margin: 22px 0 0;
  padding: 10px 16px;
  border: 1.5px solid var(--cayuga-header-gold);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(242, 212, 118, 0.18) 0%, rgba(255, 255, 255, 0.82) 100%);
  box-shadow: 0 8px 20px rgba(4, 38, 85, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: var(--cayuga-header-navy-deep) !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.cayuga-mobile-menu__member-icon {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #b58925;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cayuga-mobile-menu__member-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  line-height: 1;
}

.cayuga-mobile-menu__member-copy small {
  color: #a67b19;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
}

.cayuga-mobile-menu__member-copy strong {
  color: var(--cayuga-header-navy-deep);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.cayuga-mobile-menu__member i {
  flex: 0 0 auto;
  color: #b58925;
}

.cayuga-mobile-menu__member:hover,
.cayuga-mobile-menu__member:focus-visible {
  transform: translateY(-2px);
  background: rgba(242, 212, 118, 0.32);
  box-shadow: 0 10px 24px rgba(4, 38, 85, 0.12);
}

.cayuga-mobile-menu__trial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  margin: 16px 0 18px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f2d477 0%, #d3a22d 100%);
  box-shadow: 0 10px 24px rgba(4, 38, 85, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: #062b61 !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none !important;
}

.cayuga-mobile-menu__sub-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding-top: 4px;
}

.cayuga-mobile-menu__sub-links a {
  color: rgba(7, 43, 94, 0.72) !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

body.cayuga-menu-open {
  overflow: hidden !important;
  touch-action: none;
}

@media (max-width: 1050px) {
  body .cayuga-site-header {
    margin-bottom: 0;
  }

  .cayuga-site-header__bar,
  .cayuga-site-header__inner {
    min-height: 64px;
  }

  .cayuga-site-header__inner {
    width: 100%;
    padding: 4px 15px 5px;
    justify-content: space-between;
    gap: 8px;
  }

  .cayuga-site-header__brand {
    width: min(168px, calc(100vw - 76px));
  }

  .cayuga-site-header__brand img {
    width: min(158px, calc(100vw - 84px));
    max-height: 50px;
  }

  .cayuga-site-header__brand span {
    display: none;
  }

  .cayuga-site-header__desktop-nav,
  .cayuga-site-header__member,
  .cayuga-site-header__trial {
    display: none !important;
  }

  .cayuga-site-header__menu-button {
    flex: 0 0 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 54px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }

  .cayuga-site-header__menu-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 39px;
    height: 39px;
    border: 2px solid var(--cayuga-header-gold);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  .cayuga-site-header__menu-ring span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 5px;
    background: #fff;
  }

  .cayuga-site-header__menu-label {
    margin-top: 1px;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
  }

  .cayuga-site-header__wave {
    top: calc(100% - 7px);
    bottom: auto;
    height: 22px;
  }

  .cayuga-site-header__wave-shape--desktop {
    display: none;
  }

  .cayuga-site-header__wave-shape--mobile {
    display: inline;
  }

  .cayuga-site-header__wave-gold {
    stroke-width: 2;
  }
}

@media (max-width: 374px) {
  .cayuga-site-header__inner {
    padding-right: 10px;
    padding-left: 13px;
  }

  .cayuga-site-header__brand {
    width: calc(100vw - 68px);
  }

  .cayuga-site-header__brand img {
    width: min(150px, calc(100vw - 76px));
  }

  .cayuga-site-header__menu-button {
    flex-basis: 44px;
    width: 44px;
    height: 52px;
  }

  .cayuga-site-header__menu-ring {
    width: 37px;
    height: 37px;
  }

  .cayuga-mobile-menu__panel {
    width: 92vw;
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cayuga-site-header__desktop-nav a::after,
  .cayuga-site-header__member,
  .cayuga-site-header__trial,
  .cayuga-mobile-menu__member,
  .cayuga-mobile-menu,
  .cayuga-mobile-menu__panel {
    transition: none !important;
  }
}
