/* ============================================
   RESTAURANT IZAKAYA TEMPLATE
   大衆酒場 — 生成りの壁、提灯の赤、短冊と黒板
   ============================================ */

:root {
  /* 色 */
  --kabe: #f3ead6; /* 生成りの壁（地） */
  --kabe-dark: #e8dcc0;
  --aka: #c8321f; /* 提灯の赤 */
  --aka-dark: #a32615;
  --kuro: #1a1a1a;
  --karashi: #e2a520; /* からし */
  --board: #23362c; /* 黒板 */
  --chalk: #f1efe6;
  --line: #d6c9a9;
  --gray: #5e574b;

  --bg: var(--kabe);
  --text: var(--kuro);
  --accent: var(--aka);
  --nav-bg: var(--aka);
  --nav-fg: #fff;

  /* 文字 */
  --font-head: "Zen Kaku Gothic Antique", "Hiragino Sans", sans-serif;
  --font-body: "Zen Kaku Gothic Antique", "Hiragino Sans", sans-serif;
  --font-hand: "Yusei Magic", "Zen Kaku Gothic Antique", sans-serif;

  --header-h: 64px;
  --max-w: 1180px;
}

/* ============================================
   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(26px, 3.6vw, 40px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.sec-title__tag {
  display: inline-block;
  margin-right: 12px;
  padding: 2px 10px;
  background: var(--aka);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  vertical-align: 0.4em;
  letter-spacing: 0.1em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 24px;
  border: 2px solid var(--kuro);
  background: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 4px 4px 0 var(--kuro);
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--kuro);
}

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

.btn--line {
  background: #06c755;
  color: #fff;
}

/* ============================================
   ヘッダー（赤い帯）
   ============================================ */
.site-header {
  background: var(--kuro);
  color: #fff;
}

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

