/*
 * 田中の中華そば
 * 視覚トーン参照: jp.marugame.com
 *  - palette: cream #f2eee6 / paper #fbf7ef / brand #c81432 / ink #44413c
 *  - 240px fixed left sidebar on desktop, bottom navbar on mobile
 *  - Mincho headings (Noto Serif JP) + Gothic body (Noto Sans JP)
 *  - Full-bleed photography, generous vertical spacing, no boxed cards
 */

:root {
  --c-brand: #c81432;
  --c-brand-deep: #a40f26;
  --c-ink: #44413c;
  --c-ink-soft: #6c6962;
  --c-cream: #f2eee6;
  --c-paper: #fbf7ef;
  --c-paper-warm: #fcefce;
  --c-blush: #fbe5db;
  --c-rule: #e5d9c8;
  --c-white: #ffffff;

  --font-mincho:
    "Noto Serif JP", "Shippori Mincho", "Yu Mincho", "YuMincho",
    "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  --font-gothic:
    "Noto Sans JP", "Yu Gothic", "YuGothic", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --font-serif-en: "Lora", "EB Garamond", Georgia, serif;
  --font-cn: "Noto Serif SC", "Source Han Serif SC", serif;

  --sidebar-w: 240px;
  --content-pad: clamp(1.25rem, 4vw, 3rem);
  --max-content: 1080px;

  --fz-display: clamp(1.6rem, 3.4vw, 2.5rem);
  --fz-h1: clamp(1.25rem, 2.2vw, 1.75rem);
  --fz-h2: clamp(1.2rem, 2.4vw, 1.65rem);
  --fz-h3: clamp(1.05rem, 1.9vw, 1.3rem);
  --fz-lead: clamp(1rem, 1.6vw, 1.125rem);
  --fz-body: 1rem;
  --fz-small: 0.8125rem;

  --transition: 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html[lang^="en"] {
  --font-mincho: var(--font-serif-en);
}

html[lang^="zh"] {
  --font-mincho: var(--font-cn);
  --font-gothic: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-gothic);
  font-size: var(--fz-body);
  line-height: 1.85;
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--c-brand);
}

:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-mincho);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--c-ink);
  margin: 0;
}

p {
  margin: 0;
}

/* ============================================================
 *  LAYOUT  ─  fixed sidebar (desktop) + scrollable main
 * ============================================================ */
.t-layout {
  display: flex;
  min-height: 100vh;
  background: var(--c-cream);
}

.t-layout__sidebar {
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  background: var(--c-white);
  border-right: 1px solid var(--c-rule);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.6rem 1.5rem;
  z-index: 20;
}

.t-layout__main {
  flex: 1 1 auto;
  min-width: 0;
}

/* sidebar inner */
.o-sidebar__brand {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 2.4rem;
}

.o-sidebar__name {
  font-family: var(--font-mincho);
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: var(--c-ink);
}

.o-sidebar__name small {
  display: block;
  font-family: var(--font-serif-en);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--c-ink-soft);
  margin-top: 0.25rem;
  text-transform: uppercase;
}

.o-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: auto;
}

.o-sidebar__nav a {
  font-family: var(--font-mincho);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: var(--c-ink);
  position: relative;
  padding: 0.15rem 0;
}

.o-sidebar__nav a small {
  display: block;
  font-family: var(--font-serif-en);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--c-ink-soft);
  margin-top: 0.15rem;
  text-transform: uppercase;
  font-weight: 400;
  font-style: italic;
}

.o-sidebar__nav a.is-active {
  color: var(--c-brand);
}

.o-sidebar__nav a.is-active::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 0.7rem;
  width: 0.6rem;
  height: 1px;
  background: var(--c-brand);
}

.o-sidebar__lang {
  display: flex;
  gap: 0.25rem;
  border-top: 1px solid var(--c-rule);
  padding-top: 1.2rem;
}

.o-sidebar__lang button {
  flex: 1;
  font-family: var(--font-serif-en);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--c-rule);
  color: var(--c-ink-soft);
  padding: 0.55rem 0;
  cursor: pointer;
  transition: var(--transition);
}

.o-sidebar__lang button:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
}

.o-sidebar__lang button[aria-current="true"] {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-white);
}

/* ============================================================
 *  MOBILE  ─  top bar + bottom navbar
 * ============================================================ */
.o-mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 25;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-rule);
  flex-direction: column;
}

.o-mobile-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  gap: 1rem;
}

.o-mobile-header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mincho);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--c-ink);
}

