:root {
  --bg: #fdfcf9;
  --ink: #26221c;
  --muted: #6e675c;
  --rule: #e9e4da;
  --link: #0066cc;
  --link-wash: #eef5fd;
  --hinomaru: #bc002d;
  --tint: #f6f3ec;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --measure: 700px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Site header ---- */

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
}

.breadcrumbs {
  padding: 0.75rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.8rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 0.4rem;
  color: var(--rule);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--link);
}

.breadcrumbs li[aria-current='page'] {
  color: var(--ink);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand .dot {
  width: 1.06em;
  height: 1.06em;
  flex-shrink: 0;
}

.brand .tld {
  color: var(--muted);
  font-weight: 400;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  border-bottom-color: var(--hinomaru);
}

/* ---- Typography ---- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  margin: 0.5rem 0 1rem;
}

h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}

a {
  color: var(--link);
}

main a:not(.book-btn):not(.card-link):not(.book-link) {
  text-decoration: none;
  border-bottom: 2px solid var(--link-wash);
  transition: border-color 0.15s, background-color 0.15s;
}

main a:not(.book-btn):not(.card-link):not(.book-link):hover {
  border-bottom-color: var(--link);
  background: var(--link-wash);
}

:focus-visible {
  outline: 2px solid var(--hinomaru);
  outline-offset: 2px;
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--hinomaru);
  color: var(--muted);
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

code {
  font-size: 0.9em;
  background: var(--tint);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* ---- Eyebrow / meta ---- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hinomaru);
}

.post-meta {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

.post-meta .sep {
  margin: 0 0.5em;
  color: var(--rule);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th, td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

th {
  font-family: var(--sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--tint);
}

tbody tr:hover {
  background: var(--tint);
}

.table-scroll {
  overflow-x: auto;
}

/* ---- Yen tag (signature price accent) ---- */

.yen-tag {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--hinomaru);
  white-space: nowrap;
}

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

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
}

.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-weight: 600;
}

/* ---- Post body images ---- */

main img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

@media (max-width: 640px) {
  body {
    font-size: 1.05rem;
  }
}

/* ---- Legal links + cookie notice ---- */

.legal-links {
  font-size: 0.8rem;
}

.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--sans);
  font-size: 0.85rem;
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice a {
  color: #fff;
  text-decoration: underline;
}

.cookie-notice p {
  margin: 0;
  max-width: 640px;
}

.cookie-notice button {
  background: #fff;
  color: var(--ink);
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
