/* eikaiwa-picks.com — shared stylesheet
   オンライン英会話 比較サイト。明るく親しみやすい教育系トーン。
   姉妹サイト（暗いテック/エディトリアル）とは意図的に別系統（白基調・丸ゴシック・ティール）。
   フォント（<head>でGoogle Fontsから読込）:
     Zen Maru Gothic（見出し・丸ゴシック） + Noto Sans JP（本文）。
   モバイルファースト。比較表は横スクロール。 */

:root {
  --bg:        #F6FAF9;   /* やわらかい白(ややミント) */
  --bg-2:      #ECF5F2;   /* セクションの淡い面 */
  --surface:   #FFFFFF;   /* カード */
  --surface-2: #F1F7F5;   /* 表ヘッダ等 */
  --ink:       #1E2D31;   /* ダークスレート(本文) */
  --ink-soft:  #5A6B70;   /* 補助テキスト */
  --line:      #DEEAE6;   /* 罫線 */
  --line-strong:#C9DBD5;
  --accent:    #0FA37E;   /* ティール/エメラルド(単一アクセント) */
  --accent-deep:#0B7E60;
  --accent-soft:#E2F3ED;  /* アクセント淡色面 */
  --accent-2:  #FF8A4C;   /* コーラル(ランク/強調・少量) */
  --good:      #15A36B;
  --bad:       #E25C52;
  --star:      #F5A623;   /* 評価の星 */
  --maxw:      72rem;
  --radius:    14px;      /* 親しみやすく大きめ角丸 */
  --radius-lg: 22px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(24,60,52,.05), 0 3px 10px rgba(24,60,52,.05);
  --shadow-md: 0 8px 22px rgba(24,60,52,.09), 0 16px 40px rgba(24,60,52,.07);
}

*, *::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: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  font-size: clamp(15.5px, 0.95rem + 0.18vw, 17.5px);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-weight: 700; line-height: 1.35; letter-spacing: 0.01em;
  margin: 0 0 0.6em; color: var(--ink);
}
h1 { font-size: clamp(1.7rem, 1.2rem + 2.6vw, 2.7rem); line-height: 1.3; }
h2 { font-size: clamp(1.35rem, 1.05rem + 1.5vw, 1.95rem); margin-top: 0.3em; }
h3 { font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.35rem); }
p  { margin: 0 0 1.1em; }
a  { color: var(--accent-deep); text-underline-offset: 2px; transition: color .15s ease; }
a:hover { color: var(--accent); }
.lead { font-size: 1.12em; color: var(--ink-soft); line-height: 1.8; }
.kicker { display: inline-block; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--accent-deep); background: var(--accent-soft); padding: 0.3rem 0.8rem; border-radius: 999px; margin: 0 0 1rem; }
.fineprint, small { color: var(--ink-soft); font-size: 0.83rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
table.grid, .facts dd, .price { font-variant-numeric: tabular-nums; }

/* ---------- Header / nav ---------- */
.masthead { background: rgba(246,250,249,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; }
.logo { font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.logo b { color: var(--accent); }
.nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; font-weight: 700; position: relative; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent-deep); }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 0.8rem; color: var(--ink-soft); padding-top: 1.25rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin-inline: 0.4rem; opacity: 0.5; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--accent-soft), var(--bg) 70%); border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 22ch; }