.o-mobile-header__toggle {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.o-mobile-header__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--c-ink);
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
  transform-origin: center;
}

.o-mobile-header__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.o-mobile-header__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.o-mobile-header__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.o-mobile-panel {
  display: none;
  border-top: 1px solid var(--c-rule);
  background: var(--c-white);
  padding: 1rem 1.25rem 1.75rem;
}

.o-mobile-panel.is-open {
  display: block;
}

.o-mobile-panel__nav {
  display: flex;
  flex-direction: column;
}

.o-mobile-panel__nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mincho);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--c-ink);
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--c-rule);
}

.o-mobile-panel__nav a small {
  font-family: var(--font-serif-en);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--c-ink-soft);
  text-transform: uppercase;
  font-style: italic;
  font-weight: 400;
}

.o-mobile-panel__nav a.is-active {
  color: var(--c-brand);
}

.o-mobile-panel__nav a.is-active small {
  color: var(--c-brand);
}

.o-mobile-panel__lang {
  display: flex;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.o-mobile-panel__lang button {
  flex: 1;
  font-family: var(--font-serif-en);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  background: transparent;
  border: 1px solid var(--c-rule);
  color: var(--c-ink-soft);
  padding: 0.6rem 0;
  cursor: pointer;
  text-transform: uppercase;
}

.o-mobile-panel__lang button[aria-current="true"] {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-white);
}

@media (max-width: 1024px) {
  .t-layout {
    flex-direction: column;
  }
  .t-layout__sidebar {
    display: none;
  }
  .o-mobile-header {
    display: flex;
  }
}

/* ============================================================
 *  HERO  ─  full-bleed photo, mincho overlay
 * ============================================================ */
.o-hero {
  position: relative;
  width: 100%;
  height: clamp(520px, 88vh, 920px);
  overflow: hidden;
  background: var(--c-paper);
}

.o-hero__media {
  position: absolute;
  inset: 0;
}

.o-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.o-hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(2.5rem, 7vh, 6rem);
  padding: 0 var(--content-pad);
  display: flex;
  justify-content: flex-start;
}

.o-hero__plate {
  max-width: 36rem;
  color: #ffffff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(0, 0, 0, 0.4),
    0 0 36px rgba(0, 0, 0, 0.3);
}

.o-hero__eyebrow {
  font-family: var(--font-serif-en);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  color: inherit;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.o-hero__title {
  font-size: var(--fz-display);
  letter-spacing: 0.06em;
  line-height: 1.25;
  margin: 0;
  color: inherit;
}

.o-hero__lead {
  margin-top: 1.1rem;
  font-family: var(--font-gothic);
  font-size: var(--fz-lead);
  line-height: 1.95;
  color: inherit;
}

@media (max-width: 720px) {
  .o-hero {
    height: 78vh;
    min-height: 560px;
  }
}

/* ============================================================
 *  SECTION SCAFFOLDING
 * ============================================================ */
.o-section {
  padding: clamp(4rem, 9vw, 8rem) 0;
}

.o-section--paper {
  background: var(--c-paper);
}

.o-section--cream {
  background: var(--c-cream);
}

.o-section--white {
  background: var(--c-white);
}

.o-section--blush {
  background: var(--c-blush);
}

.o-content-width {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.a-eyebrow {
  font-family: var(--font-serif-en);
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  color: var(--c-brand);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.a-section-title {
  font-size: var(--fz-h2);
  letter-spacing: 0.05em;
  line-height: 1.4;
  max-width: 22ch;
}

.a-section-title em {
  color: var(--c-brand);
  font-style: normal;
}

.a-section-lead {
  margin-top: 1.6rem;
  max-width: 36rem;
  font-size: var(--fz-lead);
  line-height: 2;
  color: var(--c-ink-soft);
}

/* ============================================================
 *  STATEMENT BLOCK (mincho 3-line + body)
 * ============================================================ */
.o-statement {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.o-statement__title {
  font-size: var(--fz-h1);
  line-height: 1.7;
  letter-spacing: 0.05em;
  max-width: 22ch;
}

.o-statement__title .accent {
  color: var(--c-brand);
}

.o-statement__body p + p {
  margin-top: 1.1rem;
}

@media (max-width: 900px) {
  .o-statement {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
 *  FULL BLEED IMAGE BAND
 * ============================================================ */
.o-imageband {
  width: 100%;
  height: clamp(320px, 55vh, 620px);
  overflow: hidden;
  background: var(--c-cream);
}

.o-imageband img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
 *  FEATURE TILES (homepage cross links)
 * ============================================================ */
.o-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
}

.o-feature-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .o-feature-grid,
  .o-feature-grid--three {
    grid-template-columns: 1fr;
  }
}

.o-feature {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.o-feature__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-cream);
}

.o-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.o-feature:hover .o-feature__media img {
  transform: scale(1.04);
}

.o-feature__eyebrow {
  font-family: var(--font-serif-en);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--c-brand);
  text-transform: uppercase;
  font-style: italic;
}

.o-feature__title {
  font-size: var(--fz-h3);
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.o-feature__copy {
  font-size: 0.95rem;
  line-height: 1.95;
  color: var(--c-ink-soft);
}

.o-feature__more {
  margin-top: auto;
  font-family: var(--font-serif-en);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-brand);
  border-bottom: 1px solid var(--c-brand);
  align-self: flex-start;
  padding-bottom: 0.2rem;
}

/* ============================================================
 *  MENU LIST
 * ============================================================ */
.o-menu {
  display: flex;
  flex-direction: column;
}

.o-menu__group + .o-menu__group {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.o-menu__group-title {
  font-family: var(--font-mincho);
  font-size: var(--fz-h3);
  letter-spacing: 0.18em;
  color: var(--c-brand);
  border-bottom: 1px solid var(--c-brand);
  padding-bottom: 0.6rem;
  margin-bottom: 1.4rem;
}

.o-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.o-menu__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1rem 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px dashed var(--c-rule);
}

.o-menu__name {
  font-family: var(--font-mincho);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.o-menu__price {
  font-family: var(--font-serif-en);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--c-brand);
  white-space: nowrap;
}

.o-menu__desc {
  grid-column: 1 / -1;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--c-ink-soft);
}

.o-menu__note {
  margin-top: 2rem;
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--c-ink-soft);
}

