/* ヒナタの紹介ページ（docs_landing_page.md）。
   色はアプリの標準のテーマ（ブラック・app/webapp/styles.css の :root）と同じ値。アプリの色を変えたら、ここも合わせる。
   ⚠ Web フォントは読まない（端末の字体）。⚠ JS は使わない（メニューは <details> で開く） */
:root {
  --bg: #161518; --bg-alt: #1b1a1e; --card: #212024; --card-2: #2a292e; --foot: #111013;
  --ink: #f3f1f5; --text: #e2dfe6; --muted: #9d99a3; --line: #323036;
  --accent: #7045ff; --accent-2: #8e6bff; --accent-soft: #231b3a; --accent-text: #b8a4ff; --on-accent: #ffffff;
  --accent-glow: rgba(112, 69, 255, 0.35);
  --grad: linear-gradient(135deg, #7c52ff 0%, #5b2cf0 100%);
  --bubble-ai: #2a292e; --danger: #e5484d;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  --head-h: 60px;
  color-scheme: dark;
}

/* 英数字だけ端末の Roboto（Xperia は日本語のとき英数字まで等幅になるため・アプリと同じ）。ダウンロードはしない */
@font-face {
  font-family: "HinataLatin";
  src: local("Roboto"), local("Roboto-Regular"), local("RobotoStatic-Regular");
  font-weight: 100 600;
  unicode-range: U+0000-024F, U+2000-206F, U+20A9, U+20AC, U+2122;
}
@font-face {
  font-family: "HinataLatin";
  src: local("Roboto Bold"), local("Roboto-Bold"), local("Roboto"), local("Roboto-Regular");
  font-weight: 700 900;
  unicode-range: U+0000-024F, U+2000-206F, U+20A9, U+20AC, U+2122;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "HinataLatin", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased;
}
[lang="ko"] { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", sans-serif; }
img, video { max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); font-weight: 800; letter-spacing: .01em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.seg { display: inline-block; }
.i { width: 22px; height: 22px; display: block; flex: none; }

/* ---- ボタン ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; white-space: nowrap; box-shadow: 0 8px 24px var(--accent-glow);
  transition: background .2s, transform .12s;
}
.btn:hover { background: var(--accent-2); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.btn-lg { min-height: 56px; padding: 0 36px; font-size: 17px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 700; text-decoration: none; }
.more .i { width: 18px; height: 18px; transition: transform .15s; }
.more:hover .i { transform: translateX(3px); }

/* ---- ヘッダー ---- */
.site-head {
  position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top);
  background: rgba(22, 21, 24, .84); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.head-in { display: flex; align-items: center; gap: 8px; height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: .06em; }
.logo { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
.nav-pc { display: none; }
.head-cta { margin-left: auto; }
.head-cta .pc { display: none; }
.nav-sp > summary {
  list-style: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; cursor: pointer; color: var(--ink);
}
.nav-sp > summary::-webkit-details-marker { display: none; }
.nav-sp > summary .i + .i, .nav-sp[open] > summary .i:first-child { display: none; }
.nav-sp[open] > summary .i + .i { display: block; }
.nav-sp nav {
  position: fixed; left: 0; right: 0; top: calc(var(--head-h) + env(safe-area-inset-top));
  max-height: calc(100dvh - var(--head-h) - env(safe-area-inset-top)); overflow-y: auto;
  display: flex; flex-direction: column; padding: 4px 16px 24px;
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px rgba(0, 0, 0, .5);
}
.nav-sp nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }

/* ---- 画面の下の「ブラウザで話す」（スマホ） ---- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(22, 21, 24, .97) 62%, rgba(22, 21, 24, 0));
}
.sticky-cta .btn { width: 100%; min-height: 52px; }

/* ---- トップ：ヒーロー ---- */
.hero { position: relative; overflow: hidden; }
.hero-in { display: flex; flex-direction: column; }
.hero-visual { margin: 0 -16px; }
.hero-card { position: relative; }
.hero-img { display: block; width: 100%; height: min(76svh, 620px); object-fit: cover; object-position: 50% 10%; background: var(--card); }
.hero-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(22, 21, 24, 0) 48%, rgba(22, 21, 24, .75) 78%, var(--bg) 100%);
}
.hero-bubble {
  position: absolute; z-index: 2; left: 16px; top: 8%; margin: 0; max-width: 62%;
  padding: 9px 14px; border-radius: 18px 18px 18px 6px; font-size: 14px; line-height: 1.55; color: var(--ink);
  background: rgba(33, 32, 36, .82); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow);
}
.hero-talk {
  position: absolute; z-index: 2; right: 16px; top: 44%; width: 88px; height: 88px; border-radius: 22px; overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.hero-talk img, .hero-talk video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-talk video::-webkit-media-controls { display: none !important; } /* JS を切るとブラウザが操作の帯を出すため */
.hero-copy { position: relative; z-index: 3; margin-top: -150px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(36px, 10.6vw, 46px); line-height: 1.25; margin: 0 0 10px; text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }
.hero-sub { margin: 0 0 24px; color: var(--accent-text); font-weight: 700; font-size: 16px; }
/* スマホでは画面の下に「ブラウザで話す」が出続けるので、ヒーローのボタンは隠す（同じボタンが2つ縦に並ばないように。HTML には残す） */
.top .hero-cta .btn { display: none; }
.hero-cta .note { text-align: left; margin-top: 0; }
/* スマホではボタンを隠すので、「無料ではじめられます」は見出しの下の1行に寄せて置く（離れてぽつんと残らないように） */
.top .hero-sub { margin-bottom: 6px; }
.top .hero-cta .note { font-size: 14px; }
.note { margin: 10px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
/* Google Play のバッジ（10-07 製品版の公開）。⚠ 公式の画像のまま（上下に透明の余白がある）。⚠ スマホのヒーローでも出す（ボタンは隠すが、アプリの入口は残す） */
.play-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.play-badge img { display: block; height: 62px; width: auto; }
.play-badge:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hero-cta .play-badge { margin: 12px 0 0 -2px; }
.play-row { margin: 18px 0 0; display: flex; justify-content: center; }

/* ---- トップ：区画 ---- */
.sec { padding: 64px 0; }
.sec h2 { font-size: clamp(24px, 6.6vw, 30px); line-height: 1.4; margin: 0 0 14px; }
.sec p { margin: 0 0 14px; color: var(--text); }
.sec-head { max-width: 680px; margin-bottom: 28px; }
.sec-head p { color: var(--muted); }
.sample, .feats, .reads { background: var(--bg-alt); }
.two { display: grid; gap: 28px; align-items: center; }
.chat-panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 20px 14px; box-shadow: var(--shadow); }

/* 会話の見本（アプリのトークの吹き出しと同じ形） */
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; align-items: flex-end; gap: 8px; }
.msg.me { justify-content: flex-end; }
.msg .face { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: var(--card-2); }
.msg.ai + .msg.ai .face { visibility: hidden; }
.bubble { margin: 0 !important; max-width: 80%; padding: 9px 14px; border-radius: 18px; font-size: 15px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.msg.ai .bubble { background: var(--bubble-ai); border-bottom-left-radius: 6px; }
.msg.me .bubble { background: var(--grad); color: var(--on-accent); border-bottom-right-radius: 6px; }

/* 相手を選ぶ（スマホは横にスワイプ・2枚半） */
.char-row {
  list-style: none; margin: 0 -16px; padding: 4px 16px 14px;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 2.5); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; overscroll-behavior-x: contain; scrollbar-width: none;
}
.char-row::-webkit-scrollbar { display: none; }
.char-row li { scroll-snap-align: start; min-width: 0; }
.char-card { display: block; color: var(--ink); text-decoration: none; }
.char-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.char-label { display: block; margin-top: 10px; font-weight: 700; font-size: 15px; line-height: 1.45; }
.char-line { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.char-card:hover .char-label { color: var(--accent-text); }
.sec-foot { margin-top: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.sec-foot p { color: var(--muted); margin: 0; }

/* カード（できること・読み物） */
.card-grid { display: grid; gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.card h2, .card h3 { font-size: 19px; line-height: 1.45; margin: 16px 0 6px; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.card .more { margin-top: auto; }
.link-card { color: var(--ink); text-decoration: none; transition: border-color .2s; }
.link-card h2 { margin-top: 0; }
.link-card:hover { border-color: var(--accent); }

/* できることのカードの飾り */
.fv { position: relative; display: flex; height: 150px; border-radius: 16px; overflow: hidden; background: var(--bg-alt); }
.fv-talk { flex-direction: column; justify-content: center; gap: 8px; padding: 14px; }
.mini { margin: 0 !important; max-width: 88%; padding: 7px 12px; border-radius: 14px; font-size: 12.5px !important; line-height: 1.5 !important; color: var(--ink) !important; }
.mini.me { align-self: flex-end; background: var(--grad); color: var(--on-accent) !important; border-bottom-right-radius: 4px; }
.mrow { display: flex; align-items: flex-end; gap: 6px; }
.mrow img { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.mini.ai { background: var(--card-2); border-bottom-left-radius: 4px; }
.fv-call { align-items: flex-end; justify-content: center; }
.fv-call img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.fv-call::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, rgba(0, 0, 0, .45)); }
.cb { position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; margin: 0 6px 12px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cb .i { width: 18px; height: 18px; }
.cb.heart { color: #ff7aa8; }
.cb.end { background: var(--danger); }
.fv-closer { flex-direction: column; justify-content: center; gap: 4px; padding: 10px 18px; }
.step { display: block; width: fit-content; padding: 2px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.55; color: var(--muted); border: 1px solid var(--line); }
.step.s1 { margin-left: 10%; color: var(--text); border-color: #4a3f6b; }
.step.s2 { margin-left: 20%; color: var(--accent-text); background: var(--accent-soft); border-color: transparent; }
.step.s3 { margin-left: 30%; color: var(--on-accent); background: rgba(112, 69, 255, .55); border-color: transparent; }
.step.s4 { margin-left: 40%; color: var(--on-accent); background: var(--grad); border-color: transparent; }
.fv-story { gap: 6px; padding: 8px; }
.fv-story img { flex: 1; min-width: 0; height: 100%; object-fit: cover; border-radius: 10px; }
.fv-every { align-items: center; padding: 14px; background: radial-gradient(120% 90% at 20% 0%, #2d2448 0%, var(--bg-alt) 70%); }
.note-card { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08); }
.note-card img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.note-card p { margin: 0 !important; font-size: 12.5px !important; line-height: 1.5 !important; color: var(--ink) !important; }
.note-card b { display: block; font-size: 12px; color: var(--muted); }
.fv-lang { flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; padding: 14px; }
.fv-lang span { padding: 5px 13px; border-radius: 999px; background: var(--card-2); font-size: 14px; font-weight: 600; color: var(--text); }
.fv-lang span:first-child { background: var(--accent-soft); color: var(--accent-text); }

/* 安心して話せる */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 28px 20px; }
.safe-in { display: grid; gap: 24px; }
.safe-in .copy p { color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; line-height: 1.6; }
.checks .i { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }

/* プラン */
.narrow { max-width: 760px; }
.center { text-align: center; }
.plan p { color: var(--muted); }
.plan .btn { margin-top: 10px; }

/* 読み物とお知らせ */
.two-even { display: grid; gap: 48px; }
.reads h2 { font-size: 22px; }
.read-list, .news-list { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.read-list a, .news-list a { display: block; padding: 16px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.read-list .t, .news-list .t { display: block; font-weight: 700; line-height: 1.6; }
.read-list .d { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.news-list time { display: block; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.read-list a:hover .t, .news-list a:hover .t { color: var(--accent-text); }

/* よくある質問 */
.faq { margin: 8px 0 22px; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa > summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 2px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary .i { width: 22px; height: 22px; margin-top: 2px; color: var(--accent-text); transition: transform .2s; }
.qa[open] > summary .i { transform: rotate(45deg); }
.qa-a { padding: 0 2px 16px; color: var(--muted); }
.qa-a p { margin: 0 0 10px !important; color: var(--muted) !important; }
.qa-a ul { margin: 0 0 10px; padding-left: 1.3em; }

/* 最後の呼びかけ */
.cta-end { padding: 72px 0 84px; text-align: center; background: radial-gradient(55% 80% at 50% 100%, rgba(112, 69, 255, .24), transparent 72%); border-top: 1px solid rgba(255, 255, 255, .04); }
.cta-title { font-size: clamp(26px, 7vw, 40px); line-height: 1.4; font-weight: 800; margin: 0 0 26px; color: var(--ink); }
.cta-end .note { margin-top: 12px; }

.site-foot .tm { margin: 18px 0 4px; color: var(--muted); font-size: 11.5px; }

/* ---- 下層のページ ---- */
.page { padding: 18px 0 64px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; max-width: 720px; margin: 0 auto 18px; padding: 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #5d5963; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.prose { color: var(--text); }
.prose > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.prose h1 { font-size: clamp(28px, 7.6vw, 40px); line-height: 1.35; margin-top: 6px; margin-bottom: 22px; }
.prose .byline { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: -6px 0 24px; color: var(--muted); font-size: 13px; }
.prose .byline a { color: var(--muted); }
.prose .kicker { margin-bottom: 4px; color: var(--accent-text); font-weight: 700; font-size: 13px; letter-spacing: .08em; }
.prose h2 { font-size: clamp(21px, 5.8vw, 26px); line-height: 1.45; margin-top: 52px; margin-bottom: 14px; }
.prose h3 { font-size: 18px; line-height: 1.5; margin-top: 30px; margin-bottom: 10px; }
.prose p { margin-top: 0; margin-bottom: 16px; }
.prose ul, .prose ol { margin-top: 0; margin-bottom: 20px; padding-left: 1.4em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent-text); }
.prose strong { color: var(--ink); }
.prose .btn-row { margin: 28px auto; text-align: center; }
.prose .btn { color: var(--on-accent); }
.prose blockquote { margin-top: 0; margin-bottom: 18px; padding: 12px 18px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 12px 12px 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose > .chat { margin-top: 20px; margin-bottom: 24px; padding: 18px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.prose > .faq { margin-top: 0; }
.prose.center { text-align: center; }
.prose.center .chip-list { justify-content: center; margin-bottom: 8px; }
.table-wrap { overflow-x: auto; margin-bottom: 22px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 12px; border-bottom: 1px solid var(--line); }
.prose thead th { color: var(--muted); font-size: 13px; font-weight: 600; padding-top: 0; }
.prose tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; width: 7.5em; }
/* 挿絵の横の列（スマホは横にスワイプ・2枚半。広い画面は4枚が1列に並ぶ） */
.prose > .art-row { margin-top: 4px; margin-bottom: 26px; }
.art-scroll {
  margin: 0 -16px; padding: 2px 16px 4px;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 2.5); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; overscroll-behavior-x: contain; scrollbar-width: none;
}
.art-scroll::-webkit-scrollbar { display: none; }
.art-scroll img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); scroll-snap-align: start; }
.art-row figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.page.wide .prose > .card-grid { max-width: 1120px; }
.card-grid .card h2 { margin-top: 16px; font-size: 19px; }
.card-grid .link-card h2 { margin-top: 0; }

/* 相手を選ぶのページのカード */
.char { display: grid; gap: 16px; margin-top: 18px; margin-bottom: 22px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; scroll-margin-top: calc(var(--head-h) + 16px); }
.page.wide .prose > .char { max-width: 880px; }
.char figure { margin: 0; }
.char img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 16%; border-radius: 16px; background: var(--card-2); }
.char h3 { margin: 2px 0 8px; font-size: 20px; }
.char p { margin: 0 0 12px; }
.char .chat { margin-top: 14px; padding: 14px 12px; background: var(--bg-alt); border-radius: 18px; }

/* ほかのページへ */
.related { max-width: 720px; margin: 56px auto 0; padding-top: 28px; border-top: 1px solid var(--line); }
.related h2 { font-size: 18px; margin: 0 0 14px; }
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.5; }
.chip-list a:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---- フッター ---- */
.site-foot { background: var(--foot); border-top: 1px solid var(--line); padding: 40px 0 calc(112px + env(safe-area-inset-bottom)); font-size: 14px; } /* 下は画面の下の「ブラウザで話す」の分をあける */
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 26px 0 24px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-cols a { color: var(--muted); text-decoration: none; line-height: 1.5; }
.foot-cols a:hover { color: var(--ink); }
.copyright { margin: 0; color: var(--muted); font-size: 12px; }

/* ---- 広い画面 ---- */
@media (min-width: 640px) {
  .card-grid.cols-3, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .char { grid-template-columns: 200px 1fr; gap: 24px; padding: 20px; align-items: start; }
  .char img { width: 200px; height: auto; aspect-ratio: 3 / 4; object-position: 50% 0; }
  .art-scroll { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; margin: 0; padding: 0; overflow: visible; }
  .news-list a { display: flex; gap: 20px; align-items: baseline; }
  .news-list time { flex: none; width: 9.5em; }
  .hero-cta .btn { width: auto; }
  .hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .hero-cta .note { margin: 0; text-align: left; }
  /* PC: ボタンの隣に Google Play、その下に「無料ではじめられます」（10-07・3つ横並びは窮屈だった） */
  .hero-cta .play-badge { order: 1; margin: 0; }
  .hero-cta .note { order: 2; flex-basis: 100%; }
}
@media (min-width: 900px) {
  .wrap { padding: 0 32px; }
  body { font-size: 17px; }
  .hero { padding: 48px 0 80px; background: radial-gradient(48% 62% at 72% 42%, rgba(112, 69, 255, .24), transparent 72%); }
  .hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "copy visual"; align-items: center; gap: 40px; }
  .hero-visual { grid-area: visual; margin: 0; display: flex; justify-content: center; }
  .hero-card { width: 360px; }
  .hero-card::after { display: none; }
  .hero-img { width: 360px; height: 640px; border-radius: 28px; object-position: 50% 50%; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .07); }
  .hero-bubble { top: 76px; left: -96px; max-width: 260px; font-size: 15px; }
  .hero-talk { top: auto; bottom: 64px; right: -64px; width: 156px; height: 156px; border-radius: 30px; border-width: 3px; }
  .hero-copy { grid-area: copy; margin: 0; padding: 0; }
  .hero h1 { font-size: clamp(52px, 5.4vw, 74px); margin-bottom: 16px; }
  .hero-sub { font-size: 19px; margin-bottom: 36px; }
  .sec { padding: 104px 0; }
  .sec h2 { font-size: 38px; }
  .sec-head { margin-bottom: 40px; }
  .two { grid-template-columns: 1fr 1fr; gap: 72px; }
  .two .chat-panel { order: -1; padding: 28px 24px; }
  .char-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; gap: 28px 24px; overflow: visible; margin: 0; padding: 0; }
  .sec-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card { padding: 20px; }
  .fv { height: 170px; }
  .panel { padding: 56px; }
  .safe-in { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .two-even { grid-template-columns: 1fr 1fr; gap: 64px; }
  .faq-sec .narrow { margin: 0 auto; }
  .cta-end { padding: 112px 0 120px; }
  .page { padding: 28px 0 96px; }
  .prose h1 { margin-bottom: 28px; }
  .site-foot { padding-top: 56px; }
  .site-foot .wrap { display: grid; grid-template-columns: 220px 1fr; column-gap: 48px; }
  .foot-cols { grid-template-columns: 2fr 1fr; margin: 0; }
  .foot-cols nav:first-child ul { display: block; columns: 3; column-gap: 24px; }
  .foot-cols nav:first-child li { margin-bottom: 10px; break-inside: avoid; }
  .site-foot .brand { align-self: start; }
  .site-foot .copyright { grid-column: 1 / -1; margin-top: 32px; }
  .site-foot .foot-langs { grid-column: 1 / -1; margin-top: 32px; }
}
@media (min-width: 1024px) {
  .nav-pc { display: flex; gap: 2px; margin-left: 24px; }
  .nav-pc a { padding: 6px 12px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
  .nav-pc a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
  .nav-sp { display: none; }
  .head-cta .pc { display: inline; }
  .head-cta .sp { display: none; }
  .sticky-cta { display: none; }
  .site-foot { padding-bottom: 36px; }
  .top .hero-cta .btn { display: inline-flex; }
  .top .hero-sub { margin-bottom: 36px; }
  .top .hero-cta .note { font-size: 13px; }
}

/* 動きを減らす設定の人には、話す動画を止めて絵だけにする */
@media (prefers-reduced-motion: reduce) {
  .hero-talk video { display: none; }
  * { transition: none !important; }
}
.site-foot .foot-langs { margin-top: 24px; font-size: 13px; color: var(--muted, inherit); line-height: 2; }
.site-foot .foot-langs a { color: inherit; white-space: nowrap; }

/* ---- 上へ戻るボタン（2026-10-02 Yuji） ---- */
.to-top {
  position: fixed; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 45;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer;
  background: rgba(35, 27, 58, .92); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45); animation: to-top-in .2s ease-out;
}
.to-top:hover { background: var(--accent); border-color: var(--accent); }
.to-top:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.to-top[hidden] { display: none; }
/* スマホでは下の「ブラウザで話す」の帯の上に出す（帯は 1024px 未満だけ） */
@media (max-width: 1023px) { body:has(.sticky-cta) .to-top { bottom: calc(92px + env(safe-area-inset-bottom)); } }
@keyframes to-top-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .to-top { animation: none; } }
/* トップ以外（script なし）: #top へのリンク。下へ進んでから出す（対応しているブラウザだけ）・押すとなめらかに戻る */
a.to-top-css { text-decoration: none; }
html:has(a.to-top-css) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(a.to-top-css) { scroll-behavior: auto; } }
@supports (animation-timeline: scroll()) {
  a.to-top-css { animation: to-top-css-show linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
  @keyframes to-top-css-show { 0%, 90% { opacity: 0; visibility: hidden; } 100% { opacity: 1; visibility: visible; } }
}
