/* =========================================================
   書き手名鑑 — デザイントークン
   コンセプト：「知らない書き手と出会える、小さな独立系書店」
   配分の目安：紙色（クリーム・白）7〜8割／深緑・墨 1.5〜2割／錆色 5%前後。
   正式ブランドカラー決定時は、この :root の値だけを差し替える。
   文字色の組み合わせはいずれも WCAG AA（4.5:1）以上で確認済み。
   ========================================================= */
:root {
  /* 紙 */
  --paper: #f5f0e6;
  --surface: #fbf9f4;
  --surface-sunk: #ede6d8;
  /* 墨（チャコール） */
  --ink: #22262a;
  --ink-soft: #3f4448;
  --muted: #5d6166;
  /* 深い森の緑（店の書棚の色） */
  --accent: #23392e;
  --accent-strong: #182920;
  --accent-ink: #ffffff;
  --accent-soft: #e2e8e1;
  --accent-soft-ink: #23392e;
  /* 錆色（ごく一部にだけ使う） */
  --brick: #a04e2e;
  --brick-soft: #f2e2d8;
  --brick-ink: #8b3f23;
  --line: #ddd5c6;
  --line-strong: #7b766b;
  --focus: #a8620f;
  --danger: #a23b2f;
  --danger-soft: #f8e9e6;
  --hold: #4f5862;
  --hold-soft: #eceef0;
  --notice: #efe7d4;

  /* 作者ごとのアバター色（落ち着いた6色。背景×文字はコントラスト比6.3以上） */
  --tone-0-bg: #e2ece5;
  --tone-0-fg: #2c5642;
  --tone-1-bg: #e3e8f1;
  --tone-1-fg: #304c74;
  --tone-2-bg: #f2e5e0;
  --tone-2-fg: #77412f;
  --tone-3-bg: #eae5f1;
  --tone-3-fg: #54406f;
  --tone-4-bg: #f1ead8;
  --tone-4-fg: #634d17;
  --tone-5-bg: #dfecec;
  --tone-5-fg: #2a5a5e;

  /* 文字 */
  --font-sans:
    system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
  /* 明朝の候補。端末に入っている明朝を順に使い、どれもないときだけ既定の serif に任せる（Webフォントは読み込まない） */
  --font-serif:
    "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP",
    "Noto Serif CJK JP", "Source Han Serif JP", "BIZ UDPMincho", "MS PMincho",
    "IPAexMincho", "IPAMincho", serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;

  /* 形・余白 */
  /* 本や紙は角が立っているので、角丸は控えめに */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --width: 1180px;
  --narrow: 720px;
  --gutter: clamp(16px, 4vw, 32px);
  --shadow: 0 1px 1px rgb(60 45 25 / 6%), 0 3px 10px rgb(60 45 25 / 6%);
  --shadow-lift: 0 2px 3px rgb(60 45 25 / 8%), 0 12px 24px rgb(60 45 25 / 10%);
  --tap: 44px;

  /* 動き（気づくか気づかないか程度） */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 0.18s;
  --dur: 0.5s;
}
.tone-0 {
  --tone-bg: var(--tone-0-bg);
  --tone-fg: var(--tone-0-fg);
}
.tone-1 {
  --tone-bg: var(--tone-1-bg);
  --tone-fg: var(--tone-1-fg);
}
.tone-2 {
  --tone-bg: var(--tone-2-bg);
  --tone-fg: var(--tone-2-fg);
}
.tone-3 {
  --tone-bg: var(--tone-3-bg);
  --tone-fg: var(--tone-3-fg);
}
.tone-4 {
  --tone-bg: var(--tone-4-bg);
  --tone-fg: var(--tone-4-fg);
}
.tone-5 {
  --tone-bg: var(--tone-5-bg);
  --tone-fg: var(--tone-5-fg);
}

/* ---------- 基本 ---------- */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.22s;
  animation-timing-function: var(--ease);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.85;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
h1,
h2,
h3 {
  line-height: 1.45;
  letter-spacing: 0.03em;
  font-weight: 700;
}
h1 {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  margin: 0 0 0.6em;
}
h2 {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  margin: 2.4em 0 0.8em;
}
h3 {
  font-size: var(--text-lg);
  margin: 0.8em 0 0.4em;
}
p {
  margin: 0 0 1em;
}
img {
  max-width: 100%;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: var(--text-sm);
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.ext {
  display: inline-block;
  margin-left: 0.2em;
  font-size: 0.85em;
}
.eyebrow {
  color: var(--accent);
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  margin: 0 0 0.5em;
}

/* TOP：1枚の近況メモ。本文の長さによって後続セクションを動かさない。 */
.page-home .now-writing { min-width: 0; }
/* 背景は外側だけに描き、寸法・カルーセルには影響させない。 */
.page-home .now-writing { position: relative; isolation: isolate; }
.page-home .now-writing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--paper);
}
.now-writing-head { margin-bottom: 20px; }
.now-writing-head h2,
.now-writing-slide h3 { font-family: var(--font-serif); }
.now-writing-head h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.5; margin: 8px 0; }
.now-writing-head .small { margin: 0; }
.now-writing-window { display: grid; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.now-writing-slide { grid-area: 1 / 1; min-width: 0; padding: 20px 24px; }
.now-writing-slide[hidden] { display: none; }
.now-writing-slide h3 { font-size: 1.1rem; line-height: 1.5; height: 3em; margin: 0 0 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.now-writing-text { font-size: 1rem; line-height: 1.9; height: 9.5em; margin: 0 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; }
.now-writing-slide > a { display: inline-flex; align-items: center; min-height: 44px; }
.now-writing-controls { display: flex; flex-wrap: wrap; gap: 0; justify-content: center; align-items: center; margin-top: 8px; }
.now-writing-controls[hidden] { display: none; }
.now-writing-controls button { min-height: 44px; min-width: 44px; padding: 4px; color: var(--accent); background: transparent; border: 1px solid transparent; box-shadow: none; }
.now-writing-controls button:hover { background: var(--accent-soft); }
.now-writing-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.now-writing-arrow { font-size: 1.6rem; line-height: 1; }
.now-writing-dots { display: flex; }
.now-writing-dots button { display: inline-flex; align-items: center; justify-content: center; }
.now-writing-dots span { display: block; width: 7px; height: 7px; border: 1px solid var(--accent); border-radius: 50%; }
.now-writing-dots [aria-current="true"] span { background: var(--accent); outline: 2px solid var(--mustard); outline-offset: 2px; }
.now-writing-pause { font-size: .8rem; }
@keyframes now-writing-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes now-writing-out { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: no-preference) {
  .now-writing-slide[data-motion="in"] { animation: now-writing-in .6s ease both; }
  .now-writing-slide[data-motion="out"] { animation: now-writing-out .6s ease both; }
}
@media (max-width: 600px) {
  .now-writing-slide { padding: 16px; }
  .now-writing-pause { flex-basis: 100%; }
}
/* ---------- 枠 ---------- */
.site-header,
main,
.site-footer {
  max-width: var(--width);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left))
    max(var(--gutter), env(safe-area-inset-right));
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-block: 18px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--tap);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
}
.brand small {
  font: 500 0.66rem/1.4 var(--font-sans);
  letter-spacing: 0.2em;
  color: var(--muted);
}
.site-nav {
  display: flex;
  gap: 4px;
  font-size: var(--text-sm);
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease);
}
.site-nav a:hover {
  background: var(--surface-sunk);
}
.site-nav a[href="/apply"] {
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
main {
  min-height: 65vh;
  padding-block: 8px 24px;
}
section {
  margin: 56px 0;
}
.site-footer {
  margin-top: 72px;
  padding-block: 32px max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--mustard);
  font-size: var(--text-sm);
  background: var(--accent);
  color: var(--paper);
  box-shadow: 0 0 0 100vmax var(--accent);
  clip-path: inset(0 -100vmax -100vmax);
}
.footer-copy {
  font-family: var(--font-serif);
  color: var(--paper);
  font-size: 1.2rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--paper);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--mustard);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-footer nav a:focus-visible {
  outline: 2px solid var(--mustard);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
  background: var(--surface);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- ボタン ---------- */
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  min-height: var(--tap);
  padding: 10px 24px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}
.button:hover,
button:hover {
  background: var(--accent-strong);
  text-decoration: none;
}
.button:active,
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.button--ghost {
  background: transparent;
  color: var(--accent);
}
.button--ghost:hover {
  background: var(--accent-soft);
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 600;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 28px;
}

/* ---------- TOP ---------- */
.hero {
  margin: 0;
  padding: clamp(32px, 8vw, 88px) 0 clamp(24px, 5vw, 48px);
  max-width: 760px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  line-height: 1.45;
  letter-spacing: 0.06em;
  margin: 0.2em 0 0.6em;
}
.hero-lead {
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  line-height: 2.05;
}
.genre-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.genre-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}
.genre-links a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.invite {
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
  text-align: center;
}
.invite h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  margin-top: 0;
}
.invite p {
  max-width: 34em;
  margin-inline: auto;
}

/* ---------- 作者カード ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-wrap: anywhere;
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
  animation: rise var(--dur) var(--ease) both;
}
.grid > .card:nth-child(2) {
  animation-delay: 50ms;
}
.grid > .card:nth-child(3) {
  animation-delay: 100ms;
}
.grid > .card:nth-child(4) {
  animation-delay: 150ms;
}
.grid > .card:nth-child(n + 5) {
  animation-delay: 200ms;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
/* カード全体を押せるようにする（リンクは名前の1つだけ。入れ子にしない） */
.card-link {
  color: var(--ink);
  text-decoration: none;
}
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
/* :has() 対応ブラウザだけ、フォーカス枠を名前からカード全体へ移す（非対応では名前に枠が出る） */
@supports selector(:has(*)) {
  .card-link:focus-visible {
    outline: none;
  }
  .card:has(.card-link:focus-visible) {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
  }
}
.card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tone-fg) 35%, var(--line));
  box-shadow: var(--shadow-lift);
}
.card:hover .card-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.card-id {
  min-width: 0;
}
.card-name {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}
.genres {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.78rem;
}
.genres li {
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--tone-bg, var(--accent-soft));
  color: var(--tone-fg, var(--accent-soft-ink));
  font-weight: 600;
  line-height: 1.7;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.card-tags span::before {
  content: "# ";
  opacity: 0.6;
}
.card-bio {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.card-now {
  margin: 14px 0 0;
  padding: 8px 12px;
  border-left: 2px solid var(--tone-fg, var(--accent));
  background: var(--paper);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.card-now-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.card-more {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  transition: transform var(--dur-fast) var(--ease);
}
.card:hover .card-more {
  transform: translateX(3px);
}
.badge-adult {
  display: inline-block;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--ink-soft);
  line-height: 1.8;
  white-space: nowrap;
}
/* 今日の一人 */
.card--feature {
  padding: clamp(22px, 3vw, 32px);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--tone-bg) 55%, var(--surface)) 0,
    var(--surface) 140px
  );
  border-color: color-mix(in srgb, var(--tone-fg) 22%, var(--line));
  box-shadow: var(--shadow);
}
.card--feature .card-name {
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
}
.card--feature .card-bio {
  font-size: 0.98rem;
  -webkit-line-clamp: 5;
  line-clamp: 5;
}
/* 最近加わった */
.card-genre {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- アバター ---------- */
.avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--tone-bg, var(--accent-soft));
  color: var(--tone-fg, var(--accent-soft-ink));
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgb(31 42 38 / 6%);
}
.avatar--sm {
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
}
.avatar--lg {
  width: 84px;
  height: 84px;
  font-size: 2.2rem;
}
.avatar--xl {
  width: clamp(88px, 18vw, 120px);
  height: clamp(88px, 18vw, 120px);
  font-size: clamp(2.3rem, 5vw, 3rem);
}

/* ---------- プロフィール（名刺＋小さな展示室） ---------- */
.profile {
  max-width: var(--narrow);
  margin-inline: auto;
}
.namecard {
  display: flex;
  gap: clamp(18px, 4vw, 32px);
  align-items: flex-start;
  margin-top: 16px;
  padding: clamp(22px, 5vw, 40px);
  border: 1px solid color-mix(in srgb, var(--tone-fg) 20%, var(--line));
  border-radius: var(--radius-lg);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--tone-bg) 70%, var(--surface)),
    var(--surface) 70%
  );
  box-shadow: var(--shadow);
  animation: rise var(--dur) var(--ease) both;
}
.namecard-body {
  min-width: 0;
}
.namecard .eyebrow {
  color: var(--tone-fg);
}
.namecard-name {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  letter-spacing: 0.06em;
  line-height: 1.35;
}
.namecard .genres {
  font-size: 0.85rem;
}
.namecard-adult {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  margin: 14px 0 0;
  font-size: var(--text-sm);
}
/* 固定表示の基準がずれないよう、アニメーションする名刺の外に置く */
.jump {
  margin: 20px 0 0;
}
.jump-works {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  min-height: var(--tap);
  padding: 8px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.jump-works:hover {
  background: var(--accent-strong);
}
.profile-section {
  margin: 44px 0;
  scroll-margin-top: 24px;
}
.profile-section h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 1.15rem;
}
.h-sub {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.profile-bio {
  font-size: 1.02rem;
  line-height: 2.05;
}
.sub-title {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 20px 0 8px;
}
.style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
}
.style-tags li {
  padding: 2px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--text-sm);
}
.now-box {
  margin: 0;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.works {
  display: grid;
  gap: 16px;
}
.work {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.work-platform {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.work-title {
  margin: 4px 0 8px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
}
.work-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.button--work {
  margin-top: 4px;
  max-width: 100%;
}
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.link-pill {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.link-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.report-link {
  max-width: var(--narrow);
  margin: 40px auto 0;
  font-size: var(--text-sm);
}
.report-link a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--muted);
}

/* ---------- 探す ---------- */
.page-head {
  max-width: var(--narrow);
  margin: 24px 0 28px;
}
.page-head p {
  color: var(--ink-soft);
}
.finder {
  padding: clamp(18px, 4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.finder-q {
  margin-top: 0;
}
.finder-q input {
  font-size: var(--text-lg);
}
.genre-pick {
  margin: 20px 0 8px;
  padding: 0;
  border: 0;
}
.genre-pick legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}
.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.chip > span {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  min-height: var(--tap);
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--text-sm);
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}
.chip:hover > span {
  border-color: var(--accent);
}
/* 選択中は色だけでなく ✓ 記号と太字でも示す */
.chip input:checked + span {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-soft-ink);
  font-weight: 700;
}
.chip input:checked + span::before {
  content: "✓";
}
.chip input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
details.more,
details.add-more {
  margin: 16px 0;
  border-top: 1px solid var(--line);
}
details > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  padding-top: 8px;
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}
details > summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 400;
  line-height: 1;
}
details[open] > summary::before {
  content: "−";
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 16px;
}
.result-note {
  margin: 28px 0 16px;
  font-size: var(--text-sm);
  color: var(--muted);
}
.empty {
  padding: 28px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- フォーム ---------- */
.field {
  display: block;
  margin: 18px 0;
}
.field-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
}
.req,
.opt {
  display: inline-block;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.04em;
}
.req {
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
}
.opt {
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 400;
}
legend .req,
legend .opt {
  margin-left: 8px;
}
.hint {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  min-height: var(--tap);
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: max(16px, 1rem); /* iOSでの拡大を防ぐ */
  transition: border-color var(--dur-fast) var(--ease);
}
input:hover,
textarea:hover,
select:hover {
  border-color: var(--ink-soft);
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-offset: 1px;
  border-color: var(--focus);
}
input::placeholder,
textarea::placeholder {
  color: #69726c;
}
textarea {
  resize: vertical;
  line-height: 1.8;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: var(--tap);
  margin: 10px 0;
  padding-top: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 3px 0 0;
  accent-color: var(--accent);
}
.work-access-confirm {
  min-width: 0;
  margin: 8px 0 16px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: var(--paper-soft, #f7f3ea);
  border-radius: 0 8px 8px 0;
  overflow-wrap: anywhere;
}
.work-access-confirm .hint,
.work-access-confirm .small {
  margin: 0 0 6px;
}
.work-access-confirm .check {
  min-width: 0;
  margin: 4px 0;
  padding-top: 2px;
}
@media (max-width: 600px) {
  .work-access-confirm { padding: 10px; }
  .work-access-confirm .check { gap: 10px; font-size: .92rem; }
}
fieldset {
  min-width: 0;
  margin: 20px 0;
  padding: 18px 20px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
legend {
  padding: 0 6px;
  font-weight: 600;
}
.long-form {
  max-width: var(--narrow);
}
.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: var(--narrow);
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}
.flow li {
  counter-increment: flow;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}
.flow strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
}
.flow strong::before {
  content: counter(flow) ". ";
  color: var(--accent);
}
.steps-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  max-width: var(--narrow);
  margin: 0 0 8px;
  padding: 8px 0;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
}
.steps-nav ol {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  counter-reset: s;
  scrollbar-width: none;
}
.steps-nav li {
  counter-increment: s;
  flex: none;
}
.steps-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}
.steps-nav a::before {
  content: counter(s);
  margin-right: 6px;
  color: var(--accent);
  font-weight: 700;
}
.steps-nav a:hover {
  border-color: var(--accent);
}
.step-state {
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.6;
}
.steps-nav a.is-done {
  border-color: var(--accent);
}
.steps-nav a.is-done .step-state {
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
}
.steps-nav a.is-next {
  border-color: var(--mustard-deep);
  box-shadow: inset 0 0 0 1px var(--mustard-deep);
}
.steps-nav a.is-next .step-state {
  background: var(--mustard-soft);
  color: var(--ink);
}
.form-errors {
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid var(--brick);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  scroll-margin-top: 72px;
}
.form-errors[hidden] {
  display: none;
}
.is-confirming .form-preview-hint {
  display: none;
}
.form-errors-title {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--brick-ink);
}
.form-errors .small {
  margin: 0 0 8px;
}
.form-errors ul {
  margin: 0;
  padding-left: 1.2em;
}
.form-error-link {
  min-height: var(--tap);
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.form-error-link:hover {
  text-decoration-thickness: 2px;
}
.step {
  margin: 0 0 20px;
  padding: clamp(20px, 4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  scroll-margin-top: 64px;
}
.step:target {
  border-color: var(--accent);
}
.step h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 4px;
  font-size: 1.2rem;
}
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.95rem;
}
.step-lead {
  margin: 0 0 4px;
  font-size: var(--text-sm);
  color: var(--muted);
}
.step--plain {
  padding-block: 4px;
}
.step fieldset.group {
  background: var(--paper);
  border-color: transparent;
}
.step .add-more fieldset.group {
  margin-top: 8px;
}
.consent {
  background: var(--notice) !important;
}
.submit-area {
  margin: 28px 0;
}
.submit-area button {
  width: 100%;
  max-width: 420px;
  min-height: 54px;
  font-size: 1.05rem;
}
.notice {
  padding: 16px 20px;
  background: var(--notice);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}
.done {
  max-width: var(--narrow);
  margin: 56px auto;
  text-align: center;
}
.done .actions {
  justify-content: center;
}
.prose {
  max-width: var(--narrow);
  margin-top: 24px;
}
.prose p {
  line-height: 2;
}

/* ---------- 管理画面（間違えにくさ優先） ---------- */
.page-admin main {
  max-width: 960px;
}
.page-admin h2 {
  margin-top: 1.8em;
}
.count {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}
.table-wrap {
  /* 表の中の読み上げ用の見出し（.vh は position: absolute）が、横スクロールの枠の外へ出てページ全体を広げないように */
  position: relative;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
th,
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
th {
  color: var(--muted);
  font-weight: 600;
}
td a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-weight: 600;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.8;
  white-space: nowrap;
}
.badge--pending {
  color: #6b4a0e;
  background: #fbf3df;
}
.badge--held {
  color: var(--hold);
  background: var(--hold-soft);
  border-style: dashed;
}
.badge--approved,
.badge--published,
.badge--resolved {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}
.badge--rejected {
  color: var(--danger);
  background: var(--danger-soft);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.badge--hidden {
  color: var(--hold);
  background: transparent;
  border-style: dotted;
}
.admin-card {
  margin: 12px 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.admin-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-card-head h3 {
  margin: 0;
}
.admin-writers {
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.admin-writers li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 16px;
  border-bottom: 1px solid var(--line);
}
.admin-writers li:last-child {
  border-bottom: 0;
}
.admin-writers a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}
.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.meta dt {
  font-size: 0.78rem;
  color: var(--muted);
}
.meta dd {
  margin: 0;
  font-weight: 600;
}
.url-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.url-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.url-label {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--muted);
}
.url {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
}
.url strong {
  color: var(--ink);
  background: #fbf3df;
  padding: 0 2px;
}
.preview {
  margin-top: 10px;
  padding: clamp(12px, 2vw, 22px) clamp(12px, 2.6vw, 28px) clamp(20px, 3vw, 32px);
  background: var(--paper);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
/* 管理画面の「公開時の見た目」も公開プロフィールと同じ誌面をそのまま読む。
   外側でカード化せず、全作品は縦に見せて審査時の見落としを防ぐ。 */
.preview .profile.pf {
  max-width: none;
  margin: 0;
  padding-top: clamp(18px, 2.5vw, 32px);
}
.preview .pf-work + .pf-work {
  border-top-color: var(--line-strong);
}
.decision-form {
  margin-top: 32px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.decision-form h2 {
  margin-top: 0;
}
/* 通常の承認は大きく1つ（メモなし）。保留・却下は畳んだ中で、管理メモと一緒に */
.decision-approve .btn-approve {
  width: 100%;
  max-width: 420px;
  min-height: 56px;
  font-size: 1.1rem;
}
.decision-more {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.decision-more > summary {
  min-height: var(--tap);
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}
.decision {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
}
/* 承認・保留・却下は、文言＋記号＋形（塗り／破線／赤枠）で区別する */
.btn-approve {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: var(--accent-ink);
}
.btn-hold {
  background: var(--hold-soft);
  border: 2px dashed var(--hold);
  color: var(--hold);
}
.btn-hold:hover {
  background: #dfe2e5;
}
.btn-reject {
  margin-left: auto;
  background: var(--surface);
  border: 2px solid var(--danger);
  color: var(--danger);
}
.btn-reject:hover {
  background: var(--danger-soft);
}
.btn-neutral {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-neutral:hover {
  background: var(--surface-sunk);
}
.danger-zone {
  margin-top: 48px;
  padding: 20px;
  border: 2px solid var(--danger);
  border-radius: var(--radius);
  background: var(--danger-soft);
}
.danger-zone h2 {
  margin-top: 0;
  color: var(--danger);
}
.danger-zone .btn-reject {
  margin-left: 0;
}

/* ---------- タブレット ---------- */
@media (max-width: 860px) {
  .site-header {
    flex-wrap: wrap;
  }
}

/* ---------- スマートフォン（縮小版ではなく、片手で読む前提の並び） ---------- */
@media (max-width: 600px) {
  body {
    line-height: 1.8;
  }
  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-block: 12px 4px;
  }
  /* 狭い画面では横スクロールに隠さず折り返し、3項目すべてを見せる */
  .site-nav {
    flex-wrap: wrap;
    margin-inline: -8px;
  }
  .site-nav a {
    flex: none;
    padding: 0 12px;
  }
  section {
    margin: 44px 0;
  }
  /* スマホでは最初の画面で「今日の出会い」の入口が見えるよう、ヒーローを詰める */
  .hero {
    padding: 12px 0 0;
  }
  .hero h1 {
    margin-bottom: 0.4em;
  }
  .hero-lead {
    line-height: 1.95;
    margin-bottom: 0;
  }
  .hero-lead br {
    display: none;
  }
  .hero .actions {
    margin-top: 20px;
    gap: 4px 20px;
  }
  .hero + section {
    margin-top: 32px;
  }
  .card {
    padding: 18px;
  }
  /* スマホでは横に送って眺める棚にする */
  .namecard {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-inline: calc(var(--gutter) * -0.5);
  }
  .namecard .genres,
  .namecard-adult {
    justify-content: center;
  }
  /* 作品がある作者だけ表示される「代表作を見る」を、画面下に固定する */
  .jump-works {
    position: fixed;
    z-index: 5;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    margin: 0;
    padding-inline: 26px;
    box-shadow: 0 6px 20px rgb(31 42 38 / 22%);
    white-space: nowrap;
  }
  /* 固定ボタンが本文・フッターの最後の操作を隠さないよう、下に余白を確保 */
  .page-profile .site-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  .button--work {
    width: 100%;
  }
  .work {
    padding: 20px 18px;
  }
  .more-grid,
  .flow {
    grid-template-columns: 1fr;
  }
  .flow {
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .flow li {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }
  .flow li:last-child {
    border-bottom: 0;
  }
  .step {
    margin-inline: calc(var(--gutter) * -0.5);
    padding: 20px 16px;
    border-radius: var(--radius);
  }
  .step fieldset.group {
    padding: 14px 14px 4px;
  }
  .submit-area button,
  .form-actions button {
    width: 100%;
    max-width: none;
  }
  .btn-reject {
    margin-left: 0;
  }
  .decision {
    flex-direction: column;
  }
  .decision .btn-reject {
    margin-top: 12px;
  }
  .url-list li {
    grid-template-columns: 1fr;
  }
}

/* キーボード移動で、固定ボタンの裏にフォーカスが隠れないようにする */
@media (max-width: 600px) {
  html:has(.page-profile) {
    scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .card:hover {
    transform: none;
  }
}

/* ---------- 自動事前チェック（管理者向けの確認支援。点数は出さない） ---------- */
.precheck {
  margin: 24px 0;
  padding: 20px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
}
.precheck h2 {
  margin: 0 0 12px;
}
.precheck-card--ok {
  border-color: var(--accent);
}
.precheck-card--warn {
  border-color: #b7791f;
  border-style: dashed;
}
.precheck-card--error {
  border-color: var(--danger);
  border-width: 3px;
}
.pc-list {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.pc-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  overflow-wrap: anywhere;
}
.pc-warn {
  background: #fbf3df;
  color: #5c3f08;
  font-weight: 600;
}
.pc-error {
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 700;
}
.pc-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0 0 12px;
}
.pc-summary dt {
  font-size: 0.78rem;
  color: var(--muted);
}
.pc-summary dd {
  margin: 0;
  font-weight: 700;
}
.pc-quick {
  margin: 16px 0 0;
}
.btn-quick {
  width: 100%;
  max-width: 420px;
  min-height: 56px;
  font-size: 1.1rem;
}
.precheck--ok {
  color: var(--accent-soft-ink);
  background: var(--accent-soft);
}
.precheck--warn {
  color: #5c3f08;
  background: #fbf3df;
  border-style: dashed;
}
.precheck--error {
  color: var(--danger);
  background: var(--danger-soft);
  border-width: 2px;
}
.pc-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
}

/* =========================================================
   エディトリアル・レイヤー
   「本屋風のWebサイト」ではなく「センスのいい独立系書店が運営するサイト」へ。
   本屋らしさは装飾ではなく、写真・余白・文字の強弱・非対称の組版で出す。
   カードの箱（枠・影・角丸）はやめ、罫線と余白で区切る。
   ========================================================= */

/* ---------- 基本の組版 ---------- */
.wrap {
  width: 100%;
  max-width: var(--width);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left))
    max(var(--gutter), env(safe-area-inset-right));
}
.page-home main {
  max-width: none;
  padding: 0;
}
.page-home main > section {
  margin-block: 0;
}
.site-header {
  border-bottom: 1px solid var(--line);
}
.brand small {
  letter-spacing: 0.14em;
}
.button,
button {
  border-radius: 2px;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.site-nav a {
  border-radius: 2px;
}
/* 小さな見出し札（キャプション） */
.section-no,
.eyebrow,
.card-genre,
.feature-side dt,
.card-now-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.section-no,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--brick-ink);
}
.section-no::before,
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
/* 大きな見出し */
.page-head h1,
.invite h2,
.about-lead {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: 0.02em;
}

/* ---------- HERO：写真を空間として使う ---------- */
.hero {
  display: grid;
  max-width: none;
  margin: 0;
  padding: 0;
}
.hero-photo,
.hero-title {
  grid-area: 1 / 1;
}
.hero-photo {
  position: relative;
  margin: 0;
  height: clamp(520px, 78vh, 880px);
  overflow: hidden;
  background: var(--accent);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 中央の窓と、左右の書棚をできるだけ残す */
  object-position: 50% 42%;
}
/* 文字を置く下側だけ、ごく軽く暗くする */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(16 22 18 / 70%) 0%,
    rgb(16 22 18 / 30%) 32%,
    rgb(16 22 18 / 0%) 60%
  );
  pointer-events: none;
}
.hero-title {
  z-index: 1;
  align-self: end;
  /* 窓を隠さないよう、文字は写真下端の暗い平台の上に置く */
  padding-bottom: clamp(28px, 4.5vh, 52px);
}
.hero-title h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 7vw, 6.25rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 28px rgb(0 0 0 / 28%);
}
.hero-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  padding-top: clamp(28px, 4vw, 48px);
}
.hero-lead {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.hero-body .actions {
  margin: 0;
}

/* ---------- TOPヒーロー：本屋の写真に、栞を挟んだ生成りの紙面を重ねる ---------- */
/* ヒーロー内だけに限定する。新着・お知らせ・人物紹介の構造と動きには触れない。 */
.page-home .hero {
  padding-bottom: 0;
}
.page-home .hero .hero-photo {
  height: clamp(420px, 46vw, 620px);
}
.page-home .hero .hero-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}
.page-home .hero .hero-photo::after {
  background: none;
}
.page-home .hero .hero-title {
  position: relative;
  isolation: isolate;
  justify-self: start;
  align-self: end;
  width: min(620px, calc(100% - var(--gutter) * 2));
  margin: 0 0 55px max(var(--gutter), calc((100% - 1120px) / 2));
  padding: clamp(28px, 2.6vw, 36px);
  background: none;
  border: 1px solid transparent;
  box-shadow: none;
}
/* 紙の素材・透け感・影は文字と分離した背景層だけに適用する。 */
.page-home .hero .hero-title::after {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  background: url("/images/hero-paper-material-v1.webp") center / 100% 100% no-repeat, url("/images/hero-paper-material-v1.webp") center / 100% 100% no-repeat;
  opacity: 0.95;
  filter: drop-shadow(0 2px 5px rgb(16 22 18 / 10%));
  pointer-events: none;
}
.page-home .hero .hero-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(28px, 2.6vw, 36px);
  width: 12px;
  height: 26px;
  background: var(--mustard);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}
