/* ============================================
   RESTAURANT OKONOMIYAKI TEMPLATE
   広島お好み焼き — 鉄板、ソース、キャベツ、卵黄。図で見せる
   ============================================ */

:root {
  /* 色 */
  --teppan: #2b2b2b; /* 鉄板 */
  --teppan-dark: #1d1d1d;
  --sauce: #5a2a17; /* ソース */
  --cabbage: #9bbf4a; /* キャベツ */
  --cabbage-light: #eef4dc;
  --yolk: #f2b632; /* 卵黄 */
  --yolk-light: #fdf1d0;
  --base: #fbf8f1; /* 地 */
  --gray: #5f5a52;
  --line: #e6dfcf;

  --bg: var(--base);
  --text: #2a2622;
  --accent: var(--sauce);
  --nav-bg: var(--teppan);
  --nav-fg: #fff;

  /* 文字 */
  --font-head: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;

  --header-h: 66px;
  --max-w: 1160px;
}

/* ============================================
   BASE — リセットと共通部品
   （ヘッダー・モバイルメニュー・タブ・アコーディオン・出現の動き）
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "palt" 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

h1,
h2,
h3,
h4 {
  font-weight: inherit;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: min(100% - 40px, var(--max-w));
  margin-inline: auto;
}

/* 改行を意味で切るための小さな塊（見出しの中で使う） */
.nb {
  display: inline-block;
}

/* ---------- ヘッダーとモバイルメニュー ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
}

.site-header__inner {
  height: 100%;
  width: min(100% - 32px, var(--header-w, 1240px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav ul {
  display: flex;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 48px;
  height: 48px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-toggle span:nth-child(1) {
  top: 19px;
}

.nav-toggle span:nth-child(2) {
  top: 27px;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 899px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header-h) + 16px) 32px 40px;
    background: var(--nav-bg);
    color: var(--nav-fg);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    padding: 14px 4px;
    font-size: 18px;
  }
}

/* ---------- タブ ---------- */
[role="tabpanel"][hidden] {
  display: none;
}

[role="tabpanel"] {
  animation: panel-in 0.4s ease-out;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- アコーディオン（高さは grid の 0fr→1fr で） ---------- */
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease-out;
}

.acc__panel > div {
  overflow: hidden;
  min-height: 0;
}

.acc.is-open .acc__panel {
  grid-template-rows: 1fr;
}

.acc__icon {
  transition: transform 0.3s ease-out;
}

.acc.is-open .acc__icon {
  transform: rotate(45deg);
}

/* ---------- スクロールで出る（JSが動いたときだけ隠す） ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

.js .reveal[data-delay="1"] {
  transition-delay: 0.1s;
}

.js .reveal[data-delay="2"] {
  transition-delay: 0.2s;
}

.js .reveal[data-delay="3"] {
  transition-delay: 0.3s;
}

/* ヒーローの文字：開いた直後にそっと出る（一度だけ） */
.hero-in {
  animation: hero-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-in[data-delay="1"] {
  animation-delay: 0.12s;
}

.hero-in[data-delay="2"] {
  animation-delay: 0.24s;
}

.hero-in[data-delay="3"] {
  animation-delay: 0.36s;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   全体
   ============================================ */
body {
  font-weight: 500;
}

.section {
  padding: 96px 0;
}

.sec-title {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sec-lead {
  margin-top: 10px;
  color: var(--gray);
}

.note {
  margin-top: 16px;
  font-size: 15px;
  color: var(--gray);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid var(--teppan);
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  background: var(--teppan);
  color: #fff;
}

.btn--sauce {
  background: var(--sauce);
  border-color: var(--sauce);
  color: #fff;
}

.btn--sauce:hover {
  background: #45200f;
}

/* ============================================
   ヘッダー
   ============================================ */
.site-header {
  background: var(--teppan);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__name {
  display: flex;
  flex-direction: column;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.brand__name small {
  font-size: 11px;
  color: var(--yolk);
  font-weight: 700;
}

.site-nav {
  margin-left: auto;
}

.site-nav a {
  font-weight: 700;
  font-size: 15px;
}

.site-nav a:hover {
  color: var(--yolk);
}

.header-tel {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--yolk);
  color: var(--teppan);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 899px) {
  .header-tel {
    display: none;
  }

  .site-nav a {
    font-size: 24px;
    font-weight: 800;
    border-bottom: 1px solid #444;
  }
}

/* ============================================
   Hero：断面図
   ============================================ */
.hero {
  padding: calc(var(--header-h) + 40px) 0 0;
  background: var(--base);
  border-bottom: 14px solid var(--teppan);
}

.hero__inner {
  width: min(100% - 32px, var(--max-w));
  margin-inline: auto;
  display: grid;
  gap: 24px;
}

.hero__label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--cabbage);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.hero__title {
  margin-top: 14px;
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--sauce);
}

.hero__lead {
  margin-top: 18px;
  font-size: 17px;
}

.hero__hours {
  margin-top: 18px;
  display: inline-block;
  padding: 8px 14px;
  background: var(--teppan);
  color: #fff;
  border-radius: 6px;
  font-size: 15px;
}

.layers svg {
  width: 100%;
  height: auto;
}

.lbl path {
  fill: none;
  stroke: var(--teppan);
  stroke-width: 1.5;
}

.lbl text {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 17px;
  fill: var(--teppan);
}

.lbl .lbl__sm {
  font-size: 14px;
  fill: var(--gray);
  font-weight: 700;
}

.layers__legend {
  display: none;
}

@media (max-width: 599px) {
  .lbl {
    display: none;
  }

  .layers svg {
    margin-inline: -18%;
    width: 136%;
    max-width: none;
  }

  .layers {
    overflow: hidden;
  }

  .layers__legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    padding: 0 0 20px;
    font-size: 14px;
    font-weight: 700;
  }
}

@media (min-width: 900px) {
  .layers {
    align-self: center;
  }

  .hero__inner {
    grid-template-columns: 0.75fr 1.25fr;
    align-items: end;
    gap: 32px;
    min-height: calc(100vh - var(--header-h) - 60px);
    min-height: calc(100svh - var(--header-h) - 60px);
  }

  .hero__text {
    align-self: center;
  }
}

/* ============================================
   品書きとお会計のめやす
   ============================================ */
.menu__grid {
  display: grid;
  gap: 32px;
}

.base {
  margin-top: 24px;
  display: grid;
  gap: 8px;
}

.base label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.base label:has(input:checked) {
  border-color: var(--sauce);
  background: var(--yolk-light);
}

.base input,
.tops input {
  width: 20px;
  height: 20px;
  accent-color: var(--sauce);
  flex-shrink: 0;
}

.base__name {
  flex: 1;
  font-weight: 800;
  font-size: 17px;
}

.base__name small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
}

