/* IfSmoke site — "Light Fintech Blue"（iOS アプリと同一トークン）
   blue = アクション / teal = お金。ネオン・グローは使わない。 */
:root {
  --bg: #F1F6FC;
  --bg-top: #E6F0FB;
  --card: #FFFFFF;
  --card-tint: #EAF2FE;

  --blue: #0A64F5;
  --blue-deep: #0550D6;
  --blue-soft: #E3EEFE;

  --teal: #00A38F;
  --teal-deep: #008A79;
  --teal-soft: #DDF3F0;

  --amber: #E8870E;

  --ink: #16243A;
  --ink2: #3D4D63;
  --sub: #66788F;
  --faint: #9AA8BA;

  --line: #E4EBF4;
  --line2: #D5DFEC;
  --shadow: rgba(27, 58, 102, 0.08);

  /* 旧トークン名のエイリアス（HTML 内の inline 参照互換） */
  --mint: var(--teal);
  --mint-hi: var(--teal);
  --mint-deep: var(--teal-deep);
  --gold: var(--amber);
  --gold-hi: var(--amber);
  --mute: var(--sub);
  --mute2: var(--faint);
  --hair: var(--line);
  --hair2: var(--line2);

  --radius: 20px;
  --maxw: 980px;
}

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

html { scroll-behavior: smooth; }

body {
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 340px);
  color: var(--ink);
  /* スクショのコピーと同じ iOS システムフォント（ヒラギノ）優先。非 Apple は Noto にフォールバック */
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.num {
  font-feature-settings: "tnum";
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { color: var(--blue); text-decoration: none; }
a:hover { opacity: 0.8; }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Nav ---------- */
.nav {
  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);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 13px 22px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 26px; width: auto; }
.nav-links { margin-left: auto; display: flex; gap: 7px; flex-wrap: wrap; }
.nav-links a {
  color: var(--sub); font-size: 13px; font-weight: 700;
  padding: 7px 12px; border-radius: 999px;
}
.nav-links a.on, .nav-links a:hover { color: var(--blue); background: var(--blue-soft); opacity: 1; }

/* ハンバーガー（SP のみ表示） */
.nav-open-box { display: none; }
.nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
/* index の KV: コピー / スクショ / CTA を grid-area で制御（SPでCTAを画像の下へ） */
.hero-grid:has(> .cta-row) {
  grid-template-areas: "copy phone" "cta phone";
  row-gap: 0;
}
.hero-grid:has(> .cta-row) .hero-copy { grid-area: copy; align-self: end; }
.hero-grid:has(> .cta-row) .phone { grid-area: phone; }
.hero-grid > .cta-row { grid-area: cta; align-self: start; }
.kicker {
  color: var(--blue); font-size: 12px; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase; margin-bottom: 18px;
}
h1 {
  font-size: clamp(30px, 4.6vw, 46px); font-weight: 700;
  line-height: 1.42; letter-spacing: 0.01em; margin-bottom: 18px;
  color: var(--ink);
}
.lead { color: var(--sub); font-size: 15.5px; max-width: 34em; }
.lead b { color: var(--ink2); }

.cta-row { display: flex; gap: 12px; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 1; }
.btn-mint {
  background: linear-gradient(180deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 8px 22px rgba(10, 100, 245, 0.28);
}
.btn-ghost {
  color: var(--blue);
  background: var(--card);
  border: 1.5px solid rgba(10, 100, 245, 0.35);
  box-shadow: 0 4px 14px var(--shadow);
}
.btn-appstore {
  background: #111;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.btn-appstore svg { margin-right: 2px; }
.coming {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--sub); font-size: 12.5px; font-weight: 700;
  padding: 9px 16px; border: 1px dashed var(--line2); border-radius: 999px;
  background: var(--card);
}

/* ---------- Phone frame ---------- */
.phone {
  border-radius: 46px;
  border: 7px solid #DCE6F2;
  outline: 1px solid #C8D6E8;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 24px 60px rgba(27, 58, 102, 0.18);
  max-width: 320px;
  margin: 0 auto;
}
.phone img { width: 100%; }
.phone.sm { max-width: 250px; border-radius: 38px; }

/* ---------- Sections / cards ---------- */
section { padding: 56px 0; }
.sec-label {
  color: var(--faint); font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 10px;
}
h2 { font-size: clamp(22px, 3.2vw, 30px); font-weight: 700; line-height: 1.5; margin-bottom: 14px; color: var(--ink); }
h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.muted { color: var(--sub); }
.small { font-size: 12.5px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 6px 22px var(--shadow);
}
.card.glow { border-color: #C9DCFC; box-shadow: 0 10px 30px rgba(10, 100, 245, 0.10); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* 数字スタット */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.stat .v {
  color: var(--teal); font-size: clamp(24px, 3.4vw, 34px);
}
.stat .v.gold { color: var(--amber); }
.stat .l { color: var(--sub); font-size: 12.5px; margin-top: 4px; }

/* ステップ */
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-no {
  flex: none; width: 34px; height: 34px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
  border: 1px solid rgba(10, 100, 245, 0.25);
  font-weight: 700; font-size: 15px;
}

/* チェックリスト */
ul.checks { list-style: none; }
ul.checks li { padding-left: 26px; position: relative; margin: 7px 0; color: var(--ink2); font-size: 14px; }
ul.checks li::before { content: "✓"; position: absolute; left: 2px; color: var(--teal); font-weight: 700; }

/* 大型チェックリスト（LP の訴求ポイント用・PC/SP 共通） */
ul.checks-lg li {
  padding: 9px 0 9px 40px;
  margin: 4px 0;
  font-size: 16px; font-weight: 700; color: var(--ink);
  line-height: 1.6;
}
ul.checks-lg li::before {
  content: "✓";
  left: 0; top: 50%; transform: translateY(-50%);
  width: 27px; height: 27px; border-radius: 999px;
  background: var(--teal); color: #fff;
  font-size: 14px; font-weight: 900;
  display: grid; place-items: center;
}

/* ---------- 比較表 ---------- */
.tablewrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 6px 22px var(--shadow); }
table.cmp { width: 100%; border-collapse: collapse; background: var(--card); min-width: 640px; }
table.cmp th, table.cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink2); }
table.cmp thead th { background: #F4F8FD; color: var(--sub); font-size: 12px; letter-spacing: 0.06em; }
table.cmp td b { color: var(--ink); }
table.cmp .mint { color: var(--teal); font-weight: 700; }

/* broker カード */
.broker { display: flex; flex-direction: column; gap: 12px; }
/* アプリからのアンカー遷移（#rakuten 等）でスティッキーnav 下に隠れないように */
.broker[id] { scroll-margin-top: 80px; }
.broker-head { display: flex; align-items: center; gap: 12px; }
.broker-logo {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 15px;
}
.broker .btn { justify-content: center; }

/* PR / 免責 */
.pr-note {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--sub);
  border: 1px solid var(--line2); border-radius: 999px; padding: 5px 14px;
  background: var(--card);
}
.disclaimer {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px;
  color: var(--sub); font-size: 12.5px; line-height: 1.9;
}