.page-home .hero .hero-title h1 {
  color: var(--accent);
  font-size: clamp(1.65rem, 2.8vw, 2.375rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-shadow: none;
}
.page-home .hero .hero-lead {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  text-shadow: none;
  text-wrap: pretty;
}
@media (max-width: 600px) {
  .page-home .hero {
    display: grid;
    padding-bottom: 0;
  }
  .page-home .hero .hero-photo {
    height: clamp(400px, 108vw, 460px);
  }
  .page-home .hero .hero-photo::after {
    background: linear-gradient(to top, rgb(16 22 18 / 64%) 0%, rgb(16 22 18 / 22%) 42%, transparent 76%);
  }
  .page-home .hero .hero-title {
    width: 100%;
    margin: 0;
    padding: 16px var(--gutter) 28px;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .page-home .hero .hero-title::before,
  .page-home .hero .hero-title::after {
    display: none;
  }
  .page-home .hero .hero-title h1 {
    color: #f6f0e2;
    font-size: clamp(1.65rem, 7.5vw, 2rem);
    line-height: 1.45;
    text-shadow: 0 1px 8px rgb(16 22 18 / 30%);
  }
  .page-home .hero .hero-lead {
    margin-top: 12px;
    color: #f6f0e2;
    font-size: 0.9rem;
    line-height: 1.8;
    text-shadow: 0 1px 8px rgb(16 22 18 / 30%);
  }
}
/* 初回の控えめな演出だけ。通常の静止状態でも全文が見え、繰り返し動かさない。 */
@media (prefers-reduced-motion: no-preference) {
  .page-home .hero .hero-title {
    animation: home-paper-arrive 520ms ease-out both;
  }
  .page-home .hero .hero-photo picture {
    animation: home-photo-settle 1600ms ease-out both;
  }
}
@keyframes home-paper-arrive {
  from { opacity: 0.96; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes home-photo-settle {
  from { transform: scale(1.015); }
  to { transform: scale(1); }
}

/* カードの箱をやめる */
.card,
.card:hover {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  padding: 0;
}
.card:hover .card-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.card-name {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.card--feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(32px, 6vw, 112px);
  align-items: start;
}
.card--feature .card-name {
  margin: 10px 0 24px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.15;
}
.card--feature .card-bio {
  margin: 0;
  max-width: 32em;
  font-size: 1.05rem;
  line-height: 2.05;
  color: var(--ink-soft);
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
}
.feature-side {
  margin: 8px 0 0;
  border-top: 2px solid var(--ink);
}
.feature-side div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.feature-side dd {
  margin: 4px 0 0;
  line-height: 1.8;
}
.feature-work {
  font-family: var(--font-serif);
  font-size: 1.1rem;
}
.feature-meta {
  margin-left: 0.6em;
  font-size: var(--text-sm);
  color: var(--muted);
}
.card--feature .card-more {
  grid-column: 1;
  margin: 28px 0 0;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- 棚の案内：目次のように大きな言葉で ---------- */
.genres-index {
  padding-top: clamp(96px, 12vw, 176px);
}
.genre-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(20px, 3vw, 44px);
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}
.genre-links a,
.genre-links a:hover {
  display: inline-flex;
  align-items: baseline;
  min-height: var(--tap);
  padding: 4px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.genre-links a:hover {
  border-bottom-color: var(--ink);
}
.shelf-no {
  margin-right: 0.5em;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brick-ink);
}

/* ---------- 掲載の案内：深緑の帯 ---------- */
.invite {
  display: block;
  margin: clamp(96px, 12vw, 176px) 0 0;
  padding: clamp(72px, 10vw, 140px) 0;
  background: var(--accent);
  color: var(--paper);
  border-radius: 0;
  text-align: left;
}
.page-home main > .invite {
  margin-top: clamp(96px, 12vw, 176px);
}
.invite h2 {
  color: var(--paper);
}
.invite p {
  max-width: 30em;
  margin: 28px 0 32px;
  color: #c9cfc4;
}
.invite .section-no {
  color: #c9cfc4;
}
.invite .button--ghost {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}
.invite .button--ghost:hover {
  background: var(--paper);
  color: var(--accent);
}
.page-home .site-footer {
  margin-top: 0;
}

/* ---------- 書き手一覧：検索結果カードではなく、名前を読む一覧 ---------- */
.page-head {
  max-width: none;
  margin: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 72px);
}
.page-head p:not(.eyebrow) {
  max-width: 34em;
  margin-top: 20px;
}
.grid {
  display: block;
  border-top: 2px solid var(--ink);
}
.card--default {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(24px, 4vw, 64px);
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
}
.card--default .card-name {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.25;
}
.card--default .card-bio {
  margin: 4px 0 0;
}
.card-now {
  margin-top: 14px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.empty {
  text-align: left;
  border: 0;
  border-top: 2px solid var(--ink);
  border-radius: 0;
  background: none;
  padding: 28px 0;
}
.finder {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.chip--shelf > span,
.chip > span {
  border-radius: 2px;
  background: transparent;
  border: 1px solid var(--line-strong);
  font-family: var(--font-sans);
}
.chip--shelf input:checked + span,
.chip input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.chip--shelf input:checked + span .shelf-no {
  color: inherit;
}

/* ---------- 作家紹介ページ ---------- */
.profile {
  max-width: 1000px;
}
.namecard {
  display: block;
  margin: 0;
  padding: clamp(40px, 7vw, 96px) 0 clamp(28px, 4vw, 48px);
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
  text-align: left;
  animation: none;
}
.namecard-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.04em;
}
.namecard-genres {
  margin: 18px 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.namecard .avatar {
  margin-top: 20px;
}
.namecard-adult {
  justify-content: flex-start;
}
.profile-intro {
  margin: 0;
  padding-top: 32px;
  border-top: 2px solid var(--ink);
}
.profile-bio {
  max-width: 34em;
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 2.1;
}
/* 01〜：見出しを左、内容を右に置く誌面の組み */
.profile-section {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: clamp(24px, 4vw, 64px);
  margin: clamp(56px, 7vw, 96px) 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}
.profile-section > :not(h2):not(.ps-head) {
  grid-column: 2;
}
.profile-section h2,
.ps-head {
  grid-column: 1;
  grid-row: 1 / span 4;
  align-self: start;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 500;
}
.profile-section h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.ps-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.ps-head .sub-title {
  margin: 0;
  font-size: inherit;
  font-weight: 500;
  color: var(--ink);
}
.h-sub {
  display: block;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}
.style-tags {
  gap: 4px 0;
}
.style-tags li {
  padding: 0;
  border: 0;
  background: none;
  font-size: 1rem;
}
.style-tags li + li::before {
  content: "／";
  margin: 0 0.6em;
  color: var(--muted);
}
.now-box {
  margin: 0;
  padding: 0 0 0 18px;
  background: none;
  border-left: 2px solid var(--brick);
  border-radius: 0;
  box-shadow: none;
  font-size: 1.05rem;
}
/* 代表作：ECの商品カードではなく、小さな書評欄 */
.works {
  display: block;
  padding: 0;
  border: 0;
}
.work,
.work:hover {
  display: block;
  margin: 0 0 32px;
  padding: 0 0 32px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.work:last-child {
  margin-bottom: 0;
}
.work-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 500;
}
.work-platform {
  margin: 6px 0 12px;
  padding: 0;
  background: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.work-desc {
  margin: 0 0 12px;
  font-size: 1rem;
}
/* 代表作カードの出口「この作品を読む」：生成りの地に深緑の細い枠（塗りつぶしのボタンにはしない） */
.work-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.15em;
  max-width: 100%;
  min-height: var(--tap);
  padding: 6px 16px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.work-link:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.link-list {
  gap: 0 28px;
}
.link-pill,
.link-pill:hover {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.jump-works {
  border-radius: 2px;
}
.report-link {
  max-width: 1000px;
}

/* ---------- 掲載申請：名刺を一枚 ---------- */
.page-head--apply {
  padding: 0;
  border: 0;
}
.page-head--apply h1 {
  font-size: clamp(2.4rem, 6.5vw, 5.4rem);
  line-height: 1.2;
}
.flow {
  max-width: none;
  gap: 0 clamp(20px, 3vw, 40px);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.flow li {
  padding: 14px 0 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
}
.step {
  padding: clamp(28px, 4vw, 40px) 0;
  background: none;
  border: 0;
  border-top: 2px solid var(--ink);
  border-radius: 0;
}
.step:target {
  border-top-color: var(--brick);
}
.step h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}
.step-no {
  width: auto;
  height: auto;
  background: none;
  color: var(--brick-ink);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  border-radius: 0;
}
.step fieldset.group {
  background: var(--surface);
}
.steps-nav a {
  border-radius: 2px;
}

/* ---------- この名鑑について ---------- */
.prose:has(.about-lead) {
  max-width: 1000px;
}
.prose:has(.about-lead) > h1 {
  margin: clamp(40px, 7vw, 96px) 0 20px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--brick-ink);
}
.about-lead {
  margin: 0 0 clamp(32px, 5vw, 56px);
}
.about-intro {
  max-width: 34em;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 2.1;
}
.about-h {
  margin: clamp(64px, 9vw, 120px) 0 0;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 500;
}
.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: p;
}
.principles li {
  counter-increment: p;
  padding: 28px 0 8px;
  border-bottom: 1px solid var(--line);
}
.principles h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
}
.principles h3::before {
  content: counter(p, decimal-leading-zero);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brick-ink);
}
.about-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: clamp(48px, 7vw, 88px);
}

/* ---------- タブレット ---------- */
@media (max-width: 860px) {
  .card--feature {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-side {
    margin-top: 32px;
  }
}

/* ---------- スマホ：PCの縮小ではなく、店の中を縦に歩く ---------- */
@media (max-width: 600px) {
  .hero-photo {
    height: max(460px, 72svh);
  }
  .hero-photo img {
    /* 窓・ペンダント照明・両側の書棚が残る位置 */
    object-position: 60% 40%;
  }
  .hero-title {
    padding-bottom: 36px;
  }
  .hero-title h1 {
    font-size: clamp(2.1rem, 10.5vw, 3rem);
    letter-spacing: 0.02em;
  }
  .hero-body {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-body .actions {
    gap: 4px 20px;
  }
  .hero-body .actions .button {
    flex: 1 1 100%;
  }
  .card--feature .card-name {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }
  .card--default {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 0 24px;
  }
  .profile-section {
    grid-template-columns: minmax(0, 1fr);
  }
  .profile-section > :not(h2):not(.ps-head) {
    grid-column: 1;
  }
  .profile-section h2,
  .ps-head {
    grid-row: auto;
    margin-bottom: 18px;
  }
  .namecard {
    margin-inline: 0;
  }
  .principles {
    grid-template-columns: minmax(0, 1fr);
  }
  .invite {
    padding-block: 64px 72px;
  }
  .invite .button--ghost {
    width: 100%;
  }
  .flow {
    background: none;
    border: 0;
  }
  .flow li {
    border-bottom: 0;
  }
  .step {
    margin-inline: 0;
    padding-inline: 0;
  }
}
.prose .about-lead {
  line-height: 1.25;
}
.profile .jump {
  margin: 0 0 clamp(28px, 4vw, 48px);
}

/* =========================================================
   最終調整：ヘッダーとHero直下
   Webサービス的なボタン・枠をやめ、書店・出版社の誌面のような
   名前（強）と案内（静）の文字組みにする。
   ========================================================= */
.site-header {
  align-items: baseline;
  padding-block: 26px 20px;
}
.brand {
  font-size: clamp(1.55rem, 2.2vw, 1.95rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.25;
}
.brand small {
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.site-nav {
  gap: 0 30px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}
.site-nav a,
.site-nav a:hover {
  padding: 0;
  background: none;
  border-radius: 0;
  color: var(--ink-soft);
}
.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.45em;
}
/* 「掲載を申し込む」は囲みをやめ、細い下線だけで少しだけ区別する */
.site-nav a[href="/apply"] {
  box-shadow: none;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.45em;
}

/* ---------- Hero直下：写真 → 余白 → 文字 ---------- */
.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: end;
  gap: 32px clamp(32px, 6vw, 96px);
  padding-top: clamp(64px, 9vw, 132px);
}
.hero-lead {
  max-width: 17em;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.hero-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--ink);
}
.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-decoration: none;
}
.hero-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4em;
}
.hero-link--sub {
  font-weight: 500;
  color: var(--ink-soft);
}

@media (max-width: 600px) {
  .site-header {
    padding-block: 18px 10px;
  }
  .site-nav {
    gap: 0 22px;
    margin-inline: 0;
  }
  .site-nav a {
    padding: 0;
  }
  .hero-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 52px;
  }
  .hero-lead {
    font-size: 1.35rem;
  }
}
.hero-lead {
  max-width: none;
}
.hero-link span {
  margin-left: 0.6em;
}
@media (max-width: 600px) {
  .hero-lead {
    font-size: 1.2rem;
    letter-spacing: 0.02em;
  }
}

/* =========================================================
   第2段階：写真と文章が交互に現れる誌面のリズム
   写真の上には文字を載せない。写真は余白とともに置く。
   ========================================================= */
.photo {
  margin: 0;
  overflow: hidden;
  background: var(--surface-sunk);
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 控えめなテキスト導線（ボタンにしない） */
.text-arrow {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-decoration: none;
}
.text-arrow:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4em;
}
.text-arrow--sub {
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- 見開き：まだ知らない書き手が、ここにはいます ---------- */
.essay {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  margin: 0;
  padding-top: clamp(104px, 13vw, 192px);
}
.essay-text {
  padding-left: max(
    var(--gutter),
    calc((100vw - var(--width)) / 2 + var(--gutter))
  );
  padding-right: clamp(32px, 5vw, 88px);
}
.essay h2 {
  margin: 0 0 clamp(28px, 3vw, 40px);
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.03em;
}
.essay-text > p:not(.section-no):not(.essay-link) {
  max-width: 30em;
  margin: 0 0 1.2em;
  font-size: 1.02rem;
  line-height: 2.1;
  color: var(--ink-soft);
}
.essay-link {
  margin: 28px 0 0;
}
/* 写真は右端まで出す */
.essay-photo {
  height: clamp(420px, 44vw, 700px);
}
.essay-photo img {
  object-position: 42% 55%;
}

/* ---------- 今日の書き手：特集ページの扉のような見出し ---------- */
.card--feature .feature-side {
  padding-left: clamp(20px, 3vw, 40px);
  border-left: 1px solid var(--line);
}

/* ---------- 名刺を一枚：写真と深緑の頁 ---------- */
.invite {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
  padding: 0;
}
.invite-photo {
  min-height: clamp(520px, 58vw, 860px);
}
.invite-photo img {
  object-position: 50% 62%;
}
.invite-text {
  align-self: center;
  max-width: 44rem;
  padding: clamp(56px, 7vw, 120px) clamp(28px, 6vw, 104px);
}
.invite h2 {
  font-size: clamp(2.1rem, 3.8vw, 3.6rem);
  line-height: 1.25;
}
.invite p {
  margin: 28px 0 0;
}
.invite-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 36px !important;
  padding-top: 10px;
  border-top: 1px solid rgb(245 240 230 / 45%);
}
.invite .text-arrow {
  color: var(--paper);
}
.invite .text-arrow--sub {
  color: #c9cfc4;
}

/* ---------- 掲載申請：見出しの横に、並ぶ前の本 ---------- */
.apply-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  column-gap: clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.apply-head {
  margin-top: clamp(40px, 6vw, 88px);
}
.apply-head .page-head {
  margin: 0;
}
.apply-photo {
  height: clamp(320px, 34vw, 480px);
}
.apply-photo img {
  object-position: 50% 58%;
}

/* ---------- About：ノートの写真を挟む ---------- */
.about-photo {
  height: clamp(260px, 36vw, 520px);
  margin: clamp(48px, 7vw, 96px) 0 0;
}
.about-photo img {
  object-position: 45% 55%;
}

@media (max-width: 860px) {
  .essay {
    grid-template-columns: minmax(0, 1fr);
  }
  .essay-photo {
    order: -1;
    height: auto;
    aspect-ratio: 3 / 2;
    margin-bottom: 40px;
  }
  .essay-text {
    padding-right: var(--gutter);
  }
  .invite {
    grid-template-columns: minmax(0, 1fr);
  }
  .invite-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .invite-text {
    padding-inline: max(var(--gutter), env(safe-area-inset-left));
  }
  .apply-head {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }
  .apply-photo {
    height: auto;
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 600px) {
  .essay {
    padding-top: 72px;
  }
  .essay-photo {
    margin-bottom: 32px;
  }
  .essay h2 {
    font-size: 1.6rem;
    letter-spacing: 0.02em;
  }
  .card--feature .feature-side {
    padding-left: 0;
    border-left: 0;
  }
  .invite-text {
    padding-block: 48px 64px;
  }
  .about-photo {
    height: auto;
    aspect-ratio: 3 / 2;
  }
}

/* =========================================================
   今日の書き手＝文芸誌の作家特集／今日の棚＝目次
   カードの箱をやめ、名前の大きさ・番号・罫線・余白で組む。
   ========================================================= */

/* ---------- 作家特集：名前が主役 ---------- */
.card--feature {
  grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  column-gap: clamp(32px, 6vw, 104px);
  align-items: start;
}
.card--feature .feature-main {
  display: flex;
  flex-direction: column;
}
.card--feature .card-name {
  order: 0;
  margin: 0 0 20px;
  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  /* 対応ブラウザでは、日本語の名前を文節の切れ目で折り返す */
  word-break: auto-phrase;
}
.card--feature .card-genre {
  margin: 0 0 28px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}
.card--feature .card-bio {
  max-width: 26em;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 2;
  color: var(--ink);
}
.card--feature .card-more {
  margin: 36px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.card--feature .card-more span {
  display: inline-block;
  margin-left: 0.6em;
  transition: transform var(--dur-fast) var(--ease);
}
.card--feature:hover .card-more span {
  transform: translateX(4px);
}
/* 補助情報：縦罫の右に小さく */
.card--feature .feature-side {
  margin: 0;
  padding: 0 0 0 clamp(20px, 3vw, 40px);
  border-top: 0;
  border-left: 1px solid var(--line-strong);
}
.feature-side div {
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.feature-side div:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}
.feature-side dt {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.72rem;
}
.fs-no {
  color: var(--brick-ink);
  letter-spacing: 0.08em;
}
.feature-side dd {
  margin-top: 6px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.feature-side .feature-work {
  font-size: 1rem;
}

/* 左右に少しずらし、目次の行に呼吸をつける（順位とは無関係） */

@media (max-width: 860px) {
  .card--feature {
    grid-template-columns: minmax(0, 1fr);
  }
  .card--feature .feature-side {
    margin-top: 40px;
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }
}

/* スマホ：非対称はやめ、縦に目次を読む */
@media (max-width: 600px) {
  .card--feature .card-name {
    font-size: clamp(2.6rem, 13vw, 3.5rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .card--feature:hover .card-more span {
    transform: none;
  }
}

/* 代表作の掲載先：複数サイト名をそのままテキストで示す（リンクとは別） */
.work-platform .wp-label {
  margin-right: 0.9em;
  padding-right: 0.9em;
  border-right: 1px solid var(--line-strong);
  color: var(--brick-ink);
  letter-spacing: 0.14em;
}
.work-platform {
  align-items: baseline;
  overflow-wrap: anywhere;
}
.work-platform .wp-label {
  flex: none;
}

/* =========================================================
   /writers：見渡して探す名鑑
   TOPは「偶然出会う」、ここは「一覧性・検索性」を優先する。
   一覧の札は軽く：紙色の面・細い罫線・影なし・角はほぼ立てる。
   ========================================================= */
.directory-head {
  margin-bottom: clamp(28px, 4vw, 48px);
}
.directory-head h1 {
  margin: 0;
}
.directory-count {
  margin: 18px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.directory-count strong {
  font-size: 1.35em;
  font-weight: 600;
  color: var(--ink);
}
/* 検索窓はページ上部ですぐ使える一行に */
.directory-finder {
  margin-bottom: 8px;
}
.finder-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.finder-bar .finder-q {
  margin: 0;
}
.finder-bar .finder-q input {
  font-size: 1.05rem;
}
.finder-bar button {
  min-height: 48px;
  padding-inline: 28px;
}
.directory-finder .genre-pick {
  margin: 20px 0 4px;
}
.directory-finder .form-actions {
  margin-top: 4px;
}

/* 条件付き検索だけをスマホでコンパクトに。JSなしでは全入力欄を残す。 */
.finder-toggle[hidden],
.finder-details[hidden] {
  display: none;
}
@media (max-width: 600px) {
  .directory-finder .finder-toggle:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin-top: 14px;
    padding: 10px 12px;
    background: var(--surface);
    color: var(--accent);
    border: 1px solid var(--line-strong);
    text-align: left;
    flex-wrap: wrap;
  }
  .finder-toggle-count {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--muted);
  }
  .finder-toggle-mark {
    margin-left: auto;
  }
  .finder-toggle[aria-expanded="true"] .finder-toggle-mark {
    font-size: 0;
  }
  .finder-toggle[aria-expanded="true"] .finder-toggle-mark::after {
    content: "−";
    font-size: 1rem;
  }
}

/* ---------- 一覧：PC 3列 / タブレット 2列 / スマホ 1列 ---------- */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}
.card.card--dir,
.card.card--dir:hover {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: none;
  transform: none;
}
.card.card--dir:hover {
  border-color: var(--line-strong);
}
.dir-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.card--dir .avatar {
  width: 44px;
  height: 44px;
  font-size: 1.15rem;
}
.card--dir .card-name {
  margin: 0;
  font-size: clamp(1.25rem, 1.6vw, 1.45rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.card--dir .card-genre {
  margin: 4px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}
.card--dir .card-bio {
  margin: 14px 0 0;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--ink-soft);
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.dir-meta {
  display: flex;
  gap: 10px;
  margin: 10px 0 0;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.dir-label {
  flex: none;
  min-width: 2.6em;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brick-ink);
}
.card--dir .card-more {
  margin: auto 0 0;
  padding-top: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.card--dir .card-more span {
  display: inline-block;
  margin-left: 0.5em;
  transition: transform var(--dur-fast) var(--ease);
}
.card--dir:hover .card-more span {
  transform: translateX(3px);
}

/* ---------- プロフィール：代表作の階層と、巻末リンクのような活動場所 ---------- */
.work,
.work:hover {
  margin-bottom: 44px;
  padding-bottom: 44px;
}
.work-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.35;
}
.work-platform {
  margin: 10px 0 16px;
}
.work-desc {
  margin-bottom: 16px;
  line-height: 2;
}
.place-list {
  max-width: 34em;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.place-list li {
  border-bottom: 1px solid var(--line);
}
.place-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 10px 0;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.place-link .ext {
  color: var(--accent);
  transition: transform var(--dur-fast) var(--ease);
}
.place-link:hover {
  color: var(--accent);
}
.place-link:hover .ext {
  transform: translate(2px, -2px);
}

/* ---------- 申請フォーム：必須の基本情報と、もっと載せたい人向け ---------- */
.optional-block {
  margin: 28px 0 8px;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--line);
}
.optional-block > details.add-more:first-of-type {
  border-top: 0;
}

@media (max-width: 1000px) {
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .directory-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .finder-bar {
    grid-template-columns: minmax(0, 1fr);
  }
  .finder-bar button {
    width: 100%;
  }
  .card.card--dir,
  .card.card--dir:hover {
    padding: 20px 18px 16px;
  }
  .optional-block {
    padding-left: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card--dir:hover .card-more span,
  .place-link:hover .ext {
    transform: none;
  }
}
.nowrap {
  white-space: nowrap;
}
/* 一覧ページは見渡すことが目的なので、見出しまわりは少し詰める */
.directory-head {
  margin-top: clamp(28px, 4.5vw, 64px);
}
.directory-head h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
}

/* 一覧性の調整：紹介は2行まで、札の縦の余白を1割ほど詰める（名前・ジャンルの大きさは据え置き） */
.card.card--dir,
.card.card--dir:hover {
  padding: 20px 22px 16px;
}
.dir-head {
  padding-bottom: 12px;
}
.card--dir .card-bio {
  margin-top: 12px;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.dir-meta {
  margin-top: 8px;
}
.card--dir .card-more {
  padding-top: 12px;
}
@media (max-width: 600px) {
  .card.card--dir,
  .card.card--dir:hover {
    padding: 18px 18px 14px;
  }
}
@media (max-width: 600px) {
  .directory-grid {
    gap: 12px;
  }
  .card--dir .card-more {
    padding-top: 10px;
  }
}

/* =========================================================
   活動場所・交流：一覧とプロフィールで同じ表現を使う補助情報
   線画アイコンは深緑の細線。意味はテキストでも必ず示す。
   ========================================================= */
.ico {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* ---------- 一覧の札：活動・交流を小さなメタ情報として ---------- */
.dir-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 4.2em;
}
.dir-label .ico {
  width: 13px;
  height: 13px;
}

/* ---------- プロフィール上部：アイコン→名前→ジャンル→活動場所→交流 ---------- */
.namecard .namecard-name {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  line-height: 1.15;
}
.namecard .namecard-genres {
  margin-top: 10px;
}
.namecard-adult {
  margin-top: 18px;
}
.nc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nc-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--accent);
  overflow-wrap: anywhere;
}
.nc-note {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .namecard .namecard-name {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }
}

/* 札が縦に伸びないよう、いま・掲載・活動・交流は各1行に収め、溢れた分は省略する */
.dir-meta {
  margin-top: 6px;
  line-height: 1.6;
  white-space: nowrap;
}
.dir-meta > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card.card--dir,
.card.card--dir:hover {
  padding-top: 18px;
  padding-bottom: 14px;
}
.card--dir .dir-head {
  padding-bottom: 10px;
}
.card--dir .card-bio {
  margin-top: 10px;
}
.dir-meta {
  margin-top: 4px;
  line-height: 1.5;
}
.card--dir .card-more {
  padding-top: 10px;
}
.directory-grid {
  gap: clamp(12px, 1.4vw, 18px);
}
.card--dir .card-bio {
  line-height: 1.75;
}
.card--dir .dir-head {
  padding-bottom: 8px;
}
.card--dir .card-more {
  padding-top: 8px;
}

/* 検索結果の人物紹介：名前→紹介→執筆傾向→補助情報。 */
.card--dir .dir-head > div {
  min-width: 0;
}
.card--dir .avatar {
  flex: none;
}
.card--dir .card-name {
  font-size: 1.35rem;
  line-height: 1.45;
}
.card--dir .card-bio {
  min-height: 3.5em;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  margin-bottom: 10px;
}
.dir-traits {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.8rem;
  line-height: 1.65;
}
.dir-trait-row {
  display: grid;
  grid-template-columns: 6em minmax(0, 1fr);
  gap: 8px;
}
.dir-trait-row dt {
  color: var(--muted);
  font-size: 0.72rem;
  padding-top: 2px;
}
.dir-trait-row dd {
  margin: 0;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.card--dir .dir-meta {
  font-size: 0.75rem;
  color: var(--muted);
}
.card--dir .dir-label {
  color: var(--muted);
}
.card--dir .card-more {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding-top: 10px;
}

/* =========================================================
   ヘッダー：サイト名（ブランド）とナビをはっきり分ける
   Heroの「書く人を、埋もれさせない。」は理念、ここは場所の名前。
   ========================================================= */
.site-header {
  align-items: flex-end;
  padding-block: 30px 22px;
}
.brand {
  font-size: clamp(1.9rem, 2.9vw, 2.45rem);
  letter-spacing: 0.14em;
  line-height: 1.2;
}
.brand small {
  margin-top: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}
.site-nav {
  gap: 0 34px;
  padding-bottom: 2px;
  font-size: 0.86rem;
}

@media (max-width: 600px) {
  .site-header {
    align-items: stretch;
    gap: 12px;
    padding-block: 20px 0;
  }
  .brand {
    font-size: 1.85rem;
  }
  .brand small {
    margin-top: 6px;
    font-size: 0.7rem;
  }
  .site-nav {
    justify-content: space-between;
    gap: 0;
    margin-inline: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    font-size: 0.84rem;
    letter-spacing: 0.08em;
  }
  .site-nav a {
    padding: 0;
  }
}

/* ---------- 名鑑の対象（About・掲載について・申請） ---------- */
.scope-block {
  max-width: 40em;
  margin: clamp(32px, 5vw, 48px) 0 0;
  padding: 18px 0 4px 22px;
  border-left: 3px solid var(--accent);
}
.scope-block p {
  margin: 0 0 0.8em;
  line-height: 1.95;
}
.scope-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
}
.scope-box {
  padding: 24px 0 8px;
  border-bottom: 1px solid var(--line);
}
.scope-box h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--accent);
}
.scope-box--out h3 {
  color: var(--brick-ink);
}
.scope-box ul {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.95;
}
.scope-note,
.listing-text {
  max-width: 40em;
  margin-top: 20px;
  line-height: 2;
}
.check-note {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .scope-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .scope-block {
    padding-left: 16px;
  }
}

/* 掲載の対象：条件の名前と説明 */
.scope-box strong {
  font-weight: 600;
  color: var(--ink);
}
.scope-desc {
  display: block;
  margin-top: 2px;
  font-size: 0.86rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* =========================================================
   からし色の書店ノート（TOP）＋ リンクは下線ではなく色のセル
   参考：書店の「おすすめカード」。からし色の地に白いカードを置き、
   丸い写真・罫線・帯の導線で組む。
   ========================================================= */
:root {
  --mustard: #d9a52b;
  --mustard-deep: #c08f17;
  --mustard-soft: #f6e5b0;
  /* からし色系の文字（白地でコントラスト5.5以上） */
  --ochre-ink: #7a5a0c;
}

/* ---------- リンク：ふだんは静かな文字＋下線のまま。
   からし色のセルは「押してほしい場所」（TOPの検索・書き手カードの帯・主要CTA）だけ ---------- */
/* からし色のボタンは、TOPの中と「掲載を申し込む」だけ。ほかは深緑のまま */
a.button[href="/apply"] {
  background: var(--mustard);
  border-color: var(--mustard);
  color: var(--ink);
}
a.button[href="/apply"]:hover {
  background: var(--mustard-deep);
  border-color: var(--mustard-deep);
}

/* 深緑の名刺の頁では、からし色のセルに墨の文字。触れると白 */
.invite .text-arrow,
.invite .text-arrow--sub {
  background: var(--mustard);
  color: var(--ink);
}
.invite .text-arrow:hover {
  background: #fff;
  color: var(--ink);
}
.invite-links {
  gap: 10px;
}

/* =========================================================
   プロフィール：小さな本屋の作家紹介POP／インディーズZINE
   写真は増やさず、生成り・白・深緑・からし色と、罫線・番号・紙片で組む。
   角丸と影は控えめ（SaaSのカードにしない）。
   ========================================================= */
:root {
  /* からし色の紙片（白地より少しだけ温かい） */
  --mustard-paper: #faf0d4;
}
.profile.zine {
  max-width: 1080px;
}

/* ---------- 名刺の下：代表作を見る・共有 ---------- */
.pz-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 28px;
}
.pz-actions .jump {
  margin: 0;
}
.pz-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
}
.profile .share-btn,
.profile .share-btn:hover {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}
.profile .share-btn:hover {
  background: var(--mustard-paper);
}
.share-btn .ico {
  color: var(--ink);
}
.share-status {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.share-status:empty {
  display: none;
}

/* ---------- 見出し：太い罫線（番号は付けない） ---------- */
.pz-h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.1vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ---------- 自己紹介・作風のタグ（紙片） ---------- */
.pz-bio {
  margin: 0;
}
.pz-bio .profile-bio {
  max-width: none;
  font-size: 1.02rem;
  line-height: 2.05;
}
.pz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pz-tags li {
  padding: 3px 12px;
  background: #fff;
  border: 1px solid var(--mustard-deep);
  border-radius: 2px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* ---------- いま、書いていること：淡い緑の色面 ---------- */
.pz-now {
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 22px clamp(20px, 3vw, 32px) 24px;
  background: var(--accent-soft);
  border-left: 6px solid var(--accent);
}
.pz-now .pz-h {
  border-bottom: 1px solid rgb(35 57 46 / 35%);
}
.pz-now-mark {
  margin-left: auto;
  padding: 1px 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.pz-now-text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.95;
  color: var(--ink);
}

/* ---------- 代表作：作品ごとの縦長カード、題名はからし色の帯 ---------- */
.pz-works {
  margin: clamp(48px, 7vw, 88px) 0 0;
}
.pz-work-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.pz-work {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  overflow: hidden;
}
.pz-band {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 14px 16px 12px;
  background: var(--mustard);
}
.pz-band .work-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.pz-band .badge-adult {
  align-self: center;
  background: #fff;
  border-color: var(--ink);
  border-radius: 2px;
  color: var(--ink);
}
.pz-work-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 18px 18px;
}
.pz-work-body .work-platform {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-strong);
}
.pz-work-body .work-desc {
  flex: 1;
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.95;
}
@media (max-width: 600px) {
  .pz-work {
    min-height: 0;
  }
}

/* ---------- 微調整：代表作の列数は件数どおり／いまは代表作より控えめに／活動場所は線画アイコン ---------- */
.pz-work-list--n1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 560px;
}
.pz-work-list--n2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pz-work-list--n3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pz-now {
  padding-block: 18px 20px;
}
.pz-now .pz-h {
  margin-bottom: 12px;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
}
.pz-now-text {
  font-size: 0.98rem;
  line-height: 1.9;
}
.nc-link .ico {
  width: 14px;
  height: 14px;
  margin-left: 4px;
}
@media (max-width: 860px) {
  .pz-work-list--n3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .pz-work-list--n2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================
   紙もの装飾（スタンプ風の2色刷り素材）
   すべて擬似要素の背景として置き、読み上げ・操作の対象にしない。
   文字の背後には置かない。1画面に置く素材は数種類まで。
   ========================================================= */
:root {
  --deco-arrow: url("/images/deco-arrow.webp");
  --deco-book: url("/images/deco-book.webp");
  --deco-bookmark: url("/images/deco-bookmark.webp");
  --deco-cameo: url("/images/deco-cameo.webp");
  --deco-notebook: url("/images/deco-notebook.webp");
  --deco-postcard: url("/images/deco-postcard.webp");
  --deco-ring: url("/images/deco-ring.webp");
  --deco-sparkle: url("/images/deco-sparkle.webp");
  --deco-stack: url("/images/deco-stack.webp");
  --deco-star: url("/images/deco-star.webp");
  --deco-star-burst: url("/images/deco-star-burst.webp");
  --deco-sun: url("/images/deco-sun.webp");
}

/* ---------- TOP（太陽バッジ・開いた本・しおり・手描き矢印・星の5種） ---------- */

/* ---------- /writers（ラベルスタックと紙のテープだけ。機能優先で控えめ） ---------- */
.directory-head h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.directory-head h1::after { content: none; }
.card--dir {
  position: relative;
}
/* 紙テープは一部の札だけ。並び順ではなく書き手ごと（名前から決まる色番号）に決めるので、
   ランダム表示でも同じ人には同じテープが付き、規則的な反復にも見えない */
.card--dir.tone-2::before,
.card--dir.tone-5::before {
  content: "";
  position: absolute;
  top: -6px;
  width: 44px;
  height: 12px;
  background: rgb(217 165 43 / 55%);
  pointer-events: none;
}
.card--dir.tone-2::before {
  left: 22px;
  transform: rotate(-3deg);
}
.card--dir.tone-5::before {
  right: 30px;
  width: 38px;
  transform: rotate(4deg);
}

/* ---------- プロフィール（丸い印章・しおり・手帳・開いた本。切手は使わない） ---------- */
.pz-works > .pz-h::after {
  content: "";
  flex: none;
  width: 48px;
  height: 33px;
  margin-left: 4px;
  background: var(--deco-book) center / contain no-repeat;
  align-self: center;
}

/* ---------- About（サイトの象徴として、カメオ切手を1枚だけ） ---------- */
.prose:has(.about-lead) {
  position: relative;
}
.prose:has(.about-lead)::before {
  content: "";
  position: absolute;
  top: clamp(40px, 7vw, 96px);
  right: 2%;
  width: 126px;
  height: 146px;
  background: var(--deco-cameo) center / contain no-repeat;
  transform: rotate(2deg);
  pointer-events: none;
}

/* ---------- 掲載について（星＝対象、輪＝対象外、申し込みに矢印） ---------- */
.scope-box h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.scope-box h3::before {
  content: "";
  flex: none;
  width: 22px;
  height: 23px;
  background: var(--deco-star) center / contain no-repeat;
}
.scope-box--out h3::before {
  background-image: var(--deco-ring);
}

/* ---------- 申請（郵便ラベルを写真に重ね、確認事項にしおり） ---------- */
.apply-photo {
  position: relative;
  overflow: visible;
}
.apply-photo::after {
  content: "";
  position: absolute;
  left: -34px;
  bottom: -26px;
  width: 150px;
  height: 81px;
  background: var(--deco-postcard) center / contain no-repeat;
  transform: rotate(-7deg);
  pointer-events: none;
}
.step--confirm .consent {
  position: relative;
}
.step--confirm .consent::after {
  content: "";
  position: absolute;
  top: -12px;
  right: 22px;
  width: 18px;
  height: 58px;
  background: var(--deco-bookmark) top center / 100% auto no-repeat;
  pointer-events: none;
}
/* 修正申請（/edit-request）だけは、確認事項のしおりを出さない */
.preview-drawer-mode .step--confirm .consent::after {
  content: none;
}

/* ---------- 狭い画面：はみ出しを抑え、余白の飾りは出さない ---------- */
@media (max-width: 860px) {
  .prose:has(.about-lead)::before {
    width: 70px;
    height: 80px;
    top: 24px;
    right: 0;
  }
  .apply-photo::after {
    left: -8px;
    width: 110px;
    height: 60px;
  }
}
@media (max-width: 600px) {
  .directory-head h1::after {
    width: 58px;
    height: 39px;
  }
  .prose:has(.about-lead)::before {
    width: 54px;
    height: 62px;
    top: 16px;
  }
}

/* =========================================================
   プロフィール微調整：アイコンと名前の高さ、左右の底辺、白い紙面
   ========================================================= */
/* 本文は白に近い紙面。ヘッダーは生成り、フッターは全ページ共通の深緑。 */
body.page-profile {
  background: #fffdf8;
}
.page-profile .site-header {
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
}

/* ---------- 共通ヘッダー：ブランドはロゴ画像（サイト名は alt で読み上げる） ---------- */
.site-header {
  padding-block: 18px 14px;
}
.brand--logo {
  display: block;
  min-height: 0;
  line-height: 0;
}
.brand-logo {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}
@media (max-width: 600px) {
  .site-header {
    padding-block: 14px 0;
  }
  .brand-logo {
    width: 240px;
  }
}

/* =========================================================
   共通ヘッダーを上部に残す（sticky）。管理画面は対象外。大きさは常に同じ
   ========================================================= */
body:not(.page-admin) .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  /* 幅は本文と同じまま、背景だけ画面の端まで伸ばす */
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
}
/* スクロールしても大きさは変えない（通常時と以前の縮小時の中間で固定） */
body:not(.page-admin) .site-header {
  padding-block: 11px 10px;
}
body:not(.page-admin) .brand-logo {
  width: 250px;
}
@media (max-width: 600px) {
  body:not(.page-admin) .site-header {
    padding-block: 6px 0;
    gap: 0;
  }
  body:not(.page-admin) .brand-logo {
    width: 190px;
  }
}

