/* Layout: 居酒屋の壁に貼る縦書きの短冊がページの顔。周りは紙と墨だけで静かにし、P2B の黄は「おすすめ」の札1枚にだけ使う。 */
:root {
  --paper: #f2f3ee;      /* ジェスモナイトのマットな白 */
  --strip: #fbfbf7;      /* 短冊の紙 */
  --sage: #cdd6ca;       /* 薄い緑がかったグレーの壁 */
  --ink: #1f2a24;        /* 緑みのある墨 */
  --ink-soft: #4d5a52;
  --rule: #b9c3b5;
  --wood: #d6b88c;       /* シナ合板 */
  --wood-ink: #2b2418;
  --lamp: #fcc800;       /* 灯り。おすすめの札 */
  --strip-shadow: 0 1px 0 rgba(31,42,36,.08), 0 10px 24px -14px rgba(31,42,36,.35);
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --hand: "Klee One", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  /* 画像の背景 (スケッチ・図面・ロゴ) が明るい色で固定なので、ダークモードは持たない */
  color-scheme: only light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--gothic); font-size: 16px; line-height: 1.9; letter-spacing: .03em;
  font-feature-settings: "palt" 0;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
rt { font-size: .5em; letter-spacing: .05em; }

.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
section { padding-block: 96px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-family: var(--mincho); font-weight: 700; }
h2 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.45; letter-spacing: .06em; }
h3 { font-size: 21px; line-height: 1.5; letter-spacing: .04em; }
p { margin: 0; max-width: 36em; }
.lead { font-size: 17px; }
.muted { color: var(--ink-soft); }

/* ヘッダー */
.top { padding-block: 20px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand b { font: 800 22px/1 var(--mincho); letter-spacing: .04em; }
.brand span { font-size: 13px; color: var(--ink-soft); }
.top nav { display: flex; gap: 22px; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--ink-soft); }
.top nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .top nav { display: none; } }