/* ---------- Buttons / CTA ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: #fff;
  font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700; font-size: 1rem;
  padding: 0.8rem 1.6rem; border-radius: 999px;
  text-decoration: none; border: 0; cursor: pointer;
  box-shadow: 0 4px 14px rgba(15,163,126,.28);
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15,163,126,.34); }
.btn:active { transform: translateY(0); }
.btn-outline { background: #fff; color: var(--accent-deep); border: 1.5px solid var(--accent); box-shadow: none; font-weight: 700; padding: 0.75rem 1.5rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-family: 'Zen Maru Gothic', sans-serif; transition: background .15s ease, transform .12s ease; }
.btn-outline:hover { background: var(--accent-soft); color: var(--accent-deep); transform: translateY(-2px); }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

/* ---------- Cards ---------- */
.deck { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.5rem; position: relative; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.tile .label { display: inline-block; font-weight: 700; font-size: 0.74rem; color: var(--accent-deep); background: var(--accent-soft); padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: 0.6rem; }
.tile h3 { margin-bottom: 0.2rem; }
.tile .price { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.tile ul { margin: 0.7rem 0 1.2rem; padding-left: 1.1rem; color: var(--ink-soft); }
.tile .btn, .tile .btn-outline { margin-top: auto; align-self: stretch; justify-content: center; }
.tile .rank { position: absolute; top: -0.7rem; left: 1.2rem; font-family: 'Zen Maru Gothic', sans-serif; font-size: 0.8rem; font-weight: 700; color: #fff; background: var(--accent-2); width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: var(--shadow-sm); }
.tile.featured { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--shadow-md); }

/* ---------- Comparison table ---------- */
.scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
table.grid { width: 100%; border-collapse: collapse; min-width: 42rem; font-size: 0.92rem; }
table.grid th, table.grid td { padding: 0.85rem 0.95rem; text-align: left; border-bottom: 1px solid var(--line); }
table.grid thead th { background: var(--surface-2); font-family: 'Zen Maru Gothic', sans-serif; font-size: 0.8rem; color: var(--ink-soft); white-space: nowrap; position: sticky; top: 0; }
table.grid tbody th { position: sticky; left: 0; background: var(--surface); font-weight: 700; white-space: nowrap; }
table.grid tbody tr:last-child td, table.grid tbody tr:last-child th { border-bottom: 0; }
table.grid tbody tr:hover td { background: #F3FAF7; }
table.grid .win { color: var(--good); font-weight: 700; }

/* ---------- Verdict / pros-cons ---------- */
.verdict { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-sm); }
.split { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 0.4rem; }
.split ul { list-style: none; margin: 0; padding: 0; }
.split li { padding-left: 1.7rem; position: relative; margin-bottom: 0.5rem; color: var(--ink-soft); }
.plus li::before { content: '◎'; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.minus li::before { content: '△'; position: absolute; left: 0; color: var(--bad); font-weight: 700; }

/* ---------- Spec list ---------- */
.facts { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); box-shadow: var(--shadow-sm); }
.facts div { background: var(--surface); padding: 0.9rem 1.1rem; }
.facts dt { font-size: 0.74rem; color: var(--ink-soft); margin-bottom: 0.2rem; }
.facts dd { margin: 0; font-weight: 700; font-size: 1.02rem; }

/* ---------- Use-case / nav grid ---------- */
.picks { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.picks a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); font-weight: 700; box-shadow: var(--shadow-sm); transition: border-color .15s ease, color .15s ease, transform .14s ease, box-shadow .15s ease; }
.picks a::after { content: '→'; color: var(--accent); }
.picks a:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Callouts ---------- */
.note { background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.note.update { border-left: 4px solid var(--accent-2); background: #FFF3EC; }
.asof { color: #B5651D; font-size: 0.83rem; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0.95rem 1.2rem; margin-bottom: 0.7rem; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700; font-size: 1.02rem; list-style: none; display: flex; gap: .6rem; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q'; color: #fff; background: var(--accent); width: 1.4rem; height: 1.4rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .82rem; flex: none; }
.faq details p { margin: 0.7rem 0 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.colophon { background: #14201E; color: #C7D6D1; border-top: 1px solid var(--line); margin-top: 2.5rem; }
.colophon .wrap { padding-block: 2.4rem; }
.colophon .logo { color: #fff; }
.colophon .logo b { color: var(--accent); }
.colophon .nav { margin-bottom: 1.1rem; }
.colophon .nav a { color: #AFC0BA; }
.colophon .nav a:hover { color: #fff; }
.disclose { color: #8FA29C; font-size: 0.82rem; max-width: 60ch; }

/* ---------- Utilities ---------- */
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.stack > * + * { margin-top: 1.1rem; }
.mt0 { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
