:root {
  --ac: #ff8c00;
  --al: #fff5e6;
  --ad: #c86a00;
  --tx: #2d2d2d;
  --mu: #9a9a9a;
  --bd: #ececec;
  --pl: #faf8f5;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #fff; }
body {
  color: var(--tx);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: var(--tx); }
input::placeholder, textarea::placeholder { color: #c4c4c4; }

/* 画面いっぱい。下のボタンはいつも見えるところに */
.app { max-width: 480px; min-height: 100svh; margin: 0 auto; display: flex; flex-direction: column; }
.tp { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 0; }
.lg { font-family: 'Cormorant Garamond', serif; font-size: 26px; letter-spacing: .06em; }
.ct { font-size: 12px; color: var(--mu); letter-spacing: .08em; }
.ct b { font-weight: 400; font-size: 15px; color: var(--tx); }
.br { height: 2px; margin: 14px 24px 0; background: var(--bd); }
.br i { display: block; height: 100%; width: 10%; background: var(--ac); transition: width .4s ease; }

main { flex: 1; padding: 34px 24px 20px; }
.sc, .dn { display: none; }
.sc.on, .dn.on { display: block; animation: in .35s ease; }
@keyframes in { from { opacity: 0; transform: translateX(14px); } }
.sc.bk-in { animation-name: inb; }
@keyframes inb { from { opacity: 0; transform: translateX(-14px); } }

.q { font-size: 22px; font-weight: 400; line-height: 1.55; letter-spacing: .04em; }
.s { margin-top: 8px; font-size: 12px; color: var(--mu); letter-spacing: .05em; }
.lb { margin: 24px 0 8px; font-size: 12px; color: var(--mu); letter-spacing: .06em; }

/* 選ぶボタン */
.cs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.lb + .cs { margin-top: 0; }
.cs button {
  padding: 11px 16px;
  border: 1px solid var(--bd);
  border-radius: 999px;
  font-size: 14px;
  background: #fff;
  transition: background .2s, border-color .2s, color .2s;
}
.cs button.on { border-color: var(--ac); background: var(--al); color: var(--ad); }
.pk { margin-top: 10px; }
.pk button { padding: 7px 12px; font-size: 12px; color: var(--mu); }

/* 最初に答える大きいボタン。どのページもこれ（2列） */
.tl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.tl button { min-height: 76px; padding: 16px 14px; border: 1px solid var(--bd); border-radius: 16px; text-align: left; background: #fff; transition: background .2s, border-color .2s; }
.tl b { display: block; font-weight: 400; font-size: 15px; line-height: 1.5; }
.tl small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.5; color: var(--mu); }
.tl button.on { border-color: var(--ac); background: var(--al); }
.tl button.on b { color: var(--ad); }

/* 他社：行ごとに見出し */
.hm { margin-top: 18px; }
.hm p { margin: 16px 0 8px; font-size: 11px; color: var(--mu); letter-spacing: .1em; }
.hm p:first-child { margin-top: 0; }
.hm div { display: flex; flex-wrap: wrap; gap: 6px; }
.hm button { padding: 8px 12px; border: 1px solid var(--bd); border-radius: 999px; font-size: 13px; background: #fff; transition: background .2s, border-color .2s, color .2s; }
.hm button.on { border-color: var(--ac); background: var(--al); color: var(--ad); }

/* 選んだときだけ出てくる */
.sub { display: none; }
.sub.on { display: block; animation: in .3s ease; }

/* ＋− */
.sp { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 12px 0; border-bottom: 1px solid var(--bd); font-size: 15px; }
.q + .sp { margin-top: 22px; }
.sp > span:last-child { display: flex; align-items: center; gap: 16px; }
.sp small { font-size: 11px; color: var(--mu); }
.sp input { width: 64px; padding: 6px 0; border: 0; border-bottom: 1px solid var(--bd); border-radius: 0; text-align: center; font-size: 19px; outline: none; }
.sp input:focus { border-color: var(--ac); }
.sp input.ng { border-color: #e05a4f; }
.sp em { font-style: normal; font-size: 13px; color: var(--mu); }
.sp button { width: 38px; height: 38px; border: 1px solid var(--bd); border-radius: 50%; color: var(--mu); font-size: 16px; }
.sp b { width: 18px; text-align: center; font-weight: 400; font-size: 19px; }

/* 入力欄 */
.f { margin-top: 12px; }
.f label { display: block; font-size: 11px; color: var(--mu); }
.f input, .f textarea { width: 100%; padding: 10px 2px; font-size: 16px; border: 0; border-bottom: 1px solid var(--bd); border-radius: 0; background: transparent; outline: none; transition: border-color .2s; }
.f textarea { border: 1px solid var(--bd); border-radius: 12px; padding: 12px 14px; resize: vertical; }
.f input:focus, .f textarea:focus { border-color: var(--ac); }
.f input.ng { border-color: #e05a4f; }
.zp { display: flex; gap: 10px; align-items: flex-end; }
.zp input { flex: 1; }
.zp button { flex: none; padding: 9px 14px; border: 1px solid var(--bd); border-radius: 999px; font-size: 12px; color: var(--tx); }

/* LINEはおすすめ */
.cs .ln span { margin-left: 6px; padding: 2px 6px; border-radius: 999px; background: #06c755; color: #fff; font-size: 10px; vertical-align: 1px; }
.cs .ln { border-color: #bfe8cf; }
.cs .ln.on { border-color: #06c755; background: #e9f9ef; color: #059a42; }

.tst { white-space: nowrap; position: fixed; left: 50%; top: 70px; z-index: 9; transform: translate(-50%, -10px); padding: 10px 18px; border-radius: 999px; background: var(--tx); color: #fff; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.tst.on { opacity: 1; transform: translate(-50%, 0); }

/* ご予算の入力 */
.yn { margin-top: 22px; }
.yn label { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--bd); }
.yn span { flex: 1; font-size: 14px; }
.yn small { display: block; font-size: 11px; color: var(--mu); }
.yn input { width: 130px; padding: 4px 0; border: 0; text-align: right; font-size: 22px; font-weight: 300; outline: none; background: transparent; }
.yn em { width: 2.4em; font-style: normal; font-size: 12px; color: var(--mu); }
.yn label:focus-within { border-color: var(--ac); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ad { min-height: 1em; margin-top: 6px; font-size: 12px; color: var(--ad); }

/* ご予算 */
.mo { margin-top: 22px; padding: 18px; border-radius: 18px; background: var(--al); text-align: center; }
.mo small { display: block; font-size: 11px; color: #b07a3a; letter-spacing: .1em; }
.mo p { margin: 4px 0 2px; font-size: 34px; font-weight: 300; line-height: 1.2; color: var(--ad); letter-spacing: .02em; }
.mo p i { margin-left: 4px; font-style: normal; font-size: 13px; }
.mo small + small { margin-top: 2px; color: var(--mu); letter-spacing: .04em; }

.ck { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 14px 16px; border-radius: 14px; background: var(--pl); font-size: 13px; line-height: 1.7; cursor: pointer; }
.ck input { position: absolute; opacity: 0; pointer-events: none; }
.ck i { flex: none; width: 22px; height: 22px; margin-top: 1px; border: 1px solid #d6d6d6; border-radius: 7px; background: #fff; transition: background .2s, border-color .2s; }
.ck svg, .dn-i svg { display: block; width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ck input:checked + i { background: var(--ac); border-color: var(--ac); }
.ck small { display: block; margin-top: 2px; font-size: 11px; color: var(--mu); }

/* 下のボタン */
.er { min-height: 1.4em; padding: 0 24px; font-size: 12px; color: #e05a4f; text-align: center; }
.ft { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 12px 24px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, #fff 30%); }
.bk { flex: 1; padding: 15px; border: 1px solid #dcdcdc; border-radius: 999px; font-size: 14px; color: var(--mu); letter-spacing: .1em; background: #fff; }
.bk.no { display: none; }
.nx { flex: 1; padding: 15px; border-radius: 999px; background: var(--tx); color: #fff; font-size: 14px; letter-spacing: .1em; transition: opacity .2s; }
.nx:disabled { opacity: .4; }
.ft.end { display: none; }
.pv { padding: 4px 0 22px; text-align: center; font-size: 11px; }
.pv a { color: var(--mu); }

/* 送信したあと */
.dn { padding-top: 60px; text-align: center; }
.dn-i { width: 60px; height: 60px; margin: 0 auto 26px; padding: 14px; border-radius: 50%; background: var(--ac); }
.dn-i svg { stroke-width: 1.8; }
.dn p { margin-top: 14px; font-size: 14px; line-height: 2; color: #666; }
.dn .sg { margin-top: 44px; font-size: 11px; color: var(--mu); letter-spacing: .3em; }

/* ===== 左の写真（PC）／最初の画面（スマホ） ===== */
.vw { display: none; position: relative; overflow: hidden; background: #222; cursor: pointer; }
.vw figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.vw figure.on { opacity: 1; }
.vw img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.vw figure.on img { transform: scale(1); }
.vw::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.5)); pointer-events: none; }
.vw-c { position: absolute; z-index: 1; color: #fff; }
.vw-c small { display: block; font-size: 11px; letter-spacing: .4em; opacity: .8; }
.vw-c b { display: block; margin: 4px 0 2px; font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 52px; letter-spacing: .04em; line-height: 1.1; }
.vw-c span { font-size: 12px; letter-spacing: .2em; opacity: .85; }
.vw-d { position: absolute; z-index: 1; display: flex; gap: 8px; }
.vw-d i { width: 18px; height: 2px; background: rgba(255,255,255,.4); transition: background .4s, width .4s; }
.vw-d i.on { width: 32px; background: #fff; }

/* 最初の画面の中身 */
.vw-op, .op { text-align: center; }
.vw-op small, .op small { display: block; font-size: 11px; letter-spacing: .4em; }
.vw-op h1, .op h1 { margin: 6px 0 18px; font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 64px; letter-spacing: .06em; line-height: 1; }
.vw-op p, .op p { font-size: 13px; line-height: 2; letter-spacing: .06em; }
.go { display: block; width: 100%; max-width: 280px; margin: 30px auto 10px; padding: 16px; border-radius: 999px; font-size: 14px; letter-spacing: .2em; }
.vw-op em, .op em { font-style: normal; font-size: 11px; letter-spacing: .1em; opacity: .7; }
.op { display: none; padding-top: 18vh; }
.op .go { background: var(--tx); color: #fff; }
.op small, .op em { color: var(--mu); }

/* スマホ：最初だけ写真を全面に */
@media (max-width: 899px) {
  body.st .vw { display: block; position: fixed; inset: 0; z-index: 20; }
  body.st .app { display: none; }
  .vw::after { background: linear-gradient(rgba(0,0,0,.2), rgba(0,0,0,0) 30%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.7)); }
  .vw-c { left: 24px; top: 26px; }
  .vw-c b { font-size: 30px; }
  .vw-c small { font-size: 10px; }
  .vw-d { left: 24px; top: 118px; }
  .vw-op { position: absolute; left: 24px; right: 24px; bottom: calc(40px + env(safe-area-inset-bottom)); z-index: 1; color: #fff; }
  .vw-op .go { background: #fff; color: var(--tx); }
  .vw.out { animation: vwo .6s ease forwards; }
}
@keyframes vwo { to { opacity: 0; transform: scale(1.03); } }

/* PC：左に写真（規格ページと同じく写真の比率ぶんだけ） */
@media (min-width: 900px) {
  body { display: flex; }
  .vw { display: block; position: sticky; top: 0; flex: none; width: calc(100vh * 720 / 1200); max-width: 50vw; height: 100vh; }
  .vw-op { display: none; }
  .vw-c { left: 40px; bottom: 52px; }
  .vw-d { right: 40px; bottom: 58px; }
  body.st .op { display: block; }
  body.st .sc.on { display: none; }
  body.st .ft, body.st .tp, body.st .br { visibility: hidden; }
  .app { flex: 1; max-width: none; }
  .app > * { width: 100%; max-width: 480px; margin-left: auto; margin-right: auto; }
  .app > .br { max-width: 432px; }
  .tst { left: auto; right: 240px; transform: none; }
  .tst.on { transform: none; }
}

/* LINEUPへ飛ぶか聞く */
.cf { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.45); }
.cf.on { display: flex; animation: cfi .25s ease; }
@keyframes cfi { from { opacity: 0; } }
.cf > div { width: 100%; max-width: 340px; padding: 28px 24px 22px; border-radius: 20px; background: #fff; text-align: center; }
.cf p { font-size: 15px; letter-spacing: .04em; }
.cf small { display: block; margin-top: 8px; font-size: 11px; line-height: 1.7; color: var(--mu); }
.cf span { display: flex; gap: 10px; margin-top: 22px; }
.cf button { flex: 1; padding: 13px; border-radius: 999px; font-size: 14px; letter-spacing: .1em; }
#cf-n { border: 1px solid #dcdcdc; color: var(--mu); }
#cf-y { background: var(--tx); color: #fff; }

/* はじめての方／チェックイン */
.go small { display: block; margin-top: 2px; font-size: 10px; letter-spacing: .1em; opacity: .7; }
.go + .go { margin-top: 0; }
.go.ci { background: transparent !important; border: 1px solid currentColor; }
.op .go.ci { color: var(--tx); }
.vw-op .go.ci { color: #fff; }
.ds { margin-top: 10px; font-size: 12px; color: var(--mu); }

/* 来場物件 */
.qr { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 24px; padding: 18px; border-radius: 16px; background: var(--tx); color: #fff; font-size: 14px; letter-spacing: .08em; }
.qr svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* QR読み取り */
.qv { position: fixed; inset: 0; z-index: 60; display: none; background: #000; }
.qv.on { display: block; }
.qv video { width: 100%; height: 100%; object-fit: cover; }
.qv i { position: absolute; left: 50%; top: 45%; width: 64vmin; height: 64vmin; max-width: 300px; max-height: 300px; transform: translate(-50%, -50%); border: 2px solid rgba(255,255,255,.9); border-radius: 22px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
.qv p { position: absolute; left: 0; right: 0; top: calc(45% + min(32vmin, 150px) + 22px); color: #fff; text-align: center; font-size: 13px; letter-spacing: .06em; }
.qv button { position: absolute; left: 50%; bottom: calc(36px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 12px 36px; border: 1px solid #fff; border-radius: 999px; color: #fff; font-size: 14px; letter-spacing: .1em; }

/* チェックイン：名前が見つからないとき */
.nf { display: none; margin-top: 28px; padding: 20px 18px; border-radius: 16px; background: var(--pl); }
.nf.on { display: block; animation: in .3s ease; }
.nf p { font-size: 15px; }
.nf small { display: block; margin-top: 4px; font-size: 12px; color: var(--mu); }
.nf button { display: block; width: 100%; margin-top: 12px; padding: 14px; border-radius: 999px; font-size: 14px; letter-spacing: .06em; }
#nf-n { margin-top: 18px; background: var(--tx); color: #fff; }
#nf-c { border: 1px solid #dcdcdc; color: var(--mu); }

/* 送信後 */
.cl { display: block; width: 100%; max-width: 240px; margin: 40px auto 0; padding: 14px; border: 1px solid #dcdcdc; border-radius: 999px; font-size: 14px; letter-spacing: .2em; color: var(--mu); }
.cl + .sg { margin-top: 32px; }
/* 完了画面：おうちで書いた人だけ見学へ */
.sf { display: none; margin: 34px auto 0; max-width: 320px; }
.sf.on { display: block; }
.sf-t { font-size: 15px !important; font-weight: 700; color: #333 !important; line-height: 1.8 !important; }
.sf-c { position: relative; margin-top: 18px; padding: 26px 20px 22px; border-radius: 16px; background: #fff; border: 2px solid var(--ac); overflow: hidden; }
.sf-r { position: absolute; top: 14px; right: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--ac); }
.sf-r::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--ac); animation: sfp 1.4s ease-out infinite; }
@keyframes sfp { to { transform: scale(3); opacity: 0; } }
.sf-c p { margin-top: 0 !important; }
.sf-n { font-size: 22px !important; font-weight: 700; color: #222 !important; letter-spacing: .06em; }
.sf-p { margin-top: 6px !important; font-size: 13px !important; color: #666 !important; }
.sf-k { margin-top: 14px !important; font-size: 34px !important; line-height: 1.2 !important; font-weight: 700; color: var(--ac) !important; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.sf-d { font-size: 12px !important; color: var(--mu) !important; letter-spacing: .1em; }
.dn-a { display: none; max-width: 300px; margin: 34px auto 0; }
.dn-a.on { display: block; }
.dn-a p { margin: 0 0 14px; font-size: 13px; color: var(--mu); }
.dn-a a { display: block; margin-top: 10px; padding: 14px; border-radius: 999px; font-size: 14px; letter-spacing: .1em; text-decoration: none; }
.dn-a .a1 { background: var(--ac); color: #fff; }
.dn-a .a2 { border: 1px solid var(--ac); color: var(--ac); }

/* キーボードが出たらボタンも一緒に上がる（iPhone用。JSで --kb を入れる） */
.ft { transform: translateY(calc(var(--kb, 0px) * -1)); transition: transform .15s; }

.sl { position: relative; }
.sl select { width: 100%; padding: 16px 44px 16px 16px; border: 1px solid var(--bd); border-radius: 16px; background: #fff; font: inherit; font-size: 16px; color: var(--tx); appearance: none; -webkit-appearance: none; outline: none; }
.sl select:focus { border-color: var(--ac); }
.sl select.ng { border-color: #e05a4f; }
.sl::after { content: ''; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--mu); border-bottom: 1.5px solid var(--mu); transform: rotate(45deg); pointer-events: none; }