/* Hero: 短冊 */
.hero { padding-block: 24px 88px; }
/* 最初の画面は短冊だけで埋め、スケッチと数字はその下に置く */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 7vw, 88px); }
.hero-side { order: -1; }
.hero-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.sketch { margin: 0; background: #fff; padding: 14px 14px 10px; box-shadow: var(--strip-shadow); }
.sketch img { display: block; width: 100%; height: auto; }
.sketch figcaption { font: 400 13px/1.5 var(--hand); color: #4d5a52; padding-top: 8px; }

.strips { display: flex; flex-direction: row-reverse; justify-content: center; align-items: flex-start; gap: clamp(10px, 2.2vw, 32px); padding-top: 14px; }
.strip {
  position: relative; writing-mode: vertical-rl; text-orientation: mixed;
  background: var(--strip); color: #1f2a24;
  font-family: var(--mincho); font-weight: 800; letter-spacing: .14em; line-height: 1.25;
  /* 最長の「つくっています。」(8字) が最初の画面の高さに収まる大きさで止める */
  font-size: max(30px, min(6.2vw, 80px, calc((100svh - 230px) / 9.2)));
  padding: clamp(22px, 2.4vw, 34px) clamp(10px, 1.4vw, 20px) clamp(26px, 2.8vw, 40px);
  border: 1.5px solid #1f2a24; box-shadow: var(--strip-shadow);
}
.strip::before { content: ""; position: absolute; top: -9px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #1f2a24; box-shadow: 0 0 0 3px var(--paper); }
.strip:nth-child(1) { transform: rotate(.6deg); }
.strip:nth-child(2) { transform: rotate(-.5deg); margin-top: 10px; }
.strip:nth-child(3) { transform: rotate(.35deg); margin-top: 4px; }
.strip--osusume {
  background: var(--lamp); font-size: clamp(17px, 2.5vw, 32px); line-height: 1.5; letter-spacing: .1em;
  transform: rotate(-1.2deg); margin-top: clamp(26px, 4vw, 56px); padding-block: clamp(18px, 2vw, 28px) clamp(22px, 2.4vw, 32px);
}

.hero-text { display: flex; flex-direction: column; gap: 26px; container-type: inline-size; }
/* 4つの数字。狭い画面では2列×2行にし、区切りの線が行頭に取り残されないようにする */
.facts { margin: 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; border-block: 1.5px solid var(--ink); padding-block: 14px; }
.facts div { display: flex; flex-direction: column; gap: 2px; padding-inline: 20px; border-left: 1px solid var(--rule); }
.facts div:first-child { padding-left: 0; border-left: 0; }
.facts dt { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); line-height: 1.4; white-space: nowrap; }
.facts dd { margin: 0; font: 700 clamp(19px, 2.2vw, 23px)/1.3 var(--mincho); white-space: nowrap; }
@container (max-width: 520px) {
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-block: 0; }
  .facts div, .facts div:first-child { padding: 12px 0; border-left: 0; }
  .facts div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; text-decoration: none; font: 700 15px/1.4 var(--gothic); letter-spacing: .03em; padding: 14px 24px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }

@media (max-width: 860px) {
  .hero-grid { gap: 40px; }
  .hero-main { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  section { padding-block: 72px; }
}

/* お店のこと */
.shop-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
.shop-intro .lead { display: flex; flex-direction: column; gap: 18px; max-width: 34em; }
.shop-intro .lead p { max-width: none; }
.points { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.points div { border-top: 1.5px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.points p { font-size: 15px; color: var(--ink-soft); }
.creed { margin-top: 64px; padding: 28px 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.creed p { font-family: var(--mincho); font-weight: 700; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.8; max-width: 32em; }
.creed i { font-style: normal; writing-mode: vertical-rl; font: 700 13px/1 var(--gothic); letter-spacing: .3em; color: var(--ink-soft); padding-top: 4px; }
@media (max-width: 860px) {
  .shop-intro, .points { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ビール (木目の帯) */
.beer { background: var(--wood); color: var(--wood-ink); }
.beer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.taps { display: grid; gap: 0; border-top: 1.5px solid var(--wood-ink); }
.tap { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1.5px solid var(--wood-ink); }
.tap .handle { width: 14px; height: 54px; background: var(--wood-ink); border-radius: 4px 4px 2px 2px; justify-self: center; position: relative; }
.tap .handle::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: -8px; height: 8px; background: #7d705c; }
.tap b { display: block; font: 800 26px/1.2 var(--mincho); letter-spacing: .02em; }
.tap small { font-size: 13px; color: #4a3f2c; }
.tap em { font-style: normal; font-size: 14px; font-weight: 700; text-align: right; }
.logos { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.logo-slot { aspect-ratio: 4 / 3; max-width: 100%; background: #fbf6ec; border: 1.5px dashed #7d6a4c; display: grid; place-items: center; text-align: center; padding: 12px; color: #2b2418; }
.logo-slot b { font: 800 clamp(18px, 2.2vw, 22px)/1.25 var(--mincho); display: block; }
.logo-slot small { display: block; margin-top: 8px; font-size: 12px; }
.logo-slot.has-logo { border-style: solid; grid-template-rows: 100%; padding: 10%; }
.logo-slot.has-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 860px) { .beer .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* 募集 (店頭の貼り紙) */
.notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); background: var(--strip); color: #1f2a24; border: 1.5px solid #1f2a24; padding: clamp(24px, 4vw, 48px); box-shadow: var(--strip-shadow); }
.notice-title { writing-mode: vertical-rl; font: 800 clamp(34px, 5vw, 56px)/1.1 var(--mincho); letter-spacing: .2em; border-left: 1.5px solid #1f2a24; padding-left: clamp(16px, 3vw, 32px); }
.notice-title small { font: 700 14px/1 var(--gothic); letter-spacing: .2em; margin-block-start: 1em; display: block; }
.notice-body { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.notice-body .pledge { font-family: var(--mincho); font-weight: 700; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.7; }
.notice-body .intro { font-size: 15.5px; }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.role { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; border-top: 1.5px solid #1f2a24; padding-top: 16px; }
.role .one { font-size: 15.5px; }
.role .btn { border-color: #1f2a24; color: #1f2a24; padding: 10px 18px; font-size: 14px; }
.role .btn:hover { background: #1f2a24; color: #fbfbf7; }
/* 募集の詳細の中の「応募する」は塗りのボタン。.role .btn の文字色 (墨) が勝って塗りと同じ色になるのを防ぐ */
.role .btn--solid { background: #1f2a24; color: #fbfbf7; }
.role .btn--solid:hover { background: transparent; color: #1f2a24; }
.apply { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; border-top: 1px dashed #8e9a90; padding-top: 24px; }
.apply > p { font-size: 15px; flex: 1 1 22em; }
.apply .btn { border-color: #1f2a24; color: #fbfbf7; background: #1f2a24; }
.apply .btn:hover { background: transparent; color: #1f2a24; }
@media (max-width: 860px) {
  .notice { grid-template-columns: minmax(0, 1fr); }
  .notice-title { writing-mode: horizontal-tb; border-left: 0; padding-left: 0; border-bottom: 1.5px solid #1f2a24; padding-bottom: 14px; letter-spacing: .12em; }
  .notice-title small { display: inline; margin-left: 12px; }
  .roles { grid-template-columns: minmax(0, 1fr); }
}

/* 募集の詳細 (モーダル) */
dialog.job { width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 1.5px solid #1f2a24; background: #fbfbf7; color: #1f2a24; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog.job::backdrop { background: rgba(20,26,22,.55); }
.job-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(18px, 4vw, 32px); background: #fbfbf7; border-bottom: 1.5px solid #1f2a24; }
.job-head h3 { font-size: clamp(19px, 3vw, 23px); }
.job-close { font: 700 14px/1 var(--gothic); background: #1f2a24; color: #fbfbf7; border: 0; padding: 10px 14px; cursor: pointer; flex: none; }
.job-body { padding: 8px clamp(18px, 4vw, 32px) 32px; }
.job-body h4 { margin: 26px 0 8px; font: 700 15px/1.5 var(--gothic); letter-spacing: .06em; padding-left: 10px; border-left: 3px solid #1f2a24; }
.job-body p { font-size: 15px; max-width: none; }
.job-body p + p { margin-top: 10px; }
.job-body ul { margin: 0; padding-left: 1.2em; font-size: 15px; }
.job-body li + li { margin-top: 2px; }
.job-body .note { font-size: 13px; color: #4d5a52; }
.job-body .job-apply-btn { margin-top: 28px; }

/* クラファン */
.cf .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.ideas { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.ideas li { padding: 16px 0; border-bottom: 1px solid var(--rule); font-family: var(--mincho); font-weight: 700; font-size: 18px; }
.ideas li.more { font-family: var(--gothic); font-weight: 500; font-size: 15px; color: var(--ink-soft); border-bottom: 0; }
@media (max-width: 860px) { .cf .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* 進捗 */
.progress { background: var(--sage); }
.log { list-style: none; margin: 32px 0 0; padding: 0; position: relative; }
.log::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1.5px; background: var(--ink); }
.log li { position: relative; padding: 0 0 26px 32px; }
.log li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.log li.next::before { background: var(--sage); border: 1.5px solid var(--ink); }
.log li.next:last-child::before { background: var(--lamp); border-color: var(--ink); }
.log .d { font: 700 14px/1.6 var(--gothic); font-variant-numeric: tabular-nums; color: var(--ink-soft); display: block; }
.log strong { font: 700 19px/1.5 var(--mincho); display: block; }
.log p { font-size: 14.5px; color: var(--ink-soft); }
.progress .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.desk { position: relative; aspect-ratio: 780 / 760; width: 100%; max-width: 520px; justify-self: end; }
.desk img { position: absolute; height: auto; }
@media (max-width: 860px) { .progress .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; } .desk { justify-self: center; max-width: 420px; } }
/* JS が付ける ready のときだけ隠して待ち、on で 1 枚ずつ置く (JS 無し・動きを減らす設定では最初から全部見える) */
.desk.ready img { opacity: 0; transform: translateY(-24px) rotate(var(--r)) scale(1.05); }
.desk.ready.on img { opacity: 1; transform: none; transition: opacity .45s ease, transform .8s cubic-bezier(.2, .8, .25, 1); transition-delay: calc(var(--i) * 420ms + 150ms); }

/* ストーリー */
.story .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.years { margin-top: 28px; display: grid; gap: 14px; }
.years div { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 16px; align-items: baseline; }
.years b { font: 800 22px/1 var(--mincho); }
.members { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mincho); font-weight: 700; font-size: 16px; }
@media (max-width: 860px) { .story .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* シェア */
.share { border-top: 1px solid var(--rule); }
.share .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.urlrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.urlrow code { font: 700 15px/1.4 var(--gothic); letter-spacing: .02em; border: 1.5px solid var(--ink); padding: 12px 16px; user-select: all; min-width: 0; overflow-wrap: anywhere; }
.urlrow button { font: 700 14px var(--gothic); border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); padding: 10px 18px; cursor: pointer; }
.urlrow button[hidden] { display: none; }
.qr { width: 150px; height: 150px; display: grid; place-items: center; text-align: center; font-size: 12px; color: var(--ink-soft); outline: 1.5px dashed var(--rule); outline-offset: -1px; background: var(--strip); }
/* uqr の SVG は寸法を持たないので枠いっぱいに合わせる */
.qr svg { display: block; width: 100%; height: 100%; }
@media (max-width: 640px) { .share .wrap { grid-template-columns: minmax(0, 1fr); } }

footer { padding-block: 32px 80px; font-size: 13.5px; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; border-bottom: 1px solid var(--rule); }

/* 開いたときの1回だけ: 短冊が順に貼られる */
@media (prefers-reduced-motion: no-preference) {
  .strip { animation: hang .7s cubic-bezier(.2,.8,.2,1) both; }
  .strip:nth-child(1) { animation-delay: .05s; }
  .strip:nth-child(2) { animation-delay: .17s; }
  .strip:nth-child(3) { animation-delay: .29s; }
  .strip--osusume { animation-delay: .55s; }
  @keyframes hang { from { translate: 0 -14px; } to { translate: 0 0; } }
}

/* 応募のフォーム */
.apply-form { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.apply-form[hidden] { display: none; }
.apply-form label { display: flex; flex-direction: column; gap: 6px; font: 700 14px/1.5 var(--gothic); }
.apply-form input, .apply-form select, .apply-form textarea { font: 400 16px/1.6 var(--gothic); color: #1f2a24; background: #fff; border: 1.5px solid #1f2a24; border-radius: 0; padding: 10px 12px; width: 100%; box-sizing: border-box; }
.apply-form input[type="file"] { padding: 8px 10px; }
.apply-form input[aria-invalid="true"], .apply-form select[aria-invalid="true"] { border-color: #b3261e; }
.apply-form .err { font-weight: 500; color: #b3261e; }
.apply-form .err:empty { display: none; }
.apply-form .privacy { font-size: 13px; color: #4d5a52; }
.apply-form .btn { align-self: flex-start; }
.apply-form .btn:disabled { opacity: .6; cursor: default; }
.apply-result { margin-top: 18px; font-size: 15px; font-weight: 700; padding: 16px 18px; border: 1.5px solid #1f2a24; background: #fff; }
.apply-result.ok { background: var(--lamp); font-size: 17px; line-height: 1.7; padding: 22px 20px; }
.apply-result:focus { outline: none; }
.apply-result:empty { display: none; }
