/*
Theme Name: 帝王學deお繋ぎしマッチング
Theme URI: https://your-domain.com
Author: Your Name
Description: 帝王學でつながるマッチングコミュニティ。白基調に赤い糸が映えるエレガントなデザイン。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: enmusubi
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colors */
  --white:        #ffffff;
  --off-white:    #faf8f6;
  --warm-white:   #f5f0eb;
  --cream:        #ede5dc;

  --red:          #a52020;
  --red-bright:   #c0392b;
  --red-light:    #d9534f;
  --red-pale:     rgba(165, 32, 32, 0.07);
  --red-muted:    rgba(165, 32, 32, 0.15);
  --red-border:   rgba(165, 32, 32, 0.22);
  --red-thread:   rgba(165, 32, 32, 0.4);

  /* Accent: warm gold for premium feel */
  --gold:         #9d7c3a;
  --gold-pale:    rgba(157, 124, 58, 0.1);

  --text-dark:    #1c1410;
  --text-mid:     #3d342e;
  --text-soft:    #6b5e57;
  --text-muted:   #9c8f88;

  --surface-0:    #ffffff;
  --surface-1:    #faf8f6;
  --surface-2:    #f2ece5;
  --surface-dark: #1c1410;

  /* Typography */
  --font-display: 'Zen Antique Soft', 'Kaisei Opti', 'Noto Serif JP', '游明朝', serif;
  --font-serif:   'Kaisei Opti', 'Noto Serif JP', '游明朝', serif;
  --font-en:      'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Cormorant SC', 'Playfair Display', Georgia, serif;
  --font-sans:    'Hiragino Sans', 'Yu Gothic UI', sans-serif;

  /* Spacing */
  --sp-2xs: 0.375rem;
  --sp-xs:  0.75rem;
  --sp-sm:  1.25rem;
  --sp-md:  2.5rem;
  --sp-lg:  5rem;
  --sp-xl:  8rem;
  --sp-2xl: 12rem;

  /* Layout */
  --container: 1140px;
  --header-h:  70px;

  /* Easing */
  --ease-out:  cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-in:   cubic-bezier(0.4, 0.0, 1, 1);
  --ease-mid:  cubic-bezier(0.4, 0.0, 0.2, 1);

  --dur-fast:  180ms;
  --dur-mid:   420ms;
  --dur-slow:  700ms;
  --dur-xslow: 1050ms;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--white);
  color: var(--text-dark);
  font-family: var(--font-serif);
  line-height: 1.9;
  overflow-x: hidden;
}

img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

.section {
  padding: var(--sp-xl) 0;
  position: relative;
}

/* ============================================================
   THREAD DECORATORS  (赤い糸装飾)
   ============================================================ */
/* 縦糸: ページ全体左右に薄く走る */
body::before,
body::after {
  content: '';
  position: fixed;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--red-thread) 12%,
    var(--red-thread) 88%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0.28;
}
body::before { left: 5%; }
body::after  { right: 5%; }

.thread-v {
  display: block;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--red), transparent);
}

.thread-h {
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--red), transparent);
}

.thread-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transition:
    opacity  var(--dur-slow)  var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}
[data-reveal="up"]    { transform: translateY(56px); }
[data-reveal="left"]  { transform: translateX(-64px); }
[data-reveal="right"] { transform: translateX(64px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="fade"]  { transform: none; }

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }
[data-delay="600"] { transition-delay: 600ms; }
[data-delay="700"] { transition-delay: 700ms; }
[data-delay="800"] { transition-delay: 800ms; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-md);
  transition:
    background var(--dur-mid) var(--ease-mid),
    box-shadow var(--dur-mid) var(--ease-mid);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--red-border);
}

/* サイトロゴ */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1;
}

.site-logo__mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.site-logo__jp {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  line-height: 1.2;
}

.site-logo__en {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  letter-spacing: 0.42em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */
.menu-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 7px;
  position: relative;
  z-index: 901;
  flex-shrink: 0;
}

