/* ことばカメラ ウェブサイト共通スタイル
   配色は docs/mockup/kotoba-camera.jsx の COLORS に合わせる。
   アプリと同じく影や浮き上がりは付けず、平坦に描く。 */

/* scripts/subset-fonts.sh で、ページで使う文字だけを抜き出したフォント。 */
@font-face {
  font-family: "Zen Maru Gothic";
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/ZenMaruGothic-500Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Zen Maru Gothic";
  font-weight: 700 900;
  font-display: swap;
  src: url("/assets/fonts/ZenMaruGothic-900Black.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #eaf4fb;
  --ink: #2b4570;
  --ink-soft: #5a7096;
  --yellow: #ffd93d;
  --red: #ff6b6b;
  --green: #5fbf77;
  --sky: #46aeee;
  --cream: #fff6e0;
  --white: #ffffff;
  --line: #c9dcec;
  --radius: 28px;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans",
    "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.9;
  font-feature-settings: "palt";
  overflow-wrap: anywhere;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

h1,
h2,
h3 {
  line-height: 1.4;
  margin: 0;
  font-weight: 900;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap--narrow {
  max-width: 760px;
}

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

.site-header {
  padding: 20px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
}

.brand img {
  width: 44px;
  height: 44px;
}

.site-nav {
  display: flex;
  gap: 4px;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
}

.site-nav a:hover {
  background: var(--white);
}

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

.hero {
  padding: 32px 0 72px;
}

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}

.series {
  display: inline-block;
  background: var(--yellow);
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin-top: 16px;
  font-size: min(8.4vw, 40px);
  letter-spacing: 0.02em;
}

.hero h1 span {
  display: inline-block;
}

.hero .lead {
  margin-top: 20px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 30em;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  font-size: 17px;
}

.hero-note {
  font-size: 14px;
  color: var(--ink-soft);
}

/* スマホ風の見本。実機スクリーンショットを用意したら差し替える。 */
.phone {
  justify-self: center;
  width: min(100%, 320px);
  background: var(--ink);
  border-radius: 48px;
  padding: 12px;
}

.phone-screen {
  background: var(--bg);
  border-radius: 38px;
  padding: 28px 16px 20px;
}

.phone-title {
  text-align: center;
  font-weight: 900;
  font-size: 20px;
}

.phone-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.demo-card {
  background: var(--white);
  border: 3px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  text-align: center;
  font-weight: 900;
}

.demo-card .face {
  background: var(--cream);
  font-size: 52px;
  line-height: 1;
  padding: 18px 0;
}

.demo-card .name {
  padding: 6px 0 8px;
  font-size: 17px;
}

.phone-play {
  margin-top: 16px;
  background: var(--green);
  color: var(--white);
  border-radius: 999px;
  text-align: center;
  font-weight: 900;
  padding: 10px 0;
}

/* ── セクション ── */

.section {
  padding: 72px 0;
}

.section--white {
  background: var(--white);
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(26px, 5vw, 36px);
}

.section-head p {
  margin-top: 12px;
  color: var(--ink-soft);
}

.steps,
.features,
.safety {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.step,
.feature {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
}

.section:not(.section--white) .feature {
  background: var(--white);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 900;
  font-size: 18px;
}

.step .emoji,
.feature .emoji {
  font-size: 44px;
  line-height: 1;
  margin: 16px 0 12px;
}

.feature .emoji {
  margin-top: 0;
}

.step h3,
.feature h3 {
  font-size: 21px;
}

.step p,
.feature p {
  margin-top: 8px;
  font-size: 16px;
  color: var(--ink-soft);
}

.safety li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.safety .mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
}

.safety strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
}

.safety span.detail {
  display: block;
  font-size: 15px;
  color: var(--ink-soft);
}

.section-more {
  margin-top: 28px;
  text-align: center;
  font-weight: 700;
}

.specs {
  margin: 0 auto;
  max-width: 640px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px 24px;
}

.specs div {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 2px solid var(--bg);
}

.specs div:last-child {
  border-bottom: 0;
}

.specs dt {
  flex: none;
  width: 7em;
  font-weight: 900;
}

.specs dd {
  margin: 0;
}

.notice {
  margin: 32px auto 0;
  max-width: 640px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ── 文書ページ（プライバシーポリシー・サポート・利用規約） ── */

.doc {
  padding: 24px 0 80px;
}

.doc-body {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
}

.doc h1 {
  font-size: clamp(28px, 6vw, 38px);
}

.doc .doc-meta {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.doc .summary {
  margin-top: 24px;
  background: var(--cream);
  border-radius: 20px;
  padding: 20px 24px;
}

.doc .summary ul {
  margin: 8px 0 0;
}

.doc h2 {
  margin-top: 48px;
  font-size: 22px;
  padding-left: 14px;
  border-left: 8px solid var(--yellow);
}

.doc h3 {
  margin-top: 28px;
  font-size: 18px;
}

.doc p,
.doc ul,
.doc ol,
.doc dl {
  margin-top: 14px;
}

.doc ul,
.doc ol {
  padding-left: 1.4em;
}

.doc li + li {
  margin-top: 6px;
}

.doc .contact {
  margin-top: 20px;
  background: var(--bg);
  border-radius: 20px;
  padding: 20px 24px;
  font-weight: 700;
}

.doc .contact a {
  font-size: 18px;
}

.faq dt {
  margin-top: 28px;
  font-weight: 900;
  font-size: 18px;
}

.faq dt::before {
  content: "Q. ";
  color: var(--red);
}

.faq dd {
  margin: 8px 0 0;
}

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

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 40px 0;
  font-size: 15px;
}

.site-footer .wrap {
  display: grid;
  gap: 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-weight: 700;
}

.site-footer small {
  font-size: 13px;
  opacity: 0.8;
}

/* ── 404 ── */

.notfound {
  text-align: center;
  padding: 80px 0 120px;
}

.notfound .emoji {
  font-size: 72px;
  line-height: 1;
}

.notfound h1 {
  margin-top: 16px;
  font-size: 30px;
}

.notfound p {
  margin-top: 12px;
}

/* ── 広い画面 ── */

@media (min-width: 720px) {
  .hero .wrap {
    grid-template-columns: 1.2fr 1fr;
  }

  .hero h1 {
    font-size: clamp(32px, 4.5vw, 52px);
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .features,
  .safety {
    grid-template-columns: repeat(2, 1fr);
  }

  .doc-body {
    padding: 48px 56px;
  }
}

@media (max-width: 480px) {
  .site-nav a:not(.keep) {
    display: none;
  }
}

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