/* ============================================
   畔蒜ジョージの万国道中膝栗毛
   昭和旅雑誌風 / Showa-era travel magazine
   ============================================ */

:root {
  /* Paper & ink — warm cream paper, sumi-black */
  --paper: #f1e8d4;
  --paper-deep: #e8dcc0;
  --paper-shadow: #d9c9a3;
  --ink: #1c1814;
  --ink-soft: #3a322a;
  --ink-mute: #6b6052;

  /* Accents — vermilion, mustard, indigo, moss */
  --vermilion: #c8472f;       /* 朱 — primary */
  --vermilion-deep: #a73722;
  --mustard: #d4a23a;          /* からし */
  --indigo: #2a4858;           /* 藍 */
  --moss: #6b7842;             /* 苔 */
  --hanko: #b8392a;            /* 判子の朱 */

  /* Type */
  --gothic: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --mincho: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --display: "Reggae One", "DotGothic16", var(--gothic);
  --mono: "DotGothic16", "Source Code Pro", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Paper texture: layered noise + grain ── */
body {
  background-color: var(--paper);
  background-image:
    /* 古紙の染み — sparse blotches */
    radial-gradient(ellipse 220px 90px at 12% 18%, rgba(140, 100, 50, 0.06), transparent 70%),
    radial-gradient(ellipse 160px 60px at 88% 62%, rgba(120, 80, 40, 0.05), transparent 70%),
    radial-gradient(ellipse 120px 80px at 35% 88%, rgba(150, 110, 60, 0.04), transparent 70%),
    /* fiber */
    repeating-linear-gradient(91deg, transparent 0 3px, rgba(120, 90, 50, 0.015) 3px 4px),
    repeating-linear-gradient(2deg, transparent 0 5px, rgba(100, 70, 40, 0.012) 5px 6px);
  position: relative;
}

/* Grain overlay — film-like noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.2  0 0 0 0 0.1  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ── Typography ── */
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: 0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.mincho { font-family: var(--mincho); }
.gothic { font-family: var(--gothic); }
.mono { font-family: var(--mono); letter-spacing: 0.05em; }

/* Vertical text */
.vrt {
  writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  text-orientation: upright;
}

/* ── Layout ── */
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

/* ── Header / Masthead ── */
.masthead {
  border-bottom: 2px solid var(--ink);
  padding: 14px 0 10px;
  position: relative;
  background: var(--paper);
}
.masthead::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--ink);
}
.mast-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.mast-issue {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  display: flex; gap: 18px; flex-wrap: wrap;
}
.mast-issue .dot { color: var(--vermilion); }
.mast-logo {
  display: flex; align-items: baseline; gap: 12px;
}
.mast-logo .ja {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.mast-logo .en {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.mast-tools {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px;
  color: var(--ink-mute);
}
.mast-tools .seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1.5px solid var(--hanko);
  color: var(--hanko);
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 11px;
  border-radius: 4px;
  transform: rotate(-4deg);
  letter-spacing: 0;
  line-height: 1;
  writing-mode: vertical-rl;
  padding: 4px 0;
}
.search-box {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--ink);
  padding: 4px 10px;
  background: rgba(255,255,255,0.3);
  font-family: var(--mono);
  font-size: 11px;
}
.search-box input {
  border: 0; background: transparent; outline: none;
  font: inherit; color: var(--ink); width: 120px;
}

/* Nav strip */
.navstrip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--gothic);
  font-size: 13px;
  font-weight: 500;
}
.navstrip ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 22px;
}
.navstrip a {
  position: relative; padding: 2px 0;
  cursor: pointer;
}
.navstrip a:hover { color: var(--vermilion); }
.navstrip .pill {
  background: var(--ink); color: var(--paper);
  padding: 3px 10px; font-size: 11px; letter-spacing: 0.08em;
  font-family: var(--mono);
}

/* ── Hero ── */
.hero {
  position: relative;
  margin: 24px 0;
}

