/* ============================================
   RESTAURANT YAKINIKU TEMPLATE
   焼肉 — 温かい白、オックスブラッド、黒。雑誌のように組む
   ============================================ */

:root {
  /* 色 */
  --paper: #f7f3ee; /* 温かい白（地） */
  --paper-2: #efe8df;
  --blood: #6e1e22; /* オックスブラッド */
  --blood-light: #f0dcd9;
  --kuro: #151314;
  --beige: #c2a878; /* 細線 */
  --gray: #6b6460;
  --line: #ddd2c4;

  --bg: var(--paper);
  --text: var(--kuro);
  --accent: var(--blood);
  --nav-bg: var(--paper);
  --nav-fg: var(--kuro);

  /* 文字 */
  --font-head: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", sans-serif;

  --header-h: 68px;
  --max-w: 1200px;
}

/* ============================================
   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: 104px 0;
}

/* ページ番号つきの見出し（雑誌の扉のように） */
.page-head {
  margin-bottom: 40px;
  padding-top: 14px;
  border-top: 3px solid var(--kuro);
}

.page-head__no {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--blood);
  letter-spacing: 0.1em;
}

.page-head__title {
  margin-top: 4px;
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.page-head__lead {
  margin-top: 12px;
  color: var(--gray);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  border: 1px solid var(--kuro);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
  background: var(--kuro);
  color: var(--paper);
}

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

.btn--blood:hover {
  background: #561519;
}

/* ============================================
   ヘッダー
   ============================================ */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

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

.brand__name {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand__sub {
  font-size: 13px;
  color: var(--gray);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

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

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

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

.header-btn {
  padding: 10px 20px;
  background: var(--blood);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

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

  .header-btn {
    margin-left: auto;
  }

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

  .site-nav a {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 26px;
    border-bottom: 1px solid var(--line);
  }
}

/* ============================================
   Hero：雑誌の表紙
   ============================================ */
.cover {
  padding-top: var(--header-h);
}

.cover__inner {
  position: relative;
  display: grid;
  width: min(100% - 40px, var(--max-w));
  margin-inline: auto;
  padding: 32px 0 56px;
  gap: 28px;
}

.cover__issue {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--kuro);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
}

.cover__issue span:first-child {
  color: var(--blood);
}

.cover__title {
  margin-top: 24px;
  font-family: var(--font-head);
  font-size: clamp(40px, 5.6vw, 84px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.cover__lead {
  margin-top: 20px;
  max-width: 26em;
  color: var(--gray);
}

.cover__toc {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.cover__toc a {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  transition: color 0.3s ease, padding 0.3s ease;
}

.cover__toc a:hover {
  color: var(--blood);
  padding-left: 4px;
}

.cover__toc span {
  min-width: 3em;
  color: var(--blood);
  font-size: 14px;
}

.cover__photo {
  position: relative;
}

.cover__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

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

.cover__side {
  display: none;
}

@media (min-width: 900px) {
  .cover__inner {
    grid-template-columns: 1fr 1.25fr;
    gap: 56px;
    align-items: start;
    padding-right: 40px;
  }

  .cover__photo {
    order: 2;
  }

  .cover__photo img {
    aspect-ratio: 4 / 4.6;
    max-height: calc(100vh - var(--header-h) - 100px);
    min-height: 520px;
  }

  .cover__side {
    display: block;
    position: absolute;
    right: 0;
    top: 32px;
    writing-mode: vertical-rl;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.4em;
    color: var(--blood);
  }
}

/* ============================================
   一頭買いの話
   ============================================ */
.itto {
  background: #fff;
}

.itto__grid {
  display: grid;
  gap: 36px;
}

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

.itto__body {
  color: #3a3537;
}

/* 段落の頭を大きく（ドロップキャップ風） */
.itto__drop::first-letter {
  float: left;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  margin: 4px 10px 0 0;
  color: var(--blood);
}

.itto__nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid var(--kuro);
  border-bottom: 1px solid var(--kuro);
}

.itto__nums div {
  padding: 16px 8px;
}

.itto__nums div + div {
  border-left: 1px solid var(--line);
}

.itto__nums dt {
  font-size: 13px;
  color: var(--gray);
}

.itto__nums dd {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.2;
}

.itto__nums small {
  font-size: 15px;
  margin-left: 2px;
}

.itto__photo img {
  width: 100%;
  aspect-ratio: 14 / 8;
  object-fit: cover;
}

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

  .itto .page-head {
    grid-column: 1 / -1;
  }

  .itto__body {
    column-count: 1;
  }

  .itto__photo {
    grid-column: 1 / -1;
  }
}

/* ============================================
   部位の地図
   ============================================ */
.map__grid {
  display: grid;
  gap: 32px;
}

.cow {
  background: var(--paper-2);
  padding: 20px;
}

.cow__svg {
  width: 100%;
  height: auto;
}

.cow__legs rect {
  fill: #d9cdbf;
}

.cow__ear {
  fill: #d9cdbf;
}

.cow__tail {
  fill: none;
  stroke: #d9cdbf;
  stroke-width: 6;
  stroke-linecap: round;
}

.cow__part {
  fill: #fff;
  stroke: var(--kuro);
  stroke-width: 1.5;
  cursor: pointer;
  transition: fill 0.3s ease;
}

.cow__part:hover {
  fill: var(--blood-light);
}

.cow__part.is-active {
  fill: var(--blood);
}

.cow__eye {
  fill: var(--kuro);
  pointer-events: none;
}

.parts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--kuro);
}

.parts button {
  width: 100%;
  min-height: 48px;
  padding: 10px 4px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s ease;
}

.parts button::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border: 1px solid var(--kuro);
  vertical-align: 1px;
  transition: background-color 0.3s ease;
}

