/* ============================================
   RESTAURANT SOBA TEMPLATE
   手打ち蕎麦 — そば粉の灰白、鼠色、藍をひとさじ
   ============================================ */

:root {
  /* 色 */
  --sobako: #e8e4da; /* そば粉（地） */
  --sobako-light: #f2efe8;
  --white: #fbfaf7;
  --nezumi: #6d6a63; /* 鼠 */
  --ink: #2a2926; /* 文字 */
  --ai: #24425e; /* 藍 */
  --ai-light: #dfe5ea;
  --line: #cfcabe;

  --bg: var(--sobako);
  --text: var(--ink);
  --accent: var(--ai);
  --nav-bg: var(--white);
  --nav-fg: var(--ink);

  /* 文字（明朝は使わない） */
  --font-head: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --font-hand: "Klee One", "Zen Kaku Gothic New", sans-serif;

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

/* ============================================
   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 {
  letter-spacing: 0.03em;
}

.section {
  padding: 104px 0;
}

.sec-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sec-lead {
  margin-top: 10px;
  color: var(--nezumi);
  font-size: 15px;
}

.sec-head {
  margin-bottom: 40px;
}

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

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

.btn:hover {
  background: var(--ink);
  color: var(--white);
}

.btn--indigo {
  background: var(--ai);
  border-color: var(--ai);
  color: var(--white);
}

.btn--indigo:hover {
  background: #1a3247;
}

/* ============================================
   ヘッダー
   ============================================ */
.site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(251, 250, 247, 0.95);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ai);
}

.brand__text {
  display: flex;
  flex-direction: column;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.16em;
  color: var(--ink);
}

.brand__text small {
  font-size: 11px;
  font-weight: 500;
  color: var(--nezumi);
  letter-spacing: 0.2em;
}

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

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

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

@media (max-width: 899px) {
  .site-header {
    background: rgba(251, 250, 247, 0.95);
    box-shadow: 0 1px 0 var(--line);
  }

  .hero {
    padding-top: var(--header-h);
  }

  .site-nav a {
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid var(--line);
  }
}

/* PCではヒーロー写真の上にヘッダーが来るので、左半分は白文字に */
@media (min-width: 900px) {
  .site-header:not(.is-scrolled) .brand,
  .site-header:not(.is-scrolled) .brand__text,
  .site-header:not(.is-scrolled) .brand__text small {
    color: var(--white);
  }
}

/* ============================================
   Hero：左右分割
   ============================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--sobako);
}

.hero__photo img {
  width: 100%;
  height: 62vh;
  min-height: 360px;
  object-fit: cover;
}

.hero__body {
  padding: 40px 20px 72px;
}

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

.hero__title {
  margin-top: 14px;
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.45;
}

.hero__lead {
  margin-top: 18px;
  max-width: 28em;
  color: var(--nezumi);
}

/* 本日の粉の札 */
.fuda {
  margin-top: 32px;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ai);
  padding: 18px 20px;
}

.fuda__title {
  font-family: var(--font-hand);
  font-size: 17px;
  color: var(--ai);
  margin-bottom: 8px;
}

.fuda dl div {
  display: grid;
  grid-template-columns: 3.5em 1fr;
  font-size: 15px;
  padding: 4px 0;
}

.fuda dt {
  color: var(--nezumi);
}

.hero__hours {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 15px;
  font-weight: 500;
}

.hero__hours span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero__photo img {
    height: 100%;
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero__body {
    align-self: center;
    padding: calc(var(--header-h) + 40px) 56px 64px;
    max-width: 600px;
  }
}

/* ============================================
   粉と打ち方
   ============================================ */
