/* ==========================================================
   炭と酒 つむぎ — 制作サンプル
   縦書きが主役。右端の縦ナビ／のれん形の境目／朱の1本線と丸
   ========================================================== */

/* ---------- 変数・リセット ---------- */
:root {
  --ink: #14110F;
  --washi: #EFE6D5;
  --on-ink: #EDE5D8;
  --on-washi: #221C17;
  --red: #C8402A;
  --rail: 64px;
  --gutter: clamp(24px, 6vw, 96px);
  --sec-y: clamp(96px, 12vw, 168px);
  --f-head: "Yuji Syuku", "Shippori Mincho B1", serif;
  --f-body: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ink);
  scroll-padding-top: 24px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--f-body);
  font-size: 15.5px;
  line-height: 2;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

a:focus-visible, .btn:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--on-ink);
  outline-offset: 3px;
}

h1, h2, h3 { text-wrap: balance; font-weight: 400; }

.tcy { text-combine-upright: all; }

.skip {
  position: fixed; left: 8px; top: -60px; z-index: 100;
  background: var(--washi); color: var(--on-washi); padding: 8px 14px;
}
.skip:focus { top: 8px; }

/* ---------- ロゴ（左上） ---------- */
.logo {
  position: fixed; top: 18px; left: 18px; z-index: 60;
  background: var(--ink);
  font-family: var(--f-head);
  font-size: 18px; line-height: 1; letter-spacing: .18em;
  padding: 11px 14px 11px 12px;
  border-left: 3px solid var(--red);
}

/* ---------- 右端の縦ナビ ---------- */
.rail {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: var(--rail);
  display: flex; flex-direction: column;
  background: var(--ink);
  border-left: 1px solid rgba(237, 229, 216, .16);
}
.rail__list {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 28px; padding-top: 40px;
}
.rail__link {
  display: block;
  writing-mode: vertical-rl;
  font-size: 14px; letter-spacing: .4em; line-height: 1;
  padding: 10px 11px;
  box-shadow: inset -2px 0 0 transparent;
  transition: box-shadow .25s, color .25s;
}
.rail__link:hover { box-shadow: inset -2px 0 0 rgba(200, 64, 42, .7); }
.rail__link[aria-current="true"] { box-shadow: inset -2px 0 0 var(--red); }
.rail__cta {
  display: grid; place-items: center;
  height: 164px;
  background: var(--red); color: var(--washi);
  writing-mode: vertical-rl;
  font-family: var(--f-head); font-size: 21px; font-weight: 700; letter-spacing: .5em;
  padding-top: .5em;
  transition: filter .2s;
}
.rail__cta:hover { filter: brightness(1.12); }

/* ---------- 本文の領域（ナビ分を空ける） ---------- */
main { margin-right: var(--rail); position: relative; }

/* ---------- 共通：節の頭（朱の1本線と丸） ---------- */
.sec-head {
  display: flex; flex-direction: column; align-items: center;
  flex: none;
}
.sec-head__line {
  width: 1px; height: clamp(72px, 9vw, 128px);
  background: var(--red);
}
.sec-head__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--red);
  margin-top: -1px;
}
.sec-head__title {
  writing-mode: vertical-rl;
  font-family: var(--f-head);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.3; letter-spacing: .3em;
  margin-top: 22px;
}

/* ---------- 現れる動き（JSが動かなければ見える） ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .band .reveal:nth-child(2), .js .menu__scroll .reveal:nth-child(2) { transition-delay: .08s; }
  .js .band .reveal:nth-child(3), .js .menu__scroll .reveal:nth-child(3) { transition-delay: .16s; }
  .js .band .reveal:nth-child(4), .js .menu__scroll .reveal:nth-child(4) { transition-delay: .24s; }
}

/* ==========================================================
   Hero（縦書きの大見出し）
   ========================================================== */