.menu-toggle__bar {
  display: block;
  height: 1.5px;
  background: var(--text-dark);
  border-radius: 0;
  transition:
    transform var(--dur-mid) var(--ease-mid),
    opacity  var(--dur-fast) var(--ease-mid),
    width    var(--dur-mid)  var(--ease-mid);
}
.menu-toggle__bar:nth-child(1) { width: 26px; }
.menu-toggle__bar:nth-child(2) { width: 18px; }
.menu-toggle__bar:nth-child(3) { width: 26px; }

.menu-toggle.is-active .menu-toggle__bar:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
  width: 26px;
}
.menu-toggle.is-active .menu-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.is-active .menu-toggle__bar:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
  width: 26px;
}

/* ============================================================
   NAV OVERLAY (右からスライド)
   ============================================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 850;
  pointer-events: none;
}

.nav-overlay__scrim {
  position: absolute;
  inset: 0;
  background: rgba(28, 20, 16, 0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-mid);
}

.nav-overlay__drawer {
  position: absolute;
  top: 0; right: 0;
  width: min(420px, 90vw);
  height: 100%;
  background: var(--white);
  border-left: 1px solid var(--red-border);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  /* 赤い縦糸ライン */
  background-image: linear-gradient(
    to bottom,
    transparent,
    var(--red-muted) 20%,
    var(--red-muted) 80%,
    transparent
  );
  background-size: 1px 100%;
  background-position: 44px 0;
  background-repeat: no-repeat;
}

.nav-overlay.is-open { pointer-events: all; }
.nav-overlay.is-open .nav-overlay__scrim  { opacity: 1; }
.nav-overlay.is-open .nav-overlay__drawer { transform: translateX(0); }

.nav-drawer__inner {
  padding: calc(var(--header-h) + var(--sp-md)) var(--sp-md) var(--sp-md) 68px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nav-drawer__label {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: var(--sp-md);
}

/* メニューリスト */
.nav-menu__item {
  border-bottom: 1px solid var(--cream);
}

.nav-menu__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  transition:
    color        var(--dur-fast) var(--ease-mid),
    padding-left var(--dur-fast) var(--ease-mid);
  position: relative;
}

.nav-menu__link::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0);
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}

.nav-menu__link:hover {
  color: var(--red);
  padding-left: 6px;
}
.nav-menu__link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav-drawer__footer {
  margin-top: auto;
  padding-top: var(--sp-md);
  border-top: 1px solid var(--cream);
}

.nav-drawer__cta {
  display: block;
  text-align: center;
  padding: 0.9rem 2rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: background var(--dur-fast);
}
.nav-drawer__cta:hover { background: var(--red-bright); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background    var(--dur-fast),
    color         var(--dur-fast),
    border-color  var(--dur-fast),
    transform     var(--dur-fast);
}
.btn:active { transform: scale(0.97); }

.btn--red {
  background: var(--red);
  color: var(--white);
  border: 1.5px solid var(--red);
}
.btn--red:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
}

.btn--outline {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}
.btn--outline:hover {
  background: var(--red-pale);
}

.btn__arrow {
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(5px); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--off-white);
}

/* 全画面メイン画像 */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 白いオーバーレイ（テキスト可読性） */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(255,255,255,0.30) 0%,
      rgba(255,255,255,0.60) 45%,
      rgba(255,255,255,0.80) 100%
    );
}

/* 赤い糸 SVGアニメーション */
.hero__thread-svg {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

/* コンテンツ */
.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: calc(var(--header-h) + var(--sp-lg)) var(--sp-md) var(--sp-xl);
  max-width: 900px;
  width: 100%;
}

/* ロゴ大（ヒーロー用） */
.hero__logo-wrap {
  margin-bottom: var(--sp-md);
}

.hero__logo {
  width: clamp(180px, 30vw, 280px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 24px rgba(165,32,32,0.12));
}

.hero__tagline {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.55em;
  color: var(--red);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: var(--sp-sm);
}
.hero__tagline::before,
.hero__tagline::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--red);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: var(--sp-xs);
}

.hero__title .accent { color: var(--red); }

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 2.1;
  color: var(--text-soft);
  margin-bottom: var(--sp-md);
}

