/* =========================================================
   城ウォーク — LP  (墨 × 金 immersive theme)
   ========================================================= */

:root {
  /* brand */
  --sumi:       #1a1510;
  --sumi-deep:  #0e0b07;
  --sumi-soft:  #2a221a;
  --sumi-mist:  #3d3228;
  --washi:      #FAF6EE;
  --washi-soft: #f0e8d8;
  --washi-deep: #e5d9c4;
  --gold:       #C8A24B;
  --gold-light: #e0c070;
  --gold-mute:  rgba(200,162,75,0.35);
  --kinshu:     #8B6914;

  /* text */
  --ink-on-washi:      var(--sumi);
  --ink-on-washi-soft: #4a3c2e;
  --ink-on-washi-mute: #7a6a58;
  --ink-on-sumi:       var(--washi);
  --ink-on-sumi-mute:  rgba(250,246,238,0.55);

  --hairline-washi: rgba(26,21,16,0.12);
  --hairline-sumi:  rgba(200,162,75,0.18);

  --display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --body:    "Noto Sans JP", -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;

  --max: 1040px;
  --pad: 28px;
  --radius: 18px;
  --section-py: 130px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.home-page {
  margin: 0;
  background: var(--washi);
  color: var(--ink-on-washi);
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.home-page a { color: inherit; text-decoration: none; }
:where(body.home-page h1, body.home-page h2, body.home-page h3,
body.home-page p, body.home-page ul, body.home-page ol) {
  margin: 0;
  padding: 0;
}
body.home-page ul, body.home-page ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  background: rgba(14,11,7,0.82);
  border-bottom: 1px solid var(--hairline-sumi);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 58px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: var(--gold);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
}
.nav-links a {
  font-size: 13px;
  color: var(--ink-on-sumi-mute);
  letter-spacing: 0.04em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold-light); }

.nav-cta {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 100px;
  background: var(--gold);
  color: var(--sumi-deep) !important;
  letter-spacing: 0.04em;
  transition: background .2s, transform .1s;
}
.nav-cta:hover { background: var(--gold-light); transform: scale(1.03); }

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-inner { gap: 0; justify-content: space-between; }
}

/* =====================================================================
   SHARED LAYOUT
   ===================================================================== */
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section {
  padding: var(--section-py) 0;
  position: relative;
}
.section.on-sumi {
  background: var(--sumi-deep);
  color: var(--ink-on-sumi);
}
.section.on-sumi-soft {
  background: var(--sumi);
  color: var(--ink-on-sumi);
}
.section.on-washi {
  background: var(--washi);
  color: var(--ink-on-washi);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px !important;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  margin-bottom: 20px !important;
}
.section-lead {
  font-size: 16px;
  line-height: 1.9;
  max-width: 600px;
  opacity: 0.8;
  margin-bottom: 60px !important;
}
.section.on-sumi .section-title,
.section.on-sumi-soft .section-title { color: var(--washi); }
.section.on-sumi .section-lead,
.section.on-sumi-soft .section-lead { color: var(--ink-on-sumi-mute); opacity: 1; }
.accent { color: var(--gold); }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  min-height: 100svh;
  background: var(--sumi-deep);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 58px;
}

/* 和紙テクスチャ風ノイズ背景 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(200,162,75,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(200,162,75,0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* 金の波紋 */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(200,162,75,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px var(--pad) 100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 780px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-figure { order: -1; }
}

.hero-copy { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px !important;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.05em;
  color: var(--washi);
  margin-bottom: 20px !important;
}
.hero-title .br { display: block; }
.hero-sub {
  font-size: 18px;
  color: var(--ink-on-sumi-mute);
  margin-bottom: 40px !important;
  font-weight: 400;
}
.hero-cta { display: flex; flex-direction: column; gap: 16px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-on-sumi-mute);
  letter-spacing: 0.04em;
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.7); }
}

.hero-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gold);
  color: var(--sumi-deep) !important;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 8px 32px rgba(200,162,75,0.35);
  width: fit-content;
}
.hero-appstore:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(200,162,75,0.45);
}
.hero-appstore svg { flex-shrink: 0; }

