/* ============================================
   RESTAURANT YOSHOKU TEMPLATE
   昔ながらの町の洋食屋 — コックコートの白 × デミグラスの焦げ茶 × ケチャップの朱
   横長の写真帯と縦書きの屋号・ショーケースの値札・年表
============================================ */

:root {
  /* Color */
  --bg: #fbfaf6; /* コックコートの白（地） */
  --cloth: #f2efe6; /* テーブルクロス */
  --demi: #4a2b1d; /* デミグラスの焦げ茶（メイン） */
  --demi-light: #6b4330;
  --red: #c8442a; /* ケチャップの朱（差し色） */
  --red-deep: #a63520;
  --mustard: #d8a73a; /* 値札の縁だけ */
  --ink: #2b211b;
  --muted: #6d6158;
  --line: rgba(43, 33, 27, 0.16);
  --accent: var(--red);

  /* Font */
  --font-body: "BIZ UDPMincho", "Hiragino Mincho ProN", serif;
  --font-sign: "Shippori Antique B1", "BIZ UDPMincho", serif; /* 屋号・見出し・値札 */

  --container: 1120px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --header-h: 72px;
  --section-space: clamp(72px, 10vw, 120px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

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

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

[hidden] {
  display: none !important;
}

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

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

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

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.sp-only {
  display: none;
}

@media (max-width: 600px) {
  .sp-only {
    display: inline;
  }
  .pc-only {
    display: none;
  }
}

/* ---------- スクロール出現（JSが動いたときだけ隠す） ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- アコーディオン（高さは grid で開閉） ---------- */
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

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

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

.acc__icon {
  transition: transform 0.3s var(--ease);
}

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

/* ---------- カレンダー（共通の骨組み） ---------- */
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.cal__wd {
  text-align: center;
  font-size: 13px;
  padding: 4px 0;
}

.cal__day {
  min-height: 56px;
  padding: 6px;
  font-size: 14px;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cal__note {
  font-size: 12px;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .cal__day {
    min-height: 46px;
    padding: 4px 3px;
  }
  .cal__note {
    font-size: 11px;
    letter-spacing: 0;
  }
}

/* ---------- 地図 ---------- */
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}

/* ---------- ヒーローの文字：読み込み時に順に出る（CSSのみ・JS不要） ---------- */
.hero-in {
  animation: hero-in 0.8s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 0.12s + 0.1s);
}

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

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

/* ---------- 共通パーツ ---------- */
.section {
  padding-block: var(--section-space);
}

.sec-head {
  max-width: 640px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.sec-head p {
  color: var(--muted);
  font-size: 15px;
}

.sec-head__title {
  font-family: var(--font-sign);
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--demi);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

/* 見出しの漢数字は、朱の丸札に */
.sec-head__no {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  border-radius: 2px;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

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

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

.btn--line {
  border: 1.5px solid var(--demi);
  color: var(--demi);
}

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

/* ---------- ヘッダー ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 3px double var(--demi);
}

.header__inner {
  height: var(--header-h);
  width: min(100% - var(--gutter) * 2, 1240px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--demi);
  color: #fff;
  font-family: var(--font-sign);
  font-size: 22px;
}

.logo__text {
  font-family: var(--font-sign);
  font-size: 22px;
  line-height: 1.2;
  color: var(--demi);
}

.logo__text small {
  display: block;
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.12em;
}

.nav__list {
  display: flex;
  gap: 22px;
  font-size: 15px;
  font-weight: 700;
}

.nav__list a {
  padding: 8px 0;
  transition: color 0.25s var(--ease);
}

.nav__list a:hover {
  color: var(--red);
}

.header__tel {
  font-family: var(--font-sign);
  font-size: 20px;
  color: var(--red);
  line-height: 1.2;
}

.header__tel small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-body);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  position: relative;
  background: var(--demi);
}

.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: #fff;
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}

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

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

.nav-toggle span:nth-child(3) {
  top: 30px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1080px) {
  .header__tel {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: var(--bg);
    padding: 16px var(--gutter) 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0.3s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__list {
    flex-direction: column;
    gap: 0;
    font-size: 18px;
  }
  .nav__list a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- HERO（横長の写真帯＋縦書きの屋号） ---------- */
.hero__band {
  display: grid;
  grid-template-columns: 150px 1fr;
  height: clamp(300px, 40vw, 440px);
  border-bottom: 6px solid var(--red);
}

.hero__yago {
  background: var(--demi);
  color: #fff;
  writing-mode: vertical-rl;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sign);
  padding: 20px 0;
}

.hero__yago span {
  white-space: nowrap;
}

.hero__yago-sub {
  font-size: 16px;
  letter-spacing: 0.3em;
  color: #f0c9a8;
}

.hero__yago-main {
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: 0.2em;
  line-height: 1;
}

.hero__photo {
  overflow: hidden;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 1.8s var(--ease) both;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: none;
  }
}

.hero__below {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 56px;
  padding-block: clamp(32px, 5vw, 56px);
  align-items: start;
}

.hero__catch span {
  display: inline-block;
}

.hero__catch {
  font-family: var(--font-sign);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.55;
  color: var(--demi);
}

.hero__text p {
  font-size: 15px;
}

.hero__hours {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  font-size: 15px;
}

.hero__hours b {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 6px;
  background: var(--red);
  color: #fff;
  font-weight: 400;
  font-family: var(--font-sign);
  border-radius: 50%;
  font-size: 14px;
}

@media (max-width: 760px) {
  .hero__band {
    grid-template-columns: 76px 1fr;
    height: 280px;
  }
  .hero__yago-sub {
    font-size: 13px;
  }
  .hero__yago-main {
    font-size: 32px;
  }
  .hero__below {
    grid-template-columns: 1fr;
  }
}

/* ---------- 名物（ショーケース） ---------- */
.meibutsu {
  background: var(--cloth);
}

.case {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: inset 0 -10px 0 var(--cloth);
}

.case__item--wide {
  grid-column: 1 / 4;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: center;
}

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

.case__item--wide img {
  aspect-ratio: 10 / 7;
}

/* 値札：白い札に朱の品番、縁はからし色 */
.case__tag {
  position: relative;
  background: #fff;
  border: 2px solid var(--mustard);
  padding: 14px 16px;
  margin: -24px 12px 0;
}

.case__item--wide .case__tag {
  margin: 0;
  padding: 24px;
}

.case__no {
  font-family: var(--font-sign);
  color: var(--red);
  font-size: 14px;
}

.case__tag h3 {
  font-family: var(--font-sign);
  font-size: 19px;
  color: var(--demi);
}

.case__item--wide h3 {
  font-size: clamp(22px, 2.6vw, 28px);
}

.case__tag p {
  font-size: 14px;
  color: var(--muted);
}

.case__tag .case__price {
  font-family: var(--font-sign);
  font-size: 24px;
  color: var(--red);
  text-align: right;
}

.case__item--wide .case__price {
  font-size: 34px;
}

.case__price small {
  font-size: 14px;
  margin-left: 2px;
}

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

@media (max-width: 860px) {
  .case {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
    gap: 20px 14px;
  }
  .case__item--wide {
    grid-column: 1 / 3;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .case__item--wide .case__tag {
    margin: -24px 12px 0;
    padding: 16px;
  }
}

@media (max-width: 520px) {
  .case {
    grid-template-columns: 1fr;
  }
  .case__item--wide {
    grid-column: 1;
  }
}

/* ---------- 日替わり ---------- */
.lunch {
  padding-block: var(--section-space);
}

.lunch__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.lunch__head p {
  font-size: 15px;
  margin-bottom: 20px;
}

.lunch__head b {
  white-space: nowrap;
  color: var(--red);
  font-size: 1.2em;
}

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

.lunch__head figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

.lunch__table {
  border-top: 2px solid var(--demi);
}

.lunch__table th,
.lunch__table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  text-align: left;
}

.lunch__table th {
  width: 64px;
  font-family: var(--font-sign);
  font-size: 20px;
  color: var(--demi);
  text-align: center;
}

.lunch__table td small {
  color: var(--red);
  margin-left: 6px;
}

.lunch__table .is-off {
  color: var(--muted);
}

/* JSで今日の曜日に印 */
.lunch__table tr.is-today {
  background: #fff2e8;
}

.lunch__table tr.is-today th {
  color: #fff;
  background: var(--red);
}

.lunch__table tr.is-today td::after {
  content: "本日";
  display: inline-block;
  margin-left: 10px;
  padding: 0 8px;
  font-size: 12px;
  border: 1px solid var(--red);
  color: var(--red);
}

@media (max-width: 760px) {
  .lunch__grid {
    grid-template-columns: 1fr;
  }
  .lunch__table th,
  .lunch__table td {
    padding: 14px 8px;
    font-size: 15px;
  }
}

/* ---------- お品書き ---------- */
.menu {
  background: var(--demi);
  color: #f6eee6;
}

.menu .sec-head__title {
  color: #fff;
}

.menu .sec-head p {
  color: #d8c7b8;
}

.menu__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.menu__group h3 {
  font-family: var(--font-sign);
  font-size: 19px;
  color: #f0c9a8;
  border-bottom: 1px solid rgba(246, 238, 230, 0.4);
  padding-bottom: 6px;
  margin-bottom: 4px;
}

.menu__group dl + h3 {
  margin-top: 28px;
}

.menu__group dl > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  font-size: 15px;
}

