/* =========================================================
   絵本『うんこのてんし』公式サイト
   装丁の世界観(深い青緑 → 黄金のグラデーション)を踏襲
   ========================================================= */

:root {
  --deep: #10333f;        /* 夜空の深い青緑 */
  --teal: #1c5a68;        /* 表紙上部のティール */
  --teal-light: #2e7d8c;
  --gold: #c9a13b;        /* 表紙下部の黄金 */
  --gold-soft: #e3c368;
  --cream: #f6efdd;       /* 本文の生成り */
  --paper: #fbf7ec;
  --brown: #5f4630;       /* てんしの茶色/帯文字 */
  --accent: #e0662e;      /* CTA用の温かい朱色 */
  --accent-dark: #c04f1d;
  --ink: #2b2b26;
  --maxw: 1080px;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(16, 51, 63, 0.18);
  --font-hand: "Yomogi", "Zen Maru Gothic", cursive;
  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "BIZ UDGothic", "Yu Gothic", sans-serif;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "BIZ UDGothic", "Yu Gothic", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 16px;
  overflow-wrap: anywhere;
}

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

a { color: var(--teal); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- 見出し共通 ---------- */
.section { padding: 88px 0; }

.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  border: 1.5px dashed var(--gold);
  border-radius: 999px;
  padding: 2px 18px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.5;
  margin-bottom: 28px;
  color: var(--deep);
}

.on-dark .section-title { color: var(--cream); }
.on-dark .section-label { color: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(16, 51, 63, 0.92);
  backdrop-filter: blur(6px);
  color: var(--cream);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.08em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand .halo { color: var(--gold-soft); }

.global-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: flex-end; }

.global-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.86rem;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}

.global-nav a:hover { border-bottom-color: var(--gold-soft); }

.nav-buy {
  background: var(--accent);
  border-radius: 999px;
  padding: 4px 16px !important;
  font-weight: 700;
}
.nav-buy:hover { background: var(--accent-dark); border-bottom-color: transparent !important; }

/* モバイルナビ(ハンバーガー) */
.nav-toggle { display: none; }
.nav-toggle-btn { display: none; }

/* ---------- ヒーロー ---------- */
.hero {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(46, 125, 140, 0.55), transparent 55%),
    linear-gradient(175deg, var(--deep) 0%, var(--teal) 45%, #6e7a3f 78%, var(--gold) 105%);
  color: var(--cream);
  padding: 140px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::after {  /* 天使の輪っかのような淡い光 */
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  border: 2px solid rgba(246, 239, 221, 0.12);
  top: -180px; right: -120px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: center;
}

.hero-cover img {
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: rotate(-1.5deg);
}

.hero-copy .kicker {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold-soft);
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.7rem, 4.4vw, 2.7rem);
  line-height: 1.55;
  margin-bottom: 18px;
  text-shadow: 0 3px 14px rgba(0,0,0,0.35);
}

.hero-lead {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  margin-bottom: 30px;
  color: #eee6d2;
}

.hero-meta {
  font-size: 0.9rem;
  margin-bottom: 30px;
  color: #d8cfb6;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 900;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 32px;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(224, 102, 46, 0.45);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  border: 2px solid rgba(246, 239, 221, 0.7);
  color: var(--cream);
}
.btn-ghost:hover { background: rgba(246, 239, 221, 0.12); }

.btn-dark {
  background: var(--deep);
  color: var(--cream);
}
.btn-dark:hover { background: var(--teal); }

/* ---------- 帯スローガン ---------- */
.obi {
  background: var(--gold);
  color: var(--brown);
  padding: 26px 0;
  text-align: center;
}

.obi p {
  font-family: var(--font-hand);
  font-weight: 900;
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  letter-spacing: 0.12em;
  line-height: 1.7;
}

.obi small { display: block; font-size: 0.85rem; letter-spacing: 0.2em; margin-top: 6px; }

