/* =========================================================
   Nihongo Mii Sensei - 全ページ共通のスタイル
   ========================================================= */

/* ---------- 1. 色・サイズの「変数」 ----------
   色をここにまとめておくと、後で色を変えたいとき
   この1か所を直すだけでサイト全体が変わる */
:root {
  --color-ink: #111111;        /* 文字・線の黒 */
  --color-bg: #ffffff;         /* 背景の白 */
  --color-lavender: #f6d7ff;   /* ラベンダー */
  --color-green: #9afd7f;      /* ライムグリーン */
  --color-muted: #555555;      /* 補足文のグレー */

  --font-heading: "Outfit", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
               "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;

  --radius: 18px;
  --border: 2px solid var(--color-ink);
  --container: 1120px;
}

/* ---------- 1-2. ジャンルごとのテーマ色 ----------
   theme-news などのクラスが付いた要素の中では、
   --theme（濃い色）・--theme-soft（中間）・--theme-pale（淡い色）が
   そのジャンルの色に切り替わる */
.theme-news  { --theme: #1f5bbf; --theme-soft: #b9d3ff; --theme-pale: #e6f0ff; }
.theme-topic { --theme: #1f7a37; --theme-soft: #b4e6bf; --theme-pale: #e5f6e8; }
.theme-diary { --theme: #b8322d; --theme-soft: #ffc4bf; --theme-pale: #ffeceb; }

/* ---------- 2. リセット（ブラウザごとの差をなくす） ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-ink);
  background: var(--color-bg);
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

/* 画面には見えないが、読み上げソフトには読まれるテキスト */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 3. レイアウトの共通パーツ ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section-lavender { background: var(--color-lavender); }
.section-green    { background: var(--color-green); }

.section-head {
  max-width: 640px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.section-head-row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

/* 蛍光ペンのようなハイライト */
.highlight {
  background: linear-gradient(transparent 55%, var(--color-green) 55%);
  padding: 0 0.1em;
}

.eyebrow {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.text-link {
  font-weight: 700;
  text-underline-offset: 4px;
}

/* ---------- 4. ボタン ---------- */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 12px 24px;
  border: var(--border);
  border-radius: 999px;     /* 大きい数字にすると両端が丸い「ピル型」になる */
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--color-ink);
}

.button-primary { background: var(--color-green); }
.button-outline { background: var(--color-bg); }
.button-dark    { background: var(--color-ink); color: var(--color-bg); }

/* キーボード操作のときに、今どこを選んでいるか分かるようにする */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #6b3cff;
  outline-offset: 3px;
}

/* ---------- 5. ヘッダー ---------- */
.site-header {
  border-bottom: var(--border);
  background: var(--color-bg);
  position: sticky;   /* スクロールしても上に残る */
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: var(--border);
  border-radius: 50%;
  background: var(--color-green);
  font-size: 1.1rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.menu-button {
  display: none;   /* PCでは隠す。スマホ用は下のメディアクエリで表示 */
}

/* ---------- 6. ヒーロー ---------- */
.hero {
  padding: 72px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
}

.lead {
  font-size: 1.15rem;
  max-width: 34em;
  margin-bottom: 28px;
}

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  border: var(--border);
  border-radius: 50%;
  background: var(--color-lavender);
}

.big-kana {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(8rem, 18vw, 12rem);
  font-weight: 800;
  font-family: var(--font-body);
}

.speech {
  position: absolute;
  padding: 8px 16px;
  border: var(--border);
  border-radius: 999px;
  background: var(--color-bg);
  font-weight: 700;
  white-space: nowrap;
  z-index: 1;
}

.speech-1 { top: 8%;  left: -4%;  background: var(--color-green); }
.speech-2 { bottom: 10%; right: -6%; }

/* ---------- 7. カード ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.card h3 {
  font-size: 1.35rem;
}

.card h3 a {
  text-decoration: none;
}

.card h3 a:hover {
  text-decoration: underline;
}

.card p {
  color: var(--color-muted);
}

/* カード全体がリンクになっているもの */
.card-link {
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.card-link:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--color-ink);
}

.card-tag {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 2px 12px;
  border: var(--border);
  border-radius: 999px;
  background: var(--color-green);
  font-size: 0.85rem;
  font-weight: 700;
}

/* テーマ色の中にあるタグは、そのジャンルの色になる */
.card-tag {
  background: var(--theme-soft, var(--color-green));
}

.card-more {
  margin-top: auto;   /* 一番下に押し下げる → カードの高さがそろって見える */
  font-weight: 700;
}

/* ---------- 8. アプリのカード ----------
   見た目の土台は .card を使い、アプリ用の違いだけをここに書く */
.app-tile {
  position: relative;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border: var(--border);
  border-radius: 20px;
  background: var(--color-lavender);
  font-size: 2.2rem;
  font-weight: 800;
}

.app-tile .button-row {
  margin-top: auto;   /* ボタンをカードの一番下にそろえる */
}

/* 準備中のアプリ：線を点線にして、少し控えめに見せる */
.app-tile.is-coming-soon {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.6);
}

