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

:root {
  --canvas: #f5f1ec;
  --surface-1: #ffffff;
  --surface-2: #ebe7e1;
  --hairline: #d3cec6;
  --hairline-soft: #ebe7e1;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --ink-tertiary: #9c9fa5;
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-xxl: 24px;
  --r-pill: 9999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-weight: 500;
  color: var(--ink);
}
h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -1.4px; }
h2 { font-size: clamp(24px, 3.5vw, 40px); line-height: 1.12; letter-spacing: -0.8px; }
h3 { font-size: clamp(18px, 2.5vw, 22px); line-height: 1.25; letter-spacing: -0.3px; }
p { margin-bottom: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: var(--r-md);
  padding: 10px 18px;
  min-height: 40px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-primary:hover { background: #000; text-decoration: none; }
.btn-secondary {
  background: var(--surface-1);
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-secondary:hover { background: var(--canvas); text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 36px; width: auto; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.primary-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 8px 12px;
  border-radius: var(--r-md);
  transition: color 0.1s, background 0.1s;
  text-decoration: none;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.3);
}
.mobile-nav-overlay.is-open { display: block; }
.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 90vw);
  height: 100%;
  background: var(--surface-1);
  overflow-y: auto;
}
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
}
.mobile-brand {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.mobile-nav-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--ink);
}
.mobile-nav-close svg { width: 18px; height: 18px; }
.mobile-nav-panel nav ul { list-style: none; padding: 12px 0; }
.mobile-nav-panel nav a {
  display: block;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-soft);
}
.mobile-nav-panel nav a:hover { background: var(--canvas); }

.hero-band {
  padding: 80px 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline-soft);
}
.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 20px;
  letter-spacing: 0;
}
.hero-headline { margin-bottom: 20px; }
.hero-sub {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.5;
  letter-spacing: -0.1px;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-card {
  background: var(--surface-1);
  border-radius: var(--r-xl);
  border: 1px solid var(--hairline);
  overflow: hidden;
  margin-top: 48px;
}
.hero-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.hero-card-caption {
  padding: 16px 24px;
  font-size: 14px;
  color: var(--ink-muted);
  border-top: 1px solid var(--hairline-soft);
}

.section { padding: 80px 0; }
.section-canvas { background: var(--canvas); }
.section-surface { background: var(--surface-1); }
.section-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 12px; }
.section-sub {
  font-size: 18px;
  color: var(--ink-muted);
  margin-bottom: 48px;
  max-width: 560px;
  line-height: 1.5;
  letter-spacing: -0.1px;
}

.digest-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.digest-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--hairline-soft);
  align-items: start;
}
.digest-item:first-child { border-top: 1px solid var(--hairline-soft); }
.digest-date {
  font-size: 13px;
  color: var(--ink-subtle);
  padding-top: 3px;
}
.digest-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 10px;
}
.digest-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.digest-excerpt {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.read-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

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

.feature-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
}
.feature-card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  color: var(--ink-muted);
}
.feature-card-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  line-height: 1.3;
}
.feature-card-text {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.article-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.article-card-body { padding: 24px; }
.article-card-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 12px;
}
.article-card-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.article-card-excerpt {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.article-card-meta {
  font-size: 12px;
  color: var(--ink-subtle);
  display: flex;
  gap: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.gallery-item {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.gallery-caption {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--ink-subtle);
  border-top: 1px solid var(--hairline-soft);
}

.cta-banner {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 48px;
  text-align: center;
  margin: 0 0 80px;
}
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { color: var(--ink-muted); margin-bottom: 28px; font-size: 16px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--hairline); }

.page-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--hairline-soft);
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { font-size: 18px; color: var(--ink-muted); max-width: 560px; }

.content-section { padding: 60px 0; }
.prose { max-width: 720px; }
.prose h2 { margin: 40px 0 16px; font-size: 26px; }
.prose h3 { margin: 28px 0 12px; font-size: 20px; }
.prose p { margin-bottom: 18px; font-size: 16px; line-height: 1.65; color: var(--ink); }
.prose ul, .prose ol {
  margin: 0 0 18px 20px;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
}
.prose li { margin-bottom: 6px; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  padding: 0 0 60px;
}
.article-header { margin-bottom: 36px; }
.article-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 3px 12px;
  display: inline-block;
}
.article-title {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-subtle);
  margin-bottom: 24px;
}
.article-summary {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 32px;
}
.article-summary p { font-size: 15px; color: var(--ink); margin: 0; line-height: 1.6; }

.toc {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 36px;
}
.toc-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 8px; font-size: 14px; }
.toc a { color: var(--ink-muted); }
.toc a:hover { color: var(--ink); }

.key-context {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
  margin: 32px 0;
}
.key-context-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.key-context p { font-size: 15px; color: var(--ink); margin: 0; }

.not-cover {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 32px;
  margin-top: 40px;
}
.not-cover-title {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.not-cover p { font-size: 14px; color: var(--ink-subtle); }

.article-image {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin: 32px 0;
}
.article-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.article-image figcaption {
  font-size: 12px;
  color: var(--ink-subtle);
  padding: 10px 16px;
  background: var(--surface-1);
  border-top: 1px solid var(--hairline-soft);
}

.article-sidebar { position: sticky; top: 84px; }
.sidebar-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-card-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.sidebar-related-list { list-style: none; }
.sidebar-related-list li { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline-soft); }
.sidebar-related-list li:last-child { margin-bottom: 0; padding-bottom: 0; border: none; }
.sidebar-related-list a { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.sidebar-related-list a:hover { text-decoration: underline; }
.sidebar-related-meta { font-size: 12px; color: var(--ink-subtle); margin-top: 4px; }

.related-section {
  background: var(--canvas);
  padding: 60px 0;
  border-top: 1px solid var(--hairline-soft);
}
.related-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 32px;
  letter-spacing: -0.4px;
}

.contact-form { max-width: 560px; margin-top: 40px; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-input, .form-textarea {
  width: 100%;
  background: var(--surface-1);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 10px 14px;
  min-height: 44px;
  transition: border-color 0.15s;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-confirm {
  display: none;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  font-size: 15px;
  color: var(--ink);
  margin-top: 16px;
}
.form-confirm.visible { display: block; }

.policy-date { font-size: 13px; color: var(--ink-muted); margin-bottom: 32px; }

.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
}
.footer-logo-text {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
  max-width: 260px;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; color: var(--ink-muted); text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--hairline-soft);
  padding: 20px 0;
}
.copyright { font-size: 12px; color: var(--ink-subtle); margin: 0; }
.copyright a { color: var(--ink-subtle); text-decoration: underline; }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--surface-1);
  border-top: 1px solid var(--hairline);
  padding: 16px 0;
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text { font-size: 14px; color: var(--ink-muted); flex: 1; min-width: 200px; }
.cookie-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cookie-settings-link { font-size: 13px; color: var(--ink-muted); text-decoration: underline; }

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav { grid-template-columns: repeat(3, 1fr); }
  .digest-item { grid-template-columns: 160px 1fr; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .burger { display: flex; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-band { padding: 48px 0; }
  .section { padding: 48px 0; }
  .cta-banner { padding: 32px 20px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .digest-item { grid-template-columns: 1fr; gap: 8px; }
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
  h1 { font-size: 28px; letter-spacing: -0.8px; }
}
