:root {
  --paper: #f8f3ea;
  --ink: #171412;
  --ink-soft: #2b241f;
  --red: #9f1e22;
  --red-deep: #771418;
  --gold: #c8a15e;
  --border: rgba(125, 96, 52, .22);
  --panel: rgba(255, 255, 255, .46);
  --shadow: 0 18px 46px rgba(32, 22, 15, .12);
  --serif: 'Cormorant Garamond', serif;
  --jp: 'Shippori Mincho', 'Noto Serif JP', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font: 18px/1.8 var(--serif);
  background:
    radial-gradient(circle at 15% 20%, rgba(200, 161, 94, .18), transparent 18%),
    radial-gradient(circle at 80% 8%, rgba(159, 30, 34, .12), transparent 16%),
    linear-gradient(180deg, #f3ebdf 0%, #f9f4ee 38%, #f4ede4 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
  background-image: radial-gradient(rgba(23, 20, 18, .04) 1px, transparent 1px);
  background-size: 6px 6px;
  mix-blend-mode: multiply;
}
nav, main, footer { position: relative; z-index: 2; }
nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4vw;
  background: rgba(248, 243, 234, .74);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(23, 20, 18, .04);
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}
nav.scrolled { padding: 10px 4vw; background: rgba(248, 243, 234, .92); box-shadow: 0 16px 40px rgba(23, 20, 18, .12); }
.logo { display: flex; align-items: center; gap: 12px; min-width: min(380px, 50vw); color: var(--ink); text-decoration: none; position: relative; z-index: 2; }
.logo-image { width: 46px; height: 46px; display: block; border: 1px solid rgba(200, 161, 94, .28); border-radius: 50%; background: var(--paper); box-shadow: 0 8px 16px rgba(159, 30, 34, .1); object-fit: cover; }
.logo-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand { font-size: clamp(16px, 1.2vw, 20px); font-weight: 700; letter-spacing: .6px; white-space: nowrap; }
.jp { color: var(--red); font: 700 11px/1.5 var(--jp); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 1.65vw, 28px); min-width: 0; list-style: none; }
.nav-links li { list-style: none; }
.nav-links a { position: relative; display: inline-flex; align-items: center; padding: 6px 0; color: var(--ink-soft); font: 600 12px/1.4 var(--serif); letter-spacing: 1.8px; text-decoration: none; text-transform: uppercase; white-space: nowrap; transition: color .25s ease, transform .25s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width .35s ease; }
.nav-links a:hover { color: var(--red); transform: translateY(-1px); }
.nav-links a:hover::after { width: 100%; }
.nav-links .nav-cta { justify-content: center; padding: 11px 22px; color: var(--paper); font: 700 12px/1.4 var(--jp); letter-spacing: 2px; background: linear-gradient(135deg, var(--ink), #3a2d25); border: 1px solid rgba(200, 161, 94, .28); border-radius: 999px; box-shadow: 0 12px 24px rgba(23, 20, 18, .14); }
.nav-links .nav-cta::after { display: none; }
.menu-toggle { display: none; width: 46px; height: 46px; flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; gap: 5px; position: relative; z-index: 60; cursor: pointer; background: linear-gradient(135deg, var(--ink), #342b29); border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; box-shadow: 0 10px 24px rgba(23, 20, 18, .18); }
.menu-toggle span { width: 18px; height: 2px; display: block; background: var(--paper); transition: transform .3s ease, opacity .3s ease; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-tools { display: flex; align-items: center; gap: 6px; margin-left: 4px; }
.language-switcher { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); }
.language-button, .theme-toggle { border: 0; color: var(--ink-soft); background: transparent; font: 700 11px var(--jp); cursor: pointer; }
.language-button { min-width: 42px; padding: 6px 7px; border-radius: 999px; white-space: nowrap; }
.language-button:hover, .language-button.active { color: var(--paper); background: var(--red); }
.theme-toggle { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--panel); font-size: 16px; }
main { width: min(880px, calc(100% - 36px)); margin: 0 auto; padding: 136px 0 50px; }
.breadcrumb { margin-bottom: 22px; color: var(--ink-soft); font-size: 14px; }
.breadcrumb a, footer a { color: var(--red); text-decoration: none; }
.article-head, .article-body, .cta-panel { padding: clamp(22px, 5vw, 48px); background: rgba(255, 255, 255, .38); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow); }
.article-head { margin-bottom: 24px; }
.eyebrow { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--jp); line-height: 1.38; }
h1 { margin: 12px 0 18px; font-size: clamp(2rem, 5vw, 3.35rem); }
.dek { color: var(--ink-soft); font-size: 1.13rem; }
.article-body h2 { margin: 36px 0 12px; font-size: clamp(1.45rem, 3vw, 2rem); }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin: 22px 0 8px; font-size: 1.18rem; }
.article-body p { margin: 0 0 16px; }
.article-body ol, .article-body ul { margin: 0 0 20px 24px; }
.article-body li { margin: 0 0 8px; padding-left: 5px; }
.article-body a { color: var(--red-deep); }
.info-note { padding: 16px 18px; background: rgba(200, 161, 94, .12); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; }
.cta-panel { margin-top: 24px; text-align: center; background: linear-gradient(135deg, rgba(159, 30, 34, .08), rgba(200, 161, 94, .12)); }
.cta-panel h2 { margin-bottom: 8px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-panel p { margin: 0 auto 18px; max-width: 650px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 22px; color: var(--paper); font-weight: 700; text-decoration: none; background: linear-gradient(135deg, var(--red), var(--red-deep)); border-radius: 999px; box-shadow: 0 12px 24px rgba(159, 30, 34, .2); }
footer { width: min(880px, calc(100% - 36px)); margin: 0 auto 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--ink-soft); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
html[data-theme="dark"] body { color: #f5ede2; background: linear-gradient(180deg, #171311, #1c1614 52%, #141110); background-attachment: fixed; }
html[data-theme="dark"] nav { background: rgba(23, 19, 17, .82); }
html[data-theme="dark"] nav.scrolled { background: rgba(23, 19, 17, .96); }
html[data-theme="dark"] .nav-links { background: rgba(31, 25, 22, .98); }
html[data-theme="dark"] .nav-links a, html[data-theme="dark"] .brand, html[data-theme="dark"] .language-button, html[data-theme="dark"] .theme-toggle { color: #f5ede2; }
html[data-theme="dark"] .article-head, html[data-theme="dark"] .article-body, html[data-theme="dark"] .cta-panel { color: #f5ede2; background: linear-gradient(160deg, #30241f, #241b18); }
html[data-theme="dark"] .dek, html[data-theme="dark"] footer { color: #d9cfbf; }
@media (max-width: 1100px) {
  nav { padding: 14px 4vw; }
  .logo { min-width: 0; flex: 1 1 auto; }
  .logo-image { width: 42px; height: 42px; }
  .menu-toggle { display: flex; }
  .nav-links { position: fixed; top: 78px; left: 12px; right: 12px; width: auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 12px; max-height: calc(100vh - 110px); overflow-y: auto; background: rgba(245, 240, 230, .98); backdrop-filter: blur(12px); border: 1px solid rgba(200, 161, 94, .32); border-radius: 14px; box-shadow: 0 14px 38px rgba(23, 20, 18, .18); z-index: 5; }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(10, 10, 10, .08); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { width: 100%; display: flex; justify-content: space-between; padding: 10px 6px; }
  .nav-tools { justify-content: center; padding: 10px 4px 6px; }
}
@media (min-width: 901px) and (max-width: 1400px) {
  nav { padding: 14px 3vw; gap: 8px; }
  .logo { min-width: 0; flex: 0 1 310px; }
  .brand { font-size: 18px; letter-spacing: .5px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 11px; letter-spacing: 1px; }
  .nav-links .nav-cta { padding: 9px 14px; }
  .language-button { min-width: 36px; padding: 5px 6px; }
  .theme-toggle { width: 32px; height: 32px; }
}
@media (max-width: 680px) {
  nav { padding: 12px 4vw; }
  .logo { max-width: calc(100vw - 110px); }
  .logo-image { width: 40px; height: 40px; }
  .brand { font-size: 15px; white-space: normal; }
  .jp { white-space: normal; }
  .nav-links { top: 72px; left: 10px; right: 10px; padding: 6px 10px; }
  .nav-links a { font-size: 11px; letter-spacing: 1.6px; padding: 9px 4px; }
  .nav-links .nav-cta { width: 100%; margin-top: 4px; }
  main { padding-top: 110px; }
}