.hero-note {
  font-size: 12px;
  color: var(--ink-on-sumi-mute);
  line-height: 1.7;
}

/* Hero figure — 城 SVG */
.hero-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-castle-wrap {
  position: relative;
  width: min(360px, 90vw);
  aspect-ratio: 1;
}
.hero-castle-wrap::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(200,162,75,0.18) 0%, transparent 65%);
  border-radius: 50%;
  animation: castle-glow 4s ease-in-out infinite alternate;
}
@keyframes castle-glow {
  from { opacity: .6; transform: scale(.95); }
  to   { opacity: 1;  transform: scale(1.05); }
}
.hero-castle-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 40px rgba(200,162,75,0.3));
}

/* =====================================================================
   PROBLEM
   ===================================================================== */
.problem { background: var(--sumi); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 0;
}
@media (max-width: 680px) {
  .problem-grid { grid-template-columns: 1fr; }
}
.problem-card {
  background: rgba(200,162,75,0.06);
  border: 1px solid var(--hairline-sumi);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.problem-card-icon {
  width: 44px;
  height: 44px;
  color: var(--gold);
}
.problem-card-icon svg { width: 100%; height: 100%; }
.problem-card-body {
  font-size: 15px;
  color: var(--ink-on-sumi-mute);
  line-height: 1.75;
}

/* =====================================================================
   HOW IT WORKS
   ===================================================================== */
.how { background: var(--sumi-deep); }

/* 時代進化ライン */
.era-timeline {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-bottom: 60px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
}
.era-timeline::-webkit-scrollbar { display: none; }

.era-node {
  flex: 1;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}
/* 連結線 */
.era-node:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 22px;
  width: calc(100% - 44px);
  height: 1px;
  background: linear-gradient(to right, var(--gold-mute), transparent);
  left: 50%;
  transform: translateX(22px);
}
.era-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sumi-soft);
  border: 1.5px solid var(--gold-mute);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
  z-index: 1;
  transition: border-color .3s, background .3s;
}
.era-node.active .era-circle {
  background: rgba(200,162,75,0.15);
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(200,162,75,0.4);
}
.era-name {
  font-family: var(--display);
  font-size: 11px;
  color: var(--ink-on-sumi-mute);
  text-align: center;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.era-node.active .era-name { color: var(--gold); }

/* 歩数メーター */
.step-meter {
  background: rgba(200,162,75,0.07);
  border: 1px solid var(--hairline-sumi);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}
@media (max-width: 600px) {
  .step-meter { grid-template-columns: 1fr; gap: 24px; }
}
.step-meter-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px !important;
}
.step-meter-val {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 48px);
  color: var(--washi);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.step-meter-sub { font-size: 13px; color: var(--ink-on-sumi-mute); }

.step-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-on-sumi-mute);
}
.step-bar-era { width: 40px; flex-shrink: 0; }
.step-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(200,162,75,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.step-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(to right, var(--kinshu), var(--gold));
  transform-origin: left;
  animation: bar-in 1.2s ease forwards;
  transform: scaleX(0);
}
@keyframes bar-in {
  to { transform: scaleX(1); }
}
.step-bar-step { width: 52px; flex-shrink: 0; text-align: right; }

/* 3 steps */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 680px) {
  .how-steps { grid-template-columns: 1fr; }
}
.how-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.how-step-n {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.how-step-h {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--washi);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.how-step-p { font-size: 14px; color: var(--ink-on-sumi-mute); line-height: 1.75; }

/* =====================================================================
   FEATURES
   ===================================================================== */
.features { background: var(--washi); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

.feat {
  background: #fff;
  border: 1px solid var(--hairline-washi);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow .3s, transform .3s;
}
.feat:hover {
  box-shadow: 0 8px 32px rgba(200,162,75,0.12);
  transform: translateY(-3px);
}
.feat-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(200,162,75,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feat-icon-wrap svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feat-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--sumi);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.feat-body { font-size: 14px; color: var(--ink-on-washi-soft); line-height: 1.8; }

/* =====================================================================
   VIDEO / CM
   ===================================================================== */
.video-section { background: var(--sumi); }
.video-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0;
}
.video-wrap video {
  width: min(360px, 90vw);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(200,162,75,0.2);
  display: block;
}

/* =====================================================================
   PRICE
   ===================================================================== */
.price-section { background: var(--sumi-deep); }
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 680px) { .plans { grid-template-columns: 1fr; } }