.hero {
  position: relative; overflow: hidden;
  height: min(100svh, 960px); min-height: 560px;
  display: flex; justify-content: flex-end; align-items: center;
  padding: 0 clamp(28px, 8vw, 160px) 0 0;
  isolation: isolate;
}
.hero__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__img { animation: settle 26s ease-out both; }
}
@keyframes settle { from { transform: scale(1.09); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(270deg, rgba(20, 17, 15, .82) 0%, rgba(20, 17, 15, .45) 38%, rgba(20, 17, 15, .12) 70%, rgba(20, 17, 15, .5) 100%),
    linear-gradient(0deg, rgba(20, 17, 15, .85) 0%, rgba(20, 17, 15, 0) 28%);
}

.hero__title {
  writing-mode: vertical-rl;
  font-family: var(--f-head);
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.55; letter-spacing: .1em;
  text-shadow: 0 2px 28px rgba(20, 17, 15, .7);
}
.hero__title span { display: block; }
.hero__title span:nth-child(2) { padding-top: 1.1em; }
.hero__title span:nth-child(3) { padding-top: 2.3em; }
.hero__title em { font-style: normal; color: var(--red); text-shadow: 0 0 40px rgba(200, 64, 42, .55); }

.hero__hours {
  position: absolute; left: clamp(18px, 2.4vw, 36px); top: 118px;
  writing-mode: vertical-rl;
  font-size: 13px; letter-spacing: .35em; line-height: 1.6;
  color: rgba(237, 229, 216, .88);
}
.hero__hours::before {
  content: ""; display: inline-block; width: 1px; height: 36px;
  background: rgba(237, 229, 216, .5); margin-bottom: 14px; vertical-align: top;
}

.seal {
  position: absolute; left: clamp(18px, 3vw, 48px); bottom: clamp(28px, 5vw, 64px);
  width: clamp(92px, 9vw, 120px); aspect-ratio: 1; border-radius: 50%;
  background: var(--red); color: var(--washi);
  display: grid; place-items: center;
  transform: rotate(-9deg);
  box-shadow: inset 0 0 0 4px var(--red), inset 0 0 0 6px rgba(239, 230, 213, .85);
}
.seal span {
  writing-mode: vertical-rl;
  font-family: var(--f-head); font-size: clamp(22px, 2.2vw, 28px); letter-spacing: .12em;
  padding-top: .1em;
}

/* ==========================================================
   こだわり（左に一文字・中央に縦書き3列・右に写真）
   ========================================================== */
.kodawari {
  position: relative; overflow: hidden;
  padding: 0 var(--gutter) var(--sec-y);
}
.kodawari__grid {
  max-width: 1360px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(140px, .8fr) auto minmax(220px, 1fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
}
.kodawari__lead {
  display: flex; align-items: flex-start; gap: clamp(8px, 2vw, 32px);
}
.kodawari__fire {
  writing-mode: vertical-rl;
  font-family: var(--f-head);
  font-size: clamp(150px, 19vw, 320px); line-height: 1;
  color: var(--red);
  margin-top: clamp(40px, 6vw, 90px);
  opacity: .92;
}

.kodawari__text {
  writing-mode: vertical-rl;
  height: clamp(400px, 34vw, 480px);
  margin-top: clamp(40px, 7vw, 120px);
  font-size: 15.5px; line-height: 2.1; letter-spacing: .08em;
  display: block;
}
.kodawari__text > div { margin-inline-end: 0; margin-block-end: clamp(26px, 3vw, 48px); }
.kodawari__text > div:last-child { margin-block-end: 0; }
.kodawari__text h3 {
  font-family: var(--f-head);
  font-size: 22px; line-height: 1.7; letter-spacing: .2em;
  margin-block-end: 6px;
}
.kodawari__text h3::before {
  content: ""; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  margin-block-end: 12px; vertical-align: top; margin-top: 10px;
}
.kodawari__text p { text-align: start; }

.kodawari__photo { margin-top: clamp(80px, 10vw, 150px); }
.kodawari__photo img {
  width: 100%; height: auto; aspect-ratio: 1200 / 1700; object-fit: cover;
  background: rgba(237, 229, 216, .06);
}

/* ==========================================================
   お品書き（和紙の面・のれん形の上端）
   ========================================================== */
.menu {
  --lobe: 34px;
  position: relative;
  background-color: var(--washi);
  background-image:
    radial-gradient(rgba(34, 28, 23, .05) 1px, transparent 1.4px),
    radial-gradient(rgba(34, 28, 23, .035) 1px, transparent 1.6px),
    repeating-linear-gradient(97deg, rgba(34, 28, 23, 0) 0 5px, rgba(34, 28, 23, .018) 5px 6px, rgba(34, 28, 23, 0) 6px 11px),
    repeating-linear-gradient(8deg, rgba(255, 255, 255, 0) 0 7px, rgba(255, 255, 255, .22) 7px 8px);
  background-size: 7px 7px, 13px 13px, auto, auto;
  background-position: 0 0, 3px 5px, 0 0, 0 0;
  color: var(--on-washi);
  padding: calc(var(--lobe) + clamp(56px, 7vw, 96px)) 0 var(--sec-y);
}
.menu a:focus-visible, .menu [tabindex]:focus-visible { outline-color: var(--on-washi); }

/* のれん形：墨が下向きの丸い山になって和紙へ垂れる */
.menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: var(--lobe);
  background: radial-gradient(circle at 50% 0, var(--ink) calc(var(--lobe) - 1.2px), transparent calc(var(--lobe) - .2px)) 0 0 / calc(var(--lobe) * 2) var(--lobe) repeat-x;
}
.menu__layout {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  padding-left: var(--gutter);
  align-items: start;
}
.menu .sec-head { margin-top: -8px; }

.menu__scroll {
  direction: rtl;                /* 右から始まり、左へ読み進める */
  display: flex; gap: clamp(16px, 1.6vw, 26px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 6px clamp(16px, 3vw, 48px) 26px 6px;
  scrollbar-width: thin; scrollbar-color: rgba(34, 28, 23, .4) transparent;
  cursor: grab;
}
.menu__scroll.is-drag { cursor: grabbing; scroll-snap-type: none; }

.board {
  direction: ltr;
  flex: none;
  writing-mode: vertical-rl;
  height: 480px;
  padding: 34px 26px 34px 30px;
  background: rgba(34, 28, 23, .045);
  border: 1px solid rgba(34, 28, 23, .32);
  box-shadow: inset 0 0 0 5px rgba(239, 230, 213, .9), inset 0 0 0 6px rgba(34, 28, 23, .18);
  scroll-snap-align: start;
  display: block;
}
.board__title {
  font-family: var(--f-head);
  font-size: 32px; line-height: 1.4; letter-spacing: .3em;
  color: var(--red);
  margin-block-end: 28px;
  padding-inline-end: 0;
}
.items { display: block; height: 100%; }
.items li {
  display: flex; align-items: flex-start;
  height: 100%;
  margin-block-end: 22px;
  gap: 12px;
  line-height: 1.6;
}
.items li:last-child { margin-block-end: 0; }
.items .n { font-family: var(--f-head); font-size: 21px; letter-spacing: .12em; white-space: nowrap; }
.items .s { font-size: 12px; letter-spacing: .1em; opacity: .78; white-space: nowrap; }
.items .p {
  margin-inline-start: auto;
  font-size: 15px; letter-spacing: 0; white-space: nowrap;
  text-orientation: upright;      /* 数字を立てて読ませる */
  line-height: 1.4;
}
.items .p b { font-weight: 700; font-size: 17px; }

.menu__note {
  padding: 8px var(--gutter) 0;
  font-size: 12.5px; letter-spacing: .06em; opacity: .8;
}

/* ==========================================================
   料理の写真の帯（横に流れる）
   ========================================================== */
.dishes {
  position: relative; overflow: hidden;
  padding: var(--sec-y) 0;
}
.dishes__ghost {
  position: absolute; right: 2%; top: 4%;
  font-family: var(--f-head);
  font-size: clamp(260px, 36vw, 620px); line-height: 1;
  color: rgba(237, 229, 216, .045);
  pointer-events: none; user-select: none;
}
.dishes__layout {
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  padding-left: var(--gutter);
  align-items: start;
}
.band {
  display: flex; gap: clamp(20px, 2.4vw, 36px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 0 var(--gutter) 40px 4px;
  scrollbar-width: thin; scrollbar-color: rgba(237, 229, 216, .35) transparent;
  cursor: grab;
}
.band.is-drag { cursor: grabbing; scroll-snap-type: none; }
.dish {
  flex: none; width: clamp(210px, 21vw, 300px);
  scroll-snap-align: start;
}
.dish:nth-child(even) { margin-top: clamp(40px, 5vw, 72px); }
.dish:nth-child(3n) { margin-top: clamp(16px, 2vw, 28px); }
.dish img {
  width: 100%; height: auto; aspect-ratio: 1000 / 1400; object-fit: cover;
  background: rgba(237, 229, 216, .06);
  pointer-events: none;
}
.dish figcaption {
  writing-mode: vertical-rl;
  height: 190px;
  margin: 16px 2px 0 auto;
  line-height: 1.7;
}
.dish figcaption b {
  display: block;
  font-family: var(--f-head); font-weight: 400; font-size: 21px; letter-spacing: .2em;
}
.dish figcaption span {
  display: block; font-size: 12px; letter-spacing: .12em; opacity: .75;
}

/* ==========================================================
   店内（全幅写真＋巨大な縦書きの一文字）
   ========================================================== */
.interior { position: relative; overflow: hidden; }
.interior img {
  width: 100%; height: clamp(440px, 54vw, 1000px); object-fit: cover; object-position: 50% 55%;
}
.interior::before {            /* 写真の上端：墨から静かに */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18%; z-index: 1;
  background: linear-gradient(180deg, var(--ink), rgba(20, 17, 15, 0));
}
.interior__words {
  position: absolute; z-index: 1; right: clamp(24px, 9vw, 160px); top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--f-head);
  font-size: clamp(22px, 2.5vw, 38px); line-height: 2.1; letter-spacing: .22em;
  color: var(--washi);
  text-shadow: 0 2px 18px rgba(20, 17, 15, .85), 0 0 4px rgba(20, 17, 15, .6);
}
.interior__words span { display: block; white-space: nowrap; }
.interior__words span:nth-child(2) { padding-top: 1.2em; }
.interior__words span:nth-child(3) { padding-top: 2.4em; margin-right: .9em; }
.interior__words span:nth-child(4) { padding-top: 3.4em; }
.plaque {
  position: absolute; z-index: 2;
  left: clamp(16px, 4vw, 64px); bottom: clamp(16px, 4vw, 56px);
  max-width: 310px;
  background: var(--washi); color: var(--on-washi);
  border-top: 4px solid var(--red);
  padding: 20px 26px 22px;
  line-height: 1.8;
}
.plaque__title { font-family: var(--f-head); font-size: 22px; letter-spacing: .4em; line-height: 1.4; margin-bottom: 8px; }
.plaque__seats { font-size: 15px; }
.plaque__party { font-family: var(--f-head); font-size: 23px; color: var(--red); letter-spacing: .1em; margin-top: 4px; }
.plaque__note { font-size: 12.5px; opacity: .8; margin-top: 6px; }

/* ==========================================================
   ご予約とアクセス
   ========================================================== */
.contact {
  position: relative;
  padding: 0 var(--gutter) var(--sec-y);
}
.contact__grid {
  max-width: 1280px; margin: 0 auto;
  padding-top: 0;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 112px);
  align-items: start;
}
.contact { padding-top: 0; }
.contact__left {
  display: flex; flex-direction: row-reverse; justify-content: flex-start;
  gap: clamp(24px, 3vw, 48px); align-items: flex-start;
}
.contact__vert {
  writing-mode: vertical-rl;
  height: clamp(360px, 32vw, 440px);
  margin-top: clamp(40px, 7vw, 100px);
  font-size: 15.5px; line-height: 2.1; letter-spacing: .08em;
}
.contact__vert p + p { margin-block-end: clamp(18px, 2vw, 30px); }
.contact__vert p:first-child { margin-block-end: clamp(18px, 2vw, 30px); }

.contact__info { padding-top: clamp(72px, 9vw, 140px); }
.contact__info dl { border-top: 1px solid rgba(237, 229, 216, .22); }
.contact__info dl > div {
  display: grid; grid-template-columns: 6.5em 1fr; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(237, 229, 216, .22);
  line-height: 1.9;
}
.contact__info dt { font-size: 13px; letter-spacing: .3em; opacity: .75; padding-top: .15em; }
.contact__info .tel { font-family: var(--f-head); font-size: clamp(26px, 3vw, 36px); letter-spacing: .08em; line-height: 1.4; }
.btn {
  display: inline-block; margin-top: 36px;
  background: var(--red); color: var(--washi);
  font-family: var(--f-head); font-weight: 700; font-size: 19px; letter-spacing: .2em;
  padding: 20px 40px;
  transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-2px); }
