/* =========================================================
   Poprio 公式サイト 共通スタイル
   ブランド: ニュートラル（白・グレー）基調＋ビビッドなインディゴのアクセント。
   LP / 法務ページ共通。ダークモード・レスポンシブ対応。
   ========================================================= */

:root {
  color-scheme: light; /* 常にライト表示（フォーム部品・スクロールバー含む） */

  /* ブランド（ニュートラル＋ビビッド：インディゴ） */
  --brand: #4f52d9;        /* 基調（インディゴ） */
  --brand-600: #4144c4;    /* 濃いめ（hover） */
  --brand-700: #32359c;    /* さらに濃い */
  --brand-300: #a9abf0;    /* 淡いインディゴ */
  --brand-100: #e2e3fa;    /* ごく淡い */
  --brand-50: #f1f2fc;     /* 背景用の極淡 */

  --accent: #8b8ef2;       /* ライトインディゴ（グラデ終点） */
  --ink: #17181f;
  --body: #3c3e49;
  --muted: #767986;
  --line: #e6e6ec;
  --bg: #ffffff;
  --bg-soft: #f7f7fa;
  --bg-deep: #141419;

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1080px;
  --shadow-sm: 0 1px 2px rgba(23, 24, 31, .06), 0 1px 3px rgba(23, 24, 31, .04);
  --shadow-md: 0 10px 30px -12px rgba(79, 82, 217, .26), 0 4px 12px -6px rgba(23, 24, 31, .12);
  --shadow-lg: 0 30px 60px -20px rgba(79, 82, 217, .34);
}

/* ダークモード分岐は廃止（常にライト表示）。端末設定に関わらず白基調で見せる */

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }

/* ===== ヘッダー（ガラス風・追従） ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .5px;
  color: var(--ink);
}
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a.cta {
  color: #fff;
  background: var(--brand);
  font-weight: 700;
}
.nav a.cta:hover { background: var(--brand-600); }

/* ===== ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }
.btn.secondary {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn.secondary:hover { background: var(--bg-soft); }
.btn.ghost { background: transparent; color: var(--brand); box-shadow: none; }

/* ストア公開前の「準備中」ボタン（クリック不可・半透明） */
.btn.store-soon {
  background: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .85);
  border: 1px dashed rgba(255, 255, 255, .5);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}
.btn.store-soon small {
  font-size: 11px; font-weight: 800;
  background: rgba(255, 255, 255, .22);
  padding: 2px 8px; border-radius: 999px;
}
/* ヒーローCTAの「近日公開」バッジ */
.soon-badge {
  font-size: 10.5px; font-weight: 800;
  background: rgba(255, 255, 255, .24);
  padding: 2px 8px; border-radius: 999px;
  margin-left: 2px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 50% -8%, var(--brand-100) 0%, transparent 60%),
    linear-gradient(180deg, var(--brand-50) 0%, var(--bg) 78%);
  padding: 76px 22px 72px;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: .4px;
  color: var(--brand-600);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 54px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -.5px;
  margin: 0 0 18px;
  color: var(--ink);
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(15px, 2.4vw, 19px); color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .micro { margin-top: 16px; font-size: 13px; color: var(--muted); }
/* 実績風スタッツ: 2×2グリッドで縦横を揃える（項目の文字数差でガタつかないように） */
.hero .trust {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 26px;
  max-width: 470px;
}
.hero .trust .stat {
  border-left: 3px solid var(--brand-100);
  padding-left: 12px;
}
.hero .trust .stat strong { display: block; font-size: clamp(17px, 2.2vw, 20px); font-weight: 900; color: var(--ink); line-height: 1.3; }
.hero .trust .stat span { font-size: 12.5px; color: var(--muted); }
/* 語のまとまりで改行させる（「OK」だけが2行目に落ちる等の防止） */
.nb { white-space: nowrap; }

/* HERO 端末モック */
.device {
  justify-self: center;
  width: min(290px, 78vw);
  aspect-ratio: 9 / 18.5;
  border-radius: 38px;
  background: linear-gradient(160deg, #fff 0%, var(--brand-50) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  position: relative;
  transform: rotate(2deg);
  transition: transform .4s ease;
}
.device:hover { transform: rotate(0deg) translateY(-4px); }
.device::before {
  content: "";
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 22px; border-radius: 999px;
  background: var(--ink); opacity: .85;
}
.device .screen {
  height: 100%;
  border-radius: 26px;
  background:
    radial-gradient(300px 160px at 50% 0%, var(--brand-100), transparent 70%),
    var(--bg);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 26px 18px; text-align: center;
}
.device .screen img { width: 76px; height: 76px; border-radius: 18px; box-shadow: var(--shadow-md); }
.device .screen .t { font-weight: 900; font-size: 19px; color: var(--ink); }
.device .screen .s { font-size: 12.5px; color: var(--muted); }
.device .chip {
  font-size: 11.5px; font-weight: 800; color: var(--brand-600);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 5px 11px; border-radius: 999px;
}

/* ===== セクション共通 ===== */
.section { padding: 76px 0; }
.section.soft { background: var(--bg-soft); }
.section h2 {
  font-size: clamp(24px, 4.4vw, 36px);
  font-weight: 900; letter-spacing: -.4px;
  text-align: center; margin: 0 0 10px; color: var(--ink);
}
.section .sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 44px; font-size: 15.5px; }
.section .kicker {
  text-align: center; font-size: 13px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--brand); margin: 0 0 10px;
}