.hero__cta {
  display: flex;
  gap: var(--sp-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* スクロールインジケーター */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--sp-sm);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll-hint span {
  font-family: var(--font-ui);
  font-size: 0.56rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll-bar {
  width: 1px;
  height: 48px;
  overflow: hidden;
  position: relative;
}

.hero__scroll-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 1px;
  height: 100%;
  background: var(--red);
  animation: scrollSlide 2s ease-in-out infinite;
}

@keyframes scrollSlide {
  0%   { transform: translateY(-100%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* ============================================================
   SECTION HEADER (共通)
   ============================================================ */
.section-head {
  text-align: center;
  margin-bottom: var(--sp-lg);
}

.section-head__en {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.52em;
  color: var(--red);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.section-head__line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: var(--sp-xs) auto 0;
}

.section-head__desc {
  font-family: var(--font-serif);
  font-size: 0.94rem;
  line-height: 2.1;
  color: var(--text-soft);
  max-width: 540px;
  margin: var(--sp-sm) auto 0;
}

/* ============================================================
   FEATURES  (交互レイアウト: 左画像→右画像→)
   ============================================================ */
.features { background: var(--white); }

/* 各ローの区切り */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
  border-bottom: 1px solid var(--cream);
  overflow: hidden;
}
.feature-row:last-child { border-bottom: none; }

/* 偶数行: 画像が右に */
.feature-row--reverse {
  direction: rtl;
}
.feature-row--reverse > * {
  direction: ltr;
}

/* 画像カラム */
.feature-row__img {
  position: relative;
  overflow: hidden;
  background: var(--warm-white);
  min-height: 460px;
}

.feature-row__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.feature-row__img:hover img {
  transform: scale(1.05);
}

/* プレースホルダー（画像未設定時） */
.feature-row__placeholder {
  width: 100%;
  height: 100%;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--sp-xs);
  background: var(--warm-white);
}

.feature-row__placeholder-emoji {
  font-size: 3.5rem;
  line-height: 1;
}

.feature-row__placeholder span {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* 赤い糸 区切りライン */
.feature-row__img::after {
  content: '';
  position: absolute;
  top: 8%; bottom: 8%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--red-thread) 30%,
    var(--red-thread) 70%,
    transparent
  );
  pointer-events: none;
}
.feature-row:not(.feature-row--reverse) .feature-row__img::after { right: 0; }
.feature-row--reverse .feature-row__img::after                   { left: 0; }

/* テキストカラム */
.feature-row__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-lg);
}

.feature-row__num {
  font-family: var(--font-en);
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(165, 32, 32, 0.065);
  display: block;
  margin-bottom: -1.6rem;
  letter-spacing: 0.02em;
}

.feature-row__tag {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.48em;
  color: var(--red);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: var(--sp-sm);
  position: relative;
}
.feature-row__tag::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

.feature-row__emoji {
  font-size: 2rem;
  margin-bottom: var(--sp-xs);
  display: block;
  line-height: 1;
}

.feature-row__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.45;
  color: var(--text-dark);
  margin-bottom: var(--sp-sm);
}

.feature-row__title .hl { color: var(--red); }

.feature-row__desc {
  font-family: var(--font-serif);
  font-size: 0.93rem;
  line-height: 2.2;
  color: var(--text-soft);
  margin-bottom: var(--sp-md);
  border-left: 2px solid var(--red-border);
  padding-left: 1.2rem;
}

.feature-row__link {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  color: var(--red);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--dur-fast);
}
.feature-row__link:hover { gap: 0.9rem; }

/* ============================================================
   VALUES GRID (価値訴求 4カード)
   ============================================================ */
.values {
  background: var(--surface-1);
  position: relative;
  overflow: hidden;
}

.values::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 8%, var(--red-border) 35%, var(--red-border) 65%, transparent 92%);
}

.values::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 8%, var(--red-border) 35%, var(--red-border) 65%, transparent 92%);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--cream);
  border: 1px solid var(--cream);
}

