/*
  NOKORI 紹介サイトの共通スタイル。

  ★外部ライブラリもCDNも使わない。そのままサーバーに置けば動くこと。
  ★影・グラデーション・アニメーションを使わない。余白と文字サイズで階層を作る。
  ★本文は16px以上。幅広い年齢層が読むため小さくしない。
  ★色は prompts/marketing-site-prompt.md の指定に従う。
    中立色（--neutral）は白地に対して 2.7:1 しかないため、文字には使わない。
    図の塗りにだけ使い、意味は必ず文字でも書く。
*/

:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-section: #f4f6f5;
  --rule: #e4e8e6;
  --ink: #1a1d1b;
  --ink-soft: #6a716d;
  --accent: #0f6e4c;
  --neutral: #9aa09c;

  --measure: 720px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  font-size: 17px;
  line-height: 1.85;
}

/* 数字は等幅にして、桁を比べやすくする */
.num,
td.num {
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- 骨格 --------------------------------------------------------------- */

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}

section.tinted {
  background: var(--bg-section);
}

h1 {
  font-size: 30px;
  line-height: 1.5;
  margin: 0 0 16px;
}

h2 {
  font-size: 22px;
  line-height: 1.55;
  margin: 0 0 20px;
}

h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

p {
  margin: 0 0 18px;
}

ul,
ol {
  margin: 0 0 18px;
  padding-left: 1.4em;
}

li {
  margin-bottom: 8px;
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
}

.note {
  font-size: 15px;
  color: var(--ink-soft);
}

/* --- ヘッダー ----------------------------------------------------------- */

.site-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-decoration: none;
}

/* --- ヒーロー ----------------------------------------------------------- */

.hero {
  padding: 64px 0 56px;
  border-top: 0;
}

.hero h1 {
  font-size: 32px;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 10px;
  margin: 8px 0 12px;
}

.shot {
  /*
    iPhone のスクリーンショットをそのまま置く。
    幅いっぱいに引き伸ばすと本文より目立ちすぎるため、実機に近い幅で止める。
  */
  max-width: 320px;
  margin: 32px auto 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--bg-section);
}

/* --- 元金と利息の図 ------------------------------------------------------ */

.ratio {
  margin: 0 0 28px;
}

.ratio-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}

.ratio-bar {
  display: flex;
  height: 28px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.ratio-bar .principal {
  background: var(--accent);
}

.ratio-bar .interest {
  background: var(--neutral);
}

/* 色が見分けられなくても読めるよう、内訳を必ず文字で書く */
.ratio-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -1px;
}

.swatch.principal {
  background: var(--accent);
}

.swatch.interest {
  background: var(--neutral);
}

/* --- できること --------------------------------------------------------- */

.feature {
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  margin-top: 28px;
}

.feature:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

/* --- よくある質問 ------------------------------------------------------- */

.qa {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  margin-top: 20px;
}

.qa:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.qa h3 {
  font-size: 17px;
}

.qa p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

/* --- 表 ----------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
}

th,
td {
  border: 1px solid var(--rule);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--bg-section);
  font-weight: 700;
}

/* --- 法務ページ --------------------------------------------------------- */

.doc {
  padding: 48px 0 64px;
}

.doc h2 {
  font-size: 20px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.doc h2:first-of-type {
  margin-top: 24px;
}

.revised {
  font-size: 15px;
  color: var(--ink-soft);
}

/* --- フッター ----------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-section);
  padding: 36px 0 48px;
  font-size: 15px;
  color: var(--ink-soft);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
}

.disclaimer {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 16px;
}

/* --- スマートフォン ------------------------------------------------------ */

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .hero h1 {
    font-size: 26px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
  }

  section {
    padding: 44px 0;
  }
}
