/* ============================================
   RESTAURANT CHUKA TEMPLATE
   町中華 — 白いタイル、朱と翡翠緑、看板のような大きな文字
   ============================================ */

:root {
  /* 色 */
  --shu: #cf3326; /* 朱 */
  --shu-dark: #a8261b;
  --cream: #f6efdf; /* クリーム（地） */
  --tile: #ffffff;
  --meji: #e3dccb; /* タイルの目地 */
  --hisui: #2e7a62; /* 翡翠 */
  --karashi: #e9b434;
  --kuro: #1c1a17;
  --gray: #5f5a50;

  --bg: var(--cream);
  --text: var(--kuro);
  --accent: var(--shu);
  --nav-bg: var(--shu);
  --nav-fg: #fff;

  /* 文字 */
  --font-head: "Dela Gothic One", "Hiragino Sans", sans-serif;
  --font-body: "BIZ UDPGothic", "Hiragino Sans", sans-serif;

  --header-h: 64px;
  --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;
  }
}

/* ============================================
   全体
   ============================================ */
.section {
  padding: 96px 0;
}

.sec-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.sec-head p {
  color: var(--gray);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn--red {
  background: var(--shu);
  color: #fff;
}

.btn--red:hover {
  background: var(--shu-dark);
}

/* ============================================
   ヘッダー
   ============================================ */
.site-header {
  background: var(--shu);
  color: #fff;
  border-bottom: 4px solid var(--karashi);
}

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

.brand__circle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--karashi);
  color: var(--shu);
  font-family: var(--font-head);
  font-size: 20px;
}

.brand__name {
  font-family: var(--font-head);
  font-size: 24px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

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

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

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

.header-tel {
  padding: 8px 14px;
  background: #fff;
  color: var(--shu);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  font-size: 15px;
}

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

  .site-nav a {
    font-family: var(--font-head);
    font-size: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }
}

/* ============================================
   Hero：写真なし、文字だけの大組み（白いタイル）
   ============================================ */
.hero {
  padding: calc(var(--header-h) + 48px) 0 64px;
  background-color: var(--tile);
  background-image: linear-gradient(var(--meji) 2px, transparent 2px),
    linear-gradient(90deg, var(--meji) 2px, transparent 2px);
  background-size: 48px 48px;
  border-bottom: 10px solid var(--hisui);
}

.hero__inner {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}

.hero__since {
  display: inline-block;
  padding: 4px 14px;
  background: var(--kuro);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
}

.hero__title {
  margin-top: 20px;
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.02;
}

.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.18em;
}

.hero__word {
  font-size: clamp(64px, 15vw, 196px);
  letter-spacing: -0.01em;
}

.hero__word--red {
  color: var(--shu);
}

.hero__word--green {
  color: var(--hisui);
}

.hero__name {
  align-self: center;
  writing-mode: vertical-rl;
  padding: 10px 6px;
  background: var(--shu);
  color: #fff;
  font-size: clamp(18px, 2.4vw, 32px);
  letter-spacing: 0.16em;
  margin-left: 0.2em;
}

.hero__lead {
  margin-top: 28px;
  font-family: var(--font-head);
  font-size: clamp(20px, 2.6vw, 30px);
}

.hero__info {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__info li {
  background: var(--cream);
  border: 2px solid var(--kuro);
  padding: 6px 14px;
  font-weight: 700;
}

.hero__info b {
  color: var(--shu);
  margin-right: 8px;
}

/* ============================================
   日替わり定食
   ============================================ */
.higawari__grid {
  display: grid;
  gap: 32px;
}

.higawari__card {
  background: var(--shu);
  color: #fff;
  padding: 32px 28px;
  border-radius: 6px;
  position: relative;
}

.higawari__label {
  font-weight: 700;
  color: var(--karashi);
}

.higawari__dish {
  margin-top: 10px;
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.3;
}

.higawari__price {
  margin-top: 16px;
  font-weight: 700;
}

.higawari__price strong {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 400;
  margin-right: 4px;
}

.higawari__price small {
  display: block;
  font-size: 14px;
  font-weight: 400;
}

.higawari__note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.week__title {
  font-family: var(--font-head);
  font-size: 22px;
  margin-bottom: 12px;
}

.week__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 8px;
  border-bottom: 2px dotted var(--meji);
  font-weight: 700;
}

.week__list span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--kuro);
  font-size: 15px;
  flex-shrink: 0;
}

.week__list li.is-today {
  background: #fff;
  color: var(--shu);
}

.week__list li.is-today span {
  background: var(--shu);
  border-color: var(--shu);
  color: #fff;
}

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

