@charset "UTF-8";
/* ============================================================
 * ひでまる LP - Stylesheet
 * https://hidemaru.stek-swimming.org/
 *
 * Theme: deep navy + warm gold
 * Notes: --accent / --accent-soft はindex.php側で時間帯により上書き
 * ============================================================ */

/* ============================================================
   Design tokens (deep navy + gold, warm)
   ============================================================ */
:root {
  /* Base palette */
  --ink:          #0f1a2e;   /* deep navy — primary dark */
  --ink-2:        #17243d;   /* slightly lighter navy */
  --ink-3:        #1f3052;   /* raised surface */
  --paper:        #faf6ee;   /* warm off-white */
  --paper-2:      #f2ebdd;   /* warmer cream for depth */
  --line:         #e2d8c4;   /* warm border */
  --slate:        #5a6780;   /* muted navy-gray text */
  --slate-ink:    #2a3552;   /* body text on light */

  /* Gold accents (time-of-day will tweak --accent only) */
  --gold:         #b8894a;   /* primary gold */
  --gold-deep:    #8a6234;   /* deeper gold */
  --gold-soft:    #d9b780;   /* soft gold highlight */
  --gold-ink:     #5a3f1e;   /* gold on cream text */

  --accent:       var(--gold);
  --accent-soft:  var(--gold-soft);

  /* Typography */
  --font-sans:   'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  --font-serif:  'Zen Old Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-latin:  'Cormorant Garamond', 'Zen Old Mincho', serif;

  /* Rhythm */
  --radius: 2px;
  --section-py: clamp(5rem, 9vw, 8rem);
  --container: 1120px;

  /* Top bar height (used to offset hero) */
  --topbar-h: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--slate-ink);
  background: var(--paper);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* ============================================================
   日本語折り返し最適化（モバイル時の中途半端な改行を防止）
   ============================================================ */
/* PC で挿入したい改行（モバイルでは無効化して自然な折り返しに任せる） */
.br-pc { display: inline; }
@media (max-width: 768px) {
  .br-pc { display: none; }
}

/* 折り返しを文節単位で行う（句読点・助詞の前後で切れにくくする） */
.jp-wrap {
  word-break: auto-phrase;     /* モダンブラウザ：文節単位で改行 */
  line-break: strict;          /* 禁則処理を厳格に */
  overflow-wrap: break-word;   /* 万一はみ出すときの保険 */
}

/* 短い塊として一体に扱いたい部分（句読点で割れないように） */
.jp-nobreak {
  display: inline-block;
}

/* ============================================================
   Reusable section header (label / title / rule)
   ============================================================ */
.sec {
  padding: var(--section-py) 0;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.s-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.s-title .jp-accent {
  color: var(--gold-deep);
  font-weight: 900;
}

.s-sub {
  font-family: var(--font-latin);
  font-style: italic;
  color: var(--slate);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--paper);
  /* 初期状態：背景透明（ヒーローエリアにオーバーレイ） */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.3s ease, backdrop-filter 0.4s ease;
}
/* スクロール後：半透明＋ぼかし */
.topbar.is-scrolled {
  background: rgba(15, 26, 46, 0.78);
  border-bottom-color: rgba(216, 183, 128, 0.18);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.topbar .mark {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
}
.topbar .mark-em {
  color: var(--gold-soft);
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  opacity: 0.85;
}
.topbar .mark-tagline {
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(216, 183, 128, 0.35);
  color: rgba(250, 246, 238, 0.7);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.topbar nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  margin-left: auto; /* 右側に寄せる */
}
.topbar nav a {
  text-decoration: none;
  color: rgba(250, 246, 238, 0.72);
  transition: color .3s;
}
.topbar nav a:hover { color: var(--gold-soft); }
.topbar nav .cta-mini {
  border: 1px solid rgba(216, 183, 128, 0.5);
  padding: 0.5rem 1.1rem;
  color: var(--gold-soft);
}
.topbar nav .cta-mini:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
/* X / note ソーシャルアイコン */
.topbar-social {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-left: 1.3rem;
  margin-left: 0.3rem;
  border-left: 1px solid rgba(216, 183, 128, 0.2);
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: rgba(250, 246, 238, 0.7);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease, background 0.3s ease;
  border-radius: 50%;
}
.social-icon:hover {
  color: var(--gold-soft);
  transform: translateY(-2px);
}
.social-icon svg { display: block; }
/* note は文字ベースのバッジに */
.social-note {
  background: rgba(250, 246, 238, 0.08);
  border: 1px solid rgba(250, 246, 238, 0.15);
}
.social-note span {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.social-note:hover {
  background: rgba(216, 183, 128, 0.18);
  border-color: rgba(216, 183, 128, 0.5);
}

/* ============================================================
   Hamburger button (mobile only)
   ============================================================ */
.topbar-hamburger {
  display: none;  /* デスクトップでは非表示 */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 200;
  position: relative;
}
.topbar-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--paper);
  border-radius: 1px;
  transition: transform 0.4s cubic-bezier(0.3, 0.8, 0.4, 1),
              opacity 0.3s ease,
              background 0.3s ease;
  transform-origin: center;
}
/* メニュー開いた状態 → X 印に変形 */
body.menu-open .topbar-hamburger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background: var(--gold-soft);
}
body.menu-open .topbar-hamburger span:nth-child(2) {
  opacity: 0;
}
body.menu-open .topbar-hamburger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background: var(--gold-soft);
}