.value-card {
  background: var(--white);
  padding: var(--sp-md) var(--sp-sm);
  position: relative;
  overflow: hidden;
  transition: background var(--dur-mid) var(--ease-mid);
}

.value-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background var(--dur-mid);
}

.value-card:hover {
  background: rgba(165, 32, 32, 0.035);
}
.value-card:hover::before {
  background: linear-gradient(to right, transparent, var(--red), transparent);
}

.value-card__icon {
  font-size: 2.4rem;
  margin-bottom: var(--sp-sm);
  display: block;
  line-height: 1;
}

.value-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.value-card__sub {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.38em;
  color: var(--red);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--sp-sm);
}

.value-card__body {
  font-size: 0.88rem;
  line-height: 2;
  color: var(--text-soft);
}

/* ============================================================
   PARALLAX QUOTE
   ============================================================ */
.parallax-quote {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--warm-white);
}

.parallax-quote__bg {
  position: absolute;
  inset: -30%;
  will-change: transform;
  pointer-events: none;
}

/* 赤い糸のSVGパターン */
.parallax-quote__threads {
  position: absolute;
  inset: 0;
  will-change: transform;
  pointer-events: none;
}

.parallax-quote__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--sp-xl) var(--sp-md);
  max-width: 780px;
}

.parallax-quote__kana {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.52em;
  color: var(--red);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--sp-sm);
}

.parallax-quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 2;
  color: var(--text-dark);
  margin-bottom: var(--sp-sm);
}

.parallax-quote__text em {
  font-style: normal;
  color: var(--red);
}

.parallax-quote__attr {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 8%, var(--red-border) 30%, var(--red-border) 70%, transparent 92%);
}

/* 背景 大文字装飾 */
.cta-bg-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 13rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(165, 32, 32, 0.032);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.cta-section__en {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.52em;
  color: var(--red);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--sp-xs);
}

.cta-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: var(--sp-sm);
}

.cta-section__body {
  font-size: 0.93rem;
  line-height: 2.2;
  color: var(--text-soft);
  max-width: 460px;
  margin: 0 auto var(--sp-md);
}

.cta-section__btns {
  display: flex;
  gap: var(--sp-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--surface-dark);
  color: rgba(255,255,255,0.65);
  padding: var(--sp-lg) var(--sp-md) var(--sp-md);
  position: relative;
  overflow: hidden;
}

/* 赤い糸ライン（フッター上端） */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent 5%, var(--red) 25%, var(--red) 75%, transparent 95%);
  opacity: 0.55;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-md);
  align-items: start;
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--sp-md);
}





.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.9);
  line-height: 1.2;
}

.footer-brand__desc {
  font-size: 0.82rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.45);
  max-width: 300px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: right;
}

.footer-nav a {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  transition: color var(--dur-fast);
}
.footer-nav a:hover { color: var(--red-light); }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-xs);
}

.footer-copy {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --sp-lg: 3.5rem;
    --sp-xl: 5.5rem;
    --header-h: 62px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .feature-row--reverse {
    direction: ltr;
  }

  .feature-row__img { min-height: 300px; }
  .feature-row__img::after { display: none; }

  .feature-row__body {
    padding: var(--sp-md) var(--sp-md);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--sp-sm);
  }
}

@media (max-width: 600px) {
  :root {
    --sp-xl: 4rem;
    --sp-lg: 2.5rem;
    --sp-md: 1.5rem;
  }

  body::before, body::after { display: none; }

  .hero__cta { flex-direction: column; align-items: center; }
  .cta-section__btns { flex-direction: column; align-items: center; }

  .values-grid { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (min-width: 1400px) {
  :root {
    --sp-xl: 10rem;
    --sp-2xl: 14rem;
  }
}

/* ============================================================
   PAGE INNER (固定ページ用)
   ============================================================ */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + var(--sp-lg)) var(--sp-md) var(--sp-lg);
  background: var(--surface-1);
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--red-border), transparent);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  line-height: 1.3;
}

.page-hero__sub {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.48em;
  color: var(--red);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6rem;
}

