/* サービス説明・規約ページ（アプリ本体とは別のサイトとして公開する下書き）。黒と白のモノトーン、のれんの動きだけ遊ぶ */
:root {
  --bg: #f3f2ef; --paper: #fbfbf9; --fg: #111; --muted: #6e6c68; --line: #dcdad5;
  --cloth: #111; --cloth-ink: #f3f2ef; --todo: #e6e3dc;
  --sans: "Avenir Next", "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --latin: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e0e0e; --paper: #161616; --fg: #f0efec; --muted: #9a9893; --line: #2a2a29; --cloth: #f0efec; --cloth-ink: #0e0e0e; --todo: #33312c; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--fg); font: 15px/1.9 var(--sans); letter-spacing: .02em; -webkit-font-smoothing: antialiased; }
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
a { color: inherit; }
header.site { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 28px; }
header.site a.brand { display: inline-flex; align-items: center; gap: 9px; font: 600 19px/1 var(--latin); letter-spacing: .04em; color: var(--fg); text-decoration: none; }
/* ロゴ: 3 枚ののれん */
.mon { display: inline-flex; gap: 2px; height: 16px; padding-top: 2px; border-top: 2px solid var(--fg); }
.mon i { display: block; width: 5px; background: var(--fg); }
nav a { color: var(--muted); text-decoration: none; font-size: 13px; margin-left: 16px; }
nav a:first-child { margin-left: 0; }
nav a:hover { color: var(--fg); }
h1 { font-size: 26px; line-height: 1.45; margin: 0 0 8px; font-weight: 700; letter-spacing: .02em; }
h2 { font-size: 19px; line-height: 1.5; margin: 40px 0 10px; font-weight: 700; }
p, li { margin: 0 0 10px; }
.lead { color: var(--muted); }
.todo { background: var(--todo); padding: 0 4px; border-radius: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; vertical-align: top; border-top: 1px solid var(--line); padding: 10px 8px; }
th { width: 32%; color: var(--muted); font-weight: 600; }
footer { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: 12px; }
footer a { color: var(--muted); margin-right: 14px; }
.note { border-left: 2px solid var(--fg); padding: 4px 12px; color: var(--muted); font-size: 14px; }
@media (max-width: 480px) { th { width: 38%; } h1 { font-size: 22px; } }

/* ---------------- LP（トップページ） ---------------- */
section { scroll-margin-top: 16px; }
.lp main { padding-top: 16px; }
.lp header.site { border-bottom: 0; margin-bottom: 4px; }

/* のれん: 竿に輪で掛けた墨染めの布。上はひと続きで下だけ 3 つに割れ、「の」を 1 字通して白く染め抜いたように見せる。さわると揺れ、「くぐる」で分かれる */
.noren { --sumi: #171614; --nuki: #ebe7df; --pole: #2b2925; position: relative; height: clamp(280px, 84vw, 420px); margin: 0 -16px; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (prefers-color-scheme: dark) { .noren { --sumi: #26241f; --pole: #6b665d; } }
.rod { position: absolute; top: 18px; left: 2%; right: 2%; height: 9px; border-radius: 5px; background: linear-gradient(180deg, rgba(255,255,255,.22), transparent 45%, rgba(0,0,0,.35)), var(--pole); z-index: 1; }
.beyond { position: absolute; inset: 60px 0 0; display: flex; align-items: center; justify-content: center; margin: 0; font: italic 500 20px/1 var(--latin); letter-spacing: .08em; color: var(--muted); opacity: 0; transition: opacity .4s; }
.noren.open .beyond { opacity: 1; }
.cloth { position: absolute; top: 12px; left: 9%; right: 9%; bottom: 0; }
/* 布の目と、たるみの陰 */
.band, .panel, .loops i { background-color: var(--sumi); background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px); }
.loops { position: absolute; top: 0; left: 4%; right: 4%; height: 26px; display: flex; justify-content: space-between; z-index: 2; }
.loops i { display: block; width: 7%; border-radius: 3px 3px 0 0; box-shadow: inset 0 3px 0 rgba(255,255,255,.07); }
.band { position: absolute; top: 24px; left: 0; right: 0; height: 15%; z-index: 3; box-shadow: inset 0 -1px 0 rgba(255,255,255,.08); }
.panels { position: absolute; top: calc(24px + 15%); left: 0; right: 0; bottom: 6%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; z-index: 2; }
.panel { position: relative; overflow: hidden; transform-origin: 50% 0; animation: sway 6s ease-in-out infinite; transition: transform .8s cubic-bezier(.3,.7,.2,1); }
.panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.28), transparent 22%, rgba(255,255,255,.05) 45%, transparent 62%, rgba(0,0,0,.22)); pointer-events: none; z-index: 1; }
/* 裾の縫い目 */
.panel::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 10px; border-top: 1px dashed rgba(235,231,223,.18); }
.panel:nth-child(2) { animation-duration: 6.8s; animation-delay: -2.1s; }
.panel:nth-child(3) { animation-duration: 5.6s; animation-delay: -4.2s; }
.panel span { position: absolute; top: -8%; bottom: 0; width: calc(300% + 6px); display: flex; align-items: center; justify-content: center; font: 600 clamp(170px, 50vw, 270px)/1 "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; color: var(--nuki); text-shadow: 0 0 1.5px var(--nuki); opacity: .94; }
.panel:nth-child(1) span { left: 0; }
.panel:nth-child(2) span { left: calc(-100% - 3px); }
.panel:nth-child(3) span { left: calc(-200% - 6px); }
@keyframes sway { 0%, 100% { transform: rotate(0deg) skewX(0deg); } 50% { transform: rotate(.6deg) skewX(-.6deg); } }
.noren.open .panel { animation: none; }
.noren.open .panel:nth-child(1) { transform-origin: 0 0; transform: rotate(11deg); }
.noren.open .panel:nth-child(3) { transform-origin: 100% 0; transform: rotate(-11deg); }
.noren.open .panel:nth-child(2) { transform: perspective(520px) rotateX(-64deg); }
.noren.flutter .panel { animation: flutter 1s ease-out; }
.noren.flutter .panel:nth-child(2) { animation-delay: .07s; }
.noren.flutter .panel:nth-child(3) { animation-delay: .14s; }
@keyframes flutter { 0% { transform: rotate(0); } 25% { transform: rotate(-4deg) skewX(2deg); } 55% { transform: rotate(2.5deg) skewX(-1deg); } 80% { transform: rotate(-1deg); } 100% { transform: rotate(0); } }

.hero-copy { padding: 36px 0 8px; }
.eyebrow { color: var(--muted); font: 500 12px/1.4 var(--latin); letter-spacing: .18em; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 { font-size: clamp(32px, 9vw, 48px); line-height: 1.3; letter-spacing: -.01em; font-weight: 800; margin-bottom: 18px; }
.hero .lead { max-width: 30em; }
.chips { list-style: none; padding: 0; margin: 22px 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { margin: 0; border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; font-size: 12px; color: var(--muted); }
.cta { display: inline-flex; align-items: center; gap: 14px; background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .06em; padding: 15px 26px; border-radius: 999px; transition: gap .25s; }
.cta::after { content: "→"; }
.cta:hover { gap: 20px; }

/* のれんの外と内 */
.sides { margin: 72px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--fg); border-bottom: 1px solid var(--fg); }
.side { padding: 26px 0; }
.side.out { padding-right: 24px; border-right: 1px solid var(--line); }
.side.in { padding-left: 24px; }
.side .label { font-size: 12px; letter-spacing: .12em; color: var(--muted); margin: 0 0 12px; }
.side ul { list-style: none; padding: 0; margin: 0 0 16px; }
.side li { font-size: 14px; padding-left: 1em; text-indent: -1em; margin-bottom: 6px; }
.side li::before { content: "– "; color: var(--muted); }
.side.out li { color: var(--muted); }
.side .sum { margin: 0; font-size: clamp(18px, 5vw, 22px); line-height: 1.5; font-weight: 700; }

/* 進む前のひとこと */
.gate { margin: 72px 0 0; padding: 36px 0; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--fg); }
.gate .gate-lead { color: var(--fg); margin: 0 0 16px; font-size: clamp(24px, 6.6vw, 32px); line-height: 1.5; font-weight: 800; letter-spacing: -.01em; }
.gate p { color: var(--muted); max-width: 32em; }
.gate .gate-hint { margin: 18px 0 0; color: var(--fg); font-weight: 700; letter-spacing: .06em; }

/* 見出し（英字を大きく、和文は小さく） */
.lp h2 { display: flex; flex-direction: column; gap: 2px; margin: 72px 0 18px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .08em; }
.lp h2 .en { order: -1; font: 500 clamp(34px, 9vw, 44px)/1.1 var(--latin); letter-spacing: -.02em; color: var(--fg); }

/* できること */
.kinds { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.kinds li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); margin: 0; }
.kinds .num { flex: none; width: 28px; font: 500 13px/2 var(--latin); color: var(--muted); }
.kinds h3 { font-size: 16px; line-height: 1.6; margin: 0 0 4px; font-weight: 700; }
.kinds p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* 料金 */
.menu { background: var(--cloth); color: var(--cloth-ink); border-radius: 18px; padding: 28px 22px 22px; }
.row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--cloth-ink) 18%, transparent); }
.row .dots { display: none; }
.row .item { font-size: 15px; white-space: nowrap; }
.row .yen { font: 500 30px/1.1 var(--latin); white-space: nowrap; text-align: right; letter-spacing: -.01em; }
.row .yen small { display: block; font: 400 11px/1.6 var(--sans); opacity: .65; letter-spacing: .06em; }
.menu ul { list-style: none; padding: 0; margin: 16px 0 0; font-size: 13px; opacity: .78; }
.menu ul li { padding-left: 1em; text-indent: -1em; margin-bottom: 6px; }
.menu ul li::before { content: "– "; }

/* はじめかた */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 24px 52px; margin: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--fg); color: var(--bg); display: flex; align-items: center; justify-content: center; font: 600 12px/1 var(--latin); z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 1px; background: var(--line); }
.steps b { display: block; font-size: 15.5px; line-height: 1.7; padding-top: 4px; }
.steps span { color: var(--muted); font-size: 13.5px; }
.steps a { color: var(--fg); font-weight: 700; text-underline-offset: 3px; }

/* お店の QR から来た人のはじめるコード */
.ticket { max-width: 340px; margin: 0 0 30px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--fg); border-radius: 14px; }
.ticket p { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.ticket .code { color: var(--fg); font: 500 32px/1.3 var(--latin); letter-spacing: .06em; font-variant-numeric: tabular-nums; margin-top: 4px; }

/* よくある質問 */
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 300 22px/1.2 var(--latin); color: var(--muted); flex: none; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); font-size: 13.5px; margin: 10px 0 0; }

.lp footer .mon { margin: 18px 0 8px; }

@media (max-width: 600px) {
  .kinds, .sides { grid-template-columns: 1fr; }
  .side.out { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .side.in { padding-left: 0; }
  .lp h2 { margin-top: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel { animation: none !important; transition: none; }
}
