/* =========================================================
   小学校英語 コンパニオンサイト
   「情報マップ」と同系統のデザイン
   丸ゴシック × クリーム地 × ゴールドアクセント
   ========================================================= */

:root {
  --bg:        #f7f5f0;
  --bg-soft:   #faf8f4;
  --card:      #ffffff;
  --ink:       #2b2620;
  --ink-2:     #4a443c;
  --muted:     #8b8378;
  --gold:      #c8992f;
  --gold-2:    #b0842a;
  --rule:      #e5e0d6;
  --rule-soft: #eeeae1;
  --shadow:    0 1px 2px rgba(43,38,32,.04), 0 6px 20px rgba(43,38,32,.05);
  --shadow-h:  0 10px 32px rgba(43,38,32,.10);

  --round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --body:  "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { 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(--body);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold-2); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250,248,244,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 36px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px;
}
.brand {
  font-family: var(--round); font-weight: 700; font-size: 1.24rem;
  color: var(--ink); letter-spacing: .01em; white-space: nowrap;
  line-height: 1.3;
}
@media (max-width: 720px) {
  .brand { font-size: 1.06rem; white-space: normal; }
}
.nav { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.nav a {
  font-family: var(--round); font-weight: 500;
  font-size: .84rem; letter-spacing: .12em; color: var(--ink-2);
  padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--gold); }
.nav a.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- hero ---------- */
.hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule-soft);
  padding: 76px 0 68px; text-align: center;
}
.kicker {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-family: var(--round); font-weight: 500;
  font-size: .82rem; letter-spacing: .34em; color: var(--gold);
  margin: 0 0 26px;
}
.kicker::before, .kicker::after {
  content: ""; width: 56px; height: 1.5px; background: var(--gold); opacity: .55;
}
.hero h1 {
  font-family: var(--round); font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.34;
  margin: 0 auto .5em; letter-spacing: .01em; max-width: 22em;
}
.hero .lede {
  font-size: 1.02rem; color: var(--ink-2); line-height: 2;
  max-width: 46em; margin: 0 auto;
}

/* page hero (下層ページ用・左寄せ) */
.hero.page { text-align: left; padding: 62px 0 52px; }
.hero.page .kicker { justify-content: flex-start; }
.hero.page .kicker::before { display: none; }
.hero.page h1 { margin-left: 0; max-width: none; }
.hero.page .lede { margin-left: 0; }

/* ---------- section label ---------- */
.section { padding: 62px 0; }
.label {
  display: flex; align-items: center; gap: 20px;
  font-family: var(--round); font-weight: 700;
  font-size: .86rem; letter-spacing: .26em; color: var(--ink);
  margin: 0 0 26px;
}
.label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* ---------- card grid ---------- */
.grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  display: block; background: var(--card);
  border-radius: 14px; padding: 32px 30px 30px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-h); }
.card .num {
  font-family: var(--round); font-weight: 700;
  font-size: 1.05rem; color: var(--gold); letter-spacing: .06em;
}
.card h3 {
  font-family: var(--round); font-weight: 700; font-size: 1.42rem;
  color: var(--ink); margin: 14px 0 12px;
}
.card p { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.8; }
.card .soon {
  display: inline-block; margin-top: 16px;
  font-family: var(--round); font-size: .74rem; font-weight: 500;
  letter-spacing: .12em; color: var(--gold);
  background: #fbf5e6; border-radius: 999px; padding: 4px 14px;
}

/* ---------- companion book block ---------- */
.book {
  display: grid; grid-template-columns: 1fr; gap: 30px;
  background: var(--card); border-radius: 14px;
  border-left: 6px solid var(--gold);
  padding: 36px 38px; box-shadow: var(--shadow);
}
@media (min-width: 780px) { .book { grid-template-columns: 210px 1fr; gap: 44px; align-items: start; } }
.book-cover {
  aspect-ratio: 3 / 4.1; border: 1.5px solid var(--gold);
  border-radius: 4px; background: var(--bg-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px; gap: 12px;
  box-shadow: 0 6px 18px rgba(43,38,32,.08);
}
.book-cover .cap {
  font-family: var(--round); font-size: .58rem; letter-spacing: .2em; color: var(--muted);
}
.book-cover .t {
  font-family: var(--round); font-weight: 700; font-size: .96rem;
  color: var(--ink); line-height: 1.5;
}
.book-cover .s { font-size: .6rem; color: var(--muted); line-height: 1.7; }
.book-cover .b { font-size: .56rem; color: var(--muted); letter-spacing: .1em; margin-top: auto; }
.book h2 {
  font-family: var(--round); font-weight: 700;
  font-size: 1.72rem; color: var(--ink); margin: 0 0 10px; line-height: 1.4;
}
.book .sub { font-size: .95rem; color: var(--muted); margin: 0 0 20px; }
.book p.desc { font-size: 1rem; color: var(--ink-2); margin: 0; line-height: 2; }

/* ---------- news ---------- */
.news { list-style: none; margin: 0; padding: 0; }
.news li {
  display: grid; grid-template-columns: 140px 1fr; gap: 6px 24px;
  align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule-soft);
}
.news li:last-child { border-bottom: none; }
.news .date {
  font-family: var(--round); font-style: italic; font-weight: 500;
  color: var(--gold); font-size: .94rem; letter-spacing: .04em;
}
.news .txt { color: var(--ink-2); font-size: .98rem; }