.app-tile.is-coming-soon .card-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  margin: 0;
  background: var(--color-bg);
}

.app-tile.is-coming-soon .app-icon {
  background: var(--color-bg);
}

/* ---------- 9. 自己紹介 ---------- */
.about-teaser {
  display: flex;
  gap: 32px;
  align-items: center;
  max-width: 820px;
}

.about-avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
  border: var(--border);
  border-radius: 50%;
  background: var(--color-green);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
}

.about-teaser h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

/* ---------- 10. 広告枠 ----------
   AdSenseの広告（ins.adsbygoogle）が入っていないときは表示しない。
   → 審査前に「空っぽの広告枠」が見えてしまうのを防ぐ */
.ad-slot {
  margin: 40px auto;
  text-align: center;
}

.ad-slot:not(:has(ins.adsbygoogle)) {
  display: none;
}

.ad-slot::before {
  content: "Advertisement";
  display: block;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: 4px;
}

/* ---------- 11. フッター ---------- */
.site-footer {
  border-top: var(--border);
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.logo-footer .logo-mark {
  border-color: var(--color-bg);
  color: var(--color-ink);
}

.footer-note {
  max-width: 420px;
  margin-top: 16px;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 40px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
  margin: 32px 0 0;
}

/* ---------- 12. 記事まわりの共通パーツ ---------- */

/* 一覧ページ・記事トップの見出し部分 */
.page-hero {
  padding: 48px 0 24px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 800;
}

.section-tight {
  padding: 32px 0;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

/* パンくずリスト（Home › Articles › …） */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  text-underline-offset: 3px;
}

/* 今いるページのメニュー */
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--color-green);
  text-underline-offset: 6px;
}

/* 日付とレベル */
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.level-badge {
  display: inline-block;
  padding: 0 8px;
  border: 1.5px solid var(--color-ink);
  border-radius: 6px;
  background: var(--color-bg);
  color: var(--color-ink);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.6;
}

/* 画像がない記事のサムネイル：淡いテーマ色＋日本語タイトル */
.thumb {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 16px 22px;
  background: var(--theme-pale);
  box-shadow: inset 8px 0 0 var(--theme);   /* 左端にテーマ色の線 */
}

.thumb-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--theme);
}

.thumb-text {
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--color-ink);
  /* 長いタイトルは2行で「…」にする */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* NEWマーク：ふだんは隠しておき、JSが is-new を付けた記事だけ表示する */
.new-badge {
  display: none;
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0 10px;
  border: 2px solid var(--color-ink);
  border-radius: 999px;
  background: var(--color-green);
  color: var(--color-ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.is-new .new-badge {
  display: block;
}

/* ---------- 13. 最新記事の大きいカード（ジャンル一覧の上部） ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.featured-card {
  position: relative;
  border: var(--border);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;          /* 横16：縦9 の形にそろえる（文字が多いときは縦に伸びる） */
  background: var(--theme-pale);
  transition: transform 0.15s, box-shadow 0.15s;
}

.featured-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--color-ink);
}

.featured-link {
  display: block;
  width: 100%;
  height: 100%;
  color: #fff;
  text-decoration: none;
}

.featured-card.has-image {
  overflow: hidden;              /* 角丸からはみ出した画像を切り取る */
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;             /* 形を崩さずに、枠いっぱいに広げる */
}

/* 画像がない大きいカード
   16:9 に固定すると、スマホで日本語タイトルが入りきらないので、
   形は固定せず「最低限の高さ」だけ決めて、文字の量に合わせて伸ばす */
.featured-card:not(.has-image) {
  aspect-ratio: auto;
}

