/* Logria 公式サイト 共通スタイル */

:root {
  --paper: #faf8f4;
  --paper-2: #f2eee6;
  --card: #ffffff;
  --ink: #1d1b22;
  --ink-2: #4a4652;
  --ink-3: #75707d;
  --line: #e4ded3;
  --accent: #5a74e8;
  --accent-ink: #3a55c9;
  --accent-soft: #e7ecff;
  --pink: #c9557c;
  --sage: #4e7a5a;
  --sage-soft: #e6efe7;
  --blue: #2b78ad;
  --amber: #c98a1c;
  --violet: #7350c0;
  --shadow: 0 1px 2px rgba(29, 27, 34, .05), 0 8px 28px rgba(29, 27, 34, .07);
  --radius: 18px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15141a;
    --paper-2: #1c1b22;
    --card: #211f27;
    --ink: #f1eee8;
    --ink-2: #cbc6cf;
    --ink-3: #9a95a1;
    --line: #34313b;
    --accent: #8ea6ff;
    --accent-ink: #a9bbff;
    --accent-soft: #232842;
    --pink: #ee8fae;
    --sage: #7fb48d;
    --sage-soft: #1e2b22;
    --blue: #6aa8d8;
    --amber: #e3ac4a;
    --violet: #a68be6;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #15141a;
  --paper-2: #1c1b22;
  --card: #211f27;
  --ink: #f1eee8;
  --ink-2: #cbc6cf;
  --ink-3: #9a95a1;
  --line: #34313b;
  --accent: #8ea6ff;
  --accent-ink: #a9bbff;
  --accent-soft: #232842;
  --pink: #ee8fae;
  --sage: #7fb48d;
  --sage-soft: #1e2b22;
  --blue: #6aa8d8;
  --amber: #e3ac4a;
  --violet: #a68be6;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  font-feature-settings: "palt" 1;
  overflow-x: hidden;
}

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

a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 16px; }

/* ── ヘッダー ───────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: .03em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }

.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: 999px;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }

@media (max-width: 480px) {
  .site-header .wrap { gap: 8px; }
  .nav { gap: 0; }
  .nav a { padding: 6px 8px; font-size: 13px; }
  .brand { gap: 8px; font-size: 17px; }
  .brand img { width: 28px; height: 28px; }
}
@media (max-width: 350px) {
  .nav a { padding: 6px 6px; font-size: 12.5px; }
}

/* ── ボタン ───────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 0; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn small { display: block; font-size: 11px; font-weight: 500; opacity: .75; letter-spacing: .04em; }
.btn[aria-disabled="true"] { cursor: default; }

/* ── 共通の見出し ───────────────────────────── */

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .18em;
  color: var(--accent-ink); text-transform: uppercase; margin-bottom: 12px;
}
.section { padding: 96px 0; }
.section-alt { background: var(--paper-2); }
.section h2, .doc h2, .doc-hero h1 { word-break: auto-phrase; text-wrap: balance; }
.section h2 {
  font-size: clamp(26px, 4.2vw, 38px); line-height: 1.4; margin: 0 0 16px; letter-spacing: .03em; font-weight: 700;
}
.lead { color: var(--ink-2); font-size: 17px; max-width: 40em; margin: 0; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
}

/* ── ヒーロー ───────────────────────────── */

