/* =========================================================
   Press.co.jp site.css
   発信と報道作法の実務ガイド
   ========================================================= */

/* ------------------------------
   Base tokens
------------------------------ */

:root {
  --ink: #171514;
  --ink-soft: #3b3632;
  --muted: #6d655f;
  --paper: #f7f2ea;
  --paper-2: #efe6da;
  --paper-3: #fffaf2;
  --white: #ffffff;

  --red: #9f1f1f;
  --red-2: #b72a2a;
  --red-dark: #6f1414;
  --black: #111111;

  --line: rgba(23, 21, 20, 0.13);
  --line-strong: rgba(23, 21, 20, 0.23);

  --shadow: 0 24px 70px rgba(0, 0, 0, 0.13);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.09);

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;

  --wrap: 1180px;

  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Times New Roman", serif;
  --font-sans: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ------------------------------
   Reset
------------------------------ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(159, 31, 31, 0.08), transparent 30rem),
    linear-gradient(180deg, #fbf7f0 0%, var(--paper) 48%, #efe6da 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.85;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--red-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red);
}

p {
  margin: 0 0 1.2rem;
}

ul,
ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding-left: 1.35rem;
}

li {
  margin: 0.25rem 0;
}

strong {
  font-weight: 800;
}

::selection {
  background: rgba(159, 31, 31, 0.2);
}

/* ------------------------------
   Reading progress
------------------------------ */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), #d45b49);
  box-shadow: 0 0 18px rgba(159, 31, 31, 0.45);
}

/* ------------------------------
   Layout helpers
------------------------------ */

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 7vw, 7rem) 0;
}

.section-paper {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.15)),
    repeating-linear-gradient(
      0deg,
      rgba(80, 55, 38, 0.025) 0,
      rgba(80, 55, 38, 0.025) 1px,
      transparent 1px,
      transparent 9px
    );
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.index-header {
  max-width: 860px;
  margin: 0 auto clamp(2rem, 4vw, 3.25rem);
  text-align: center;
}

.index-header h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.index-header .lead {
  margin-inline: auto;
}

/* ------------------------------
   Header / navigation
------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.85rem 0;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 210px;
}

.logo-mark {
  font-family: var(--font-serif);
  font-size: 1.42rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.logo-sub {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

.nav a:hover {
  background: rgba(159, 31, 31, 0.08);
  color: var(--red-dark);
}

.nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--white);
}

/* ------------------------------
   Homepage hero
   IMPORTANT: image is separate, not text overlay.
------------------------------ */

