/* NOMIMICHI（のみみち） — night-alley zine stylesheet
   One column, one lantern. Dark only: the site IS the night. */

/* ---------------------------------------------------------------- tokens */

@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #100e0b;            /* night asphalt */
  --bg-raise: #1a1611;      /* counter wood */
  --ink: #f4ede1;           /* paper-lantern light */
  --ink-dim: #a89a87;       /* cigarette smoke */
  --lantern: #ff8a3d;       /* the amber glow */
  --aka: #e6432e;           /* red chochin */
  --line: #2c261e;          /* alley shadow */
  --line-strong: #3a3226;
  --glow: rgb(255 138 61 / 0.35);
  --scrim: rgb(16 14 11 / 0.72);
  --font-display: "Bebas Neue", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: -apple-system, "Helvetica Neue", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", Meiryo, sans-serif;
  --header-h: 3.5rem;
  --chips-h: 3.5rem;
  --gutter: 1.25rem;
  --r: 0.875rem;
  color-scheme: dark;
}

/* ----------------------------------------------------------------- reset */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: clip;
}

h1, h2, h3, p, dl, dd, figure { margin: 0; }
img { max-width: 100%; }
button { font: inherit; }

::selection { background: rgb(230 67 46 / 0.5); color: #fff; }

a { color: var(--lantern); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: #ffa76b; }

:focus-visible {
  outline: 2px solid var(--lantern);
  outline-offset: 2px;
  border-radius: 2px;
}

main {
  max-width: 42.5rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --------------------------------------------------- header + wordmark */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: rgb(16 14 11 / 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  color: var(--ink);
}
.wordmark:hover { color: var(--ink); }
.wordmark-latin {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wordmark-ja {
  display: block;
  font-size: 0.5625rem;
  color: var(--lantern);
  letter-spacing: 0.5em;
  text-align-last: justify;
  margin-top: 0.1875rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-dim);
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }
.site-nav .lang-toggle {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  color: var(--ink);
}
.site-nav .lang-toggle:hover { border-color: var(--lantern); color: var(--lantern); }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding: 3.25rem 0 2.25rem;
}
.hero::before {          /* lantern light spilling from above + one far-off red chochin */
  content: "";
  position: absolute;
  inset: -3.5rem -40vw auto;
  height: 26rem;
  background:
    radial-gradient(ellipse 46% 62% at 38% 0%, rgb(255 138 61 / 0.14), transparent 70%),
    radial-gradient(circle 5.5rem at 78% 24%, rgb(230 67 46 / 0.1), transparent 100%);
  pointer-events: none;
  z-index: -1;
}
.hero h1 {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 15vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}
.hero h1 > span { display: block; }
.hero h1 > span + span { margin-top: 0.625rem; }
.hero-ja {
  font-family: var(--font-body);
  font-size: clamp(1rem, 3.2vw, 1.375rem);
  line-height: 1;
  color: var(--lantern);
  letter-spacing: 0.5em;
  text-align-last: justify;
}
.tagline {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.55;
}
.subtag {
  margin-top: 0.625rem;
  max-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-dim);
}

/* ----------------------------------------------------------------- chips */

.chips {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  display: flex;
  gap: 0.5rem;
  height: var(--chips-h);
  align-items: center;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  background: rgb(16 14 11 / 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.125rem, #000 calc(100% - 1.5rem), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 1.125rem, #000 calc(100% - 1.5rem), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chips-tags {
  top: calc(var(--header-h) + var(--chips-h));
  border-bottom: 1px solid var(--line);
}

.chip {
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding: 0 1.0625rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-raise);
  color: var(--ink-dim);
  font-size: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease,
    border-color 160ms ease, box-shadow 160ms ease;
}
.chip:hover { color: var(--ink); border-color: var(--ink-dim); }
.chip.is-active {         /* the chip lights up */
  background: var(--lantern);
  border-color: var(--lantern);
  color: #1c1006;
  font-weight: 700;
  box-shadow: 0 0 16px var(--glow);
}

/* ----------------------------------------------------------------- cards */

.cards { padding: 0.75rem 0 1rem; }

.card::before {           /* the michi: a stretch of road before every stop */
  content: "";
  display: block;
  width: 2px;
  height: 2.375rem;
  margin: 0 auto 2.375rem;
  background: repeating-linear-gradient(180deg,
    var(--line-strong) 0 0.375rem, transparent 0.375rem 0.8125rem);
}
.card.is-hidden { display: none; }

.card > a {
  display: block;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 180ms ease, transform 180ms ease;
}
.card > a:active { transform: scale(0.99); }
.card > a:hover { border-color: var(--line-strong); }
.card > a:hover h2 { color: var(--lantern); }

.card img,
.card-noimg {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.card img { background: var(--bg-raise); }

.card-noimg {             /* no photo yet: hang a chochin instead */
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--ink);
  text-shadow: 0 0 14px rgb(0 0 0 / 0.5);
  background:
    radial-gradient(circle 4.375rem at 50% 44%, #d6402c 62%, #8e2417 78%, transparent 79%),
    radial-gradient(circle 7rem at 50% 44%, rgb(230 67 46 / 0.35), transparent 70%),
    radial-gradient(ellipse 90% 90% at 50% 110%, #17130e, var(--bg) 80%);
}

.card-body {
  position: relative;
  margin-top: -4.25rem;
  padding: 1.125rem 1.125rem 1.375rem;
  background: linear-gradient(180deg,
    rgb(16 14 11 / 0) 0, var(--scrim) 1.9rem, var(--bg-raise) 4.25rem);
}
.card-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.65);
  transition: color 160ms ease;
}
.card-ja {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  text-transform: none;
  margin-left: 0.25rem;
}
.card-meta {
  margin-top: 0.4375rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.6);
}
.card-area { color: var(--lantern); font-weight: 700; }
.card-yen { color: var(--ink); }
.card-hook {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #d9cfbf;
}