/* FAQ */
details.faq {
  background: var(--card);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 4px 22px; margin-bottom: 12px;
  box-shadow: 0 4px 16px var(--shadow);
}
details.faq summary {
  cursor: pointer; list-style: none;
  font-weight: 700; font-size: 15px; padding: 16px 0;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "Q"; color: var(--blue); font-weight: 900; }
/* 開閉インジケータ（＋ → −） */
details.faq summary::after {
  content: "＋";
  margin-left: auto;
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700; font-size: 15px; line-height: 1;
}
details.faq[open] summary::after { content: "−"; }
details.faq[open] summary { border-bottom: 1px solid var(--line); }
details.faq .a { padding: 14px 0 18px; color: var(--sub); font-size: 14px; }

/* 法務ページ */
.legal h2 { font-size: 19px; margin-top: 38px; }
.legal p, .legal li { color: var(--ink2); font-size: 14.5px; }
.legal ul { padding-left: 22px; }
/* 制定日: 小さく・右寄せ */
.hero .date { color: var(--faint); font-size: 11.5px; text-align: right; }

/* CTA band */
.band {
  text-align: center;
  background: linear-gradient(180deg, var(--card-tint), var(--card));
  border: 1px solid #C9DCFC;
  border-radius: 28px; padding: 48px 28px;
  box-shadow: 0 10px 30px var(--shadow);
}

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; margin-top: 40px; background: var(--card); }
footer .wrap { text-align: center; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; }
.foot-links a { color: var(--sub); font-size: 13px; }
.foot-links a:hover { color: var(--blue); }
.copyright { color: var(--faint); font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding-top: 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  /* KV: コピー → スクショ → CTA の順、すべてセンター */
  .hero-grid:has(> .cta-row) {
    grid-template-areas: "copy" "phone" "cta";
    row-gap: 30px;
  }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-grid > .cta-row { justify-content: center; margin-top: 0; }
  .grid3, .grid2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .phone { max-width: 270px; }
  /* セクション見出し・ページ見出しのセンタリング */
  .sec-head { text-align: center; }
  .sec-head .muted { margin-left: auto; margin-right: auto; }
  .hero-c .wrap { text-align: center; }
  .hero-c .wrap .lead { margin-left: auto; margin-right: auto; }
  .hero-c .date { text-align: right; }
}

@media (max-width: 640px) {
  /* backdrop-filter があると fixed の包含ブロックになり全画面メニューが潰れるため、SP ではブラー無しの不透明白に */
  .nav {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* グローバルナビ → ハンバーガー */
  .nav-links {
    position: fixed; inset: 0; z-index: 60;
    background: #fff;
    margin: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }
  .nav-links a { font-size: 18px; padding: 13px 26px; color: var(--ink); }
  .nav-links a.on { color: var(--blue); background: var(--blue-soft); }
  .nav-open-box:checked ~ .nav-links { opacity: 1; visibility: visible; }

  .nav-burger {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 5px;
    width: 40px; height: 40px;
    margin-left: auto;
    cursor: pointer;
    position: relative; z-index: 70;
  }
  .nav-burger span {
    display: block; width: 20px; height: 2px;
    background: var(--ink); border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-open-box:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open-box:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-open-box:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .brand { position: relative; z-index: 70; }
}

/* メニュー展開中は背景スクロールを止める */
html:has(.nav-open-box:checked) { overflow: hidden; }
