/* ============================================
   蕎席 雅山 LP
   墨色 × 生成り(夜 → 昼 → 夜)
   ============================================ */

:root {
  --sumi: #22262a;        /* 墨色(ベース暗) */
  --sumi-deep: #1a1d20;
  --kinari: #f4f0e8;      /* 生成り(ベース明) */
  --kinari-soft: #ece7dc;
  --wood: #c69a63;        /* 木・飴色 */
  --moss: #4a5d43;        /* 苔 */
  --urushi: #6e1f24;      /* 漆赤(極少量) */
  --ink-on-light: #33383c;
  --ink-on-dark: #e8e3d8;
  --serif: "Zen Old Mincho", "Noto Serif JP", "Hiragino Mincho ProN", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  color: var(--ink-on-light);
  background: var(--kinari);
  line-height: 2;
  letter-spacing: 0.08em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

/* ---------- 日本語の折り返し制御 ---------- */
.ib { display: inline-block; }        /* 文節単位で折り返す */
.br-sp { display: none; }             /* スマホでのみ改行 */
@media (max-width: 640px) {
  .br-sp { display: inline; }
}

/* ---------- フェードイン ---------- */
.fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.fade.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  color: var(--ink-on-dark);
  background: var(--sumi-deep);
}
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26,29,32,.35) 0%, rgba(26,29,32,.12) 40%, rgba(26,29,32,.55) 100%);
}
.hero-inner {
  position: absolute;
  top: 50%;
  right: clamp(24px, 10vw, 140px);
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 1.4rem;
  animation: heroIn 2s ease .3s both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(calc(-50% + 16px)); }
  to   { opacity: 1; transform: translateY(-50%); }
}
.hero-title {
  writing-mode: vertical-rl;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 500;
  letter-spacing: 0.35em;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
}
.hero-title-space { display: block; height: .7em; }
.hero-sub {
  writing-mode: vertical-rl;
  font-size: clamp(.8rem, 1.6vw, .95rem);
  letter-spacing: 0.4em;
  opacity: .85;
  padding-top: .4em;
}
.hero-yomi {
  writing-mode: vertical-rl;
  font-size: .8rem;
  letter-spacing: 0.5em;
  opacity: .7;
  padding-top: .5em;
}
.hero-foot {
  position: absolute;
  left: 0; right: 0;
  bottom: 64px;
  z-index: 1;
  text-align: center;
  font-size: .85rem;
  letter-spacing: 0.3em;
  opacity: .85;
  animation: heroIn 2s ease 1s both;
  transform: none;
}
@media (max-width: 640px) {
  .hero-bg img { object-position: 35% center; }
  .hero-inner { right: 50%; transform: translate(50%, -50%); }
  @keyframes heroIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

.scroll-sign {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 1;
  width: 1px;
  height: 48px;
  overflow: hidden;
}
.scroll-sign span {
  position: absolute;
  top: -48px;
  left: 0;
  width: 1px;
  height: 48px;
  background: rgba(232,227,216,.8);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -48px; }
  55% { top: 0; }
  100% { top: 48px; }
}

/* ---------- セクション共通 ---------- */
.section { padding: clamp(80px, 12vw, 140px) 0; }
.section-light { background: var(--kinari); }
.section-dark {
  background: var(--sumi);
  color: var(--ink-on-dark);
}

.sec-title {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-align: center;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.sec-title-en {
  display: block;
  font-size: .72rem;
  letter-spacing: 0.35em;
  color: var(--wood);
  text-transform: uppercase;
  margin-bottom: .9em;
  font-family: var(--serif);
}

/* ---------- ことば ---------- */
.concept-text {
  text-align: center;
  font-size: clamp(.95rem, 2vw, 1.05rem);
  line-height: 2.6;
}
.concept-text p + p { margin-top: 2.4em; }

/* ---------- お料理 ---------- */
.menu-lead {
  text-align: center;
  font-size: clamp(.95rem, 2vw, 1.05rem);
  margin-bottom: clamp(56px, 8vw, 88px);
}

/* 蕎麦写真 × 縦書き御品書 */
.menu-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.menu-main img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.menu-compose figcaption,
.menu-scatter figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4em 1em;
  margin-top: 1.1em;
}
.cap-name { line-height: 1.7; }
.cap-course {
  font-size: .68rem;
  color: var(--wood);
  letter-spacing: .32em;
  white-space: nowrap;
}
.cap-name {
  font-size: .78rem;
  letter-spacing: .16em;
  opacity: .75;
}

