/* =========================================================
   短歌の本屋（仮） — base stylesheet
   トーン：淡いブルーグレーの地に、ティールの太い見出しとレモンイエロー。
   イラストは線のないフラットなアイソメトリック（本でできた町）。
   本は白い角丸カードに番号をふって並べ、ヒーローでは弧を描いて並べる。
   ========================================================= */

:root {
  --bg: #f3ecdc;          /* 地：雑誌の表紙のようなクリーム */
  --bg-deep: #ebe1cb;
  --card: #ffffff;
  --ink: #1f1d1b;         /* 文字：ほぼ黒 */
  --ink-soft: #6b645a;
  --blue: #3d97d3;        /* 主役：空色 */
  --blue-deep: #3f78b5;
  --yellow: #f4b740;      /* 差し色：山吹 */
  --orange: #f29a38;
  --tan: #e9c36a;
  --brick: #e5533d;
  --pink: #f3b5a5;
  --sky: #9fd0ee;
  --mint: #8fbb9c;        /* くすみグリーン */
  --navy: #2d5a8c;
  --cream: #fffaf0;

  --radius: 16px;
  --shadow: 0 8px 24px rgba(70, 55, 30, .10);
  --shadow-lift: 0 14px 32px rgba(70, 55, 30, .16);

  --font-latin: "Montserrat", "Zen Kaku Gothic New", sans-serif;
  --font-display: "Zen Kaku Gothic New", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-tanka: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --w-latin: 800;
  --w-display: 900;

  --wrap: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--yellow); padding: 8px 12px; }

/* ---------- 流れる帯 ---------- */
.ticker {
  background: var(--blue);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}
.ticker__inner { display: inline-block; padding: 4px 0; animation: ticker 40s linear infinite; }
.ticker__inner span { margin: 0 2.5em; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- ヘッダー ---------- */
.site-header {
  background: rgba(243, 236, 220, .94);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 36px; height: 36px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__name { font-family: var(--font-display); font-weight: var(--w-display); font-size: 20px; color: var(--blue); white-space: nowrap; }
.logo__tag { font-size: 11px; color: var(--ink-soft); font-weight: 700; }

.gnav { display: flex; align-items: center; gap: 4px; }
.gnav a {
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
}
.gnav a:hover, .gnav a[aria-current="page"] { color: var(--blue); background: var(--card); }
.gnav .gnav__cta { background: var(--blue); color: #fff; margin-left: 6px; }
.gnav .gnav__cta:hover, .gnav .gnav__cta[aria-current="page"] { background: var(--blue-deep); color: #fff; }

.menu-btn {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 26px;
  height: 4px;
  border-radius: 4px;
  background: var(--blue);
  margin: 0 auto;
  position: relative;
  content: "";
}
.menu-btn span::before { position: absolute; top: -8px; }
.menu-btn span::after  { position: absolute; top: 8px; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .gnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    padding: 12px 20px 20px;
    box-shadow: var(--shadow);
  }
  .gnav.is-open { display: flex; }
  .gnav a { padding: 10px 14px; }
  .gnav .gnav__cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- 見出し ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-latin);
  font-weight: var(--w-latin);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.section-title { text-align: center; margin: 0 0 48px; }
.section-title h2 {
  font-family: var(--font-latin);
  font-weight: var(--w-latin);
  font-size: clamp(34px, 5.4vw, 52px);
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--blue);
  margin: 0;
}
.section-title h2 small {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: 18px;
  letter-spacing: .08em;
  color: var(--ink);
  margin-top: 10px;
}
.section-title p { margin: 8px 0 0; color: var(--ink-soft); font-weight: 500; }

.page-head { padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-head h1 {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.3;
  color: var(--blue);
  margin: 0 0 14px;
}
.page-head p { max-width: 620px; margin: 0; font-weight: 500; }
.page-head__deco {
  position: absolute;
  right: 4%;
  bottom: 10px;
  width: 220px;
}
.page-head__deco svg { width: 100%; height: auto; }
@media (max-width: 760px) { .page-head__deco { display: none; } }

.crumbs { font-size: 12px; font-weight: 700; margin-bottom: 16px; color: var(--ink-soft); }
.crumbs a { text-decoration: none; color: var(--blue); }
.crumbs span { margin: 0 6px; }

/* ---------- セクション ---------- */
.section { padding: 88px 0; position: relative; }
.section--tight { padding: 56px 0 80px; }
.section--white { background: transparent; }
.section--card { background: var(--card); }
.section--sand, .section--mustard, .section--terra, .section--apricot { background: var(--bg-deep); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 28px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn--light { background: var(--card); color: var(--blue); }
.btn--light:hover { background: var(--yellow); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center { text-align: center; }

/* VIEW →（黄色い丸の矢印） */
.view {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-latin);
  font-weight: var(--w-latin);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--blue);
  text-decoration: none;
}
.view::after {
  content: "→";
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: transform .15s;
}
.view:hover::after { transform: translateX(4px); }
.view-row { display: flex; justify-content: center; margin-top: 44px; }

/* ---------- カード ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { font-family: var(--font-display); font-weight: var(--w-display); font-size: 19px; line-height: 1.5; margin: 10px 0 6px; color: var(--blue); }
.card p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.card .more { margin-top: auto; padding-top: 16px; font-family: var(--font-latin); font-weight: var(--w-latin); font-size: 12px; letter-spacing: .1em; color: var(--blue); }

.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: var(--w-display);
  color: var(--blue);
  align-self: flex-start;
}
.tag::after { content: " /"; color: var(--ink-soft); }

.soon {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--bg);
  border-radius: 999px;
  padding: 1px 8px;
}

/* ---------- ヒーロー ---------- */
.hero { position: relative; padding: 24px 0 48px; overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 24px;
}
.hero__title {
  font-family: var(--font-latin);
  font-weight: var(--w-latin);
  font-size: clamp(56px, 9vw, 112px);
  line-height: .95;
  letter-spacing: .01em;
  color: var(--blue);
  margin: 0 0 18px;
  position: relative;
  z-index: 2;
}
.hero__sub {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--blue);
  margin: 0 0 16px;
}
.hero__lead { margin: 0 0 24px; font-weight: 500; max-width: 26em; }
.hero__art { position: relative; }
.hero__art::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow);
  right: -4%;
  top: -2%;
}
.hero__art svg { position: relative; width: 100%; height: auto; }
.hero__line { width: 1px; height: 56px; background: var(--blue); margin-top: 32px; }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; margin: 0 -10px; }
  .hero__line { display: none; }
}

