:root {
  --paper: #f2eee4;
  --paper-2: #e8e2d6;
  --ink: #1d1c1a;
  --muted: #6c685f;
  --line: rgba(29, 28, 26, 0.18);
  --panel: rgba(255, 255, 255, 0.52);
  --aroma: #c96349;
  --rice: #b39538;
  --shubo: #3d7568;
  --radius-lg: 26px;
  --radius-md: 18px;
  --max: 1220px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(29, 28, 26, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 28, 26, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 238, 228, 0.91);
  backdrop-filter: blur(14px);
}

.header-inner,
.hero,
.hub-section,
.start-anywhere,
.sat-exit,
.footer-inner {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.05em;
  background: #fff9ee;
}

.brand-copy {
  min-width: 0;
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 11px;
  letter-spacing: 0.14em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.sat-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}

.hero {
  padding: clamp(68px, 10vw, 132px) 0 clamp(68px, 9vw, 116px);
}

.hero-kicker,
.section-kicker,
.entrance-number,
.experience-type,
.live,
.hero-count,
.route {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-transform: uppercase;
}

.hero-kicker,
.section-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 20px 0 0;
  max-width: 1050px;
  font-size: clamp(3.15rem, 9.5vw, 8.6rem);
  line-height: 0.82;
  letter-spacing: -0.075em;
  font-weight: 950;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-bottom {
  margin-top: clamp(34px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}

.hero-lead {
  max-width: 680px;
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.hero-lead small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.48em;
  font-weight: 650;
  letter-spacing: 0;
}

.hero-count {
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px;
  min-width: 214px;
  padding: 16px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.45);
}

.hero-count strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.hero-count span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.3;
}