.compare {
  display: grid;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.compare__col {
  background: var(--white);
  padding: 32px 28px;
}

.compare__col .compare__ratio {
  font-size: 44px;
  font-weight: 700;
  color: var(--ai);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.compare__col h3 {
  margin: 4px 0 12px;
  font-size: 20px;
  font-weight: 700;
}

.compare__col > p:not(.compare__ratio) {
  font-size: 15px;
  color: var(--nezumi);
}

.compare__col ul {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

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

.dots {
  letter-spacing: 0.2em;
  color: var(--ai);
  font-size: 12px;
}

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

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

.kona__photos figcaption {
  margin-top: 8px;
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--nezumi);
}

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

  .kona__photos {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }

  .kona__photos figure:nth-child(2) {
    margin-top: 72px;
  }
}

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

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

.menu__photo {
  margin-top: 28px;
}

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

.tabs {
  display: flex;
  border-bottom: 2px solid var(--ink);
}

.tabs [role="tab"] {
  flex: 1;
  min-height: 52px;
  font-size: 16px;
  font-weight: 700;
  color: var(--nezumi);
  border-bottom: 4px solid transparent;
  margin-bottom: -2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.tabs [role="tab"][aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--ai);
}

.panel {
  padding-top: 8px;
}

.panel__intro {
  padding: 16px 0 4px;
  font-size: 15px;
  color: var(--nezumi);
}

.items li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.items__name {
  flex: 1;
  font-size: 17px;
  font-weight: 500;
}

.items__name small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--nezumi);
}

.items__price {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.items__price::after {
  content: "円";
  font-size: 13px;
  font-weight: 400;
  margin-left: 2px;
}

.memo {
  margin-top: 28px;
  display: inline-block;
  padding: 14px 20px;
  background: var(--ai-light);
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--ai);
  transform: rotate(-1deg);
}

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

/* ============================================
   写真の帯（スマホは横スクロール）
   ============================================ */
.strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  background: var(--white);
}

.strip img {
  flex: 0 0 72%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .strip {
    overflow: visible;
  }

  .strip img {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* ============================================
   打ち場の一日（縦のタイムライン）
   ============================================ */
.ichinichi__grid {
  display: grid;
  gap: 40px;
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
}

.timeline li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 0 0 28px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sobako);
  border: 2px solid var(--ai);
}

.timeline li:last-child::before {
  background: var(--ai);
}

.timeline time {
  font-size: 15px;
  font-weight: 700;
  color: var(--ai);
}

.timeline p {
  font-size: 15px;
  color: var(--nezumi);
}

.timeline strong {
  display: block;
  font-size: 18px;
  color: var(--ink);
}

@media (min-width: 768px) {
  .timeline li {
    grid-template-columns: 90px 1fr;
    gap: 16px;
  }
}

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

/* ============================================
   お席
   ============================================ */
.seki {
  padding-top: 0;
}

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

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

.seki__table {
  margin-top: 24px;
  font-size: 15px;
}

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

.seki__table th {
  white-space: nowrap;
  font-weight: 700;
}

.seki__table td:nth-child(2) {
  white-space: nowrap;
  color: var(--ai);
  font-weight: 700;
}

.seki__table td:last-child {
  color: var(--nezumi);
}

@media (max-width: 599px) {
  .seki__table tr {
    display: grid;
    grid-template-columns: auto 1fr;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }

  .seki__table th,
  .seki__table td {
    border: 0;
    padding: 2px 12px 2px 0;
  }

  .seki__table td:last-child {
    grid-column: 1 / -1;
  }
}

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

/* ============================================
   年越しそば
   ============================================ */
.toshikoshi {
  background: var(--ai);
  color: var(--white);
  padding: 80px 0;
}

.toshikoshi__inner {
  max-width: 760px;
}

.toshikoshi__label {
  font-family: var(--font-hand);
  font-size: 17px;
  color: #b9c9d8;
}

.toshikoshi h2 {
  margin: 8px 0 16px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
}

.toshikoshi p {
  color: #dbe3ea;
}

.toshikoshi .btn {
  margin-top: 28px;
  background: var(--white);
  color: var(--ai);
  border-color: var(--white);
}

/* ============================================
   お知らせ
   ============================================ */
.news__list {
  margin-top: 24px;
}

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

.news__list time {
  font-size: 14px;
  font-weight: 700;
  color: var(--ai);
}

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

/* ============================================
   営業・道順
   ============================================ */
.access {
  background: var(--sobako-light);
}

.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: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.access__dl dt {
  font-weight: 700;
}

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

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

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

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

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

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

.site-footer__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.12em;
}

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