.home-hero {
  position: relative;
  padding: clamp(2rem, 5vw, 5rem) 0 clamp(2.5rem, 5vw, 6rem);
  background:
    radial-gradient(circle at 18% 22%, rgba(159, 31, 31, 0.11), transparent 24rem),
    linear-gradient(135deg, #f8f1e7 0%, #efe0cf 100%);
  color: var(--ink);
  overflow: hidden;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  background: rgba(255, 255, 255, 0.93);
  color: var(--ink);
  border: 1px solid rgba(23, 21, 20, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.home-hero .hero-kicker,
.page-hero .hero-kicker {
  margin: 0 0 0.85rem;
  color: var(--red-dark);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-shadow: none;
}

.home-hero h1 {
  margin: 0 0 1rem;
  color: #111;
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-shadow: none;
}

.home-hero .lead {
  color: #342f2c;
  font-size: clamp(1.02rem, 1.6vw, 1.28rem);
  font-weight: 500;
  line-height: 1.9;
  text-shadow: none;
}

.hero-image {
  position: relative;
  border-radius: calc(var(--radius-xl) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink);
  min-height: 420px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: inherit;
  pointer-events: none;
}

/* ------------------------------
   Page heroes
------------------------------ */

.page-hero {
  position: relative;
  min-height: clamp(360px, 46vw, 560px);
  display: flex;
  align-items: end;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(2.5rem, 6vw, 5rem);
  background:
    linear-gradient(90deg, rgba(15, 13, 12, 0.88) 0%, rgba(15, 13, 12, 0.62) 52%, rgba(15, 13, 12, 0.18) 100%),
    var(--hero-bg, linear-gradient(135deg, #2b2420, #8f1f1f));
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.12), transparent 18rem),
    linear-gradient(180deg, transparent 65%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.page-hero .wrap {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 1rem;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.7vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.page-hero .lead {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.93);
  font-size: clamp(1.02rem, 1.7vw, 1.28rem);
  font-weight: 500;
  line-height: 1.95;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.45);
}

.page-hero .hero-kicker {
  color: #fff;
  opacity: 0.96;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.55);
}

/* Hero background mappings */

.start-hero {
  --hero-bg: url("/images/press-start-hero-first-public-statement-blank-page-pen.jpg");
}

.rules-hero {
  --hero-bg: url("/images/press-rules-hero-journalism-practice-rules-checklist.jpg");
}

.ethics-hero {
  --hero-bg: url("/images/press-ethics-hero-trust-fairness-corrections-editorial-table.jpg");
}

.checklist-hero {
  --hero-bg: url("/images/press-checklist-hero-publishing-checklist-clipboard-coffee.jpg");
}

.glossary-hero {
  --hero-bg: url("/images/press-glossary-hero-journalism-words-index-cards.jpg");
}

.contact-hero {
  --hero-bg: url("/images/press-contact-hero-media-contact-desk-phone-notebook.jpg");
}

.disclaimer-hero {
  --hero-bg: url("/images/press-disclaimer-hero-legal-note-editorial-warning-paper.jpg");
}

.privacy-hero {
  --hero-bg: url("/images/press-privacy-hero-locked-drawer-private-notes.jpg");
}

.license-hero {
  --hero-bg: url("/images/press-license-hero-rights-document-red-seal.jpg");
}

.sitemap-hero {
  --hero-bg: url("/images/press-sitemap-hero-site-map-newspaper-lines-red-thread.jpg");
}

.advertise-hero {
  --hero-bg: url("/images/press-advertise-hero-ethical-advertising-media-kit-editorial-desk.jpg");
}

.hero-journalism-index {
  --hero-bg: url("/images/press-journalism-index-hero-newspaper-principles-ink-paper.jpg");
}

.hero-facts-opinion {
  --hero-bg: url("/images/press-journalism-facts-vs-opinion-two-columns-red-line.jpg");
}

.hero-verification {
  --hero-bg: url("/images/press-journalism-verification-documents-magnifier-notes.jpg");
}

.hero-fairness {
  --hero-bg: url("/images/press-journalism-fairness-balanced-scales-editorial-desk.jpg");
}

.hero-sources {
  --hero-bg: url("/images/press-journalism-sources-notebook-voice-recorder-business-card.jpg");
}

.hero-interviews {
  --hero-bg: url("/images/press-journalism-interviews-two-chairs-table-recorder.jpg");
}

.hero-quotes {
  --hero-bg: url("/images/press-journalism-quotes-quotation-marks-red-pencil-paper.jpg");
}

.hero-headlines {
  --hero-bg: url("/images/press-journalism-headlines-print-blocks-front-page.jpg");
}

.hero-corrections {
  --hero-bg: url("/images/press-journalism-corrections-red-pencil-correction-notice.jpg");
}

.hero-conflicts {
  --hero-bg: url("/images/press-journalism-conflicts-of-interest-crossed-lines-contracts.jpg");
}

.hero-privacy-harm {
  --hero-bg: url("/images/press-journalism-privacy-and-harm-closed-envelope-soft-light.jpg");
}

.hero-ad-disclosure {
  --hero-bg: url("/images/press-journalism-advertising-disclosure-clear-label-stamp.jpg");
}

.hero-entrepreneur-index {
  --hero-bg: url("/images/press-entrepreneur-index-hero-founder-speaking-through-written-page.jpg");
}

.hero-founder-message {
  --hero-bg: url("/images/press-entrepreneur-founder-message-letter-from-founder-desk.jpg");
}

.hero-company-announcement {
  --hero-bg: url("/images/press-entrepreneur-company-announcement-small-office-bulletin.jpg");
}

.hero-product-launch {
  --hero-bg: url("/images/press-entrepreneur-product-launch-prototype-press-note.jpg");
}

.hero-public-statement {
  --hero-bg: url("/images/press-entrepreneur-public-statement-microphone-empty-room.jpg");
}

.hero-apology {
  --hero-bg: url("/images/press-entrepreneur-apology-and-explanation-folded-letter.jpg");
}

.hero-criticism {
  --hero-bg: url("/images/press-entrepreneur-responding-to-criticism-calm-reply-desk.jpg");
}

.hero-media-contact {
  --hero-bg: url("/images/press-entrepreneur-media-contact-business-card-phone-email.jpg");
}

.hero-building-trust {
  --hero-bg: url("/images/press-entrepreneur-building-trust-archive-binders-light.jpg");
}

.hero-ai-index {
  --hero-bg: url("/images/press-ai-index-hero-ai-assistant-human-editor-desk.jpg");
}

.hero-ai-assistant {
  --hero-bg: url("/images/press-ai-editorial-assistant-screen-and-red-pencil.jpg");
}

.hero-ai-limits {
  --hero-bg: url("/images/press-ai-fact-checking-limits-warning-note-documents.jpg");
}

.hero-ai-draft {
  --hero-bg: url("/images/press-ai-prompt-to-draft-rough-notes-to-polished-page.jpg");
}

.hero-ai-review {
  --hero-bg: url("/images/press-ai-human-final-review-hands-on-manuscript.jpg");
}

.hero-ai-disclosure {
  --hero-bg: url("/images/press-ai-disclosure-policy-transparent-label-paper.jpg");
}

.hero-templates-index {
  --hero-bg: url("/images/press-templates-index-hero-template-library-paper-folders.jpg");
}

.hero-template-correction {
  --hero-bg: url("/images/press-templates-correction-policy-red-correction-stamp.jpg");
}

.hero-template-editorial {
  --hero-bg: url("/images/press-templates-editorial-policy-rules-on-wall.jpg");
}

.hero-template-press-release {
  --hero-bg: url("/images/press-templates-press-release-official-announcement-paper.jpg");
}

.hero-template-founder {
  --hero-bg: url("/images/press-templates-founder-message-portrait-desk-letter.jpg");
}

.hero-template-interview {
  --hero-bg: url("/images/press-templates-interview-request-envelope-recorder.jpg");
}

.hero-template-reply {
  --hero-bg: url("/images/press-templates-right-of-reply-request-two-documents.jpg");
}

.hero-template-ad {
  --hero-bg: url("/images/press-templates-advertising-disclosure-paid-label-clear.jpg");
}

.hero-technical-index {
  --hero-bg: url("/images/press-technical-index-hero-website-files-and-newspaper-pages.jpg");
}

.hero-website-basics {
  --hero-bg: url("/images/press-technical-website-basics-simple-site-map-desk.jpg");
}

.hero-archive-basics {
  --hero-bg: url("/images/press-technical-archive-basics-binders-digital-folders.jpg");
}

.hero-website-companion {
  --hero-bg: url("/images/press-technical-website-co-jp-companion-bridge-to-web-building.jpg");
}

/* ------------------------------
   Article
------------------------------ */

.article {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 6.5rem) 0;
}

.article > .eyebrow,
.eyebrow {
  display: inline-block;
  margin: 0 0 0.7rem;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.article h2 {
  margin: clamp(2.6rem, 5vw, 4.2rem) 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.2vw, 2.9rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

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

.article h3 {
  margin: 1.5rem 0 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  line-height: 1.35;
}

.article p {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
}

.article blockquote {
  position: relative;
  margin: clamp(2rem, 5vw, 3.5rem) 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #fff;
  border-left: 7px solid var(--red);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-soft);
}

.article blockquote p {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 2.2rem);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.9;
}

.small {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ------------------------------
   Cards / grids
------------------------------ */

.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card-link:hover .card-title {
  color: var(--red-dark);
}

.image-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #ddd;
}

.card-pad {
  padding: clamp(1.15rem, 2vw, 1.55rem);
}

.card-meta {
  margin: 0 0 0.45rem;
  color: var(--red-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-title {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  line-height: 1.28;
}

.card p:last-child {
  margin-bottom: 0;
}

/* ------------------------------
   List blocks
------------------------------ */

.list {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.055);
}

.list-item:hover {
  border-color: rgba(159, 31, 31, 0.28);
  transform: translateY(-1px);
}

.list-item h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.18rem;
}

.list-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.list-arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  font-weight: 900;
}

/* ------------------------------
   Rule boxes / copy boxes
------------------------------ */

.rule-box,
.kakomi,
.statement {
  margin: clamp(1.5rem, 4vw, 2.6rem) 0;
  padding: clamp(1.25rem, 3vw, 2.1rem);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.rule-box {
  border-top: 6px solid var(--red);
}

.kakomi {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 242, 0.9));
}