/* ページ内リンク（代表作を見る・申請の目次など）の行き先が、上に残るヘッダーに隠れないように（ヘッダー高さ＋約20px） */
body:not(.page-admin) main [id] {
  scroll-margin-top: 116px;
}
@media (max-width: 600px) {
  body:not(.page-admin) main [id] {
    scroll-margin-top: 128px;
  }
}

/* =========================================================
   掲載の申し込み導線：ヘッダーのCTAと、TOP名刺の頁の主ボタン
   ========================================================= */
/* ヘッダー：既存3項目はテキストのまま、申し込みだけからし色のボタン */
.site-nav a.nav-cta,
.site-nav a.nav-cta:hover {
  align-self: center;
  min-height: 40px;
  padding: 0 16px;
  background: var(--mustard);
  border-radius: 2px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.site-nav a.nav-cta:hover {
  background: var(--mustard-deep);
}
@media (max-width: 600px) {
  /* スマホ：ナビ3項目の行はそのまま、CTAはロゴの右に置いて高さを増やさない */
  .site-nav a.nav-cta,
  .site-nav a.nav-cta:hover {
    position: absolute;
    top: 10px;
    right: max(var(--gutter), env(safe-area-inset-right));
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
  }
}

/* TOP「この本屋に、名刺を一枚。」：申し込みが主、掲載についてが補助 */
.invite-links {
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center !important;
  gap: 14px 24px !important;
}
.invite .invite-cta,
.invite .invite-cta:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-width: 15em;
  min-height: 54px;
  padding: 0 28px;
  background: var(--mustard);
  border-radius: 2px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.invite .invite-cta:hover {
  background: #e7b84a;
}
.invite .invite-cta:hover span {
  transform: translateX(4px);
}
/* 補助装飾は郵便ラベル1点だけ。ボタンより小さく、PCのみ */
.invite-links {
  position: relative;
}
@media (min-width: 861px) {
  .invite-links::after {
    content: "";
    position: absolute;
    right: 0;
    top: -38px;
    width: 76px;
    height: 41px;
    background: var(--deco-postcard) center / contain no-repeat;
    transform: rotate(6deg);
    opacity: 0.85;
    pointer-events: none;
  }
}
.invite .invite-note {
  margin: 14px 0 0 !important;
  font-size: 0.82rem;
  line-height: 1.8;
  color: #c9cfc4;
}
@media (max-width: 600px) {
  .invite .invite-cta,
  .invite .invite-cta:hover {
    width: 100%;
    min-width: 0;
  }
}
.contact-note {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- 修正申請：対象の表示と、プロフィールの小さな導線 ---------- */
.edit-target {
  padding: 16px 20px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
}
.edit-target-name {
  margin: 0;
}
.edit-target-lead {
  margin: 6px 0 0;
  font-size: 0.92rem;
  line-height: 1.9;
}
.profile-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  max-width: 1080px;
  margin: 40px auto 0;
  font-size: 0.85rem;
}
.profile-tools p {
  margin: 0;
}
.profile-tools .muted {
  margin-left: 0.3em;
  font-size: 0.78rem;
}

/* ---------- 管理画面：修正申請の変更点 ---------- */
.diff-list {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.diff {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
}
.diff--added {
  border-left-color: #3f7a55;
}
.diff--removed {
  border-left-color: var(--danger);
}
.diff-label {
  margin: 0 0 6px;
  font-weight: 700;
}
.diff-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.diff-tag {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.diff-before,
.diff-after {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}
.diff-before {
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: rgb(162 59 47 / 50%);
}
.notice--warn {
  border-left: 4px solid var(--danger);
  background: var(--danger-soft);
}
@media (max-width: 600px) {
  .diff-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================
   プロフィールアイコンの選び方（自分の画像／用意されたアイコン／設定しない）
   選んだ方法の欄だけを見せる。:has 非対応のブラウザでは全部の欄が見える
   ========================================================= */
.icon-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.icon-panel {
  margin-top: 14px;
}
.icon-pick:has(input[name="icon_mode"]) .icon-panel {
  display: none;
}
.icon-pick:has(input[name="icon_mode"][value="preset"]:checked) .icon-panel--preset {
  display: block;
}
.icon-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.icon-preset {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 96px;
  padding: 10px 12px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #fffdf8;
  cursor: pointer;
}
.icon-preset input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.icon-preset img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.icon-preset-name {
  font-size: 0.86rem;
}
/* 選んだものは、太い枠・チェック・文字の太さで示す（色だけに頼らない） */
.icon-preset:has(input:checked) {
  border: 2px solid var(--accent);
  padding: 9px 11px 7px;
  background: var(--mustard-paper);
}
.icon-preset:has(input:checked) .icon-preset-name {
  font-weight: 700;
}
.icon-preset:has(input:checked)::after {
  content: "✓ 選択中";
  position: absolute;
  top: -10px;
  right: -6px;
  padding: 0 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 2px;
}
.icon-preset:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.icon-modes .icon-mode-opt {
  margin: 0;
  padding-top: 0;
  align-items: center;
}
@media (max-width: 600px) {
  .icon-modes {
    flex-direction: column;
    gap: 0;
  }
  .icon-preset {
    min-width: 88px;
  }
}
.edit-guide {
  max-width: var(--narrow);
  padding: 20px 22px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
}

/* ---------- 管理画面：発行した修正用URL ---------- */
.issued-url {
  margin: 12px 0 20px;
  padding: 14px 16px;
  background: var(--mustard-paper);
  border-left: 4px solid var(--mustard-deep);
}
.issued-url-row {
  display: flex;
  gap: 8px;
}
.issued-url-row input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

/* ---------- 参加の3ステップ・Googleでの本人確認・マイページ ---------- */
.join-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: var(--narrow);
  margin: 8px 0 28px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.join-step {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 12px 14px;
  color: var(--muted);
}
.join-step + .join-step {
  border-left: 1px solid var(--line);
}
.join-step strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.join-no {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.join-desc {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.join-step--now {
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 3px 0 var(--mustard-deep);
}
.join-step--now .join-no {
  color: var(--ochre-ink);
}
.join-step--done {
  color: var(--accent);
}
.join-step--done .join-desc {
  font-weight: 700;
}
.auth-box,
.verified-box,
.account-box {
  max-width: var(--narrow);
  margin: 0 0 24px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.account-login .auth-box {
  max-width: none;
}
.account-login .auth-box > p,
.account-login .auth-notes {
  max-width: var(--narrow);
}
.auth-box h2,
.account-h {
  margin: 4px 0 10px;
  font-size: 1.15rem;
}
/* 操作画面の優先順はDOMでも主操作→管理→保存一覧→アカウント。 */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}
.dashboard-main,
.dashboard-side { min-width: 0; }
.account-dashboard .dashboard-head { margin: 32px 0; }
.account-dashboard .dashboard-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.account-dashboard .account-box { max-width: none; border: 1px solid var(--line); }
.dashboard-name { margin: 12px 0 8px; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; overflow-wrap: anywhere; }
.dashboard-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.account-status { padding: 4px 10px; background: var(--accent-soft); color: var(--accent); font-size: .85rem; font-weight: 700; }
.dashboard-profile-link,
.dashboard-bookmark-link { display: inline-flex; align-items: center; min-height: 44px; }
.dashboard-secondary { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); }
.dashboard-secondary a { display: inline-flex; align-items: center; min-height: 44px; }
.dashboard-side .logout-form { margin: 18px 0 0; }
.account-dashboard summary { cursor: pointer; min-height: 44px; padding: 10px 0; color: var(--accent); font-weight: 600; }
.account-dashboard summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.dashboard-side .bookmark-row { flex-wrap: wrap; }
.dashboard-side .bookmark-writer { min-width: 0; overflow-wrap: anywhere; }
.dashboard-account-details { margin-top: 8px; }
.account-dashboard .account-box { overflow-wrap: anywhere; }
.account-dashboard fieldset { min-width: 0; }
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
/* マイページ：掲載ジャンルの任意表示順。360pxでも操作領域を確保する。 */
.genre-order { margin-top: 24px; min-width: 0; }
.genre-order ol { list-style: none; padding: 0; margin: 12px 0; }
.genre-order li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.genre-order li > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.genre-order-controls { display: flex; gap: 8px; flex-shrink: 0; }
.genre-order button { min-width: 44px; min-height: 44px; padding: 8px; }
.genre-order button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.genre-order button:disabled { opacity: .4; cursor: default; }

.account-dashboard .flow-form .dashboard-genres { margin-top: 28px; padding-top: 12px; }
.account-dashboard .bookmark-delete { min-height: 44px; }
.dashboard-bookmarks .bookmark-row { padding-block: 2px; }
.auth-button {
  min-height: 44px;
  margin: 16px 0;
}
.auth-notes {
  margin: 0;
  padding-left: 1.2em;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.auth-notes li + li {
  margin-top: 4px;
}
.verified-box {
  border-left: 3px solid var(--accent);
}
.verified-title {
  margin: 0;
  font-weight: 700;
  color: var(--accent);
}
.verified-mail {
  margin: 4px 0 8px;
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.account-reqs {
  margin: 0;
  padding-left: 1.2em;
}
.logout-form {
  max-width: var(--narrow);
  margin: 8px 0 32px;
}
/* マイページ：「すぐ反映」（近況・表示設定）と「運営確認後」（修正申請）を、左の色帯と札ではっきり分ける */
.flow-box {
  border-left-width: 4px;
}
.flow-box--now {
  border-left-color: var(--accent);
}
.flow-box--review {
  border-left-color: var(--ochre-ink);
}
.flow-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.flow-head .account-h {
  margin-bottom: 4px;
}
.flow-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.flow-badge--now {
  background: var(--accent);
  color: var(--paper);
}
.flow-badge--review {
  border: 1px solid var(--ochre-ink);
  color: var(--ochre-ink);
}
.flow-lead {
  margin: 0 0 14px;
  font-weight: 600;
}
.flow-form .field,
.flow-form .group {
  margin-bottom: 18px;
}
.flow-actions {
  margin: 4px 0 0;
}
/* 「その他」の変更は修正申請から、という案内（ジャンルの札のすぐ下） */
.flow-other-note {
  margin: 12px 0 0;
}
.flow-done {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}
.flow-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--danger-soft);
  border-left: 3px solid var(--danger);
}
.flow-error p {
  margin: 0;
}
.flow-error-title {
  margin-bottom: 4px !important;
  font-weight: 700;
  color: var(--danger);
}
.flow-error a {
  color: var(--ink);
  font-weight: 600;
}
.flow-form .group[aria-invalid="true"] {
  outline: 2px solid var(--danger);
  outline-offset: 4px;
}
@media (max-width: 600px) {
  .flow-actions .button,
  .flow-actions button {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .join-steps {
    grid-template-columns: 1fr;
  }
  .join-step + .join-step {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .join-step {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
  }
  .join-desc {
    flex-basis: 100%;
  }
  .auth-box,
  .verified-box,
  .account-box {
    padding: 16px;
  }
  .account-actions .button {
    width: 100%;
    text-align: center;
  }
  .account-actions li {
    flex-basis: 100%;
  }
}
/* Googleのボタン：CSPでGoogleの埋め込みスタイルが使えないときも、ふつうのボタンとして見えるように */
.g_id_signin {
  max-width: 100%;
  min-height: 44px;
}
.g_id_signin [role="button"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.95rem;
  color: #1f1f1f;
  background: #fff;
  border: 1px solid #747775;
  border-radius: 4px;
  cursor: pointer;
}
.g_id_signin [role="button"] > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.g_id_signin svg {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
}
.g_id_signin #button-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.g_id_signin iframe {
  max-width: 100%;
}
.account-box form + .small {
  margin-top: 16px;
}
/* 18歳以上の確認 */
main > .join-steps:first-child {
  margin-top: 40px;
}
.age-title {
  margin: 4px 0 14px;
  font-size: 1.6rem;
}
.age-lead {
  margin-bottom: 8px;
}
.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 600px) {
  .age-actions button {
    width: 100%;
  }
}
/* 成人向け作品：年齢確認の前は中身を出さない（題名・紹介文・掲載先・URLはHTMLにも含めない） */
.pz-work--gated .work-title {
  color: var(--muted);
}
.adult-note {
  margin: 0 0 14px;
  line-height: 1.8;
}
.adult-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.adult-actions button {
  min-height: 44px;
}
.pz-work--gated .adult-actions button {
  flex: 1 1 100%;
}
.adult-gate {
  margin-top: 40px;
}
@media (max-width: 600px) {
  .adult-actions button {
    width: 100%;
  }
}

/* ---------- 修正フォーム：登録済みの代表作を外す（すぐには消さず「削除予定」にする） ---------- */
.work-delete {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.work-delete-check {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.work-delete-btn,
.work-undo {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 4px;
}
.work-delete-btn {
  color: var(--danger);
  background: transparent;
  border: 1px solid currentColor;
}
.work-delete-btn:hover {
  background: var(--danger-soft);
}
.work-delete-check:focus-visible + .work-delete-btn,
.work-delete-check:focus-visible ~ .work-delete-state .work-undo {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.work-delete-state {
  display: none;
  padding: 12px 14px;
  background: var(--danger-soft);
  border-left: 3px solid var(--danger);
}
.work-delete-state p {
  margin: 0 0 6px;
}
.work-delete-state strong {
  color: var(--danger);
}
.work-delete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px !important;
}
.work-undo {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
.work-replace {
  min-height: 40px;
  font-size: 0.9rem;
}
.work-replace[hidden] {
  display: none;
}
.work-delete-check:checked + .work-delete-btn {
  display: none;
}
.work-delete-check:checked ~ .work-delete-state {
  display: block;
}
/* 削除予定の作品は、入力欄を薄くして「外れる」ことを見せる */
.work-block.is-deleting > :not(legend):not(.work-delete),
.work-block:has(.work-delete-check:checked) > :not(legend):not(.work-delete) {
  opacity: 0.45;
}
.work-block.is-deleting > legend,
.work-block:has(.work-delete-check:checked) > legend {
  text-decoration: line-through;
}
/* 最後の1作は外せない */
.work-delete-check:disabled + .work-delete-btn {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.6;
}
.work-delete-check:disabled + .work-delete-btn::after {
  content: "（最後の1作は外せません）";
  margin-left: 4px;
  font-size: 0.8rem;
}
@media (max-width: 600px) {
  .work-delete-btn,
  .work-undo,
  .work-replace {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- TOP：heroの共有ボタン（写真の上に、生成りの小さな札として置く） ---------- */
.hero-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: clamp(14px, 2.2vh, 22px) 0 0;
}
.share-btn--hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 16px 8px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgb(245 240 230 / 92%);
  border: 1px solid rgb(245 240 230 / 60%);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgb(0 0 0 / 18%);
  cursor: pointer;
}
.share-btn--hero .ico {
  color: var(--accent);
}
.share-btn--hero:hover {
  background: var(--paper);
  box-shadow:
    0 2px 12px rgb(0 0 0 / 18%),
    inset 0 -2px 0 var(--mustard);
}
.share-btn--hero:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
}
.hero-share .share-status {
  color: #fff;
  font-size: 0.85rem;
  text-shadow: 0 1px 8px rgb(0 0 0 / 45%);
}

/* ---------- 固定の「紹介する」札（TOP・作者プロフィール） ---------- */
.intro-dock {
  position: fixed;
  z-index: 6;
  right: clamp(16px, 2.4vw, 32px);
  bottom: calc(clamp(16px, 2.4vw, 28px) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}
.intro-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px 8px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--paper);
  border: 1px solid var(--mustard);
  border-radius: 999px;
  box-shadow:
    0 4px 16px rgb(31 42 38 / 18%),
    inset 0 -3px 0 var(--mustard);
  cursor: pointer;
}
.intro-btn .ico {
  color: var(--accent);
}
.intro-btn:hover {
  background: var(--mustard-paper);
}
.intro-btn:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--accent);
}
.intro-dock .share-status {
  order: -1;
  pointer-events: auto;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}
/* 札が本文・フッターの最後の操作を隠さないよう、ページの下に余白を確保 */
body:has(.intro-dock) .site-footer {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
@media (max-width: 600px) {
  /* スマホ：画面の下の中央に、左右に余白を残した細めの横長の札 */
  .intro-dock {
    left: 16px;
    right: 16px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    align-items: center;
  }
  /* 画面いっぱいにはせず、文字の長さに合わせた細めの札にする */
  .intro-btn {
    width: auto;
    max-width: 100%;
    padding: 8px 20px 8px 16px;
  }
  .intro-dock .share-status {
    align-self: center;
  }
  /* 作者プロフィールの「代表作を見る」は、紹介の札の上に浮かせる */
  .page-profile .jump-works {
    bottom: calc(66px + env(safe-area-inset-bottom));
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease;
  }
  .page-profile .intro-dock {
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease;
  }
  /* 代表作の欄に着いたら、作者プロフィールの固定の「代表作を見る」「この書き手を紹介する」を静かに隠す
     （/jump-works.js。場所は動かさない。TOP の共有の札には使わない） */
  .page-profile .jump-works.is-past,
  .page-profile .intro-dock.is-past {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .page-profile .site-footer,
  body:has(.intro-dock) .site-footer {
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
  }
}

/* ---------- 掲載について：基本掲載は無料 ---------- */
.listing-free {
  max-width: var(--narrow);
  margin: 20px 0 8px;
  padding: 14px 18px;
  background: var(--mustard-paper);
  border-left: 4px solid var(--mustard);
}
.listing-free p {
  margin: 0;
}
.listing-free-title {
  margin-bottom: 4px !important;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

/* 管理者専用の日次集計 */
.analytics-periods { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.analytics-periods [aria-current="page"] { outline: 2px solid currentColor; outline-offset: 2px; }
.analytics-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 1rem; }
.analytics-cards > div { padding: 1rem; border: 1px solid var(--line, #d9d1c5); border-radius: 8px; }
.analytics-cards dd { font-size: 2rem; margin: .5rem 0 0; font-variant-numeric: tabular-nums; }
.analytics-bars { list-style: none; padding: 0; }
.analytics-bars li { display: grid; grid-template-columns: 10rem minmax(80px,1fr) 16rem; gap: 1rem; align-items: center; margin: .8rem 0; }
.analytics-bars meter { width: 100%; height: 1.3rem; accent-color: #58715c; }
@media (max-width: 600px) { .analytics-bars li { grid-template-columns: 1fr; gap: .2rem; } }

/* =========================================================
   掲載ガイドライン：早見表（本屋の棚札・案内札ふう）
   PC は3列の表、スマホは1行ずつ札のように縦に積む（横スクロールなし）
   ========================================================= */
.prose:has(.guide-quick) {
  max-width: 820px;
}
.guide-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.9;
}
.guide-quick {
  margin: 28px 0 40px;
  padding: 18px clamp(14px, 3vw, 24px) 16px;
  border: 1px solid var(--accent);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 2px 0 var(--surface-sunk);
}
.guide-quick-title {
  display: inline-block;
  margin: 0 0 14px;
  padding: 2px 12px 3px;
  border-left: 5px solid var(--mustard);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  line-height: 1.7;
}
.guide-table thead th {
  padding: 6px 10px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
}
.guide-table thead th:nth-child(2) {
  width: 4.5em;
  text-align: center;
}
.guide-table tbody th,
.guide-table tbody td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.guide-table tbody tr:last-child > * {
  border-bottom: 0;
}
.guide-item {
  color: var(--ink);
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
}
.guide-ok {
  /* 読み上げ用の文字(.vh)をセルの中に収め、ページを横に広げない */
  position: relative;
  text-align: center !important;
}
.guide-note {
  color: var(--ink-soft);
  white-space: normal;
  overflow-wrap: anywhere;
}
.guide-label {
  display: none;
}
.guide-mark {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
}
.guide-mark--ok {
  color: var(--accent);
  font-size: 0.95rem;
}
.guide-mark--ng {
  color: #7d5240;
  font-size: 1.3rem;
  line-height: 1.15;
}
.guide-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6 !important;
}
.guide-legend .guide-mark {
  margin-right: 2px;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .guide-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .guide-table,
  .guide-table tbody,
  .guide-table tr,
  .guide-table th,
  .guide-table td {
    display: block;
  }
  .guide-table tbody tr {
    display: grid;
    grid-template-columns: 1.6em minmax(0, 1fr);
    column-gap: 10px;
    margin: 0 0 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--paper);
  }
  .guide-table tbody tr:has(.guide-mark--ng) {
    border-left-color: #7d5240;
  }
  .guide-table tbody th,
  .guide-table tbody td {
    padding: 0;
    border-bottom: 0;
  }
  /* スマホ：印を左に置き、「● ○○している」と一続きに読めるようにする */
  .guide-item {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  .guide-ok {
    grid-column: 1;
    grid-row: 1;
    text-align: left !important;
  }
  .guide-note {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    margin-top: 4px;
    font-size: 0.8rem;
  }
  .guide-label {
    display: inline-block;
    margin-right: 6px;
    padding: 0 6px;
    border-radius: 2px;
    background: var(--mustard-soft);
    color: var(--ochre-ink);
    font-size: 0.7rem;
    font-weight: 700;
  }
}

/* =========================================================
   ルールのページ（掲載ガイドライン・利用規約・プライバシー）
   長文を読みやすく：本文幅・行間・見出しの間・箇条書き
   ========================================================= */
.prose:has(.guide-quick) > h2,
.prose:has(.rules-note) > h2,
.prose:has(.rules-related) > h2 {
  margin: 2.4em 0 0.6em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.prose:has(.rules-related) > h3 {
  margin: 1.6em 0 0.3em;
  padding-left: 10px;
  border-left: 3px solid var(--mustard);
  color: var(--ink);
  font-size: 1rem;
}
.prose:has(.rules-related) > p,
.prose:has(.rules-related) > ul {
  max-width: 40em;
}
.prose:has(.rules-related) > ul {
  margin: 0.4em 0 1em;
  padding-left: 1.4em;
  line-height: 1.9;
}
.prose:has(.rules-related) > ul li::marker {
  color: var(--accent);
}
.rules-note {
  padding: 10px 14px;
  border-left: 4px solid var(--mustard);
  background: var(--surface);
  color: var(--ink);
}
.rules-related {
  margin-top: 2.6em;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: var(--text-sm);
}

/* =========================================================
   掲載の案内（/apply の「掲載について」）：詳しい条件は掲載ガイドラインへ
   ========================================================= */
.listing-more {
  margin: 18px 0 0;
}
.listing-more--small {
  font-size: var(--text-sm);
}

/* ---------- アイコン画像を読めなかったとき：壊れた画像の印の代わりに頭文字の丸を重ねる（JSなし） ---------- */
img.avatar[data-initial] {
  position: relative;
}
img.avatar[data-initial]::after {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--tone-bg, var(--accent-soft));
  color: var(--tone-fg, var(--accent-soft-ink));
  font: inherit;
}

/* ---------- プロフィールアイコン：アップロード方式 ---------- */
.icon-pick:has(input[name="icon_mode"][value="keep"]:checked) .icon-panel--keep,
.icon-pick:has(input[name="icon_mode"][value="upload"]:checked) .icon-panel--upload {
  display: block;
}
.icon-current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.icon-current img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-sunk);
}
.icon-current .small {
  flex: 1 1 220px;
  margin: 0;
}
.icon-current-none {
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.avatar-rights {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: var(--mustard-paper);
  border-left: 3px solid var(--mustard);
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.avatar-rights p {
  margin: 0;
}
.avatar-rights p + p {
  margin-top: 4px;
}
.avatar-rights .avatar-rights-title {
  font-weight: 700;
  color: var(--accent);
}
.avatar-nojs {
  margin: 0;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.88rem;
}
.avatar-nojs[hidden],
.avatar-up[hidden],
.avatar-crop[hidden],
.avatar-done[hidden] {
  display: none;
}
.avatar-up input[type="file"] {
  max-width: 100%;
  min-height: 44px;
  font-size: 0.9rem;
}
.avatar-crop {
  margin-top: 12px;
}
.avatar-crop-lead {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.avatar-stage {
  width: min(280px, 100%);
}
.avatar-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  touch-action: none;
  cursor: grab;
  background: var(--surface-sunk);
}
.avatar-canvas:active {
  cursor: grabbing;
}
.avatar-canvas:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.avatar-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(280px, 100%);
  margin-top: 10px;
  font-size: 0.88rem;
}
.avatar-zoom input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  accent-color: var(--accent);
}
.avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
}
.avatar-actions button {
  min-height: 44px;
}
.avatar-status {
  margin: 10px 0 0;
  font-size: 0.88rem;
  line-height: 1.7;
}
.avatar-status:empty {
  display: none;
}
.avatar-status.is-error {
  padding: 8px 12px;
  color: var(--danger);
  font-weight: 600;
  background: var(--danger-soft);
  border-left: 4px solid var(--danger);
}
.avatar-status.is-ok {
  color: var(--accent);
  font-weight: 700;
}
.avatar-done {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-size: 0.86rem;
}
.avatar-done p {
  margin: 0;
}
.avatar-result {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface-sunk);
}
@media (max-width: 600px) {
  .avatar-actions button {
    width: 100%;
  }
  .avatar-stage,
  .avatar-zoom {
    width: 100%;
  }
}

/* ---------- 管理画面：申請されたプロフィール画像（画像そのものを大きく見せる） ---------- */
.review-icon {
  margin: 24px 0 8px;
  padding: 16px clamp(14px, 3vw, 22px) 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--mustard);
  border-radius: var(--radius);
}
.review-icon h2 {
  margin-top: 0;
}
.review-icon-box {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 24px;
}
.review-icon-figs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 18px;
}
.review-icon-img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  /* 透明な部分が分かるよう、うすい市松模様を敷く */
  background:
    repeating-conic-gradient(#ede6d8 0% 25%, #fbf9f4 0% 50%) 0 0 / 20px 20px;
}
.review-icon-round {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}
.review-icon-round img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-sunk);
  box-shadow: inset 0 0 0 1px rgb(31 42 38 / 6%);
}
.review-icon-text {
  flex: 1 1 220px;
  min-width: 0;
}
.review-icon-text p {
  margin: 0 0 6px;
}
.review-icon-kind {
  font-weight: 700;
}
.review-icon-same,
.review-icon-now {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: var(--text-sm);
}
.review-icon-now img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.url-text {
  overflow-wrap: anywhere;
}

