:root {
  --paper: #f7f4ec;
  --paper-deep: #ece6d8;
  --white: #fffdf8;
  --ink: #172333;
  --ink-soft: #4f5964;
  --line: rgba(23, 35, 51, .16);
  --blue: #185d78;
  --blue-deep: #103b50;
  --coral: #dd6a4d;
  --yellow: #e9bd55;
  --green: #637c60;
  --shadow: 0 18px 50px rgba(16, 59, 80, .12);
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --max: 1180px;
  --header-h: 76px;
  color-scheme: light;
  font-family: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; min-width: 320px; background: var(--paper); }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  background-image: radial-gradient(rgba(23, 35, 51, .12) .6px, transparent .6px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .7rem 1rem;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue-deep);
}
.skip-link:focus { top: 1rem; }

.container { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 2.5rem)); margin-inline: auto; }
.section { padding: 5.5rem 0; content-visibility: auto; contain-intrinsic-size: 1px 640px; }
.section--tight { padding: 3rem 0; }
.section--ink { color: var(--white); background: var(--blue-deep); }
.section--paper-deep { background: var(--paper-deep); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  color: var(--coral);
  font-family: 'DM Mono', monospace;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 1.7rem; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'Hiragino Serif', Georgia, serif; font-weight: 600; letter-spacing: -.035em; }
h1 { margin-bottom: 1.25rem; font-size: clamp(2.8rem, 8vw, 6.4rem); line-height: .98; }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.06; }
h3 { margin-bottom: .65rem; font-size: 1.45rem; line-height: 1.2; }
.lead { max-width: 38rem; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.9; }
.section--ink .lead { color: rgba(255, 253, 248, .72); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; }
.section-heading > div { max-width: 42rem; }
.section-heading p { margin-bottom: 0; color: var(--ink-soft); line-height: 1.8; }
.section--ink .section-heading p { color: rgba(255, 253, 248, .72); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 236, .97);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'Hiragino Serif', Georgia, serif; font-size: 1.15rem; font-weight: 700; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--ink); border-radius: 50%; color: var(--coral); font-family: Georgia, serif; font-size: 1.3rem; line-height: 1; transform: rotate(-9deg); }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; padding: .65rem .8rem; border-radius: 999px; color: var(--ink-soft); font-size: .9rem; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current='page'] { color: var(--ink); background: rgba(255, 253, 248, .82); }
.site-nav a[aria-current='page']::after { content: ''; position: absolute; right: .8rem; bottom: .3rem; left: .8rem; height: 2px; background: var(--coral); }
.site-nav__secondary { margin-left: .45rem; padding: .55rem .8rem !important; border: 1px solid var(--line); color: var(--blue) !important; font-size: .76rem !important; }
.site-nav__secondary:hover, .site-nav__secondary:focus-visible, .site-nav__secondary[aria-current='page'] { color: var(--blue-deep) !important; border-color: rgba(24, 93, 120, .36); background: rgba(255, 253, 248, .94) !important; }
.mobile-nav { display: none; }

/* Buttons and labels */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3rem; padding: .75rem 1.1rem; border: 1px solid transparent; border-radius: 999px; font-weight: 700; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .icon-button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(221, 106, 77, .45); outline-offset: 3px; }
.button--primary { color: var(--white); background: var(--coral); box-shadow: 0 8px 22px rgba(221, 106, 77, .22); }
.button--primary:hover { background: #c85a3f; }
.button--quiet { color: var(--ink); border-color: var(--line); background: transparent; }
.button--quiet:hover { border-color: var(--ink); background: rgba(255, 253, 248, .8); }
.button--light { color: var(--blue-deep); background: var(--white); }
.button--light:hover { background: #fff; }
.button--stamp { position: relative; overflow: hidden; color: var(--blue-deep); border-color: rgba(24, 93, 120, .24); background: #f4d987; }
.button--like { color: var(--coral); border-color: rgba(221, 106, 77, .28); background: rgba(221, 106, 77, .06); }
.button--like.is-liked { color: var(--white); border-color: var(--coral); background: var(--coral); }
.button--stamp.is-found { color: var(--white); border-color: var(--blue); background: var(--blue); }
.button--stamp.is-found::after { content: '見つけた'; position: absolute; inset: 4px; display: grid; place-items: center; border: 1px dashed rgba(255, 255, 255, .7); border-radius: inherit; transform: rotate(-5deg); }
.button--stamp.is-found { color: transparent; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--blue); font-weight: 700; }
.text-link::after { content: '↗'; transition: transform .2s ease; }
.text-link:hover::after { transform: translate(2px, -2px); }
.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.tag { display: inline-flex; align-items: center; min-height: 1.75rem; padding: .28rem .6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: .75rem; }
.tag--accent { color: var(--coral); border-color: rgba(221, 106, 77, .35); background: rgba(221, 106, 77, .08); }
.tag--limited { color: #805915; border-color: rgba(233, 189, 85, .7); background: #f7e4a7; }
.tag--sample { color: var(--blue); border-color: rgba(24, 93, 120, .25); background: rgba(24, 93, 120, .07); }
.tag--event { color: var(--coral); border-color: rgba(221, 106, 77, .35); background: rgba(221, 106, 77, .1); }
.tag--event-kind { color: var(--blue); border-color: rgba(24, 93, 120, .22); background: rgba(24, 93, 120, .07); }

/* Home */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); align-items: center; gap: clamp(3rem, 8vw, 8rem); min-height: calc(100svh - var(--header-h)); padding-top: 4rem; padding-bottom: 5rem; }
.hero__copy { position: relative; z-index: 1; }
.hero__copy h1 span { display: block; color: var(--blue); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 2.2rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; margin: 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: .82rem; }
.hero__meta li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__meta li::before { content: '✳'; color: var(--coral); }
.hero-art { position: relative; display: block; max-width: 460px; margin-inline: auto; padding: 1rem 1rem 1.3rem; border: 1px solid rgba(23, 35, 51, .14); background: var(--white); box-shadow: var(--shadow); transform: rotate(3.5deg); transition: transform .35s ease, box-shadow .35s ease; }
.hero-art::before { content: ''; position: absolute; top: -1.2rem; left: 22%; width: 44%; height: 2.5rem; border: 1px solid rgba(23, 35, 51, .1); background: rgba(233, 189, 85, .62); transform: rotate(-4deg); }
.hero-art:hover, .hero-art:focus-visible { box-shadow: 0 28px 70px rgba(16, 59, 80, .18); transform: rotate(0) translateY(-7px); }
.hero-art img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }
.art-note { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: .85rem; font-family: 'DM Mono', monospace; font-size: .72rem; letter-spacing: .05em; }
.art-note strong { font-family: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', system-ui, sans-serif; font-size: .95rem; letter-spacing: 0; }
.art-note small { color: var(--ink-soft); }
.hero-art__sample { position: absolute; right: -1.7rem; bottom: 4.2rem; padding: .45rem .7rem; color: var(--white); background: var(--blue); font-size: .7rem; font-weight: 700; transform: rotate(8deg); }

.featured-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1rem; align-items: stretch; }
.feature-note { display: flex; flex-direction: column; justify-content: space-between; min-height: 360px; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid rgba(255, 253, 248, .17); border-radius: var(--radius-lg); background: rgba(255, 253, 248, .07); }
.feature-note h2 { max-width: 19rem; }
.feature-note p { max-width: 29rem; color: rgba(255, 253, 248, .72); line-height: 1.9; }
.feature-note .tag { color: rgba(255, 253, 248, .8); border-color: rgba(255, 253, 248, .22); }
.today-card { display: grid; grid-template-columns: .95fr 1.05fr; min-height: 360px; overflow: hidden; border-radius: var(--radius-lg); color: var(--ink); background: var(--white); }
.today-card__image { min-height: 280px; }
.today-card__image img { width: 100%; height: 100%; object-fit: cover; }
.today-card__body { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.3rem, 3vw, 2.4rem); }
.today-card__body p { color: var(--ink-soft); line-height: 1.8; }
.today-card__body .text-link { align-self: start; }