/* ---------- 表紙（雑誌の表紙のようなトップ） ---------- */
.cover { padding: 64px 0 104px; overflow: hidden; }
.cover__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: end;
  gap: 48px;
}
.cover__logo {
  position: relative;
  font-family: var(--font-latin);
  font-weight: var(--w-latin);
  font-size: clamp(64px, 18vw, 224px);
  line-height: .84;
  letter-spacing: -.01em;
  color: var(--blue);
  margin: 0;
  padding: 0 14px 14px 0;
  white-space: nowrap;
  text-align: left;
  /* 縁取り＋ずらした影を重ねて、看板っぽく */
  -webkit-text-stroke: .045em var(--ink);
  paint-order: stroke fill;
  text-shadow:
    .035em .035em 0 var(--yellow),
    .06em .06em 0 var(--ink);
}
.cover__logo span { display: block; }
/* 同じ文字を上に重ねて、左上→右下に走る光をのせる */
.cover__logo::after {
  content: "TANKA\A BOOK\A STORE";
  white-space: pre;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  color: transparent;
  -webkit-text-stroke: 0;
  text-shadow: none;
  background-image: linear-gradient(135deg, transparent 45%, rgba(255,255,255,.9) 49.2%, #fff 50%, rgba(255,255,255,.9) 50.8%, transparent 55%);
  background-size: 300% 300%;
  background-repeat: no-repeat;
  background-position: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: cover-shine 4.2s ease-in-out 1s infinite;
}
@keyframes cover-shine {
  0% { background-position: 100% 100%; }
  38%, 100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cover__logo::after { animation: none; }
}
.cover__logo span:nth-child(2) { color: var(--orange); }
.cover__side { padding-bottom: 18px; }
.cover__lead { font-size: 15px; margin: 0 0 22px; color: var(--ink); }
.cover__lead br { display: none; }
@media (max-width: 860px) {
  .cover { padding: 40px 0 88px; }
  .cover__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cover__logo { font-size: 30vw; }
}

/* 縦書きの一首 */
.tanka {
  writing-mode: vertical-rl;
  font-family: var(--font-tanka);
  font-size: 22px;
  line-height: 1.9;
  letter-spacing: .12em;
  margin: 0;
}
.tanka cite {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--ink-soft);
  margin-right: 1em;
  padding-top: 4em;
}
.tanka--lg { font-size: 25px; white-space: nowrap; }  /* ページ冒頭の一首は折り返さない */