.base__price {
  font-weight: 800;
  white-space: nowrap;
}

.calc {
  background: var(--teppan);
  color: #fff;
  border-radius: 16px;
  padding: 24px 20px;
}

.calc__title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}

.tops {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tops label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 10px;
  background: #3a3a3a;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.25s ease;
}

.tops label:has(input:checked) {
  background: var(--sauce);
}

.tops span {
  flex: 1;
  line-height: 1.3;
}

.tops b {
  color: var(--yolk);
  white-space: nowrap;
}

.tops b::before {
  content: "+";
}

.calc__total {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px dashed #555;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.calc__total span:first-child {
  flex-basis: 100%;
  font-size: 14px;
  color: #ccc;
}

.calc__total strong {
  font-size: 48px;
  font-weight: 800;
  color: var(--yolk);
  line-height: 1;
}

.calc__note {
  margin-top: 10px;
  font-size: 14px;
  color: #bbb;
}

.menu__side h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.side__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 2px dotted var(--line);
}

.side__list b {
  white-space: nowrap;
}

.menu__photo img {
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
  border-radius: 16px;
}

.menu__photo figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--gray);
}

@media (min-width: 900px) {
  .menu__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 56px;
  }
}

/* ============================================
   焼き方（横スクロールのカード）
   ============================================ */
.yakikata {
  background: var(--cabbage-light);
}

.steps {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px max(20px, calc((100vw - var(--max-w)) / 2)) 20px;
}

.step {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px;
  border: 2px solid var(--cabbage);
}

.step__n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sauce);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.step h3 {
  margin: 12px 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.step p {
  font-size: 15px;
  color: var(--gray);
}

.yakikata__photos {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.yakikata__photos img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
}

/* ============================================
   お席
   ============================================ */
.seki__grid {
  display: grid;
  gap: 40px;
}

.seki__cards {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.seki__card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 2px 14px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border-radius: 14px;
  border: 2px solid var(--line);
}

.seki__card b {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--yolk);
  font-size: 28px;
  font-weight: 800;
}

.seki__card span {
  font-weight: 800;
  font-size: 17px;
}

.seki__card p {
  font-size: 15px;
  color: var(--gray);
}

.seki__photo img {
  width: 100%;
  aspect-ratio: 9 / 10;
  object-fit: cover;
  border-radius: 16px;
}

@media (min-width: 900px) {
  .seki__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: center;
  }
}

/* ============================================
   お子さまと持ち帰り
   ============================================ */
.kids {
  padding-top: 0;
}

.kids__grid {
  display: grid;
  gap: 16px;
}

.kids__card,
.takeout {
  border-radius: 18px;
  padding: 28px 24px;
}

.kids__card {
  background: var(--yolk-light);
}

.kids__card h2,
.takeout h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
}

.check li {
  position: relative;
  padding: 8px 0 8px 32px;
}

.check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--cabbage);
  border-bottom: 3px solid var(--cabbage);
  transform: rotate(-45deg);
}

.takeout {
  background: var(--sauce);
  color: #fff;
}

.takeout__ex {
  margin: 14px 0 20px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}

.takeout .btn--sauce {
  background: var(--yolk);
  border-color: var(--yolk);
  color: var(--teppan);
}

@media (min-width: 900px) {
  .kids__grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* ============================================
   広島の街
   ============================================ */
.machi {
  background: var(--teppan);
  padding: 48px 0;
}

.machi__inner {
  width: min(100% - 32px, var(--max-w));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.machi img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.machi figcaption {
  margin-top: 6px;
  color: #ddd;
  font-size: 14px;
}

/* ============================================
   お店のこと
   ============================================ */
.access__grid {
  display: grid;
  gap: 40px;
}

.news {
  margin: 20px 0;
  padding: 12px 16px;
  background: var(--cabbage-light);
  border-radius: 12px;
}

.news li {
  padding: 6px 0;
  font-size: 15px;
}

.news time {
  font-weight: 800;
  color: var(--sauce);
  margin-right: 10px;
}

.access__dl div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 2px dotted var(--line);
  font-size: 15px;
}

.access__dl dt {
  font-weight: 800;
}

.btns {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.access__map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  border-radius: 16px;
}

@media (max-width: 599px) {
  .btn {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .access__grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

/* ============================================
   フッター
   ============================================ */
.site-footer {
  background: var(--teppan);
  color: #ccc;
  padding: 40px 0;
  font-size: 14px;
}

.site-footer__inner {
  display: grid;
  gap: 6px;
}

.site-footer__name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
  }
}