/* ── Card placeholder image ── */
.ph {
  background-color: var(--paper-deep);
  background-image:
    repeating-linear-gradient(45deg,
      var(--paper-deep) 0 8px,
      var(--paper-shadow) 8px 9px),
    linear-gradient(135deg, rgba(0,0,0,0.05), rgba(0,0,0,0));
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ph-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  background: rgba(241, 232, 212, 0.85);
  padding: 4px 10px;
  border: 1px dashed var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Stamp / hanko */
.hanko-stamp {
  display: inline-flex; align-items: center; justify-content: center;
  border: 2.5px solid var(--hanko);
  color: var(--hanko);
  font-family: var(--mincho);
  font-weight: 700;
  background: rgba(241, 232, 212, 0.4);
  width: 64px; height: 64px;
  font-size: 14px;
  line-height: 1.1;
  text-align: center;
  border-radius: 6px;
  transform: rotate(-7deg);
  letter-spacing: 0;
  position: relative;
}
.hanko-stamp::before {
  content: "";
  position: absolute; inset: 4px;
  border: 1px solid var(--hanko);
  border-radius: 3px;
  opacity: 0.5;
}

/* Postage stamp */
.postage {
  display: inline-block;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 4px;
  position: relative;
  background-image:
    radial-gradient(circle at 50% 0, transparent 3px, var(--paper) 3px),
    radial-gradient(circle at 50% 100%, transparent 3px, var(--paper) 3px);
  background-size: 8px 4px, 8px 4px;
  background-position: 0 0, 0 100%;
  background-repeat: repeat-x;
}

/* ── Article cards ── */
.article-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
  background: var(--paper);
}
.article-card .img-wrap {
  position: relative;
  overflow: hidden;
}
.article-card .img-wrap .ph {
  width: 100%;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.article-card:hover .img-wrap .ph {
  transform: scale(1.04);
}
.article-card .meta {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
}
.article-card .cat {
  font-family: var(--gothic);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cat-travel  { background: var(--vermilion); color: #fff8eb; }
.cat-gourmet { background: var(--mustard);    color: var(--ink); }
.cat-tale    { background: var(--indigo);     color: #fff8eb; }
.cat-dot.cat-travel  { color: var(--vermilion); }
.cat-dot.cat-gourmet { color: var(--mustard); }
.cat-dot.cat-tale    { color: var(--indigo); }

.article-card .title {
  font-family: var(--mincho);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color 0.2s;
}
.article-card:hover .title { color: var(--vermilion); }
.article-card .excerpt {
  font-family: var(--gothic);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.article-card .num {
  font-family: var(--mono);
  font-size: 32px;
  color: var(--vermilion);
  line-height: 1;
  font-weight: 700;
}

/* Decorative ornament — corner crops */
.crop-corner::before, .crop-corner::after {
  content: ""; position: absolute;
  width: 12px; height: 12px;
  border: 1.5px solid var(--ink);
}
.crop-corner::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.crop-corner::after  { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

/* Filter chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--gothic);
  font-size: 12px;
  padding: 6px 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-weight: 500;
}
.chip:hover { background: var(--ink); color: var(--paper); }
.chip.active {
  background: var(--ink); color: var(--paper);
  box-shadow: 3px 3px 0 var(--vermilion);
  transform: translate(-1px, -1px);
}
.chip .count {
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0.6;
}
.chip.tag {
  border: 1px dashed var(--ink-mute);
  font-size: 11px;
  padding: 4px 10px;
  color: var(--ink-soft);
}
.chip.tag:hover { background: var(--paper-deep); color: var(--ink); border-color: var(--ink); border-style: solid; }
.chip.tag.active {
  background: var(--vermilion); color: var(--paper);
  border: 1px solid var(--vermilion);
}

/* Section heading */
.section-hd {
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 28px;
  position: relative;
}
.section-hd::before {
  content: "";
  position: absolute; left: 0; bottom: -5px;
  height: 1px; width: 60%; background: var(--ink);
}
.section-hd .ja {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: 0.04em;
}
.section-hd .en {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-left: 14px;
}
.section-hd .right {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}

/* Vertical rules */
.vrule {
  border-left: 1px solid var(--ink);
  padding-left: 20px;
}

/* ── Footer ── */
.colophon {
  margin-top: 80px;
  border-top: 4px double var(--ink);
  padding: 40px 0 60px;
  background-image:
    linear-gradient(var(--paper), var(--paper)),
    repeating-linear-gradient(45deg, var(--paper-shadow) 0 1px, transparent 1px 6px);
  background-blend-mode: multiply;
}

/* Filter row */
.filter-bar {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink-mute);
  margin-bottom: 28px;
}
.filter-bar .lbl {
  font-family: var(--mincho);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  margin-right: 4px;
}
.filter-bar .divider {
  width: 1px; height: 18px; background: var(--ink-mute);
  margin: 0 4px;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s cubic-bezier(.2,.8,.2,1) both; }

/* Subtle wobble for stamps */
@keyframes wobble {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(-5deg); }
}
.hanko-stamp:hover { animation: wobble 0.6s ease-in-out; }

/* ── Hero variants ── */
/* shared hero scaffolding */
.hero-edition-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.hero-edition-tag::before {
  content: "";
  width: 28px; height: 1px; background: var(--vermilion);
}
.hero h1 .yomi {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-mute);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

/* Ticker */
.ticker {
  border: 1px solid var(--ink);
  background: var(--paper);
  display: flex; align-items: stretch;
  font-family: var(--mono);
  font-size: 11px;
  overflow: hidden;
}
.ticker .tag {
  background: var(--ink);
  color: var(--paper);
  padding: 6px 12px;
  letter-spacing: 0.15em;
  white-space: nowrap;
  font-weight: 700;
}
.ticker .scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.ticker .scroll-inner {
  display: inline-flex; gap: 40px;
  padding: 6px 0;
  white-space: nowrap;
  animation: scroll-left 40s linear infinite;
  color: var(--ink-soft);
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker .scroll-inner span::before {
  content: "▸ "; color: var(--vermilion);
}

/* Map dots */
.map-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--vermilion);
  position: absolute;
  box-shadow: 0 0 0 3px rgba(200, 71, 47, 0.18);
}
.map-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--vermilion);
  opacity: 0.5;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Tags row */
.tag-list {
  display: flex; flex-wrap: wrap; gap: 6px 8px;
}

/* Print rules */
.rule-thick { height: 4px; background: var(--ink); }
.rule-double {
  height: 6px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}

/* utility */
.flex { display: flex; }
.col { flex-direction: column; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.text-mute { color: var(--ink-mute); }
.text-soft { color: var(--ink-soft); }
.text-vermilion { color: var(--vermilion); }
.upper { text-transform: uppercase; letter-spacing: 0.15em; }