/* ---------- 本のカード（番号つきのラインナップ） ---------- */
.lineup {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 28px;
}
@media (max-width: 960px) { .lineup { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .lineup { gap: 36px 16px; } }

.book { position: relative; display: flex; flex-direction: column; text-decoration: none; }
.book__num {
  font-family: var(--font-latin);
  font-weight: var(--w-latin);
  font-size: 34px;
  line-height: 1;
  color: var(--blue);
  margin: 0 0 -.5em 14px;
  position: relative;
  z-index: 1;
}
.book__card {
  background: var(--card);
  border-radius: 20px;
  aspect-ratio: 1 / 1.08;
  min-height: 0;           /* 表紙が縦長でも枠が伸びないように */
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  padding: 12px;
  transition: transform .2s, box-shadow .2s;
}
.book__card svg { width: 100%; height: auto; }
.book__card img {
  width: auto;
  height: 86%;
  max-width: 86%;
  min-height: 0;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 6px 14px rgba(70, 55, 30, .18), 0 1px 2px rgba(70, 55, 30, .2);
}
a.book:hover .book__card { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.sticker {
  position: absolute;
  top: 20px;
  right: -8px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue-deep);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: 11px;
  line-height: 1.3;
  transform: rotate(10deg);
  z-index: 2;
}
.book__info { padding: 14px 4px 0; font-size: 13px; }
/* 書影の出典。白枠のすぐ下に、うすく小さく */
.book__credit { display: block; margin: 6px 4px -6px; font-size: 10px; letter-spacing: .04em; opacity: .45; text-align: right; }
.book__k {
  display: block;
  font-family: var(--font-latin);
  font-weight: var(--w-latin);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--blue);
  margin-top: 8px;
}
.book__info strong { display: block; font-family: var(--font-display); font-weight: var(--w-display); font-size: 17px; line-height: 1.45; }
.book__info p { margin: 0; line-height: 1.7; }

.c-terra { background: var(--brick); }
.c-mustard { background: var(--tan); }
.c-sand { background: var(--sky); }
.c-rose { background: var(--pink); }
.c-apricot { background: var(--orange); }
.c-line { background: #06c755; }
.c-white { background: var(--mint); }

/* ---------- 記事リスト ---------- */
.list { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.list li + li { border-top: 1px solid var(--bg); }
.list a, .list .list__item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 20px;
  text-decoration: none;
  font-weight: 700;
}
.list a:hover { background: var(--cream); }
.list .tag { flex: none; }
.list__arrow { margin-left: auto; flex: none; color: var(--blue); }

/* ---------- 記事・歌集ページ本文 ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article h2 {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: 26px;
  line-height: 1.45;
  color: var(--blue);
  margin: 56px 0 16px;
}
.article h3 { font-family: var(--font-display); font-weight: var(--w-display); font-size: 19px; margin: 36px 0 8px; }
.article p { margin: 0 0 1.4em; }

.tanka-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  justify-content: center;
  margin: 32px 0;
}

.point { background: var(--yellow); border-radius: var(--radius); padding: 20px 24px; margin: 32px 0; }
.point strong { font-family: var(--font-display); font-weight: var(--w-display); color: var(--blue-deep); display: block; font-size: 17px; margin-bottom: 4px; }

.note {
  font-size: 13px;
  color: var(--ink-soft);
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 12px;
  margin: 24px 0;
}

/* 歌集ページ：POP */
.pop { display: grid; grid-template-columns: 280px 1fr; gap: 44px; align-items: start; }
@media (max-width: 760px) { .pop { grid-template-columns: 1fr; } .pop .book { max-width: 260px; } }
.pop .book__info { display: none; }
.pop__card { background: var(--card); border-radius: 20px; padding: 36px 32px 30px; position: relative; }
.pop__label {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--yellow);
  color: var(--blue-deep);
  border-radius: 999px;
  padding: 2px 16px;
  font-family: var(--font-latin);
  font-weight: var(--w-latin);
  letter-spacing: .14em;
  font-size: 13px;
}
.pop__copy {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.5;
  color: var(--blue);
  margin: 4px 0 16px;
}
.pop__by { margin: 18px 0 0; }
.pop__book { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.pop__tags { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 0; list-style: none; }
.pop__tags li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 999px;
  padding: 1px 12px 1px 10px;
}
.pop__tags li span { font-size: 11px; opacity: .6; }
.pop__tags a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.pop__tags a:hover { color: var(--blue); }

