/* =========================================================
   酒・煙処 もく — mok.bar
   方針: 「夜の品書き」
   ・黒地 × ラベンダー、ひらがな見出し、ぽってりした品書き書体は Canva 原稿を踏襲
   ・MOK ロゴの「角を落とした六角形」をパネル／タグ／箇条書きのモチーフに展開
   ・PC では見出しを縦書きにして、暖簾・品書きの佇まいに
   ========================================================= */

:root {
  --bg: #0a0911;
  --panel: #13111d;
  --line: rgba(180, 158, 255, .2);
  --line-strong: rgba(180, 158, 255, .55);
  --text: #f3f0fc;
  --muted: #aaa4c4;             /* 黒地で 7:1 以上 */
  --lavender: #b49eff;          /* Canva: mok ロゴ / About 文 */
  --blue: #4a86f0;              /* Canva 見出し #004aad を黒地で読める明度に */
  --pink: #cf74ee;

  --f-pop: "Hachi Maru Pop", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --f-head: "Yusei Magic", "Hiragino Maru Gothic ProN", sans-serif;
  --f-prose: "Zen Kurenaido", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-kanji: "Stick", "Hiragino Sans", sans-serif;

  --nav-h: 3.25rem;
  --cut: 14px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body { margin: 0; }

.site {
  position: relative;
  isolation: isolate;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-prose);
  font-size: 1.125rem;
  line-height: 1.9;
  letter-spacing: .04em;
  overflow-x: clip;
  line-break: strict;
  overflow-wrap: anywhere;
}
/* 日本語の文節で折り返す（対応ブラウザのみ。非対応は通常の折り返し） */
@supports (word-break: auto-phrase) { .site { word-break: auto-phrase; } }
/* <wbr> で折り返し位置を指定している箇所 */
.hero, .about { word-break: keep-all; }

.site img { max-width: 100%; height: auto; display: block; }
.site a { color: inherit; }
.site b, .site strong { font-weight: 400; color: var(--lavender); }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--lavender); color: #000; padding: .5rem 1rem;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; }