/* ---------- 工事中 placeholder ---------- */
.wip {
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  padding: 74px 40px; text-align: center; margin-top: 12px;
}
.wip .mark {
  font-family: var(--round); font-weight: 700; font-size: 2rem;
  color: var(--gold); letter-spacing: .1em; margin: 0 0 14px;
}
.wip p { color: var(--muted); font-size: .96rem; margin: 0 auto; max-width: 34em; line-height: 2; }
.wip .back { margin-top: 26px; }
.wip .back a {
  font-family: var(--round); font-size: .84rem; letter-spacing: .1em;
  border: 1.5px solid var(--gold); border-radius: 999px; padding: 9px 26px;
  display: inline-block; transition: background .18s, color .18s;
}
.wip .back a:hover { background: var(--gold); color: #fff; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule); margin-top: 40px;
  padding: 34px 0 60px; color: var(--muted); font-size: .84rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero .kicker { animation: rise .6s ease both .04s; }
.hero h1      { animation: rise .7s ease both .12s; }
.hero .lede   { animation: rise .7s ease both .22s; }
.grid .card:nth-child(1){animation:rise .6s ease both .28s}
.grid .card:nth-child(2){animation:rise .6s ease both .34s}
.grid .card:nth-child(3){animation:rise .6s ease both .40s}
.grid .card:nth-child(4){animation:rise .6s ease both .46s}
.grid .card:nth-child(5){animation:rise .6s ease both .52s}
.grid .card:nth-child(6){animation:rise .6s ease both .58s}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 22px; }
  .hero { padding: 54px 0 46px; }
  .kicker::before, .kicker::after { width: 30px; }
  .section { padding: 46px 0; }
  .book { padding: 28px 24px; }
  .book-cover { max-width: 200px; margin: 0 auto; }
  .news li { grid-template-columns: 1fr; gap: 2px; }
  .wip { padding: 54px 24px; }
}

/* =========================================================
   ヒーローに書影を配置するレイアウト
   ========================================================= */
.hero-book {
  display: grid; grid-template-columns: 1fr; gap: 34px;
  align-items: center; justify-items: center; text-align: center;
}
@media (min-width: 860px) {
  .hero-book {
    grid-template-columns: 232px 1fr; gap: 56px;
    justify-items: start; text-align: left;
  }
  .hero-book .hero-text h1,
  .hero-book .hero-text .lede { margin-left: 0; }
}
.hero-book .hero-text h1 { max-width: 18em; }
.hero-book .hero-text .lede { max-width: 40em; }

/* 表紙（画像に差し替え可） */
.cover {
  width: 100%; max-width: 232px;
  aspect-ratio: 3 / 4.1; border-radius: 6px; overflow: hidden;
  border: 1.5px solid var(--gold); background: var(--card);
  box-shadow: 0 10px 30px rgba(43,38,32,.14);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px 18px; gap: 12px;
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .cap { font-family: var(--round); font-size: .56rem; letter-spacing: .22em; color: var(--muted); }
.cover .t { font-family: var(--round); font-weight: 700; font-size: 1rem; color: var(--ink); line-height: 1.55; }
.cover .rule { width: 40px; height: 1.5px; background: var(--gold); opacity: .6; }
.cover .s { font-size: .58rem; color: var(--muted); line-height: 1.8; }
.cover .b { font-size: .55rem; color: var(--muted); letter-spacing: .12em; margin-top: auto; }

/* 「対話形式でわかる」— 見出しと同色でシンプルに */
.h1-lead {
  display: block;
  font-size: 1em;
  font-weight: 700;
  color: inherit;
  line-height: 1.34;
}

/* ---------- 記事本文（こぼればなし） ---------- */
.prose { max-width: 42em; font-size: 1.02rem; line-height: 2.05; color: var(--ink-2); }
.prose h2 {
  font-family: var(--round); font-weight: 700; font-size: 1.4rem;
  color: var(--ink); margin: 2.4em 0 .8em;
}
.prose h3 {
  font-family: var(--round); font-weight: 700; font-size: 1.15rem;
  color: var(--ink); margin: 2em 0 .7em;
}
.prose p { margin: 0 0 1.6em; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--gold); color: var(--muted);
}
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.6em; }
.prose li { margin-bottom: .5em; }