/* 歌集ページ：書影の枠と右のカードの上下をそろえる。高さは右のカードの中身で決め、書影はその中に収める */
.crumbs + .pop--book { margin-top: 30px; }
.pop--book { grid-template-columns: 300px 1fr; gap: 36px; align-items: stretch; }
.pop--book .book { height: 100%; }
.pop--book .book__credit { position: absolute; top: 100%; right: 0; margin: 8px 6px 0; }
.pop--book .book__card { flex: 1; aspect-ratio: auto; min-height: 320px; position: relative; display: block; }
.pop--book .book__card img {
  position: absolute; inset: 0; margin: auto;
  width: auto; height: auto; max-width: 74%; max-height: 82%;
}
.pop--book .book__card .cover-ph {
  position: absolute; top: 9%; bottom: 9%; left: 50%; transform: translateX(-50%);
  height: auto; max-width: 74%;
}
.pop--book .pop__card { padding: 40px 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.page-head .pop--book .pop__copy { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.4; margin: 0 0 16px; }
.page-head .pop--book .pop__card > p { max-width: 40em; margin: 0; line-height: 1.95; }
.pop--book .pop__by { margin: 24px 0 0; }
.page-head .pop--book .pop__book { margin: 0 0 10px; }
.pop--book .depth { margin: 26px 0 0; }
@media (max-width: 760px) {
  .crumbs + .pop--book { margin-top: 22px; }
  .pop--book { grid-template-columns: 1fr; gap: 34px; }
  .pop--book .book { height: auto; width: 100%; max-width: 240px; margin: 0 auto; }
  .pop--book .book__card { flex: none; aspect-ratio: 1 / 1.08; min-height: 0; }
  .pop--book .book__credit { position: static; margin: 8px 6px 0; }
  .pop--book .pop__card { padding: 34px 22px 26px; }
  .page-head .pop--book .pop__copy { font-size: 26px; margin-bottom: 12px; }
  .page-head .pop--book .pop__card > p { font-size: 15px; line-height: 1.9; }
  .pop--book .pop__by { margin-top: 20px; }
  .pop--book .depth { margin-top: 22px; }
  .pop--book .depth a { padding: 6px 14px; }
}

.depth { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 0; }
.depth a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 4px 16px;
  background: var(--bg);
  color: var(--blue);
}
.depth a:hover { background: var(--yellow); }

.buy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px) { .buy { grid-template-columns: 1fr; } }
.buy a {
  background: var(--card);
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  color: var(--blue);
}
.buy a small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-soft); }
.buy a:hover { background: var(--yellow); }

.next-book {
  background: var(--card);
  border-radius: 20px;
  padding: 20px 24px;
  margin: 48px 0 0;
  display: flex;
  gap: 24px;
  align-items: center;
  text-decoration: none;
}
.next-book .book { width: 140px; flex: none; }
.next-book .book__info, .next-book .book__num { display: none; }
.next-book .book__card { background: var(--bg); }
.next-book h3 { margin: 6px 0 4px; font-family: var(--font-display); font-size: 19px; color: var(--blue); }
.next-book p { margin: 0; }

/* 決まりごとまとめ */
.faq details { background: var(--card); border-radius: 14px; margin-bottom: 10px; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 20px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-latin); font-weight: var(--w-latin); font-size: 20px; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 16px; font-size: 15px; }