.hero { padding: 72px 0 88px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(32px, 5.2vw, 52px); line-height: 1.3; margin: 0 0 22px; letter-spacing: .02em; font-weight: 700;
}
.hero h1 em {
  font-style: normal; white-space: nowrap; color: var(--accent);
  background: linear-gradient(90deg, var(--pink), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .sub { font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); margin: 0 0 30px; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.badges sup { font-size: .75em; margin-left: 1px; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.badges li {
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  background: var(--card); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px;
}

@media (max-width: 860px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* ── iPhone の画面(実機のスクリーンショット) ───────────────────────────── */

.phone {
  width: min(300px, calc(100% - 20px)); margin-inline: auto;
  box-sizing: content-box; background: #111; border-radius: 46px; padding: 10px;
  box-shadow: var(--shadow), 0 30px 60px -20px rgba(0,0,0,.35); position: relative;
}
/* 縦横比は余白のない画面のほうに付ける(余白のある枠に付けると、Safari で画面が縦に伸び、画像が拡大されて左右が切れる) */
.phone-screen { aspect-ratio: 1206 / 2622; border-radius: 37px; overflow: hidden; position: relative; background: #fcfaf5; }
.phone-screen img { display: block; width: 100%; height: auto; }

/* 3つの画面を横に並べ、下のボタンか数秒ごとの自動で切り替える(画面そのものは触っても動かない) */
.phone-stage { display: grid; justify-items: center; gap: 22px; min-width: 0; }
.screens { overflow: hidden; }
.screens-track {
  display: flex; transition: transform .6s cubic-bezier(.2, .7, .2, 1);
  transform: translateX(calc(var(--screen, 0) * -100%));
}
.screen { flex: 0 0 100%; }
.screen img { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .screens-track { transition: none; }
}
.screen-tabs {
  display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.screen-tabs button {
  font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink-3);
  background: none; border: 0; border-radius: 999px; padding: 7px 12px; cursor: pointer;
  transition: background-color .25s, color .25s;
}
.screen-tabs button:hover { color: var(--ink); }
.screen-tabs button[aria-current="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.screen-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 360px) {
  .screen-tabs button { padding: 7px 9px; font-size: 12px; }
}
.phone-island { position: absolute; top: 2.2%; left: 50%; translate: -50% 0; width: 31%; height: 3.6%; border-radius: 20px; background: #111; z-index: 2; }

/* ── 5つのポイント ───────────────────────────── */

.points { display: grid; gap: 18px; margin-top: 48px; grid-template-columns: repeat(6, 1fr); }
.point {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 26px;
  grid-column: span 2; position: relative;
}
.point:nth-child(4), .point:nth-child(5) { grid-column: span 3; }
.point .num { font-size: 13px; font-weight: 700; color: var(--accent-ink); letter-spacing: .12em; }
.point h3 { font-size: 20px; line-height: 1.5; margin: 6px 0 10px; }
.point p { margin: 0; color: var(--ink-2); font-size: 15px; }
.point ul { margin: 10px 0 0; padding-left: 1.2em; color: var(--ink-2); font-size: 15px; }
.point .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.point .ic svg { width: 22px; height: 22px; }
.ic-accent { background: var(--accent-soft); color: var(--accent-ink); }
.ic-sage { background: var(--sage-soft); color: var(--sage); }

@media (max-width: 900px) {
  .points { grid-template-columns: 1fr 1fr; }
  .point, .point:nth-child(4), .point:nth-child(5) { grid-column: span 1; }
  .point:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 600px) {
  .points { grid-template-columns: 1fr; }
  .point:nth-child(5) { grid-column: span 1; }
}

/* ── ひとつに集約(機能の並び) ───────────────────────────── */

.unify { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 44px; }
.unify div {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 14px 18px; text-align: center;
}
.unify svg { width: 28px; height: 28px; margin: 0 auto 10px; color: var(--sage); }
.unify b { display: block; font-size: 15px; }
.unify span { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; margin-top: 4px; }
@media (max-width: 760px) { .unify { grid-template-columns: repeat(2, 1fr); } }

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

.privacy-band { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 16px 54px; position: relative; font-size: 15px; color: var(--ink-2);
}
.checks li b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.checks li::before {
  content: ""; position: absolute; left: 18px; top: 19px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (max-width: 860px) { .privacy-band { grid-template-columns: 1fr; gap: 32px; } }

/* ── カスタマイズ ───────────────────────────── */

.customizer { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.customizer-row h3 { font-size: 17px; margin: 0 0 12px; }
.customizer-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.customizer-hint { margin: 0; font-size: 13px; color: var(--ink-3); }
.customizer:not(.is-ready) .customizer-foot { display: none; }
.customizer-reset { padding: 8px 18px; font-size: 14px; }
.customizer-reset[hidden] { display: none; }

.swatches, .patterns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.swatch, .pattern {
  font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  border-radius: 14px; border: 1px solid rgba(0,0,0,.08); transition: transform .15s, box-shadow .15s;
}
.swatch { padding: 14px 12px 12px; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.swatch i { width: 24px; height: 24px; border-radius: 50%; display: block; }
.swatch span { font-size: 13px; font-weight: 700; letter-spacing: .04em; line-height: 1.4; }
.swatch small { display: block; font-size: 11px; font-weight: 500; opacity: .65; letter-spacing: .02em; }
.pattern { padding: 0; overflow: hidden; background: var(--card); color: var(--ink); display: flex; flex-direction: column; }
.pattern canvas { display: block; width: 100%; height: 64px; background: var(--thumb-bg, var(--paper)); border-bottom: 1px solid var(--line); }
.pattern span { font-size: 13px; font-weight: 700; padding: 7px 12px 8px; }
.swatch:hover, .pattern:hover { transform: translateY(-1px); }
.swatch[aria-checked="true"], .pattern[aria-checked="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent); }
@media (max-width: 640px) {
  .swatches, .patterns { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding: 6px 6px 10px; margin: -6px -6px 0; scrollbar-width: none; }
  .swatches::-webkit-scrollbar, .patterns::-webkit-scrollbar { display: none; }
  .swatch, .pattern { flex: 0 0 104px; scroll-snap-align: start; }
}

/* 「自分好みの見た目に。」で選んだ背景模様を、ページの背景に敷く */
body, .section-alt { transition: background-color .3s, color .3s; }
.has-pattern body, .has-pattern .section-alt {
  background-image: var(--page-pattern); background-size: 256px 256px; background-attachment: fixed;
}
.custom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.custom-grid > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.custom-grid h3 { margin: 0 0 8px; font-size: 17px; }
.custom-grid p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding: 0; list-style: none; }
.tags li { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
@media (max-width: 860px) { .custom-grid { grid-template-columns: 1fr; } }

/* ── ライフログ ───────────────────────────── */

.health { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 36px; }
.health div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; gap: 10px; align-items: center; font-size: 14.5px; font-weight: 500; }
.health svg { width: 20px; height: 20px; color: var(--accent-ink); flex: none; }
@media (max-width: 760px) { .health { grid-template-columns: repeat(2, 1fr); } }

/* ── 料金 ───────────────────────────── */

.price {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 48px clamp(22px, 5vw, 56px);
  display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; box-shadow: var(--shadow);
}
.price-tag { font-size: clamp(44px, 7vw, 64px); font-weight: 700; line-height: 1; letter-spacing: .02em; }
.price-tag small { display: block; font-size: 14px; color: var(--ink-3); font-weight: 500; margin-top: 10px; letter-spacing: .06em; }
.price h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 8px; }
.price p { margin: 0; color: var(--ink-2); }
.price p.price-note { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 700px) { .price { grid-template-columns: 1fr; gap: 20px; } }

/* ── CTA ───────────────────────────── */

.cta { text-align: center; }
.cta img { width: 88px; height: 88px; border-radius: 21px; margin: 0 auto 24px; box-shadow: var(--shadow); }
.cta .hero-cta { justify-content: center; margin-top: 28px; }

/* ── 文書ページ(ヘルプ・プライバシーポリシー) ───────────────────────────── */

.doc-hero { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.doc-hero h1 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 10px; line-height: 1.35; }
.doc-hero p { margin: 0; color: var(--ink-2); max-width: 42em; }

.lang-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.lang-switch a {
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.4;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
}
.lang-switch a:hover { color: var(--ink); border-color: var(--ink-3); }
.lang-switch a[aria-current="page"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }

/* 韓国語のページは、ハングルのない Zen Kaku Gothic New を使わず、語の途中で折り返さない */
html:lang(ko) body { font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; word-break: keep-all; overflow-wrap: anywhere; }

.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding: 48px 0 96px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 14px; }
.toc p { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--ink-3); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--ink-2); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; line-height: 1.5; }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }

.doc { max-width: 44em; }
.doc h2 { font-size: 24px; margin: 64px 0 16px; padding-top: 8px; line-height: 1.45; scroll-margin-top: 80px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 18px; margin: 34px 0 10px; line-height: 1.5; scroll-margin-top: 80px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--ink); }
.doc .path {
  display: inline-block; font-size: .92em; background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 0 7px; color: var(--ink); line-height: 1.7;
}
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--ink); font-weight: 700; white-space: nowrap; }
.doc td { color: var(--ink-2); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 560px; }

.note {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--sage); border-radius: 12px; padding: 14px 18px; margin: 18px 0; font-size: 15px; color: var(--ink-2);
}
.note.warn { border-left-color: var(--amber); }