/* ---------- 申請フォーム：送信前の「掲載イメージ」（校正刷りを確かめる） ---------- */
.submit-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.submit-buttons button[hidden] {
  display: none;
}
.confirm-status:empty {
  display: none;
}
.confirm-status {
  margin: 12px 0;
  padding: 10px 14px;
  background: var(--notice);
  border-left: 4px solid var(--mustard);
  font-size: var(--text-sm);
  font-weight: 600;
}
/* 確認しているあいだは、入力欄を隠して掲載イメージと送信ボタンだけにする（入力値はそのまま残る） */
.long-form.is-confirming > :not(.galley, .submit-area) {
  display: none;
}
.galley[hidden] {
  display: none;
}
.galley {
  margin: 8px 0 0;
  padding: clamp(18px, 4vw, 32px) clamp(14px, 3vw, 28px);
  background: var(--paper);
  border-top: 3px double var(--accent);
  border-bottom: 3px double var(--accent);
  outline: none;
}
.galley-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--ochre-ink);
}
.galley-eyebrow span {
  padding: 2px 10px;
  background: var(--mustard-soft);
  border: 1px solid var(--mustard-deep);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.galley h2 {
  margin: 0 0 8px;
}
.galley-lead {
  max-width: 46em;
  margin: 0 0 18px;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
/* 紙を一枚置いて、四隅にトンボ（裁ち落としの印）を付ける */
.galley-sheet {
  position: relative;
  padding: 14px;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) 0 6px / 12px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) 6px 0 / 1px 12px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) 100% 6px / 12px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) calc(100% - 6px) 0 / 1px 12px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) 0 calc(100% - 6px) / 12px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) 6px 100% / 1px 12px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) 100% calc(100% - 6px) / 12px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) calc(100% - 6px) 100% / 1px 12px no-repeat;
}
.galley-profile {
  max-width: none;
  padding: clamp(12px, 3vw, 24px);
  box-shadow: var(--shadow);
}
/* 新しい公開プロフィール（.pf-*）と同じ誌面を、申請中の掲載プレビューにも使う。
   ライブプレビューは細い右カラムなので、その中だけ1段組みにする。 */
.galley-profile.profile.pf {
  padding-top: clamp(18px, 2.4vw, 28px);
}
.galley-profile .pf-rail--preview {
  margin-top: 2px;
}
.galley-profile .pf-rail--preview .pf-rail-tab {
  cursor: default;
}
.galley-profile .pf-rail--preview .pf-rail-tab:hover {
  border-bottom-color: transparent;
  color: var(--ink-soft);
}
.galley-profile .pf-rail--preview .pf-rail-tab.is-current:hover {
  border-bottom-color: var(--mustard);
  color: var(--ink);
}
.galley-profile .pf-rail--preview .pf-rail-tab.is-current {
  border-bottom-color: var(--mustard);
  color: var(--ink);
  font-weight: 700;
}
.galley-profile .pf-panels--preview .pf-work {
  max-width: 760px;
}
.galley-profile .pf-work-link--preview .galley-url {
  margin-top: 4px;
}
.live-preview .galley-profile {
  box-shadow: none;
}
.live-preview .galley-profile .pf-spread,
.live-preview .galley-profile .pf-info {
  grid-template-columns: minmax(0, 1fr);
}
.live-preview .galley-profile .pf-spread {
  padding-block: 22px;
}
.live-preview .galley-profile .pf-bio,
.live-preview .galley-profile .pf-talk {
  margin-top: 22px;
  padding: 22px 0 0;
  border-left: 0;
  border-top: 1px solid var(--line);
}
.live-preview .galley-profile .pf-info {
  gap: 18px;
}
.live-preview .galley-profile .pf-talk {
  margin-top: 0;
}
.live-preview .galley-profile .pf-name {
  font-size: clamp(2rem, 3vw, 2.7rem);
}
.live-preview .galley-profile .pf-name.pz-name--long,
.live-preview .galley-profile .pf-name.pz-name--longer {
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
}
.live-preview .galley-profile .avatar--card {
  width: 72px;
  height: 72px;
  font-size: 2rem;
}
.live-preview .galley-profile .pf-now,
.live-preview .galley-profile .pf-works {
  margin-top: 32px;
}
.live-preview .galley-profile .pf-rail {
  gap: 0 18px;
  overflow-x: auto;
}
.live-preview .galley-profile .pf-rail-tab {
  flex: 0 0 auto;
  max-width: 13em;
  font-size: 0.92rem;
}
.live-preview .galley-profile .pf-work-title {
  font-size: 1.45rem;
}

/* 3作品を横に並べると狭いので、確認画面では縦に並べる */
.galley-profile .pz-work-list--n3 {
  grid-template-columns: minmax(0, 1fr);
}
.galley-icon-note,
.galley-adult {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.galley-adult {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--brick);
  border-radius: 999px;
  color: var(--brick-ink);
  font-weight: 700;
}
.galley-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.galley-link-label {
  display: block;
}
.galley-url {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.galley-check-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 5px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.galley-check-link:hover,
.galley-check-link:focus-visible {
  text-decoration-thickness: 2px;
}
.galley-check-link--invalid {
  color: var(--brick-ink);
  text-decoration: none;
}
.galley-profile .pz-work-body .galley-url {
  margin-top: 8px;
}
.galley-private {
  margin-top: 18px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}
.galley-private:empty {
  display: none;
}
.galley-private-title {
  margin: 0 0 6px;
  font-weight: 700;
}
.galley-private-list {
  display: grid;
  gap: 8px;
  margin: 0;
}
.galley-private-list dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}
.galley-after {
  margin: 16px 0 0;
  font-size: var(--text-sm);
  font-weight: 600;
}
@media (max-width: 600px) {
  .submit-buttons button {
    width: 100%;
    max-width: none;
  }
  .galley-sheet {
    padding: 10px;
  }
  /* 公開プロフィールでは NOW WRITING を画面端まで広げるが、プレビューでは紙面の内側に収める */
  .galley-profile .pf-now {
    margin-inline: 0;
  }
}

/* =========================================================
   TOP「本棚から探す」と「今日、こんな人が書いています。」：文芸誌の誌面
   検索と今日の書き手は、別々の欄として見出し・余白・罫線で区切る（色の面には頼らない）。
   箱で囲まず、罫線・余白・文字の大きさの差で組む（影は使わない。角丸はジャンルの紙札だけ）。
   ふだんは静止。動くのは触れた場所だけ（200〜300ms、数pxの移動・不透明度）。
   今日の書き手の切り替えは /top.js（JavaScript がないときは全員の紹介を縦に並べる）。
   ========================================================= */
.ed-shelf,
.ed-meet {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left))
    max(var(--gutter), env(safe-area-inset-right));
}
.ed-shelf {
  padding-block: clamp(64px, 8vw, 112px) 0;
}
.ed-meet {
  /* 上の新着の帯とは近めに、作者の節の終わりは少し空ける（そのあと本棚の章へ） */
  padding-block: clamp(40px, 5vw, 64px) clamp(40px, 6vw, 72px);
}

/* ---------- 見出し：柱（ハシラ）のような細い罫線と英字、大きな見出し ---------- */
.ed-mast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 32px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}
.ed-kicker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ochre-ink);
}
/* からし色の短い太線：柱の頭の編集記号 */
.ed-kicker::before {
  content: "";
  flex: none;
  width: 40px;
  height: 4px;
  background: var(--mustard);
}
.ed-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}
.ed-mast h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
}
.ed-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: right;
}

/* ---------- 本棚から探す：独立した検索の欄。最後は二重罫線で閉じて、今日の書き手と分ける ---------- */
.ed-shelf {
  padding-bottom: clamp(32px, 4.5vw, 52px);
  border-bottom: 3px double var(--ink);
}
.ed-search {
  margin-top: 24px;
}
.ed-search-label,
.ed-genres-title {
  display: block;
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.ed-search-field {
  display: flex;
  align-items: stretch;
  gap: 8px;
  max-width: 760px;
}
.ed-search-field input {
  flex: 1;
  min-width: 0;
  margin: 0;
  border-color: transparent transparent var(--ink-soft);
  border-radius: 0;
  background: var(--surface);
}
.ed-search-field input:hover {
  border-bottom-color: var(--ink);
}
.ed-search-field button {
  flex: none;
  min-height: var(--tap);
  padding: 8px 26px;
  border: 1px solid var(--mustard-deep);
  border-radius: 2px;
  background: var(--mustard);
  color: var(--ink);
}
.ed-search-field button:hover {
  background: var(--mustard-deep);
}
.ed-genres {
  margin-top: 26px;
}
/* ジャンルの紙札：押せる小さな札として、いつも見えている（入力タグではなく、ジャンル検索へのリンク） */
.ed-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ed-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.ed-chip:hover,
.ed-chip:focus-visible {
  border-color: var(--accent);
  background: var(--mustard-paper);
  transform: translateY(-1px);
}

/* ---------- 今日の書き手：大きな紹介＋作者レール ---------- */
.ed-note {
  margin: 18px 0 0;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--muted);
}
/* 短い文の末尾だけが次の行へ落ちて「途切れた」ように見えないよう、短文は文単位で保つ。 */
.ed-note-sentence:first-child,
.ed-note-sentence:last-child {
  white-space: nowrap;
}
.ed-today {
  margin-top: clamp(24px, 3.5vw, 40px);
}
/* 大きな紹介：左に アイコン・ジャンル・名前、右に 一言・紹介・いま・掲載・訪ねる */
.ed-person {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  column-gap: clamp(28px, 4.5vw, 64px);
  /* 名前と紹介文の下端をそろえる（誌面の見開きのように） */
  align-items: end;
  /* いちばん長い紹介に合わせて高さが余ったときは、余りを下にまとめる（名前と紹介文の間を空けない） */
  align-content: start;
  padding-block: 8px 28px;
}
.ed-person + .ed-person {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.ed-id {
  min-width: 0;
}
.ed-face {
  margin-bottom: 14px;
}
.avatar--lead {
  width: clamp(88px, 9vw, 116px);
  height: clamp(88px, 9vw, 116px);
  font-size: clamp(2.3rem, 4vw, 3rem);
}
.ed-genre {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ochre-ink);
}
.ed-name {
  width: 100%;
  max-width: 100%;
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  /* 行の均等化より、名前に添えた改行候補を優先する。 */
  text-wrap: wrap;
}
/* TOPの名前は括弧・記号の区切りを優先。ひとまとまりだけで欄を超える場合は中でも折り返す。 */
.ed-name-part {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
/* とても長い名前（英数字が続くものなど）は、どこでも折り返せるようにして、行の長さをそろえられるようにする */
.ed-name--longer,
.ed-rail-name.ed-name--longer {
  word-break: break-all;
}
/* 長いペンネーム：大きさを下げて、読める折り返しにする */
.ed-name.ed-name--long {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.ed-name.ed-name--longer {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}
.ed-text {
  min-width: 0;
  padding-top: 6px;
}
.ed-line {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.8;
  color: var(--ink);
}
.ed-rest {
  margin: 12px 0 0;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--ink-soft);
}
.ed-meta {
  display: flex;
  gap: 10px;
  margin: 10px 0 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.ed-meta-label {
  flex: none;
  padding-right: 10px;
  border-right: 1px solid var(--line-strong);
  font-weight: 700;
  color: var(--ink);
}
.ed-visit-row {
  margin: 18px 0 0;
}
.ed-visit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}
.ed-visit-arrow {
  transition: transform 0.25s var(--ease);
}
.ed-visit:hover .ed-visit-arrow,
.ed-visit:focus-visible .ed-visit-arrow {
  transform: translateX(4px);
}

/* JavaScript があるとき：紹介を同じ場所に重ね、選んだ1人だけを見せる（高さはいちばん長い紹介に合わせる） */
.ed-today.ed-js .ed-panels {
  display: grid;
}
.ed-today.ed-js .ed-person {
  grid-area: 1 / 1;
  padding-top: 8px;
  border-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease),
    visibility 0s linear 0.2s;
}
.ed-today.ed-js .ed-person.is-current {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.28s var(--ease) 0.06s,
    transform 0.28s var(--ease) 0.06s;
}

