/*
 * Ehon Plus — common stylesheet for legal & marketing pages
 * Brand: gentle, paper-like, child-friendly storybook aesthetic
 * Used by: lp_*.html, privacy_*.html, terms_*.html, _internal_consent_ui_strings.html
 */

:root {
  --color-bg: #FBF7F0;
  --color-surface: #FFFFFF;
  --color-surface-warm: #FFF6E4;
  --color-surface-cool: #F0F5FB;
  --color-ink: #2A2A33;
  --color-ink-soft: #5C5C68;
  --color-ink-muted: #8A8A95;
  --color-line: #E8E2D6;
  --color-primary: #6F9BD9;
  --color-primary-deep: #4F7AB9;
  --color-accent: #F7A8B5;
  --color-accent-deep: #DD8090;
  --color-warm: #FFD66B;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(63, 53, 39, 0.06);
  --shadow-md: 0 8px 24px rgba(63, 53, 39, 0.08);
  --shadow-lg: 0 16px 48px rgba(63, 53, 39, 0.12);

  --font-sans: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "BIZ UDPGothic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Caveat", "Yusei Magic", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Note: フォントは各 HTML の <head> で <link rel="preconnect"> + <link rel="stylesheet"> として読み込みます。CSS 内の @import は HTTP リクエストを直列化させレンダリングを遅らせるため使用しません。 */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-ink);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(at 12% 8%, rgba(247, 168, 181, 0.16) 0, transparent 42%),
    radial-gradient(at 92% 22%, rgba(111, 155, 217, 0.18) 0, transparent 48%),
    radial-gradient(at 60% 92%, rgba(255, 214, 107, 0.15) 0, transparent 48%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─────────────────────────────────────────────────────────────
 * Layout
 * ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background-color: rgba(251, 247, 240, 0.85);
  border-bottom: 1px solid var(--color-line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.site-header .brand-mark,
.site-footer .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-block;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  background-color: var(--color-surface);
}

.site-header nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-header nav a {
  color: var(--color-ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-header nav a:hover {
  color: var(--color-primary-deep);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  font-size: 13px;
  color: var(--color-ink-soft);
}

.lang-switch a {
  text-decoration: none;
  color: var(--color-ink-muted);
  padding: 2px 8px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.lang-switch a.active,
.lang-switch a:hover {
  background-color: var(--color-primary);
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────
 * Article (privacy / terms) layout
 * ───────────────────────────────────────────────────────────── */

.article-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 28px 96px;
}

.article-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  font-size: 13px;
  color: var(--color-ink-soft);
  font-weight: 500;
}

.article-meta::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(111, 155, 217, 0.2);
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  margin: 24px 0 16px;
  line-height: 1.2;
  color: var(--color-ink);
}

[lang="en"] .article-title,
.article-title.en {
  font-family: "Caveat", var(--font-display);
  letter-spacing: -0.01em;
}

.article-subtitle {
  font-size: 17px;
  color: var(--color-ink-soft);
  line-height: 1.7;
  margin: 0 0 16px;
  max-width: 64ch;
}

.article-info-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 32px 0 48px;
  padding: 24px 28px;
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}

.article-info-grid dt {
  color: var(--color-ink-muted);
  font-weight: 500;
}

.article-info-grid dd {
  margin: 0;
  color: var(--color-ink);
  font-weight: 500;
}

.article-info-grid a {
  color: var(--color-primary-deep);
  text-decoration: none;
}

.article-info-grid a:hover {
  text-decoration: underline;
}

.article-body {
  font-size: 16px;
  line-height: 1.85;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 56px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-line);
  position: relative;
}

.article-body h2::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 56px;
  height: 2px;
  background-color: var(--color-primary);
}

.article-body h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--color-ink);
}

.article-body h4 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--color-ink-soft);
}

.article-body p {
  margin: 0 0 18px;
}