.page-content {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 2.2;
  color: var(--text-soft);
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  margin: var(--sp-md) 0 var(--sp-sm);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--red-border);
}

.page-content p  { margin-bottom: var(--sp-sm); }
.page-content strong { color: var(--red); font-weight: 700; }

.page-content a {
  color: var(--red);
  border-bottom: 1px solid var(--red-border);
  transition: border-color var(--dur-fast);
}
.page-content a:hover { border-color: var(--red); }

/* ============================================================
   INNER PAGE STYLES (白基調 内部ページ共通)
   ============================================================ */

/* ── ページヒーロー ── */
.pg-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--sp-md);
  background: var(--surface-1);
  overflow: hidden;
}

.pg-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 8%, var(--red-border) 35%, var(--red-border) 65%, transparent 92%);
}

.pg-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pg-hero__content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + var(--sp-lg));
}

.pg-hero__en {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.52em;
  color: var(--red);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.pg-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: var(--sp-sm);
}

.pg-hero__line {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── ページ本文共通 ── */
.pg-body { background: var(--white); }

.pg-intro {
  margin-bottom: var(--sp-lg);
  text-align: center;
}

.pg-intro__lead {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 2.1;
  color: var(--text-mid);
}

/* pg-content: WPエディタ出力 */
.pg-content {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 2.3;
  color: var(--text-soft);
  margin: var(--sp-lg) 0;
}
.pg-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  margin: var(--sp-md) 0 var(--sp-sm);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--red-border);
}
.pg-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  margin: var(--sp-sm) 0 0.5rem;
}
.pg-content p  { margin-bottom: 1.2em; }
.pg-content strong { color: var(--red); font-weight: 700; }
.pg-content a {
  color: var(--red);
  border-bottom: 1px solid var(--red-border);
  transition: border-color var(--dur-fast);
}
.pg-content a:hover { border-color: var(--red); }

/* ── CTA ブロック ── */
.pg-cta {
  text-align: center;
  margin-top: var(--sp-xl);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--cream);
}
.pg-cta__thread { margin-bottom: var(--sp-sm); }
.pg-cta__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  margin-bottom: var(--sp-xs);
}
.pg-cta__body {
  font-size: 0.93rem;
  line-height: 2.1;
  color: var(--text-soft);
  margin-bottom: var(--sp-md);
}

/* ============================================================
   代表挨拶専用
   ============================================================ */
.greeting-profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-lg);
  align-items: start;
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--cream);
}

.greeting-profile__img-wrap {
  position: relative;
}

.greeting-profile__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.greeting-profile__img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--warm-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
}
.greeting-profile__img-placeholder span {
  font-size: 3rem;
  line-height: 1;
}
.greeting-profile__img-placeholder p {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* 赤い糸 縦ライン（写真左端） */
.greeting-profile__thread {
  position: absolute;
  top: 0; bottom: 0; left: -12px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--red-thread), transparent);
}

.greeting-profile__role {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.45em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.greeting-profile__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  margin-bottom: var(--sp-sm);
}
.greeting-profile__tagline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--red);
  font-style: italic;
  line-height: 1.8;
  padding-left: 1rem;
  border-left: 2px solid var(--red-border);
}

@media (max-width: 700px) {
  .greeting-profile {
    grid-template-columns: 1fr;
  }
  .greeting-profile__img-wrap { max-width: 240px; margin: 0 auto; }
  .greeting-profile__thread { display: none; }
}

/* ============================================================
   入会案内専用
   ============================================================ */
.join-steps { margin: var(--sp-lg) 0; }

.join-steps__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  margin-bottom: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.join-steps__en {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  color: var(--red);
  text-transform: uppercase;
}

.join-steps__list { display: flex; flex-direction: column; }