.contact__small { font-size: 12.5px; opacity: .7; margin-top: 12px; }

/* ==========================================================
   Footer
   ========================================================== */
.footer {
  margin-right: var(--rail);
  padding: 40px var(--gutter) 48px;
  border-top: 1px solid rgba(237, 229, 216, .16);
  font-size: 12.5px; line-height: 1.9; letter-spacing: .06em;
  display: flex; flex-wrap: wrap; gap: 8px 40px; justify-content: space-between;
  color: rgba(237, 229, 216, .82);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer__links a { text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================
   幅ごとの調整
   ========================================================== */
@media (max-width: 1080px) {
  .kodawari__grid { grid-template-columns: auto auto minmax(180px, 1fr); }
  .kodawari__lead { flex-direction: column; align-items: center; }
  .kodawari__fire { margin-top: 16px; font-size: clamp(120px, 18vw, 200px); }
}

/* スマホ・タブレット縦：下に固定の細い帯 */
@media (max-width: 800px) {
  :root { --rail: 0px; }
  body { padding-bottom: 56px; font-size: 15px; }

  .logo { top: 12px; left: 12px; font-size: 15px; padding: 9px 11px 9px 10px; }

  .rail {
    top: auto; left: 0; right: 0; bottom: 0;
    width: auto; height: 56px;
    flex-direction: row;
    border-left: 0; border-top: 1px solid rgba(237, 229, 216, .2);
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(56px + env(safe-area-inset-bottom));
  }
  .rail__list { flex-direction: row; justify-content: stretch; gap: 0; padding: 0; width: 100%; align-items: stretch; }
  .rail__list li { flex: 1; display: flex; }
  .rail__link {
    writing-mode: horizontal-tb; flex: 1;
    display: grid; place-items: center;
    font-size: 13px; letter-spacing: .12em; padding: 0 4px;
    box-shadow: inset 0 2px 0 transparent;
  }
  .rail__link:hover { box-shadow: inset 0 2px 0 rgba(200, 64, 42, .7); }
  .rail__link[aria-current="true"] { box-shadow: inset 0 2px 0 var(--red); }
  .rail__list .is-reserve .rail__link { background: var(--red); color: var(--washi); font-weight: 700; }
  .rail__cta { display: none; }

  .hero { padding-right: 28px; min-height: 600px; height: min(100svh, 860px); }
  .hero__img { object-position: 30% 50%; }
  .hero__hours { top: 76px; font-size: 12px; }
  .seal { bottom: 28px; }

  .kodawari__grid { grid-template-columns: 1fr; gap: 40px; }
  .kodawari__lead { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .kodawari__fire { margin-top: 0; font-size: 150px; }
  .kodawari__text {
    height: 400px; margin: 0 auto; max-width: 100%;
    overflow-x: auto; font-size: 15px;
  }
  .kodawari__photo { margin-top: 0; }
  .kodawari__photo img { aspect-ratio: 4 / 5; }

  .menu__layout, .dishes__layout { grid-template-columns: 1fr; padding-left: 0; gap: 28px; }
  .menu .sec-head, .dishes .sec-head { flex-direction: row; align-items: center; padding-left: var(--gutter); margin: 0; }
  .menu .sec-head__line, .dishes .sec-head__line { width: clamp(40px, 12vw, 72px); height: 1px; }
  .menu .sec-head__dot, .dishes .sec-head__dot { margin: 0 0 0 -1px; }
  .menu .sec-head__title, .dishes .sec-head__title { margin: 0 0 0 18px; writing-mode: horizontal-tb; letter-spacing: .24em; font-size: 28px; }
  .menu__scroll { padding-left: 16px; padding-right: 16px; }
  .board { height: 440px; padding: 28px 20px 28px 24px; }
  .band { padding-left: var(--gutter); }
  .dish { width: 62vw; max-width: 260px; }

  .interior img { height: 560px; }
  .interior__words { right: 14px; top: 28px; transform: none; font-size: 18px; letter-spacing: .14em; line-height: 1.9; }
  .interior__words span:nth-child(3) { padding-top: 1.6em; margin-right: .5em; }
  .interior__words span:nth-child(2), .interior__words span:nth-child(4) { padding-top: 1em; }
  .plaque { left: 14px; right: 14px; max-width: none; bottom: 14px; padding: 16px 20px 18px; }

  .contact__grid { grid-template-columns: 1fr; gap: 20px; }
  .contact__left { justify-content: space-between; }
  .contact__info { padding-top: 24px; }
  .contact__info dl > div { grid-template-columns: 5.5em 1fr; gap: 10px; }
  .btn { display: block; text-align: center; padding: 18px 12px; }

  .footer { padding-bottom: 32px; }
}

@media (max-width: 420px) {
  .kodawari__fire { font-size: 124px; }
  .contact__vert { height: 340px; }
}