/* ---------- 物語 ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 44px;
  align-items: start;
}

.story-text p { margin-bottom: 1.2em; }

.story-punch {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--teal);
  border-left: 5px solid var(--gold);
  padding-left: 16px;
  margin: 1.4em 0;
  line-height: 1.8;
}

.keyword-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.chip {
  background: #eef3ef;
  border: 1.5px solid var(--teal-light);
  color: var(--teal);
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 4px 16px;
  font-family: var(--font-head);
  font-weight: 700;
}

.spread-placeholder {
  background: repeating-linear-gradient(45deg, #ede6d2, #ede6d2 12px, #f4eedd 12px, #f4eedd 24px);
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--brown);
  font-family: var(--font-head);
  font-weight: 700;
  padding: 20px;
  font-size: 0.95rem;
}

/* ---------- 中面画像・ギャラリー ---------- */
.spread-figure { margin-bottom: 22px; }

/* 単ページ(縦位置)の原画を並べるとき用 */
.spread-figure.is-portrait img {
  max-width: 76%;
  display: block;
  margin: 0 auto;
}

.spread-figure img,
.gallery-item img,
.truestory-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
}

.spread-figure figcaption,
.gallery-item figcaption {
  font-size: 0.82rem;
  color: var(--brown);
  font-family: var(--font-head);
  font-weight: 700;
  margin-top: 8px;
  text-align: center;
}

.truestory-figure { margin: 6px 0 30px; }

.truestory-figure img { box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }

.truestory-figure figcaption {
  font-size: 0.82rem;
  color: var(--gold-soft);
  font-family: var(--font-head);
  font-weight: 700;
  margin-top: 10px;
  text-align: center;
}

.gallery { background: var(--cream); }

.gallery-lead { max-width: 720px; margin-bottom: 30px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 24px;
}