/* 料理名と価格のあいだを点線でつなぐ */
.menu__group dt {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.menu__group dt::after {
  content: "";
  flex: 1;
  border-bottom: 1px dotted rgba(246, 238, 230, 0.4);
  min-width: 16px;
}

.menu__group dd {
  font-family: var(--font-sign);
  font-size: 17px;
}

.menu__photo {
  margin-top: 24px;
}

.menu__photo img {
  aspect-ratio: 15 / 11;
  object-fit: cover;
  width: 100%;
}

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

@media (max-width: 600px) {
  .menu__cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- 洋食弁当 ---------- */
.bento {
  padding-block: var(--section-space);
}

.bento__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.bento__photo img {
  aspect-ratio: 9 / 7;
  object-fit: cover;
  width: 100%;
  border: 8px solid #fff;
  outline: 1px solid var(--line);
}

.bento__text > p {
  font-size: 15px;
}

.bento__list {
  margin: 20px 0 28px;
  border-top: 2px solid var(--demi);
}

.bento__list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.bento__list dt {
  font-weight: 700;
}

.bento__list small {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}

.bento__list dd {
  font-family: var(--font-sign);
  color: var(--red);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .bento__grid {
    grid-template-columns: 1fr;
  }
  .bento .btn {
    width: 100%;
  }
}

/* ---------- 歩み ---------- */
.ayumi {
  background: var(--cloth);
}

.ayumi__grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(28px, 5vw, 72px);
}

.ayumi__head figure {
  max-width: 300px;
}

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

.ayumi__head figcaption {
  font-size: 14px;
  margin-top: 8px;
}

.ayumi__list li {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.ayumi__list span {
  font-family: var(--font-sign);
  color: var(--red);
  font-size: 18px;
}

@media (max-width: 760px) {
  .ayumi__grid {
    grid-template-columns: 1fr;
  }
  .ayumi__list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ---------- ご案内 ---------- */
.info__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.info__photo img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

.info__seats {
  margin-top: 20px;
}

.info__seats th,
.info__seats td {
  text-align: left;
  vertical-align: top;
  padding: 12px 8px 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.info__seats th {
  width: 6.5em;
  color: var(--demi);
  white-space: nowrap;
}

.info__list {
  border-top: 2px solid var(--demi);
}

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

.info__list dt {
  color: var(--muted);
}

.info__list a {
  text-decoration: underline;
}

.info__btns {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.info__btns .btn {
  flex: 1;
}

.map {
  height: 280px;
}

@media (max-width: 860px) {
  .info__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- フッター ---------- */
.footer {
  background: var(--demi);
  color: #e8dbcf;
  padding: 36px 0 26px;
  font-size: 14px;
  border-top: 6px solid var(--red);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  align-items: baseline;
}

.footer__logo {
  font-family: var(--font-sign);
  font-size: 22px;
  color: #fff;
}

.footer a {
  text-decoration: underline;
}

.footer__copy {
  width: 100%;
  opacity: 0.7;
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