/* ============================================================
 *  ACCESS / INFO TABLE
 * ============================================================ */
.o-access {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 900px) {
  .o-access {
    grid-template-columns: 1fr;
  }
}

.o-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.o-info-table th,
.o-info-table td {
  padding: 1.2rem 0;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid var(--c-rule);
  line-height: 1.85;
}

.o-info-table th {
  width: 8rem;
  font-family: var(--font-mincho);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--c-brand);
}

.o-map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--c-paper);
  overflow: hidden;
  border: 1px solid var(--c-rule);
}

.o-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
 *  CTAs
 * ============================================================ */
.a-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-family: var(--font-mincho);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  background: var(--c-brand);
  color: var(--c-white);
  border: 1px solid var(--c-brand);
  cursor: pointer;
  transition: var(--transition);
}

.a-button:hover {
  background: var(--c-brand-deep);
  border-color: var(--c-brand-deep);
  color: var(--c-white);
}

.a-button--ghost {
  background: transparent;
  color: var(--c-brand);
}

.a-button--ghost:hover {
  background: var(--c-brand);
  color: var(--c-white);
}

.a-button::after {
  content: "→";
  font-family: var(--font-serif-en);
  font-size: 0.85rem;
}

.o-cta-row {
  display: flex;
  gap: 1rem 1.4rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* ============================================================
 *  FOOTER
 * ============================================================ */
.o-footer {
  background: var(--c-ink);
  color: #d6d2c8;
  padding: clamp(3rem, 6vw, 5rem) 0 4rem;
  font-size: 0.85rem;
}

.o-footer a {
  color: #ece8de;
}

.o-footer__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 720px) {
  .o-footer__inner {
    grid-template-columns: 1fr;
  }
}

.o-footer__brand {
  font-family: var(--font-mincho);
  font-size: 1.2rem;
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
}

.o-footer__brand small {
  display: block;
  font-family: var(--font-serif-en);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: #b8b4aa;
  margin-top: 0.4rem;
  text-transform: uppercase;
}

.o-footer__links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-family: var(--font-mincho);
  letter-spacing: 0.18em;
}

.o-footer__copy {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: #9b988e;
  letter-spacing: 0.1em;
}

/* ============================================================
 *  SUBTLE REVEAL
 * ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* horizontal red bar separator */
.a-bar {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--c-brand);
  margin-bottom: 1.2rem;
  vertical-align: middle;
}

/* utility */
.u-mt-lg {
  margin-top: clamp(2rem, 5vw, 4rem);
}
.u-text-center {
  text-align: center;
}
.u-balance {
  text-wrap: balance;
}

/* page-level scroll padding for sticky mobile header */
@media (max-width: 1024px) {
  html {
    scroll-padding-top: 4rem;
  }
}