/* ============================================================
   Mobile Menu (full-screen overlay)
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;            /* topbar(100) より下、コンテンツより上 */
  background: linear-gradient(160deg,
              rgba(15, 26, 46, 0.97) 0%,
              rgba(23, 36, 61, 0.97) 50%,
              rgba(31, 48, 82, 0.97) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--topbar-h) 2rem 2rem;
  overflow-y: auto;
}
body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s linear 0s;
}
.mobile-menu-inner {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2.5rem;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(216, 183, 128, 0.2);
}
.mobile-menu-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0.5rem;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(216, 183, 128, 0.2);
  transition: color 0.3s ease, padding-left 0.3s ease;
  /* スライドインのアニメーション準備 */
  opacity: 0;
  transform: translateX(20px);
}
body.menu-open .mobile-menu-nav a {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.3, 0.8, 0.4, 1), color 0.3s ease;
}
body.menu-open .mobile-menu-nav a:nth-child(1) { transition-delay: 0.10s; }
body.menu-open .mobile-menu-nav a:nth-child(2) { transition-delay: 0.16s; }
body.menu-open .mobile-menu-nav a:nth-child(3) { transition-delay: 0.22s; }
body.menu-open .mobile-menu-nav a:nth-child(4) { transition-delay: 0.28s; }
.mobile-menu-nav a::after {
  content: '→';
  color: var(--gold-soft);
  font-family: var(--font-latin);
  font-size: 1rem;
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
}
.mobile-menu-nav a:hover,
.mobile-menu-nav a:active {
  color: var(--gold-soft);
  padding-left: 1rem;
}
.mobile-menu-nav a:hover::after,
.mobile-menu-nav a:active::after {
  opacity: 1;
  transform: translateX(4px);
}

.mobile-menu-cta {
  display: block;
  text-align: center;
  background: var(--gold);
  color: var(--ink);
  padding: 1.3rem 1.5rem;
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid var(--gold);
  transition: background 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(15px);
}
body.menu-open .mobile-menu-cta {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease 0.36s, transform 0.5s cubic-bezier(0.3, 0.8, 0.4, 1) 0.36s, background 0.3s ease;
}
.mobile-menu-cta:hover {
  background: var(--gold-soft);
}
.mobile-menu-cta-main {
  display: block;
  font-size: 1rem;
}
.mobile-menu-cta-sub {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  opacity: 0.7;
  font-weight: 500;
}