.article-body a {
  color: var(--color-primary-deep);
  text-decoration: underline;
  text-decoration-color: rgba(79, 122, 185, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.article-body a:hover {
  text-decoration-color: var(--color-primary-deep);
}

.article-body strong {
  font-weight: 700;
  color: var(--color-ink);
  background: linear-gradient(180deg, transparent 60%, rgba(255, 214, 107, 0.4) 60%);
  padding: 0 2px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 26px;
}

.article-body li {
  margin-bottom: 6px;
}

.article-body ul li::marker {
  color: var(--color-primary);
}

.article-body ol {
  counter-reset: list;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-body thead {
  background-color: var(--color-surface-cool);
}

.article-body th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--color-ink);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--color-line);
}

.article-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
  color: var(--color-ink-soft);
}

.article-body tr:last-child td {
  border-bottom: none;
}

.article-body blockquote {
  margin: 24px 0;
  padding: 18px 24px;
  background-color: var(--color-surface-warm);
  border-left: 4px solid var(--color-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-ink);
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body hr {
  border: none;
  height: 1px;
  background-color: var(--color-line);
  margin: 48px 0;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  background-color: var(--color-surface-cool);
  border-radius: 4px;
  color: var(--color-primary-deep);
}

/* TOC */
.toc {
  margin: 0 0 40px;
  padding: 22px 28px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin: 0 0 12px;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 24px;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  font-size: 14px;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  display: inline-block;
  width: 28px;
  color: var(--color-primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.toc a {
  color: var(--color-ink-soft);
  text-decoration: none;
}

.toc a:hover {
  color: var(--color-primary-deep);
}

/* ─────────────────────────────────────────────────────────────
 * LP-specific
 * ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 96px 28px 120px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(247, 168, 181, 0.30) 0, transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(111, 155, 217, 0.28) 0, transparent 38%),
    radial-gradient(circle at 65% 80%, rgba(255, 214, 107, 0.30) 0, transparent 36%);
  z-index: -1;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary-deep);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: "✦";
  color: var(--color-accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--color-primary-deep) 0%, var(--color-accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--color-ink-soft);
  line-height: 1.85;
  margin: 0 0 36px;
  max-width: none;
}

.cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.store-badge {
  display: inline-block;
  height: 56px;
  transition: transform 0.2s ease, filter 0.2s ease;
  text-decoration: none;
}

.store-badge img,
.store-badge svg {
  height: 100%;
  width: auto;
  display: block;
}

.store-badge:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 20px rgba(63, 53, 39, 0.18));
}

.cta-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--color-ink-muted);
}

/* Sections */
.section {
  padding: 96px 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary-deep);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.005em;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--color-ink-soft);
  max-width: 50ch;
  margin: 0 0 48px;
  line-height: 1.8;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 28px;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  box-shadow: 0 8px 20px rgba(111, 155, 217, 0.25);
}

.feature-card:nth-child(2) .feature-icon {
  background: linear-gradient(135deg, var(--color-accent), var(--color-warm));
  box-shadow: 0 8px 20px rgba(247, 168, 181, 0.3);
}

.feature-card:nth-child(3) .feature-icon {
  background: linear-gradient(135deg, var(--color-warm), var(--color-primary));
  box-shadow: 0 8px 20px rgba(255, 214, 107, 0.35);
}

.feature-card:nth-child(4) .feature-icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-warm));
}

.feature-card:nth-child(5) .feature-icon {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--color-ink);
}

.feature-body {
  font-size: 14.5px;
  color: var(--color-ink-soft);
  line-height: 1.8;
  margin: 0;
}

/* Books showcase */
.books-section {
  background-color: var(--color-surface-warm);
  padding: 96px 28px;
}

.books-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  margin-top: 16px;
}

/* Book card styled like a real picture book */
.book-card {
  position: relative;
  display: block;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: center;
  width: 100%;
  background: transparent;
  border-radius: 4px 12px 12px 4px;
  overflow: visible;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s ease;
  text-decoration: none;
  filter: drop-shadow(0 14px 24px rgba(60, 40, 18, 0.18))
          drop-shadow(0 4px 8px rgba(60, 40, 18, 0.12));
}