/* ============================================
   壁の品書き
   ============================================ */
.oshinagaki {
  background: var(--hisui);
  color: #fff;
}

.oshinagaki .sec-head p {
  color: #cfe3da;
}

.board {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}

.board__col {
  background: var(--cream);
  color: var(--kuro);
  padding: 20px 20px 16px;
  border-radius: 4px;
}

.board__cat {
  margin: -20px -20px 12px;
  padding: 10px 20px;
  background: var(--kuro);
  color: #fff;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 400;
  border-radius: 4px 4px 0 0;
}

.board li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--meji);
  font-weight: 700;
}

.board i,
.dish i {
  font-style: normal;
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 4px;
  background: var(--shu);
  color: #fff;
  font-size: 13px;
  border-radius: 3px;
  flex-shrink: 0;
}

.board b {
  margin-left: auto;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 18px;
  white-space: nowrap;
}

.board__col--teishoku {
  background: var(--karashi);
}

.board__col--teishoku li {
  border-bottom-color: rgba(28, 26, 23, 0.25);
}

.board__memo {
  margin-top: 12px;
  font-size: 14px;
}

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

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

.dish figcaption {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .board {
    grid-template-columns: 1fr 1fr;
  }

  .dishes {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1100px) {
  .board {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   鍋をふる
   ============================================ */
.wok {
  position: relative;
  background: var(--kuro);
  color: #fff;
}

.wok__photo img {
  width: 100%;
  height: clamp(280px, 48vw, 600px);
  object-fit: cover;
  opacity: 0.8;
}

.wok__text {
  padding: 32px 0 48px;
}

.wok__big {
  font-family: var(--font-head);
  font-size: clamp(34px, 6vw, 72px);
  color: var(--karashi);
  line-height: 1.2;
  margin-bottom: 12px;
}

@media (min-width: 900px) {
  .wok__text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 40px;
    padding: 0;
    max-width: var(--max-w);
  }

  .wok__text p:last-child {
    max-width: 28em;
  }
}

/* ============================================
   持ち帰り餃子
   ============================================ */
.gyoza__grid {
  display: grid;
  gap: 36px;
}

.gyoza__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 10px solid #fff;
  box-shadow: 0 0 0 3px var(--shu);
}

.takeout {
  margin: 24px 0 16px;
  max-width: 440px;
  background: #fff;
}

.takeout th,
.takeout td {
  padding: 12px 14px;
  border: 2px solid var(--kuro);
  text-align: center;
  font-weight: 700;
}

.takeout thead th {
  background: var(--kuro);
  color: #fff;
}

.takeout td {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 18px;
}

.gyoza__note {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 8px;
}

.gyoza .btn {
  margin-top: 16px;
}

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

@media (min-width: 900px) {
  .gyoza__grid {
    grid-template-columns: 0.9fr 1fr;
    gap: 72px;
    align-items: center;
  }
}

/* ============================================
   三代目
   ============================================ */
.sandaime {
  background: var(--tile);
  border-top: 10px solid var(--shu);
}

.sandaime__grid {
  display: grid;
  gap: 40px;
}

.sandaime__years p {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 2px solid var(--kuro);
  font-weight: 700;
}

.sandaime__years b {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 30px;
  color: var(--shu);
}

.sandaime__text p + p {
  margin-top: 16px;
}

.sign {
  text-align: right;
  font-weight: 700;
}

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

/* ============================================
   店のこと
   ============================================ */
.access__grid {
  margin-top: 16px;
  display: grid;
  gap: 40px;
}

.seats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.seats p {
  background: var(--shu);
  color: #fff;
  text-align: center;
  padding: 12px 4px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 4px;
}

.seats b {
  display: block;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.2;
}

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

.access__dl dt {
  font-weight: 700;
  color: var(--shu);
}

.news__list {
  margin-top: 24px;
  background: #fff;
  padding: 8px 16px;
  border-left: 6px solid var(--karashi);
}

.news__list li {
  padding: 10px 0;
  font-size: 15px;
}

.news__list li + li {
  border-top: 1px dashed var(--meji);
}

.news__list time {
  font-weight: 700;
  color: var(--hisui);
  margin-right: 10px;
}

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

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

/* ============================================
   フッター
   ============================================ */
.site-footer {
  background: var(--kuro);
  color: #cfc9bc;
  padding: 40px 0;
  font-size: 14px;
  border-top: 10px solid var(--shu);
}

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

.site-footer__name {
  font-family: var(--font-head);
  font-size: 22px;
  color: #fff;
}

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