/* ---------- 受け皿（X・メルマガ・PDF） ---------- */
.follow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
@media (max-width: 860px) { .follow { grid-template-columns: 1fr; } }
.follow .card { align-items: center; background: transparent; padding: 0; }
.follow .card h3 { margin: 4px 0; font-size: 20px; }
.follow .card p { color: var(--ink); }
.follow__icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-family: var(--font-latin);
  font-weight: var(--w-latin);
  font-size: 34px;
  color: #fff;
  margin-bottom: 14px;
}
.follow__en { font-family: var(--font-latin); font-weight: var(--w-latin); font-size: 10px; letter-spacing: .14em; color: var(--blue); }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 64px 0 32px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-grid h4 { font-family: var(--font-latin); font-weight: var(--w-latin); font-size: 13px; letter-spacing: .1em; color: var(--yellow); margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer-grid li { margin-bottom: 6px; }
.footer-brand p { font-size: 13px; opacity: .85; margin: 12px 0 0; }
.footer-brand .logo__name { color: #fff; }
.disclosure {
  border-top: 1px solid rgba(255, 255, 255, .3);
  margin-top: 48px;
  padding-top: 20px;
  font-size: 12px;
  opacity: .8;
  line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
  .ticker__inner { animation: none; }
}
.section--card .book__card { background: var(--bg); }

/* 見出しが左から一文字ずつ弾んで出る */
.pop-letters .ch { display: inline-block; opacity: 0; transform: translateY(.4em) scale(.3); }
.pop-letters.is-in .ch { animation: pop-in .55s cubic-bezier(.3, 1.6, .5, 1) forwards; animation-delay: calc(var(--i) * 70ms); }
.pop-letters .word { display: inline-block; white-space: nowrap; }
@keyframes pop-in {
  0%   { opacity: 0; transform: translateY(.4em) scale(.3); }
  60%  { opacity: 1; transform: translateY(-.18em) scale(1.12); }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pop-letters .ch { opacity: 1; transform: none; }
  .pop-letters.is-in .ch { animation: none; }
}

/* ---------- 夜空のドーム（ピックアップ以降） ---------- */
.night {
  --night: #2f6fae;
  --night-cloud: #4a86c2;
  position: relative;
  margin-top: 40px;
  background-color: var(--night);
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .6) 1.2px, transparent 1.6px),
    radial-gradient(circle, rgba(244, 183, 64, .85) 1.6px, transparent 2px);
  background-size: 150px 130px, 240px 210px;
  background-position: 30px 40px, 110px 90px;
  border-top-left-radius: 50% 180px;
  border-top-right-radius: 50% 180px;
  color: #fdf8ec;
  overflow: hidden;
}
.night.section { padding: 150px 0 260px; }
.night + .night { margin-top: -180px; }
.night--end.section { padding-bottom: 96px; }
.night-head { position: relative; text-align: center; margin-bottom: 56px; }
.night-head__cloud {
  position: absolute;
  height: 54px;
  background: var(--night-cloud);
  border-radius: 40px;
  z-index: 0;
}
.night-head__cloud::before, .night-head__cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.night-head__cloud::before { width: 46%; height: 150%; left: 14%; top: -60%; }
.night-head__cloud::after { width: 32%; height: 120%; right: 16%; top: -40%; }
.night-head__cloud--a { width: 230px; left: -40px; top: 10px; }
.night-head__cloud--b { width: 200px; right: 4%; top: -30px; }
.night-head__cloud--c { width: 150px; left: 18%; bottom: 40px; }

.night-head > :not(.night-head__cloud) { position: relative; z-index: 2; }