.book-card:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 8px 16px 16px 8px;
}

.book-card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
}

.book-cover {
  aspect-ratio: 3 / 4;
  border-radius: 4px 12px 12px 4px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-surface-cool), var(--color-surface-warm));
  position: relative;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Spine highlight + shadow for a book-like look */
.book-cover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.22) 0,
    rgba(0,0,0,0.05) 50%,
    transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.book-cover::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.35);
  pointer-events: none;
  z-index: 2;
}

.book-cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  text-align: center;
  padding: 32px 24px 32px 38px;
  line-height: 1.15;
  white-space: pre-line;
}

.book-card:nth-child(1) .book-cover { background: linear-gradient(160deg, #FFE0E6, #FFD1B3); }
.book-card:nth-child(2) .book-cover { background: linear-gradient(160deg, #FFF6E4, #FFE9A8); }
.book-card:nth-child(3) .book-cover { background: linear-gradient(160deg, #F8B5C1, #DD8090); }
.book-card:nth-child(4) .book-cover { background: linear-gradient(160deg, #E8F4DC, #A8D17A); }
.book-card:nth-child(5) .book-cover { background: linear-gradient(160deg, #6F9BD9, #4F7AB9); }
.book-card:nth-child(6) .book-cover { background: linear-gradient(160deg, #C9B7E8, #7C6BB6); }

.book-card:nth-child(1) .book-cover-placeholder { color: #C75A6E; }
.book-card:nth-child(2) .book-cover-placeholder { color: #C7873F; }
.book-card:nth-child(3) .book-cover-placeholder { color: #FFFFFF; }
.book-card:nth-child(4) .book-cover-placeholder { color: #4A6028; }
.book-card:nth-child(5) .book-cover-placeholder { color: #FFFFFF; }
.book-card:nth-child(6) .book-cover-placeholder { color: #FFFFFF; }

.book-body {
  padding: 14px 6px 0 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.book-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-ink);
  line-height: 1.4;
}

.book-age {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background-color: var(--color-surface-cool);
  color: var(--color-primary-deep);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.book-age.age-0-2 { background-color: #FFE9A8; color: #8C6322; }
.book-age.age-3-5 { background-color: #FFD1DC; color: #B53D5C; }
.book-age.age-6 { background-color: #DDE5F5; color: var(--color-primary-deep); }

/* Book reader modal */
.book-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 14, 6, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.book-modal.is-open {
  display: flex;
}

.book-modal-frame {
  background-color: #fff;
  border-radius: var(--radius-lg);
  width: min(780px, 100%);
  max-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  animation: bookOpen 0.32s cubic-bezier(.2,.7,.2,1);
}

@keyframes bookOpen {
  from { transform: translateY(8px) scale(0.97); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.book-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--color-line);
}

.book-modal-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-ink);
  margin: 0;
}

.book-modal-close {
  background-color: var(--color-surface-cool);
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-ink-soft);
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.book-modal-close:hover {
  background-color: var(--color-line);
}

.book-modal-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--color-surface-warm), var(--color-surface-cool));
  overflow: hidden;
  min-height: 360px;
}

.book-modal-stage.is-loading::before {
  content: "";
  position: absolute;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: bookImageSpin 0.8s linear infinite;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

@keyframes bookImageSpin {
  to { transform: rotate(360deg); }
}

.book-modal-image {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.18s ease;
}

.book-modal-stage.is-loading .book-modal-image {
  opacity: 0.35;
}

.book-modal-text {
  position: absolute;
  left: 24px;
  right: 24px;
  padding: 14px 20px;
  text-align: center;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 600;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
}

.book-modal-text.is-top { top: 24px; }
.book-modal-text.is-bottom { bottom: 24px; }

.book-modal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--color-line);
  background-color: var(--color-surface);
}

.book-modal-btn {
  background-color: var(--color-surface-cool);
  border: 0;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--color-primary-deep);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.book-modal-btn:hover:not(:disabled) {
  background-color: var(--color-primary);
  color: #fff;
}

.book-modal-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.book-modal-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.book-modal-counter {
  font-size: 13px;
  color: var(--color-ink-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* FAQ */
.faq-list {
  margin-top: 48px;
  display: grid;
  gap: 16px;
}

.faq-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  font-weight: 600;
  font-size: 17px;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-surface-cool);
  color: var(--color-primary-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
  background-color: var(--color-primary);
  color: #fff;
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 28px 24px;
  color: var(--color-ink-soft);
  line-height: 1.85;
  font-size: 15px;
}

/* About */
.about-section {
  padding: 64px 28px 96px;
  max-width: 880px;
  margin: 0 auto;
}

.about-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-line);
}

.about-card h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 12px;
}

.about-card p {
  color: var(--color-ink-soft);
  margin: 0 0 20px;
  line-height: 1.85;
}

.about-card a {
  color: var(--color-primary-deep);
  text-decoration: none;
  margin-right: 18px;
  font-weight: 500;
}

.about-card a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background-color: var(--color-ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 28px 32px;
}

.site-footer .container {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.site-footer h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.site-footer .footer-brand .brand-name {
  font-weight: 700;
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
}

.copyright {
  max-width: 1180px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─────────────────────────────────────────────────────────────
 * Consent UI strings (internal reference)
 * ───────────────────────────────────────────────────────────── */

.consent-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 28px 96px;
}

.lang-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0;
  padding: 16px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  position: sticky;
  top: 72px;
  z-index: 10;
  backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.94);
}

.lang-tab {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-ink-soft);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.lang-tab:hover {
  background-color: var(--color-surface-cool);
}

.lang-tab.active {
  background-color: var(--color-primary);
  color: #fff;
}

.lang-block {
  margin-top: 48px;
  scroll-margin-top: 160px;
}

.lang-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-line);
}

.lang-block-header h2 {
  font-size: 1.4rem;
  margin: 0;
  font-weight: 700;
}

.lang-code {
  font-family: var(--font-mono);
  font-size: 12px;
  background-color: var(--color-primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.consent-preview {
  margin-top: 16px;
  background: linear-gradient(160deg, var(--color-surface-warm), var(--color-surface-cool));
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

.consent-preview-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--color-ink);
}

.consent-preview-lead {
  color: var(--color-ink-soft);
  margin: 0 0 18px;
  line-height: 1.75;
}

.consent-preview-detail {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 0 0 16px;
  font-size: 14.5px;
}

.consent-preview-detail strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-ink);
}

.consent-preview-link {
  display: inline-block;
  margin: 8px 0 20px;
  color: var(--color-primary-deep);
  text-decoration: underline;
  font-size: 14px;
}

.consent-preview-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.consent-btn {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
}

.consent-btn-allow {
  background-color: var(--color-primary);
  color: #fff;
}

.consent-btn-decline {
  background-color: transparent;
  color: var(--color-ink-soft);
  border-color: var(--color-line);
}

.consent-preview-footer {
  font-size: 13px;
  color: var(--color-ink-muted);
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
 * Responsive
 * ───────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .toc ol { grid-template-columns: 1fr; }
  .article-info-grid { grid-template-columns: 1fr; gap: 4px 0; padding: 20px; }
  .article-info-grid dt { color: var(--color-ink-muted); font-size: 12px; margin-top: 8px; }
}

@media (max-width: 640px) {
  .site-header .container { padding: 14px 18px; }
  .site-header nav { gap: 16px; }
  .site-header nav a:not(.lang-switch a) { display: none; }
  .hero { padding: 56px 20px 80px; }
  .section { padding: 64px 20px; }
  .books-section { padding: 64px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .article-shell { padding: 40px 20px 64px; }
  .site-footer .container { grid-template-columns: 1fr; gap: 32px; }
  .copyright { flex-direction: column; gap: 6px; }
}

/* Print */
@media print {
  body { background: white; }
  .site-header, .site-footer { display: none; }
  .article-shell { max-width: none; padding: 0; }
}