/* 作者レール：今日の書き手を並べ、押すとすぐ下の紹介が切り替わる（ページは移動しない） */
.ed-rail {
  display: grid;
  grid-template-columns: repeat(var(--rail-n, 6), minmax(0, 1fr));
  gap: 0 clamp(8px, 1.4vw, 16px);
  margin-bottom: clamp(20px, 3vw, 32px);
}
/* 2・3人のとき（PC）：1枠の幅に上限を付けて左に寄せる（小さな目次・索引のように。右は空けたまま） */
@media (min-width: 861px) {
  .ed-today--n2 .ed-rail {
    grid-template-columns: repeat(2, minmax(180px, 240px));
    justify-content: start;
  }
  .ed-today--n3 .ed-rail {
    grid-template-columns: repeat(3, minmax(170px, 220px));
    justify-content: start;
  }
}
.ed-rail[hidden] {
  display: none;
}
.ed-today--n2 .ed-rail {
  --rail-n: 2;
}
.ed-today--n3 .ed-rail {
  --rail-n: 3;
}
.ed-today--n4 .ed-rail {
  --rail-n: 4;
}
.ed-today--n5 .ed-rail {
  --rail-n: 5;
}
.ed-rail-tab {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  min-height: 64px;
  padding: 12px 6px 10px 2px;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: none;
  color: var(--ink-soft);
  font-weight: 500;
  text-align: left;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.ed-rail-tab:hover {
  background: var(--surface);
  color: var(--ink);
}
/* 選んでいる書き手：上辺のからし色の線・少し濃い文字・うすい紙色 */
.ed-rail-tab[aria-selected="true"] {
  border-top: 3px solid var(--mustard);
  padding-top: 10px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}
.avatar--rail {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}
.ed-rail-text {
  display: grid;
  min-width: 0;
}
.ed-rail-name {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.35;
  /* 名前は1行で見せる（途中で折り返さない）。収まらない長い名前だけ末尾を「…」で省く（読み上げは全文） */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ed-rail-name.ed-name--longer {
  font-size: 0.82rem;
}
.ed-rail-genre {
  overflow: hidden;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ochre-ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 入れ替えと一覧への導線：ボタンではなく文字の導線 */
.meet-again {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin: clamp(24px, 3.5vw, 36px) 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}
.meet-again a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}
.meet-again a span {
  transition: transform 0.3s var(--ease);
}
.meet-again a:hover span {
  transform: translateX(3px);
}
.meet-again-note {
  font-size: 0.78rem;
  color: var(--muted);
}
.meet-again .meet-more {
  margin-left: auto;
  letter-spacing: 0.08em;
}

/* まだ誰もいないとき */
.ed-empty {
  margin-top: 28px;
  padding: 28px 0;
  border-block: 1px solid var(--line-strong);
}
.ed-empty-lead {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
}

/* ---------- 共有：コピーできたら、共有の印がチェックに変わる ---------- */
.intro-icons {
  display: inline-grid;
  flex: none;
}
.intro-icons .ico {
  grid-area: 1 / 1;
  transition:
    opacity 0.2s var(--ease),
    transform 0.35s var(--ease);
}
.intro-icons .ico--check {
  opacity: 0;
  transform: scale(0.6);
}
.intro-icons .ico--check path {
  stroke-width: 2;
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  transition: stroke-dashoffset 0.35s var(--ease) 0.08s;
}
.intro-btn.is-copied .ico--share {
  opacity: 0;
  transform: translateY(-4px);
}
.intro-btn.is-copied .ico--check {
  opacity: 1;
  transform: none;
}
.intro-btn.is-copied .ico--check path {
  stroke-dashoffset: 0;
}

/* ---------- タブレット・スマホ ---------- */
@media (max-width: 860px) {
  .ed-person {
    grid-template-columns: minmax(0, 1fr);
  }
  .ed-text {
    padding-top: 14px;
  }
  /* 作者レールは折り返して並べる（極細の6分割にしない・横スクロールにしない） */
  .ed-rail,
  .ed-today--n4 .ed-rail,
  .ed-today--n5 .ed-rail {
    --rail-n: 3;
  }
  .ed-today--n2 .ed-rail {
    --rail-n: 2;
  }
}
@media (max-width: 600px) {
  .ed-mast {
    grid-template-columns: minmax(0, 1fr);
  }
  .ed-sub {
    margin-top: 8px;
    text-align: left;
  }
  .ed-chip {
    padding-inline: 10px 12px;
  }
  /* 大きな紹介：アイコンを少し小さくし、名前を大きく */
  .avatar--lead {
    width: 72px;
    height: 72px;
    font-size: 2rem;
  }
  .ed-name {
    font-size: clamp(2rem, 9vw, 2.4rem);
  }
  .ed-name.ed-name--long {
    font-size: 1.75rem;
  }
  .ed-name.ed-name--longer {
    font-size: 1.4rem;
  }
  /* スマホの作者レール：2列×3行（名前が読める幅） */
  .ed-rail,
  .ed-today--n3 .ed-rail,
  .ed-today--n4 .ed-rail,
  .ed-today--n5 .ed-rail {
    --rail-n: 2;
  }
  .meet-again .meet-more {
    margin-left: 0;
  }
}

/* ---------- 動きを減らす設定：切り替えは一瞬で ---------- */
@media (prefers-reduced-motion: reduce) {
  .ed-shelf *,
  .ed-meet *,
  .intro-icons .ico,
  .intro-icons .ico path {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* =========================================================
   申請フォームの入力補助（/profile-form.js）
   文字数・ジャンルの選択数・作風タグの紙札。JavaScript がないときは出さない（hidden）。
   ========================================================= */
/* 文字数：入力欄のすぐ下、右寄せ。上限の9割からは少しだけ注意の色 */
.char-count {
  margin: 4px 0 0;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--muted);
}
.char-count[hidden] {
  display: none;
}
.char-count.is-near {
  color: var(--ochre-ink);
  font-weight: 700;
}

/* ジャンル：いくつ選んでいるか */
.pick-count {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.pick-count[hidden],
.pick-note[hidden] {
  display: none;
}
.pick-now {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pick-count.is-full .pick-now {
  color: var(--ochre-ink);
}
.pick-note {
  font-size: 0.8rem;
}
/* 3個選んだあとの、選べなくなったジャンル */
.chip.is-locked {
  cursor: not-allowed;
}
.chip.is-locked > span {
  border-style: dashed;
  color: var(--muted);
  opacity: 0.6;
}
.chip.is-locked input {
  cursor: not-allowed;
}

/* 作風タグ：小さな紙札。入力欄の幅いっぱいには伸ばさない */
.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.tag-chips[hidden] {
  display: none;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 40px;
  padding-left: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
}
.tag-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.tag-remove {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-height: 40px;
  margin-left: 2px;
  padding: 0;
  border: 0;
  border-left: 1px dashed var(--line);
  border-radius: 0 4px 4px 0;
  background: none;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 400;
}
.tag-remove:hover {
  background: var(--mustard-paper);
  color: var(--ink);
}
.tag-entry {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin-top: 10px;
}
.tag-entry .tag-input {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.tag-add {
  flex: none;
  min-height: var(--tap);
  padding: 8px 18px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--surface);
  color: var(--accent);
}
.tag-add:hover {
  background: var(--accent-soft);
}
.tag-how {
  margin: 6px 0 0;
}
.tag-count {
  margin: 4px 0 0;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.tag-field.is-full .tag-count {
  color: var(--ochre-ink);
  font-weight: 700;
}
.tag-status {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.tag-status:empty {
  display: none;
}

/* 任意のまとまりの見出し：何を追加できるかを、本文より少し強く */
.optional-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
/* からし色の短い編集記号 */
.optional-head::before {
  content: "";
  flex: none;
  width: 14px;
  height: 3px;
  background: var(--mustard);
}
.optional-desc {
  margin: 0 0 6px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
@media (max-width: 600px) {
  .tag-entry {
    max-width: none;
  }
  .optional-head {
    font-size: 0.98rem;
  }
}

/* ---------- 申請フォーム：入力途中の一時保存（/form-draft.js） ---------- */
.draft-restored {
  margin: 0 0 20px;
  padding: 12px 16px 6px;
  border-left: 3px solid var(--mustard);
  background: var(--surface);
}
.draft-restored[hidden],
.draft-note[hidden] {
  display: none;
}
.draft-restored-title {
  margin: 0 0 4px;
  font-weight: 700;
}
.draft-restored .small {
  margin: 0 0 4px;
}
.draft-restored-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
}
.draft-discard {
  min-height: var(--tap);
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: none;
  color: var(--accent);
  font-size: 0.88rem;
}
.draft-discard:hover {
  background: var(--accent-soft);
}
/* 「続きから入力する」だけ、少しだけ強く（深緑の文字ボタン） */
.draft-continue,
.draft-continue:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
.draft-continue:hover {
  background: var(--accent-strong);
}
/* 復元した・削除した・保存できない、だけを出す欄（ふだんは何も出さない） */
.draft-status {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}
.draft-status:empty {
  display: none;
}
.draft-note {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 0 0 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* =========================================================
   TOPと申し込み導線の整理
   - ヘッダー：ロゴの隣に「書き手を探す」（少しだけ強く）、右に「この名鑑について」と申し込み
   - TOP画像の下に新着の帯 → こんな人が書いています → 本棚から探す → 2つの案内の頁
   - 申し込みページの「掲載について」（旧 /listing の内容）
   ========================================================= */
:root {
  /* くすんだからし色（文字は --ink。コントラスト比 約6.7:1） */
  --mustard-muted: #cba557;
}

/* ---------- ヘッダー：ロゴ → 書き手を探す …… この名鑑について・掲載を申し込む ---------- */
.site-nav {
  flex: 1;
  align-items: center;
  margin-left: clamp(24px, 3.4vw, 48px);
}
.site-nav a.nav-find,
.site-nav a.nav-find:hover {
  margin-right: auto;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.5em;
}
.site-nav a.nav-find:hover {
  text-decoration-color: var(--mustard-deep);
}
@media (max-width: 600px) {
  .site-nav {
    margin-left: 0;
  }
  .site-nav a.nav-find,
  .site-nav a.nav-find:hover {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
  }
}
/* 359px以下の狭いスマホ：ロゴの右に「掲載を申し込む」を置くと重なる（実測：337px以下で重なり、
   359px以下では隙間が27pxを切る）。ロゴの横に押し込まず、CTAをナビの行へ戻して
   「書き手を探す／この名鑑について／掲載を申し込む」の3項目を1行に並べる（HTMLの順＝Tabの順のまま）。
   ナビの行はもともとあるので、ヘッダーの高さは変わらない。360px以上は従来どおり */
@media (max-width: 359px) {
  .site-nav {
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
  }
  .site-nav a.nav-find,
  .site-nav a.nav-find:hover {
    margin-right: 0;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
  }
  .site-nav a.nav-cta,
  .site-nav a.nav-cta:hover {
    position: static;
    padding: 0 8px;
    letter-spacing: 0;
  }
  /* CTAがヘッダーの下端の行に来るので、フォーカス枠が上に残るヘッダーの端で切れないよう下に少しだけ余白 */
  body:not(.page-admin) .site-header {
    padding-bottom: 6px;
  }
}

/* ---------- 新着：TOP画像のすぐ下の、細いお知らせの帯（新しく掲載された書き手） ---------- */
.page-home main > .ed-news {
  margin-block: 0;
}
.ed-news {
  max-width: 1120px;
  margin-inline: auto;
  padding-block: 14px 0;
  padding-inline: max(var(--gutter), env(safe-area-inset-left))
    max(var(--gutter), env(safe-area-inset-right));
}
/* 生成りより少しだけ明るい紙の帯。上下に細い罫線（影・角丸は付けない） */
.ed-news-bar {
  display: flex;
  align-items: center;
  gap: 0 clamp(12px, 2vw, 20px);
  min-height: 64px;
  padding: 6px clamp(14px, 2vw, 20px);
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.ed-news-title {
  flex: none;
  margin: 0;
  padding-right: clamp(12px, 2vw, 20px);
  border-right: 1px solid var(--line-strong);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ochre-ink);
}
.ed-news-window {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.ed-news-track {
  display: flex;
  width: max-content;
}
.ed-news-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}
.ed-news-list li {
  position: relative;
  padding-inline: 0 2.4em;
}
.ed-news-list li::after {
  content: "";
  position: absolute;
  right: 1.2em;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
  transform: translateY(-50%);
}
.ed-news-list a {
  display: inline-flex;
  align-items: center;
  gap: 0 0.9em;
  min-height: var(--tap);
  color: var(--ink);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.ed-news-list .ed-news-text {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}
.ed-news-list time {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--ochre-ink);
}
/* 一時停止：補助の操作なので、小さく静かに（押せる大きさは確保する） */
.ed-news-pause {
  flex: none;
  min-height: var(--tap);
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  cursor: pointer;
}
.ed-news-pause:hover {
  color: var(--ink);
}
/* 流れているあいだ（/top.js が付ける）。触れている間と一時停止中は止まる */
.ed-news.is-moving .ed-news-window {
  overflow: hidden;
}
.ed-news.is-moving .ed-news-track {
  animation: ed-news-flow var(--news-duration, 60s) linear infinite;
}
.ed-news.is-moving:hover .ed-news-track,
.ed-news.is-paused .ed-news-track {
  animation-play-state: paused;
}
@keyframes ed-news-flow {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/* 動きを減らす設定：流さず、止まったまま横に読む */
@media (prefers-reduced-motion: reduce) {
  .ed-news .ed-news-track {
    animation: none !important;
  }
  .ed-news.is-moving .ed-news-window {
    overflow-x: auto;
  }
  .ed-news-list[data-clone],
  .ed-news-pause {
    display: none;
  }
}
@media (max-width: 600px) {
  .ed-news {
    padding-block: 10px 0;
  }
  .ed-news-bar {
    min-height: 56px;
    padding-inline: 12px;
  }
  .ed-news-title {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
  }
  .ed-news-list a {
    font-size: 0.86rem;
  }
}

/* ---------- 2つの案内の頁：同じ幅・同じ高さの棚として上下に並べる ---------- */
/* 上下の頁は、文章の多いほうの高さにそろえる（1fr の行） */
.cta-pair {
  display: grid;
  grid-auto-rows: 1fr;
  gap: clamp(16px, 2vw, 24px);
  max-width: 1120px;
  margin: clamp(96px, 12vw, 160px) auto 0;
  padding-inline: max(var(--gutter), env(safe-area-inset-left))
    max(var(--gutter), env(safe-area-inset-right));
}
.cta-pair > .essay,
.cta-pair > .invite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: clamp(440px, 40vw, 500px);
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.cta-pair > .essay {
  background: var(--mustard-muted);
  color: var(--ink);
}
.cta-pair .essay-text,
.cta-pair .invite-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  max-width: none;
  padding: clamp(40px, 5vw, 64px) clamp(28px, 4.4vw, 60px);
}
.cta-pair .essay-photo,
.cta-pair .invite-photo {
  height: auto;
  min-height: 0;
}
/* 写真は枠いっぱいに敷き、頁の高さは文章の側で決める（写真の縦横比で高さが変わらない） */
.cta-pair .photo {
  position: relative;
}
.cta-pair .photo img {
  position: absolute;
  inset: 0;
}
.cta-pair .essay h2,
.cta-pair .invite h2 {
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 2.7vw, 2.4rem);
  line-height: 1.35;
}
.cta-pair .essay .section-no {
  color: var(--ink);
}
.cta-pair .essay-text > p:not(.section-no):not(.essay-link) {
  margin: 0 0 0.9em;
  font-size: 0.98rem;
  line-height: 2;
  color: var(--ink);
}
.cta-pair .essay-link {
  margin: 12px 0 0;
}
.cta-pair .essay .text-arrow {
  color: var(--accent-strong);
}
.cta-pair .invite p {
  margin: 0 0 0.9em;
  font-size: 0.98rem;
  line-height: 2;
}
.cta-pair .invite-links {
  margin-top: 16px !important;
}
@media (max-width: 860px) {
  .cta-pair {
    grid-auto-rows: auto;
  }
  .cta-pair > .essay,
  .cta-pair > .invite {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .cta-pair .essay-photo,
  .cta-pair .invite-photo {
    order: -1;
    height: auto;
    margin: 0;
    aspect-ratio: 16 / 10;
  }
  .cta-pair .essay-text,
  .cta-pair .invite-text {
    padding: 32px clamp(20px, 5vw, 40px) 40px;
  }
}
@media (max-width: 600px) {
  .cta-pair {
    margin-top: 72px;
    padding-inline: 0;
  }
  .cta-pair .essay h2,
  .cta-pair .invite h2 {
    font-size: 1.6rem;
  }
}

/* ---------- 申し込み：掲載について（ログインの前後とも開いたまま）→ 掲載を申し込む → 本人確認 → フォーム ---------- */
.listing-guide {
  max-width: 1000px;
  margin: clamp(24px, 4vw, 40px) 0 clamp(40px, 6vw, 64px);
}
.listing-guide .guide-part .about-h {
  margin-top: clamp(36px, 5vw, 56px);
}
.listing-guide .guide-part:first-child .about-h {
  margin-top: 0;
}
.listing-guide .listing-text {
  margin: 14px 0 0;
}
.listing-guide .principles li {
  padding: 22px 0 6px;
}
.listing-photo {
  margin: clamp(24px, 4vw, 36px) 0 0;
}
.listing-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 2px;
}
@media (max-width: 600px) {
  .listing-photo img {
    aspect-ratio: 4 / 3;
  }
}
.guide-notes {
  max-width: 40em;
  margin: 18px 0 0;
  padding-left: 1.2em;
  line-height: 2;
}
.guide-notes li + li {
  margin-top: 6px;
}
.guide-notes .text-link {
  margin-left: 0.4em;
}
.apply-jump {
  margin: 12px 0 0;
  font-size: var(--text-sm);
}
/* 案内のあとの「掲載を申し込む」：ここから本人確認・申込フォームへ続く */
.apply-start {
  max-width: 1000px;
  margin: 0 0 clamp(24px, 4vw, 40px);
}
.apply-start .about-h {
  margin-top: 0;
}
.apply-start .join-steps {
  max-width: none;
  margin-top: 24px;
}

/* =========================================================
   プロフィール：名刺（アイコン＋名前・作品ジャンル・作風）→ 自己紹介（全幅）
   → 活動場所｜交流について（同じ幅の2列）→ いま、書いていること → 代表作。
   節の番号は付けず、文字の大きさ・罫線・余白で階層を示す。
   ========================================================= */
.pz-top {
  padding: clamp(36px, 5vw, 64px) 0 0;
}
.pz-top .eyebrow {
  margin: 0 0 clamp(14px, 2vw, 20px);
}
.pz-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 44px);
  align-items: start;
  padding: clamp(22px, 3vw, 34px) 0;
  border-block: 2px solid var(--ink);
}
.avatar--card {
  width: clamp(96px, 11vw, 136px);
  height: clamp(96px, 11vw, 136px);
  font-size: clamp(2.6rem, 4.8vw, 3.6rem);
}
.pz-card-body {
  min-width: 0;
}
/* 名前はページでいちばん強い文字。長い名前は少し小さくし、2行ほどで折り返す */
.pz-top .namecard-name {
  margin: 0;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.pz-top .namecard-name.pz-name--long {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
}
.pz-top .namecard-name.pz-name--longer {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: 0.02em;
}
.pz-facts {
  display: grid;
  gap: 14px;
  margin: clamp(18px, 2.4vw, 26px) 0 0;
}
.pz-fact {
  display: grid;
  gap: 6px;
}
.pz-fact dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}
.pz-fact dd {
  margin: 0;
  min-width: 0;
}
.pz-top .namecard-genres {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  letter-spacing: 0.08em;
  color: var(--ink);
}
.pz-top .pz-tags li {
  overflow-wrap: anywhere;
}
.pz-top .pz-actions {
  margin-top: 20px;
}

/* 自己紹介：横幅いっぱいの節。本文は読みやすい行の長さで組む */
.profile.zine > .pz-bio {
  margin: clamp(44px, 6vw, 72px) 0 0;
}
.profile.zine > .pz-bio .profile-bio {
  max-width: 46em;
  margin: 0;
  font-size: 1.04rem;
  line-height: 2.1;
}

/* 活動場所｜交流について：同じ幅・同じ余白・同じ見出しの一組 */
.pz-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  align-items: stretch;
  margin: clamp(40px, 6vw, 64px) 0 0;
}
.pz-pair-box {
  min-width: 0;
  margin: 0;
  padding: 18px clamp(18px, 2.4vw, 26px) 20px;
  background: var(--mustard-paper);
  border-top: 3px solid var(--mustard);
}
.pz-pair-box .pz-h {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--mustard-deep);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}
.pz-places .nc-links {
  display: grid;
  gap: 0;
}
.pz-places .nc-link {
  overflow-wrap: anywhere;
}
.pz-talk-text {
  margin: 0;
  line-height: 1.9;
  color: var(--ink);
}
.pz-talk .nc-note {
  margin: 8px 0 0;
}

/* プロフィール末尾：次の書き手さんへ（掲載内容の修正の下） */
.next-writer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  max-width: 1080px;
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.next-writer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.next-writer-note {
  font-size: 0.78rem;
  color: var(--muted);
}

/* 申請の確認画面（掲載イメージ）：公開ページと同じ組み方。画像は枠に合わせて切り抜く */
.galley-profile .pz-top {
  padding-top: clamp(12px, 2vw, 20px);
}
.galley-profile .avatar--card.galley-avatar {
  object-fit: cover;
}
/* 確認画面はフォームの幅に収めるので、名前とアイコンを公開ページより一回り小さく（長い名前も2行ほどに） */
.galley-profile .avatar--card {
  width: clamp(76px, 9vw, 104px);
  height: clamp(76px, 9vw, 104px);
  font-size: clamp(2.1rem, 3.6vw, 2.8rem);
}
.galley-profile .pz-top .namecard-name {
  font-size: clamp(2rem, 4vw, 3rem);
}
.galley-profile .pz-top .namecard-name.pz-name--long {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.galley-profile .pz-top .namecard-name.pz-name--longer {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

@media (max-width: 600px) {
  .pz-top {
    padding-top: 28px;
  }
  /* スマホ：アイコンを上に、名前・作品ジャンル・作風をその下に1列で */
  .pz-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .avatar--card {
    width: 76px;
    height: 76px;
    font-size: 2.1rem;
  }
  .pz-top .namecard-name {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }
  .pz-top .namecard-name.pz-name--long {
    font-size: 1.75rem;
  }
  .pz-top .namecard-name.pz-name--longer {
    font-size: 1.4rem;
  }
  .profile.zine > .pz-bio .profile-bio {
    font-size: 1rem;
    line-height: 2;
  }
  .pz-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================
   申請フォーム（新規・修正）：入力中の掲載プレビュー（/live-preview.js があるときだけ）
   - 広い画面：フォーム（約58%）の右に、プレビュー（約42%）をいつも出す。スクロールしても見える
   - 狭い画面：下に固定した「プレビューを見る」から、全画面のダイアログで見せる
   - 組み方は送信直前の掲載イメージと同じ（/profile-preview.js）。幅に合わせた並び替えも同じ決まり
   ========================================================= */
.live-preview[hidden],
.live-preview-open[hidden] {
  display: none;
}
.live-preview-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.live-preview-note {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
/* 空の必須項目の補助（ライブプレビューだけ。申請・確認・公開には出ない） */
.live-profile .pv-empty {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.live-profile .pf-name.pv-empty {
  font-size: 1.25rem;
  line-height: 1.5;
}
/* プレビュー・掲載イメージの中では、置き場所の幅に合わせて並びを変える（同じ決まりを両方に） */
.live-preview-body,
.live-dialog-body,
.galley [data-confirm-body] {
  container-type: inline-size;
}
@container (max-width: 560px) {
  /* 右カラムやスマホのプレビューでは、公開プロフィールと同じ順番を1段で読む */
  .galley-profile .pf-spread,
  .galley-profile .pf-info {
    grid-template-columns: minmax(0, 1fr);
  }
  .galley-profile .pf-spread {
    gap: 0;
    padding-block: 22px;
  }
  .galley-profile .pf-bio,
  .galley-profile .pf-talk {
    margin-top: 22px;
    padding: 22px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .galley-profile .pf-info {
    gap: 18px;
  }
  .galley-profile .pf-talk {
    margin-top: 0;
  }
  .galley-profile .avatar--card {
    width: 76px;
    height: 76px;
    font-size: 2.1rem;
  }
  .galley-profile .pf-name {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }
  .galley-profile .pf-name.pz-name--long {
    font-size: 1.75rem;
  }
  .galley-profile .pf-name.pz-name--longer {
    font-size: 1.45rem;
  }
  .galley-profile .pf-rail {
    gap: 0 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }
  .galley-profile .pf-rail-tab {
    flex: 0 0 auto;
    max-width: 13em;
    font-size: 0.92rem;
  }
  .galley-profile .pf-work-title {
    font-size: 1.45rem;
  }
}

@media (min-width: 1100px) {
  /* 新規掲載は入力しながら右で見られる2列。修正申請はフォームを潰さず、必要なときだけ右から出す。 */
  main:has(.form-with-preview.has-preview:not(.preview-drawer-mode)) {
    max-width: 1360px;
  }
  .form-with-preview.has-preview:not(.preview-drawer-mode) {
    display: grid;
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    gap: clamp(28px, 3vw, 48px);
    align-items: start;
  }
  .form-main {
    min-width: 0;
  }
  .live-preview {
    position: sticky;
    top: 112px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 128px);
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
  }
  .live-preview-head {
    padding: 14px 18px 10px;
    border-bottom: 3px double var(--accent);
  }
  .live-preview-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .live-preview-body {
    overflow: auto;
    overscroll-behavior: contain;
    padding: 0 14px 18px;
  }
  .form-with-preview.has-preview:not(.preview-drawer-mode) + .live-preview-open {
    display: none;
  }

  /* 修正申請：右側のスライド式プレビュー。フォーム本体の幅は変えない */
  .preview-drawer-mode .live-preview {
    position: fixed;
    z-index: 60;
    top: 0;
    right: 0;
    width: min(640px, 46vw);
    height: 100dvh;
    max-height: none;
    border: 0;
    border-left: 1px solid var(--line-strong);
    border-radius: 0;
    box-shadow: -18px 0 42px rgb(31 42 38 / 18%);
    transform: translateX(102%);
    visibility: hidden;
    transition:
      transform 0.28s var(--ease),
      visibility 0s linear 0.28s;
  }
  .preview-drawer-mode.is-preview-drawer-open .live-preview {
    transform: translateX(0);
    visibility: visible;
    transition:
      transform 0.28s var(--ease),
      visibility 0s;
  }
  /* 修正申請のPC：上の案内（入力の流れ・下書きの案内・修正する掲載）は全幅。
     その下から「左：フォーム／右：プレビューを見る」の2列（入力の流れは2列の外に置き、5つとも切らずに見せる） */
  .preview-drawer-mode {
    display: grid;
    grid-template-columns: minmax(0, var(--narrow)) minmax(200px, 1fr);
    column-gap: clamp(28px, 3vw, 48px);
    align-items: start;
  }
  .preview-drawer-mode > .steps-nav,
  .preview-drawer-mode > .form-lead {
    grid-column: 1 / -1;
  }
  .preview-drawer-mode > .steps-nav {
    max-width: none;
  }
  .preview-drawer-mode > .form-main {
    grid-column: 1;
  }
  /* 右の列：「プレビューを見る」を列の横方向の中央に。縦は画面の中ほどに留まる（sticky） */
  .preview-drawer-mode > .preview-rail {
    grid-column: 2;
    align-self: stretch;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  .preview-drawer-mode .live-preview-open {
    position: sticky;
    top: calc(50vh - 24px);
    z-index: 3;
    min-height: 48px;
    padding-inline: 22px;
    box-shadow: 0 6px 18px rgb(0 0 0 / 18%);
  }
  .preview-drawer-mode .live-preview-open:active {
    transform: translateY(1px);
  }
  html.is-preview-drawer-open .preview-drawer-mode .live-preview-open {
    visibility: hidden;
  }
  .live-preview-drawer-close {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--ink);
    border-radius: 2px;
    background: transparent;
    color: var(--ink);
    font-size: 0.88rem;
  }
  html.is-preview-drawer-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgb(18 24 21 / 20%);
    pointer-events: none;
  }
  /* 送信前の最終確認へ進んだら、ドロワー本体と暗幕は見せない */
  html.is-preview-drawer-open:has(.long-form.is-confirming)::before {
    display: none;
  }

  /* 送信直前の確認を開いているあいだは、確認の掲載イメージだけにする */
  .form-with-preview.has-preview:has(.long-form.is-confirming) {
    display: block;
  }
  .form-with-preview.has-preview:has(.long-form.is-confirming) .live-preview,
  .form-with-preview.has-preview:has(.long-form.is-confirming) + .live-preview-open {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .preview-drawer-mode .live-preview {
    transition: none;
  }
}
@media (max-width: 1099px) {
  .live-preview {
    display: none;
  }
  /* 下に固定した「プレビューを見る」。最後の送信ボタンに重ならないよう、下に余白を足す */
  .live-preview-open {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 30;
    min-height: 48px;
    padding: 0 24px;
    background: var(--accent);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgb(0 0 0 / 18%);
    color: var(--accent-ink);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    /* 狭い画面（360px など）でも「プレビューを見る」を1行のまま見せる */
    white-space: nowrap;
    transform: translateX(-50%);
  }
  .form-with-preview.has-preview {
    padding-bottom: 80px;
  }
  /* 修正申請：入力の流れの5つは横に流さず折り返し、文字やボタンを画面の端で切らない */
  .preview-drawer-mode > .steps-nav ol {
    flex-wrap: wrap;
    overflow: visible;
  }
}
@media (max-width: 600px) {
  /* スマホ：折り返した入力の流れ（3〜4段）が入力中の画面を覆わないよう、札を小さめにし、上に貼り付けない */
  .preview-drawer-mode > .steps-nav {
    position: static;
  }
  .preview-drawer-mode > .steps-nav ol {
    gap: 4px;
  }
  .preview-drawer-mode > .steps-nav a {
    min-height: 36px;
    padding: 0 9px;
    font-size: 0.76rem;
  }
}
body:has(.long-form.is-confirming) .live-preview-open {
  display: none;
}
/* 全画面のプレビュー（<dialog>）。背景は動かさず、中だけスクロールする */
.live-preview-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  background: var(--paper);
  border: 0;
  color: var(--ink);
}
.live-preview-dialog[open] {
  display: flex;
  flex-direction: column;
}
.live-preview-dialog::backdrop {
  background: rgb(0 0 0 / 40%);
}
.live-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  border-bottom: 3px double var(--accent);
}
.live-preview-dialog > .live-preview-note {
  margin: 0;
  padding: 8px 16px 0;
}
.live-dialog-close {
  min-height: var(--tap);
  padding: 0 18px;
  background: none;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.live-dialog-body {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 12px calc(24px + env(safe-area-inset-bottom));
  outline: none;
}
html.is-preview-open,
html.is-preview-open body {
  overflow: hidden;
}

/* =========================================================
   TOPの見出しの強弱：新着（細い帯）＜ こんな人が書いています（深緑の見出し帯）＜ 本棚から探す（絵）
   大きな絵は「本棚から探す」だけ。作者そのものと検索を主役にする
   ========================================================= */
/* 見出しは文節の切れ目でだけ折り返す（「こんな人が／書いています」。1文字だけの行を作らない） */
.sv-phrase {
  display: inline-block;
}

/* ---------- こんな人が書いています：深緑の横長の見出し帯（ごく弱い同系色のグラデーション。左の飾り線は付けない） ---------- */
.ed-mast.ed-band {
  padding: clamp(14px, 1.8vw, 20px) clamp(18px, 2.6vw, 30px);
  background: linear-gradient(90deg, #1b4236 0%, #214a3d 55%, #285244 100%);
  border-bottom: 0;
  border-left: 0;
  color: #f3eddf;
}
.ed-band .ed-kicker {
  margin-bottom: 6px;
  color: rgb(243 237 223 / 72%);
}
.ed-band .ed-kicker::after {
  background: rgb(243 237 223 / 28%);
}
.ed-band h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  color: #f6f0e2;
}
/* 帯のすぐ下に作者の紹介を続ける（間を広げない） */
.ed-band + .ed-note {
  margin-top: 14px;
}

/* ---------- 本棚から探す：TOPでただ1つの大きな絵。深緑の面に見出し、絵の下に検索 ---------- */
.shelf-visual {
  position: relative;
  aspect-ratio: 21 / 5;
  margin: 0 0 clamp(20px, 3vw, 28px);
  overflow: hidden;
  background: var(--paper);
  border-radius: 2px;
}
.shelf-visual picture {
  display: block;
  height: 100%;
}
.shelf-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
/* 見出しは深緑の面の中に、左寄せで */
.shelf-visual-text {
  position: absolute;
  top: 50%;
  left: 14%;
  width: 37%;
  transform: translateY(-50%);
}
.shelf-visual .ed-mast {
  display: block;
  padding: 0;
  border: 0;
}
.shelf-visual .ed-kicker {
  margin-bottom: 10px;
  color: var(--mustard-soft);
}
.shelf-visual .ed-kicker::after {
  background: rgb(251 246 234 / 45%);
}
.shelf-visual .ed-mast h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  color: #fbf6ea;
}
.shelf-visual .ed-sub {
  margin: 8px 0 0;
  text-align: left;
  color: #e8e4d8;
}

@media (max-width: 860px) {
  .shelf-visual {
    aspect-ratio: 3 / 1;
  }
}
@media (max-width: 600px) {
  /* 狭いスマホでは長い1文自体が画面幅を超えるため、その場合だけ文中の自然な位置で折り返す */
  .ed-meet .ed-note-sentence {
    white-space: normal;
  }
  /* 左の本棚と深緑の面が残るように、少し左寄せで切る */
  .shelf-visual {
    aspect-ratio: 8 / 5;
  }
  .shelf-visual-img {
    object-position: 12% 50%;
  }
  .shelf-visual-text {
    width: 62%;
  }
  .shelf-visual .ed-mast h2 {
    font-size: 1.35rem;
  }
  /* 英字は1行に収める（細い列で2行にしない） */
  .shelf-visual .ed-kicker {
    margin-bottom: 6px;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    white-space: nowrap;
  }
  .shelf-visual .ed-sub {
    font-size: 0.78rem;
    line-height: 1.6;
  }
}


/* =========================================================
   EDITORIAL TOP
   TOP を、カードUIではなく文芸誌の見開き／作家名鑑の誌面として見せる。
   - 非対称の構成と、PCでの文字／写真ブロックの重なり
   - 縦組みはページ端の柱・章ラベルだけに控えめに使う
   - 作者はカードの並びではなく「索引」として見せる
   - スマホは重なりを外し、読みやすさを優先する
   機能・DOM・検索・プロフィールページは変更しない。
   ========================================================= */

/* ---------- 全幅共通 ---------- */
.page-home main {
  background-color: var(--paper);
}

/* HERO：Webヒーローではなく「表紙」 */
.page-home .hero {
  position: relative;
  isolation: isolate;
}
/* コピーが写真から少し浮き出るよう、文字のすぐ下にごく薄い影、下側の暗がりを少しだけ深く */
.page-home .hero-photo::after {
  background: linear-gradient(
    to top,
    rgb(16 22 18 / 76%) 0%,
    rgb(16 22 18 / 42%) 34%,
    rgb(16 22 18 / 0%) 64%
  );
}
.page-home .hero-title {
  justify-self: start;
  width: min(100%, 1180px);
}
/* ヒーローはコピーだけ。明朝の字面で見せる。2行で、行は「、」と文節の切れ目で折り返す */
.page-home .hero-title h1 {
  max-width: none;
  font-family: var(--font-serif);
  font-weight: 600;
  text-shadow:
    0 1px 2px rgb(16 22 18 / 55%),
    0 2px 22px rgb(16 22 18 / 50%);
  font-size: clamp(2rem, 5vw, 4.5rem);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
/* コピーの補足：「まだ知らない書き手に出会うための、小さな本屋です。」。コピーより控えめな明朝の1行 */
.page-home .hero-lead {
  margin: clamp(12px, 1.6vw, 22px) 0 0;
  color: rgb(255 255 255 / 92%);
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.06em;
  text-shadow:
    0 1px 2px rgb(16 22 18 / 55%),
    0 2px 16px rgb(16 22 18 / 50%);
  text-wrap: balance;
  word-break: auto-phrase;
}

/* 新着はヒーローに重ねず、すぐ下に置く。幅は下の札（cta-pair）と同じ基本グリッド */
.page-home main > .ed-news {
  position: relative;
  z-index: 4;
  max-width: 1200px;
}
.page-home .ed-news-bar {
  padding-inline: clamp(14px, 2vw, 20px) clamp(16px, 2.2vw, 24px);
  background: var(--surface);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
/* 流れる一覧の右端は切り口を見せず、うすく消す */
.page-home .ed-news-window {
  mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
}

/* 新着：帯の頭にしおりを1本はさみ、見出しを深緑の太字で立てる */
.page-home .ed-news-bar {
  position: relative;
}
.page-home .ed-news-title {
  padding-left: 22px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.page-home .ed-news-title::before {
  content: "";
  position: absolute;
  top: -8px;
  left: clamp(14px, 2vw, 20px);
  width: 13px;
  height: 52px;
  background: url("/images/icon-bookmark.webp") top center / contain no-repeat;
  pointer-events: none;
}

/* 書き手の章：見出し → 説明文 → 注記を左にそろえて縦に並べる */
.page-home .ed-meet .ed-mast {
  grid-template-columns: minmax(0, 1fr);
}

/* ⑥ 「この書き手を訪ねる」：紹介文の箱の中の、はっきりしたボタン */
.page-home .ed-visit {
  gap: 0.6em;
  min-height: 48px;
  padding: 6px 20px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: var(--paper);
  font-size: 0.95rem;
  line-height: 1.4;
  text-decoration: none;
}
.page-home .ed-visit:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}
.page-home .ed-visit:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.page-home .ed-visit-row {
  margin-top: 22px;
}


/* 「別の書き手にも出会う」「もっと書き手を見てみる」は書き手の章の出口。同じ高さ・同じ文字の大きさの枠付きボタン＋細い矢印 */
.page-home .meet-again {
  gap: 10px 20px;
  padding: 0;
  border: 0;
}
/* 「別の書き手にも出会う」：その場で書き手だけが入れ替わるボタン */
.page-home .meet-again a[href="/"] {
  min-height: 56px;
  padding: 8px 30px;
  font-size: 1.05rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent-soft);
  color: var(--accent);
  letter-spacing: 0.06em;
  text-decoration: none;
}
.page-home .meet-again a[href="/"]:hover {
  background: color-mix(in srgb, var(--accent-soft) 86%, var(--accent));
}
.page-home .meet-again a[href="/"]:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
/* 入れ替えの通信中（二重に押せない間）だけ、少し薄くする */
.page-home .meet-again a[aria-disabled="true"] {
  opacity: 0.55;
  cursor: progress;
}
.page-home .meet-again .meet-more {
  gap: 14px;
  min-height: 56px;
  padding: 8px 30px;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--surface);
  text-decoration: none;
}
.page-home .meet-again .meet-more:hover {
  background: var(--accent-soft);
}
.page-home .meet-again .meet-more:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.page-home .meet-again .meet-more span {
  display: inline-block;
  width: 40px;
  height: 12px;
  overflow: hidden;
  background: url("/images/icon-arrow.webp") center / contain no-repeat;
  font-size: 0;
}

/* 「こんな人が書いています」：WRITERS と見出しだけの、すっきりした深緑の横長の見出し帯（章扉の帯）。
   説明文はヒーローのコピーの下へ移したので、帯には入れない */
.page-home .ed-mast.ed-band {
  width: auto;
  padding: clamp(18px, 2.4vw, 32px) clamp(20px, 3.4vw, 48px);
}

/* 下段2章：同じ幅・同じ高さの2枚の札。写真と文章は左右交互、札どうしは重ねない */
.page-home .cta-pair {
  gap: clamp(28px, 3.5vw, 44px);
  max-width: 1200px;
  /* 今日の書き手のすぐ後に続ける（本棚の章を外したぶん詰める） */
  margin-top: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.page-home .cta-pair > .essay,
.page-home .cta-pair > .invite {
  border: 1px solid var(--line-strong);
  border-radius: 0;
}
.page-home .cta-pair > .invite {
  background: var(--surface);
  color: var(--ink);
}
.page-home .cta-pair .invite h2 {
  color: var(--ink);
}
.page-home .cta-pair .invite p {
  color: var(--ink-soft);
}
.page-home .cta-pair .essay-link,
.page-home .cta-pair .invite-links {
  margin: 20px 0 0 !important;
  padding: 0;
  border: 0;
}
/* 申し込みの札の飾りは CTA の本のアイコン1点だけにする */
.page-home .cta-pair .invite-links::after {
  content: none;
}

/* 札の中の CTA：本文に埋もれない小さなボタン（開いた本＋矢印） */
.page-home .cta-pair .essay .text-arrow,
.page-home .cta-pair .invite-cta,
.page-home .cta-pair .invite-cta:hover {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55em;
  width: auto;
  min-width: 0;
  min-height: 48px;
  padding: 6px 20px 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-align: left;
  text-decoration: none;
  text-wrap: balance;
}
.page-home .cta-pair .essay .text-arrow::before,
.page-home .cta-pair .invite-cta::before {
  content: "";
  flex: none;
  width: 28px;
  height: 20px;
  background: url("/images/icon-open-book.webp") center / contain no-repeat;
}
.page-home .cta-pair .essay .text-arrow:hover,
.page-home .cta-pair .invite-cta:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}
.page-home .cta-pair .essay .text-arrow:focus-visible,
.page-home .cta-pair .invite-cta:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- PC（861px以上）：誌面の見開き ---------- */
@media (min-width: 861px) {
  .page-home .hero-title {
    padding-right: clamp(88px, 11vw, 150px);
  }

  /* 新着・下の札と同じ基本グリッド（最大1200px＋左右の余白） */
  .ed-meet {
    position: relative;
    max-width: 1200px;
    padding-inline: max(var(--gutter), env(safe-area-inset-left))
      max(var(--gutter), env(safe-area-inset-right));
  }


  /* 見出しの横罫を短くし、全面幅の「Webセクション感」を弱める */
  .ed-meet .ed-mast {
    margin-left: 0;
  }
  .ed-meet .ed-kicker::after {
    max-width: 160px;
  }
  /* PC・タブレットでは「こんな人が書いています」を1行で */
  .ed-meet .ed-mast h2 {
    max-width: none;
    font-size: clamp(2.35rem, 4.6vw, 4.4rem);
    line-height: 1.18;
    letter-spacing: 0.02em;
  }
  .ed-meet .ed-note {
    width: 100%;
    max-width: none;
    margin-top: 18px;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    font-size: 0.76rem;
    line-height: 1.8;
  }
  /* 注意文は、入る幅では1行。折り返す場合も文の途中ではなく「。」の直後だけにする */
  .ed-meet .ed-note-sentence {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
  }

  /* 作者レール＝カードではなく誌面上部の「索引」。各項目の高さをそろえ、アイコン・名前・ジャンルの並びをそろえる（交互の段差は付けない） */
  .ed-rail {
    align-items: stretch;
    gap: 0 clamp(8px, 1vw, 14px);
    margin: 38px 0 24px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line-strong);
  }
  .ed-rail-tab {
    position: relative;
    gap: 8px;
    min-height: 78px;
    padding: 10px 4px 12px;
    border-top: 3px solid transparent;
    background: transparent;
  }
  .ed-rail-tab:hover {
    background: transparent;
  }
  .ed-rail-tab[aria-selected="true"] {
    border-top: 3px solid var(--mustard);
    background: var(--surface);
  }
  .ed-rail-tab[aria-selected="true"] .avatar--rail {
    transform: translateY(-3px);
  }
  .avatar--rail {
    width: 38px;
    height: 38px;
    transition: transform 0.25s var(--ease);
  }
  .ed-rail-name {
    font-size: 1rem;
  }
  .ed-rail-text {
    line-break: strict;
  }

  /* 大きな人物紹介：12カラムの見開き。名前と紹介文の箱を同じ行で少し重ねる */
  .ed-person {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(14px, 2vw, 24px);
    align-items: start;
    min-height: 360px;
    padding: clamp(30px, 4vw, 54px) 0 clamp(20px, 2.4vw, 32px);
  }
  .ed-id {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    grid-row: 1;
    /* 紹介枠の手前で折り返す。右側の枠の配置は維持する。 */
    grid-column: 1 / 6;
    padding: clamp(18px, 2vw, 28px) clamp(18px, 2.4vw, 34px) 28px 0;
  }
  .ed-text {
    z-index: 1;
    grid-row: 1;
    grid-column: 6 / 13;
    margin-top: clamp(28px, 3vw, 44px);
    margin-left: -18px;
    padding: clamp(30px, 3.8vw, 48px) clamp(28px, 4vw, 56px)
      clamp(28px, 3.2vw, 42px) clamp(50px, 5vw, 72px);
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line);
  }
  /* 名前は8文字まで1行に収まる大きさ。丸いアイコンは名前の下 */
  .ed-face {
    order: 3;
    margin: 22px 0 0;
  }
  .avatar--lead {
    width: clamp(84px, 7vw, 104px);
    height: clamp(84px, 7vw, 104px);
  }
  .ed-genre {
    margin-top: 0;
    max-width: 26em;
  }
  .ed-name {
    margin-top: 10px;
    font-size: clamp(2.2rem, 3.4vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: 0.015em;
  }
  .ed-name.ed-name--long {
    font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  }
  .ed-name.ed-name--longer {
    font-size: clamp(1.6rem, 2.2vw, 2rem);
  }
  .ed-line {
    position: relative;
    max-width: 28em;
    font-size: clamp(1.2rem, 1.75vw, 1.45rem);
    line-height: 1.9;
  }
  /* 自己紹介は引用ではないので引用符は付けない。箱の上辺に小さなしおりを1本だけ（飾り） */
  .ed-text {
    position: relative;
  }
  .ed-text::before {
    content: "";
    position: absolute;
    top: -1px;
    right: clamp(16px, 1.8vw, 26px);
    width: 16px;
    height: 64px;
    background: url("/images/icon-bookmark.webp") top center / contain no-repeat;
    pointer-events: none;
  }
  .ed-rest {
    max-width: 34em;
    line-height: 2;
  }
  .ed-meta {
    max-width: 34em;
  }

  /* 下の導線は「ボタンの行」ではなく誌面のノンブル付近のリンクに */
  .meet-again {
    width: 100%;
    margin-left: 0;
  }
}

/* ---------- タブレット横〜小型ノート（861〜1050px）：
   誌面の特徴は残し、重なり量と文字サイズを抑える ---------- */
@media (min-width: 861px) and (max-width: 1050px) {
  .ed-meet .ed-mast h2 {
    font-size: clamp(2.25rem, 4.4vw, 3.3rem);
  }
  .ed-meet .ed-note {
    width: min(100%, 650px);
  }
  .ed-person {
    column-gap: 14px;
    min-height: 330px;
  }
  .ed-id {
    padding-right: 20px;
  }
  .ed-text {
    margin-top: 24px;
    margin-left: 10px;
    padding: 30px 40px 30px 44px;
  }
  .avatar--lead {
    width: 80px;
    height: 80px;
  }
  .ed-name {
    font-size: clamp(1.9rem, 3.4vw, 2.3rem);
  }
  .ed-name.ed-name--long {
    font-size: clamp(1.7rem, 2.9vw, 2rem);
  }
  .ed-name.ed-name--longer {
    font-size: clamp(1.45rem, 2.3vw, 1.7rem);
  }
  /* 札が半分幅になるので、見出しと CTA が1行に収まるよう左右の余白を控えめに */
  .page-home .cta-pair .essay-text,
  .page-home .cta-pair .invite-text {
    padding-inline: clamp(24px, 3vw, 40px);
  }
}

/* 作者レール（861〜1180px）：6人を1行に並べたまま名前を1行で読めるよう、アイコンを名前の上に置く */
@media (min-width: 861px) and (max-width: 1180px) {
  .ed-rail {
    gap: 0 8px;
  }
  .ed-rail-tab {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 72px;
  }
  .avatar--rail {
    width: 34px;
    height: 34px;
  }
  .ed-rail-text {
    width: 100%;
  }
  .ed-rail-name {
    font-size: 0.92rem;
  }
}

/* ---------- タブレット縦・スマホ（860px以下）：
   重なりを外し、世界観だけ残す。カードの箱へは戻さない ---------- */
@media (max-width: 860px) {

  .ed-rail {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .ed-person {
    padding-top: 24px;
  }
  /* 名前の下に丸いアイコン */
  .ed-id {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .ed-face {
    order: 3;
    margin: 16px 0 0;
  }
  .ed-text {
    margin-top: 22px;
    padding: 22px 0 0;
    border-top: 1px solid var(--line-strong);
  }

  /* 縦積みでも2枚は同じ高さ。写真は 16:10、文章の欄が残りを受け持つ */
  .page-home .cta-pair {
    grid-auto-rows: 1fr;
  }
  .page-home .cta-pair > .essay,
  .page-home .cta-pair > .invite {
    grid-template-rows: auto 1fr;
  }
  .page-home .cta-pair .essay-text,
  .page-home .cta-pair .invite-text {
    justify-content: flex-start;
  }
  .page-home .cta-pair .essay-link,
  .page-home .cta-pair .invite-links {
    margin-top: auto !important;
    padding-top: 20px;
  }
}

/* ---------- スマホ（600px以下）：札は左右に余白を取り、CTA は1行に収める ---------- */
@media (max-width: 600px) {
  .page-home .hero-title h1 {
    font-size: clamp(1.75rem, 8.6vw, 2.6rem);
  }
  .page-home .hero-lead {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
  }
  /* 作者レール（2列）：名前を1行に収めるため、アイコンと名前の間・文字を少しだけ詰める */
  .ed-rail-tab {
    gap: 8px;
    padding-inline: 2px 4px;
  }
  .avatar--rail {
    width: 32px;
    height: 32px;
  }
  .ed-rail-name {
    font-size: 0.92rem;
  }
  .page-home .ed-news-title {
    padding-left: 18px;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
  }
  .page-home .ed-news-title::before {
    top: -6px;
    left: 12px;
    width: 11px;
    height: 44px;
  }
  .page-home .cta-pair {
    padding-inline: max(var(--gutter), env(safe-area-inset-left))
      max(var(--gutter), env(safe-area-inset-right));
  }
  .page-home .cta-pair .essay-text,
  .page-home .cta-pair .invite-text {
    padding-inline: 16px;
  }
  .page-home .cta-pair .essay .text-arrow,
  .page-home .cta-pair .invite-cta,
  .page-home .cta-pair .invite-cta:hover {
    padding-inline: 12px 14px;
    font-size: 0.9rem;
    letter-spacing: 0;
  }
  .page-home .cta-pair .essay .text-arrow::before,
  .page-home .cta-pair .invite-cta::before {
    width: 24px;
    height: 18px;
  }
}

/* =========================================================
   作者プロフィール：文芸誌の作家紹介の頁（TOPと同じ「静かな誌面・本屋」）
   箱や色付きのカードは使わず、余白・文字組・細い罫線・色で組む。
   視線は縦に一本：名前 → 自己紹介 → 作品ジャンル・作風 → 活動場所・交流 → いま、書いていること → 代表作 → 次の書き手
   ========================================================= */
.profile.pf {
  max-width: 1080px;
  padding-top: clamp(28px, 4.5vw, 60px);
}
.pf-eyebrow {
  margin: 0 0 clamp(14px, 2vw, 20px);
  color: var(--brick-ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}
/* 小さな見出し（自己紹介・活動場所・交流について）：文字の前に短い線 */
.pf-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.pf-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}
/* 英字の小見出し（NOW WRITING・WORKS） */
.pf-kicker {
  margin: 0 0 6px;
  color: var(--ochre-ink);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- 誌面の見開き：左に名前の段、右に自己紹介（同じ紙面の左右の段。上下に罫線1本ずつ） ---------- */
.pf-spread {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0 clamp(36px, 5vw, 72px);
  padding: clamp(28px, 3.6vw, 44px) 0 clamp(28px, 3.4vw, 44px);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
}
.pf-id {
  min-width: 0;
}
.pf .avatar--card {
  width: clamp(88px, 9vw, 120px);
  height: clamp(88px, 9vw, 120px);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
}
/* 名前はページでいちばん強い文字。長い名前は少し小さくし、行の長さをそろえて折り返す */
.pf-name {
  margin: clamp(18px, 2.2vw, 26px) 0 0;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.6vw, 4.8rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.pf-name.pz-name--long {
  font-size: clamp(2.2rem, 3.6vw, 3.3rem);
}
.pf-name.pz-name--longer {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
}
.pf-facts {
  display: grid;
  gap: 14px;
  margin: clamp(22px, 2.6vw, 30px) 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.pf-fact dt {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.pf-fact dd {
  margin: 0;
  font-family: var(--font-serif);
  line-height: 1.7;
}
.pf-genres {
  font-size: 1.12rem;
  color: var(--ink);
}
/* 作風：枠付きの札にせず、文字で「 / 」区切り */
.pf-style {
  font-size: 1rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.pf-id .jump {
  margin: 22px 0 0;
}
/* 自己紹介：記事の本文。十分な行間と、読みやすい行の長さ */
.pf-bio {
  min-width: 0;
  margin: 0;
  padding-left: clamp(28px, 4vw, 60px);
  border-left: 1px solid var(--line);
}
.pf-bio-text {
  max-width: 34em;
  margin: 0;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 2.15;
  letter-spacing: 0.03em;
}

/* ---------- 活動場所・交流について：箱にせず、細い罫線の下の補助情報（PCは2段） ---------- */
.pf-info {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(36px, 5vw, 72px);
  padding: clamp(24px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
}
.pf-places,
.pf-talk {
  margin: 0;
}
.pf-talk {
  padding-left: clamp(28px, 4vw, 60px);
}
.pf-place-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pf-place {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4em;
  transition: text-decoration-color 0.2s var(--ease);
}
.pf-place:hover {
  text-decoration-color: currentColor;
}
.pf-talk-text {
  margin: 0;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  letter-spacing: 0.04em;
}
.pf-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.8;
}

/* ---------- いま、書いていること：ここだけ生成りの紙に、ごく淡い罫線の「執筆メモ」 ---------- */
.pf-now {
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: clamp(24px, 3.2vw, 38px) clamp(20px, 4vw, 52px) clamp(26px, 3.2vw, 38px);
  background: #f8f2e3;
  border-top: 1px solid #e3d8bf;
  border-bottom: 1px solid #e3d8bf;
}
.pf-now-h {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.8vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.06em;
}
/* 罫線は文字の行に合わせる（行の高さ＝罫線の間隔） */
.pf-now-text {
  max-width: 38em;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 2.2;
  letter-spacing: 0.04em;
  background-image: linear-gradient(
    to bottom,
    transparent calc(2.2em - 1px),
    rgb(170 150 110 / 22%) calc(2.2em - 1px)
  );
  background-size: 100% 2.2em;
}

/* ---------- 代表作：作品レール → 選んだ1作を大きく ---------- */
.pf-works {
  margin: clamp(48px, 6vw, 80px) 0 0;
  scroll-margin-top: 16px;
}
.pf-works-h {
  margin: 0 0 clamp(18px, 2.4vw, 26px);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.06em;
}
/* レール：タブの箱にせず、文字だけ。選んでいる題名だけ下に細いからし色の線・少し濃い文字 */
.pf-rail {
  display: flex;
  gap: 0 clamp(20px, 3vw, 40px);
  /* 下の細い線は背景で描く（選んだ題名の線を上に重ねる。スマホで横に流しても縦にずれない） */
  background: linear-gradient(var(--line), var(--line)) left bottom / 100% 1px no-repeat;
}
.pf-rail[hidden] {
  display: none;
}
.pf-rail-tab {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 18em;
  min-height: var(--tap);
  margin: 0;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: left;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.pf-rail-tab:hover {
  border-bottom-color: var(--line-strong);
  background: none;
  color: var(--ink);
}
.pf-rail-tab[aria-selected="true"] {
  border-bottom-color: var(--mustard);
  color: var(--ink);
  font-weight: 700;
}
.pf-rail-tab:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
/* レールの上だけ、長い題名は1行で末尾を省く（大きな表示では全文） */
.pf-rail-title {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* 作品：JavaScript がないときは縦に並べる（細い罫線で区切る） */
.pf-work {
  max-width: 760px;
  padding: clamp(24px, 3vw, 36px) 0;
}
.pf-work + .pf-work {
  border-top: 1px solid var(--line);
}
.pf-work-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}
.pf-work-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.pf-work .badge-adult {
  border-radius: 2px;
}
.pf-work-platform {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 14px 0 0;
  font-size: 0.95rem;
}
.pf-work-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.pf-work-desc {
  max-width: 36em;
  margin: 18px 0 0;
  font-size: 1.02rem;
  line-height: 2.05;
  letter-spacing: 0.03em;
}
/* 「この作品を読む」：大きなボタンにせず、文字だけの導線（短い下線。hover で下線を濃く・太く） */
.pf-work-link {
  margin: 22px 0 0;
}
.pf-read {
  display: inline-block;
  padding: 10px 0;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.45em;
  transition: text-decoration-color 0.2s var(--ease);
}
.pf-read:hover {
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}
/* 成人向け（年齢確認の前）：「成人向け作品」→ 説明 → 選択肢を、小さめにまとめる */
.pf-work--gated .pf-work-title {
  color: var(--muted);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}
.pf-work--gated .adult-note {
  margin: 10px 0 14px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.75;
}
.pf-work--gated .adult-actions {
  gap: 8px 10px;
}
.pf-work--gated .adult-actions button {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9rem;
}
/* JavaScript があるとき：作品を同じ場所に重ね、選んだ1作だけを見せる。
   場所の高さは /profile-works.js が選んだ作品に合わせる（いちばん長い作品の 75% 以上） */
.pf-shelf.pf-js .pf-panels {
  display: grid;
  align-items: start;
  transition: height 0.24s var(--ease);
}
.pf-shelf.pf-js .pf-work {
  grid-area: 1 / 1;
  border-top: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s var(--ease),
    visibility 0s linear 0.18s;
}
.pf-shelf.pf-js .pf-work.is-current {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.24s var(--ease) 0.04s;
}
@media (prefers-reduced-motion: reduce) {
  .pf-shelf.pf-js .pf-panels,
  .pf-shelf.pf-js .pf-work,
  .pf-shelf.pf-js .pf-work.is-current {
    transition: none;
  }
}

/* ---------- 頁の終わり：掲載内容の修正 → 次の書き手さんへ（静かな出口） ---------- */
.page-profile .profile-tools {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.page-profile .next-writer {
  justify-content: center;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 0;
  border-top: 0;
  text-align: center;
}
.page-profile .next-writer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.45em;
}

/* ---------- タブレット縦・スマホ（860px以下）：1段で縦に積む ---------- */
@media (max-width: 860px) {
  .pf-spread,
  .pf-info {
    grid-template-columns: minmax(0, 1fr);
  }
  .pf-bio,
  .pf-talk {
    padding-left: 0;
    border-left: 0;
  }
  .pf-bio {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 600px) {
  .pf-spread {
    padding-top: 24px;
  }
  .pf-name {
    font-size: clamp(2.2rem, 10vw, 2.8rem);
  }
  .pf-name.pz-name--long {
    font-size: clamp(1.75rem, 7.6vw, 2.1rem);
  }
  .pf-name.pz-name--longer {
    font-size: 1.5rem;
  }
  .pf-bio-text {
    font-size: 1rem;
    line-height: 2.05;
  }
  .pf-now {
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  /* 作品レール：題名が長いときはレールの中だけ横に流す（ページ全体は横に動かさない） */
  .pf-rail {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .pf-rail::-webkit-scrollbar {
    display: none;
  }
  .pf-rail-tab {
    flex: none;
    max-width: 13em;
  }
  .pf-work-title {
    font-size: clamp(1.45rem, 6.6vw, 1.8rem);
  }
}

/* =========================================================
   書き手を探す：現在の条件（条件ごとの札・× で外す・すべて解除）と、0件のときの案内。
   検索結果より目立たせず、札は押せるものだと分かる形（枠線・× の丸）にする。新しい色は使わない
   ========================================================= */
.active-filters {
  /* 1行目：「現在の条件」と（右に）「条件をすべて解除」、2行目：条件の札 */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 14px;
  margin: 20px 0 0;
}
.active-filters-title {
  grid-column: 1;
  grid-row: 1;
}
.filter-reset {
  grid-column: 2;
  grid-row: 1;
}
.filter-chips {
  grid-column: 1 / -1;
  grid-row: 2;
}
.active-filters-title {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.filter-chips li {
  min-width: 0;
  max-width: 100%;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 40px;
  padding: 0 4px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-sm);
  text-decoration: none;
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.filter-chip-key {
  flex: none;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}
.filter-chip-value {
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
/* × は押しやすい大きさの丸（札全体がリンク） */
.filter-chip-x {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}
.filter-chip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.filter-chip:hover .filter-chip-x {
  background: var(--accent);
  color: var(--accent-ink);
}
.filter-chip:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
/* 「条件をすべて解除」：補助の操作として、下線付きの控えめな文字 */
.filter-reset {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}
/* 0件：件数ではなく、次にできることを先に伝える */
.result-empty {
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 2px solid var(--ink);
}
.result-empty-lead {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.result-empty-hint {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.9;
}
.result-empty + .active-filters {
  margin-top: 16px;
}
@media (max-width: 600px) {
  .active-filters {
    column-gap: 10px;
    margin-top: 14px;
  }
  .filter-chips {
    gap: 6px;
  }
  .filter-chip {
    min-height: 38px;
    padding-left: 10px;
    font-size: 0.86rem;
  }
}

/* 自由記述のサーバー検証エラー。入力値や長い文字列も枠外へ出さない。 */
.safety-error { color: var(--brick-ink); font-size: 0.9rem; line-height: 1.8; overflow-wrap: anywhere; margin: 8px 0 16px; }
.free-text-notice { overflow-wrap: anywhere; }

/* 代表作：文章を主役に、右側へ3:4表紙を添える */
.pf-work-cover { display:grid; grid-template-columns:minmax(0,1fr) minmax(150px,240px); gap:clamp(24px,4vw,64px); align-items:start; }
.pf-work-copy { min-width:0; }
.pf-cover { width:100%; height:auto; aspect-ratio:3/4; object-fit:contain; background:#f7f5ef; border:1px solid var(--line); }
.pf-work-copy .pf-work-desc { max-width:none; }
.pf-extra-links a { display:inline-block; margin:0 18px 10px 0; overflow-wrap:anywhere; }
.pf-rail-tab[aria-selected="true"] { background:#f4e9c9; color:#273a30; }
.cover-options { margin:16px 0; }
.cover-choices[hidden], .cover-categories[hidden], .cover-options label[hidden] { display:none; }
.cover-categories { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.cover-categories button { min-height:44px; padding:6px 12px; border:1px solid var(--line); background:var(--surface); color:var(--accent); }
.cover-categories button[aria-pressed="true"] { background:var(--accent); color:white; text-decoration:underline; }
.cover-categories button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.cover-options label { display:grid; justify-items:center; gap:6px; padding:8px; border:2px solid transparent; min-width:0; cursor:pointer; font-size:.8rem; }
.cover-options label:has(input:checked) { border-color:#8c742e; background:#f4e9c9; }
.cover-options img { max-width:100%; height:auto; aspect-ratio:3/4; object-fit:contain; }
.cover-preview { display:block; width:150px; max-width:100%; height:200px; aspect-ratio:3/4; object-fit:contain; background:#f7f5ef; margin:16px 0; }
.work-extra-links { margin:24px 0; }
[data-cover-file] { max-width:100%; }
@media(max-width:600px) {
  .pf-work-cover { display:grid; grid-template-columns:minmax(0,1fr) 105px; gap:12px 16px; }
  .pf-work-cover .pf-work-copy { display:contents; }
  .pf-work-cover .pf-work-head { grid-column:1; grid-row:1; min-width:0; }
  .pf-work-cover .pf-work-platform { grid-column:1; grid-row:2; }
  .pf-work-cover .pf-work-desc, .pf-work-cover .pf-work-link, .pf-work-cover .pf-extra-links { grid-column:1 / -1; }
  .pf-work-cover .pf-work-title { font-size:1.3rem; overflow-wrap:anywhere; }
  .pf-work-cover .pf-cover { grid-column:2; grid-row:1 / span 2; width:105px; margin:0; }
}
.pf-work-cover { max-width:none; width:100%; }
[data-cover-file][hidden] { display:none; }
@media(max-width:600px) { .pf-work-cover .pf-work-desc { line-height:1.95; } }
/* マイページ導線：項目を折り返さず、タブレット幅では余白だけ調整する */
.site-nav a {
  white-space: nowrap;
}
.site-nav a.nav-account {
  min-height: 44px;
}
.site-nav a.nav-account:focus-visible {
  outline-offset: -3px;
}
@media (min-width: 601px) and (max-width: 1000px) {
  body:not(.page-admin) .brand-logo { width: 190px; }
  .site-nav { margin-left: 20px; gap: 0 16px; letter-spacing: 0.06em; }
}
@media (max-width: 600px) {
  .site-nav { gap: 0 12px; letter-spacing: 0.02em; }
  .site-nav a.nav-find { margin-right: auto; }
}
@media (max-width: 359px) {
  .site-nav { grid-template-columns: repeat(2, auto); gap: 0 16px; }
}

/* 個別プロフィールの仕上げ。申請・管理・掲載プレビューには適用しない。 */
.page-profile .profile.pf,
.page-profile .profile-tools,
.page-profile .next-writer {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
}
.page-profile .pf-eyebrow { font-size: clamp(0.9rem, 1.25vw, 1rem); }
.page-profile .pf-spread { column-gap: clamp(24px, 4vw, 48px); }
.page-profile .pf-bio { padding-left: clamp(24px, 3vw, 36px); }
.page-profile .pf-now {
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(20px, 2.5vw, 28px);
}
.page-profile .pf-now-text {
  max-width: none;
  overflow-wrap: anywhere;
  line-height: 2.05;
  background-image: linear-gradient(to bottom, transparent calc(2.05em - 1px), rgb(170 150 110 / 22%) calc(2.05em - 1px));
  background-size: 100% 2.05em;
}
.page-profile .pf-works { margin-top: clamp(32px, 4vw, 48px); }
.page-profile .pf-rail { gap: 8px; overflow: visible; }
.page-profile .pf-rail-tab {
  flex: 1 1 0;
  max-width: none;
  padding: 8px 10px;
  line-height: 1.5;
}
.page-profile .pf-rail-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow-wrap: anywhere;
}
.page-profile .pf-work { padding-block: clamp(20px, 2.5vw, 28px); }
.page-profile .pf-work-cover {
  grid-template-columns: minmax(0, 1fr) clamp(160px, 20vw, 220px);
  gap: clamp(20px, 3vw, 40px);
}
.page-profile .pf-work-copy .pf-work-desc { max-width: 38em; }
.page-profile .pf-work-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  margin-top: 14px;
}
.page-profile .pf-read { display: inline-flex; align-items: center; min-height: 44px; padding-block: 4px; }
.page-profile .pf-extra-links { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 8px; }
.page-profile .pf-extra-links > p { flex-basis: 100%; margin: 0; }
.page-profile .pf-extra-links a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; margin: 0; }
.page-profile .profile-tools { margin-top: 28px; padding-top: 16px; }
.page-profile .next-writer { margin-top: 24px; }
.page-profile .next-writer a { font-size: 1rem; min-height: 44px; }
@media (max-width: 860px) {
  .page-profile .pf-bio { padding-left: 0; }
}
@media (max-width: 600px) {
  .page-profile .profile.pf { padding-top: 24px; }
  .page-profile .pf-spread { padding-block: 20px; }
  .page-profile .pf-facts { margin-top: 18px; padding-top: 14px; gap: 10px; }
  .page-profile .pf-bio { margin-top: 22px; padding-top: 20px; }
  .page-profile .pf-info { padding-block: 20px; gap: 20px; }
  .page-profile .pf-label { margin-bottom: 10px; }
  .page-profile .pf-now { margin: 24px 0 0; padding: 18px 16px; }
  .page-profile .pf-now-h { margin-bottom: 10px; }
  .page-profile .pf-now-text { font-size: 1rem; }
  .page-profile .pf-works { margin-top: 28px; }
  .page-profile .pf-works-h { margin-bottom: 14px; }
  .page-profile .pf-rail { gap: 4px; }
  .page-profile .pf-rail-tab { font-size: 0.84rem; letter-spacing: 0.02em; padding: 6px; }
  .page-profile .pf-work { padding-block: 18px; }
  .page-profile .pf-work-cover { grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; }
  .page-profile .pf-work-cover .pf-cover { width: 96px; }
  .page-profile .pf-work-cover .pf-work-desc { margin-top: 0; }
  .page-profile .pf-work-link { margin-top: 4px; }
  .page-profile .pf-extra-links { margin-top: 0; gap: 0 12px; }
  .page-profile .profile-tools { margin-top: 20px; }
  .page-profile .next-writer { margin-top: 18px; }
}
/* 作品ごとの掲載先。作者の活動場所とは別の導線としてまとめる。 */
.pf-work-link, .page-profile .pf-work-link { display: block; margin-top: 14px; }
.pf-work-link-title { margin: 0 0 8px; font-size: .84rem; color: var(--ink-soft); font-weight: 600; }
.pf-work-link a.pf-read {
  display: inline-flex; align-items: center; min-height: 44px; max-width: 100%;
  box-sizing: border-box; padding: 8px 16px; border: 1px solid #a9b8ac;
  border-radius: 5px; background: #edf2eb; color: var(--accent);
  font-size: .95rem; line-height: 1.6; text-decoration: none; overflow-wrap: anywhere;
}
.pf-work-link a.pf-read:hover { background: #e2eadf; text-decoration: underline; }
.pf-extra-links, .page-profile .pf-extra-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pf-extra-links > p, .page-profile .pf-extra-links > p { flex-basis: 100%; margin: 0; font-size: .8rem; color: var(--ink-soft); }
.pf-extra-links .pf-extra-link {
  display: inline-flex; align-items: center; min-height: 44px; max-width: 100%;
  box-sizing: border-box; margin: 0; padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--surface); font-size: .84rem; line-height: 1.6;
  overflow-wrap: anywhere; text-decoration: none;
}
.pf-extra-links .pf-extra-link:hover { background: var(--accent-soft); text-decoration: underline; }
.pf-work-link a.pf-read:focus-visible, .pf-extra-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- TOP 店頭の組版：新着の帯 → 静かなお知らせ → 書き手の章 ---------- */
.page-home main > .site-notices {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 2.2fr);
  gap: 16px 36px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px max(var(--gutter), env(safe-area-inset-right)) 24px
    max(var(--gutter), env(safe-area-inset-left));
  color: var(--accent);
}
.site-notices-head { padding-top: 8px; }
.site-notices-kicker {
  margin: 0 0 6px;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre-ink);
}
.site-notices h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.04em;
}
.site-notices-list { margin: 0; padding: 0; list-style: none; }
.site-notices-list li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0 16px;
  align-items: baseline;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
}
.site-notices-list li:first-child { border-top: 1px solid var(--line); }
.site-notices-content { min-width: 0; }
.site-notices-body { min-width: 0; }
.site-notices-list [hidden], .site-notices-toggle[hidden] { display: none; }
.site-notices-toggle {
  display: block;
  margin: 10px 0 0 auto;
  min-height: 44px;
  padding: 8px 20px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  font-size: .875rem;
}
.site-notices-toggle:hover { background: var(--accent-soft); color: var(--accent); }
.search-filter-hint { margin: 0 0 10px; font-size: .75rem; color: var(--muted); }
.directory-finder .search-filter-group { min-width: 0; }
.directory-finder .more-grid > .search-filter-group { grid-column: 1 / -1; margin-top: 0; }
.directory-finder .search-filter-group .chip > span { white-space: normal; }
.directory-finder .search-filter-group .chip { max-width: 100%; }
.directory-finder .search-filter-group .chip > span { overflow-wrap: anywhere; }
.finder-keyword-hint { margin: 6px 0 0; }
.style-shuffle {
  margin-top: 10px;
  min-height: 44px;
  padding: 10px 16px;
  cursor: pointer;
  color: var(--accent);
  font-size: .875rem;
}
[data-style-candidate][hidden], .style-shuffle[hidden] { display: none; }
[data-style-status] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.site-notices-description {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.site-notices-list time {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.site-notices-list a,
.site-notices-title {
  display: block;
  min-width: 0;
  padding-block: 12px;
  font-size: 0.95rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.site-notices-list a {
  min-height: 48px;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.site-notices-list a:hover { text-decoration-thickness: 2px; }
.site-notices-list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.page-home .ed-meet { padding-block: 24px 28px; }
.page-home .ed-meet .ed-mast.ed-band {
  padding: 18px clamp(18px, 2.4vw, 30px) 16px;
  background: #214a3d;
  color: #f3eddf;
  border-top: 0;
  border-bottom: 0;
}
.page-home .ed-meet .ed-band .ed-kicker { color: #ddd6c6; }
.page-home .ed-meet .ed-band .ed-kicker::after { background: rgb(243 237 223 / 28%); }
.page-home .ed-meet .ed-band h2 {
  color: #f6f0e2;
  font-size: clamp(1.65rem, 3.3vw, 2.65rem);
  line-height: 1.4;
  letter-spacing: 0.03em;
}
.page-home .ed-meet .ed-note { margin-top: 14px; }
.page-home .cta-pair { margin-top: 16px; }
@media (max-width: 860px) {
  .page-home main > .site-notices { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 24px; padding-bottom: 16px; }
  .site-notices-head { padding-top: 0; }
  .site-notices-kicker { margin-bottom: 2px; }
}
@media (max-width: 600px) {
  .site-notices h2 { font-size: 1.05rem; }
  .site-notices-list li { grid-template-columns: 76px minmax(0, 1fr); column-gap: 10px; }
  .site-notices-list time { font-size: 0.7rem; letter-spacing: 0.01em; }
  .site-notices-list a, .site-notices-title { font-size: 0.875rem; padding-block: 10px; }
  .page-home .ed-meet { padding-block: 16px 16px; }
  .page-home .ed-meet .ed-mast.ed-band { padding: 14px 16px 12px; }
  .page-home .ed-meet .ed-band h2 { font-size: 1.5rem; }
}
.ed-meta > span:last-child { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .pf-work-cover .pf-cover { grid-row: 1; }
  .page-profile .pf-work-link { margin-top: 4px; }
  .page-profile .pf-extra-links { margin-top: 8px; gap: 8px; }
}

/* 公開プロフィール：線画・差し込み紙・小さな書棚。編集プレビューやTOPへは適用しない。 */
.pf[data-profile-storefront] .pf-genres { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; color: var(--accent); }
.pf[data-profile-storefront] .pf-genre { display: inline-flex; align-items: baseline; gap: 7px; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.pf-genre-icon { width: 21px; height: 21px; flex: 0 0 21px; align-self: center; }
.pf-genre-separator { display: none; }

/* 作風の自由入力を補う、公開中の書き手からの候補。 */
.tag-suggestions { margin-top: 16px; min-width: 0; }
.tag-suggestion-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.tag-suggestion { min-height: 44px; max-width: 100%; padding: 8px 12px; background: transparent; color: var(--accent); border: 1px solid currentColor; overflow-wrap: anywhere; white-space: normal; }
.tag-suggestion[hidden] { display: none; }
.tag-suggestion:hover, .tag-suggestion:active { background: var(--accent-soft); color: var(--accent-soft-ink); }
.tag-suggestion:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pf[data-profile-storefront] .pf-now { position: relative; padding-top: 28px; background: #f8f2e3; background-image: linear-gradient(105deg, rgb(190 158 84 / 4%), transparent 45%, rgb(190 158 84 / 3%)); }
.pf[data-profile-storefront] .pf-now::before { content: ""; position: absolute; top: -1px; left: 20px; width: 13px; height: 27px; background: var(--mustard); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.pf[data-profile-storefront] .pf-now .pf-kicker { padding-left: 20px; }
.pf[data-profile-storefront] .pf-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(10px, 3vw, 32px); overflow: visible; padding: 8px 4px 0; background: none; border-bottom: 3px double var(--line-strong); }
.pf[data-profile-storefront] .pf-rail[hidden] { display: none; }
.pf[data-profile-storefront] .pf-rail-tab,
.pf[data-profile-storefront] .pf-single-book { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: 10px; min-width: 0; max-width: none; width: 100%; margin: 0; padding: 6px 4px 10px; border: 0; border-bottom: 3px solid transparent; background: none; border-radius: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.6; letter-spacing: .02em; text-align: center; transform: none; transition: none; }
.pf[data-profile-storefront] .pf-rail-tab[aria-selected="true"] { background: none; border-bottom-color: var(--mustard); color: var(--accent); font-weight: 700; }
.pf[data-profile-storefront] .pf-rail-tab:hover { background: none; color: var(--accent); transform: none; }
.pf[data-profile-storefront] .pf-rail-tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.pf[data-profile-storefront] .pf-book-cover { display: grid; width: min(100%, 150px); aspect-ratio: 3 / 4; border: 2px solid transparent; padding: 3px; background: #efe8d7; }
.pf[data-profile-storefront] .pf-book-cover img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.pf[data-profile-storefront] .pf-rail-tab[aria-selected="true"] .pf-book-cover { border-color: var(--accent); }
.pf[data-profile-storefront] .pf-book-private { display: grid; align-content: center; padding: 6px; color: var(--ink-soft); font-family: var(--font-serif); font-size: .85rem; }
.pf[data-profile-storefront] .pf-rail-title { display: block; max-width: 100%; overflow: visible; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
.pf[data-profile-storefront] .pf-single-book { width: min(33.333%, 200px); border-bottom: 3px solid var(--mustard); margin-bottom: 8px; }
/* 高さの移動演出は加えず、本文と表紙の短いフェードのみ。 */
.pf[data-profile-storefront] .pf-shelf.pf-js .pf-panels { transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .pf[data-profile-storefront] { animation: profile-paper-appear 280ms ease-out both; }
  .pf[data-profile-storefront] .pf-rail-tab .pf-book-cover { opacity: .86; transition: opacity 180ms ease-out; }
  .pf[data-profile-storefront] .pf-rail-tab[aria-selected="true"] .pf-book-cover { opacity: 1; }
}
@keyframes profile-paper-appear { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .pf[data-profile-storefront], .pf[data-profile-storefront] *, .pf[data-profile-storefront] *::before { animation: none; transition: none; }
}
@media (max-width: 600px) {
  .pf[data-profile-storefront] .pf-genres { gap: 5px 12px; font-size: 1rem; }
  .pf[data-profile-storefront] .pf-genre-icon { width: 19px; height: 19px; flex-basis: 19px; }
  .pf[data-profile-storefront] .pf-now { padding: 28px 16px 18px; background-image: none; }
  .pf[data-profile-storefront] .pf-rail { gap: 8px; padding-inline: 2px; }
  .pf[data-profile-storefront] .pf-rail-tab { gap: 7px; padding: 4px 2px 8px; font-size: .78rem; letter-spacing: 0; }
  .pf[data-profile-storefront] .pf-book-cover { padding: 2px; }
  .pf[data-profile-storefront] .pf-single-book { width: min(40%, 130px); }
}

/* 公開プロフィール代表作の仕上げ：題名を選ぶ色帯と、PC詳細表紙の中央配置。 */
.pf[data-profile-storefront] .pf-rail-tab .pf-rail-title {
  width: 100%;
  padding: 8px 10px;
  background: #f8f4e9;
  color: var(--accent);
  border: 1px solid var(--line);
}
.pf[data-profile-storefront] .pf-rail-tab[aria-selected="true"] .pf-rail-title {
  background: var(--accent);
  color: #fffaf0;
  border-color: var(--accent);
}
@media (min-width: 601px) {
  .pf[data-profile-storefront] .pf-work-cover {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 40px);
  }
  .pf[data-profile-storefront] .pf-work-cover .pf-cover {
    width: min(calc(100% - 24px), clamp(260px, 26vw, 340px));
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    justify-self: center;
    margin-inline: auto;
  }
}
@media (max-width: 600px) {
  .pf[data-profile-storefront] .pf-rail-tab .pf-rail-title { padding: 6px 4px; }
}

/* 本人専用の栞。公開カード・順位・件数には使わない。 */
.profile-bookmark { margin-top: 1.1rem; }
.bookmark-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; max-width: 100%; padding: .55rem .75rem; border: 1px solid #24483b; border-radius: 2px; background: #f8f3e6; color: #24483b; font: inherit; text-decoration: none; line-height: 1.6; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.bookmark-icon { width: 20px; height: 24px; flex-shrink: 0; }
.bookmark-button[aria-pressed="true"] { background: #24483b; color: #fff9ec; border-bottom: 3px solid #b59a58; }
.bookmark-button[aria-pressed="true"] .bookmark-icon { fill: currentColor; }
.bookmark-remove-hint { display: inline-block; font-size: .8em; }
.bookmark-private, .bookmark-notice { margin: .4rem 0 0; font-size: .8rem; line-height: 1.6; }
.bookmark-list { list-style: none; padding: 0; margin: .75rem 0; }
.bookmark-row { display: flex; align-items: center; gap: .65rem; border-bottom: 1px solid #d8cfb9; padding: .5rem 0; }
.bookmark-writer { display: flex; align-items: center; gap: .65rem; flex: 1; min-width: 0; min-height: 44px; color: #24483b; text-underline-offset: .2em; }
.bookmark-writer span:last-child { min-width: 0; overflow-wrap: anywhere; }
.bookmark-writer .avatar { width: 36px; height: 36px; flex: 0 0 36px; font-size: 1rem; }
.bookmark-row form { flex: 0 0 auto; margin: 0; }
.bookmark-delete { min-width: 44px; min-height: 44px; padding: .4rem .6rem; border: 1px solid #697c70; background: transparent; color: #24483b; border-radius: 2px; font: inherit; text-decoration: underline; text-underline-offset: .2em; }
.bookmark-pagination { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.bookmark-pagination a { display: inline-flex; align-items: center; min-height: 44px; }
.bookmark-button:focus-visible, .bookmark-delete:focus-visible, .bookmark-writer:focus-visible, .bookmark-pagination a:focus-visible { outline: 3px solid #876a26; outline-offset: 3px; }
@media(max-width: 600px) { .profile-bookmark { margin-top: .8rem; } .bookmark-row { gap: .4rem; } }

/* 選択肢が増えても、各表紙を同じ大きさの選びやすい棚にする。 */
.cover-options { display:grid; grid-template-columns:repeat(auto-fill,minmax(104px,1fr)); gap:12px; }
.cover-options label { align-content:start; text-align:center; overflow-wrap:anywhere; min-height:44px; }
.cover-options label:has(input:focus-visible) { outline:3px solid #24483b; outline-offset:3px; }
@media(max-width:600px) { .cover-options { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } }

/* 作品詳細は元比率。棚・フォーム内の3:4確認枠は変更しない。 */
.pf-work-cover > .pf-cover,
.pf[data-profile-storefront] .pf-work-cover > .pf-cover { width:auto; height:auto; max-width:100%; max-height:480px; aspect-ratio:auto 3 / 4; object-fit:contain; justify-self:center; margin-inline:auto; }
@media(min-width:601px) {
  .pf-work-cover > .pf-cover { max-width:min(100%,340px); }
  .pf[data-profile-storefront] .pf-work-cover > .pf-cover { max-width:min(calc(100% - 24px),clamp(260px,26vw,340px)); }
}
@media(max-width:600px) {
  .pf-work-cover > .pf-cover { max-width:105px; }
  .pf[data-profile-storefront] .pf-work-cover > .pf-cover { max-width:96px; }
  .pf-work-cover.cover-landscape { grid-template-columns:minmax(0,1fr); gap:12px; }
  .pf-work-cover.cover-landscape .pf-work-head { grid-column:1; grid-row:1; }
  .pf-work-cover.cover-landscape .pf-work-platform { grid-column:1; grid-row:auto; }
  .pf-work-cover.cover-landscape > .pf-cover,
  .pf[data-profile-storefront] .pf-work-cover.cover-landscape > .pf-cover { grid-column:1; grid-row:2; width:auto; height:auto; max-width:min(100%,420px); max-height:260px; margin:0 auto; }
}

/* TOP下段：参考紙面に合わせた共通の文字組み。申請ページには適用しない。 */
.page-home .cta-pair {
  max-width: 1488px;
}
.page-home .cta-pair .essay h2,
.page-home .cta-pair .invite h2 {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.35vw, 3.25rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .015em;
}
.page-home .cta-pair .essay-text > p:not(.section-no):not(.essay-link),
.page-home .cta-pair .invite-text > p:not(.section-no):not(.invite-links):not(.invite-note) {
  max-width: none;
  font-size: clamp(0.95rem, 1.125vw, 1.125rem);
  line-height: 1.8;
}
.page-home .cta-pair .essay .section-no,
.page-home .cta-pair .invite .section-no {
  margin: 0 0 18px;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.5;
}
.page-home .cta-pair .essay .text-arrow,
.page-home .cta-pair .invite-cta,
.page-home .cta-pair .invite-cta:hover {
  max-width: 100%;
  min-height: 60px;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  letter-spacing: .04em;
}
@media (max-width: 600px) {
  .page-home .cta-pair .essay h2,
  .page-home .cta-pair .invite h2 {
    font-size: clamp(1.5rem, 6.2vw, 2rem);
  }
  .page-home .cta-pair .essay .text-arrow,
  .page-home .cta-pair .invite-cta,
  .page-home .cta-pair .invite-cta:hover {
    min-height: 48px;
    font-size: .9rem;
    letter-spacing: 0;
  }
}

/* /writers の入口：検索フォームを押し下げない、小さな書斎の風景。 */
.directory-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 264px;
  margin-top: clamp(20px, 3vw, 36px);
  margin-bottom: 28px;
  padding: 40px clamp(24px, 4vw, 48px);
  display: flex;
  align-items: center;
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.directory-hero-photo { position: absolute; inset: 0; z-index: -2; }
.directory-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.directory-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(245,240,230,.92) 0%, rgba(245,240,230,.78) 35%, rgba(245,240,230,.48) 58%, rgba(245,240,230,.05) 100%);
}
.directory-hero-copy { width: min(100%, 34rem); }
.directory-hero .eyebrow { margin-bottom: 14px; color: var(--accent); }
.directory-hero h1 { display: block; font-size: clamp(2rem, 4vw, 3.25rem); color: var(--accent-strong); }
.directory-hero .directory-count { margin-top: 16px; font-size: clamp(.95rem, 1.5vw, 1.1rem); color: var(--ink); }
@media (max-width: 600px) {
  .directory-hero { min-height: 196px; margin-top: 18px; margin-bottom: 22px; padding: 26px 20px; }
  .directory-hero-photo img { object-position: 65% center; }
  .directory-hero::before { background: linear-gradient(90deg, rgba(245,240,230,.96), rgba(245,240,230,.88) 65%, rgba(245,240,230,.2)); }
  .directory-hero .eyebrow { font-size: .75rem; margin-bottom: 12px; }
  .directory-hero h1 { font-size: clamp(1.85rem, 7.5vw, 2.5rem); }
  .directory-hero .directory-count { max-width: 15em; font-size: .875rem; line-height: 1.65; margin-top: 12px; letter-spacing: .01em; }
}
@media (prefers-reduced-motion: no-preference) {
  .directory-hero--intro .directory-hero-photo { animation: directory-photo-in .7s ease-out both; }
  .directory-hero--intro .directory-hero-copy { animation: directory-copy-in .6s ease-out both; }
}
@keyframes directory-photo-in { from { transform: scale(1.018); } to { transform: scale(1); } }
@keyframes directory-copy-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* /about：本文・申込案内・店の約束を、それぞれの役割で見せる。 */
.about-page { margin-top: clamp(20px, 3vw, 36px); }
.about-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 264px;
  padding: 40px clamp(24px, 4vw, 48px);
  display: flex;
  align-items: center;
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.about-hero-photo { position: absolute; inset: 0; z-index: -2; }
.about-hero-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 57%; }
.about-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(245,240,230,.97), rgba(245,240,230,.9) 38%, rgba(245,240,230,.1) 100%); }
.about-hero-copy { max-width: 100%; }
.about-hero .eyebrow { margin: 0 0 14px; color: var(--accent); font-size: .8rem; }
.about-hero h1 { margin: 0; color: var(--accent-strong); font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.85rem, 3.8vw, 3.1rem); line-height: 1.4; }
.about-hero-subtitle { margin: 14px 0 0; color: var(--ink); font-family: var(--font-serif); font-size: clamp(1rem, 1.7vw, 1.2rem); }
.about-body { max-width: 56rem; margin-inline: auto; padding-block: 30px 48px; }
.about-body p { line-height: 1.95; overflow-wrap: anywhere; }
.about-introduction { max-width: 42em; margin-bottom: 26px; }
.about-introduction p { margin: 0 0 12px; }
.about-apply { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; margin-block: 26px 36px; background: var(--notice); border: 1px solid var(--line); border-left: 4px solid #c5a24e; }
.about-apply > div { min-width: 0; }
.about-apply .about-small-label { color: var(--accent); font-size: .85rem; margin: 0 0 7px; }
.about-apply h2 { margin: 0; font-family: var(--font-serif); font-size: clamp(1.35rem, 2.5vw, 1.75rem); font-weight: 600; line-height: 1.5; }
.about-apply p:last-child { margin: 12px 0 0; font-size: .95rem; max-width: 34em; }
.about-apply-button { flex: none; min-height: 48px; padding: 14px 20px; white-space: nowrap; }
.about-scope { max-width: 44em; margin-block: 0 38px; }
.about-scope h2 { margin: 0 0 16px; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; }
.about-scope p { margin: 0 0 16px; }
.about-values > h2 { margin: 0; padding: 17px 22px; background: var(--accent); color: var(--paper); border-left: 3px solid #c5a24e; font-family: var(--font-serif); font-size: clamp(1.15rem, 2.3vw, 1.55rem); font-weight: 500; line-height: 1.6; }
.about-principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.about-principles > li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding-block: 26px 20px; border-bottom: 1px solid var(--line); }
.about-principle-icon { width: 36px; height: 36px; color: var(--accent); display: grid; place-items: center; }
.about-principle-icon svg { display: block; width: 32px; height: 32px; }
.about-principles h3 { margin: 0 0 10px; font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.65; font-weight: 600; }
.about-principles p { margin: 0; font-size: .95rem; }
.about-bookmark-note { margin: 26px 0 0; max-width: 44em; }
.about-footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 22px; }
.about-footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.about-scope.about-operator {
  margin-block: 32px 0;
  padding: clamp(16px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
}
@media (max-width: 768px) {
  .about-apply { align-items: flex-start; flex-direction: column; gap: 18px; }
  .about-apply-button { align-self: flex-start; }
}
@media (max-width: 600px) {
  .about-hero { min-height: 204px; padding: 26px 20px; }
  .about-hero-photo img { object-position: 63% center; }
  .about-hero::before { background: linear-gradient(90deg, rgba(245,240,230,.97), rgba(245,240,230,.88) 70%, rgba(245,240,230,.4)); }
  .about-hero h1 { font-size: clamp(1.65rem, 6.8vw, 2.2rem); }
  .about-hero-subtitle { font-size: .95rem; line-height: 1.7; }
  .about-body { padding-top: 24px; }
  .about-body p { line-height: 1.9; }
  .about-apply { padding: 20px 18px; margin-block: 22px 30px; }
  .about-principles { grid-template-columns: minmax(0, 1fr); }
  .about-principles > li { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding-block: 22px; }
  .about-principle-icon, .about-principle-icon svg { width: 30px; height: 30px; }
  .about-values > h2 { padding: 15px 17px; }
}
@media (prefers-reduced-motion: no-preference) {
  .about-hero-photo { animation: directory-photo-in .7s ease-out both; }
  .about-hero-copy { animation: directory-copy-in .6s ease-out both; }
}

/* /apply の案内だけを調整。申請入力欄・確認・送信の見た目や挙動は共用のまま。 */
.apply-intro-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 264px; margin: clamp(20px, 3vw, 36px) 0 0; padding: 40px clamp(24px, 4vw, 48px); display: flex; align-items: center; background: var(--paper); border-block: 1px solid var(--line); }
.apply-intro-photo { position: absolute; inset: 0; z-index: -2; }
.apply-intro-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 55%; }
.apply-intro-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(245,240,230,.96), rgba(245,240,230,.87) 42%, rgba(245,240,230,.08)); }
.apply-intro-hero .eyebrow { margin: 0 0 14px; font-size: .8rem; color: var(--accent); }
.apply-intro-hero h1 { color: var(--accent-strong); font-size: clamp(1.85rem, 3.8vw, 3.1rem); line-height: 1.4; }
.apply-intro-subtitle { margin: 14px 0 0; color: var(--ink); font-family: var(--font-serif); font-size: clamp(1rem, 1.7vw, 1.2rem); }
.listing-guide { max-width: 56rem; margin: 28px auto 32px; }
.apply-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 26px 28px; margin-bottom: 32px; border: 1px solid var(--line); border-top: 3px solid #c5a24e; background: var(--notice); }
.apply-entry .listing-free { margin: 0; padding: 0; background: none; border: 0; }
.apply-entry .listing-free-title { margin: 0 0 8px; color: var(--accent); font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; }
.apply-entry .listing-free p:last-child { margin: 0; max-width: 30em; font-size: .95rem; line-height: 1.9; }
.apply-entry .apply-jump { margin: 0; max-width: 18em; }
.apply-entry-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 24px; }
.apply-entry-note { display: block; margin-top: 10px; font-size: .8rem; line-height: 1.7; color: var(--ink-soft); }
.listing-guide .guide-part .about-h, .apply-start > .about-h { padding: 15px 20px; margin: 30px 0 16px; background: var(--accent); color: var(--paper); border: 0; border-left: 3px solid #c5a24e; font-size: clamp(1.2rem, 2.3vw, 1.55rem); line-height: 1.6; }
.listing-guide .listing-text { max-width: 44em; margin: 12px 0 0; line-height: 1.95; overflow-wrap: anywhere; }
.listing-guide .listing-more { margin-block: 12px 0; }
.listing-guide .guide-notes { margin-block: 14px 0; line-height: 1.95; }
.apply-guide-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; list-style: none; margin: 0; padding: 0; }
.apply-guide-flow > li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.apply-flow-icon { width: 36px; height: 36px; display: grid; place-items: center; color: var(--accent); }
.apply-flow-icon svg { width: 32px; height: 32px; display: block; }
.apply-guide-flow h3 { margin: 0 0 9px; font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; line-height: 1.6; }
.apply-guide-flow p { margin: 0; font-size: .95rem; line-height: 1.95; overflow-wrap: anywhere; }
.apply-start,
.apply-start + .auth-box,
.apply-start + .verified-box,
.apply-start + .verified-box + .edit-guide { max-width: 56rem; margin-inline: auto; }
.apply-start { scroll-margin-top: 120px; }
.apply-start > .listing-text { line-height: 1.9; }
.apply-start + .auth-box, .apply-start + .verified-box { border-top: 3px solid #c5a24e; }
@media (max-width: 768px) {
  .apply-entry { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .apply-entry .apply-jump { max-width: none; }
}
@media (max-width: 600px) {
  .apply-intro-hero { min-height: 204px; padding: 26px 20px; margin-top: 18px; }
  .apply-intro-photo img { object-position: 63% center; }
  .apply-intro-hero::before { background: linear-gradient(90deg, rgba(245,240,230,.97), rgba(245,240,230,.88) 70%, rgba(245,240,230,.3)); }
  .apply-intro-hero h1 { font-size: clamp(1.65rem, 6.8vw, 2.2rem); }
  .apply-intro-subtitle { font-size: .95rem; }
  .listing-guide { margin-top: 22px; }
  .apply-entry { padding: 20px 18px; margin-bottom: 26px; }
  .apply-entry-button { width: 100%; }
  .listing-guide .guide-part .about-h, .apply-start > .about-h { margin-top: 26px; padding: 14px 17px; }
  .apply-guide-flow { grid-template-columns: minmax(0, 1fr); }
  .apply-guide-flow > li { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .apply-flow-icon, .apply-flow-icon svg { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: no-preference) {
  .apply-intro-photo { animation: directory-photo-in .7s ease-out both; }
  .apply-intro-copy { animation: directory-copy-in .6s ease-out both; }
}

/* 成人向け作品はラベル全体を操作できる二択の検索条件。 */
.directory-finder .finder-adult {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  margin: 18px 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  align-self: center;
}
.directory-finder .finder-adult input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 20px;
  accent-color: var(--accent);
}
.directory-finder .finder-adult span { overflow-wrap: anywhere; }
.directory-finder .finder-adult:has(:checked) { background: var(--surface); border-color: var(--accent); }
.directory-finder .finder-adult:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }

/* TOPの共通誌面。将来のFEATUREはhome-sectionを付け、同じ幅と大区間の間隔を使う。 */
.page-home {
  --home-width: 1120px;
  --home-reading-width: 780px;
  --home-space-inner: 32px;
  --home-space-related: 48px;
  --home-space-section: 80px;
}
.page-home main > :is(.site-notices, .ed-meet, .now-writing, .cta-pair, .home-section) {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--home-width);
  margin-inline: auto;
  padding-inline: 0;
}
.page-home main > .site-notices {
  margin-block: var(--home-space-related);
  padding-block: 0;
  column-gap: var(--home-space-inner);
}
.page-home main > .ed-meet { margin-block: 0; padding-block: 0; }
/* 人物紹介の章扉。NOW WRITINGの紙面とは区別し、帯の高さを控える。 */
.page-home .ed-meet .ed-mast.ed-band {
  padding: 14px 24px;
  background: var(--accent);
  color: var(--paper);
}
.page-home .ed-meet .ed-band .ed-kicker { margin-bottom: 6px; color: var(--paper); }
.page-home .ed-meet .ed-band h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.4;
}
.page-home main > .now-writing {
  margin-block: var(--home-space-related) 0;
  padding: var(--home-space-inner);
}
.page-home .now-writing-inner { max-width: var(--home-reading-width); margin-inline: auto; min-width: 0; }
.page-home main > :is(.cta-pair, .home-section) {
  margin-block: var(--home-space-section) 0;
}
.page-home main > .cta-pair { gap: var(--home-space-related); padding-bottom: var(--home-space-section); }
@media (min-width: 861px) {
  .page-home .ed-meet .ed-mast.ed-band { padding-block: 8px; }
  .page-home .cta-pair :is(.essay-text, .invite-text) { padding: var(--home-space-inner); }
  .page-home .cta-pair :is(.essay, .invite) h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
}
@media (max-width: 860px) {
  .page-home { --home-space-inner: 24px; --home-space-related: 40px; --home-space-section: 64px; }
  .page-home main > .now-writing { padding: var(--home-space-inner) 16px; }
  .page-home .ed-meet .ed-mast.ed-band { padding: 12px 16px; }
}

/* TOPの導線と近況欄。WRITERSの人物紹介を維持し、近況は独立した読み物にする。 */
.page-home .meet-again a[href="/"] { background: transparent; border-color: var(--line-strong); }
.page-home .meet-again .meet-more { background: transparent; border-color: transparent; padding-inline: 0; text-decoration: underline; text-underline-offset: .2em; }
.page-home main > .now-writing { margin-top: 64px; padding-inline: 0; }
.page-home .now-writing-text { height: 5.7em; -webkit-line-clamp: 3; }

.page-home main > .now-writing + :is(.cta-pair, .home-section) { margin-top: 80px; }

/* NOW WRITINGの写真背景。文字・カード・操作は前面に維持する。 */
.page-home .now-writing::before {
  background-image: linear-gradient(115deg, rgba(245, 240, 230, .90), rgba(245, 240, 230, .82) 45%, rgba(245, 240, 230, .64)), url('/images/now-writing-books-desktop.webp');
  background-size: cover;
  background-position: center;
  filter: blur(1.2px) saturate(.6);
  clip-path: inset(0);
}
@media (max-width: 860px) {
  .page-home .now-writing::before {
    background-image: linear-gradient(rgba(245, 240, 230, .88), rgba(245, 240, 230, .76)), url('/images/now-writing-books-mobile.webp');
    background-position: 58% center;
  }
}

/* 見出しはWRITERS帯の文字始点、カードと操作は780pxの中央に配置する。 */
.page-home .now-writing-inner { max-width: none; }
.page-home .now-writing-head { padding-inline: 24px; }
.page-home .now-writing-window,
.page-home .now-writing-controls { max-width: var(--home-reading-width); margin-inline: auto; }
.page-home .now-writing-controls { justify-content: center; }
@media (max-width: 860px) {
  .page-home .now-writing-head { padding-inline: 16px; }
  .page-home .now-writing-window,
  .page-home .now-writing-controls { width: calc(100% - 32px); }
}

/* WRITERSと同じed-kickerを再利用。装飾の寸法を揃え、細線は明るい写真背景に合わせた深緑にする。 */
.page-home .now-writing-head .ed-kicker { margin-bottom: 6px; }
.page-home .now-writing-head .ed-kicker::after { max-width: 160px; background: rgb(35 57 46 / 28%); }
.page-home .now-writing-title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.page-home .now-writing-title-row h2 { flex: 0 0 auto; }
.page-home .now-writing-title-row .small { flex: 0 1 auto; color: var(--muted); }
.page-home .now-writing-note { margin: 12px 0 0; font-size: .78rem; line-height: 1.8; color: var(--muted); }
.page-home .now-writing-refresh-row { max-width: var(--home-reading-width); margin: 8px auto 0; text-align: center; }
.page-home .now-writing-refresh { min-height: 44px; padding: 8px 16px; background: var(--paper); color: var(--accent); border: 1px solid var(--line-strong); font-size: .85rem; }
.page-home .now-writing-refresh[hidden] { display: none; }
.page-home .now-writing-refresh[aria-disabled="true"] { opacity: .6; cursor: progress; }
.page-home .now-writing-refresh:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 860px) {
  .page-home .now-writing-refresh-row { width: calc(100% - 32px); }
  .page-home .now-writing-head .ed-kicker::after { max-width: none; }
}

/* 状態通知の場所を確保し、保存・解除で周囲の配置を動かさない。 */
.profile-bookmark .bookmark-notice { min-height: 2.8em; max-width: 28em; }
.bookmark-button:disabled { opacity: .65; cursor: wait; }
/* 保存済みの金線も1pxに揃え、状態変更でボタン高を変えない。 */
.bookmark-button[aria-pressed="true"] { border-bottom-width: 1px; }

/* 運営への入口：書き手紹介とは分けた、静かな編集記事の案内。 */
.page-home main > .home-information {
  width: calc(100% - 2 * var(--gutter)); max-width: var(--home-width);
  margin: 0 auto 64px; padding: 36px 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px;
  border-top: 1px solid var(--line-strong); color: var(--accent);
}
.home-information-item { min-width: 0; display: flex; flex-direction: column; }
.page-home main > .home-official-x {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--home-width);
  margin: 0 auto 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.home-official-x h2 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 1.125rem;
}
.home-official-x p { margin: 0; }
.home-official-x a { display: inline-flex; align-items: center; min-height: 44px; }
.home-information .ed-kicker { font-size: .68rem; margin-bottom: 12px; }
.home-information .ed-kicker::before { width: 24px; height: 3px; }
.home-information .ed-kicker::after { max-width: 90px; }
.home-information h2 { margin: 0 0 14px; font-family: var(--font-serif); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; line-height: 1.5; }
.home-information-item > p:not(.ed-kicker) { max-width: 32em; margin: 0 0 16px; color: var(--ink); line-height: 1.95; }
.home-information a { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: .5em; min-height: 44px; }
.page-development main { max-width: 1120px; }
.development-page { margin: 32px 0 56px; color: var(--ink); }
.development-head { position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 5vw, 64px); background: var(--paper); border-block: 1px solid var(--line-strong); }
.development-head .ed-kicker { margin-bottom: 20px; }
.development-head .ed-kicker::after { max-width: 160px; }
.development-head h1 { margin: 0 0 26px; font-family: var(--font-serif); font-weight: 500; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.4; color: var(--accent); }
.development-head > p:not(.ed-kicker) { max-width: 40em; margin: 0 0 12px; line-height: 2; }
.development-head > p:last-child { margin-bottom: 0; }
.development-body { max-width: 44rem; margin: 0 auto; padding: 48px 0 0; }
.development-body h2 { margin: 0 0 24px; font-family: var(--font-serif); font-size: clamp(1.35rem, 2.5vw, 1.9rem); font-weight: 500; line-height: 1.6; color: var(--accent); }
.development-body h3 { margin: 30px 0 14px; font-size: 1.05rem; line-height: 1.8; color: var(--accent); }
.development-body p, .development-topics { line-height: 2; overflow-wrap: anywhere; }
.development-topics { padding-left: 1.4em; margin: 0 0 28px; }
.development-topics li { padding-left: .2em; margin-block: 6px; }
.development-topics li::marker { color: var(--ochre-ink); }
.development-main-link { margin: 32px 0 8px; }
.development-cta { display: inline-flex; align-items: center; gap: .6em; min-height: 48px; max-width: 100%; padding: 12px 20px; background: var(--accent); color: var(--paper); border: 1px solid var(--accent); text-decoration: none; font-weight: 700; line-height: 1.7; }
.development-cta:hover { background: var(--accent-strong); color: var(--paper); }
.development-latest { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line-strong); }
.development-latest .ed-kicker { margin-bottom: 12px; }
.development-latest h2 { margin-bottom: 20px; }
.development-latest h3 { margin-top: 0; font-family: var(--font-serif); font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 500; }
.development-latest .text-link, .development-back .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.development-back { margin-top: 40px; }
.home-information a:focus-visible, .development-page a:focus-visible { outline: 3px solid var(--ochre-ink); outline-offset: 4px; }
.contact-collaboration-note { max-width: 44em; margin-top: 12px; line-height: 1.9; }
@media (max-width: 860px) {
  .page-home main > .home-information { grid-template-columns: minmax(0, 1fr); gap: 30px; margin-bottom: 40px; padding-top: 28px; }
  .home-information-item + .home-information-item { padding-top: 28px; border-top: 1px solid var(--line); }
  .development-page { margin-top: 20px; }
  .development-head { padding: 28px 20px; }
  .development-body { padding-top: 32px; }
}

/* /developmentだけの装飾写真。本文・リンク・他ページのヒーローは変えない。 */
.development-hero-photo { position: absolute; inset: 0; z-index: -2; pointer-events: none; transform: scaleX(-1); }
.development-hero-photo img { display: block; width: 128%; max-width: none; height: 100%; object-fit: cover; object-position: left center; }
.development-head::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(245,240,230,.84), rgba(245,240,230,.64) 56%, rgba(245,240,230,.18)); }
@media (max-width: 860px) {
  .development-hero-photo img { object-position: 10% center; }
  .development-head::before { background: linear-gradient(90deg, rgba(245,240,230,.94), rgba(245,240,230,.82) 65%, rgba(245,240,230,.62)); }
}

/* 本人の代表作順：作品の入力欄・表紙と一緒に移動する操作 */
.work-order-actions { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.work-order-actions[hidden] { display:none; }
.work-order-actions button { min-height:44px; min-width:112px; padding:8px 16px; }
.work-order-actions button:disabled { opacity:.45; cursor:default; }
[data-work-order-list] > fieldset { min-width:0; }

/* 共通ナビとTOP導線：検索・偶然の出会い・近況の役割を分ける。 */
.page-home main > .site-notices { margin-bottom:0; }
.site-nav a.nav-find { text-decoration:none; }
.site-nav a:not(.nav-cta):is(:hover,:focus-visible) {
  text-decoration:underline; text-decoration-color:var(--mustard-deep);
  text-decoration-thickness:2px; text-underline-offset:.5em;
}
.nav-cta-mobile, .mobile-menu-toggle, .mobile-site-menu { display:none; }
.page-home main > .now-writing { margin-top:48px; }
.page-home main > :is(.now-writing,.home-section) + .ed-meet { margin-top:64px; }
.page-home main > .ed-meet + .cta-pair { margin-top:80px; }
@media (max-width:768px) {
  .site-notices-description { display:none; }
  .site-header.is-menu-ready,
  body:not(.page-admin) .site-header.is-menu-ready {
    display:flex; flex-direction:row; align-items:center; flex-wrap:nowrap;
    gap:8px; padding:8px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left));
    min-height:64px; max-width:none; clip-path:none; box-shadow:0 1px 0 var(--line);
    position:sticky; top:0; z-index:30; background:var(--paper);
  }
  .page-admin .site-header.is-menu-ready { position:relative; top:auto; }
  .site-header.is-menu-ready .brand--logo { flex:1 1 auto; min-width:0; }
  .site-header.is-menu-ready .brand-logo { width:190px; max-width:100%; }
  .site-header.is-menu-ready .site-nav { display:flex; flex:0 0 auto; margin:0; padding:0; border:0; }
  .site-header.is-menu-ready .site-nav > a:not(.nav-cta) { display:none; }
  .site-header.is-menu-ready .site-nav a.nav-cta {
    position:static; min-height:44px; padding:0 12px; font-size:.8rem; letter-spacing:.03em; white-space:nowrap;
  }
  .site-header.is-menu-ready .mobile-menu-toggle {
    display:inline-flex; align-items:center; justify-content:center; flex:0 0 44px;
    min-width:44px; min-height:44px; padding:0; border:1px solid var(--line-strong);
    border-radius:2px; background:var(--paper); color:var(--accent); font-size:1.3rem;
  }
  .site-header.is-menu-ready .mobile-site-menu:not([hidden]) {
    display:block; position:absolute; top:100%; left:0; right:0;
    max-height:calc(100dvh - 80px); overflow-y:auto; overscroll-behavior:contain;
    padding:12px max(20px,env(safe-area-inset-left)) 20px; background:var(--paper);
    border-block:1px solid var(--line-strong); box-shadow:0 8px 12px rgb(35 57 46 / 10%);
  }
  .mobile-site-menu a { display:flex; align-items:center; min-height:44px; padding:8px 12px; color:var(--accent); text-decoration:none; }
  .mobile-site-menu a:is(:hover,:focus-visible) { text-decoration:underline; text-decoration-color:var(--mustard-deep); text-underline-offset:.3em; }
  .mobile-menu-home { font-family:var(--font-serif); font-weight:700; }
  .mobile-menu-pages { padding-left:16px; }
  .mobile-menu-sections { margin-top:8px; padding-top:8px; border-top:1px solid var(--line); }
  body:not(.page-admin) .is-menu-ready ~ main [id] { scroll-margin-top:88px; }
  .page-home main > .now-writing { margin-top:32px; }
  .page-home main > :is(.now-writing,.home-section) + .ed-meet { margin-top:48px; }
  .page-home main > .ed-meet + .cta-pair { margin-top:64px; }
}

/* 管理者の危険操作：日常操作から控えめに分離する。 */
.page-admin .admin-delete-link { display:inline-flex; align-items:center; min-height:44px; padding:6px 10px; color:var(--brick); border:1px solid currentColor; text-decoration:none; border-radius:2px; }
.page-admin .admin-delete-link:is(:hover,:focus-visible) { background:var(--surface-sunk); text-decoration:underline; }
.admin-writer-actions { display:flex; gap:12px; align-items:center; margin-left:auto; flex-wrap:wrap; }
.admin-delete-confirm { max-width:760px; margin-inline:auto; padding:24px; border:1px solid var(--brick); background:var(--surface); }
.admin-delete-confirm .delete-target-id { overflow-wrap:anywhere; }
.admin-delete-confirm .actions { display:flex; flex-wrap:wrap; gap:12px; }
.admin-delete-confirm button,.admin-delete-confirm .button { min-height:44px; }
@media(max-width:600px){.admin-delete-confirm{padding:16px}.admin-writer-actions{margin-left:0}}

/* WRITERSの出口を紹介カードの右端へ揃える。mobileは窮屈にならない全幅リンク。 */
.page-home .meet-again { flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 600px) {
  .site-header.is-menu-ready .nav-cta-desktop { display:none; }
  .site-header.is-menu-ready .nav-cta-mobile { display:inline; }
  .page-home .meet-again a[href="/"] { width: 100%; justify-content: center; }
  .page-home .meet-again-note { width: 100%; text-align: center; }
}

.self-update-guidance p {
  margin: 0 0 0.65em;
}
.self-update-current {
  margin: 16px 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: #faf8f1;
}
.self-update-current h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
}
.self-update-current p {
  margin: 0;
  overflow-wrap: anywhere;
}
#self-update textarea {
  max-width: 100%;
}

/* ---------- 管理コンソール：サイドバー・一覧・ダッシュボード・更新履歴・推移グラフ ---------- */
.page-admin-console main { max-width: 1320px; min-height: 0; padding-block: 16px 24px; }
/* 管理コンソール専用のヘッダー・フッター（公開サイトの .site-header / .site-footer とは別） */
.admin-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; max-width: 1320px; margin-inline: auto; padding: 10px max(var(--gutter), env(safe-area-inset-left)) 10px max(var(--gutter), env(safe-area-inset-right)); border-bottom: 1px solid var(--line); }
.admin-brand { margin: 0; font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; }
.admin-brand a { color: var(--accent-strong); text-decoration: none; }
.admin-brand a:is(:hover, :focus-visible) { text-decoration: underline; }
.admin-brand-sep { margin: 0 .15em; color: var(--muted); }
.admin-public-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; font-size: var(--text-sm); color: var(--accent); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); text-decoration: none; background: var(--surface); }
.admin-public-link:is(:hover, :focus-visible) { text-decoration: underline; border-color: var(--accent); }
.admin-footer { max-width: 1320px; margin: 8px auto 0; padding: 12px max(var(--gutter), env(safe-area-inset-left)) max(16px, env(safe-area-inset-bottom)); font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); }
.admin-footer p { margin: 0; }
.page-admin:not(.page-admin-console) main { min-height: 0; padding-block: 24px; }
.admin-console { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.console-main { min-width: 0; }
.console-main > h1:first-child, .console-main > .notice:first-child + h1 { margin-top: 0; }
.console-side { position: sticky; top: 12px; padding: 14px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.console-side-title { margin: 0 16px 8px; font-size: var(--text-sm); color: var(--muted); letter-spacing: .04em; }
.admin-console nav ul { margin: 0; padding: 0; list-style: none; }
.admin-console nav li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 8px 16px; color: var(--ink-soft); text-decoration: none; border-left: 4px solid transparent; }
.admin-console nav li a:is(:hover, :focus-visible) { color: var(--accent); background: var(--accent-soft); text-decoration: underline; }
.admin-console nav li a[aria-current="page"] { color: var(--accent-strong); font-weight: 700; background: var(--accent-soft); border-left-color: var(--accent); }
.console-count { min-width: 1.8em; padding: 0 6px; font-size: .75rem; font-weight: 700; line-height: 1.6; text-align: center; color: var(--accent-ink); background: var(--brick); border-radius: 999px; }
.console-menu { display: none; }
.console-menu summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 14px; cursor: pointer; list-style: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.console-menu summary::-webkit-details-marker { display: none; }
.console-menu-label { font-size: var(--text-sm); color: var(--muted); }
.console-menu-current { flex: 1; font-weight: 700; color: var(--accent-strong); }
.console-menu nav { margin-top: 6px; padding: 6px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 900px) {
  .admin-console { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .console-side { display: none; }
  .console-menu { display: block; }
}
.console-tabs { margin: 12px 0; }
.console-tabs ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.console-tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px; color: var(--ink-soft); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.console-tabs a:is(:hover, :focus-visible) { border-color: var(--accent); text-decoration: underline; }
.console-tabs a[aria-current="page"] { color: var(--accent-ink); font-weight: 700; background: var(--accent); border-color: var(--accent); }
.console-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin: 12px 0 16px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.console-filter .field { flex: 1 1 200px; min-width: 0; margin: 0; }
.console-filter .field--dates { flex: 2 1 280px; }
.console-filter :is(input, select) { width: 100%; min-width: 0; }
.console-dates { display: flex; align-items: center; gap: 6px; }
.console-dates input { flex: 1 1 0; }
.console-filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.console-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0; }
.console-pager [aria-disabled="true"] { opacity: .45; pointer-events: none; }
.console-range { color: var(--muted); font-variant-numeric: tabular-nums; }
.console-scope, .console-related { margin: 8px 0 12px; }
.console-actions a { display: inline-block; margin: 2px 12px 2px 0; }
.console-actions a:last-child { margin-right: 0; }
.console-panel { margin: 14px 0; padding: 2px 18px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.console-panel > h2 { margin: .7em 0 .5em; font-size: 1.1rem; }
/* ダッシュボード：PCでは「対応が必要なもの」とアクセスの概要を横に並べる */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; align-items: start; }
.dash-grid .console-panel { margin: 14px 0 0; }
@media (min-width: 1200px) {
  .dash-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .dash-side .ov-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.console-panel--attention { border-color: var(--brick); border-left-width: 4px; }
/* 一覧表：サイト共通の表は折り返さないが、管理コンソールの一覧は名前などを折り返して枠内に収める（日時は1行） */
.console-table :is(th, td) { padding: 10px 12px; white-space: normal; overflow-wrap: anywhere; }
.console-table td:is([data-label*="日"], [data-label="状態"], [data-label="事前チェック"], [data-label="判定"]) { white-space: nowrap; }
/* 狭い画面では各行をカード状に積み、横スクロールを出さない */
@media (max-width: 640px) {
  /* 見出し行の代わりに、各セルの前へ項目名（data-label）を表示する */
  .console-table thead { display: none; }
  .console-table, .console-table tbody, .console-table tr, .console-table td, .console-table th[scope="row"] { display: block; width: 100%; }
  .console-table tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .console-table td, .console-table th[scope="row"] { padding: 3px 0; border: 0; text-align: left; white-space: normal !important; overflow-wrap: anywhere; }
  .console-table td[data-label]::before, .console-table th[data-label]::before { content: attr(data-label) "："; color: var(--muted); font-size: var(--text-sm); font-weight: 400; }
  .console-table .console-actions { padding-top: 8px; }
  /* 数値の表（申請の状況・事前チェック）は、1行に「項目：値」を詰めて並べる */
  .ov-table tr { display: flex; flex-wrap: wrap; gap: 2px 16px; }
  .ov-table th[scope="row"] { flex-basis: 100%; font-weight: 700; }
  .ov-table th[scope="row"]::before { content: none !important; }
  .console-table.ov-table td { width: auto; text-align: left; }
}
/* ダッシュボード */
.ov-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ov-card a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 12px; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ov-card a:is(:hover, :focus-visible) { border-color: var(--accent); }
.ov-card a:is(:hover, :focus-visible) .ov-card-label { text-decoration: underline; }
.ov-card--alert a { border-color: var(--brick); border-left-width: 4px; }
/* ラベルは語の途中で折り返さない（<wbr> の位置で折り返す。収まらない場合だけ任意の位置で折る） */
.ov-card-label, .ov-note { word-break: keep-all; overflow-wrap: anywhere; }
.ov-card-label { font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.5; }
.ov-card-value { font-size: 1.7rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ov-card-value small { margin-left: 2px; font-size: .9rem; }
.ov-note { font-size: var(--text-sm); color: var(--muted); }
.att-list { margin: 0; padding: 0; list-style: none; }
.att-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.att-list li:first-child { border-top: 0; }
.att-list a { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; min-width: 0; overflow-wrap: anywhere; }
.att-type { font-size: var(--text-sm); color: var(--muted); }
.att-name { font-weight: 700; }
.att-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--text-sm); }
.att-flag { padding: 0 8px; color: var(--hold); background: var(--hold-soft); border-radius: 999px; }
.att-late { color: var(--brick-ink); font-weight: 700; }
.att-others { margin: 8px 0 0; padding-left: 1.2em; }
.ov-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.ov-mini > div { margin: 0; }
.ov-mini dt { font-size: var(--text-sm); color: var(--muted); }
.ov-mini dd { margin: 0; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .ov-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ov-table td { font-variant-numeric: tabular-nums; text-align: right; }
.ov-table th[scope="row"] { white-space: nowrap; }
.ov-table thead th:not(:first-child) { text-align: right; }
.ov-issues { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 10px 0 4px; padding: 0; list-style: none; font-size: var(--text-sm); }
.ov-issues li { display: inline-flex; gap: 6px; padding: 2px 10px; background: var(--surface-sunk); border-radius: 999px; }
/* 更新履歴 */
.history-list { display: grid; gap: 12px; }
.history-group { padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.history-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 6px; }
.history-head p { margin: 0; }
.history-writer { font-weight: 700; overflow-wrap: anywhere; }
.history-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--text-sm); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.history-count { padding: 0 8px; color: var(--accent-soft-ink); background: var(--accent-soft); border-radius: 999px; }
.history-field { padding: 0 8px; background: var(--surface-sunk); border-radius: 999px; }
.history-links { margin-left: auto !important; }
.history-diff { display: grid; gap: 10px; margin: 6px 0; }
.history-change-field { margin: 0 0 4px; font-size: var(--text-sm); font-weight: 700; color: var(--ink-soft); }
.history-change-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.history-change-values > div { min-width: 0; margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.history-before { background: var(--paper); }
.history-after { background: var(--accent-soft); border-color: #c9d5c8 !important; }
.history-change-values dt { margin: 0 0 2px; font-size: .75rem; color: var(--muted); letter-spacing: .04em; }
.history-change-values dd { margin: 0; font-size: .95rem; line-height: 1.75; overflow-wrap: anywhere; word-break: normal; }
.history-items { margin-top: 8px; }
.history-items summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; color: var(--accent); }
.history-items ol { margin: 6px 0 0; padding-left: 1.4em; }
.history-items li { padding: 6px 0; border-top: 1px dashed var(--line); }
@media (max-width: 640px) {
  .history-change-values { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .history-links { margin-left: 0 !important; }
  .history-group { padding: 12px; }
}
/* 推移グラフ */
.trend-chart { margin: 12px 0 16px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.trend-chart figcaption { font-weight: 700; }
.trend-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 8px; font-size: var(--text-sm); color: var(--ink-soft); }
.trend-key::before { content: ""; display: inline-block; width: 22px; margin-right: 6px; vertical-align: middle; border-top: 3px solid var(--accent); }
.trend-key--clicks::before { border-top: 3px dashed var(--brick); }
.trend-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.trend-y { display: flex; flex-direction: column; justify-content: space-between; height: 180px; font-size: .75rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.trend-plot svg { display: block; width: 100%; height: 180px; overflow: visible; }
.trend-grid { stroke: var(--line); stroke-width: 1; }
.trend-base { stroke: var(--line-strong); stroke-width: 1; }
.trend-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.trend-line--views { stroke: var(--accent); }
.trend-line--clicks { stroke: var(--brick); stroke-dasharray: 6 4; }
.trend-x { display: flex; justify-content: space-between; margin-top: 4px; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.trend-chart > p.small { margin: 8px 0 0; }
@media (max-width: 420px) {
  .ov-card-value { font-size: 1.6rem; }
  .trend-y, .trend-plot svg { height: 140px; }
}

/* TOP：今週のジャンルピックアップ。NOW WRITINGとWRITERSの間の独立した節。
   作者レールと同じアイコン＋名前の札を、利用者の操作だけで横にスクロールする（自動では流さない）。 */
.page-home main > .genre-pickup { margin-bottom: var(--home-space-related); min-width: 0; }
.genre-pickup-head { padding-inline: 24px; margin-bottom: 16px; }
.genre-pickup-head .ed-kicker { margin-bottom: 6px; }
.genre-pickup-head .ed-kicker::after { max-width: 160px; background: rgb(35 57 46 / 28%); }
.genre-pickup-head h2 { margin: 0; font-family: var(--font-serif); font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 600; line-height: 1.5; }
.genre-pickup-genre { margin: 8px 0 0; font-size: 1rem; line-height: 1.7; color: var(--ink-soft); }
.genre-pickup-genre strong { margin-inline: .35em .1em; padding: 0 .5em; background: var(--accent); color: var(--paper); font-family: var(--font-serif); font-weight: 600; }
.genre-pickup-count { font-size: .85rem; color: var(--muted); }
.genre-pickup-note { margin: 6px 0 0; font-size: .78rem; line-height: 1.8; color: var(--muted); }
.genre-pickup-scroller { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-padding-inline: 24px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.genre-pickup-list { display: flex; gap: 0 clamp(8px, 1.4vw, 16px); width: max-content; min-width: 100%; margin: 0; padding: 0 24px 10px; list-style: none; }
.genre-pickup-item { flex: 0 0 auto; width: 180px; }
.genre-pickup-link { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 12px 6px 10px 2px; border-top: 1px solid var(--line-strong); color: var(--ink-soft); font-weight: 500; text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease); }
.genre-pickup-link:hover { background: var(--surface); color: var(--ink); }
/* スクロール領域の端で切れないよう、フォーカスの枠は札の内側に描く */
.genre-pickup-link:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; background: var(--surface); color: var(--ink); }
.genre-pickup-name { min-width: 0; overflow: hidden; font-family: var(--font-serif); font-size: .98rem; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.genre-pickup-name.ed-name--longer { font-size: .82rem; }
.genre-pickup-more { margin: 8px 0 0; padding-inline: 24px; font-size: .85rem; }
.genre-pickup-more a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 860px) {
  .genre-pickup-head, .genre-pickup-more { padding-inline: 16px; }
  .genre-pickup-scroller { scroll-padding-inline: 16px; }
  .genre-pickup-list { padding-inline: 16px; }
  .genre-pickup-item { width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .genre-pickup-link { transition: none; }
  .genre-pickup-scroller { scroll-behavior: auto; }
}
