/* ============================================
   RESTAURANT SUSHI TEMPLATE
   江戸前鮨 — 白木と墨、朱をひとさじ。余白で見せる
   ============================================ */

:root {
  /* 色 */
  --shiraki: #efe8dc; /* 白木（地） */
  --shiraki-dark: #e4dccd;
  --hinoki: #b9a37f; /* 檜のカウンター */
  --sumi: #1d1c1a; /* 墨（文字） */
  --sumi-soft: #4a4742;
  --hai: #8b867c; /* 酢飯の灰 */
  --line: #cfc6b6;
  --shu: #b8402c; /* 朱（印と下線だけ） */

  --bg: var(--shiraki);
  --text: var(--sumi);
  --accent: var(--shu);
  --nav-bg: var(--shiraki);
  --nav-fg: var(--sumi);

  /* 文字 */
  --font-head: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;

  /* 寸法 */
  --header-h: 72px;
  --max-w: 1080px;
}

/* ============================================
   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-size: 16px;
  letter-spacing: 0.04em;
  line-height: 2;
}

.pc {
  display: none;
}

@media (min-width: 900px) {
  .pc {
    display: inline;
  }
}

.note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--hai);
}

.section {
  padding: 120px 0;
}

/* 見出し：漢数字の小さな番号＋明朝 */
.sec-head {
  margin-bottom: 48px;
}

.sec-head__num {
  font-size: 14px;
  color: var(--shu);
  letter-spacing: 0.3em;
}

.sec-head__num::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-left: 10px;
  vertical-align: middle;
  background: var(--shu);
}

.sec-head__title {
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: 0.18em;
}

.sec-head__sub,
.sec-head__date {
  margin-top: 8px;
  color: var(--sumi-soft);
  font-size: 15px;
}

/* ============================================
   ヘッダー
   ============================================ */
.site-header {
  transition: background-color 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(239, 232, 220, 0.94);
  border-bottom-color: var(--line);
}

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

.brand__seal {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--shu);
  color: var(--shiraki);
  font-size: 15px;
  letter-spacing: 0;
}

.brand__name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

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

.site-nav a {
  font-size: 14px;
  letter-spacing: 0.16em;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: var(--shu);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.header-tel {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 6px 0 6px 18px;
  border-left: 1px solid var(--line);
}

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

  .site-nav a {
    font-size: 20px;
    letter-spacing: 0.3em;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }
}

/* ============================================
   Hero：余白多め、小さな写真
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 48px;
  width: min(100% - 40px, 1080px);
  margin-inline: auto;
  padding: calc(var(--header-h) + 40px) 0 96px;
}

.hero__label {
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--hai);
}

.hero__title {
  margin-top: 28px;
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.75;
}

.hero__lead {
  margin-top: 28px;
  max-width: 34em;
  color: var(--sumi-soft);
}

.hero__hours {
  margin-top: 36px;
  display: grid;
  gap: 4px;
  font-size: 15px;
}

.hero__hours div {
  display: flex;
  gap: 18px;
}

.hero__hours dt {
  color: var(--shu);
}

.hero__photo {
  width: min(78%, 320px);
  justify-self: end;
}

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

.hero__photo figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--hai);
  letter-spacing: 0.16em;
  text-align: right;
}

.hero__scroll {
  position: absolute;
  left: 0;
  bottom: 28px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-decoration: none;
  color: var(--hai);
  padding-left: 40px;
}

.hero__scroll::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--hai);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 360px;
    align-items: center;
    gap: 80px;
  }

  .hero__photo {
    width: 100%;
    margin-top: 80px;
  }
}

/* ============================================
   本日の仕入れ
   ============================================ */
.shiire {
  border-top: 1px solid var(--line);
}

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

.shiire__table-wrap {
  overflow-x: auto;
}

.shiire__table {
  min-width: 320px;
  font-size: 15px;
}

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