/* ===== 特徴グリッド ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.card .ic {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; font-size: 25px;
  background: linear-gradient(140deg, var(--brand-50), var(--brand-100));
  border: 1px solid var(--brand-100);
  margin-bottom: 16px;
}
.card h3 { font-size: 17px; margin: 0 0 7px; color: var(--ink); }
.card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ===== ステップ（使い方） ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 22px;
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  font-weight: 900; font-size: 16px; color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-600));
  box-shadow: var(--shadow-md);
}
.step h3 { margin: 12px 0 7px; font-size: 16.5px; color: var(--ink); }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

/* ===== プラン ===== */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 720px; margin: 0 auto; }
.plan {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.plan.pro {
  border-color: transparent;
  background: linear-gradient(180deg, var(--brand-50), var(--bg));
  box-shadow: var(--shadow-md);
  outline: 2px solid var(--brand);
}
.plan .tag {
  position: absolute; top: 18px; right: 18px;
  font-size: 11.5px; font-weight: 800; color: #fff;
  background: var(--brand); padding: 4px 11px; border-radius: 999px;
}
.plan h3 { margin: 0 0 4px; font-size: 19px; color: var(--ink); }
.plan .price { font-size: 30px; font-weight: 900; color: var(--ink); margin: 10px 0 4px; }
.plan .price small { font-size: 14px; font-weight: 700; color: var(--muted); }
.plan .price-note { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { font-size: 14px; color: var(--body); padding: 8px 0 8px 28px; position: relative; border-top: 1px dashed var(--line); }
.plan li:first-child { border-top: none; }
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 900;
  color: #fff; background: var(--brand);
}
.plan.free li::before { background: #94a3b8; }

/* ===== FAQ ===== */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 50px 18px 20px; position: relative;
  font-weight: 800; font-size: 15px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--brand); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .a { padding: 0 20px 18px; font-size: 14px; color: var(--muted); }

/* ===== CTA バンド ===== */
.cta-band {
  margin: 0 22px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff; text-align: center;
  padding: 56px 24px;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 200px at 50% -20%, rgba(255,255,255,.25), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; font-size: clamp(22px, 4vw, 32px); margin: 0 0 10px; position: relative; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0 0 24px; position: relative; }
.cta-band .btn { background: #fff; color: var(--brand-700); position: relative; }
.cta-band .btn:hover { background: #f1f5f9; }

.note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 20px; }

/* ===== フッター ===== */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding: 40px 22px 56px;
  background: var(--bg-soft);
}
.site-footer .wrap { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer .f-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; color: var(--ink); }
.site-footer .f-brand img { width: 26px; height: 26px; border-radius: 7px; }
.site-footer .f-links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .f-links a { color: var(--muted); font-size: 13.5px; }
.site-footer .f-links a:hover { color: var(--ink); }
.site-footer .copy { width: 100%; text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 22px; }

/* =========================================================
   法務ページ
   ========================================================= */
.legal-hero {
  background: linear-gradient(180deg, var(--brand-50), var(--bg));
  border-bottom: 1px solid var(--line);
  padding: 44px 22px 30px;
}
.legal-hero .container { max-width: 800px; }
.legal-hero h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; color: var(--ink); margin: 0 0 8px; letter-spacing: -.3px; }
.legal-hero .updated { color: var(--muted); font-size: 13px; margin: 0; }

.legal { max-width: 800px; margin: 0 auto; padding: 36px 22px 8px; }
.legal h2 {
  font-size: 19px; font-weight: 800; color: var(--ink);
  margin: 38px 0 12px; padding-bottom: 9px;
  border-bottom: 2px solid var(--brand-100);
}
.legal h3 { font-size: 15.5px; font-weight: 800; color: var(--ink); margin: 22px 0 8px; }
.legal p, .legal li { font-size: 15px; color: var(--body); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 7px; }
.legal table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.legal th, .legal td { padding: 13px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal tr:last-child th, .legal tr:last-child td { border-bottom: none; }
.legal th { background: var(--bg-soft); width: 34%; white-space: nowrap; color: var(--ink); font-weight: 700; }
.legal .toplink { display: inline-block; margin: 30px 0 0; font-weight: 700; }

.placeholder {
  background: #fff7ed; color: #c2410c;
  padding: 1px 6px; border-radius: 5px; font-weight: 700;
  border: 1px dashed #fdba74;
}
.callout {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 16px 18px; font-size: 13.5px; color: var(--body); margin: 22px 0;
}

/* ===== レスポンシブ ===== */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero .eyebrow, .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .cta-row { justify-content: center; }
  .hero .trust { margin-left: auto; margin-right: auto; text-align: left; }
  .device { order: -1; margin-bottom: 8px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .features, .steps, .plans { grid-template-columns: 1fr; }
  .nav a:not(.cta) { display: none; }
  .legal th { width: 40%; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .btn:hover, .card:hover, .device:hover { transform: none; }
}