.horizontal-scroll { display: grid; grid-auto-columns: minmax(260px, 30%); grid-auto-flow: column; gap: 1rem; overflow-x: auto; padding: .5rem .1rem 1rem; scrollbar-width: thin; scroll-snap-type: x proximity; }
.horizontal-scroll > * { scroll-snap-align: start; }
.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.route-card { position: relative; min-height: 200px; padding: 1.5rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.route-card::after { content: attr(data-number); position: absolute; right: 1rem; bottom: -.5rem; color: rgba(24, 93, 120, .08); font-family: Georgia, serif; font-size: 7rem; line-height: 1; }
.route-card p { max-width: 18rem; color: var(--ink-soft); line-height: 1.7; }

/* Cards */
.art-card, .store-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); box-shadow: 0 8px 24px rgba(16, 59, 80, .06); transition: transform .25s ease, box-shadow .25s ease; }
.art-card:hover, .art-card:focus-within, .store-card:hover, .store-card:focus-within { box-shadow: 0 18px 38px rgba(16, 59, 80, .13); transform: translateY(-4px); }
.art-card__image { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-deep); }
.art-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.art-card:hover .art-card__image img, .art-card:focus-within .art-card__image img { transform: scale(1.04); }
.art-card__body, .store-card__body { display: flex; flex: 1; flex-direction: column; gap: .8rem; padding: 1.1rem; }
.art-card__body h3, .store-card__body h3 { margin: 0; font-size: 1.3rem; }
.art-card__body p, .store-card__body p { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.65; }
.art-card__footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .25rem; }
.art-card__footer small { color: var(--ink-soft); font-family: 'DM Mono', monospace; font-size: .68rem; }
.store-card__body .text-link { margin-top: auto; }
.store-card__route { color: var(--blue); font-family: 'DM Mono', monospace; font-size: .7rem; letter-spacing: .03em; }

