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

:root {
  --canvas:        #f7f7f4;
  --canvas-soft:   #fafaf7;
  --surface-card:  #ffffff;
  --surface-strong:#e6e5e0;
  --primary:       #f54e00;
  --primary-active:#d04200;
  --ink:           #26251e;
  --body:          #5a5852;
  --body-strong:   #26251e;
  --muted:         #807d72;
  --muted-soft:    #a09c92;
  --on-primary:    #ffffff;
  --hairline:      #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong:#cfcdc4;
  --success:       #1f8a65;
  --error:         #cf2d56;
  --font-sans: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-pill: 9999px;
}

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

body {
  background-color: var(--canvas);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--primary); }

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

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: 1.375rem; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

address { font-style: normal; }

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

.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}

.nav-list a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--rounded-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-list a:hover {
  color: var(--ink);
  background: var(--surface-strong);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s;
}

.btn-secondary:hover { background: var(--surface-strong); color: var(--ink); }

.hero-band {
  padding: 80px 0;
  background: var(--canvas);
}

.hero-label {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--rounded-pill);
  padding: 4px 10px;
  margin-bottom: 24px;
}

.hero-band h1 { margin-bottom: 20px; }

.hero-band .hero-sub {
  font-size: 1.125rem;
  color: var(--body);
  max-width: 580px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-img {
  margin-top: 48px;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  max-height: 440px;
}

.hero-img img { width: 100%; object-fit: cover; max-height: 440px; }

.section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--rounded-pill);
  padding: 4px 10px;
  margin-bottom: 16px;
}

.section-head {
  margin-bottom: 48px;
}

.section-head h2 { margin-bottom: 12px; }

.section-head p {
  color: var(--body);
  font-size: 1rem;
  max-width: 560px;
}

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

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-img {
  border-radius: var(--rounded-md);
  overflow: hidden;
  margin-bottom: 4px;
}

.card-img img { width: 100%; height: 200px; object-fit: cover; }

.card-meta {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.card h3 { font-size: 1.125rem; margin-bottom: 4px; }

.card p { font-size: 0.9375rem; color: var(--body); line-height: 1.55; margin-bottom: 0; }

.card-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-top: 1px solid var(--hairline-soft);
}

.card-link:hover { color: var(--primary); }

.intro-band {
  background: var(--surface-card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 80px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-text h2 { margin-bottom: 16px; }
.intro-text p { color: var(--body); line-height: 1.65; }
.intro-text p + p { margin-top: 12px; }

.intro-img {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.intro-img img { width: 100%; height: 340px; object-fit: cover; }

.tips-band {
  padding: 80px 0;
  background: var(--canvas);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.tip-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
}

.tip-card h3 { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.tip-card p { font-size: 0.9375rem; color: var(--body); line-height: 1.55; }

.article-hero {
  padding: 60px 0 40px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.article-hero h1 { max-width: 720px; }
.article-hero .hero-sub { margin-top: 16px; max-width: 640px; }
.article-hero .article-meta {
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.article-layout {
  padding: 60px 0 80px;
}

.article-body {
  max-width: 720px;
}

.article-body h2 { margin: 40px 0 16px; }
.article-body h3 { margin: 28px 0 12px; }
.article-body p { color: var(--body); line-height: 1.7; margin-bottom: 1rem; }
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--body);
  line-height: 1.7;
}
.article-body li { margin-bottom: 6px; }

.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.article-img {
  margin: 32px 0;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.article-img img { width: 100%; max-height: 420px; object-fit: cover; }

.article-img figcaption {
  padding: 10px 16px;
  font-size: 0.8125rem;
  color: var(--muted);
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline-soft);
}

.callout {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--ink);
  border-radius: var(--rounded-md);
  padding: 20px 24px;
  margin: 28px 0;
}

.callout p { color: var(--body-strong); font-size: 0.9375rem; line-height: 1.6; }

.related-section {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}

.related-section h2 { font-size: 1.375rem; margin-bottom: 24px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.related-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s;
}

.related-card:hover { border-color: var(--hairline-strong); color: var(--ink); }
.related-card h4 { font-size: 0.9375rem; color: var(--ink); margin-bottom: 6px; }
.related-card p { font-size: 0.875rem; color: var(--body); }

.contact-band {
  padding: 80px 0;
  background: var(--surface-card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
}

.contact-text h2 { margin-bottom: 16px; }
.contact-text p { color: var(--body); line-height: 1.65; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--ink); }

.form-group textarea { height: 120px; resize: vertical; }

.form-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: -8px;
}

.form-msg {
  display: none;
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 16px 20px;
  font-size: 0.9375rem;
  color: var(--body-strong);
}

.page-content {
  padding: 60px 0 80px;
  max-width: 760px;
}

.page-content h1 { margin-bottom: 24px; }
.page-content h2 { margin: 40px 0 14px; }
.page-content h3 { margin: 28px 0 10px; }
.page-content p { color: var(--body); line-height: 1.7; margin-bottom: 1rem; }
.page-content ul, .page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--body);
  line-height: 1.7;
}
.page-content li { margin-bottom: 6px; }
.page-updated { font-size: 0.875rem; color: var(--muted); margin-bottom: 40px; }

.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--body);
  line-height: 1.6;
}

.site-footer h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.site-footer ul a {
  font-size: 0.875rem;
  color: var(--body);
  text-decoration: none;
}

.site-footer ul a:hover { color: var(--ink); }

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid var(--hairline);
}

.footer-bottom p { font-size: 0.8125rem; color: var(--muted); }

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--rounded-lg);
  padding: 16px 24px;
  max-width: 560px;
  width: calc(100% - 48px);
  z-index: 999;
  box-shadow: 0 4px 24px rgba(38, 37, 30, 0.18);
}

.cookie-banner.visible { display: block; }

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-inner p {
  font-size: 0.875rem;
  color: var(--canvas);
  flex: 1;
  min-width: 200px;
  margin: 0;
}

.cookie-inner a { color: var(--canvas); }

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

.cookie-actions .btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  height: 36px;
  padding: 8px 14px;
}

.cookie-actions .btn-secondary {
  background: transparent;
  color: var(--canvas);
  border-color: rgba(255,255,255,0.3);
  height: 36px;
  padding: 8px 14px;
}

.cookie-actions .btn-secondary:hover { background: rgba(255,255,255,0.1); color: var(--canvas); }

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-list { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 16px 24px; gap: 4px; }
  .nav-list.open { display: flex; }
  .nav-toggle { display: flex; }
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-band { padding: 48px 0; }
  .section { padding: 48px 0; }
}