.mobile-menu-social {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(216, 183, 128, 0.15);
  opacity: 0;
  transform: translateY(15px);
}
body.menu-open .mobile-menu-social {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease 0.44s, transform 0.5s cubic-bezier(0.3, 0.8, 0.4, 1) 0.44s;
}
.mobile-menu-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  color: rgba(250, 246, 238, 0.75);
  text-decoration: none;
  border: 1px solid rgba(216, 183, 128, 0.25);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.mobile-menu-social a:hover {
  color: var(--gold-soft);
  border-color: rgba(216, 183, 128, 0.6);
  background: rgba(216, 183, 128, 0.06);
}
.mobile-menu-social .note-mark {
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* スクロールロック */
body.menu-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  :root { --topbar-h: 88px; }  /* タグラインが2行になる分 */
  .topbar nav { display: none; }
  .topbar-social { display: none; }  /* モバイルではメニュー内に統合 */
  .topbar-hamburger { display: flex; }  /* モバイルでハンバーガー表示 */
  .topbar { gap: 0.8rem; }
  .topbar .mark {
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }
  .topbar .mark-name {
    flex: 0 0 auto;
  }
  .topbar .mark-tagline {
    flex: 0 0 100%;
    margin-left: 2.4rem;  /* SVGアイコン幅(28px) + gap(0.8rem) と概ね揃える */
    padding-left: 0;
    border-left: none;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    opacity: 0.85;
    white-space: nowrap;
  }
}
@media (max-width: 380px) {
  /* 極小画面ではタグラインのインデントを詰めて確実に1行に収める */
  .topbar .mark-tagline {
    margin-left: 0;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  margin-top: calc(-1 * var(--topbar-h));  /* topbar分を打ち消してオーバーレイ表示に */
  padding-top: var(--topbar-h);             /* コンテンツがtopbarに隠れないよう内側に逃がす */
  position: relative;
  display: grid;
  align-items: center;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(184, 137, 74, 0.18), transparent 55%),
    radial-gradient(ellipse at 20% 90%, rgba(184, 137, 74, 0.10), transparent 60%),
    linear-gradient(175deg, var(--ink) 0%, var(--ink-2) 60%, var(--ink-3) 100%);
  color: var(--paper);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(216, 183, 128, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 183, 128, 0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px 0;
  height: 120px;
  background: linear-gradient(to top, var(--paper), transparent);
  z-index: 3;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 8rem clamp(1.25rem, 4vw, 2rem) 6rem;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 7rem; }
}

.hero-copy { max-width: 620px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(216, 183, 128, 0.4);
  color: var(--gold-soft);
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp .9s .15s forwards;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold);
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--paper);
  opacity: 0;
  animation: fadeUp .9s .3s forwards;
}
.hero h1 .hi-accent {
  color: var(--gold-soft);
  display: inline-block;
  position: relative;
}
.hero h1 .hi-accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -0.1em;
  height: 4px;
  background: var(--gold);
  opacity: 0.55;
  transform-origin: left;
  animation: lineIn 1s 1.1s forwards;
  transform: scaleX(0);
}
@keyframes lineIn { to { transform: scaleX(1); } }

.hero h1 .big {
  display: block;
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  margin-top: 0.4rem;
}

.hero-lead {
  margin-top: 1.6rem;
  color: rgba(250, 246, 238, 0.78);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 2.1;
  max-width: 560px;
  opacity: 0;
  animation: fadeUp .9s .5s forwards;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
}