.osinagaki {
  justify-self: center;
  background: #faf7f0;
  border: 1px solid rgba(51, 56, 60, .16);
  padding: clamp(2.2em, 3.5vw, 2.8em) clamp(1.8em, 3vw, 2.4em);
}
.osinagaki-inner { writing-mode: vertical-rl; }
.osinagaki-title {
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .5em;
  color: var(--wood);
  padding-block-end: 1.3em;
  margin-block-end: 1.3em;
  border-block-end: 1px solid rgba(51, 56, 60, .18);
}
.osinagaki-list > div:not(:last-child) { margin-block-end: 1.2em; }
.osinagaki-list dt {
  font-size: .7rem;
  color: rgba(51, 56, 60, .55);
  letter-spacing: .3em;
  line-height: 1;
  margin-block-end: .55em;
}
.osinagaki-list dd {
  font-size: .95rem;
  letter-spacing: .2em;
  line-height: 1.75;
  padding-top: 1.5em;
}

/* 料理写真の散らし配置 */
.menu-scatter {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(20px, 3vw, 36px);
  row-gap: clamp(56px, 8vw, 96px);
  margin-top: clamp(64px, 9vw, 110px);
  align-items: start;
}
.menu-scatter img { width: 100%; object-fit: cover; }
.sc-zensai { grid-column: 1 / span 5; }
.sc-zensai img { aspect-ratio: 4 / 3; }
.sc-wanmono { grid-column: 6 / span 3; margin-top: clamp(40px, 6vw, 84px); }
.sc-wanmono img { aspect-ratio: 1 / 1; }
.sc-tempura { grid-column: 9 / span 4; margin-top: clamp(16px, 3vw, 40px); }
.sc-tempura img { aspect-ratio: 4 / 5; }
.sc-kanmi { grid-column: 2 / span 4; }
.sc-kanmi img { aspect-ratio: 1 / 1; }
.menu-pricing { grid-column: 7 / span 5; align-self: center; }

.menu-list {
  border-top: 1px solid rgba(51,56,60,.25);
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1em 0.2em;
  border-bottom: 1px solid rgba(51,56,60,.25);
}
.menu-item dt { font-size: 1rem; letter-spacing: 0.15em; }
.menu-item dd { font-size: 1.15rem; }
.tax { font-size: .72rem; margin-left: .5em; opacity: .7; }
.menu-note {
  margin-top: 2em;
  font-size: .8rem;
  line-height: 2.1;
  opacity: .75;
}
@media (max-width: 720px) {
  .menu-compose { grid-template-columns: 1fr; gap: 48px; }
  .menu-main { margin: 0 -24px; }
  .menu-main img { aspect-ratio: 4 / 5; }
  .menu-main figcaption { padding: 0 24px; }
  /* スマホでは御品書を横書きに */
  .osinagaki { justify-self: stretch; padding: 1.8em 1.6em 2em; }
  .osinagaki-inner { writing-mode: horizontal-tb; }
  .osinagaki-title { text-align: center; padding-block-end: 1.1em; margin-block-end: 1.3em; }
  .osinagaki-list > div { display: grid; grid-template-columns: 4.5em 1fr; gap: 1em; align-items: baseline; }
  .osinagaki-list > div:not(:last-child) { margin-block-end: .85em; }
  .osinagaki-list dt { margin-block-end: 0; line-height: inherit; }
  .osinagaki-list dd { padding-top: 0; line-height: 1.9; }
  .menu-scatter {
    grid-template-columns: repeat(6, 1fr);
    column-gap: 14px;
    row-gap: 48px;
    margin-top: 72px;
  }
  .sc-zensai { grid-column: 1 / -1; }
  .sc-wanmono { grid-column: 1 / span 3; margin-top: 0; }
  .sc-tempura { grid-column: 4 / span 3; margin-top: 2.6rem; }
  .sc-kanmi { grid-column: 2 / span 4; margin-top: 0; }
  .menu-pricing { grid-column: 1 / -1; margin-top: 8px; }
}

/* ---------- 空間 ---------- */
.space-wide { margin: 0 0 clamp(40px, 6vw, 72px); }
.space-wide img {
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
}
.space-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.space-grid figure img { aspect-ratio: 4 / 3; object-fit: cover; }
.space-grid figcaption {
  font-size: .78rem;
  letter-spacing: 0.3em;
  margin-top: 1em;
  opacity: .7;
}
.space-text p { font-size: clamp(.92rem, 2vw, 1rem); }
.space-text p + p { margin-top: 2em; }
@media (max-width: 720px) {
  .space-grid { grid-template-columns: 1fr; }
}

/* ---------- ご案内 ---------- */
.info-list > div {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 1.5em;
  padding: 1.05em 0.2em;
  border-bottom: 1px solid rgba(232,227,216,.18);
  font-size: .95rem;
}
.info-list > div:first-child { border-top: 1px solid rgba(232,227,216,.18); }
.info-list dt { letter-spacing: 0.25em; opacity: .75; }
.info-list a { text-decoration: none; }
.info-list a:hover { color: var(--wood); }
@media (max-width: 520px) {
  .info-list > div { grid-template-columns: 5.5em 1fr; gap: 1em; }
}