.parts button.is-active {
  color: var(--blood);
}

.parts button.is-active::before {
  background: var(--blood);
  border-color: var(--blood);
}

.part-detail {
  margin-top: 24px;
  padding: 20px;
  background: #fff;
  border-left: 3px solid var(--blood);
}

.part-detail__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 24px;
}

.part-detail__text {
  margin-top: 6px;
  font-size: 15px;
  color: #3a3537;
}

.part-detail__price {
  margin-top: 10px;
  font-weight: 700;
  color: var(--blood);
}

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

/* ============================================
   今週の希少部位
   ============================================ */
.kisho {
  background: var(--kuro);
  color: var(--paper);
}

.kisho .page-head {
  border-top-color: var(--paper);
}

.kisho .page-head__no {
  color: var(--beige);
}

.kisho .page-head__lead {
  color: #b3aba4;
}

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

.kisho__item img {
  width: 100%;
  aspect-ratio: 9 / 7;
  object-fit: cover;
}

.kisho__no {
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 15px;
  color: var(--beige);
}

.kisho__item h3 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 30px;
}

.kisho__item p {
  font-size: 15px;
  color: #cfc8c0;
}

.kisho__price {
  margin-top: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px !important;
  color: var(--paper) !important;
  border-top: 1px solid #3a3537;
  padding-top: 10px;
}

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

  .kisho__item:nth-child(2) {
    margin-top: 56px;
  }
}

/* ============================================
   コース
   ============================================ */
.course__table-wrap {
  overflow-x: auto;
}

.course__table {
  min-width: 320px;
}

.course__table th,
.course__table td {
  padding: 20px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.course__table thead th {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray);
  border-bottom: 1px solid var(--kuro);
}

.course__table tbody th {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  white-space: nowrap;
}

.course__table td {
  font-size: 15px;
  color: #3a3537;
}

.course__table td:last-child {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 22px;
  color: var(--blood);
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 699px) {
  .course__table thead {
    display: none;
  }

  .course__table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .course__table th,
  .course__table td {
    border: 0;
    padding: 4px 0;
  }

  .course__table td:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .course__table td:last-child {
    grid-row: 1;
    grid-column: 2;
  }
}

.course__photo {
  margin-top: 48px;
}

.course__photo img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

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

/* ============================================
   品書き
   ============================================ */
.menu {
  background: var(--paper-2);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tabs [role="tab"] {
  min-height: 46px;
  padding: 8px 18px;
  border: 1px solid var(--kuro);
  font-weight: 700;
  font-size: 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tabs [role="tab"][aria-selected="true"] {
  background: var(--kuro);
  color: var(--paper);
}

.menu__panel {
  margin-top: 16px;
  background: #fff;
  padding: 8px 24px;
}

.menu__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-weight: 700;
}

.menu__list li:last-child {
  border-bottom: 0;
}

.menu__list b {
  white-space: nowrap;
  color: var(--blood);
}

/* ============================================
   個室と記念日
   ============================================ */
.koshitsu__grid {
  display: grid;
  gap: 32px;
}

.koshitsu__rooms {
  display: grid;
  gap: 12px;
}

.room {
  padding: 20px;
  border: 1px solid var(--kuro);
  background: #fff;
}

.room__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 22px;
}

.room__cap {
  display: inline-block;
  margin: 2px 0 8px;
  padding: 0 8px;
  background: var(--blood);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.room p:last-child {
  font-size: 15px;
  color: #3a3537;
}

.koshitsu__note h3 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 24px;
  margin-bottom: 8px;
}

.koshitsu__note p {
  color: #3a3537;
}

.koshitsu__photo img {
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
}

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

  .koshitsu .page-head {
    grid-column: 1 / -1;
  }

  .koshitsu__rooms {
    grid-column: 1;
    grid-template-columns: repeat(3, 1fr);
  }

  .koshitsu__note {
    grid-column: 1;
  }

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

/* ============================================
   ご予約・店舗
   ============================================ */
.reserve {
  background: #fff;
}

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

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

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

.info dt {
  font-weight: 700;
}

.news {
  margin-top: 24px;
}

.news li {
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px dotted var(--line);
}

.news time {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blood);
  font-size: 14px;
}

.reserve__map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  filter: grayscale(0.5) sepia(0.15);
}

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

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

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

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

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

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