.hero-time {
  margin-top: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(216, 183, 128, 0.18);
  color: rgba(250, 246, 238, 0.75);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeUp .9s .7s forwards;
}
.hero-time .tag {
  font-family: var(--font-latin);
  font-style: italic;
  color: var(--gold-soft);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-cta-row {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0;
  animation: fadeUp .9s .85s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.05rem 2rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: all .35s cubic-bezier(0.3, 0.8, 0.4, 1);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn .arrow { transition: transform .3s; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

.btn-ghost {
  color: var(--paper);
  border-color: rgba(250, 246, 238, 0.35);
}
.btn-ghost:hover {
  background: rgba(250, 246, 238, 0.08);
  border-color: var(--gold-soft);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover {
  background: var(--ink-2);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15,26,46,0.25);
}

.hero-note {
  margin-top: 1.3rem;
  font-size: 0.8rem;
  color: rgba(250, 246, 238, 0.48);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fadeUp .9s 1s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Hero emblem (SVG mark) ---- */
.hero-emblem {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 420px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeEmblem 1.2s .7s forwards;
}
@keyframes fadeEmblem {
  from { opacity: 0; transform: scale(.94) rotate(-6deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}

.emblem-svg { width: 100%; height: 100%; }
.emblem-svg .spin {
  transform-origin: 50% 50%;
  animation: slowSpin 60s linear infinite;
}
@keyframes slowSpin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero-emblem { max-width: 260px; margin: 0 auto; }
}

/* ============================================================
   Pain points
   ============================================================ */
.pain { background: var(--paper-2); }

.pain-intro {
  max-width: 640px;
  color: var(--slate);
  line-height: 2;
  margin-bottom: 3rem;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.pain-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2rem 1.8rem 1.8rem;
  position: relative;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--gold);
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 26, 46, 0.08);
  border-color: var(--gold-soft);
}

.pain-num {
  font-family: var(--font-latin);
  font-style: italic;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.9rem;
}

.pain-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.7rem;
  line-height: 1.6;
}

.pain-card p {
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.9;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
}

/* ============================================================
   Offer (free 60-min)
   ============================================================ */
.offer {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(184, 137, 74, 0.14), transparent 55%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.offer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(216,183,128,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,183,128,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
  pointer-events: none;
}

.offer .container { position: relative; z-index: 2; }

.offer .eyebrow { color: var(--gold-soft); }
.offer .eyebrow::before { background: var(--gold-soft); }

.offer .s-title { color: var(--paper); }
.offer .s-title .jp-accent { color: var(--gold-soft); }

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .offer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.offer-badge-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.offer-pill {
  padding: 0.4rem 0.95rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 700;
}
.offer-pill.free {
  background: var(--gold);
  color: var(--ink);
}
.offer-pill.time {
  border: 1px solid rgba(216,183,128,0.5);
  color: var(--gold-soft);
}

.offer-lead {
  color: rgba(250, 246, 238, 0.78);
  font-size: 0.98rem;
  line-height: 2.1;
  margin-top: 1.2rem;
}

.offer-promise {
  display: grid;
  gap: 1px;
  background: rgba(216,183,128,0.15);
  border: 1px solid rgba(216,183,128,0.18);
}
.offer-promise-item {
  background: var(--ink-2);
  padding: 1.5rem 1.6rem;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1.1rem;
  transition: background .3s;
}
.offer-promise-item:hover { background: var(--ink-3); }

.promise-icon {
  width: 32px; height: 32px;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-latin);
  font-style: italic;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.offer-promise-item strong {
  display: block;
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.offer-promise-item p {
  color: rgba(250, 246, 238, 0.7);
  font-size: 0.88rem;
  line-height: 1.85;
}

.offer-cta {
  margin-top: 2.2rem;
  padding: 1.8rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(216,183,128,0.2);
  text-align: center;
}
.offer-cta .offer-cta-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 1.2rem 2rem;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.03em;
  transition: all .35s cubic-bezier(0.3, 0.8, 0.4, 1);
}
.offer-cta .offer-cta-btn:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.4);
}
.offer-cta-main {
  font-size: 1.02rem;
  text-align: center;
  line-height: 1.6;
}
@media (max-width: 480px) {
  .offer-cta-main { font-size: 0.95rem; }
}
.offer-cta-sub {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  opacity: 0.8;
  font-weight: 500;
}
.offer-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(250, 246, 238, 0.4);
  letter-spacing: 0.04em;
  line-height: 1.8;
}

/* ============================================================
   Solution / Value
   ============================================================ */
.solution { background: var(--paper); }

.solution-intro {
  max-width: 720px;
  color: var(--slate);
  line-height: 2.1;
  margin-bottom: 3rem;
  font-size: 0.98rem;
}

.value-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.value-item {
  padding: 2.5rem 2rem;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
  transition: all .4s;
}
.value-item::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s;
}
.value-item:hover::after { transform: scaleX(1); }
.value-item:hover {
  background: var(--paper);
  box-shadow: 0 14px 40px rgba(15,26,46,0.08);
}

.value-number {
  font-family: var(--font-latin);
  font-style: italic;
  color: var(--gold);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
}

.value-item h3 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.8rem;
  line-height: 1.6;
}
.value-item p {
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.95;
}

/* ============================================================
   Service
   ============================================================ */
.service {
  background: var(--ink);
  color: var(--paper);
  position: relative;
}
.service .s-title { color: var(--paper); }
.service .eyebrow { color: var(--gold-soft); }
.service .eyebrow::before { background: var(--gold-soft); }

.service-target {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(216,183,128,0.2);
  flex-wrap: wrap;
}
.target-badge {
  background: var(--gold);
  color: var(--ink);
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}
.service-target-text {
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
}

