/* 製品ページ (index.html / ja/index.html) 専用。CSP で style-src 'self' のため、インラインスタイルは使わない */

:root {
  color-scheme: light dark;
  --bg: #f6f4ee;
  --surface: #fffdf8;
  --surface-2: #eef1ea;
  --text: #1f2a25;
  --muted: #5b6861;
  --line: #e2ded3;
  --accent: #2c4a3e;
  --accent-ink: #ffffff;
  --accent-soft: #e2ebe4;
  --wood: #94683d;
  --soon-bg: #f3e6d2;
  --soon-text: #74470f;
  --header-bg: rgb(246 244 238 / 0.86);
  --shadow: 0 10px 30px rgb(31 42 37 / 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  --sans: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  --wrap: 1120px;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141a17;
    --surface: #1b231f;
    --surface-2: #18201c;
    --text: #e7ece8;
    --muted: #a3b0a8;
    --line: #2c3631;
    --accent: #9cc6ad;
    --accent-ink: #10201a;
    --accent-soft: #233229;
    --wood: #d4ab7c;
    --soon-bg: #3a2e1f;
    --soon-text: #f0c98f;
    --header-bg: rgb(20 26 23 / 0.86);
    --shadow: 0 10px 30px rgb(0 0 0 / 0.35);
  }
}

/* 和文以外の CJK・デーヴァナーガリーは、その言語の字形のフォントを先に使う (日本語の明朝で代用しない) */
html:lang(ko) {
  --serif: "Iowan Old Style", Georgia, AppleMyungjo, "Nanum Myeongjo", "Noto Serif KR", Batang, serif;
  --sans: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}
html:lang(zh-TW) {
  --serif: "Iowan Old Style", Georgia, "Songti TC", "Noto Serif TC", PMingLiU, serif;
  --sans: system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}
html:lang(hi) {
  --serif: "Iowan Old Style", Georgia, "Kohinoor Devanagari", "Noto Serif Devanagari", "Nirmala UI", serif;
  --sans: system-ui, -apple-system, "Kohinoor Devanagari", "Nirmala UI", "Noto Sans Devanagari", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* 線画アイコン (inline SVG) */
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; margin-inline-end: auto; color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--accent); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* 言語メニュー (details の開閉だけ。スクリプトは使わない) */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--accent); }
.lang-menu summary .ico { width: 16px; height: 16px; }
.lang-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 10; list-style: none; margin: 0; padding: 6px; min-width: 210px; max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.lang-menu a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.lang-menu a:hover { background: var(--accent-soft); }
.lang-menu a[aria-current="page"] { color: var(--accent); font-weight: 700; }

/* キービジュアル */
.kv { padding: 24px 0 0; }
.kv-frame { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.kv-frame img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* 導入 (準備中) */
.intro { text-align: center; padding: clamp(36px, 6vw, 64px) 0 clamp(40px, 6vw, 72px); }
.intro h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.3; margin: 18px 0 14px; }
.lead { color: var(--muted); font-size: clamp(1rem, 0.95rem + 0.35vw, 1.18rem); max-width: 680px; margin: 0 auto 28px; }
.soon { display: inline-block; background: var(--soon-bg); color: var(--soon-text); border-radius: 999px; padding: 3px 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.platforms { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.platforms li { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; font-weight: 600; font-size: 15px; }
.platforms .ico { color: var(--accent); }
.platforms .soon { font-size: 12px; padding: 2px 10px; }

/* セクション共通 */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--surface-2); }
.eyebrow { color: var(--wood); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 8px; }
.section h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.3; margin: 0 0 12px; }
.section-sub { color: var(--muted); max-width: 680px; margin: 0 0 36px; }
.center { text-align: center; }
.center .section-sub { margin-inline: auto; }

/* 機能 */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .badge-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card h3 { font-size: 17px; margin: 0 0 6px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* 画面 */
.gallery { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery figcaption { padding: 12px 18px 14px; color: var(--muted); font-size: 14px; font-weight: 600; }
.note { color: var(--muted); font-size: 13px; margin: 18px 0 0; }

/* プライバシー */
.privacy { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 880px) { .privacy { grid-template-columns: 1.05fr 1fr; } }
.points { list-style: none; padding: 0; margin: 0 0 22px; }
.points li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.points .ico { color: var(--accent); margin-top: 3px; }
.caution { background: var(--surface); border-inline-start: 4px solid var(--wood); border-radius: 10px; padding: 12px 16px; font-size: 15px; margin: 0 0 16px; }
.privacy figure { margin: 0; }
.privacy figure img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* プラン */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); max-width: 820px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); }
.plan h3 { margin: 0; font-size: 15px; color: var(--muted); letter-spacing: 0.06em; }
.price { font-family: var(--serif); font-size: 36px; font-weight: 600; margin: 6px 0 2px; }
.price small { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 500; }
.price-alt { color: var(--muted); font-size: 14px; margin: 0; }
.price-alt strong { color: var(--text); }
.plan ul { list-style: none; padding: 0; margin: 14px 0 0; font-size: 15px; }
.plan li { padding: 7px 0 7px 24px; border-bottom: 1px dashed var(--line); position: relative; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 10px; height: 5px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* よくある質問 */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* フッター */
.site-footer { background: #22392f; color: #c9d6cd; padding: 44px 0 30px; font-size: 14px; }
.site-footer a { color: #ffffff; }
.foot { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.foot .brand { color: #ffffff; margin: 0 0 6px; }
.foot p { margin: 0; }
.foot-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-langs { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.site-footer .foot-langs a { color: #c9d6cd; text-decoration: none; }
.site-footer .foot-langs a:hover { color: #ffffff; text-decoration: underline; }
.site-footer .foot-langs a[aria-current="page"] { color: #ffffff; font-weight: 700; }
.copyright { border-top: 1px solid rgb(255 255 255 / 0.14); margin-top: 26px; padding-top: 16px; font-size: 13px; color: #9fb2a6; }