.featured-panel {
  min-height: clamp(220px, 22vw, 300px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 24px 26px 22px 34px;
  color: var(--color-ink);
  border-radius: calc(var(--radius) - 2px);
  box-shadow: inset 10px 0 0 var(--theme);
}

.featured-panel .thumb-text {
  flex-shrink: 0;                /* 縮んで文字が切れないようにする */
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  margin-bottom: auto;           /* 日本語タイトルを上へ、英語タイトルを下へ */
  padding-top: 4px;
}

.featured-panel .featured-meta {
  color: var(--color-muted);
}

.featured-panel .new-badge {
  left: auto;
  right: 14px;
}

/* 文字を読みやすくするため、下のほうを暗くする */
.featured-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 20px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

.featured-title {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

/* ---------- 14. 一覧の小さいカード ---------- */
.article-card {
  padding: 0;
  overflow: hidden;
}

.article-card-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-bottom: var(--border);
  background: var(--theme-pale);
  color: var(--color-ink);
  text-decoration: none;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 18px 20px 20px;
}

.article-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.article-card-body .article-meta {
  margin-top: auto;
}

/* ---------- 15. 記事ページ ---------- */
.container-narrow {
  max-width: 760px;
}

.article {
  padding: 40px 0 64px;
}

.article-header {
  margin-bottom: 28px;
}

.article-header h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 4px 0 12px;
}

.article-image {
  width: 100%;
  margin-top: 28px;
  border: var(--border);
  border-radius: var(--radius);
}

/* 本文（Markdownから作られた部分）の見た目 */
.prose {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 40px;
}

.prose h2 {
  font-size: 1.6rem;
  margin: 2em 0 0.6em;
  padding-bottom: 6px;
  border-bottom: var(--border);
}

.prose h3 {
  font-size: 1.25rem;
  margin: 1.6em 0 0.5em;
}

.prose rt {
  font-size: 0.55em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.5em;
  font-size: 1rem;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1.5px solid var(--color-ink);
  text-align: left;
}

.prose th {
  background: var(--color-lavender);
}

.prose blockquote {
  margin: 1.5em 0;
  padding: 12px 20px;
  border-left: 6px solid var(--color-green);
  background: #f7f7f7;
}

.prose img {
  border-radius: 12px;
}

/* ---------- 16. ポッドキャスト ---------- */
.podcast-list {
  display: grid;
  gap: 20px;
}

.podcast-card {
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
}

.podcast-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: var(--border);
  border-radius: 20px;
  background: var(--color-green);
  font-size: 2.2rem;
}

.podcast-body h3 {
  margin-bottom: 2px;
}

.podcast-card .podcast-name-ja {
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--color-ink);
}

/* トップページでは3番組を横に並べる */
.podcast-list-grid {
  grid-template-columns: repeat(3, 1fr);
}

.podcast-list-grid .podcast-card {
  flex-direction: column;
  gap: 14px;
}

.podcast-list-grid .podcast-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 1.7rem;
}

.podcast-body .card-tag {
  margin-bottom: 8px;
}

.button-small {
  padding: 6px 16px;
  font-size: 0.9rem;
}

/* 記事ページの「この記事を聴く」ボタン */
.listen-button {
  margin-top: 4px;
}

/* 記事の上の Spotify プレーヤー */
.episode-embed {
  margin-top: 4px;
}
.episode-embed iframe {
  display: block;
  width: 100%;
  height: 152px; /* 音声だけのプレーヤーの高さ */
  border: 0;
  border-radius: 12px;
}
/* 動画のプレーヤーは 16:9 で横幅いっぱいに */
.episode-embed-video iframe {
  height: auto;
  aspect-ratio: 16 / 9;
}

/* 番号付きの手順リスト */
.steps {
  padding-left: 1.4em;
  margin: 0 0 28px;
}

.steps li {
  margin-bottom: 10px;
}

/* ---------- 17. テーマ色の追加パーツ ---------- */

/* ジャンル一覧ページの見出しのハイライトを、ジャンルの色にする */
.page-hero[class*="theme-"] .highlight {
  background: linear-gradient(transparent 55%, var(--theme-soft) 55%);
}

.hero-podcast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-weight: 700;
}

/* 記事ページの日本語タイトル */
.title-ja {
  font-size: 1.3rem;
  font-weight: 700;
  margin: -4px 0 12px;
}

/* ポッドキャストのアイコンもジャンルの色に */
.podcast-card[class*="theme-"] .podcast-icon {
  background: var(--theme-pale);
}