.join-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--sp-sm);
  align-items: start;
}
.join-step__num {
  font-family: var(--font-en);
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(165, 32, 32, 0.1);
  line-height: 1;
  padding-top: 0.3rem;
  text-align: center;
}
.join-step__body {
  background: var(--surface-1);
  border-left: 2px solid var(--red-border);
  padding: var(--sp-sm) var(--sp-md);
  position: relative;
}
.join-step__body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--red-border), transparent);
}
.join-step__icon { font-size: 1.5rem; display: block; margin-bottom: 0.3rem; line-height: 1; }
.join-step__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.join-step__desc { font-size: 0.9rem; line-height: 2; color: var(--text-soft); }
.join-step__connector { grid-column: 1 / -1; padding-left: 27px; }

/* 会員特典グリッド */
.join-benefits { margin: var(--sp-xl) 0; }
.join-benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--cream);
  border: 1px solid var(--cream);
  margin-top: var(--sp-md);
}
.join-benefit-card {
  background: var(--white);
  padding: var(--sp-md) var(--sp-sm);
  transition: background var(--dur-mid);
}
.join-benefit-card:hover { background: var(--red-pale); }
.join-benefit-card__icon { font-size: 2rem; display: block; margin-bottom: var(--sp-xs); line-height: 1; }
.join-benefit-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.join-benefit-card__desc { font-size: 0.85rem; line-height: 1.95; color: var(--text-soft); }

/* ============================================================
   コミュニティ専用（交互レイアウト 小型版）
   ============================================================ */
.community-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 360px;
  border-bottom: 1px solid var(--cream);
  overflow: hidden;
  margin: 0 calc(-1 * var(--sp-md));
}
.community-feature-row:last-child { border-bottom: none; }
.community-feature-row--reverse { direction: rtl; }
.community-feature-row--reverse > * { direction: ltr; }

.community-feature-row__img {
  overflow: hidden;
  min-height: 300px;
}
.community-feature-row__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.community-feature-row__img:hover img { transform: scale(1.04); }

.community-feature-row__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-md) var(--sp-lg);
}
.community-feature-row__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  margin-bottom: var(--sp-sm);
  line-height: 1.5;
}
.community-feature-row__desc {
  font-size: 0.92rem;
  line-height: 2.1;
  color: var(--text-soft);
  border-left: 2px solid var(--red-border);
  padding-left: 1rem;
}

@media (max-width: 700px) {
  .community-feature-row {
    grid-template-columns: 1fr;
    direction: ltr;
    margin: 0;
  }
  .community-feature-row--reverse { direction: ltr; }
  .community-feature-row__img { min-height: 220px; }
  .community-feature-row__body { padding: var(--sp-md); }
}

/* ============================================================
   マイページ専用
   ============================================================ */
.mypage-box {
  background: var(--surface-1);
  border: 1px solid var(--red-border);
  padding: var(--sp-lg) var(--sp-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--sp-xl);
}
.mypage-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--red), transparent);
}
.mypage-box__icon { font-size: 2.5rem; display: block; margin-bottom: var(--sp-sm); line-height: 1; }
.mypage-box__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  margin-bottom: var(--sp-xs);
}
.mypage-box__body {
  font-size: 0.93rem;
  line-height: 2.1;
  color: var(--text-soft);
  margin-bottom: var(--sp-md);
}
.mypage-box__note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: var(--sp-sm);
}
.mypage-box__note a { color: var(--red); border-bottom: 1px solid var(--red-border); }

/* WP ログインフォーム カスタマイズ */
#loginform { text-align: left; max-width: 380px; margin: 0 auto; }
#loginform label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--text-soft);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
  margin-top: var(--sp-sm);
}
#loginform input[type="text"],
#loginform input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--cream);
  background: var(--white);
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--dur-fast);
}
#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
  border-color: var(--red-border);
}
#loginform input[type="submit"] {
  width: 100%;
  margin-top: var(--sp-md);
  padding: 0.9rem 2rem;
  background: var(--red);
  color: var(--white);
  border: none;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur-fast);
}
#loginform input[type="submit"]:hover { background: var(--red-bright); }

@media (max-width: 600px) {
  .mypage-box { padding: var(--sp-md); }
}

/* ============================================================
   LOGIN / MYPAGE BUTTON（白ページ用）
   ============================================================ */