/* ---------- 角落としパネル（MOK ロゴの面取りモチーフ） ---------- */
.panel {
  position: relative;
  background: var(--panel);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.panel--line { background: var(--line-strong); }
.panel--line::before {
  content: ""; position: absolute; inset: 1px; z-index: -1;
  background: var(--bg);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.panel--line { isolation: isolate; }

/* ---------- 年齢告知バー ---------- */
.agebar {
  margin: 0;
  padding: .45rem 1rem;
  text-align: center;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--muted);
  background: #000;
}
.agebar span { display: inline-block; color: var(--text); }

/* ---------- ナビ ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(10, 9, 17, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: flex; align-items: center; gap: .5rem;
  min-height: 2.75rem;
  text-decoration: none;
  font-family: var(--f-head); font-size: 1.125rem; letter-spacing: .12em;
}
.nav__brand img { width: 22px; height: 32px; }
.nav nav { display: flex; gap: clamp(.875rem, 3vw, 2.25rem); }
.nav nav a {
  display: flex; align-items: center;
  min-height: 2.75rem;
  font-family: var(--f-head);
  font-size: clamp(.875rem, 3.5vw, 1rem);
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s;
}
.nav nav a:hover { color: var(--lavender); }

/* ---------- 煙（背景のにじみ。控えめに2つだけ） ---------- */
.smoke { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.smoke i {
  position: absolute; display: block;
  width: 56rem; height: 56rem; border-radius: 50%;
  filter: blur(90px); opacity: .13;
  animation: drift 40s ease-in-out infinite alternate;
}
.smoke i:nth-child(1) { background: #6a4ce0; left: -22rem; top: -8rem; }
.smoke i:nth-child(2) { background: #2a5cc8; right: -28rem; top: 58rem; animation-duration: 52s; animation-delay: -14s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6rem, -4rem, 0) scale(1.15); }
}

/* ---------- HERO ---------- */
.hero {
  min-height: calc(100svh - var(--nav-h) - 2rem);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  max-width: 74rem;
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 5vw, 3rem) 4rem;
}
.hero__mark { position: relative; justify-self: end; width: min(100%, 21rem); }
.hero__mark::before {            /* ロゴ背後の灯り */
  content: ""; position: absolute; inset: 8% -18%; z-index: -1;
  background: radial-gradient(closest-side, rgba(180, 158, 255, .3), transparent);
}
.hero__emblem { width: 100%; animation: rise 1.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(1.5rem); filter: blur(8px); } }

.hero h1 { margin: 0; font-weight: 400; }
.hero__kanji {
  display: block;
  font-family: var(--f-kanji);
  font-size: clamp(2rem, 6.2vw, 4.75rem);
  line-height: 1.1;
  letter-spacing: .28em;
  margin-bottom: .35em;
}
.hero__wordmark { width: min(100%, 38rem); }
.hero__tagline {
  margin: 1.75rem 0 0;
  font-family: var(--f-pop);
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.5;
  letter-spacing: .1em;
}
.hero__meta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.tag {
  --c: 9px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center;
  min-height: 2.75rem; padding: 0 1.25rem;
  font-family: var(--f-pop); font-size: .9375rem; line-height: 1;
  text-decoration: none;
  color: var(--lavender);
  background: var(--lavender);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.tag::before {
  content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--bg);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  transition: background .2s;
}
a.tag:hover::before { background: #1d1833; }
.site .tag--fill { color: #0d0a1a; }
.tag--fill::before { display: none; }

/* ---------- ABOUT ---------- */
.about {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) 1.25rem clamp(4rem, 10vw, 8rem);
  text-align: center;
  color: var(--lavender);
  font-size: clamp(1.1875rem, 3.2vw, 1.625rem);
  line-height: 2.2;
}
.about p { margin: 0; }
.about p + p { margin-top: 2.2em; }
.about em { font-style: normal; color: var(--text); font-size: 1.12em; }

/* ---------- セクション共通 ---------- */
.sec {
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
}
.sec__head { text-align: center; margin-bottom: clamp(2rem, 6vw, 3rem); }
.sec__head h2 {
  display: inline-block;
  margin: 0;
  font-family: var(--f-head);
  font-weight: 400;
  font-size: clamp(2rem, 8.6vw, 3.25rem);
  line-height: 1.25;
  letter-spacing: .08em;
  background: linear-gradient(var(--dir, 90deg), var(--blue) 0%, #8d72f2 55%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sec__head p {
  margin: .4rem 0 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .6875rem;
  line-height: 1.4;
  letter-spacing: .42em;
  color: var(--muted);
}

/* PC: 見出しを縦書きにして左に固定 */
@media (min-width: 900px) {
  .sec {
    display: grid;
    grid-template-columns: 9rem minmax(0, 40rem);
    justify-content: center;
    column-gap: clamp(3rem, 7vw, 6rem);
    align-items: start;
  }
  .sec__head {
    position: sticky; top: calc(var(--nav-h) + 2.5rem);
    margin: 0;
    writing-mode: vertical-rl;
    text-align: start;
    justify-self: end;
  }
  .sec__head h2 { --dir: 180deg; font-size: 3.25rem; line-height: 1.2; letter-spacing: .14em; }
  .sec__head p { margin: 0 .75rem 0 0; text-orientation: sideways; padding-top: .3rem; }
}

/* ---------- 営業時間 ---------- */
.hours__main { padding: 1.9rem 1rem 1.6rem; text-align: center; }
.hours__label {
  display: block;
  font-family: var(--f-pop); font-size: .9375rem; color: var(--muted);
  letter-spacing: .3em; text-indent: .3em;
}
.hours__time {
  display: block;
  font-family: var(--f-pop);
  font-size: clamp(2rem, 9.4vw, 3.5rem);
  line-height: 1.3;
}
.hours__time i { font-style: normal; color: var(--lavender); margin: 0 .15em; }
.hours__lo { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--line); }
.hours__lo div { padding: 1rem .5rem 1.15rem; text-align: center; }
.hours__lo div + div { border-left: 1px solid var(--line); }
.hours__lo dt { font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.hours__lo dd { margin: .1rem 0 0; font-family: var(--f-pop); font-size: 1.5rem; line-height: 1.4; }

/* ---------- 喫煙目的店の告知 ---------- */
.notice { margin-top: 1.25rem; padding: 1.4rem clamp(1.25rem, 4vw, 1.9rem); }
.notice p { margin: 0; }

/* ---------- ご利用案内（六角の箇条書き） ---------- */
.rules { list-style: none; margin: 2rem 0 0; padding: 0; }
.rules li {
  position: relative;
  padding: 1.1rem 0 1.1rem 2.1rem;
  border-bottom: 1px dashed var(--line);
}
.rules li:last-child { border-bottom: 0; }
.rules li::before {
  content: "";
  position: absolute; left: .2rem; top: 1.85rem;
  width: .8rem; height: .9rem;
  background: var(--lavender);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* ---------- 料金表 ---------- */
.menu { list-style: none; margin: 0; padding: 0; }
.menu > li { padding: 1.2rem 0; }
.menu > li:first-child { padding-top: 0; }
.menu > li + li { border-top: 1px dashed var(--line); }
.menu__row {
  display: flex; align-items: baseline; gap: .75rem;
  font-family: var(--f-pop);
  font-size: clamp(1.0625rem, 4.1vw, 1.5rem);
  line-height: 1.6;
}
.menu__name small { font-size: .7em; color: var(--muted); }
.menu__dots {
  flex: 1 1 1.25rem; min-width: 1.25rem;
  border-bottom: 2px dotted rgba(180, 158, 255, .4);
  translate: 0 -.35em;
}
.menu__price { color: var(--lavender); white-space: nowrap; }
.menu__note { margin: .15rem 0 0; font-size: .9375rem; line-height: 1.6; color: var(--muted); }

.option { margin-top: 2.25rem; padding: 1.75rem clamp(1.25rem, 4vw, 2rem) 1.1rem; }
.option h3 {
  margin: 0;
  font-family: var(--f-head); font-weight: 400; font-size: 1.375rem; line-height: 1.5; letter-spacing: .1em;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem;
}
.option h3 small { font-family: var(--f-prose); font-size: .9375rem; color: var(--muted); letter-spacing: .04em; }
.option__title { margin: 1rem 0 .9rem; font-family: var(--f-pop); font-size: 1rem; color: var(--lavender); }
.menu--compact > li { padding: .8rem 0; }
.menu--compact .menu__row { font-size: clamp(1rem, 3.7vw, 1.25rem); }

/* ---------- アクセス ---------- */
.access__station {
  margin: 0;
  font-family: var(--f-pop); font-size: 1rem; line-height: 1.7; color: var(--muted);
}
.access__station strong {
  display: block;
  font-size: clamp(1.375rem, 5.8vw, 2rem); line-height: 1.5;
  color: var(--text);
}

.route { list-style: none; counter-reset: step; margin: 2.25rem 0 0; padding: 0; }
.route li { counter-increment: step; position: relative; padding: .15rem 0 1.75rem 3.5rem; }
.route li::before {              /* 六角の番号 */
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.25rem; height: 2.5rem;
  display: grid; place-items: center;
  font-family: var(--f-pop); font-size: .9375rem; line-height: 1;
  color: #0d0a1a; background: var(--lavender);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.route li::after {
  content: "";
  position: absolute; left: calc(1.125rem - .5px); top: 2.75rem; bottom: .25rem;
  border-left: 1px dashed var(--line-strong);
}
.route li:last-child { padding-bottom: 0; }
.route li:last-child::after { display: none; }

.access__other { margin: 2.25rem 0 0; padding-top: 1.5rem; border-top: 1px dashed var(--line); color: var(--muted); font-size: 1rem; }

/* ---------- フッター ---------- */
.foot { padding: 4rem 1.25rem 3rem; text-align: center; background: #000; }
.foot img { margin: 0 auto 1rem; width: 44px; height: 64px; }
.foot p { margin: 0; }
.foot__name { font-family: var(--f-kanji); font-size: 1.25rem; letter-spacing: .25em; text-indent: .25em; }
.foot .foot__note { margin-top: .5rem; font-size: .875rem; color: var(--muted); }
.foot .foot__copy { margin-top: 1.5rem; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .6875rem; letter-spacing: .2em; color: var(--muted); }

/* ---------- スマホ ---------- */
@media (max-width: 720px) {
  .site { font-size: 1.0625rem; }
  .nav__brand span { display: none; }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.75rem;
    padding-top: 2.5rem;
  }
  .hero__mark { justify-self: center; width: min(44vw, 12rem); }
  .hero__kanji { letter-spacing: .3em; text-indent: .3em; }
  .hero__wordmark { width: min(78vw, 22rem); margin: 0 auto; }
  .hero__meta { justify-content: center; }
  .access__station { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .smoke i, .hero__emblem { animation: none; }
}