.service-lead {
  color: rgba(250, 246, 238, 0.82);
  font-size: 0.98rem;
  line-height: 2.15;
  margin-bottom: 1.3rem;
  max-width: 860px;
}
.service-lead strong { color: var(--gold-soft); font-weight: 700; }
.service-lead em {
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
  border-bottom: 1px dashed rgba(216,183,128,0.5);
  padding-bottom: 0.1em;
}

.service-menu-header {
  margin: 3.5rem 0 1.6rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(216,183,128,0.18);
}
.service-menu-header h3 {
  font-family: var(--font-serif);
  color: var(--gold-soft);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.service-menu-header p {
  font-size: 0.88rem;
  color: rgba(250, 246, 238, 0.6);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(216,183,128,0.15);
  border: 1px solid rgba(216,183,128,0.18);
}
.service-item {
  background: var(--ink);
  padding: 1.8rem;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1.2rem;
  transition: background .3s;
}
.service-item:hover { background: var(--ink-2); }

.service-item-num {
  font-family: var(--font-latin);
  font-style: italic;
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
}

.service-item h4 {
  font-family: var(--font-serif);
  color: var(--gold-soft);
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.service-item p {
  font-size: 0.88rem;
  color: rgba(250, 246, 238, 0.72);
  line-height: 1.85;
}

/* Service overview (key/value block) */
.service-overview {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(216,183,128,0.18);
}
.overview-title {
  font-family: var(--font-serif);
  color: var(--gold-soft);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.overview-card {
  padding: 1.6rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(216,183,128,0.15);
  transition: all .3s;
}
.overview-card:hover { border-color: rgba(216,183,128,0.35); background: rgba(255,255,255,0.035); }
.overview-label {
  font-family: var(--font-latin);
  font-style: italic;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}
.overview-card h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-soft);
  margin-bottom: 0.6rem;
}
.overview-card p {
  font-size: 0.85rem;
  color: rgba(250, 246, 238, 0.72);
  line-height: 1.85;
}

.service-notes {
  margin-top: 2.5rem;
  padding: 1.6rem 1.8rem;
  background: rgba(255,255,255,0.02);
  border-left: 2px solid var(--gold);
}
.service-notes h4 {
  font-family: var(--font-sans);
  color: var(--gold-soft);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
  font-weight: 700;
}
.service-notes ul { list-style: none; }
.service-notes li {
  font-size: 0.82rem;
  color: rgba(250, 246, 238, 0.65);
  line-height: 1.85;
  padding: 0.35rem 0 0.35rem 1.3rem;
  position: relative;
}
.service-notes li::before {
  content: '※';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.75rem;
  top: 0.5rem;
}

/* ============================================================
   Flow
   ============================================================ */
.flow { background: var(--paper-2); }

.flow-steps {
  display: grid;
  gap: 0;
  position: relative;
  counter-reset: step;
}

.flow-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2.5rem;
  padding: 2rem 0;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.flow-step:first-child { padding-top: 0.5rem; }
.flow-step:last-child { border-bottom: none; padding-bottom: 0.5rem; }

@media (max-width: 680px) {
  .flow-step { grid-template-columns: 80px 1fr; gap: 1.2rem; }
}

.flow-num {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-start;
}
.flow-num-big {
  font-family: var(--font-latin);
  font-style: italic;
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.flow-num-label {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--slate);
  text-transform: uppercase;
}

.flow-step h3 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.flow-step p {
  font-size: 0.94rem;
  color: var(--slate);
  line-height: 2;
  max-width: 680px;
}

/* ============================================================
   Profile
   ============================================================ */
.profile { background: var(--paper); }

.profile-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 820px) {
  .profile-card { grid-template-columns: 1fr; gap: 2.5rem; }
}