.btn--login {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid rgba(26, 20, 16, 0.22);
}
.btn--login:hover {
  background: rgba(26, 20, 16, 0.05);
  border-color: rgba(26, 20, 16, 0.4);
}

.btn--mypage {
  background: transparent;
  color: var(--red);
  border: 1.5px solid rgba(165, 32, 32, 0.3);
}
.btn--mypage:hover {
  background: rgba(165, 32, 32, 0.05);
  border-color: var(--red);
}

/* ドロワー内ログインボタン */
.nav-drawer__login {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: var(--sp-sm);
  padding: 0.8rem 1.5rem;
  border: 1.5px solid rgba(165, 32, 32, 0.25);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  color: var(--red);
  text-transform: uppercase;
  transition: background var(--dur-fast), color var(--dur-fast);
  justify-content: center;
}
.nav-drawer__login:hover {
  background: var(--red);
  color: var(--white);
}
.nav-drawer__login-icon { font-size: 0.8rem; }



/* ============================================================
   認証・登録フォーム共通（page-register / page-contact）
   ============================================================ */
.register-page,
.auth-wrap {
  background: var(--off-white);
  min-height: 100svh;
  padding: calc(var(--header-h) + var(--sp-lg)) var(--sp-md) var(--sp-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ロゴエリア */
.auth-logo {
  text-align: center;
  margin-bottom: var(--sp-md);
}

.auth-logo__img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto var(--sp-xs);
}

.auth-logo__name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--red);
}

/* カード */
.auth-card {
  background: var(--white);
  width: 100%;
  max-width: 560px;
  padding: var(--sp-lg) var(--sp-xl);
  border-top: 2px solid var(--red);
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}

.auth-card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
  text-align: center;
}

.auth-card__sub {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--cream);
}

/* エラー */
.auth-errors {
  background: rgba(165,32,32,0.06);
  border: 1px solid rgba(165,32,32,0.2);
  border-left: 3px solid var(--red);
  padding: var(--sp-sm) var(--sp-md);
  margin-bottom: var(--sp-md);
}

.auth-error-item {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--red);
  line-height: 1.8;
}

/* フォーム */
.auth-form { display: flex; flex-direction: column; gap: var(--sp-sm); }

.auth-field { display: flex; flex-direction: column; gap: 0.35rem; }

.auth-field--check { flex-direction: row; align-items: flex-start; gap: var(--sp-xs); }

.auth-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  color: var(--text-soft);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-required {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--red);
  border: 1px solid rgba(165,32,32,0.3);
  padding: 1px 5px;
  text-transform: none;
}

.auth-input-wrap {
  position: relative;
  display: flex;
}

.auth-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5ddd5;
  background: #fdfbf9;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.auth-input:focus {
  border-color: rgba(165,32,32,0.35);
  background: var(--white);
}

.auth-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.85;
}

.auth-toggle-pass {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 0 0.9rem;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-left: 1px solid #e5ddd5;
  cursor: pointer;
  transition: color var(--dur-fast);
}
.auth-toggle-pass:hover { color: var(--red); }

.auth-hint {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  line-height: 1.6;
}

/* プラン選択グリッド */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.55rem;
}

.plan-tile {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1rem;
  border: 1px solid #d4c8bc;
  background: var(--warm-white);
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast);
  position: relative;
}

.plan-tile input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.plan-tile:hover {
  border-color: rgba(165,32,32,0.35);
  background: rgba(165,32,32,0.03);
}

.plan-tile:has(input:checked),
.plan-tile.is-selected {
  border-color: var(--red);
  background: var(--red);
}

.plan-tile:has(input:checked) .plan-tile__name,
.plan-tile.is-selected .plan-tile__name {
  color: var(--white);
}

.plan-tile:has(input:checked) .plan-tile__desc,
.plan-tile.is-selected .plan-tile__desc {
  color: rgba(255,255,255,0.75);
}

.plan-tile__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.plan-tile__desc {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* チェックボックス同意 */
.auth-check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--text-soft);
  cursor: pointer;
  line-height: 1.7;
}

.auth-check-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--red);
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.auth-check-label a {
  color: var(--red);
  border-bottom: 1px solid rgba(165,32,32,0.25);
}