/* 本文の表の見出し行もジャンルの色に */
.article[class*="theme-"] .prose th {
  background: var(--theme-pale);
}

/* ---------- 18. 記事の学習パーツ ---------- */

/* ふりがなボタン */
.reading-tools {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 4px;
}

.furigana-toggle {
  padding: 6px 16px;
  border: var(--border);
  border-radius: 999px;
  background: var(--theme-pale, var(--color-green));
  color: var(--color-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.furigana-toggle[aria-pressed="false"] {
  background: var(--color-bg);
}

/* ふりがなを隠す。visibility: hidden なので、行の高さは変わらず、文章がガタッと動かない */
.hide-furigana rt {
  visibility: hidden;
}

/* よみが漢字より長いとき、漢字がバラバラに広がらないよう中央にまとめる */
.prose ruby {
  ruby-align: center;
}

/* ふりがながあっても行がつまらないよう、本文の行間を少し広げる */
.prose p,
.prose li {
  line-height: 2.1;
}

/* 単語リスト */
.table-scroll {
  overflow-x: auto;
  margin: 1em 0 1.5em;
}

.prose .words-table {
  display: table;
  margin: 0;
}

.words-table td:first-child {
  font-weight: 700;
  white-space: nowrap;
}

.words-table td:nth-child(2) {
  white-space: nowrap;
}

/* 英訳（クリックで開く） */
.translation {
  border: var(--border);
  border-radius: var(--radius);
  background: var(--color-bg);
  margin: 1em 0;
}

.translation summary {
  padding: 14px 20px;
  font-weight: 700;
  cursor: pointer;
}

.translation[open] summary {
  border-bottom: var(--border);
  background: var(--theme-pale, var(--color-lavender));
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
}

.translation-body {
  padding: 8px 20px 4px;
  font-size: 1rem;
  line-height: 1.8;
}

/* 出典 */
.prose h2 + ul {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* =========================================================
   レスポンシブ（画面の幅に合わせてレイアウトを変える）
   ========================================================= */

/* iPad（縦）くらいまで */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;   /* 横2列 → 縦1列 */
  }

  .hero-art {
    max-width: 300px;
  }

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

  .podcast-list-grid {
    grid-template-columns: 1fr;
  }

  .podcast-list-grid .podcast-card {
    flex-direction: row;
  }

  /* 2列のときに最後の1枚が余ったら、横いっぱいに広げて空白をなくす
     「最後の子」かつ「奇数番目」= 余った1枚 */
  .card-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  /* 横いっぱいに広げた記事カードは、画像が大きくなりすぎないよう横並びにする */
  .card-grid > .article-card:last-child:nth-child(odd) {
    flex-direction: row;
  }

  .card-grid > .article-card:last-child:nth-child(odd) .article-card-image {
    width: 50%;
    flex-shrink: 0;
    border-bottom: 0;
    border-right: var(--border);
  }
}

/* iPhoneくらいまで */
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .hero    { padding: 40px 0 56px; }

  .card-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  /* スマホでは横並びをやめて、縦に戻す */
  .card-grid > .article-card:last-child:nth-child(odd) {
    flex-direction: column;
  }

  .card-grid > .article-card:last-child:nth-child(odd) .article-card-image {
    width: 100%;
    border-right: 0;
    border-bottom: var(--border);
  }

  .prose {
    font-size: 1.05rem;
  }

  /* 表が画面からはみ出すときは、表だけ横にスクロールできるようにする */
  .prose table {
    display: block;
    overflow-x: auto;
  }

  .about-teaser,
  .podcast-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-avatar {
    width: 100px;
    height: 100px;
    font-size: 1.5rem;
  }

  .speech-1 { left: 0; }
  .speech-2 { right: 0; }

  .footer-inner {
    flex-direction: column;
  }

  /* --- スマホ用メニュー --- */
  .menu-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: var(--border);
    border-radius: 12px;
    background: var(--color-bg);
    cursor: pointer;
  }

  /* 三本線のアイコン（spanとその前後で3本の線を作る） */
  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-ink);
    position: relative;
  }

  .menu-icon::before,
  .menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .menu-icon::before { top: -6px; }
  .menu-icon::after  { top: 6px; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: var(--border);
  }

  /* JSでヘッダーに is-open クラスが付いたら表示する */
  .site-header.is-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
  }

  .site-nav a {
    display: block;
    padding: 12px 0;
    font-size: 1.1rem;
  }
}