.map { margin-top: clamp(40px, 6vw, 56px); }
.map iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
  filter: grayscale(.35);
}

/* ---------- ご予約 ---------- */
.reserve { padding-top: 0; }
.reserve-limit {
  text-align: center;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.25em;
  margin-bottom: 1.6em;
}
/* ご予約時の折りたたみ案内 */
.reserve-details {
  max-width: 480px;
  margin: 3em auto 0;
  border: 1px solid rgba(232, 227, 216, .3);
}
.reserve-details summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1em 3em 1.1em 1.5em;
  font-size: .85rem;
  letter-spacing: 0.18em;
  position: relative;
  transition: color .3s ease;
}
.reserve-details summary::-webkit-details-marker { display: none; }
.reserve-details summary::after {
  content: "+";
  position: absolute;
  right: 1.3em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--wood);
}
.reserve-details[open] summary::after { content: "−"; }
.reserve-details summary:hover { color: var(--wood); }
.reserve-details-body {
  padding: 0 1.5em 1.4em;
  font-size: .82rem;
  letter-spacing: 0.12em;
  color: rgba(232, 227, 216, .85);
}
.reserve-details-body p { margin-bottom: .9em; }
.reserve-details-body ul { list-style: none; }
.reserve-details-body li {
  padding-left: 1.2em;
  position: relative;
  line-height: 2.1;
}
.reserve-details-body li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--wood);
}

.reserve-note {
  text-align: center;
  font-size: .82rem;
  line-height: 2.2;
  letter-spacing: 0.12em;
  color: rgba(232, 227, 216, .75);
  margin-top: 3em;
}
@media (max-width: 640px) {
  .reserve-note br { display: none; }
}
.reserve-lead {
  text-align: center;
  font-size: clamp(.95rem, 2vw, 1.05rem);
  margin-bottom: 3em;
}
@media (max-width: 640px) {
  .reserve-lead br { display: none; }
}
.reserve-actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
}
.btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 260px;
  min-height: 104px;
  padding: 1em 2.2em;
  text-decoration: none;
  letter-spacing: 0.2em;
  border: 1px solid rgba(232,227,216,.5);
  transition: background .4s ease, border-color .4s ease, color .4s ease;
}
.btn-note {
  font-size: .7rem;
  color: rgba(232, 227, 216, .7);
  margin-top: .6em;
  letter-spacing: 0.15em;
}
.btn:hover .btn-note { color: rgba(244, 239, 233, .8); }
.btn:hover {
  background: var(--urushi);
  border-color: var(--urushi);
  color: #f4efe9;
}
.btn-tel-num { font-size: 1.25rem; letter-spacing: 0.15em; }
.btn-tel-note { font-size: .7rem; opacity: .7; margin-top: .4em; letter-spacing: 0.15em; }

/* ---------- 画面下固定の予約バー ---------- */
.fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 10px;
  background: rgba(26, 29, 32, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(232, 227, 216, .14);
  padding: .6em 16px calc(.6em + env(safe-area-inset-bottom));
  transform: translateY(105%);
  opacity: 0;
  transition: transform .5s ease, opacity .5s ease;
}
.fixed-cta.is-shown {
  transform: none;
  opacity: 1;
}
.fixed-cta-btn {
  flex: 0 1 200px;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--ink-on-dark);
  text-decoration: none;
  padding: .6em 0;
  border: 1px solid rgba(232, 227, 216, .35);
  transition: background .4s ease, border-color .4s ease;
}
.fixed-cta-btn:hover {
  background: var(--urushi);
  border-color: var(--urushi);
}

/* ---------- フッター ---------- */
.footer {
  background: var(--sumi-deep);
  color: var(--ink-on-dark);
  text-align: center;
  padding: 72px 24px 40px;
}
.footer-name { font-size: 1.15rem; letter-spacing: 0.35em; margin-bottom: .8em; }
.footer-addr { font-size: .8rem; opacity: .7; letter-spacing: 0.15em; }
.footer-ig {
  display: inline-block;
  margin-top: 1.8em;
  font-size: .8rem;
  letter-spacing: 0.25em;
  text-decoration: none;
  border-bottom: 1px solid rgba(232,227,216,.4);
  padding-bottom: .2em;
}
.footer-ig:hover { color: var(--wood); border-color: var(--wood); }
.footer-copy { margin-top: 3.5em; font-size: .7rem; opacity: .5; letter-spacing: 0.2em; }