.gallery-note { margin-top: 26px; font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq { background: #eef3ef; }

.faq-list { display: grid; gap: 16px; }

.faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 28px;
}

.faq-item dt {
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--teal);
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.faq-item dd { font-size: 0.92rem; color: #4c4c45; }

/* ---------- 実話・あとがき ---------- */
.true-story {
  background: linear-gradient(180deg, var(--deep) 0%, #17444f 100%);
  color: var(--cream);
}

.true-story p { color: #e8e0ca; margin-bottom: 1.2em; }

.atogaki {
  margin-top: 34px;
  background: rgba(246, 239, 221, 0.07);
  border: 1px solid rgba(201, 161, 59, 0.5);
  border-radius: var(--radius);
  padding: 30px 34px;
}

.atogaki blockquote {
  font-size: 1.02rem;
  line-height: 2.1;
  color: var(--cream);
}

.atogaki cite {
  display: block;
  text-align: right;
  margin-top: 14px;
  font-style: normal;
  color: var(--gold-soft);
  font-family: var(--font-head);
  font-weight: 700;
}

/* ---------- 読者別カード ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.aud-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px 24px;
  text-decoration: none;
  color: var(--ink);
  border-top: 6px solid var(--teal);
  transition: transform 0.15s ease;
  display: flex;
  flex-direction: column;
}

.aud-card:hover { transform: translateY(-4px); }

.aud-icon {
  width: auto;
  display: block;
  align-self: flex-start;
  transform: rotate(-3deg);
}

.i-tenshi { height: 86px; margin: 0 0 10px; }
.i-wa { height: 34px; margin: 22px 0 40px; transform: rotate(2deg); }
.i-unko { height: 56px; margin: 20px 0 20px; transform: rotate(-2deg); }
.i-kirakira { height: 62px; margin: 14px 0 20px; transform: rotate(3deg); filter: drop-shadow(0 1px 2px rgba(16, 51, 63, 0.45)); }

.brand-icon { height: 1.6em; width: auto; flex: none; }

.sticky-cta img { height: 24px; width: auto; vertical-align: -6px; margin-right: 8px; }

.g-icon { height: 42px; width: auto; display: block; margin: 0 auto 10px; transform: rotate(-4deg); }
.goods-item:nth-child(even) .g-icon { transform: rotate(4deg) scaleX(-1); }

.camp-icon { height: 54px; width: auto; display: block; margin: 0 auto 14px; }

.aud-card h3 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--deep);
  margin-bottom: 8px;
  line-height: 1.5;
}

.aud-card p { font-size: 0.86rem; line-height: 1.75; color: #55554e; flex: 1; }

.aud-card .aud-link {
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--accent);
}

.aud-card:nth-child(2) { border-top-color: var(--gold); }
.aud-card:nth-child(3) { border-top-color: var(--accent); }
.aud-card:nth-child(4) { border-top-color: var(--brown); }

/* ---------- 書籍情報・購入 ---------- */
.buy { background: var(--cream); }

.book-spec {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.book-spec th, .book-spec td {
  text-align: left;
  padding: 13px 20px;
  border-bottom: 1px solid #efe8d5;
  font-size: 0.94rem;
  vertical-align: top;
}

.book-spec th {
  width: 30%;
  background: #f6f1e2;
  color: var(--brown);
  font-family: var(--font-head);
  font-weight: 500;
  white-space: nowrap;
}

.tbd {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--brown);
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 1px 10px;
  margin-left: 8px;
  vertical-align: middle;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.channel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel h3 { font-family: var(--font-head);
  font-weight: 900; font-size: 1.02rem; color: var(--deep); }

.channel p { font-size: 0.83rem; color: #55554e; line-height: 1.7; flex: 1; }

.channel .btn { font-size: 0.9rem; padding: 10px 18px; }

.preorder-note {
  margin-top: 34px;
  background: #fff;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 26px 30px;
  text-align: center;
}

.preorder-note p { margin-bottom: 14px; font-size: 0.95rem; }

/* ---------- 学校・図書館 ---------- */
.school { background: #eef3ef; }

.school-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }

.school-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
}

.school-card h3 {
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--teal);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.school-card p { font-size: 0.88rem; color: #4c4c45; }

.school-card .free {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 1px 10px;
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-weight: 900;
}

/* ---------- 講演 ---------- */
.lecture-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px 0 34px; }

.lec-card {
  background: rgba(246, 239, 221, 0.08);
  border: 1px solid rgba(201, 161, 59, 0.55);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.lec-card h3 { font-family: var(--font-head);
  font-weight: 900; color: var(--gold-soft); font-size: 1.05rem; margin-bottom: 10px; }

.lec-card p { font-size: 0.88rem; color: #e2d9c2; }

.lecture { background: linear-gradient(180deg, #17444f, var(--deep)); color: var(--cream); }
.lecture .lead { color: #e8e0ca; max-width: 760px; }

/* ---------- グッズ・ニュース ---------- */
.goods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.goods-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  text-align: center;
}

.goods-item h3 { font-family: var(--font-head);
  font-weight: 900; font-size: 1rem; color: var(--deep); margin-bottom: 8px; padding-top: 6px; }
.goods-item p { font-size: 0.8rem; color: #6a6a61; }

.coming {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 1px 12px;
  margin-top: 10px;
  font-family: var(--font-head);
  font-weight: 900;
}

.news-list { list-style: none; max-height: 22rem; overflow-y: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }

.news-list li { display: flex; gap: 22px; padding: 18px 26px; border-bottom: 1px solid #efe8d5; font-size: 0.92rem; flex-wrap: wrap; }

.news-list time { flex: 0 0 7.2rem; color: var(--gold); font-family: var(--font-head);
  font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- キャンペーン ---------- */
.campaign {
  background: var(--gold);
  color: var(--brown);
  text-align: center;
}

.campaign .hashtag {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  margin-bottom: 16px;
}

.campaign p { max-width: 680px; margin: 0 auto 24px; }

/* ---------- プロフィール ---------- */
.profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.profile {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
}

.profile h3 { font-family: var(--font-head);
  font-weight: 900; color: var(--deep); font-size: 1.15rem; margin-bottom: 4px; }

.profile .role { color: var(--gold); font-family: var(--font-head);
  font-weight: 700; font-size: 0.85rem; margin-bottom: 12px; }

.profile p { font-size: 0.9rem; color: #4c4c45; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--deep);
  color: #cfc7ae;
  padding: 54px 0 110px;
  font-size: 0.85rem;
}

.footer-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }

.site-footer .brand { font-size: 1.3rem; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.footer-nav a { color: #cfc7ae; text-decoration: none; }
.footer-nav a:hover { color: var(--gold-soft); }

.copyright { text-align: center; color: #8fa3a0; font-size: 0.78rem; }

/* ---------- 追従CTA ---------- */
.sticky-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
}

.sticky-cta a {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 900;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 26px;
  box-shadow: 0 10px 26px rgba(192, 79, 29, 0.5);
  font-size: 0.98rem;
}

.sticky-cta a:hover { background: var(--accent-dark); }

/* ---------- サブページ共通 ---------- */
.sub-hero {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(46, 125, 140, 0.5), transparent 55%),
    linear-gradient(170deg, var(--deep) 0%, var(--teal) 70%, #55703f 110%);
  color: var(--cream);
  padding: 120px 0 56px;
}

.sub-hero h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.8vw, 2.4rem);
  line-height: 1.55;
  margin: 10px 0 14px;
}

.sub-hero .sub-lead { color: #e8e0ca; max-width: 780px; font-size: 0.98rem; }

.breadcrumb {
  font-size: 0.8rem;
  color: #c3bda6;
  margin-bottom: 4px;
}

.breadcrumb a { color: #d8cfb6; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-soft); }

.article { max-width: 820px; }

.article h2 {
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--deep);
  font-size: 1.45rem;
  line-height: 1.6;
  margin: 56px 0 18px;
  padding-left: 14px;
  border-left: 6px solid var(--gold);
}

.article h2:first-of-type { margin-top: 0; }

.article h3 {
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--teal);
  font-size: 1.12rem;
  margin: 34px 0 12px;
}

.article p { margin-bottom: 1.25em; }

.article ul, .article ol { margin: 0 0 1.25em 1.4em; }
.article li { margin-bottom: 0.4em; }

.note-box {
  background: #eef3ef;
  border-left: 6px solid var(--teal-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 26px 0;
  font-size: 0.92rem;
}

.book-cta {
  background: linear-gradient(135deg, var(--deep), var(--teal));
  color: var(--cream);
  border-radius: var(--radius);
  padding: 30px 32px;
  margin: 48px 0 10px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow);
}

.book-cta img { border-radius: 6px; box-shadow: 0 8px 20px rgba(0,0,0,0.4); }

.book-cta h3 { font-family: var(--font-head);
  font-weight: 900; color: var(--gold-soft); font-size: 1.1rem; margin-bottom: 8px; }

.book-cta p { font-size: 0.88rem; color: #e8e0ca; margin-bottom: 14px; }

/* 数字カード */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0; }

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  text-align: center;
}

.stat-card .stat-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--accent-dark);
  line-height: 1.3;
}

.stat-card .stat-label { font-size: 0.82rem; color: #55554e; margin-top: 6px; line-height: 1.6; }

/* タイムライン */
.timeline { list-style: none; margin: 26px 0 !important; padding-left: 0; }

.timeline li {
  position: relative;
  padding: 0 0 22px 30px;
  border-left: 3px solid var(--gold);
  margin-left: 8px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -9px; top: 4px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--paper);
}

.timeline .t-time { font-family: var(--font-head);
  font-weight: 700; color: var(--teal); display: block; font-size: 0.95rem; }

/* ダウンロードカード */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 30px 0; }

.dl-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
  border-top: 6px solid var(--accent);
  display: flex;
  flex-direction: column;
}

.dl-card h3 { font-family: var(--font-head);
  font-weight: 900; color: var(--deep); font-size: 1.12rem; margin-bottom: 10px; }

.dl-card .dl-meta { font-size: 0.78rem; color: var(--gold); font-family: var(--font-head);
  font-weight: 700; margin-bottom: 10px; }

.dl-card p { font-size: 0.88rem; color: #4c4c45; flex: 1; margin-bottom: 18px; }

.dl-card .btn { align-self: flex-start; }

/* 制作日記 */
.diary-entry {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 44px;
  margin-bottom: 30px;
}

.diary-entry .entry-date { font-family: var(--font-head);
  font-weight: 700; color: var(--gold); font-size: 0.88rem; }

.diary-entry h2 {
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--deep);
  font-size: 1.4rem;
  margin: 8px 0 20px;
  border: none;
  padding: 0;
}

.diary-entry .entry-author { font-size: 0.82rem; color: #8a8a7f; margin-bottom: 20px; }

.diary-entry p { margin-bottom: 1.25em; }

.entry-fig { margin: 26px 0; }
.entry-fig img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); }
.entry-fig figcaption { font-size: 0.8rem; color: var(--brown); font-family: var(--font-head);
  font-weight: 700; margin-top: 8px; text-align: center; }

@media (max-width: 700px) {
  .stat-grid { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .book-cta { grid-template-columns: 1fr; text-align: center; }
  .book-cta img { margin: 0 auto; max-width: 140px; }
  .diary-entry { padding: 28px 22px; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .audience-grid, .channel-grid, .goods-grid { grid-template-columns: repeat(2, 1fr); }
  .school-grid, .lecture-menu { grid-template-columns: 1fr; }
  .hero-inner, .story-grid, .profiles { grid-template-columns: 1fr; }
  .hero-cover { max-width: 320px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 110px 0 70px; }

  /* ハンバーガーメニュー */
  .header-inner { position: relative; }
  .global-nav { display: none; }
  .nav-toggle-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 12px 8px;
    margin: -6px 0;
  }
  .nav-toggle-btn span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--cream);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-open .nav-toggle-btn span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .nav-open .nav-toggle-btn span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle-btn span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
  .nav-open .global-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(16, 51, 63, 0.97);
    backdrop-filter: blur(6px);
    padding: 8px 22px 20px;
    gap: 0;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  }
  .nav-open .global-nav a {
    padding: 13px 4px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(246, 239, 221, 0.14);
  }
  .nav-open .global-nav .nav-buy { margin-top: 14px; text-align: center; border-bottom: none; padding: 11px 16px !important; }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
  .nav-toggle:checked ~ .global-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(16, 51, 63, 0.97);
    backdrop-filter: blur(6px);
    padding: 8px 22px 20px;
    gap: 0;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  }
  .nav-toggle:checked ~ .global-nav a {
    padding: 13px 4px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(246, 239, 221, 0.14);
  }
  .nav-toggle:checked ~ .global-nav a:hover { border-bottom-color: var(--gold-soft); }
  .nav-toggle:checked ~ .global-nav .nav-buy {
    margin-top: 14px;
    text-align: center;
    border-bottom: none;
    padding: 11px 16px !important;
  }
}

@media (max-width: 560px) {
  .audience-grid, .channel-grid, .goods-grid { grid-template-columns: 1fr; }
  body { font-size: 15px; }
  .book-spec th { white-space: normal; width: 32%; }
  .book-spec th, .book-spec td { padding: 10px 12px; font-size: 0.88rem; }
  .sticky-cta { right: 12px; bottom: 12px; }
  .sticky-cta a { padding: 11px 18px; font-size: 0.88rem; }
  .sticky-cta img { height: 20px; }
  .obi { padding: 20px 0; }
  .atogaki { padding: 22px 20px; }
  .book-cta { padding: 24px 20px; }
  .diary-entry { padding: 24px 18px; }
  .cta-row .btn { width: 100%; text-align: center; }
  .site-footer { padding-bottom: 90px; }
}