.bubtitle {
  font-family: "Sniglet", var(--font-latin);
  font-weight: 800;
  font-size: clamp(36px, 8vw, 100px);
  line-height: 1.05;
  color: var(--yellow);
  -webkit-text-stroke: 3px #16365a;
  paint-order: stroke fill;
  margin: 0;
}
.bubsub {
  font-family: "Sniglet", var(--font-latin);
  font-weight: 800;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1;
  color: var(--yellow);
  -webkit-text-stroke: 1.5px #16365a;
  paint-order: stroke fill;
  margin: 6px 0 22px;
}
.bubtitle .ch, .bubsub .ch { transform-origin: 50% 80%; }
.bubtitle .ch:nth-child(6n+1), .bubsub .ch:nth-child(6n+1) { --r: -5deg; --y: 2px; }
.bubtitle .ch:nth-child(6n+2), .bubsub .ch:nth-child(6n+2) { --r: 3deg; --y: -3px; }
.bubtitle .ch:nth-child(6n+3), .bubsub .ch:nth-child(6n+3) { --r: -2deg; --y: 1px; }
.bubtitle .ch:nth-child(6n+4), .bubsub .ch:nth-child(6n+4) { --r: 5deg; --y: -2px; }
.bubtitle .ch:nth-child(6n+5), .bubsub .ch:nth-child(6n+5) { --r: -3deg; --y: 3px; }
.bubtitle .ch:nth-child(6n), .bubsub .ch:nth-child(6n) { --r: 2deg; --y: -1px; }
.bubtitle.is-in .ch, .bubsub.is-in .ch { animation-name: pop-in-tilt; }
@keyframes pop-in-tilt {
  0%   { opacity: 0; transform: translateY(.4em) scale(.3); }
  60%  { opacity: 1; transform: translateY(calc(var(--y) - .18em)) rotate(var(--r)) scale(1.12); }
  100% { opacity: 1; transform: translateY(var(--y)) rotate(var(--r)); }
}
.night-line1, .night-line2 { font-family: var(--font-display); font-weight: 700; color: var(--yellow); margin: 0 0 6px; }
.night-line1 { font-size: clamp(15px, 2vw, 20px); }
.night-line2 { font-size: clamp(13px, 1.6vw, 16px); line-height: 1.9; color: #fdf8ec; }
.night-line1 em, .night-line2 em {
  font-style: normal;
  font-family: "Mochiy Pop One", var(--font-display);
  font-size: 1.5em;
  color: var(--yellow);
  margin: 0 .15em;
}
.night-line2 em { font-size: 1.25em; }

.night .book__info { color: #fdf8ec; }
.night .book__k { color: var(--yellow); }
.night .book__num { color: var(--yellow); }
/* カードの枠に半分かかる番号は、地の色でふちどって読みやすく */
.night .book__num { -webkit-text-stroke: 6px var(--night); paint-order: stroke fill; }
.night .soon { background: rgba(255, 255, 255, .15); color: #fdf8ec; }
.night .view { color: var(--yellow); }
.night .view::after { color: #16365a; }
.night .follow .card h3 { color: var(--yellow); }
.night .follow .card p { color: #fdf8ec; }
.night .follow__en { color: #cfe6f6; }
@media (max-width: 760px) {
  .night { border-top-left-radius: 50% 70px; border-top-right-radius: 50% 70px; }
  .night.section { padding: 90px 0 140px; }
  .night + .night { margin-top: -70px; }
  .night--end.section { padding-bottom: 72px; }
  .night-head__cloud--c { display: none; }
  .night-line1 em, .night-line2 em { display: inline-block; }
}

/* クリーム地のドーム（青と交互に重ねる） */
.night--cream {
  --night: #fbf5e7;
  --night-cloud: #ece2ca;
  color: var(--ink);
  background-image:
    radial-gradient(circle, rgba(61, 151, 211, .35) 1.2px, transparent 1.6px),
    radial-gradient(circle, rgba(244, 183, 64, .8) 1.6px, transparent 2px);
}
.night--cream .bubtitle, .night--cream .bubsub { color: var(--blue); -webkit-text-stroke-color: #16365a; }
.night--cream .night-line1, .night--cream .night-line1 em { color: var(--blue); }
.night--cream .night-line2 { color: var(--ink); }
.night--cream .night-line2 em { color: var(--blue); border-color: var(--blue); }
.night--cream .book__info { color: var(--ink); }
.night--cream .book__k, .night--cream .book__num, .night--cream .view { color: var(--blue); }
.night--cream .soon { background: var(--bg-deep); color: var(--ink-soft); }
.night--cream .book__card { background: #ffffff; box-shadow: var(--shadow); }

/* 推薦文本文：一首の引用と区切り */
.review-tanka {
  font-family: var(--font-tanka);
  font-size: 18px;
  line-height: 1.8;
  text-align: left;
  margin: 36px 0;
  padding: 18px 12px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.review-tanka__poem { display: block; }
/* 歌集ページ冒頭の一首だけ：サイトの青のマーカー。左から右へ引く（本文中の引用には付けない） */
.review-tanka--lead .marker {
  color: inherit;
  --marker: rgba(61, 151, 211, .4);
  --marker: color-mix(in srgb, var(--blue) 40%, transparent);  /* サイトの青 */
  background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%) no-repeat 0 0 / 100% 100%;
  padding: 0 .2em;
  margin: 0 -.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: marker-draw 1s .5s cubic-bezier(.3, .6, .3, 1) both;
}
@keyframes marker-draw { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { .review-tanka--lead .marker { animation: none; } }
.review-tanka__poem + .review-tanka__poem { margin-top: .9em; }
.review-tanka cite, .review-quote cite {
  display: block;
  font-family: var(--font-body, inherit);
  font-style: normal;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 10px;
}
.review-quote {
  margin: 32px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--bg-deep);
  color: var(--ink-soft);
  font-size: 14px;
}
.review-quote p { margin: 0; }
.review-quote cite { text-align: right; }
.review rt { font-size: .5em; }
.review-break { text-align: center; letter-spacing: .5em; margin: 40px 0; color: var(--ink-soft); }
.review-by { text-align: right; font-weight: 700; margin-top: 32px; }

/* 推薦文の一番下：書いた人のプロフィール */
.writer {
  margin-top: 56px;
  padding: 24px 26px;
  background: var(--card, #fff);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.writer__k {
  display: block;
  font-family: var(--font-latin);
  font-weight: var(--w-latin);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--blue);
}
.article .writer__name { font-family: var(--font-display); font-weight: var(--w-display); font-size: 22px; margin: 4px 0 8px; }
.article .writer__bio { margin: 0; font-size: 14px; line-height: 1.9; color: var(--ink-soft); }
.article .writer__links { margin: 14px 0 0; font-size: 14px; font-weight: 700; }
@media (max-width: 520px) { .writer { padding: 20px; } }
.tanka-credit { text-align: right; font-size: 12px; color: var(--ink-soft); margin: -8px 0 32px; }

/* 本文中のリンク：青い下線。ホバーで下線が持ち上がって塗りになる */
.article p a, .pop__card p a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--blue), var(--blue));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
  padding: 0 1px 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .25s ease, color .25s ease;
}
.article p a:hover, .pop__card p a:hover, .article p a:focus-visible, .pop__card p a:focus-visible {
  background-size: 100% 100%;
  color: #fff;
}

/* 運営のプロフィール */
.profile { border-left: 4px solid var(--blue); padding: 4px 0 4px 16px; margin: 20px 0 24px; }
.article .profile__name { font-family: var(--font-display); font-weight: var(--w-display); font-size: 22px; margin: 0 0 4px; }
.article .profile__meta { margin: 0; color: var(--ink-soft); }

/* セクション下の「もっと見る」 */
.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px 14px 34px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .18);
  transition: transform .15s, box-shadow .15s;
}
.more-btn::after { content: "→"; transition: transform .2s; }
.more-btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.more-btn:hover::after { transform: translateX(4px); }

/* スマホでは横にスワイプして見る */
@media (max-width: 760px) {
  .lineup--swipe {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -24px;
    padding: 14px 24px 8px;
    scrollbar-width: none;
  }
  .lineup--swipe::-webkit-scrollbar { display: none; }
  .lineup--swipe > .book { flex: 0 0 62%; scroll-snap-align: start; }
}

/* 冊数が少ないうち（1〜3冊）は、4列のときの1冊ぶんの幅で真ん中に並べる */
.lineup--few {
  grid-template-columns: repeat(auto-fit, minmax(0, calc((100% - 84px) / 4)));
  justify-content: center;
}
@media (max-width: 960px) { .lineup--few { grid-template-columns: repeat(auto-fit, minmax(0, calc((100% - 28px) / 2))); } }
@media (max-width: 520px) { .lineup--few { grid-template-columns: repeat(auto-fit, minmax(0, calc((100% - 16px) / 2))); } }

/* 書影がない本の仮の表紙（書名と著者名を縦書きで） */
.cover-ph {
  position: relative;
  height: 86%;
  aspect-ratio: 1 / 1.45;
  max-width: 86%;
  background: var(--ph, var(--blue));
  color: #fff;
  border-radius: 2px;
  box-shadow: 0 6px 14px rgba(70, 55, 30, .18), 0 1px 2px rgba(70, 55, 30, .2);
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 6%;
  padding: 12% 8%;
  box-sizing: border-box;
  overflow: hidden;
}
.cover-ph::before {
  content: "";
  position: absolute;
  inset: 6%;
  border: 1.5px solid rgba(255, 255, 255, .55);
  pointer-events: none;
}
.cover-ph__title, .cover-ph__author {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-tanka);
  line-height: 1.1;
  max-height: 100%;
  overflow: hidden;
}
.cover-ph__title { font-size: clamp(14px, 2.2vw, 22px); font-weight: 700; letter-spacing: .12em; }
.cover-ph--long .cover-ph__title { font-size: clamp(12px, 1.6vw, 17px); letter-spacing: .04em; }
.cover-ph__author { font-size: clamp(10px, 1.2vw, 12px); letter-spacing: .1em; align-self: flex-end; opacity: .9; }

/* トップの「はじめての一冊」：1冊ずつ大きく */
.spot { max-width: 980px; margin: 0 auto 40px; text-align: left; }
.spot .pop__card { color: var(--ink); }
@media (max-width: 760px) { .spot .book { margin: 0 auto; } }
.spot .pop__copy a { color: inherit; text-decoration: none; }
.spot__tanka {
  font-family: var(--font-tanka);
  font-size: 17px;
  line-height: 1.8;
  margin: 0 0 14px;
  padding: 10px 0 10px 16px;
  border-left: 3px solid var(--yellow);
}
.spot__lead { margin: 0 0 12px; }

/* hidden 属性はどのクラスより優先して隠す */
[hidden] { display: none !important; }

/* ---------- 短歌入門：記事カード（OGP風） ---------- */
.acards__head { font-family: var(--font-display); font-weight: var(--w-display); font-size: 22px; margin: 48px 0 16px; display: flex; align-items: center; gap: 10px; }
.acards__head::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--cat); }
.acards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .acards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .acards { grid-template-columns: 1fr; } }
.acard { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.acard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.acard__thumb { aspect-ratio: 1.91 / 1; background: var(--cat); position: relative; overflow: hidden; }
.acard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acard__auto { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 20px; color: #fff; }
.acard__auto-k { font-family: var(--font-display); font-weight: var(--w-display); font-size: 11px; letter-spacing: .08em; opacity: .85; }
.acard__auto-t { font-family: var(--font-display); font-weight: var(--w-display); font-size: 22px; line-height: 1.35; margin-top: 4px; max-width: 72%; }
.acard__auto svg { position: absolute; right: 10px; top: 10px; width: 84px; height: 84px; }
.acard__body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.acard__cat { font-family: var(--font-display); font-weight: var(--w-display); font-size: 11px; color: var(--cat); }
.article .acard__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.5; }
.article .acard__sum { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.7; }

/* ---------- 記事の最後の「次に読みたい一冊」 ---------- */
.pick { display: flex; gap: 28px; align-items: center; background: var(--cream); border: 2px solid var(--ink); border-radius: 20px; padding: 24px 28px; margin: 16px 0 0; text-decoration: none; color: var(--ink); box-shadow: 6px 6px 0 var(--yellow); transition: transform .2s, box-shadow .2s; }
.pick:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--yellow); }
.pick__cover { width: 150px; flex: none; }
.pick__cover img, .pick__cover .cover-ph { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); display: flex; }
.pick__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pick__k { font-family: var(--font-display); font-weight: var(--w-display); font-size: 11px; color: var(--blue); letter-spacing: .08em; }
.pick__pop { margin: 0 !important; font-family: var(--font-display); font-weight: var(--w-display); font-size: 22px; line-height: 1.4; }
.article .pick__title { margin: 0; font-family: var(--font-display); font-size: 16px; color: var(--blue-deep); }
.pick__lead { margin: 0 !important; font-size: 14px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pick__writer { font-size: 12px; color: var(--ink-soft); }
.pick__btn { align-self: flex-start; margin-top: 6px; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; padding: 8px 18px; border-radius: 999px; }
@media (max-width: 600px) { .pick { flex-direction: column; align-items: flex-start; padding: 20px; } .pick__cover { width: 120px; } }

/* ---------- 短歌ツール ---------- */
.tcards { max-width: 960px; margin: 0 auto; }
.tcard .soon { align-self: flex-start; }
.tcard--soon { background: transparent; border: 2px dashed rgba(107, 100, 90, .3); box-shadow: none; }
.tcard--soon h3 { color: var(--ink-soft); }
.tcard--soon p { opacity: .8; }
a.tcard--soon:hover { transform: none; box-shadow: none; }

.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; max-width: 1040px; margin: 0 auto; }
@media (max-width: 820px) { .tool { grid-template-columns: 1fr; gap: 28px; } }
.tool__form { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { display: block; border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.field__k { display: block; font-family: var(--font-display); font-weight: var(--w-display); font-size: 14px; margin-bottom: 6px; padding: 0; }
.field textarea, .field input { width: 100%; font: inherit; font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--bg); border: 2px solid transparent; border-radius: 12px; padding: 10px 14px; }
.field textarea { font-family: var(--font-tanka); resize: vertical; }
.field textarea:focus, .field input:focus { outline: none; border-color: var(--blue); background: #fff; }
.field__hint { font-size: 12px; color: var(--ink-soft); margin: -12px 0 18px; line-height: 1.7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: var(--bg); cursor: pointer; transition: background .15s, color .15s; }
.chip input:checked + span { background: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--blue-deep); outline-offset: 2px; }
.tool__stage { display: flex; flex-direction: column; align-items: center; gap: 16px; position: sticky; top: 16px; }
@media (max-width: 820px) { .tool__stage { position: static; } }
.tool__canvas { width: 100%; max-width: 420px; height: auto; border-radius: 12px; box-shadow: var(--shadow-lift); background: var(--card); }
.tool__canvas--tall { max-width: 320px; }
.tool__stage .btn-row { justify-content: center; }
.tool__stage .btn:disabled { opacity: .5; cursor: wait; transform: none; }
.tool__progress { width: 100%; max-width: 320px; accent-color: var(--blue); }
.tool__status { margin: 0; font-size: 13px; color: var(--ink-soft); text-align: center; min-height: 1em; }
.tool__privacy { max-width: 1040px; margin: 40px auto 0; font-size: 13px; color: var(--ink-soft); text-align: center; }
.tool__back { text-align: center; font-size: 14px; margin: 8px 0 0; }
.tcards--top:not(.grid--2) { max-width: 520px; }
.tool__pager { align-items: center; }
.tool__page { font-size: 14px; font-weight: 700; min-width: 4.5em; text-align: center; }
.tool-about { margin-top: 64px; }
.tool-about h2:first-child { margin-top: 0; }
.tool-about ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.tool-about li { margin-bottom: .5em; }