.plan {
  border-radius: var(--radius);
  border: 1px solid var(--hairline-sumi);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.plan-free { background: rgba(200,162,75,0.04); }
.plan-paid  { background: rgba(200,162,75,0.10); border-color: rgba(200,162,75,0.4); }
.plan-ribbon {
  position: absolute;
  top: 16px;
  right: -28px;
  background: var(--gold);
  color: var(--sumi-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 36px;
  transform: rotate(30deg);
}

.plan-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px !important;
}
.plan-name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--washi);
  margin-bottom: 12px !important;
  letter-spacing: 0.04em;
}
.plan-price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.plan-yen {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 800;
  color: var(--washi);
  line-height: 1;
}
.plan-unit {
  font-size: 14px;
  color: var(--ink-on-sumi-mute);
}
.plan-desc {
  font-size: 13px;
  color: var(--ink-on-sumi-mute);
  margin-bottom: 24px !important;
}

.plan-feat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-feat li {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-on-sumi-mute);
}
.plan-feat li.on { color: var(--washi); }
.plan-feat li.on::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(200,162,75,0.2);
  border: 1px solid var(--gold-mute);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 9L7.5 12L13.5 6' stroke='%23C8A24B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100%;
}
.plan-feat li.off { opacity: 0.35; }
.plan-feat li.off::before {
  content: '—';
  width: 18px;
  flex-shrink: 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-on-sumi-mute);
}

.price-foot {
  font-size: 13px;
  color: var(--ink-on-sumi-mute);
  line-height: 1.8;
  margin-bottom: 12px !important;
}
.price-coda {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--washi);
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin-top: 32px !important;
}

/* =====================================================================
   FINAL CTA
   ===================================================================== */
.fin {
  background: var(--sumi-deep);
  padding: var(--section-py) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--hairline-sumi);
}
.fin::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(200,162,75,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.fin-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
}
.fin-title {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--washi);
  line-height: 1.4;
  margin-bottom: 16px !important;
  letter-spacing: 0.05em;
}
.fin-sub {
  font-size: 16px;
  color: var(--ink-on-sumi-mute);
  margin-bottom: 40px !important;
  line-height: 1.9;
}
.fin-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gold);
  color: var(--sumi-deep) !important;
  font-weight: 800;
  font-size: 16px;
  padding: 16px 36px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 40px rgba(200,162,75,0.4);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.fin-appstore:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(200,162,75,0.5);
}
.fin-note {
  margin-top: 20px !important;
  font-size: 13px;
  color: var(--ink-on-sumi-mute);
}

/* =====================================================================
   COLOPHON (Footer)
   ===================================================================== */
.colophon {
  background: #070504;
  border-top: 1px solid rgba(200,162,75,0.12);
  padding: 64px 0 40px;
}
.colophon-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.colophon-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 680px) {
  .colophon-grid { grid-template-columns: 1fr 1fr; }
  .colophon-brand { grid-column: 1 / -1; }
}
.colophon-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 8px !important;
}
.colophon-tag { font-size: 13px; color: var(--ink-on-sumi-mute); }
.colophon-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px !important;
}
.colophon-links { display: flex; flex-direction: column; gap: 10px; }
.colophon-links a { font-size: 13px; color: var(--ink-on-sumi-mute); transition: color .2s; }
.colophon-links a:hover { color: var(--gold-light); }
.colophon-copy {
  font-size: 12px;
  color: rgba(250,246,238,0.2);
  border-top: 1px solid rgba(200,162,75,0.08);
  padding-top: 24px;
}