.gestures { display: grid; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.gestures li { display: grid; grid-template-columns: 9.5em 1fr; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0; }
.gestures b { color: var(--ink); font-size: 14.5px; }
@media (max-width: 560px) { .gestures li { grid-template-columns: 1fr; gap: 2px; } }

details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; }
details.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--ink); list-style: none; position: relative; padding-right: 44px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 18px; top: 11px; font-size: 22px; color: var(--ink-3); font-weight: 400; }
details.faq[open] summary::after { content: "−"; }
details.faq > div { padding: 0 18px 14px; }
details.faq > div p { margin: 0 0 8px; }

.meta { font-size: 14px; color: var(--ink-3); margin-top: 40px; }

@media (max-width: 860px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
  .toc { position: static; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
  .toc ol { columns: 2; column-gap: 18px; border-left: 0; }
  .toc a { padding-left: 0; border-left: 0; }
}
@media (max-width: 420px) { .toc ol { columns: 1; } }

@media (max-width: 600px) {
  .table-scroll table { min-width: 0; }
  .doc table, .doc tbody, .doc tr, .doc th, .doc td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc tr { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
  .doc th, .doc td { border: 0; padding: 2px 0; white-space: normal; }
  .doc th { font-size: 15.5px; margin-bottom: 4px; }
  .doc td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; margin-top: 6px; }
}

/* ── フッター ───────────────────────────── */

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--ink-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* ── スクロールの動き(motion.js) ───────────────────────────── */

/* 画面に入ると、下からふわっと出る。カードの並びは --i の順に少しずつ遅れて出る */
.motion [data-reveal], .motion [data-reveal-group] > * {
  opacity: 0; translate: 0 36px;
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), translate 1.1s cubic-bezier(.2, .7, .2, 1), filter 1.1s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.motion h2[data-reveal], .motion [data-reveal-group] > h1 { filter: blur(8px); translate: 0 28px; }
.motion .phone-stage[data-reveal] { translate: 0 80px; transition-duration: 1.2s, 1.4s, 1.4s; }
.motion .is-in, .motion h2.is-in, .motion [data-reveal-group] > h1.is-in, .motion .phone-stage.is-in { opacity: 1; translate: none; filter: none; }

/* ヒーローは読み込んだときに上から順に出す */
.motion .hero [data-reveal], .motion .hero [data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 110ms + 80ms); }

/* スクロールに合わせて、文章が前から順に濃くなる */
.lead.is-scrub { color: var(--ink); }
.is-scrub span { opacity: .2; transition: opacity .35s ease-out; }
.is-scrub span.is-lit { opacity: 1; }
.section .lead-scrub { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.75; font-weight: 700; max-width: 30em; margin-top: 28px; }

.hero .phone-stage { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