.profile-visual {
  position: relative;
}
.profile-name-block {
  background: var(--ink);
  color: var(--paper);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.profile-name-block::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle at top right, rgba(216,183,128,0.22), transparent 70%);
}
.profile-mark {
  width: 54px;
  margin-bottom: 1.4rem;
  opacity: 0.9;
}
.profile-name-jp {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 0.3rem;
  letter-spacing: 0.15em;
}
.profile-name-jp .sp { display: inline-block; width: 0.5em; }
.profile-name-en {
  font-family: var(--font-latin);
  font-style: italic;
  color: var(--gold-soft);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.4rem;
}
.profile-tagline {
  font-size: 0.88rem;
  color: rgba(250, 246, 238, 0.8);
  line-height: 1.9;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(216,183,128,0.3);
}
.profile-tagline .hyphen {
  color: var(--gold);
  font-family: var(--font-latin);
  font-style: italic;
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
  display: block;
}

.profile-details p {
  font-size: 0.95rem;
  color: var(--slate-ink);
  line-height: 2.1;
  margin-bottom: 1.2rem;
}

.profile-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all .3s;
}
.profile-link:hover {
  background: var(--ink);
  color: var(--gold-soft);
  border-color: var(--ink);
}
.profile-link svg { width: 15px; height: 15px; }

.profile-credentials {
  list-style: none;
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.1rem 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}
.profile-credentials li {
  font-size: 0.88rem;
  color: var(--slate);
  padding: 0.6rem 0 0.6rem 1.2rem;
  position: relative;
  border-bottom: 1px dotted var(--line);
}
.profile-credentials li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  background: var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

/* ============================================================
   Bottom CTA
   ============================================================ */
.cta-bottom {
  background: var(--paper);
  text-align: center;
  padding: var(--section-py) 0;
}
.cta-bottom .s-title { text-align: left; }

.cta-box {
  max-width: 640px;
  margin: 2.5rem auto 0;
  padding: 3rem 2.5rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  position: relative;
  text-align: center;
}
.cta-box::before, .cta-box::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 1px solid var(--gold);
}
.cta-box::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.cta-box::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.cta-box .free-label {
  display: inline-block;
  background: var(--ink);
  color: var(--gold-soft);
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 1.2rem;
}
.cta-box h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--ink);
}
.cta-box .nosales {
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: 0.8rem 1.2rem;
  background: rgba(184,137,74,0.08);
  border-left: 2px solid var(--gold);
  color: var(--slate-ink);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.8;
  text-align: left;
  width: 100%;
}
.cta-box p {
  font-size: 0.92rem;
  color: var(--slate);
  margin-bottom: 2rem;
  line-height: 2;
}

/* Section headers left-aligned inside cta-bottom */
.cta-bottom .container { text-align: left; }

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: var(--ink);
  color: rgba(250, 246, 238, 0.5);
  padding: 4rem clamp(1.25rem, 4vw, 2rem) 2.5rem;
  text-align: center;
  position: relative;
  border-top: 3px solid var(--gold);
}
.footer-mark {
  width: 40px;
  margin: 0 auto 1.5rem;
  opacity: 0.7;
}
.footer-name {
  font-family: var(--font-serif);
  color: var(--paper);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 0.4rem;
}
.footer-en {
  font-family: var(--font-latin);
  font-style: italic;
  color: var(--gold-soft);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(216,183,128,0.15);
  border-bottom: 1px solid rgba(216,183,128,0.15);
}
.footer-links a {
  color: rgba(250, 246, 238, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: color .3s;
}
.footer-links a:hover { color: var(--gold-soft); }
.footer-copy {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(250, 246, 238, 0.35);
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform .9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Tweaks panel
   ============================================================ */
.tweaks-panel {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 280px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--gold);
  padding: 1.2rem;
  z-index: 100;
  font-size: 0.85rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--gold-soft);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(216,183,128,0.2);
}
.tweak-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}
.tweak-row label {
  color: rgba(250,246,238,0.75);
  font-size: 0.8rem;
}
.tweak-row select, .tweak-row button {
  background: var(--ink-2);
  color: var(--gold-soft);
  border: 1px solid rgba(216,183,128,0.3);
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
}
.tweak-row button:hover { border-color: var(--gold); color: var(--paper); }

/* Density compact */
body.density-compact {
  --section-py: clamp(3.5rem, 6vw, 5.5rem);
}
body.density-compact .hero-inner { padding-top: 6rem; padding-bottom: 4rem; }

/* Time theme override: cream mode (non time-varying) */
body.mode-cream .hero,
body.mode-cream .service,
body.mode-cream .offer,
body.mode-cream footer {
  /* keep as-is; this is a no-op stub for future modes */
}
