/* ===========================================================================
   モノカチ 公式サイト（一般利用者向け）
   -----------------------------------------------------------------------
   **by-core.jp（法人向け）とは別のサイトとして作る。**アプリの利用者が
   そのまま読める言葉・配色にする。React サイト（core-aip）には依存しない。

   色はアプリの design token（app/lib/ui/theme.dart）と同じ値を使う。
     ネイビー … 地・主ボタン・信頼
     ゴールド … 「価値」の合図だけ。金額そのものは金色で書かない
     ターコイズ … AI が関わる場所だけ
   =========================================================================== */

:root {
  --navy: #101b36;
  --navy-deep: #080f22;
  --navy-soft: #26355c;
  --gold: #c8a44d;
  --gold-bright: #e0c177;
  --gold-wash: #f3ead4;
  --ai: #2e93a3;
  --ai-wash: #e6f2f4;
  --surface: #f2f3f6;
  --card: #ffffff;
  --ink: #131722;
  --ink-muted: #666e80;
  --line: #e3e5eb;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 10px 30px rgba(8, 15, 34, 0.08);
  --shadow-hero: 0 18px 46px rgba(8, 15, 34, 0.16);
  --max: 1020px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Yu Gothic Medium", "Yu Gothic", system-ui, -apple-system, sans-serif;
  /* 本文は 16px を下回らない（読みやすさの下限） */
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ai);
  outline-offset: 2px;
  border-radius: 6px;
}

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

/* ---------------------------------------------------------------- ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(242, 243, 246, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}
.site-header .logo img { width: 124px; }
.site-nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--navy); }

/* 狭い画面では、ページ内リンクを隠して1行に収める */
@media (max-width: 599px) {
  .site-nav .nav-opt { display: none; }
}

/* ------------------------------------------------------------ ヒーロー */
.hero {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 44px 0 52px;
}
.hero__grid { display: grid; gap: 30px; align-items: center; }
.hero__logo { width: 190px; margin-bottom: 22px; }
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 8.4vw, 50px);
  line-height: 1.26;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--gold-bright); }
.hero p {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.82);
}
.hero__note {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

/* 端末の絵。**メーカーの画像は使わず、自分で描いた図形にする。** */
.device {
  width: min(216px, 60vw);
  aspect-ratio: 52 / 100;
  margin: 0 auto;
  border-radius: 26px;
  background: linear-gradient(145deg, var(--navy-soft), var(--navy-deep));
  border: 1.5px solid rgba(200, 164, 77, 0.5);
  box-shadow: var(--shadow-hero);
  padding: 10px;
  position: relative;
}
.device::before {
  content: "";
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 9px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.55);
}
.device__screen {
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 24px 14px;
  text-align: center;
}
.device__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  font-weight: 700;
}
.device__value { font-size: 19px; font-weight: 800; color: #fff; }
.device__sub { font-size: 11px; color: rgba(255,255,255,0.55); }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  margin-top: 26px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1d2d55, var(--navy-deep));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 800;
  font-size: 16.5px;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.cta--light {
  background: #fff;
  color: var(--navy);
  border-top: none;
}
.cta--stack { flex-direction: column; gap: 2px; line-height: 1.25; }
.cta__sub { font-size: 12px; font-weight: 600; opacity: 0.72; }