.shiire__table thead th {
  font-size: 13px;
  font-weight: 400;
  color: var(--hai);
  letter-spacing: 0.2em;
  border-bottom-color: var(--sumi);
}

.shiire__table tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.shiire__table td:last-child {
  color: var(--sumi-soft);
}

.shiire__table td:nth-child(2) {
  white-space: nowrap;
}

@media (max-width: 599px) {
  .shiire__table th,
  .shiire__table td {
    padding: 12px 6px;
    font-size: 14px;
  }
}

.shiire__photo img {
  width: 100%;
  object-fit: cover;
}

.shiire__photo--a img {
  aspect-ratio: 9 / 7;
}

.shiire__photo--b img {
  aspect-ratio: 7 / 9;
}

.shiire__photo figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--sumi-soft);
}

@media (min-width: 900px) {
  .shiire__grid {
    grid-template-columns: 1fr 1fr 280px;
    grid-template-areas:
      "head head ."
      "table table b"
      "a a b";
    column-gap: 56px;
    row-gap: 48px;
  }

  .shiire .sec-head {
    grid-area: head;
    margin-bottom: 0;
  }

  .shiire__table-wrap {
    grid-area: table;
  }

  .shiire__photo--a {
    grid-area: a;
    width: 70%;
  }

  .shiire__photo--b {
    grid-area: b;
    align-self: start;
    margin-top: 120px;
  }
}

/* ============================================
   おまかせの流れ
   ============================================ */
.omakase {
  background: var(--shiraki-dark);
}

.flow {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--sumi);
}

.flow__item {
  position: relative;
  padding: 22px 0 22px 52px;
  border-bottom: 1px solid var(--line);
}

.flow__n {
  position: absolute;
  left: 0;
  top: 22px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sumi);
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
}

.flow__item h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.flow__item p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--sumi-soft);
  line-height: 1.85;
}

@media (min-width: 900px) {
  .flow {
    grid-template-columns: repeat(5, 1fr);
    border-top: 0;
  }

  .flow__item {
    padding: 64px 22px 0 0;
    border-bottom: 0;
    border-top: 1px solid var(--sumi);
  }

  .flow__item + .flow__item {
    padding-left: 22px;
    border-left: 1px solid var(--line);
  }

  .flow__n {
    top: 18px;
    left: auto;
  }
}

.price {
  margin-top: 72px;
  display: grid;
  gap: 32px;
}

.price__row {
  display: grid;
  gap: 4px;
}

.price__name {
  font-size: 17px;
  letter-spacing: 0.12em;
}

.price__name span {
  font-size: 14px;
  color: var(--hai);
}

.price__val {
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.price__val small {
  font-size: 16px;
  margin-left: 4px;
}

.price__note {
  font-size: 14px;
  color: var(--sumi-soft);
}

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

  .price__row + .price__row {
    padding-left: 56px;
    border-left: 1px solid var(--line);
  }
}

/* 握りの写真：大一枚＋小三枚、少しずらして */
.nigiri {
  margin-top: 96px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.nigiri__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.nigiri__item--wide {
  grid-column: 1 / -1;
}

.nigiri__item--wide img {
  aspect-ratio: 120 / 76;
}

.nigiri__item figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--sumi-soft);
}

@media (min-width: 900px) {
  .nigiri {
    grid-template-columns: 2.2fr 1fr 1fr;
    align-items: start;
    gap: 24px;
  }

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

  .nigiri__item:nth-child(3) {
    margin-top: 64px;
  }

  .nigiri__item:nth-child(4) {
    grid-column: 2;
    width: 80%;
  }
}

.drinks {
  margin-top: 96px;
  max-width: 640px;
}

.drinks__title {
  font-size: 18px;
  letter-spacing: 0.18em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sumi);
}

.drinks__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 15px;
}

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

/* ============================================
   大将
   ============================================ */
.taisho__grid {
  display: grid;
  gap: 40px;
}