/* Marketplace cards */
.market-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 8px 22px rgba(16, 59, 80, .07); transition: transform .25s ease, box-shadow .25s ease; }
.market-card:hover, .market-card:focus-within { box-shadow: 0 18px 38px rgba(16, 59, 80, .15); transform: translateY(-5px); }
.market-card__image { position: relative; display: block; aspect-ratio: 1.08 / 1; overflow: hidden; background: var(--paper-deep); }
.market-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.market-card:hover .market-card__image img, .market-card:focus-within .market-card__image img { transform: scale(1.05); }
.market-card__badge, .market-card__found { position: absolute; top: .75rem; padding: .36rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 700; }
.market-card__badge { left: .75rem; color: #644d18; background: #f7e4a7; }
.market-card__found { right: .75rem; color: var(--white); background: var(--coral); transform: rotate(6deg); }
.market-card__body { display: flex; flex: 1; flex-direction: column; gap: .55rem; padding: 1rem; }
.market-card__seller { display: flex; align-items: center; gap: .4rem; color: var(--ink-soft); font-size: .74rem; }
.market-card__avatar { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; color: var(--white); background: var(--blue); font-family: Georgia, serif; font-size: .8rem; }
.market-card__verified { display: grid; place-items: center; width: 1rem; height: 1rem; border-radius: 50%; color: var(--white); background: var(--blue); font-size: .62rem; }
.market-card h3 { margin: .15rem 0 0; font-size: 1.25rem; }
.market-card__subtitle { margin: 0; color: var(--ink-soft); font-size: .86rem; line-height: 1.55; }
.market-card__meta { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-top: .35rem; padding-top: .65rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .72rem; }
.market-card__meta strong { color: var(--ink); font-family: 'DM Mono', monospace; font-size: .86rem; }
.market-card__footer { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-top: auto; padding-top: .35rem; }
.market-card__place { min-width: 0; overflow: hidden; color: var(--blue); font-size: .74rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.market-card__footer .button { min-height: 2.35rem; padding: .45rem .7rem; font-size: .74rem; }

/* Interactive art map */
.map-hero { overflow: hidden; color: var(--white); background: var(--blue-deep); }
.map-hero__inner { padding-top: 2.8rem; padding-bottom: 3.4rem; }
.map-hero--field { min-height: calc(100svh - var(--header-h)); }
.map-hero--field .map-hero__inner { width: 100%; padding: 0; }
.map-explorer--field { min-height: calc(100svh - var(--header-h)); }
.map-explorer--field .map-surface { min-height: calc(100svh - var(--header-h)); border-radius: 0; box-shadow: none; }
/* ホームは地図を主役にし、固定ナビの下に凡例が隠れないようにする。 */
.map-explorer--field .map-explorer__legend { display: none; }
.map-explorer--field .map-event-radar { margin-inline: 1.25rem; }
.japan-map__layers { position: absolute; top: .75rem; left: .75rem; z-index: 26; display: flex; gap: .2rem; max-width: calc(100% - 5.5rem); overflow-x: auto; scrollbar-width: none; padding: .22rem; border: 1px solid rgba(255, 253, 248, .24); border-radius: 999px; background: rgba(16, 59, 80, .94); box-shadow: 0 10px 24px rgba(0, 0, 0, .16); }
.japan-map__layers::-webkit-scrollbar { display: none; }
.japan-map__layer { flex: 0 0 auto; min-height: 2.05rem; padding: .34rem .62rem; border: 0; border-radius: 999px; color: rgba(255, 253, 248, .74); background: transparent; cursor: pointer; font-size: .68rem; font-weight: 700; white-space: nowrap; transition: color .16s ease, background-color .16s ease, transform .16s ease; }
.japan-map__layer:hover, .japan-map__layer:focus-visible { color: var(--white); background: rgba(255, 253, 248, .12); outline: none; }
.japan-map__layer.is-active { color: var(--blue-deep); background: var(--white); box-shadow: 0 4px 10px rgba(0, 0, 0, .16); }
.japan-map__layer--post { color: var(--yellow); }
.japan-map__layer--post span { display: inline-block; margin-right: .18rem; font-size: .95rem; line-height: 0; }
.japan-map__layer--post:hover, .japan-map__layer--post:focus-visible { color: var(--blue-deep); background: var(--yellow); }
.map-surface--field .japan-map__layers { top: .75rem; }
.map-surface--field .map-popover { top: 1rem; right: 1rem; bottom: 4.5rem; left: auto; width: min(390px, calc(100% - 2rem)); max-height: calc(100% - 6.5rem); overflow: auto; }
.map-surface--field .japan-map__regions { top: .75rem; }
.map-surface--field .japan-map__controls { top: 1rem; }
.map-surface--field .map-popover h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.app-page--field { overflow-x: hidden; }
.map-explorer__top { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.2rem; }
.map-explorer__top h2 { margin: 0; color: var(--ink); font-size: clamp(2.3rem, 6vw, 5.2rem); }
.map-explorer__top h2 span { color: var(--blue); }
.map-explorer__top .eyebrow { color: var(--coral); }
.map-explorer__hint { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 .4rem; color: var(--ink-soft); font-size: .78rem; }
.map-hero .map-explorer__top h2 { color: var(--white); }
.map-hero .map-explorer__top h2 span, .map-hero .map-explorer__top .eyebrow { color: var(--yellow); }
.map-hero .map-explorer__hint { color: rgba(255, 253, 248, .7); }
.map-explorer__hint-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 .35rem rgba(221, 106, 77, .2); }
.map-surface { position: relative; min-height: 520px; overflow: hidden; border: 1px solid rgba(255, 253, 248, .18); border-radius: 26px; isolation: isolate; background: #164961; box-shadow: 0 24px 80px rgba(0, 0, 0, .18); }
.map-surface--japan {
  background: var(--blue-deep);
  border: 0;
  border-radius: 18px;
  box-shadow: none;
}
.google-map-canvas { position: absolute; inset: 0; z-index: 0; min-height: 100%; }
.google-map-canvas[hidden] { display: none; }
.map-illustration { position: absolute; inset: 0; z-index: 1; overflow: hidden; border-radius: inherit; transition: opacity .35s ease; }
.map-illustration--japan { background: var(--blue-deep); }
.japan-map__viewport { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; cursor: grab; background-color: var(--blue-deep); background-image: radial-gradient(rgba(255, 253, 248, .14) .7px, transparent .7px), radial-gradient(circle at 18% 16%, rgba(233, 189, 85, .18), transparent 28%), linear-gradient(135deg, rgba(42, 124, 145, .55), transparent 58%); background-size: 12px 12px, 100% 100%, 100% 100%; }
.japan-map__viewport.is-map-zoomed { touch-action: none; }
.japan-map__viewport.is-dragging { cursor: grabbing; }
.japan-map__viewport.is-pinching { cursor: grabbing; }
.japan-map__viewport:focus-visible { outline: 3px solid var(--coral); outline-offset: -7px; }
.japan-map__geometry-probe { position: absolute; inset: 0; z-index: 3; overflow: hidden; opacity: 0; pointer-events: none; }
.japan-map__geometry-probe svg { position: absolute; top: 50%; left: 50%; display: block; width: min(100%, 520px); height: min(100%, 520px); pointer-events: auto; transform: translate(-50%, -50%); }
.japan-map__canvas { position: absolute; top: 0; left: 0; width: min(100%, 520px); height: min(100%, 520px); transform: none; transform-origin: center; }
.japan-map__asset-wrap { position: absolute; inset: 0; }
.japan-map__asset { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; image-rendering: auto; shape-rendering: geometricPrecision; text-rendering: geometricPrecision; user-select: none; pointer-events: auto; }
.japan-map__canvas.is-cell-map .japan-map__asset { visibility: hidden; pointer-events: none; }
.japan-map__asset--fallback { pointer-events: none; }
.japan-map__asset .prefecture { cursor: pointer; fill: #f2efe7; stroke: rgba(16, 59, 80, .5); stroke-width: var(--map-boundary-width, 1.25px); pointer-events: all; vector-effect: non-scaling-stroke; transition: fill .2s ease, stroke .2s ease, filter .2s ease; }
.japan-map__asset .prefecture.is-open { fill: var(--coral); stroke: rgba(16, 59, 80, .5); }
.japan-map__asset .prefecture:hover, .japan-map__asset .prefecture:focus-visible, .japan-map__asset .prefecture.is-selected { fill: #e67b5d; stroke: rgba(16, 59, 80, .5); filter: none; }
.japan-map__asset .prefecture.is-selected { animation: none; }
.japan-map__asset .prefecture:focus, .japan-map__asset .prefecture:focus-visible { outline: none !important; }
.japan-map__cells { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.japan-map__content-cells { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.japan-map__cell { position: absolute; display: grid; place-items: center; min-width: 0; min-height: 0; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 2px; color: transparent; background: rgba(173, 194, 205, .82); box-shadow: inset 0 0 0 .65px rgba(16, 59, 80, .26); cursor: pointer; font: inherit; pointer-events: auto; transition: background-color .16s ease, box-shadow .16s ease, opacity .16s ease; }
.japan-map__cell.has-content {
  /* 水色 → 緑 → 黄色 → 赤。空セルは上の淡い青灰色で表す。 */
  background: hsl(var(--cell-hue, 198) var(--cell-saturation, 55%) var(--cell-lightness, 80%));
  box-shadow: inset 0 0 0 .65px rgba(255, 253, 248, .3);
}
.japan-map__cell.has-content::after { content: '•'; display: block; color: rgba(255, 253, 248, .9); font-family: 'DM Mono', monospace; font-size: clamp(.32rem, 1.2vw, .72rem); font-weight: 700; line-height: 1; }
.japan-map__cell.is-active { box-shadow: inset 0 0 0 .65px rgba(255, 253, 248, .34), 0 0 0 1px var(--yellow); }
.japan-map__cell:hover, .japan-map__cell:focus-visible { z-index: 2; box-shadow: inset 0 0 0 1.25px var(--yellow); outline: none; }
.japan-map__viewport.is-zooming .japan-map__cell, .japan-map__viewport.is-focusing .japan-map__cell { transition: none; }
.japan-map__canvas--wrap-tile .japan-map__asset { pointer-events: none; }
.japan-map__regions { position: absolute; top: .75rem; right: 4.6rem; left: .75rem; z-index: 7; padding: 0; }
.japan-map__region-picker { width: min(680px, 100%); color: var(--white); }
.japan-map__region-picker > summary { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.35rem; padding: .38rem .65rem; border: 1px solid rgba(255, 253, 248, .3); border-radius: 999px; color: var(--white); background: rgba(16, 59, 80, .78); box-shadow: 0 5px 13px rgba(0, 0, 0, .16); cursor: pointer; font-size: .76rem; font-weight: 700; list-style: none; }
.japan-map__region-picker > summary::-webkit-details-marker { display: none; }
.japan-map__region-picker > summary::after { content: '＋'; color: var(--yellow); font-family: 'DM Mono', monospace; font-size: .8rem; }
.japan-map__region-picker[open] > summary { border-color: var(--yellow); color: var(--blue-deep); background: var(--white); }
.japan-map__region-picker[open] > summary::after { content: '−'; color: var(--coral); }
.japan-map__region-picker > summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.japan-map__region-picker > summary small { min-width: 1.3rem; padding: .16rem .3rem; border-radius: 999px; color: var(--blue-deep); background: var(--yellow); font-family: 'DM Mono', monospace; font-size: .62rem; text-align: center; }
.japan-map__region-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; max-height: min(42vh, 300px); overflow: auto; margin-top: .5rem; padding: .8rem; border: 1px solid rgba(255, 253, 248, .24); border-radius: 16px; background: rgba(16, 59, 80, .94); box-shadow: 0 18px 35px rgba(0, 0, 0, .24); }
.japan-map__region-group { min-width: 0; }
.japan-map__region-group h3 { margin: 0 0 .35rem; color: var(--yellow); font-family: 'DM Mono', monospace; font-size: .68rem; letter-spacing: .04em; }
.japan-map__region-list { display: flex; flex-wrap: wrap; gap: .3rem; }
.japan-map__region { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .3rem; min-height: 1.95rem; padding: .32rem .5rem; border: 1px solid rgba(255, 253, 248, .28); border-radius: 999px; color: var(--white); background: rgba(221, 106, 77, .88); box-shadow: 0 5px 12px rgba(0, 0, 0, .14); font-size: .7rem; font-weight: 700; }
.japan-map__region small { display: inline-grid; place-items: center; min-width: 1.15rem; height: 1.15rem; padding: 0 .22rem; border-radius: 999px; color: var(--blue-deep); background: var(--yellow); font-family: 'DM Mono', monospace; font-size: .6rem; }
.japan-map__region:hover, .japan-map__region:focus-visible, .japan-map__region.is-active { color: var(--blue-deep); background: var(--white); }
.japan-map__region:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.japan-map__controls { position: absolute; top: 1rem; right: 1rem; z-index: 7; display: grid; gap: .35rem; }
.japan-map__control { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid rgba(23, 35, 51, .18); border-radius: 9px; color: var(--ink); background: rgba(255, 253, 248, .92); box-shadow: 0 5px 13px rgba(23, 35, 51, .14); font-size: 1.2rem; font-weight: 700; line-height: 1; }
.japan-map__control:hover, .japan-map__control:focus-visible { color: var(--white); background: var(--blue-deep); }
.japan-map__control--reset { width: auto; min-width: 2.5rem; padding: 0 .45rem; font-size: .66rem; }
.japan-map__zoom-status { position: absolute; right: 1rem; bottom: 1rem; z-index: 7; padding: .38rem .58rem; border: 1px solid rgba(23, 35, 51, .14); border-radius: 999px; color: var(--ink-soft); background: rgba(255, 253, 248, .82); font-family: 'DM Mono', monospace; font-size: .66rem; }
.japan-map__credit { position: absolute; bottom: 1rem; left: 1rem; z-index: 7; margin: 0; padding: .32rem .5rem; border-radius: 999px; color: rgba(23, 35, 51, .7); background: rgba(255, 253, 248, .68); font-size: .62rem; }
.map-surface--japan .map-surface__stamp { display: none; }
.map-surface--japan .map-popover { top: auto; right: 1rem; bottom: 3.75rem; left: auto; }
.map-surface.is-google-ready .map-illustration { opacity: 0; pointer-events: none; }
.map-surface.is-google-ready .map-surface__stamp { display: none; }
.map-surface.is-google-ready .map-popover { top: 1rem; right: auto; bottom: auto; left: 1rem; }
.map-surface__sky { position: absolute; inset: 0; z-index: -3; background: radial-gradient(circle at 12% 10%, rgba(233, 189, 85, .2), transparent 23%), radial-gradient(circle at 84% 22%, rgba(221, 106, 77, .22), transparent 22%), linear-gradient(145deg, #123c51, #1a5c71 56%, #104053); }
.map-surface__sky::after { content: ''; position: absolute; inset: 0; opacity: .22; background-image: radial-gradient(rgba(255, 253, 248, .65) .65px, transparent .65px); background-size: 6px 6px; }
.map-road { position: absolute; z-index: -1; height: 34px; border: 1px solid rgba(255, 253, 248, .16); border-right: 0; border-left: 0; background: rgba(255, 253, 248, .08); transform-origin: center; }
.map-road--one { top: 31%; right: -8%; left: -8%; transform: rotate(-11deg); }
.map-road--two { top: 63%; right: -10%; left: -10%; transform: rotate(16deg); }
.map-road--three { top: 3%; bottom: -18%; left: 49%; width: 36px; height: auto; transform: rotate(28deg); }
.map-road::after { content: ''; position: absolute; top: 50%; right: 0; left: 0; height: 1px; opacity: .55; background: repeating-linear-gradient(90deg, transparent 0 15px, rgba(255, 253, 248, .45) 15px 26px); }
.map-water { position: absolute; right: -8%; bottom: -15%; z-index: -2; width: 42%; height: 45%; border-radius: 50% 0 0 0; opacity: .56; background: repeating-linear-gradient(164deg, rgba(255, 253, 248, .15) 0 2px, transparent 2px 14px), #2d7890; transform: rotate(-12deg); }
.map-water span { position: absolute; top: 44%; left: 25%; color: rgba(255, 253, 248, .6); font-family: 'DM Mono', monospace; font-size: .65rem; letter-spacing: .13em; transform: rotate(-18deg); }
.map-district { position: absolute; z-index: -1; color: rgba(255, 253, 248, .35); font-family: 'DM Mono', monospace; font-size: .65rem; letter-spacing: .08em; }
.map-district--a { top: 16%; left: 9%; }
.map-district--b { top: 48%; left: 42%; }
.map-district--c { right: 10%; bottom: 17%; }
.map-popover { position: absolute; top: min(var(--popover-y), calc(100% - 21rem)); left: min(var(--popover-x), calc(100% - 21rem)); z-index: 8; width: 20rem; padding: 1rem; border: 1px solid rgba(23, 35, 51, .14); border-radius: 16px; color: var(--ink); background: rgba(255, 253, 248, .97); box-shadow: 0 24px 45px rgba(0, 0, 0, .26); animation: map-pop .24s ease both; }
.map-popover[hidden] { display: none; }
.map-popover__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.map-popover__close { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); background: transparent; font-size: 1rem; line-height: 1; }
.map-popover h3 { margin: .75rem 0 .3rem; font-size: 1.5rem; }
.map-popover p { margin: 0 0 .8rem; color: var(--ink-soft); font-size: .8rem; line-height: 1.65; }
.map-popover__works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-bottom: .85rem; }
.map-popover__collection { min-width: 0; margin: .9rem 0; }
.map-popover__collection-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin: 0 0 .45rem; color: var(--ink-soft); font-size: .72rem; }
.map-popover__collection-heading strong { color: var(--ink); font-size: .78rem; }
.map-popover__collection-heading span { font-family: 'DM Mono', monospace; font-size: .64rem; }
.map-popover__works--collection { max-height: min(34vh, 19rem); margin-bottom: 0; overflow: auto; overscroll-behavior: contain; padding: .1rem .2rem .2rem 0; scrollbar-width: thin; }
.map-popover__works--single { grid-template-columns: 1fr; }
.map-popover__cluster-list { display: grid; gap: .55rem; margin: 1rem 0 .15rem; }
.map-popover__cluster-item { padding: .65rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.map-popover__cluster-item--link { display: block; color: inherit; text-decoration: none; }
.map-popover__cluster-item--link:hover { border-color: var(--coral); }
.map-popover__cluster-item > div { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.map-popover__cluster-item strong { font-size: .82rem; }
.map-popover__cluster-item p { margin: .4rem 0; font-size: .72rem; }
.map-popover__cluster-item .text-link { font-size: .7rem; }
.map-popover__event-kind { margin-top: .7rem; }
.map-work { display: flex; align-items: center; gap: .45rem; min-width: 0; padding: .35rem; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.map-work:hover { border-color: var(--coral); }
.map-work img { width: 2.4rem; height: 2.4rem; flex: 0 0 auto; border-radius: 6px; object-fit: cover; }
.map-work span { display: grid; min-width: 0; gap: .1rem; }
.map-work strong { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.map-work small { color: var(--ink-soft); font-family: 'DM Mono', monospace; font-size: .6rem; }
.map-popover .button { width: 100%; min-height: 2.55rem; font-size: .78rem; }
.map-popover__post-action { margin-top: .8rem; }
.map-post-drawer[hidden] { display: none; }
.map-post-drawer { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.map-post-drawer__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(13, 30, 40, .48); cursor: default; opacity: 0; animation: map-post-fade-in .2s ease forwards; }
.map-post-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(390px, calc(100% - 1rem)); padding: max(1.1rem, env(safe-area-inset-top)) 1.1rem max(1.2rem, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; pointer-events: auto; color: var(--ink); background: var(--white); box-shadow: -22px 0 52px rgba(13, 30, 40, .22); animation: map-post-slide-in .28s cubic-bezier(.2, .8, .2, 1) both; }
.map-post-drawer__head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.map-post-drawer__head .eyebrow { margin: 0 0 .35rem; color: var(--coral); }
.map-post-drawer__head h2 { margin: 0; font-size: clamp(1.5rem, 5vw, 2rem); }
.map-post-drawer__close { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; color: var(--ink-soft); background: var(--paper-deep); font-size: 1.35rem; line-height: 1; }
.map-post-drawer__close:hover, .map-post-drawer__close:focus-visible { color: var(--ink); background: #e4e9e6; }
.map-post-drawer__lead { margin: .9rem 0 1.1rem; color: var(--ink-soft); font-size: .8rem; line-height: 1.7; }
.map-post-form { display: grid; gap: .9rem; }
.map-post-form > label { display: grid; gap: .35rem; color: var(--ink); font-size: .78rem; font-weight: 700; }
.map-post-form > label small, .map-post-form__file small { color: var(--ink-soft); font-size: .68rem; font-weight: 500; }
.map-post-form__file { padding: .85rem; border-radius: 14px; background: var(--paper-deep); }
.map-post-form__file input { width: 100%; min-height: 2.4rem; padding: .2rem 0; background: transparent !important; }
.map-post-form__preview { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: .75rem; padding: .55rem; border-radius: 12px; background: var(--paper-deep); }
.map-post-form__preview[hidden] { display: none; }
.map-post-form__preview img { width: 76px; height: 76px; image-rendering: pixelated; object-fit: contain; background: #173544; }
.map-post-form__preview span { color: var(--ink-soft); font-family: 'DM Mono', monospace; font-size: .7rem; }
.map-post-location { display: grid; gap: .55rem; margin-top: .2rem; padding: .85rem; border-radius: 14px; background: var(--paper-deep); }
.map-post-location__head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.map-post-location__head strong { font-size: .8rem; }
.map-post-location__head span { color: var(--coral); font-family: 'DM Mono', monospace; font-size: .64rem; }
.map-post-location p { margin: 0; color: var(--ink-soft); font-size: .73rem; line-height: 1.55; }
.map-post-location__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.map-post-location__actions .button { min-height: 2.35rem; padding-inline: .55rem; font-size: .72rem; }
.map-post-form__status { min-height: 1.35rem; margin: 0; color: var(--ink-soft); font-size: .72rem; line-height: 1.55; }
.map-post-form__status[data-state='error'] { color: #c43f32; }
.map-post-form__status[data-state='ok'] { color: #24704a; }
.map-post-form__status[data-state='working'] { color: var(--blue); }
.map-post-form__status[data-state='pending'] { color: #8a6914; }
.map-post-form__submit { width: 100%; margin-top: .15rem; }
.map-post-form__submit:disabled { opacity: .42; cursor: not-allowed; transform: none; }
body.is-post-drawer-open { overflow: hidden; }
.map-event-detail { display: grid; gap: .55rem; margin: 1rem 0; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.map-event-detail div { display: grid; grid-template-columns: 3rem 1fr; gap: .55rem; }
.map-event-detail dt { color: var(--ink-soft); font-size: .68rem; font-weight: 700; }
.map-event-detail dd { margin: 0; font-size: .76rem; line-height: 1.45; }
.map-surface__stamp { position: absolute; right: 1.5rem; bottom: 1.2rem; color: rgba(255, 253, 248, .48); font-family: 'DM Mono', monospace; font-size: .7rem; letter-spacing: .13em; text-align: right; transform: rotate(-8deg); }
.map-surface__stamp small { font-size: .55rem; }
.map-explorer__legend { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.2rem; padding-top: .9rem; color: var(--ink-soft); font-size: .74rem; }
.map-explorer__legend .text-link { margin-left: auto; color: var(--blue); font-size: .78rem; }
.map-hero .map-explorer__legend { color: rgba(255, 253, 248, .65); }
.map-hero .map-explorer__legend .text-link { color: var(--white); }
.map-hero .map-explorer__source { color: rgba(255, 253, 248, .58); }
.map-explorer__legend span { display: inline-flex; align-items: center; gap: .4rem; }
.map-density-legend { gap: .42rem !important; }
.map-density-legend i { display: block; width: 5.5rem; height: .55rem; border-radius: 999px; background: linear-gradient(90deg, hsl(198 55% 80%), hsl(190 58% 74%), hsl(125 58% 60%), hsl(54 72% 58%), hsl(0 62% 46%)); }
.map-density-legend small { color: inherit; font-size: .66rem; }
.map-explorer__source { color: var(--ink-soft); font-family: 'DM Mono', monospace; font-size: .66rem; }
.legend-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--yellow); }
.legend-dot--limited { background: var(--coral); }
.legend-dot--event { background: var(--coral); box-shadow: 0 0 0 .18rem rgba(221, 106, 77, .18); }
.legend-pin { display: inline-block; width: .65rem; height: .65rem; border: 2px solid var(--coral); border-radius: 50%; background: rgba(221, 106, 77, .72); }
.legend-pin--limited { border-color: var(--yellow); border-radius: 50%; background: var(--yellow); }
.legend-pin--event { border-color: var(--blue); border-radius: 3px; background: var(--blue); }
.legend-pin--past { border-color: var(--ink-soft); background: rgba(79, 89, 100, .48); }
.legend-pin--watch { border: 2px dashed var(--blue); border-radius: 3px; background: transparent; }
.map-event-radar { display: grid; grid-template-columns: minmax(180px, .72fr) minmax(0, 1.28fr); gap: 1.3rem; margin-top: 1.25rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: rgba(255, 253, 248, .82); }
.map-event-radar__heading h3 { margin: .2rem 0 .45rem; font-size: clamp(1.35rem, 3vw, 2rem); }
.map-event-radar__heading p { margin: 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.7; }
.map-event-radar__body { min-width: 0; }
.map-event-radar__toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .7rem; margin-bottom: .75rem; color: var(--ink-soft); font-size: .78rem; }
.map-event-radar__toolbar label { font-weight: 700; }
.map-event-radar__toolbar select { min-height: 2.45rem; padding: .42rem 2rem .42rem .65rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--white); font-size: .78rem; }
.map-event-radar__toolbar select:focus-visible { outline: 3px solid rgba(221, 106, 77, .35); outline-offset: 2px; }
.map-event-radar__toolbar > span { margin-left: auto; font-family: 'DM Mono', monospace; font-size: .68rem; }
.map-event-radar__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.event-radar-card { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .65rem; min-width: 0; padding: .75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); transition: border-color .2s ease, transform .2s ease; }
.event-radar-card:hover { border-color: var(--coral); transform: translateY(-2px); }
.event-radar-card--past { background: rgba(236, 230, 216, .78); }
.event-radar-card--watch { background: var(--paper-deep); }
.event-radar-card--live .event-radar-card__mark { color: var(--blue-deep); background: var(--yellow); }
.event-radar-card__mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; color: var(--white); background: var(--coral); box-shadow: 0 5px 12px rgba(221, 106, 77, .25); }
.event-radar-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .5rem; color: var(--ink-soft); font-size: .65rem; }
.event-radar-card__meta .tag { min-height: 1.35rem; padding: .18rem .42rem; font-size: .62rem; }
.event-radar-card h3 { margin: .35rem 0 .2rem; overflow: hidden; font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
.event-radar-card p { display: -webkit-box; margin: 0 0 .45rem; overflow: hidden; color: var(--ink-soft); font-size: .7rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.event-radar-card .text-link { font-size: .68rem; }
.event-radar-card__source-note { color: var(--ink-soft); font-size: .68rem; }
.map-event-radar__empty { grid-column: 1 / -1; margin: 0; padding: 1rem; border: 1px dashed var(--line); border-radius: 10px; color: var(--ink-soft); background: rgba(255, 253, 248, .6); }
.map-event-radar__more { display: block; min-height: 2.45rem; margin: .75rem auto 0; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--blue); background: var(--white); font-size: .75rem; font-weight: 700; }
.map-event-radar__more:hover, .map-event-radar__more:focus-visible { color: var(--white); border-color: var(--blue-deep); background: var(--blue-deep); }
.map-hero .map-event-radar { border-color: rgba(255, 253, 248, .2); background: rgba(255, 253, 248, .09); }
.map-hero .map-event-radar__heading h3, .map-hero .map-event-radar__heading .eyebrow { color: var(--yellow); }
.map-hero .map-event-radar__heading p { color: rgba(255, 253, 248, .68); }
@keyframes map-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.store-card__meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.store-card__links { display: flex; flex-wrap: wrap; gap: .7rem 1rem; align-items: center; }
.store-card__image { display: grid; place-items: center; aspect-ratio: 1.35 / 1; color: rgba(255, 253, 248, .86); background: linear-gradient(135deg, var(--blue), var(--coral)); }
.store-card__image span { padding: .5rem .8rem; border: 1px solid rgba(255, 253, 248, .35); font-family: 'DM Mono', monospace; font-size: .7rem; letter-spacing: .08em; }

/* Page intro, controls */
.page-hero { padding: 5rem 0 3rem; border-bottom: 1px solid var(--line); }
.app-page:not(.app-page--field) .page-hero { padding: 3.2rem 0 2rem; }
.page-hero__inner { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.page-hero h1 { max-width: 42rem; margin-bottom: 0; font-size: clamp(2.7rem, 7vw, 5.5rem); }
.app-page:not(.app-page--field) .page-hero h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
.page-hero p { max-width: 31rem; margin-bottom: .2rem; color: var(--ink-soft); line-height: 1.8; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; margin-bottom: 2rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 253, 248, .62); }
.field { display: flex; flex: 1 1 180px; flex-direction: column; gap: .4rem; }
.field label { color: var(--ink-soft); font-size: .78rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 2.8rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--white); }
.field textarea { min-height: 8rem; resize: vertical; }
.filter-result { margin: 0 0 1.2rem; color: var(--ink-soft); font-size: .85rem; }
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.empty-state { padding: 3rem 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius-md); text-align: center; color: var(--ink-soft); }

/* Tools launcher */
.tool-shell { padding: clamp(2rem, 5vw, 4rem) 0 5rem; }
.tool-shell__head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.tool-shell__head h1 { margin-bottom: .55rem; font-size: clamp(2.2rem, 6vw, 4.6rem); }
.tool-shell__head p { max-width: 28rem; margin: 0; color: var(--ink-soft); line-height: 1.7; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tool-card { position: relative; display: flex; min-height: 190px; flex-direction: column; justify-content: space-between; padding: 1.2rem; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: rgba(255, 253, 248, .86); box-shadow: 0 8px 22px rgba(16, 59, 80, .06); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.tool-card:hover, .tool-card:focus-within { border-color: rgba(221, 106, 77, .48); box-shadow: 0 16px 34px rgba(16, 59, 80, .13); transform: translateY(-4px); }
.tool-card__icon { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 12px; color: var(--blue-deep); background: var(--paper-deep); font-family: 'DM Mono', monospace; font-size: 1.25rem; }
.tool-card--accent .tool-card__icon { color: var(--white); background: var(--coral); }
.tool-card h2 { margin: 1.4rem 0 .35rem; font-family: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', system-ui, sans-serif; font-size: 1.05rem; letter-spacing: -.02em; }
.tool-card p { margin: 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.65; }
.tool-card__status { align-self: start; margin-top: 1rem; color: var(--ink-soft); font-family: 'DM Mono', monospace; font-size: .64rem; }
.tool-card--soon { color: var(--ink-soft); background: rgba(236, 230, 216, .55); box-shadow: none; }
.tool-card--soon .tool-card__icon { color: rgba(79, 89, 100, .7); background: rgba(255, 253, 248, .62); }
.tool-note { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding: 1rem 1.15rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .8rem; }
.tool-note strong { color: var(--ink); }

/* Detail pages */
.detail-shell { padding: 4rem 0 5rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; color: var(--ink-soft); font-family: 'DM Mono', monospace; font-size: .72rem; }
.breadcrumbs a:hover { color: var(--coral); }
.detail-hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(320px, 1.08fr); align-items: start; gap: clamp(2rem, 7vw, 6rem); }
.detail-art { position: relative; padding: .85rem; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.detail-art img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }
.detail-art__zoom { position: absolute; right: 1.5rem; bottom: 1.5rem; min-height: 2.5rem; padding: .5rem .8rem; border: 1px solid rgba(255, 253, 248, .5); border-radius: 999px; color: var(--white); background: rgba(23, 35, 51, .75); font-size: .75rem; }
.detail-copy h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
.detail-copy__lead { max-width: 36rem; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.9; }
.detail-copy__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.8rem 0; }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 2rem 0; }
.detail-fact { padding: 1rem; border-top: 1px solid var(--line); }
.detail-fact dt { margin-bottom: .3rem; color: var(--ink-soft); font-family: 'DM Mono', monospace; font-size: .68rem; text-transform: uppercase; }
.detail-fact dd { margin: 0; font-weight: 700; }
.context-banner { margin-bottom: 1.5rem; padding: .8rem 1rem; border-left: 3px solid var(--yellow); color: #6b501c; background: #f9edc6; font-size: .9rem; }
.subsection { padding: 4rem 0 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.store-list-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.store-mini { padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.store-mini h3 { margin-bottom: .3rem; font-size: 1.2rem; }
.store-mini p { margin-bottom: .8rem; color: var(--ink-soft); font-size: .88rem; line-height: 1.7; }
.dialog { width: min(900px, calc(100% - 2rem)); padding: .6rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow); }
.dialog::backdrop { background: rgba(16, 59, 80, .72); }
.dialog img { width: 100%; max-height: 78vh; object-fit: contain; }
.dialog__close { display: block; margin: .4rem .4rem .2rem auto; min-height: 2.5rem; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: transparent; }

/* Store detail */
.store-hero { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 360px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.store-hero__visual { display: grid; place-items: center; padding: 2rem; color: rgba(255, 253, 248, .86); background: linear-gradient(145deg, var(--blue-deep), var(--blue)); }
.store-hero__visual span { padding: 1rem; border: 1px solid rgba(255, 253, 248, .35); font-family: 'DM Mono', monospace; font-size: .8rem; letter-spacing: .1em; }
.store-hero__copy { padding: clamp(1.5rem, 4vw, 3.5rem); }
.store-hero__copy h1 { margin-bottom: .7rem; font-size: clamp(2.4rem, 6vw, 4.8rem); }
.store-hero__copy p { color: var(--ink-soft); line-height: 1.9; }
.store-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.store-fact { padding-top: .7rem; border-top: 1px solid var(--line); }
.store-fact strong { display: block; margin-bottom: .25rem; font-size: .78rem; }
.store-fact span { color: var(--ink-soft); font-size: .9rem; }
.store-location { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1rem; align-items: stretch; }
.store-location__map { position: relative; min-height: 260px; overflow: hidden; border: 1px solid rgba(255, 253, 248, .15); border-radius: var(--radius-lg); background: linear-gradient(145deg, #123c51, #1a5c71 58%, #dd6a4d); }
.store-location__map.is-google-ready { background: #dce7e9; }
.store-location__map.is-google-ready .store-map-fallback { display: none; }
.store-map-fallback { position: absolute; inset: 0; }
.store-location__map .google-map-canvas { z-index: 1; }
.store-location__map::before, .store-location__map::after { content: ''; position: absolute; height: 30px; border-block: 1px solid rgba(255, 253, 248, .2); background: rgba(255, 253, 248, .08); transform: rotate(-16deg); }
.store-location__map::before { top: 34%; right: -12%; left: -12%; }
.store-location__map::after { top: 68%; right: -12%; left: -12%; transform: rotate(14deg); }
.store-location__route { position: absolute; top: 1.1rem; left: 1.1rem; color: rgba(255, 253, 248, .7); font-family: 'DM Mono', monospace; font-size: .68rem; letter-spacing: .08em; }
.store-location__pin { position: absolute; top: 48%; left: 52%; display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border: 3px solid var(--white); border-radius: 50% 50% 50% 0; color: var(--blue-deep); background: var(--yellow); box-shadow: 0 12px 20px rgba(0, 0, 0, .2); transform: translate(-50%, -50%) rotate(-45deg); }
.store-location__line { position: absolute; display: block; height: 2px; background: rgba(255, 253, 248, .45); transform-origin: left center; }
.store-location__line--one { top: 45%; left: 16%; width: 33%; transform: rotate(18deg); }
.store-location__line--two { top: 52%; left: 56%; width: 29%; transform: rotate(-30deg); }
.store-location__label { position: absolute; right: 1.1rem; bottom: 1rem; color: rgba(255, 253, 248, .7); font-size: .72rem; }
.store-location__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.4rem, 3vw, 2.4rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.store-location__copy h2 { margin-bottom: .7rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.store-location__copy p { color: var(--ink-soft); line-height: 1.8; }
.store-location__copy .text-link { align-self: start; margin-top: .8rem; }

/* Collection */
.collection-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.progress-card { min-width: 220px; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.progress-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.progress-card__top strong { font-family: 'Shippori Mincho', Georgia, serif; font-size: 2.2rem; }
.progress-bar { height: .55rem; overflow: hidden; border-radius: 999px; background: var(--paper-deep); }
.progress-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--coral); transition: width .5s ease; }
.collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.collection-item { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.collection-item__image { aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-deep); }
.collection-item__image img { width: 100%; height: 100%; object-fit: cover; transition: filter .35s ease, transform .35s ease; }
.collection-item:not(.is-found) .collection-item__image img { filter: grayscale(1) contrast(.72) brightness(1.25); transform: scale(1.04); }
.collection-item__body { padding: .85rem; }
.collection-item__body h3 { margin-bottom: .25rem; font-size: 1.05rem; }
.collection-item__body p { margin-bottom: 0; color: var(--ink-soft); font-size: .76rem; }
.collection-item__mark { position: absolute; top: .7rem; right: .7rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; color: var(--white); background: var(--coral); font-size: .9rem; opacity: 0; transform: rotate(-12deg) scale(.8); transition: opacity .25s ease, transform .25s ease; }
.collection-item.is-found .collection-item__mark { opacity: 1; transform: rotate(-12deg) scale(1); }
.collection-empty { padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius-md); color: var(--ink-soft); background: rgba(255, 253, 248, .45); }

/* Shops / about */
.shop-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; align-items: stretch; }
.shop-panel { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.shop-panel--dark { color: var(--white); border-color: transparent; background: var(--blue-deep); }
.price-display { display: flex; align-items: baseline; gap: .5rem; margin: 2rem 0; }
.price-display strong { font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'Hiragino Serif', Georgia, serif; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; }
.price-display span { color: var(--ink-soft); }
.shop-panel--dark .price-display span { color: rgba(255, 253, 248, .7); }
.step-list { display: grid; gap: .9rem; margin: 1.4rem 0 0; padding: 0; list-style: none; counter-reset: steps; }
.step-list li { display: grid; grid-template-columns: 2rem 1fr; gap: .7rem; align-items: start; counter-increment: steps; }
.step-list li::before { content: counter(steps, decimal-leading-zero); display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: 50%; color: var(--coral); font-family: 'DM Mono', monospace; font-size: .7rem; }
.step-list strong { display: block; margin-bottom: .15rem; }
.step-list span { color: var(--ink-soft); font-size: .88rem; line-height: 1.65; }
.shop-panel--dark .step-list span { color: rgba(255, 253, 248, .7); }
.faq-list { display: grid; gap: .7rem; }
.faq-list details { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.faq-list summary { cursor: pointer; font-weight: 700; }
.faq-list p { margin: .8rem 0 0; color: var(--ink-soft); line-height: 1.75; }
.contact-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.contact-card p { color: var(--ink-soft); line-height: 1.8; }

/* Toast and footer */
.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; max-width: min(360px, calc(100% - 2rem)); padding: .9rem 1rem; border: 1px solid rgba(255, 253, 248, .2); border-radius: 12px; color: var(--white); background: var(--blue-deep); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(1rem); transition: opacity .25s ease, transform .25s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.site-footer { margin-top: 4rem; padding: 3rem 0 6rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; }
.footer-inner p { max-width: 25rem; margin: .8rem 0 0; color: var(--ink-soft); font-size: .86rem; line-height: 1.7; }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; justify-content: end; gap: .8rem 1.2rem; color: var(--ink-soft); font-size: .85rem; }
.footer-links a:hover { color: var(--coral); }
.footer-meta { margin-top: 2rem; color: var(--ink-soft); font-family: 'DM Mono', monospace; font-size: .68rem; }

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .container, .narrow { width: min(100% - 2rem, var(--max)); }
  .site-header { position: sticky; }
  .site-nav { display: flex; gap: .25rem; }
  .site-nav > a:not(.site-nav__secondary) { display: none; }
  .site-nav__secondary { margin-left: 0; min-height: 2.35rem !important; padding: .48rem .65rem !important; font-size: .68rem !important; }
  .mobile-nav { position: fixed; right: .6rem; bottom: max(.6rem, env(safe-area-inset-bottom)); left: .6rem; z-index: 25; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .25rem; width: auto; padding: .4rem; border: 1px solid rgba(23, 35, 51, .15); border-radius: 18px; background: rgba(255, 253, 248, .98); box-shadow: 0 10px 35px rgba(16, 59, 80, .18); }
  .mobile-nav a { display: grid; gap: .15rem; place-items: center; min-height: 3rem; border-radius: 12px; color: var(--ink-soft); font-size: .68rem; }
  .mobile-nav a span { font-size: 1.05rem; line-height: 1; }
  .mobile-nav a[aria-current='page'] { color: var(--blue-deep); background: var(--paper-deep); }
  .hero, .featured-grid, .detail-hero, .store-hero, .store-location, .shop-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 4rem; }
  .hero-art { width: min(100%, 450px); }
  .map-explorer__top { align-items: start; flex-direction: column; gap: .8rem; }
  .map-explorer__top h2 { font-size: clamp(2.5rem, 10vw, 4.2rem); }
  .map-surface { min-height: 560px; }
  .japan-map__region-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-popover { top: auto; right: .75rem; bottom: .75rem; left: .75rem; width: auto; }
  .map-event-radar { grid-template-columns: 1fr; }
  .today-card { grid-template-columns: 1fr; }
  .today-card__image { min-height: 260px; }
  .route-grid, .art-grid, .store-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-shell__head { align-items: start; flex-direction: column; }
  .page-hero__inner, .collection-head, .section-heading, .footer-inner { align-items: start; flex-direction: column; }
  .page-hero__inner, .collection-head, .section-heading, .footer-inner { display: flex; }
  .footer-links { justify-content: start; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  .section { padding: 4rem 0; }
  .hero { gap: 3rem; }
  .map-hero__inner { width: min(100% - 1rem, var(--max)); padding-top: 2rem; }
  .map-surface { min-height: 600px; border-radius: 20px; }
  .map-explorer--field .map-surface { min-height: calc(100svh - var(--header-h)); }
  .map-explorer--field .map-event-radar { margin-inline: .75rem; }
  .map-surface--field .japan-map__layers { top: .75rem; max-width: calc(100% - 4.75rem); }
  .map-surface--field .japan-map__controls { top: .75rem; }
  .map-surface--field .map-popover { right: .75rem; bottom: 4.8rem; left: .75rem; width: auto; max-height: calc(100% - 7rem); }
  .map-surface--japan .map-popover { bottom: 4.8rem; }
  .map-surface--japan .japan-map__zoom-status, .map-surface--japan .japan-map__credit { bottom: 4.8rem; }
  .japan-map__regions { right: 4.2rem; }
  .japan-map__region-panel { max-height: 38vh; padding: .65rem; }
  .japan-map__control { width: 2.7rem; height: 2.7rem; }
  .japan-map__control--reset { min-width: 2.7rem; }
  .map-surface__stamp { right: .9rem; bottom: .9rem; }
  .map-explorer__legend .text-link { flex-basis: 100%; margin-left: 0; }
  .map-event-radar__list { grid-template-columns: 1fr; }
  .map-event-radar__toolbar > span { margin-left: 0; }
  .hero__actions .button { flex: 1 1 100%; }
  .hero__meta { display: grid; gap: .55rem; }
  .horizontal-scroll { grid-auto-columns: minmax(260px, 82%); }
  .route-grid, .art-grid, .store-grid, .related-grid, .store-list-mini { grid-template-columns: 1fr; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .tool-card { min-height: 165px; padding: 1rem; }
  .tool-card h2 { margin-top: 1rem; font-size: .95rem; }
  .tool-note { align-items: start; flex-direction: column; }
  .detail-facts, .store-facts { grid-template-columns: 1fr; }
  .detail-art { transform: none; }
  .shop-panel { padding: 1.4rem; }
  .site-footer { padding-bottom: 6.5rem; }
}

@keyframes field-hint-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes map-post-fade-in { to { opacity: 1; } }
@keyframes map-post-slide-in { from { opacity: .7; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