/* iPhone / Android の2入口。スマホは縦積み、PC（760px〜）は横並びで左右を揃える。 */
.store-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
  max-width: 440px;
}
.cta--store {
  margin-top: 0;            /* 間隔は .store-cta の gap で統一する */
  flex-direction: row;
  gap: 12px;
  padding: 10px 22px;
}
.cta--store .store-logo { width: 24px; height: 24px; flex: 0 0 auto; }
.cta--store .cta__label { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.cta--store .cta__main { font-size: 15.5px; font-weight: 800; }
.cta--store .cta__sub { font-size: 11.5px; font-weight: 600; opacity: 0.72; }
@media (min-width: 760px) {
  .store-cta { flex-direction: row; max-width: none; }
  .store-cta .cta--store { flex: 1 1 0; }
}
/* TikTokアプリ内ブラウザ向けの案内（既定は hidden 属性で非表示・JSで表示） */
.tt-guide {
  margin-top: 22px;
  max-width: 440px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--gold-wash);
  border: 1px solid rgba(200, 164, 77, 0.55);
  text-align: left;
}
.tt-guide .tt-guide__text {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.tt-guide .tt-guide__note {
  margin: 6px 0 0;
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.cta[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* -------------------------------------------------------------- セクション */
section { padding: 56px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin: 0 0 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
h2.section-title {
  margin: 0 0 10px;
  font-size: clamp(22px, 5.6vw, 30px);
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-lead { margin: 0 0 26px; color: var(--ink-muted); font-size: 15px; }

.cards { display: grid; gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card p { margin: 0; font-size: 15px; color: var(--ink-muted); }
.card .tag {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}
.tag--ai { background: var(--ai-wash); color: #1d6975; }
.tag--gold { background: var(--gold-wash); color: #7a6224; }
.tag--navy { background: #e7eaf2; color: var(--navy); }

.badge {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: var(--navy);
}
.badge--ai { background: var(--ai); }
.badge--gold { background: var(--gold); color: #3a2f10; }

/* 使い方 */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.step__no {
  counter-increment: step;
  flex: none;
  width: 30px; height: 30px;
  border-radius: 99px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
}
.step__no::before { content: counter(step); }
.step h3 { margin: 0 0 2px; font-size: 16.5px; font-weight: 800; }
.step p { margin: 0; font-size: 14.5px; color: var(--ink-muted); }

/* 安心の仕組み */
.safe { background: var(--card); border-radius: var(--radius-lg); }
.safe-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.safe-list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.85;
}
.safe-list .mark {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 4px;
  border-radius: 99px;
  background: var(--gold-wash);
  color: #7a6224;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

/* マスコット */
.mascot {
  display: grid;
  gap: 24px;
  align-items: center;
  background: linear-gradient(140deg, var(--navy), var(--navy-deep));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px 24px;
}
.mascot h2 { color: #fff; }
.mascot p { color: rgba(255, 255, 255, 0.8); font-size: 15px; margin: 0 0 10px; }
/* 案内役のマスコット（フレンチブルドッグ）を丸いステージの上に立たせる。
   全身像なので円でクロップせず、ステージ内に収めて見せる。 */
.mascot__spot {
  width: 164px;
  height: 164px;
  margin: 0 auto;
  border-radius: 99px;
  overflow: hidden;
  /* 提供素材は無加工（切り抜かない）。元画像の背景と同じグレーを円の地にして、
     アバター写真のように見せる（切り抜きフチを発生させないため）。 */
  background: #656c72;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  display: grid;
  place-items: center;
}
.mascot__spot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 問い合わせ先のメールアドレス。**押せることが分かる大きさにする。** */
.mail { margin: 0 0 14px; }
.mail a {
  display: inline-block;
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  word-break: break-all;
}
.mail a:hover { color: var(--ai); border-bottom-color: var(--ai); }

/* 一覧・表 */
.dl { margin: 0; }
.dl div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.dl dt { font-size: 13px; font-weight: 800; color: var(--ink-muted); margin: 0; }
.dl dd { margin: 0; font-size: 15.5px; }

/* FAQ */
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
}
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 800;
  display: flex;
  gap: 10px;
}
.faq-item h3::before {
  content: "Q";
  color: var(--gold);
  font-weight: 800;
}
.faq-item p { margin: 0 0 8px; font-size: 15px; color: var(--ink-muted); }
.faq-item p:last-child { margin-bottom: 0; }

/* 法務ページ */
.legal { background: var(--card); border-radius: var(--radius-lg); padding: 30px 22px; }
.legal__updated { font-size: 13px; color: var(--ink-muted); margin: 0 0 22px; }
.legal h2 {
  margin: 30px 0 10px;
  font-size: 18px;
  font-weight: 800;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
  line-height: 1.5;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { margin: 20px 0 6px; font-size: 15.5px; font-weight: 800; }
.legal p { margin: 0 0 12px; font-size: 15px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 1.3em; font-size: 15px; }
.legal li { margin-bottom: 6px; }
.legal .note {
  background: var(--surface);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink-muted);
}

/* ページ見出し */
.page-head { padding: 36px 0 10px; }
.page-head h1 {
  margin: 6px 0 0;
  font-size: clamp(24px, 6.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* パンくず */
.crumb { font-size: 13px; color: var(--ink-muted); padding-top: 18px; }
.crumb a { color: var(--ink-muted); }

/* フッター */
.site-footer {
  margin-top: 40px;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 36px 0 30px;
}
.site-footer img { width: 112px; margin-bottom: 18px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-bottom: 22px; }
.footer-nav a { color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.site-footer small { font-size: 12.5px; line-height: 1.9; display: block; }

/* 画面が広いとき */
@media (min-width: 760px) {
  .hero { padding: 64px 0 72px; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 44px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .mascot { grid-template-columns: 200px 1fr; padding: 40px; }
  .mascot__spot { margin: 0; }
  .dl div { grid-template-columns: 180px 1fr; gap: 16px; align-items: baseline; }
  .legal { padding: 40px 44px; }
  section { padding: 70px 0; }
}

/* 動きを減らす設定を尊重する */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