.taisho__photo img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  filter: saturate(0.85);
}

.taisho__title {
  margin: 8px 0 28px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: 0.18em;
}

.taisho__text p + p {
  margin-top: 18px;
}

.taisho__sign {
  margin-top: 32px !important;
  text-align: right;
  letter-spacing: 0.2em;
}

@media (min-width: 900px) {
  .taisho__grid {
    grid-template-columns: 5fr 6fr;
    gap: 96px;
    align-items: center;
  }

  .taisho__photo {
    margin-left: -6vw;
  }
}

/* ============================================
   お席
   ============================================ */
.seki {
  border-top: 1px solid var(--line);
}

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

.seki__plan svg {
  width: 100%;
  height: auto;
  color: var(--hai);
}

.plan-label {
  font-size: 16px;
  fill: var(--sumi-soft);
  letter-spacing: 0.2em;
}

.plan-label--s {
  font-size: 12px;
}

.plan-seat circle {
  fill: var(--shiraki);
  stroke: var(--sumi);
  stroke-width: 1;
}

.plan-n {
  font-size: 13px;
  fill: var(--sumi);
}

.seki__list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.seki__list li {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 8px;
}

.seki__list span {
  display: block;
  color: var(--shu);
  font-size: 14px;
}

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

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

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

  .seki .sec-head {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
}

/* ============================================
   ご予約
   ============================================ */
.yoyaku {
  background: var(--sumi);
  color: var(--shiraki);
}

.yoyaku .sec-head__num {
  color: #d9826f;
}

.yoyaku .sec-head__num::after {
  background: #d9826f;
}

.yoyaku__grid {
  display: grid;
  gap: 56px;
}

.yoyaku__title {
  margin: 8px 0 20px;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 500;
  letter-spacing: 0.2em;
}

.yoyaku__lead {
  color: #cfc8bb;
}

.yoyaku__btns {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border: 1px solid rgba(239, 232, 220, 0.5);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
  background: rgba(239, 232, 220, 0.1);
}

.btn--ink {
  background: var(--shiraki);
  color: var(--sumi);
  border-color: var(--shiraki);
}

.btn--ink:hover {
  background: #fff;
}

.yoyaku__rules h3 {
  font-size: 17px;
  letter-spacing: 0.18em;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(239, 232, 220, 0.3);
}

.yoyaku__rules ol {
  counter-reset: rule;
}

.yoyaku__rules li {
  counter-increment: rule;
  position: relative;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid rgba(239, 232, 220, 0.14);
  font-size: 15px;
  color: #ddd6c9;
}

.yoyaku__rules li::before {
  content: counter(rule);
  position: absolute;
  left: 0;
  top: 14px;
  color: #d9826f;
}

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

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

/* ============================================
   お知らせ
   ============================================ */
.news {
  padding: 96px 0;
}

.news__title {
  font-size: 18px;
  letter-spacing: 0.24em;
  margin-bottom: 24px;
}

.news__list li {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.news__list li:last-child {
  border-bottom: 1px solid var(--line);
}

.news__list time {
  color: var(--hai);
  font-size: 14px;
  letter-spacing: 0.08em;
}

@media (min-width: 768px) {
  .news .container {
    display: grid;
    grid-template-columns: 200px 1fr;
  }

  .news__list li {
    grid-template-columns: 140px 1fr;
  }
}

/* ============================================
   道順
   ============================================ */
.access {
  padding-top: 40px;
}

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

.access__dl {
  margin-top: 28px;
  font-size: 15px;
}

.access__dl div {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.access__dl dt {
  color: var(--hai);
}

.access__map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  filter: grayscale(0.6) sepia(0.15);
}

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

/* ============================================
   フッター
   ============================================ */
.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

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

.site-footer__name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  letter-spacing: 0.24em;
}

.site-footer__addr,
.site-footer__copy {
  color: var(--hai);
}

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