.statement {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(18, 15, 14, 0.96), rgba(71, 24, 20, 0.96)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.13), transparent 20rem);
  border-color: rgba(255, 255, 255, 0.14);
}

.statement h2,
.statement h3,
.statement p {
  color: var(--white);
}

.statement .eyebrow {
  color: #f5c3bb;
}

.rule-box h3,
.kakomi h3 {
  margin-top: 0;
}

.rule-box ol,
.rule-box ul,
.kakomi ol,
.kakomi ul {
  color: var(--ink-soft);
}

.rule-box label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.25rem 0;
  color: var(--ink-soft);
  cursor: pointer;
}

.rule-box input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.38rem;
  accent-color: var(--red);
}

/* ------------------------------
   Buttons
------------------------------ */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 12px 28px rgba(159, 31, 31, 0.22);
}

.btn-primary:hover {
  color: var(--white);
  background: var(--red-dark);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  color: var(--ink);
  background: #fff;
}

/* ------------------------------
   Tables
------------------------------ */

.compare-table {
  width: 100%;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.compare-table th,
.compare-table td {
  padding: 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
}

.compare-table th:last-child,
.compare-table td:last-child {
  border-right: 0;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table th {
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.compare-table td {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.9);
}

/* ------------------------------
   Timeline / time table
------------------------------ */

.time-table {
  display: grid;
  gap: 0.9rem;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.time-row {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.055);
}

.time-label {
  display: grid;
  place-items: center;
  min-height: 4rem;
  color: var(--white);
  background: var(--red);
  border-radius: var(--radius-md);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 900;
}

.time-content h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.28rem;
}

.time-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.time-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.time-list li {
  margin: 0;
  padding: 0.35rem 0.62rem;
  color: var(--red-dark);
  background: rgba(159, 31, 31, 0.08);
  border: 1px solid rgba(159, 31, 31, 0.12);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

/* ------------------------------
   Split layout
------------------------------ */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.split h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.split-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #ddd;
}

.split-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ------------------------------
   Footer
------------------------------ */

.site-footer {
  color: rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(135deg, #111 0%, #211715 60%, #541614 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 1.4fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.footer-brand {
  margin: 0 0 0.75rem;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
}

.footer-copy {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.footer-nav h3 {
  margin: 0 0 0.75rem;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.footer-nav a {
  display: block;
  margin: 0.35rem 0;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
}

.copyright {
  padding: 1rem;
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.85rem;
}

/* ------------------------------
   Utility for gallery pages
------------------------------ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ddd;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-caption {
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ------------------------------
   Accessibility helpers
------------------------------ */

:focus-visible {
  outline: 3px solid rgba(159, 31, 31, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  border-radius: 0.5rem;
}

.skip-link:focus {
  left: 1rem;
}

/* ------------------------------
   Responsive
------------------------------ */

@media (max-width: 1080px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 320px;
  }

  .hero-image img {
    min-height: 320px;
  }

  .grid-3,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html {
    font-size: 15px;
  }

  .header-inner {
    width: min(100% - 1rem, 1280px);
    padding: 0.65rem 0;
  }

  .logo {
    min-width: 0;
  }

  .logo-mark {
    font-size: 1.25rem;
  }

  .logo-sub {
    font-size: 0.68rem;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .nav a {
    justify-content: center;
    padding: 0.55rem 0.45rem;
    font-size: 0.82rem;
    border: 1px solid rgba(23, 21, 20, 0.08);
    background: rgba(255, 255, 255, 0.52);
  }

  .home-hero {
    padding: 1rem 0 2.25rem;
  }

  .hero-copy {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .home-hero h1 {
    font-size: clamp(2rem, 11vw, 3.1rem);
  }

  .hero-image {
    border-radius: 20px;
    min-height: 240px;
  }

  .hero-image img {
    min-height: 240px;
  }

  .page-hero {
    min-height: 420px;
    padding-top: 5rem;
    background:
      linear-gradient(180deg, rgba(15, 13, 12, 0.88) 0%, rgba(15, 13, 12, 0.72) 58%, rgba(15, 13, 12, 0.48) 100%),
      var(--hero-bg, linear-gradient(135deg, #2b2420, #8f1f1f));
    background-size: cover;
    background-position: center;
  }

  .article {
    width: min(100% - 1.1rem, 920px);
    padding: 2.5rem 0;
  }

  .grid-3,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .time-row {
    grid-template-columns: 1fr;
  }

  .time-label {
    min-height: auto;
    padding: 0.75rem;
  }

  .time-list {
    justify-content: flex-start;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .compare-table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }

  .compare-table table {
    min-width: 640px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .button-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .nav {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 2.35rem;
  }

  .article blockquote p {
    font-size: 1.25rem;
  }
}

/* ------------------------------
   Print
------------------------------ */

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .site-footer,
  .reading-progress,
  .button-row {
    display: none !important;
  }

  .page-hero,
  .home-hero {
    min-height: auto;
    padding: 1rem 0;
    color: #000;
    background: #fff !important;
  }

  .page-hero h1,
  .page-hero .lead,
  .page-hero .hero-kicker,
  .home-hero h1,
  .home-hero .lead,
  .home-hero .hero-kicker {
    color: #000;
    text-shadow: none;
  }

  .hero-image,
  .split-image,
  .image-card img {
    display: none;
  }

  .card,
  .rule-box,
  .kakomi,
  .statement,
  .compare-table,
  .list-item {
    box-shadow: none;
    border-color: #999;
  }

  .statement {
    color: #000;
    background: #fff;
  }

  .statement h2,
  .statement h3,
  .statement p {
    color: #000;
  }
}