.hub-section {
  padding-bottom: clamp(76px, 10vw, 130px);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1.5px solid var(--ink);
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-head p:last-child {
  margin: 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.entrances {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.entrance {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
}

.entrance-head {
  min-height: 170px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--ink);
}

.entrance-aroma .entrance-head {
  background: #ead6cd;
  background: color-mix(in srgb, var(--aroma) 20%, var(--paper));
}

.entrance-rice .entrance-head {
  background: #e6dec0;
  background: color-mix(in srgb, var(--rice) 22%, var(--paper));
}

.entrance-shubo .entrance-head {
  background: #d6dfd8;
  background: color-mix(in srgb, var(--shubo) 18%, var(--paper));
}

.entrance-number {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.entrance-title {
  margin: 28px 0 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.entrance-jp {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 750;
}

.experience-list {
  display: grid;
  gap: 1px;
  flex: 1;
  background: var(--line);
}

.experience-card {
  position: relative;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: #f8f4eb;
  text-decoration: none;
  outline: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.experience-card:hover { background: #fffaf0; }
.experience-card:focus-visible {
  box-shadow: inset 0 0 0 3px var(--ink);
  background: #fffaf0;
}

.experience-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.experience-type,
.live {
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.entrance-aroma .live { color: var(--aroma); }
.entrance-rice .live { color: #887019; }
.entrance-shubo .live { color: var(--shubo); }

.experience-card h3 {
  margin: 24px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.experience-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.experience-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 18px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  background: #ece6da;
  box-shadow: 3px 3px 0 rgba(29, 28, 26, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.experience-card:hover .experience-preview,
.experience-card:focus-visible .experience-preview {
  transform: translateY(-2px);
  box-shadow: 4px 5px 0 rgba(29, 28, 26, 0.16);
}

.preview-labo {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  background: #f3efe3;
}

.preview-labo-name {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  border-right: 1px solid #d1c9ba;
  color: #252032;
}

.preview-labo-name small {
  position: absolute;
  left: 12px;
  top: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
  letter-spacing: .08em;
  color: #766d80;
}

.preview-labo-name strong {
  font-size: clamp(13px, 1.4vw, 18px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.preview-labo-name span {
  margin-top: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  letter-spacing: .05em;
}

.preview-labo-aroma {
  position: relative;
  min-width: 0;
  background: #efe9dc;
}

.preview-labo-aroma img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-labo-aroma small {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 5px;
  background: rgba(243,239,227,.9);
  color: #252032;
  font: 7px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .05em;
}

.preview-match {
  padding: 24px 12px 12px;
  background: #f3efe3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.preview-match-head {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 8px;
  display: flex;
  justify-content: space-between;
  color: #6c6477;
  font: 7px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .08em;
}

.preview-match-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 30px minmax(0,.75fr);
  align-items: center;
  gap: 7px;
  min-height: 38px;
}

.preview-match-row > span {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bcb3c5;
  background: #faf6ed;
  color: #252032;
  font: 8px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.preview-match-row img {
  width: 100%;
  height: 38px;
  object-fit: cover;
  border: 1px solid #bcb3c5;
}

.preview-match-row i {
  position: relative;
  height: 2px;
  background: #6b4fa0;
}

.preview-match-row i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  width: 5px;
  height: 5px;
  border-top: 2px solid #6b4fa0;
  border-right: 2px solid #6b4fa0;
  transform: rotate(45deg);
}

.preview-match-row.is-dim { opacity: .72; }
.preview-match-row.is-dim i {
  height: 0;
  background: transparent;
  border-top: 1px dashed #6b4fa0;
}
.preview-match-row.is-dim i::after { display: none; }

.preview-rice {
  isolation: isolate;
  background:
    linear-gradient(180deg, #140b37 0 32%, #55255c 33% 45%, #d64275 46% 49%, #121428 50% 100%);
}

.rice-preview-hud {
  position: absolute;
  z-index: 8;
  left: 9px;
  top: 8px;
  padding: 4px 6px;
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(12,8,25,.76);
  color: #fff;
  font: 7px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .05em;
}

.rice-preview-sun {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 27%;
  width: 54px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 54px 54px 0 0;
  background: linear-gradient(180deg,#ffec7c,#ff785e);
  box-shadow: 0 0 24px rgba(255,110,105,.55);
}

.rice-preview-field {
  position: absolute;
  z-index: 3;
  bottom: 0;
  width: 43%;
  height: 49%;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, #86e078 0 5px, #1b875a 5px 9px, #d8e774 9px 11px),
    #2f995f;
}

.rice-preview-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 12px, rgba(17,16,34,.45) 12px 14px);
}

.rice-preview-field-left {
  left: 0;
  clip-path: polygon(0 0,100% 25%,83% 100%,0 100%);
}

.rice-preview-field-right {
  right: 0;
  clip-path: polygon(0 25%,100% 0,100% 100%,17% 100%);
}

.rice-preview-road {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 0;
  width: 46%;
  height: 57%;
  transform: translateX(-50%);
  clip-path: polygon(42% 0,58% 0,100% 100%,0 100%);
  background:
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(124,113,255,.55) 18px 20px),
    linear-gradient(90deg, transparent 0 48%, #f8e85a 48% 52%, transparent 52% 100%),
    #14162b;
  box-shadow: 0 0 18px rgba(104,92,255,.46);
}

.rice-preview-gate {
  position: absolute;
  left: 50%;
  top: 28%;
  transform: translateX(-50%);
  padding: 3px 7px;
  border: 1px solid #e5ddff;
  background: #1b1730;
  color: #fff;
  font: 7px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .08em;
}

.rice-preview-car {
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: 18px;
  height: 10px;
  transform: translateX(-50%);
  border: 2px solid #fff;
  background: #ff5d6c;
  box-shadow: 0 0 0 2px #27203e, 0 0 9px rgba(255,93,108,.65);
}

.rice-preview-car::before,
.rice-preview-car::after {
  content: "";
  position: absolute;
  bottom: -5px;
  width: 4px;
  height: 4px;
  background: #0c0d18;
}

.rice-preview-car::before { left: 0; }
.rice-preview-car::after { right: 0; }

.preview-image {
  background: #181818;
}

.preview-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.preview-shubo img { object-position: center 34%; }
.preview-clash img { object-position: center 32%; }

.preview-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(17,17,17,.02), rgba(17,17,17,0) 55%, rgba(17,17,17,.23));
}

.preview-image-tag {
  position: absolute;
  z-index: 2;
  left: 8px;
  top: 8px;
  padding: 4px 5px;
  background: rgba(13,9,20,.72);
  color: #fff;
  font: 7px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .08em;
}

.card-foot {
  min-height: 44px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.card-arrow {
  font-size: 20px;
  line-height: 1;
  transition: transform 160ms ease;
}

.experience-card:hover .card-arrow,
.experience-card:focus-visible .card-arrow { transform: translateX(4px); }

.route {
  margin-top: 22px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.11em;
  line-height: 1.6;
}

.start-anywhere {
  padding: clamp(50px, 8vw, 88px) 0;
  border-top: 1.5px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 38px;
  align-items: start;
}

.start-anywhere h2 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: .92;
  letter-spacing: -0.06em;
}

.start-anywhere p {
  margin: 4px 0 0;
  max-width: 620px;
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  line-height: 1.75;
  font-weight: 720;
}

.sat-exit {
  padding: 0 0 clamp(66px, 9vw, 110px);
}

.sat-exit a {
  min-height: 160px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #f7f3e9;
  text-decoration: none;
}

.sat-exit small {
  display: block;
  color: rgba(255,255,255,.6);
  font-size: 10px;
  letter-spacing: .13em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.sat-exit strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: .95;
  letter-spacing: -.055em;
}

.sat-exit .exit-arrow { font-size: clamp(2rem, 5vw, 4rem); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 34px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
}

@media (max-width: 900px) {
  .entrances { grid-template-columns: 1fr; }
  .entrance-head { min-height: 140px; }
  .experience-card { min-height: 0; }
  .start-anywhere { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .header-inner,
  .hero,
  .hub-section,
  .start-anywhere,
  .sat-exit,
  .footer-inner { width: min(calc(100% - 24px), var(--max)); }

  .site-header { position: static; }
  .header-inner { min-height: 62px; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .brand-copy strong { font-size: 10px; }
  .brand-copy small { display: none; }
  .sat-link { font-size: 9px; }

  .hero { padding-top: 58px; }
  .hero h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .hero-bottom { grid-template-columns: 1fr; gap: 26px; }
  .hero-count { width: 100%; min-width: 0; }

  .section-head { display: block; }
  .section-head p:last-child { margin-top: 18px; }

  .entrance-head { padding: 20px; }
  .experience-card { padding: 20px; }
  .experience-card h3 { font-size: 2rem; }
  .experience-preview { margin-top: 16px; }

  .preview-labo-name { padding: 9px; }
  .preview-labo-name small { left: 9px; top: 8px; font-size: 6px; }
  .preview-labo-name strong { font-size: 13px; }
  .preview-labo-name span { font-size: 7px; }
  .preview-labo-aroma small { left: 6px; bottom: 6px; font-size: 6px; }

  .preview-match { padding: 21px 9px 9px; gap: 7px; }
  .preview-match-head { left: 9px; right: 9px; top: 7px; font-size: 6px; }
  .preview-match-row { grid-template-columns: minmax(0,1fr) 24px minmax(0,.75fr); gap: 5px; min-height: 31px; }
  .preview-match-row > span,
  .preview-match-row img { height: 31px; }

  .start-anywhere { gap: 22px; }
  .sat-exit a { min-height: 150px; grid-template-columns: 1fr auto; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

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