/* 「不動産オーナーの資産管理」公式サイト共通スタイル（白基調・モダンアプリLP） */

:root {
  --navy: #1f4e79;
  --navy-deep: #163a5a;
  --blue: #2e6da8;
  --sky: #7fb3e3;
  --sky-pale: #eaf3fb;
  --amber: #f0a62f;
  --amber-pale: #fdf1dc;
  --green: #0d7a58;        /* 白背景で5.33:1（WCAG AA基準4.5を満たす濃さ） */
  --ink: #17222e;
  --muted: #5b6b7b;
  --line: #e3ebf2;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --radius: 20px;
  --shadow-sm: 0 2px 10px rgba(23, 52, 82, 0.06);
  --shadow: 0 14px 40px rgba(23, 52, 82, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic Medium", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.nw { display: inline-block; }

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex; align-items: center; gap: 18px;
  min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}

.brand {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 1.02rem; letter-spacing: 0.02em;
}
.brand svg { width: 30px; height: 30px; flex: none; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
/* 指で押せるよう縦の当たり判定を44px以上確保する */
.site-nav a {
  text-decoration: none; color: var(--muted);
  font-size: 0.9rem; font-weight: 600;
  display: inline-flex; align-items: center; min-height: 44px;
}
.site-nav a:hover { color: var(--navy); }
.site-nav .nav-cta {
  background: var(--navy); color: #fff;
  padding: 0 18px; border-radius: 999px; font-size: 0.82rem;
  min-height: 40px;
}
.site-nav .nav-cta:hover { color: #fff; opacity: 0.9; }

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 14px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn-primary {
  background: var(--navy); color: #fff;
  box-shadow: 0 8px 22px rgba(31, 78, 121, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-ghost:hover { background: var(--sky-pale); }

/* App Storeバッジ風ボタン（公開後は公式バッジ画像に差し替え） */
.store-badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  background: #101418; color: #fff; text-decoration: none;
  border-radius: 12px; padding: 9px 22px; line-height: 1.35;
  min-height: 52px;
}
.store-badge .small { font-size: 0.68rem; opacity: 0.85; font-weight: 600; }
.store-badge .big { font-size: 1.12rem; font-weight: 700; letter-spacing: 0.01em; }
.store-badge:hover { opacity: 0.88; }

/* ---------- ヒーロー ---------- */

.hero {
  padding: 64px 0 84px;
  background:
    radial-gradient(720px 420px at 82% 18%, var(--sky-pale) 0%, rgba(234, 243, 251, 0) 70%),
    var(--bg);
  overflow: hidden;
}

.hero .container {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}

.app-title-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.app-title-row .mark {
  width: 60px; height: 60px; border-radius: 15px; flex: none;
  background: var(--sky-pale); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.app-title-row .mark svg { width: 36px; height: 36px; }
.app-title-row .name { font-weight: 800; font-size: 1.08rem; line-height: 1.4; }
.app-title-row .genre { font-size: 0.78rem; color: var(--muted); display: block; font-weight: 600; }

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1.42; letter-spacing: 0.015em;
  margin-bottom: 18px; color: var(--ink); font-weight: 800;
}
.hero h1 .accent { color: var(--navy); }
.hero h1 .marker {
  background: linear-gradient(transparent 68%, var(--amber-pale) 68%);
}

.hero .lead { color: var(--muted); font-size: 1.04rem; margin-bottom: 28px; max-width: 34em; }

.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.hero-note { font-size: 0.82rem; color: var(--muted); }

.trust-chips { display: flex; gap: 8px 10px; flex-wrap: wrap; margin-top: 22px; }
.trust-chips .chip-s {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 0.8rem; font-weight: 700; color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.trust-chips .chip-s::before { content: "✓"; color: var(--green); font-weight: 800; }

/* ---------- 端末モック ---------- */

.hero-visual { position: relative; display: flex; justify-content: center; }

.phone {
  width: 292px; background: #10161d; border-radius: 46px; padding: 10px;
  box-shadow: var(--shadow);
}
.phone .screen {
  background: #fbfcfe; border-radius: 38px; overflow: hidden;
  border: 1px solid #e8edf3;
}
.phone .notch {
  width: 96px; height: 22px; background: #10161d;
  border-radius: 0 0 14px 14px; margin: 0 auto;
}
.app-screen { padding: 14px 18px 0; }
.app-screen .date { font-size: 0.62rem; color: var(--muted); font-weight: 600; }
.app-screen .label { font-size: 0.7rem; color: var(--muted); margin-top: 8px; font-weight: 700; }
.app-screen .networth { font-size: 1.62rem; font-weight: 800; color: var(--ink); line-height: 1.25; }
.app-screen .delta { font-size: 0.7rem; color: var(--green); font-weight: 700; }

.bs-bar { margin-top: 14px; }
.bs-bar .row { display: flex; height: 16px; border-radius: 6px; overflow: hidden; margin-bottom: 5px; }
.bs-bar .seg-re { background: var(--navy); }
.bs-bar .seg-cash { background: var(--sky); }
.bs-bar .seg-sec { background: #b7d3ec; }
.bs-bar .seg-debt { background: #93a5b5; }
.bs-bar .seg-eq { background: var(--amber); }
.bs-legend { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.bs-legend span { font-size: 0.58rem; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.bs-legend i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.tile-s {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 12px;
}
.tile-s .k { font-size: 0.58rem; color: var(--muted); font-weight: 700; }
.tile-s .v { font-size: 0.95rem; font-weight: 800; color: var(--navy); }

.mini-chart {
  display: flex; align-items: flex-end; gap: 7px;
  height: 64px; margin-top: 16px; padding: 0 4px;
}
.mini-chart i {
  flex: 1; border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--sky) 0%, var(--navy) 140%);
}
/* 実機スクリーンショット */
.phone .screen .shot { display: block; width: 100%; }
.screen-card .shot {
  width: 100%; border-radius: 16px; border: 1px solid var(--line);
  margin-bottom: 16px; box-shadow: var(--shadow-sm);
}

/* マップ画面モック */
.map-screen { position: relative; height: 428px; background: #dcebf9; overflow: hidden; }
.map-screen svg.jp { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-callout {
  position: absolute; left: 55%; top: 52.5%;
  transform: translate(-50%, -100%); margin-top: -26px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 6px 12px; box-shadow: var(--shadow-sm);
  white-space: nowrap; line-height: 1.45; text-align: center;
}
.map-callout .n { font-size: 0.66rem; font-weight: 800; color: var(--ink); display: block; }
.map-callout .p { font-size: 0.62rem; color: var(--muted); font-weight: 600; display: block; }
.map-summary {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 14px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: space-between;
}
.map-summary .k { font-size: 0.6rem; color: var(--muted); font-weight: 700; }
.map-summary .v { font-size: 1.05rem; font-weight: 800; color: var(--ink); line-height: 1.3; }
.map-summary .cnt {
  background: var(--sky-pale); color: var(--navy);
  border-radius: 999px; padding: 4px 12px;
  font-size: 0.68rem; font-weight: 800;
}

.tabbar {
  display: flex; justify-content: space-around; align-items: center;
  border-top: 1px solid var(--line); margin-top: 0; padding: 10px 6px 16px;
  background: #fff; position: relative;
}
.tabbar span { font-size: 0.56rem; color: var(--muted); text-align: center; font-weight: 600; }
.tabbar span.on { color: var(--navy); font-weight: 800; }
.tabbar i { display: block; width: 18px; height: 18px; border-radius: 6px; background: var(--line); margin: 0 auto 3px; }
.tabbar span.on i { background: var(--navy); }

.float-chip {
  position: absolute; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 16px; box-shadow: var(--shadow);
  font-size: 0.78rem; line-height: 1.5; white-space: nowrap;
}
.float-chip .label { color: var(--muted); font-size: 0.68rem; display: block; font-weight: 700; }
.float-chip .value { font-weight: 800; color: var(--navy); font-size: 1rem; }
.float-chip .up { color: var(--green); font-size: 0.68rem; font-weight: 700; display: block; }
.chip-pos1 { top: 4%; right: -6px; }
.chip-pos2 { bottom: 28%; left: -14px; }

/* ---------- セクション共通 ---------- */

section { padding: 96px 0; }
section[id] { scroll-margin-top: 76px; }
.section-alt { background: var(--bg-alt); }
.section-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 800;
  color: var(--blue); letter-spacing: 0.16em; margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.5; margin-bottom: 14px; font-weight: 800;
}
.section-lead { color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .section-lead { margin: 0 auto; }

.tile-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.tile-icon svg { width: 25px; height: 25px; }
.icon-blue { color: var(--navy); }
.icon-amber { color: #a8710f; }
.icon-navy { color: var(--navy-deep); }

/* ---------- 課題 ---------- */

.problem .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.problem-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm); text-align: center;
}
.problem-card .q { font-weight: 800; color: var(--navy); margin-bottom: 8px; font-size: 1.05rem; }
.problem-card p { font-size: 0.9rem; color: var(--muted); }

/* ---------- 3つの柱 ---------- */

.pillars .concept-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 22px; margin-top: 52px; text-align: left;
}
.concept-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 32px 30px;
}
.concept-card.wide {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 40px; align-items: center; padding: 38px 36px;
}
.concept-card .viz { width: 100%; height: auto; display: block; }
.concept-card:not(.wide) .viz { margin-bottom: 20px; }
.concept-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.concept-card p { font-size: 0.92rem; color: var(--muted); }

.pillars .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.pillar {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 26px 28px;
  box-shadow: var(--shadow-sm); text-align: center;
}
.pillar .icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.pillar .icon svg { width: 28px; height: 28px; }
.icon-blue { background: var(--sky-pale); }
.icon-amber { background: var(--amber-pale); }
.icon-navy { background: #e5ecf4; }
.pillar h3 { font-size: 1.1rem; margin-bottom: 10px; }
.pillar p { font-size: 0.9rem; color: var(--muted); }

/* ---------- 画面（4タブ） ---------- */

/* スクショは「読める大きさ」を優先して2列。タップで拡大できる */
.screens .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 52px; }
.screen-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 24px 26px;
  box-shadow: var(--shadow-sm); text-align: center;
}
.screen-card .shot-zoom {
  display: block; max-width: 400px; margin: 0 auto 16px;
  border-radius: 16px; cursor: zoom-in; position: relative;
}
.screen-card .shot-zoom .shot { margin-bottom: 0; }
.screen-card .shot-zoom::after {
  content: "タップで拡大"; position: absolute; right: 10px; bottom: 10px;
  background: rgba(23, 34, 46, 0.72); color: #fff;
  font-size: 0.68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  pointer-events: none;
}
.screen-card .tab-name {
  font-weight: 800; color: var(--navy); font-size: 1.05rem;
  display: block; margin-bottom: 6px;
}
.screen-card p { font-size: 0.86rem; color: var(--muted); }

/* ---------- 機能グリッド ---------- */

.features .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }

/* カードごとに淡い色地を割り当てて、やわらかい印象に */
.feature {
  --tint: #eaf3fb; --pop: #2e6da8;
  background: #fff; border: 1px solid var(--line);
  border-radius: 26px; padding: 32px 24px 28px;
  box-shadow: var(--shadow-sm); text-align: center;
  position: relative; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
/* カード上部にふんわり色を敷く */
.feature::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 108px;
  background: linear-gradient(180deg, var(--tint) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature > * { position: relative; }

.feature .art {
  width: 84px; height: 84px; margin: 0 auto 18px;
  border-radius: 28px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
}
.feature .art svg { width: 46px; height: 46px; display: block; }

.feature h3 { font-size: 1.02rem; margin-bottom: 6px; color: var(--navy-deep); }
.feature p { font-size: 0.86rem; color: var(--muted); line-height: 1.75; }

.tint-sky   { --tint: #e8f2fc; --pop: #2e6da8; }
.tint-peach { --tint: #fdefdb; --pop: #d9891a; }
.tint-mint  { --tint: #e3f5ee; --pop: #12946a; }
.tint-lilac { --tint: #eeecfb; --pop: #6a5cc4; }
.tint-rose  { --tint: #fdeaef; --pop: #cf5b7f; }
.tint-lemon { --tint: #fbf3d6; --pop: #b08a12; }

/* ---------- プライバシー ---------- */

.privacy-band { background: var(--navy-deep); color: #eef4fa; }
.privacy-band .section-title { color: #fff; }
.privacy-band .section-tag { color: var(--amber); }
.privacy-band .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.privacy-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius); padding: 30px 24px; text-align: center;
}
.privacy-item .tile-icon { background: rgba(255, 255, 255, 0.12); color: #bcd7ef; }
.privacy-band .section-lead { color: rgba(238, 244, 250, 0.72); }
.privacy-item h3 { font-size: 1.05rem; margin-bottom: 8px; color: #fff; }
.privacy-item p { font-size: 0.88rem; color: rgba(238, 244, 250, 0.78); }
.privacy-band .foot { margin-top: 32px; font-size: 0.85rem; color: rgba(238, 244, 250, 0.65); text-align: center; }
.privacy-band a { color: var(--sky); }

/* ---------- 料金 ---------- */

.pricing .grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: 22px; margin-top: 52px; align-items: stretch;
  max-width: 900px; margin-left: auto; margin-right: auto;
}
.price-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 30px;
  box-shadow: var(--shadow-sm); position: relative;
  display: flex; flex-direction: column; text-align: left;
}
.price-card.featured { border: 2px solid var(--navy); box-shadow: var(--shadow); }
.price-card .plan { font-weight: 800; color: var(--blue); letter-spacing: 0.1em; font-size: 0.88rem; }
.price-card .price { font-size: 2rem; font-weight: 800; margin: 12px 0 2px; }
.price-card .price small { font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.price-card .alt { font-size: 0.84rem; color: var(--muted); margin-bottom: 14px; }
.featured-badge {
  position: absolute; top: -14px; left: 28px;
  /* 白文字だとアンバー地で2.06:1しかないため、濃い茶で6.48:1を確保 */
  background: var(--amber); color: #3f2c04;
  border-radius: 999px; padding: 3px 14px;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em;
}

/* PROの2プラン（月額/買い切り）を同格で並べる */
.pro-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 6px; }
.pro-option {
  border: 1.5px solid var(--line); border-radius: 14px;
  padding: 16px 16px 14px; background: var(--bg-alt);
}
.pro-option.buyout { border-color: var(--amber); background: var(--amber-pale); }
.pro-option .type { font-size: 0.76rem; font-weight: 800; color: var(--muted); }
.pro-option.buyout .type { color: #8a5a0c; }  /* 淡いアンバー地で5.3:1 */
.pro-option .p { font-size: 1.5rem; font-weight: 800; line-height: 1.3; margin-top: 2px; }
.pro-option .p small { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.pro-option .note { font-size: 0.72rem; color: var(--muted); margin-top: 4px; line-height: 1.55; }

.price-card ul { list-style: none; margin-top: 12px; }
.price-card li {
  font-size: 0.9rem; padding: 6px 0 6px 26px; position: relative;
}
.price-card li::before {
  content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 800;
}
.pricing .note { font-size: 0.8rem; color: var(--muted); margin-top: 24px; text-align: center; }

/* ---------- FAQ ---------- */

.faq .list { margin-top: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }
.faq details {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 4px 24px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--ink);
  padding: 15px 32px 15px 0; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%;
  transform: translateY(-50%); color: var(--blue);
  font-size: 1.3rem; font-weight: 700;
}
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 18px; font-size: 0.9rem; color: var(--muted); }

/* ---------- CTA ---------- */

.cta-band { text-align: center; background: var(--bg-alt); }
.cta-band .mark-lg {
  width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 22px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
}
.cta-band .mark-lg svg { width: 54px; height: 54px; }
.cta-band .section-title { margin-bottom: 8px; }
.cta-band .hero-cta { justify-content: center; margin: 20px 0 4px; }
.cta-band .hero-note { margin-top: 14px; }
.cta-band .store-badge { margin-top: 18px; }

/* ---------- フッター ---------- */

.site-footer {
  background: #10161d; color: rgba(238, 244, 250, 0.72);
  padding: 52px 0 44px; font-size: 0.88rem;
}
.site-footer .cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.site-footer .top {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 800; font-size: 0.98rem; margin-bottom: 12px;
}
.site-footer .top svg { width: 26px; height: 26px; flex: none; }
.site-footer .desc { font-size: 0.8rem; line-height: 1.8; color: rgba(238, 244, 250, 0.5); }
.site-footer h5 {
  font-size: 0.78rem; letter-spacing: 0.1em; color: rgba(238, 244, 250, 0.45);
  margin-bottom: 12px; font-weight: 800;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 40px; }
.site-footer > .container > nav { display: flex; gap: 0 22px; flex-wrap: wrap; margin-bottom: 16px; }
.site-footer > .container > nav a { display: inline-flex; align-items: center; min-height: 40px; }
.site-footer a { color: rgba(238, 244, 250, 0.85); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .copy {
  font-size: 0.78rem; color: rgba(238, 244, 250, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 36px; padding-top: 20px;
}

/* ---------- 下層ページ ---------- */

.page-body { padding: 64px 0 88px; }
.page-body h1 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin-bottom: 8px; font-weight: 800; }
.page-body .updated { font-size: 0.82rem; color: var(--muted); margin-bottom: 34px; }
.page-body h2 { font-size: 1.2rem; margin: 40px 0 12px; font-weight: 800; }
.page-body p, .page-body li { font-size: 0.96rem; }
.page-body ul.doc { list-style: none; }
.page-body ul.doc li {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; margin-top: 24px; box-shadow: var(--shadow);
}
.contact-card .mail { font-size: 1.1rem; font-weight: 700; }

/* ---------- レスポンシブ ---------- */

@media (max-width: 900px) {
  /* 狭い画面ではナビを折り返さず1行に収め、はみ出す分は横スクロールさせる。
     折り返すとstickyヘッダーが画面の2割を占めてしまうため。 */
  .site-nav {
    flex-wrap: nowrap; overflow-x: auto; width: 100%; margin-left: 0;
    gap: 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; }
  /* ヘッダーのCTAは本文のダウンロードボタンと重複するため狭い画面では省く */
  .site-nav .nav-cta { display: none; }
  .site-header .container { gap: 0 12px; }

  section { padding: 60px 0; }
  .hero { padding: 44px 0 60px; }
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: 2; }
  .problem .grid, .pillars .grid, .features .grid,
  .privacy-band .grid, .pricing .grid { grid-template-columns: 1fr; }
  /* スクショは横スワイプのカルーセルに（アプリLPの定番。縦に4枚積むより短くなる） */
  .screens .grid {
    display: flex; gap: 16px; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 4px 4px 16px; margin-left: -4px; margin-right: -4px;
    scrollbar-width: none;
  }
  .screens .grid::-webkit-scrollbar { display: none; }
  .screen-card { flex: 0 0 78%; scroll-snap-align: center; }
  .pillars .concept-grid { grid-template-columns: 1fr; }
  .concept-card.wide { display: block; }
  .concept-card.wide .viz { margin-top: 26px; }
  /* ナビが2行に折り返してヘッダーが高くなるため余裕を持たせる */
  section[id] { scroll-margin-top: 124px; }
  .pro-options { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .chip-pos1 { right: 0; }
  .chip-pos2 { left: 0; }
}

@media (max-width: 480px) {
  .pro-options { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
}

/* ---------- スクショ拡大ダイアログ ---------- */

dialog.shot-dialog {
  border: none; border-radius: 24px; padding: 12px;
  background: #fff; box-shadow: var(--shadow);
  max-width: min(92vw, 460px); max-height: 92vh; margin: auto;
}
dialog.shot-dialog::backdrop { background: rgba(16, 22, 29, 0.66); backdrop-filter: blur(3px); }
dialog.shot-dialog img {
  border-radius: 14px; max-height: calc(92vh - 84px);
  width: auto; max-width: 100%; margin: 0 auto;
}
dialog.shot-dialog .close {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 44px; margin-top: 10px;
  border: none; border-radius: 12px; cursor: pointer;
  background: var(--bg-alt); color: var(--ink);
  font-size: 0.9rem; font-weight: 700; font-family: inherit;
}
dialog.shot-dialog .close:hover { background: var(--sky-pale); }

/* ---------- スクロール出現 ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
