:root {
  color-scheme: light;
  --ink: #302821;
  --brown: #6f3729;
  --brown-dark: #4b241d;
  --cream: #f7f1e7;
  --paper: #fffdf9;
  --gold: #b88438;
  --muted: #786d63;
  --line: #ded3c5;
  --green: #496852;
  --shadow: 0 18px 50px rgba(70, 45, 30, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  min-height: 315px;
  color: var(--brown-dark);
  background-color: #f6e7cb;
  background-image: url("./assets/hero-retro-landscape.png");
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .11;
  background-image: radial-gradient(rgba(75,36,29,.55) .55px, transparent .55px);
  background-size: 7px 7px;
}

.nav, .hero-inner, .news-section, .status-section, .guide-section, footer {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  border-bottom: 1px solid rgba(75,36,29,.18);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .17em;
}

.brand-mark {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(75,36,29,.55);
  border-radius: 50%;
  font-family: "Shippori Mincho", serif;
  font-size: .72rem;
  letter-spacing: 0;
}

.view-only {
  padding: 6px 12px;
  color: var(--brown-dark);
  background: rgba(255,250,242,.48);
  border: 1px solid rgba(75,36,29,.22);
  border-radius: 99px;
  font-size: .75rem;
  letter-spacing: .08em;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 44px;
  align-items: center;
  padding-block: 24px 32px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
}

.hero .eyebrow { color: #a95d24; }
h1, h2, h3 { margin-top: 0; font-family: "Shippori Mincho", serif; }
h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
  line-height: 1.25;
  letter-spacing: .04em;
}

.lead {
  max-width: 650px;
  margin: 0;
  color: rgba(75,36,29,.82);
  font-size: .94rem;
}

.hero-side {
  justify-self: end;
  width: min(100%, 285px);
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 27px;
  color: var(--brown-dark);
  background: #fffaf2;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.primary-action:hover { transform: translateY(-2px); background: #fff; }

.hero-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 15px 16px;
  color: var(--brown-dark);
  background: rgba(255,250,242,.72);
  border: 1px solid rgba(75,36,29,.2);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}
.note-icon {
  display: grid;
  flex: 0 0 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(75,36,29,.4);
  border-radius: 50%;
  font-family: serif;
}
.hero-note strong { font-size: .82rem; }
.hero-note p { margin: 4px 0 0; color: rgba(75,36,29,.72); font-size: .82rem; }

.news-section {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  padding-block: 42px;
  border-bottom: 1px solid var(--line);
}
.news-label .eyebrow { margin-bottom: 5px; color: #c96a2d; }
.news-label h2 { font-size: 1.55rem; }
.news-content {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 22px;
  align-items: start;
  padding: 19px 22px;
  background: var(--cream);
  border-left: 4px solid #c96a2d;
  border-radius: 0 8px 8px 0;
}
.news-content time { color: #9a5f2f; font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.news-content strong { color: var(--brown-dark); font-size: .95rem; }
.news-content p { margin: 5px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.8; }
.news-content.news-empty { display: block; }
.news-content.news-empty p { margin: 0; }

.status-section { padding-block: 70px 105px; }
.section-heading {
  display: flex;
  gap: 30px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 38px;
}
h2 { margin-bottom: 0; font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.35; }
.last-updated { margin: 0 0 8px; color: var(--muted); font-size: .84rem; }
.last-updated strong { color: var(--ink); font-weight: 600; }

.controls {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  padding: 17px;
  background: var(--cream);
  border-radius: 8px;
}
.search-box { position: relative; flex: 1 1 310px; }
.search-box svg {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  transform: translateY(-50%);
}
.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px 0 47px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
}
.search-box input:focus { border-color: var(--brown); box-shadow: 0 0 0 3px rgba(111,55,41,.1); }
.filter-row { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-button {
  min-height: 42px;
  padding: 0 15px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: .82rem;
  white-space: nowrap;
}
.filter-button[aria-pressed="true"] { color: #fff; background: var(--brown); }
.filter-button:focus-visible, .reset-button:focus-visible, summary:focus-visible, .contact-link:focus-visible, a:focus-visible {
  outline: 3px solid rgba(184,132,56,.45);
  outline-offset: 3px;
}

.result-summary {
  display: flex;
  justify-content: space-between;
  min-height: 32px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: .79rem;
}
.reset-button {
  padding: 0;
  color: var(--brown);
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.status-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: card-in .45s both;
  animation-delay: var(--delay);
}
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } }
.card-header { display: flex; gap: 15px; align-items: flex-start; justify-content: space-between; }
.card-header h3 { margin-bottom: 0; font-size: 1.18rem; line-height: 1.55; }
.status-badge {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
}
.status-ready { color: var(--green); background: #eaf1eb; }
.status-making { color: #805727; background: #f6ecd9; }
.status-checking { color: #6f657c; background: #eeeaf2; }
.order-period {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 12px 14px;
  color: var(--muted);
  background: var(--cream);
  border-radius: 4px;
  font-size: .78rem;
}
.order-period strong { color: var(--ink); font-weight: 600; }
.schedule-label { margin: 22px 0 2px; color: var(--muted); font-size: .75rem; }
.schedule { margin: 0; color: var(--brown); font-size: 1.35rem; font-weight: 700; line-height: 1.5; }
.updated { margin: 10px 0 0; color: var(--muted); font-size: .75rem; }
.card-details { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); }
.card-details summary { color: var(--ink); font-size: .84rem; font-weight: 600; cursor: pointer; }
.card-details summary::marker { color: var(--gold); }
.card-details ul { margin: 14px 0 0; padding-left: 1.2em; color: var(--muted); font-size: .82rem; }
.card-details li + li { margin-top: 6px; }
.empty-state { padding: 60px 20px; text-align: center; background: var(--cream); border-radius: 8px; }
.empty-state button { color: #fff; background: var(--brown); border: 0; border-radius: 4px; padding: 10px 18px; }

.guide-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 100px;
  padding-block: 85px;
  border-top: 1px solid var(--line);
}
.guide-copy > p:last-child { max-width: 430px; margin: 23px 0 0; color: var(--muted); }
.guide-points > div { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.guide-points > div:first-child { border-top: 1px solid var(--line); }
.guide-points span { color: var(--gold); font-family: "Shippori Mincho", serif; }
.guide-points p { margin: 0; font-size: .9rem; }
.guide-points strong { color: var(--brown); }

footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-block: 36px;
  color: #9b8e82;
  border-top: 1px solid var(--line);
  font-size: .72rem;
}
footer strong { color: var(--ink); letter-spacing: .17em; }
footer p { margin: 4px 0 0; }

@media (min-width: 821px) {
  .hero { background-position: center 20%; }
}

@media (max-width: 820px) {
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 42px 52px; }
  .hero-note { max-width: 470px; }
  .hero-side { justify-self: start; }
  .news-section { grid-template-columns: 1fr; gap: 18px; }
  .controls { align-items: stretch; flex-direction: column; }
  .status-grid { grid-template-columns: 1fr; }
  .guide-section { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 560px) {
  .nav, .hero-inner, .news-section, .status-section, .guide-section, footer { width: min(100% - 32px, 1160px); }
  .nav { padding-block: 20px; }
  .brand { font-size: .76rem; }
  .brand-mark { width: 34px; }
  .view-only { padding-inline: 9px; font-size: .68rem; }
  .hero-inner { padding-block: 24px 34px; }
  h1 { font-size: 1.85rem; }
  .lead { font-size: .93rem; }
  .primary-action { width: 100%; }
  .hero-note { padding: 18px; }
  .hero-side { width: 100%; }
  .hero-note { padding: 13px; }
  .hero-note .note-icon { display: none; }
  .hero-note p { font-size: .75rem; line-height: 1.6; }
  .news-section { padding-block: 30px; }
  .news-content { grid-template-columns: 1fr; gap: 5px; padding: 17px 18px; }
  .status-section { padding-block: 72px 82px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .last-updated { margin-top: 14px; }
  .controls { margin-inline: -4px; padding: 12px; }
  .filter-row { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; scrollbar-width: thin; }
  .status-card { padding: 22px 20px; }
  .card-header { display: block; }
  .status-badge { display: inline-block; margin-top: 10px; }
  .schedule-label { margin-top: 24px; }
  .schedule { font-size: 1.18rem; }
  .guide-section { padding-block: 65px; }
  footer { display: block; }
  footer > p { margin-top: 16px; }
}

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