/* 送信ボタン */
.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 0.88rem;
  letter-spacing: 0.28em;
  margin-top: var(--sp-xs);
}

/* ログインリンク */
.auth-login-link {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--sp-sm);
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--cream);
}

.auth-login-link a {
  color: var(--red);
  border-bottom: 1px solid rgba(165,32,32,0.25);
  transition: border-color var(--dur-fast);
}
.auth-login-link a:hover { border-color: var(--red); }

/* お問い合わせ完了 */
.contact-success {
  text-align: center;
  padding: var(--sp-xl) var(--sp-md);
}

.contact-success__icon {
  font-size: 2.5rem;
  color: var(--red);
  margin-bottom: var(--sp-sm);
  opacity: 0.7;
}

.contact-success__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  margin-bottom: var(--sp-sm);
}

.contact-success__body {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 2.1;
  color: var(--text-soft);
}

/* レスポンシブ */
@media (max-width: 600px) {
  .auth-card { padding: var(--sp-md) var(--sp-md); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
}



/* ============================================================
   フッターロゴ（確定版）
   ============================================================ */
.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.footer-brand__img,
.footer-brand__logo img {
  width: 36px !important;
  height: 36px !important;
  object-fit: contain;
  background: var(--white);
  padding: 2px;
  display: block;
  /* filterを絶対に使わない */
  filter: none !important;
}

/* ============================================================
   プラン選択（登録ページ）改訂版
   ============================================================ */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.plan-tile {
  display: flex;
  flex-direction: column;
  padding: 0.9rem 1rem;
  border: 1px solid #d4c8bc;
  background: var(--warm-white);
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast);
  position: relative;
  gap: 0.15rem;
}

.plan-tile input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.plan-tile:hover {
  border-color: rgba(165,32,32,0.35);
  background: rgba(165,32,32,0.03);
}

.plan-tile:has(input:checked),
.plan-tile.is-selected {
  border-color: var(--red);
  background: var(--red);
}

.plan-tile__key {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.plan-tile:has(input:checked) .plan-tile__key,
.plan-tile.is-selected .plan-tile__key {
  color: rgba(255,255,255,0.7);
}

.plan-tile__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-dark);
}

.plan-tile:has(input:checked) .plan-tile__name,
.plan-tile.is-selected .plan-tile__name {
  color: var(--white);
}

.plan-tile__price {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.plan-tile:has(input:checked) .plan-tile__price,
.plan-tile.is-selected .plan-tile__price {
  color: rgba(255,255,255,0.8);
}

/* 永久マックスプラン */
.plan-max-wrap {
  margin-top: 0.4rem;
}

.plan-tile--max {
  border: 1.5px solid #9d7c3a;
  background: linear-gradient(135deg, #fdfaf3, #f8f0de);
}

.plan-tile--max:hover {
  border-color: #c8a046;
  background: linear-gradient(135deg, #fdf7e8, #f5e8c0);
}

.plan-tile--max:has(input:checked),
.plan-tile--max.is-selected {
  border-color: #9d7c3a;
  background: linear-gradient(135deg, #9d7c3a, #c8a046);
}

.plan-tile__key--max {
  color: #9d7c3a;
  font-weight: 600;
}

.plan-tile--max:has(input:checked) .plan-tile__key--max,
.plan-tile--max.is-selected .plan-tile__key--max {
  color: rgba(255,255,255,0.8);
}

.plan-tile--max .plan-tile__name {
  font-size: 1rem;
  color: #5c4518;
}

.plan-tile--max:has(input:checked) .plan-tile__name,
.plan-tile--max.is-selected .plan-tile__name {
  color: var(--white);
}

.plan-tile--max .plan-tile__price {
  color: #9d7c3a;
  font-weight: 500;
}

.plan-tile--max:has(input:checked) .plan-tile__price,
.plan-tile--max.is-selected .plan-tile__price {
  color: rgba(255,255,255,0.85);
}

@media (max-width: 480px) {
  .plan-grid { grid-template-columns: 1fr; }
}