/* soft funnel: the last stop on the road */
.funnel-card {
  position: relative;
  margin-top: 4.75rem;
  padding: 1.375rem 1.25rem 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.funnel-card::before {    /* its stretch of road sits above the box, not inside */
  position: absolute;
  top: -4.75rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}
.funnel-card strong { color: var(--ink); }
.funnel-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.5rem;
  padding: 0 1.25rem;
  border: 1px solid rgb(255 138 61 / 0.45);
  border-radius: 999px;
  color: var(--lantern);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.funnel-link:hover {
  color: var(--lantern);
  background: rgb(255 138 61 / 0.08);
  box-shadow: 0 0 16px var(--glow);
}

.empty-state {
  padding: 4.5rem 0 3rem;
  text-align: center;
  color: var(--ink-dim);
}
.empty-state p { margin-bottom: 0.875rem; }
.empty-ja {
  font-size: 1.25rem;
  letter-spacing: 0.4em;
  color: var(--lantern);
}

/* ------------------------------------------------------------- spot page */

.spot { padding-top: 1.5rem; }

.closed-banner {
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgb(230 67 46 / 0.45);
  border-radius: 0.625rem;
  background: rgb(230 67 46 / 0.12);
  font-size: 0.9375rem;
}

.spot-photos {
  display: flex;
  gap: 0.5rem;
  margin: 0 calc(-1 * var(--gutter)) 1.75rem;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.spot-photos::-webkit-scrollbar { display: none; }
.spot-photos img {
  flex: 0 0 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r);
  scroll-snap-align: center;
  background: var(--bg-raise);
}
.spot-photos img:not(:only-child) { flex-basis: 88%; }

.spot-head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.375rem, 9vw, 3.25rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.spot-name-ja {
  margin-top: 0.5rem;
  font-size: 1.0625rem;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
}
.spot-meta {
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.cash-badge {
  display: inline-block;
  padding: 0.125rem 0.5625rem;
  border: 1px solid rgb(230 67 46 / 0.55);
  border-radius: 999px;
  background: rgb(230 67 46 / 0.12);
  color: #f2604d;
  font-weight: 700;
}

.spot-blurb { margin-top: 1.75rem; }
.spot-blurb p { margin-bottom: 1.25em; line-height: 1.75; }

.etiquette {
  margin: 1.875rem 0;
  padding: 0.9375rem 1.125rem 1.0625rem;
  border-left: 3px solid var(--lantern);
  border-radius: 0 0.625rem 0.625rem 0;
  background: var(--bg-raise);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.etiquette-label {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lantern);
}

.spot-facts:not(:has(dt)) { display: none; }
.spot-facts {
  display: grid;
  grid-template-columns: 5.75rem 1fr;
  gap: 0.625rem 1rem;
  margin: 2rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spot-facts dt {
  padding-top: 0.1875em;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.spot-facts dd { font-size: 0.9375rem; line-height: 1.6; }

.maps-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 24rem;
  min-height: 3rem;
  padding: 0.625rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--lantern);
  color: #1c1006;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 26px rgb(255 138 61 / 0.28);
  transition: filter 160ms ease, transform 160ms ease;
}
.maps-btn:hover { color: #1c1006; filter: brightness(1.08); }
.maps-btn:active { transform: translateY(1px); }

.backlink { margin-top: 2.5rem; font-size: 0.9375rem; }
.backlink a { color: var(--ink-dim); text-decoration: none; }
.backlink a:hover { color: var(--lantern); }

/* -------------------------------------------- prose (how-to, about) */

.prose {
  max-width: 65ch;
  padding-top: 2.5rem;
}
.prose h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.625rem, 10vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.prose .lede {
  margin-top: 1rem;
  font-size: 1.1875rem;
  line-height: 1.6;
}
.prose h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 1.625rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.prose p { margin-bottom: 1.1em; }
.prose em { font-style: italic; }  /* links own the lantern color */

.glossary dt {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
}
.glossary dt span[lang="ja"] {
  margin-left: 0.4375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--lantern);
}
.glossary dd { margin-top: 0.375rem; color: #ddd3c3; line-height: 1.7; }

.rules {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}
.rules li {
  position: relative;
  margin-bottom: 1.125rem;
  padding-left: 2.625rem;
  counter-increment: rule;
}
.rules li::before {       /* real sequence: rule one is order-a-drink-first */
  content: counter(rule);
  position: absolute;
  left: 0;
  top: 0.0625rem;
  width: 1.75rem;
  font-family: var(--font-display);
  font-size: 1.625rem;
  line-height: 1.1;
  text-align: center;
  color: var(--lantern);
  border-bottom: 2px solid rgb(255 138 61 / 0.35);
}

.phrases {
  width: 100%;
  margin: 0.5rem 0 1rem;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
}
.phrases th {
  padding: 0 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-dim);
}
.phrases td {
  padding: 0.5625rem 0.75rem 0.5625rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.phrases td:first-child { font-weight: 700; }
.phrases td[lang="ja"] { color: var(--ink-dim); white-space: nowrap; }
.phrases td:last-child { color: #d9cfbf; }

.promise { margin: 0; padding-left: 1.25rem; }
.promise li { margin-bottom: 0.75rem; }
.promise li::marker { color: var(--lantern); }

.cta-line { margin-top: 2.75rem; font-size: 1.125rem; }
.cta-line a { font-weight: 700; }

/* ----------------------------------------------------------- error pages */

.error-page {
  padding: 4.5rem 0 3rem;
  text-align: center;
}
.error-page p { margin-bottom: 0.75rem; }
.error-code {
  font-family: var(--font-display);
  font-size: clamp(6.5rem, 30vw, 9.5rem);
  line-height: 1;
  color: var(--lantern);
  text-shadow: 0 0 60px var(--glow);
}
.error-page [lang="ja"] { color: var(--ink-dim); letter-spacing: 0.1em; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  margin-top: 5rem;
  padding: 2.25rem var(--gutter) 3.25rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ink-dim);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.site-footer nav { margin: 0.625rem 0; }
.site-footer a { color: var(--ink-dim); }
.site-footer a:hover { color: var(--lantern); }
.footer-legal { font-size: 0.75rem; }

/* ----------------------------------------------------------------- admin */

.page-admin main { max-width: 46rem; }

.admin-login {
  max-width: 21rem;
  margin: 0 auto;
  padding-top: 3.5rem;
}
.admin-login h1 {
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.admin-login label { display: block; margin-bottom: 1rem; }

.form-error,
.flash {
  margin: 0 0 1rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
}
.form-error {
  border: 1px solid rgb(230 67 46 / 0.45);
  background: rgb(230 67 46 / 0.12);
}
.flash {
  border: 1px solid rgb(255 138 61 / 0.4);
  background: rgb(255 138 61 / 0.08);
}

.admin-list, .admin-form { padding-top: 1.75rem; }
.admin-form h1 { margin-bottom: 1.25rem; font-size: 1.5rem; font-weight: 700; }

.admin-bar {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}
.admin-bar h1 {
  margin-right: auto;
  font-size: 1.5rem;
  font-weight: 700;
}
.admin-logout { font-size: 0.8125rem; color: var(--ink-dim); }

.btn,
.admin-login button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.375rem 1.25rem;
  border: 0;
  border-radius: 0.625rem;
  background: var(--lantern);
  color: #1c1006;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: filter 160ms ease;
}
.btn:hover, .admin-login button:hover { color: #1c1006; filter: brightness(1.08); }
.btn-danger {
  background: transparent;
  border: 1px solid rgb(230 67 46 / 0.55);
  color: #f2604d;
  margin-top: 1.5rem;
}
.btn-danger:hover { color: #f2604d; background: rgb(230 67 46 / 0.1); filter: none; }

.login-divider {
  margin: 1.25rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ink-dim);
}
.btn-google {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-google:hover { background: var(--bg-raise); filter: none; }

.admin-table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th {
  padding: 0.5rem 0.875rem 0.5rem 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-dim);
}
.admin-table td {
  padding: 0.6875rem 0.875rem 0.6875rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-table small { color: var(--ink-dim); }

.badge {
  display: inline-block;
  padding: 0.1875rem 0.625rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-live {             /* the lantern is lit */
  border-color: rgb(255 138 61 / 0.5);
  background: rgb(255 138 61 / 0.1);
  color: var(--lantern);
}
.badge-hidden { color: var(--ink-dim); }
.badge-closed {
  border-color: rgb(230 67 46 / 0.5);
  background: rgb(230 67 46 / 0.1);
  color: #f2604d;
}

.admin-form fieldset {
  margin: 0 0 1.25rem;
  padding: 1rem 1rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.625rem;
}
.admin-form legend {
  padding: 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lantern);
}
.admin-form label {
  display: block;
  margin-bottom: 0.875rem;
  font-size: 0.8125rem;
  color: var(--ink-dim);
}

.admin-form input:not([type="checkbox"]):not([type="file"]),
.admin-form select,
.admin-form textarea,
.admin-login input {
  display: block;
  width: 100%;
  margin-top: 0.3125rem;
  padding: 0.5625rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  background: var(--bg-raise);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;                 /* 16px stops iOS zoom */
  accent-color: var(--lantern);
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-login input:focus { border-color: var(--lantern); }
.admin-form textarea { resize: vertical; line-height: 1.6; }

.admin-form .check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
}
.admin-form .check input {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  accent-color: var(--lantern);
}

.admin-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.admin-photos figure { position: relative; }
.admin-photos img {
  display: block;
  width: 6rem;
  height: 6rem;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
}
.photo-del {
  position: absolute;
  top: -0.4375rem;
  right: -0.4375rem;
  width: 1.625rem;
  height: 1.625rem;
  padding: 0;
  border: 1px solid rgb(230 67 46 / 0.6);
  border-radius: 50%;
  background: var(--bg);
  color: #f2604d;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
}
.photo-del:hover { background: rgb(230 67 46 / 0.2); }

/* ------------------------------------------------------------ breakpoints */

@media (max-width: 23.4rem) {
  /* tiny phones / fallback-font insurance: keep the header on one line */
  .wordmark-latin { font-size: 1.25rem; }
  .site-nav a { padding: 0 0.3125rem; font-size: 0.78125rem; }
  .site-nav .lang-toggle { padding: 0 0.5625rem; }
}

@media (max-width: 39.99rem) {
  .cards { margin: 0 calc(-1 * var(--gutter)); }
  .card > a {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .card-body { padding-inline: var(--gutter); }
  .funnel-card { margin-inline: var(--gutter); }
  .spot-photos img { border-radius: 0.625rem; }
}

@media (min-width: 68.75rem) {
  /* のみみち leaves the lockup and hangs vertical in the margin */
  .hero-ja {
    position: absolute;
    top: 3.5rem;
    right: -5.75rem;
    margin: 0;
    writing-mode: vertical-rl;
    text-align-last: auto;
    font-size: 1.375rem;
    letter-spacing: 0.55em;
    opacity: 0.9;
  }
  .hero h1 > span + span { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .spot-photos { scroll-snap-type: none; }
}