.brand__box {
  display: inline-block;
  padding: 2px 12px 4px;
  background: var(--aka);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.brand__sub {
  font-size: 13px;
  color: var(--karashi);
  letter-spacing: 0.2em;
}

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

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

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

.header-tel {
  padding: 8px 16px;
  background: var(--karashi);
  color: var(--kuro);
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
}

.brand__box,
.brand__sub,
.header-tel {
  white-space: nowrap;
}

@media (max-width: 899px) {
  .header-tel {
    margin-left: auto;
  }

  .brand__sub {
    display: none;
  }

  .nav-toggle {
    margin-left: 4px;
  }

  .site-nav a {
    font-size: 24px;
    font-weight: 900;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }
}

/* ============================================
   Hero：写真グリッド
   ============================================ */
.hero {
  padding-top: var(--header-h);
  background: var(--kuro);
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.g {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
}

.g1 {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 11;
}

.g4,
.g5 {
  display: none;
}

.hero__card {
  grid-column: 1 / -1;
  background: var(--aka);
  color: #fff;
  padding: 32px 24px 36px;
}

.hero__open {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--karashi);
}

.hero__title {
  margin-top: 6px;
}

.hero__name {
  display: block;
  font-size: clamp(56px, 9vw, 104px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.hero__catch {
  display: block;
  margin-top: 8px;
  font-family: var(--font-hand);
  font-size: clamp(22px, 2.6vw, 30px);
}

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

.hero__tel {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 18px;
  background: #fff;
  color: var(--aka);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.06em;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
    grid-template-rows: 300px 300px;
    height: calc(100vh - var(--header-h));
    min-height: 600px;
    max-height: 820px;
    grid-template-rows: 1fr 1fr;
  }

  .g {
    aspect-ratio: auto;
  }

  .g1 {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .g2 {
    grid-column: 2;
    grid-row: 1;
  }

  .g3 {
    grid-column: 3;
    grid-row: 1;
  }

  .g4 {
    display: block;
    grid-column: 4;
    grid-row: 1 / span 2;
  }

  .g5 {
    display: block;
    grid-column: 3;
    grid-row: 2;
  }

  .hero__card {
    grid-column: 2;
    grid-row: 2;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero__name {
    font-size: clamp(44px, 4.4vw, 72px);
    white-space: nowrap;
  }
}

/* ============================================
   今日のおすすめ（黒板）
   ============================================ */
.osusume__grid {
  display: grid;
  gap: 32px;
}

.osusume__head p {
  margin-top: 14px;
  color: var(--gray);
}

.board {
  background: var(--board);
  color: var(--chalk);
  padding: 28px 24px 24px;
  border: 10px solid #6b4a2b;
  font-family: var(--font-hand);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.board__date {
  font-size: 18px;
  color: var(--karashi);
  border-bottom: 1px dashed rgba(241, 239, 230, 0.4);
  padding-bottom: 10px;
}

.board__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 19px;
  border-bottom: 1px dashed rgba(241, 239, 230, 0.18);
}

.board__list li span:last-child {
  white-space: nowrap;
}

.board__list li span:last-child::after {
  content: "円";
  font-size: 14px;
}

.board__list .is-out span {
  text-decoration: line-through;
  text-decoration-color: #f07d6d;
  text-decoration-thickness: 2px;
  opacity: 0.6;
}

.board__note {
  margin-top: 14px;
  font-size: 15px;
  color: #f2a99e;
}

@media (min-width: 900px) {
  .osusume__grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    align-items: center;
  }

  .board {
    transform: rotate(0.6deg);
  }
}

/* ============================================
   壁の短冊（縦書き。スマホは横スクロール）
   ============================================ */
.tanzaku {
  background: var(--kabe-dark);
}

.tanzaku__head p {
  margin-top: 10px;
  color: var(--gray);
}

.tanzaku__wall {
  margin-top: 36px;
  overflow-x: auto;
  padding: 24px 0 28px;
  background: repeating-linear-gradient(90deg, #c9a979 0 2px, #d8bd8f 2px 120px);
  border-top: 8px solid #6b4a2b;
  border-bottom: 8px solid #6b4a2b;
  scroll-snap-type: x proximity;
}

.tanzaku__list {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: max-content;
  min-width: 100%;
  padding: 0 20px;
}

.tanzaku__list li {
  writing-mode: vertical-rl;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  height: 320px;
  width: 54px;
  padding: 18px 0;
  background: #fffaf0;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
  font-family: var(--font-hand);
  font-size: 21px;
  letter-spacing: 0.08em;
  scroll-snap-align: center;
  align-items: center;
}

.tanzaku__list li.is-red {
  background: var(--aka);
  color: #fff;
}

.t-price {
  font-size: 16px;
  color: var(--aka);
}

.is-red .t-price {
  color: var(--karashi);
}

.food {
  margin-top: 48px;
  display: grid;
  gap: 20px;
}

.food__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.food__item figcaption {
  margin-top: 8px;
  font-family: var(--font-hand);
  font-size: 18px;
}

@media (min-width: 768px) {
  .food {
    grid-template-columns: repeat(3, 1fr);
  }

  .food__item:nth-child(2) {
    margin-top: 32px;
  }
}

/* ============================================
   ハッピーアワー
   ============================================ */
.happy {
  background: var(--karashi);
  padding: 64px 0;
}

.happy__time {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.happy__title {
  margin: 6px 0 24px;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
}

.happy__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.happy__list li {
  flex: 1 1 160px;
  background: var(--kuro);
  color: #fff;
  padding: 16px 20px;
  font-weight: 700;
}

.happy__list span {
  display: block;
  font-size: 15px;
  color: var(--karashi);
}

.happy__list strong {
  font-size: 40px;
  font-weight: 900;
  margin-right: 4px;
  line-height: 1.2;
}

.happy__note {
  margin-top: 16px;
  font-size: 14px;
}

/* ============================================
   宴会コース
   ============================================ */
.enkai__lead {
  margin-top: 12px;
  color: var(--gray);
}

.courses {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}

.course {
  background: #fff;
  border: 2px solid var(--kuro);
  padding: 28px 24px;
  position: relative;
}

.course__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 10px;
  border: 1px solid var(--kuro);
}

.course h3 {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 900;
}

.course__price {
  margin: 4px 0 16px;
  color: var(--aka);
  font-weight: 700;
}

.course__price strong {
  font-size: 44px;
  font-weight: 900;
  margin-right: 2px;
}

.course li {
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  font-size: 15px;
}

.course--main {
  background: var(--aka);
  color: #fff;
  border-color: var(--aka);
}

.course--main .course__tag {
  background: var(--karashi);
  color: var(--kuro);
  border-color: var(--karashi);
}

.course--main .course__price {
  color: #fff;
}

.course--main li {
  border-top-color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 900px) {
  .courses {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .course--main {
    margin-top: -16px;
    padding-bottom: 40px;
  }
}

.accs {
  margin-top: 56px;
  max-width: 760px;
}

.accs__title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 12px;
}

.acc {
  border-top: 2px solid var(--kuro);
}

.acc:last-child {
  border-bottom: 2px solid var(--kuro);
}

.acc__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  text-align: left;
  font-weight: 700;
  font-size: 16px;
  min-height: 56px;
}

.acc__icon {
  font-size: 22px;
  color: var(--aka);
  line-height: 1;
}

.acc__panel p {
  padding: 0 4px 18px;
  color: var(--gray);
}

/* ============================================
   店内
   ============================================ */
.tennai {
  background: #fff;
}

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

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

.tennai__photos img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.tennai__photos img:first-child {
  aspect-ratio: auto;
}

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

.seats div {
  background: var(--kabe);
  padding: 14px 8px;
  text-align: center;
}

.seats dt {
  font-size: 14px;
  color: var(--gray);
}

.seats dd {
  font-size: 28px;
  font-weight: 900;
  color: var(--aka);
  line-height: 1.3;
}

.tencho {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  background: var(--kabe);
}

.tencho__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--kuro);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.tencho__name {
  font-weight: 900;
}

.tencho figcaption p:last-child {
  font-family: var(--font-hand);
  font-size: 16px;
  margin-top: 4px;
}

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

/* ============================================
   ご予約
   ============================================ */
.reserve {
  background: var(--kuro);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}

.reserve__title {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 900;
}

.reserve p {
  margin-top: 8px;
  color: #cfc9bc;
}

.reserve__btns {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.reserve .btn {
  color: var(--kuro);
  box-shadow: 4px 4px 0 var(--karashi);
  border-color: #fff;
}

.reserve .btn--red,
.reserve .btn--line {
  color: #fff;
}

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

/* ============================================
   お知らせ・アクセス
   ============================================ */
.news__list {
  margin-top: 24px;
}

.news__list li {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 2px dotted var(--line);
}

.news__list time {
  font-weight: 900;
  color: var(--aka);
  font-size: 15px;
}

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

.access {
  padding-top: 0;
}

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

.access__dl {
  margin-top: 24px;
}

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

.access__dl dt {
  font-weight: 900;
}

.access__map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 4px solid var(--kuro);
}

@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;
}

.site-footer__inner {
  display: grid;
  gap: 10px;
  justify-items: start;
}

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