/* クラリスAI LP カンプ。色と書体は、サービスの画面（濃紺の地・金・クリームのカード・明朝の見出し）に合わせる */
:root {
  --night: #101a38;
  --deep: #0a1128;
  --gold: #e2b562;
  --parch: #fbf7ec;
  --ink: #1b2340;
  --mist: #aeb7d6;
  --line: rgba(226, 181, 98, 0.35);
  --f-display: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --header: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header); }
body {
  margin: 0;
  background: var(--night);
  color: var(--parch);
  font: 400 17px/1.9 var(--f-body);
  word-break: auto-phrase;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.4; margin: 0; letter-spacing: 0.04em; }
h2 { font-size: clamp(26px, 3vw, 40px); }
h2 span { display: inline-block; } /* 見出しに読点を付けないので、折り返すなら span の切れ目で */
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 36px; border-radius: 999px;
  font-weight: 700; letter-spacing: 0.08em; text-decoration: none;
}
.btn-gold { background: linear-gradient(180deg, #ecc677, var(--gold)); color: var(--ink); box-shadow: 0 0 24px rgba(226, 181, 98, 0.35); }
.btn-gold:hover { background: #f1d08a; }
.btn-sm { min-height: 44px; padding: 0 24px; font-size: 15px; }
.link-quiet { color: var(--parch); font-weight: 500; text-underline-offset: 6px; }
/* 登録ボタン（登録する・登録してパークに入る）：ずっと動かして目を引く。光の筋が走り、まわりに金の輪が広がり、矢印が進む向きへ押し出す */
.btn-join {
  position: relative; isolation: isolate; overflow: hidden; gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 3px 10px rgba(255, 190, 60, 0.45);
  animation: join-ring 2.4s ease-out infinite;
}
/* 金を鮮やかに（下の色を茶に寄せない）。.btn-gold:hover の淡い単色で、くすませない */
.btn-join, .btn-join:hover { background: linear-gradient(180deg, #ffeaa6, #ffcd57 55%, #f2ae2e); }
.btn-join:hover { filter: brightness(1.06); }
.btn-join:not(.btn-sm) { min-height: 64px; padding: 0 40px; font-size: 18px; }
.btn-join::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.8) 50%, transparent 60%) 150% 0 / 250% 100% no-repeat;
  animation: join-shine 3s ease-in-out infinite;
}
.btn-join::after {
  content: ""; flex: none; width: 1.1em; height: 1.1em; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: arrow-nudge 1.4s ease-in-out infinite;
}
@keyframes join-ring {
  from { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 3px 10px rgba(255, 190, 60, 0.45), 0 0 0 0 rgba(255, 205, 87, 0.8); }
  70%, to { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 3px 10px rgba(255, 190, 60, 0.45), 0 0 0 6px rgba(255, 205, 87, 0); }
}
@keyframes join-shine { 55%, to { background-position: -50% 0; } }
@keyframes arrow-nudge { 50% { transform: translateX(3px); } }

/* 見出しを灯す（main.js が中身を .hx で包み、--p を 0 から 1.2 へ動かす）：金の光を先頭に、文字の色を左から塗っていく */
.hx { display: inline-block; position: relative; }
/* h2 が灯るときに散る星（main.js が .hx-stars に入れて動かす）。クリームの地でも見えるよう、金の光をまとわせる */
.hx-stars { position: absolute; inset: 0; pointer-events: none; }
.hx-stars svg { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); filter: drop-shadow(0 0 3px rgba(226, 181, 98, 0.95)); }
.hx.is-sweep, .hx.is-sweep * { color: transparent !important; } /* ゾーンの見出しの「つくる」などは金の色が付いているので、それより優先する */
.hx.is-sweep {
  background: linear-gradient(90deg, var(--hc) calc(var(--p) * 100% - 18%), var(--gold) calc(var(--p) * 100% - 6%), #fff4d2 calc(var(--p) * 100% - 2%), transparent calc(var(--p) * 100%));
  -webkit-background-clip: text; background-clip: text;
}

/* ヘッダー：ファーストビューの上では透明、スクロールしたら濃紺 */
.site-header { position: fixed; inset: 0 0 auto; z-index: 10; height: var(--header); transition: background-color 0.3s; }
.site-header.is-solid { background: rgba(10, 17, 40, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.logo { display: block; text-decoration: none; }
.header-nav { display: flex; gap: 32px; margin-left: auto; font-size: 15px; font-weight: 500; }
.header-nav a { text-decoration: none; color: var(--mist); }
.header-nav a:hover { color: var(--parch); }

/* ファーストビュー */
.fv { position: relative; background: var(--deep); }
.fv-media { position: relative; overflow: hidden; }
.fv-media img { width: 100%; }
.fv-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 17, 40, 0.88) 0%, rgba(10, 17, 40, 0.55) 34%, rgba(10, 17, 40, 0) 58%),
    linear-gradient(0deg, rgba(10, 17, 40, 0.7) 0%, rgba(10, 17, 40, 0) 30%);
}
/* 吹き出しは噴水のクラリスの頭の右上に置く（画像の比率を保っているので % で位置が合う） */
.fv-bubble {
  position: absolute; z-index: 1; left: 55.5%; top: 31%;
  padding: 14px 22px; border-radius: 20px 20px 20px 4px;
  background: var(--parch); color: var(--ink);
  font-size: 16px; font-weight: 500; line-height: 1.7;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.fv-copy { position: absolute; z-index: 1; left: max(24px, (100% - 1200px) / 2); bottom: 12%; width: min(640px, 46%); }
.fv-copy h1 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.35; }
.fv-copy p { margin-top: 20px; color: #dfe4f3; }
.fv-actions { display: flex; align-items: center; gap: 32px; margin-top: 36px; }

/* お悩み：クリーム地に、会話の吹き出し。訪れた人の声は1通ずつ色を変え（空色・ピンク・藤色）、クラリスの返事は金 */
.worry { background: var(--parch); color: var(--ink); padding: 140px 0 120px; }
.worry-inner { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; }
.worry-head h2 { position: sticky; top: calc(var(--header) + 48px); }
.chat { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.msg-you {
  justify-self: end; max-width: 30em; padding: 18px 26px;
  border-radius: 22px 22px 4px 22px; background: #d6eef6; border: 2px solid #5abbdc; color: var(--ink);
  font-size: 20px; font-weight: 500; line-height: 1.7;
}
.msg-you:nth-child(2) { margin-right: 72px; background: #fbe1e7; border-color: #ee889f; }
.msg-you:nth-child(3) { background: #ede8fb; border-color: #b7a2f0; }
.msg-claris { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 16px; margin-top: 24px; }
.msg-claris img { width: 104px; }
/* 返事と「入力中」の点は同じ場所に重ねる（点は main.js が足す） */
.msg-claris p, .typing { grid-area: 1 / 2; justify-self: start; }
.msg-claris p, .typing { border-radius: 22px 22px 22px 4px; background: linear-gradient(135deg, #fffaea, #fde7ae); border: 2px solid #f6cb68; }
.msg-claris p { max-width: 26em; padding: 20px 26px; font-size: 21px; font-weight: 500; line-height: 1.7; }
.typing { display: flex; gap: 6px; padding: 24px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: #b88a3a; animation: typing 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 30% { transform: translateY(-4px); background: #7a5a26; } }

/* 変わること：入場チケットが3枚。表（これまで）は白い紙にマゼンタの半券、裏（クラリスAIと）は夜のパークの絵。
   ふだんは表と裏を上下に並べ、main.js が .is-3d を付けたときだけ重ねて裏返す（動きを減らす設定でも、両方を読める） */
.change { background: var(--parch); color: var(--ink); padding: 40px 0 160px; overflow-x: clip; }
.tickets { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 28px; }
.ticket { --stub: 120px; --tear: 16px; display: grid; gap: 12px; } /* 半券の幅と、もぎったときに右側がずれる長さ */
.tk-face { position: relative; isolation: isolate; display: grid; grid-template-columns: var(--stub) 1fr; min-height: 150px; border-radius: 16px; overflow: hidden; }
.tk-front { background: #fff; box-shadow: inset 0 0 0 1px #ecdcc0, 0 14px 34px rgba(120, 90, 40, 0.12); }
.tk-back { background: var(--night); color: #fff; box-shadow: 0 0 0 2px var(--gold), 0 0 36px rgba(226, 181, 98, 0.45); }
/* 半券：点線の切り取り線と、上下の丸い切り欠き */
.tk-stub { position: relative; display: grid; place-content: center; justify-items: center; gap: 10px; border-right: 2px dashed; font-weight: 700; letter-spacing: 0.3em; }
.tk-stub::before, .tk-stub::after { content: ""; position: absolute; right: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--parch); }
.tk-stub::before { top: -11px; }
.tk-stub::after { bottom: -11px; }
.tk-front .tk-stub { background: #fbe3f0; color: #b0186e; border-color: #f3a9cf; }
.tk-stub > span { writing-mode: vertical-rl; font-size: 14px; letter-spacing: 0.2em; }
.tk-stub .ic { width: 22px; height: 22px; padding: 11px; }
.tk-back .tk-stub { background: rgba(16, 26, 56, 0.72); color: var(--gold); border-color: var(--gold); }
/* 縦書きは中の文字にだけ付ける（半券そのものを縦書きにすると、Safari で券の高さいっぱいに伸びず、下の切り欠きが上にずれる） */
.tk-back .tk-stub > span { font-size: 12px; letter-spacing: 0.32em; padding-top: 0.32em; } /* 字間は最後の字の後ろにも付くので、同じだけ上にも空けて真ん中に */
.ic {
  flex: none; box-sizing: content-box; width: 26px; height: 26px; padding: 14px; border-radius: 50%;
  background: #e0218a; color: #fff; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.tk-body { display: flex; flex-direction: column; justify-content: center; gap: 4px; margin: 0; padding: 28px 44px; }
.tk-text { font: 800 26px/1.5 var(--f-display); letter-spacing: 0.04em; }
.tk-body small { color: var(--gold); font-size: 14px; font-weight: 700; letter-spacing: 0.14em; }
.tk-back .tk-text { text-shadow: 0 0 16px rgba(226, 181, 98, 0.65); }
/* 裏：夜のパークの絵に濃紺を重ねて文の側を暗くする。裏返りきると、金の光が一度走る（main.js が --shine を動かす） */
.tk-back img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.tk-back::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16, 26, 56, 0.96) 45%, rgba(16, 26, 56, 0.6) 72%, rgba(16, 26, 56, 0.12)); }
.tk-back::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 236, 190, 0.45) 50%, transparent 58%) var(--shine, 150%) 0 / 250% 100% no-repeat;
}
.ticket:nth-child(1) .tk-back img { object-position: 50% 62%; }
.ticket:nth-child(2) .tk-back img { object-position: 50% 50%; }
.ticket:nth-child(3) .tk-back img { object-position: 50% 18%; }
/* 重ねて裏返す（main.js が付ける） */
.change.is-3d .ticket { gap: 0; transform-style: preserve-3d; }
.change.is-3d .tk-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.change.is-3d .tk-back { transform: rotateY(180deg); }
/* もぎり：回るとき、券が点線で切り離され、右側だけが少し右へずれる。各面の写し（.is-stub、main.js が作る）には半券だけを、
   元の面には残りだけを見せる。切り口は点線の真ん中（--cut）。券のまわりの影は元の面が受け持つので、半券の上下は切らない（切ると影に筋が出る） */
.change.is-3d .tk-face {
  --cut: calc(var(--stub) - 1px);
  clip-path: polygon(-60px -60px, calc(100% + 60px) -60px, calc(100% + 60px) calc(100% + 60px), -60px calc(100% + 60px), -60px 100%, var(--cut) 100%, var(--cut) 0, -60px 0);
  translate: calc(var(--torn, 0) * var(--tear)) 0;
}
.change.is-3d .tk-back { translate: calc(var(--torn, 0) * var(--tear) * -1) 0; } /* 裏は券ごと裏返って見えるので、逆に動かすと右へずれる */
.change.is-3d .tk-face.is-stub { clip-path: inset(0 calc(100% - var(--cut)) 0 -60px); translate: none; }

/* パーク */
.park { background: var(--deep); padding-top: 140px; }
.park-intro p { margin-top: 20px; color: var(--mist); }
.park-intro p span { display: inline-block; } /* 折り返すなら文の切れ目で */
.park-stage { padding: 56px 0 120px; }
.zone-tabs { display: none; }
.zones { display: grid; gap: 96px; }
.zone { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.zone-view { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.5); }
.zone-guide h3 { font-size: 34px; }
.zone-guide h3 span:not(.hx) { margin-left: 16px; font: 500 16px var(--f-body); color: var(--gold); letter-spacing: 0.1em; }
.zone-guide > p { margin-top: 12px; color: var(--mist); }
.areas { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 6px; }
.area {
  display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: center;
  padding: 8px 12px; border-radius: 12px; transition: opacity 0.4s, background-color 0.4s;
}
.area img { grid-row: span 2; width: 56px; border-radius: 50%; transition: filter 0.4s, box-shadow 0.4s; }
.area b { font: 800 19px/1.4 var(--f-display); }
.area span { font-size: 14px; line-height: 1.6; color: var(--mist); }

/* PCとスマートフォンの縦向き：画面を止めて巡る（main.js が .is-tour を付ける。スマートフォンの詰め方は下の @media） */
.park.is-tour .park-stage { height: 100vh; padding: calc(var(--header) + 28px) 0 40px; display: flex; flex-direction: column; justify-content: center; }
.park.is-tour .zone-tabs {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 28px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line);
}
.zone-tab {
  border: 0; border-radius: 999px; padding: 8px 26px; cursor: pointer;
  background: transparent; color: var(--mist); font: 800 17px/1.3 var(--f-display);
  display: grid; text-align: center; transition: background-color 0.3s, color 0.3s;
}
.zone-tab small { font: 500 11px var(--f-body); letter-spacing: 0.1em; }
.zone-tab[aria-selected="true"] { background: var(--gold); color: var(--ink); }
.park.is-tour .zones { display: grid; }
/* 上ぞろえ：エリアの数がゾーンごとに違っても、切り替えで見出しが上下に動かない */
.park.is-tour .zone { grid-area: 1 / 1; align-items: start; opacity: 0; visibility: hidden; transition: opacity 0.6s, visibility 0.6s; }
.park.is-tour .zone.is-active { opacity: 1; visibility: visible; }
.park.is-tour .zone-view img { max-height: calc(100vh - var(--header) - 200px); width: 100%; object-fit: cover; }
.park.is-tour .area { opacity: 0.35; }
.park.is-tour .area img { filter: brightness(0.55) saturate(0.6); }
.park.is-tour .area.is-lit { opacity: 1; background: rgba(226, 181, 98, 0.08); }
.park.is-tour .area.is-lit img { filter: none; box-shadow: 0 0 0 2px var(--gold), 0 0 24px rgba(226, 181, 98, 0.6); }
/* 名札が灯ると、絵の同じ建物にも光が当たる（main.js が .spot を足し、最後に灯った名札の位置へ --x・--y を動かす） */
@property --x { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --y { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.zone-view { position: relative; }
.spot {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 17% 30% at var(--x) var(--y), transparent 55%, rgba(5, 9, 24, 0.66));
  transition: opacity 0.4s, --x 0.6s cubic-bezier(0.3, 0.7, 0.2, 1), --y 0.6s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.spot.is-on { opacity: 1; }
.spot::after {
  content: ""; position: absolute; left: var(--x); top: var(--y); width: 24%; aspect-ratio: 1.35; translate: -50% -50%; border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold), 0 0 32px rgba(226, 181, 98, 0.75), inset 0 0 32px rgba(226, 181, 98, 0.4);
  animation: spot-pulse 1.8s ease-in-out infinite;
}
@keyframes spot-pulse { 50% { scale: 1.06; opacity: 0.6; } }

/* 代表的なエリア */
.featured { background: var(--night); padding: 140px 0 40px; }
.feature { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; margin-top: 88px; }
.feature-media { display: grid; gap: 16px; }
.feature.is-flip .feature-media { order: 2; }
.feature-shot { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, 0.45); }
.zone-name { color: var(--gold); font-size: 14px; font-weight: 700; letter-spacing: 0.12em; }
.feature-text h3 { margin-top: 8px; font-size: clamp(28px, 2.6vw, 36px); }
.feature-text > p:not(.zone-name) { margin-top: 16px; color: #dfe4f3; }
.feature-text > p span { display: inline-block; } /* 2つ並んだカギかっこの途中で切らない */
.feature-text > p.catch { margin-top: 8px; color: var(--parch); font: 800 clamp(19px, 1.6vw, 22px)/1.5 var(--f-display); letter-spacing: 0.04em; }
.feature-text > p.can-label { margin-top: 24px; color: var(--parch); font-size: 14px; font-weight: 700; letter-spacing: 0.12em; }
.can-label + .can { margin-top: 10px; }
.can { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.can li { padding-left: 22px; position: relative; }
.can li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.samples { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.samples span {
  aspect-ratio: 4 / 3; display: grid; place-items: center; border-radius: 12px;
  border: 1px dashed var(--line); color: var(--mist); font-size: 13px;
}

/* マンガ工房・SNSスタジオ・調べもの探検隊の使用例 */
:is(.manga-samples, .sns-samples, .research-samples) > h4, :is(.manga-samples, .sns-samples, .research-samples) > p { grid-column: 1 / -1; margin: 0; }
:is(.manga-samples, .sns-samples, .research-samples) > h4 { font-size: 16px; color: var(--parch); }
:is(.manga-samples, .sns-samples, .research-samples) > p { font-size: 13px; color: var(--mist); }
:is(.manga-samples, .sns-samples, .research-samples) > a { display: block; min-width: 0; border-radius: 12px; }
:is(.manga-samples, .sns-samples, .research-samples) > a:first-of-type { box-shadow: 0 0 0 1px var(--line); }
:is(.manga-samples, .sns-samples, .research-samples) img { display: block; width: 100%; height: auto; border-radius: 12px; }

/* ほかのエリア：建物の絵を案内図のように */
.others { background: var(--night); padding: 140px 0 140px; }
.map { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 32px; }
.map li { display: grid; justify-items: center; align-content: start; text-align: center; }
/* 切り出した四角の地を、丸くぼかして背景になじませる */
.map img { width: 132px; mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.map small { margin-top: 14px; font-size: 12px; color: var(--gold); letter-spacing: 0.12em; }
.map b { font: 800 20px/1.4 var(--f-display); }
.map span { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--mist); max-width: 15em; }

/* 漫画：幅900px以上では画面を止め、スクロールで次の話へ（main.js が .is-pinned を付ける） */
.manga { background: var(--deep); padding: 140px 0; }
.manga-inner { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: center; }
.manga-eps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 8px; font: 800 18px/1.4 var(--f-display); }
.manga-eps li { padding: 10px 18px; border-radius: 10px; color: var(--mist); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.4s, color 0.4s; }
.manga-panels { display: grid; gap: 24px; }
.manga-panel {
  margin: 0; aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center;
  border-radius: 16px; border: 1px dashed var(--line); background: rgba(255, 255, 255, 0.03);
  color: var(--mist); font-size: 15px;
}
.manga.is-pinned { padding: 0; }
.manga.is-pinned .manga-stage { height: 100vh; display: flex; align-items: center; padding-top: var(--header); }
.manga.is-pinned .manga-panels { grid-template-areas: "p"; }
.manga.is-pinned .manga-panel {
  grid-area: p; max-height: calc(100vh - var(--header) - 96px); width: 100%;
  opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity 0.6s, transform 0.6s;
}
.manga.is-pinned .manga-panel.is-active { opacity: 1; transform: none; }
.manga.is-pinned .manga-eps li[aria-current="step"] { background: var(--gold); color: var(--ink); box-shadow: none; }

/* 使い方：画面と文を左右交互に */
.howto { background: var(--parch); color: var(--ink); padding: 140px 0; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; }
.step { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; margin-top: 72px; }
.step.is-flip .step-shot { order: 2; }
.step-shot { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px #ead9b4, 0 24px 60px rgba(27, 35, 64, 0.18); }
.step-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.step-no { color: #a87b2b; font-size: 14px; font-weight: 700; letter-spacing: 0.16em; }
.step-text h3 { margin-top: 6px; font-size: clamp(26px, 2.4vw, 34px); }
.step-text > p:last-child { margin-top: 16px; color: #4a5070; }
.howto-cta { margin-top: 88px; text-align: center; }

/* 料金：税抜を大きく、税込を小さく */
.price { background: var(--night); padding: 140px 0; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 480px)); justify-content: center; gap: 40px; margin-top: 56px; }
.plan {
  position: relative; display: grid; justify-items: center; text-align: center;
  grid-template-rows: auto auto auto 1fr auto; /* 特典の行数が違っても、登録ボタンを下にそろえる */
  padding: 48px 32px 40px; border-radius: 20px; background: var(--parch); color: var(--ink);
}
.plan.is-limited { box-shadow: 0 0 0 3px var(--gold), 0 0 48px rgba(226, 181, 98, 0.35); }
.plan-badge {
  position: absolute; top: -16px; padding: 4px 18px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-size: 14px; font-weight: 700;
}
.plan h3 { font-size: 24px; }
.plan-price { margin-top: 12px; font-size: 20px; font-weight: 700; }
.plan-price b { font: 800 56px/1 var(--f-display); letter-spacing: 0.02em; }
.plan-price span { font-size: 18px; color: #4a5070; }
.plan-tax { color: #6b7088; font-size: 15px; }
.plan-points { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 6px; font-size: 15px; color: #4a5070; }
.referral { margin-top: 40px; text-align: center; color: var(--mist); font-weight: 500; }

/* よくある質問：横幅いっぱい（A案） */
.faq { background: var(--parch); color: var(--ink); padding: 140px 0; }
.qa-list { margin-top: 48px; display: grid; gap: 12px; }
.qa { border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #ead9b4; }
.qa summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 64px 22px 72px; font-weight: 700; font-size: 18px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "Q"; position: absolute; left: 28px; top: 18px; font: 800 24px/1.4 var(--f-display); color: #a87b2b; }
.qa summary::after { content: "+"; position: absolute; right: 28px; top: 16px; font-size: 26px; color: #a87b2b; transition: transform 0.3s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa-a { display: grid; gap: 8px; padding: 0 64px 28px 72px; color: #4a5070; font-size: 16px; }

/* はじめる */
.start { background: var(--deep); padding: 120px 0; }
.start-inner { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.start-text p:not(.start-login) { margin-top: 20px; color: #dfe4f3; }
.start-text .btn { margin-top: 36px; }
.start-login { margin-top: 20px; color: var(--mist); font-size: 15px; }
.start img { width: min(100%, 420px); justify-self: center; }


/* フッター */
.site-footer { background: #070c1d; color: var(--mist); padding: 64px 0 32px; font-size: 14px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 24px 80px; align-items: start; }
.logo img { display: block; }
.footer-nav { display: grid; gap: 10px; }
.footer-nav a, .footer-company a { text-decoration: none; }
.footer-nav a:hover, .footer-company a:hover { color: var(--parch); }
.footer-company { grid-column: 1; }
.copyright { margin-top: 48px; text-align: center; font-size: 12px; }

/* ローディング：切り替わる前のファーストビューや、絵の届いていない扉を見せない。地は門の灯りがともる前と同じ黒 */
.loader { position: fixed; inset: 0; z-index: 20; background: #000; transition: opacity 0.4s, visibility 0.4s; }
.loader::before {
  content: ""; position: absolute; left: calc(50% - 80px); top: 50%; width: 160px; height: 2px;
  background: linear-gradient(90deg, transparent, #ffc773, transparent) no-repeat, rgba(226, 181, 98, 0.2);
  background-size: 40% 100%, 100% 100%;
  animation: loader-sweep 1.2s ease-in-out infinite;
}
@keyframes loader-sweep { from { background-position: -70% 0, 0 0; } to { background-position: 170% 0, 0 0; } }
/* トップから来たとき：線の先の光（中央の、上から35%の位置。top/main.js と同じ）が上下へのびて、門の合わせ目になる */
.from-top .loader::before {
  left: calc(50% - 1px); top: 0; width: 2px; height: 100%; transform-origin: 50% 35%;
  background: #ffe9b8; box-shadow: 0 0 14px 2px rgba(226, 181, 98, 0.9);
  animation: seam-open 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes seam-open { from { transform: scaleY(0.012); } to { transform: scaleY(1); } }
.is-loaded .loader { opacity: 0; visibility: hidden; }
/* gate.js が止まっても、絵が届かなくても、8秒たったら必ず外す（門の黒い覆いも。外れたときは .is-loaded の動きが勝つ） */
.loader, .gate::after { animation: unveil 0.4s 8s forwards; }
@keyframes unveil { to { opacity: 0; visibility: hidden; } }

/* 入場ゲート（gate.js が data-hero="gate" にしたときだけ。位置と大きさは gate.js が絵に合わせて入れる） */
.fv[data-hero="gate"] { height: 100vh; height: 100svh; overflow: hidden; padding-top: 0; }
.fv[data-hero="gate"] .fv-copy { display: none; }
.fv[data-hero="gate"] .fv-media { position: absolute; transform-origin: 0 0; will-change: transform; }
.fv[data-hero="gate"] .fv-media::after { background: #000; opacity: var(--dim, 0.75); }
/* 透明なヘッダーの文字を、扉の金の飾りの上でも読めるように */
.fv[data-hero="gate"]::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 160px; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(10, 17, 40, 0.85), rgba(10, 17, 40, 0));
}
.gate { position: absolute; inset: 0; }
/* ローディングが外れると、門に灯りがともる */
.gate::after { content: ""; position: absolute; inset: 0; background: #000; pointer-events: none; }
.is-loaded .gate::after { animation: gate-light 1.6s ease-in-out both; }
@keyframes gate-light { to { opacity: 0; } }
/* Chrome は奥行きの順で当たり判定をするので、画面と同じ面にある箱がクリックを取らないよう、扉だけ当たるようにする */
.gate-scene { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; pointer-events: none; }
.gate-pillar, .gate-door { position: absolute; background-repeat: no-repeat; }
.gate-door { overflow: hidden; will-change: transform; pointer-events: auto; }
.gate-door.is-l { transform-origin: 0 50%; }
.gate-door.is-r { transform-origin: 100% 50%; }
/* 開くほど扉が陰る */
.gate-door::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--shade, 0); pointer-events: none; }
/* 合わせ目からこぼれる光。幅は gate.js が scaleX で広げる */
.gate-glow {
  position: absolute; top: 0; left: 50%; width: 100px; height: 100%; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(255, 199, 115, 0.02) 10%, rgba(255, 199, 115, 0.1) 20%, rgba(255, 199, 115, 0.37) 30%,
    rgba(255, 199, 115, 0.78) 40%, #ffc773 50%, rgba(255, 199, 115, 0.78) 60%, rgba(255, 199, 115, 0.37) 70%, rgba(255, 199, 115, 0.1) 80%, rgba(255, 199, 115, 0.02) 90%, transparent);
  animation: gate-flicker 3.1s ease-in-out infinite alternate;
}
@keyframes gate-flicker { to { filter: brightness(0.75); } }
.gate-plate {
  position: absolute; display: grid; align-content: center; justify-items: center; gap: calc(18px * var(--s));
  padding: 0 4%; text-align: center; color: var(--parch);
}
.is-loaded .gate-plate > * { animation: gate-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.gate-plate > :nth-child(2) { animation-delay: 0.15s; }
.gate-plate > :nth-child(3) { animation-delay: 0.3s; }
@keyframes gate-in { from { opacity: 0; transform: translateY(14px); } }
.gate-kicker { font: 700 calc(14px * var(--s)) / 1 var(--f-body); letter-spacing: 0.32em; color: var(--gold); }
.gate-plate h1 { font-size: calc(36px * var(--s)); line-height: 1.45; text-shadow: 0 0 24px rgba(226, 181, 98, 0.35); }
.gate-plate p:not(.gate-kicker) { font-size: max(15px, calc(19px * var(--s))); line-height: 1.8; color: #dfe4f3; }
.gate-plate .fv-actions { flex-direction: column; gap: calc(16px * var(--s)); margin-top: calc(8px * var(--s)); }
/* 縦長の絵：合わせ目をまたぐ1枚の枠。枠が低いスマートフォンでは、飾りの英字と「パークを見てみる」を省く */
.fv[data-gate="tall"] .gate-plate { container-type: size; gap: calc(24px * var(--s)); }
.fv[data-gate="tall"] .gate-kicker { font-size: max(10px, calc(24px * var(--s))); }
.fv[data-gate="tall"] .gate-plate h1 { font-size: calc(60px * var(--s)); }
.fv[data-gate="tall"] .gate-plate p:not(.gate-kicker) { font-size: max(14px, calc(34px * var(--s))); line-height: 1.7; }
.fv[data-gate="tall"] .gate-plate .btn { min-height: 48px; }
@container (max-height: 300px) { .gate-kicker, .gate-plate .link-quiet { display: none; } }
/* クラリスのところで止まると、吹き出しが下からすべり上がって届く */
.fv[data-hero="gate"] .fv-bubble {
  z-index: 2; opacity: 0; transform: translateY(28px) scale(0.96); transform-origin: 0 100%;
  transition: opacity 0.35s, transform 0.5s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.fv[data-hero="gate"].is-greet .fv-bubble { opacity: 1; transform: none; }
/* 縦長の画面は、クラリスの右に吹き出しの入る幅が無いので、小さくして頭の真上に置く */
.fv[data-gate="tall"] .fv-bubble { left: 50%; top: 33%; padding: 10px 16px; font-size: 14px; }

/* スマートフォン */
@media (max-width: 899px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .header-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .site-header { background: rgba(10, 17, 40, 0.92); }
  .fv { padding-top: var(--header); }
  .fv-media::after { background: linear-gradient(0deg, var(--deep) 0%, rgba(10, 17, 40, 0) 40%); }
  .fv[data-hero="dom"] .fv-bubble { display: none; } /* 入場ゲートが無いときは、絵が小さいので出さない */
  .fv-copy { position: static; width: auto; padding: 8px 16px 64px; }
  .fv-actions { flex-wrap: wrap; gap: 20px; }
  .worry { padding: 88px 0 72px; }
  .worry-inner { grid-template-columns: 1fr; gap: 32px; }
  .msg-you:nth-child(2) { margin-right: 24px; }
  .msg-claris img { width: 72px; }
  .msg-you { font-size: 18px; padding: 14px 20px; }
  .msg-you, .msg-claris p, .typing { border-width: 1px; }
  .msg-claris p { font-size: 18px; padding: 16px 20px; }
  .change { padding: 24px 0 96px; }
  .tickets { margin-top: 32px; gap: 20px; }
  .ticket { --stub: 64px; --tear: 10px; }
  .tk-face { min-height: 120px; border-radius: 12px; }
  .tk-stub { gap: 8px; }
  .tk-stub .ic { width: 18px; height: 18px; padding: 9px; }
  .tk-stub > span { font-size: 12px; }
  .tk-back .tk-stub > span { font-size: 9px; }
  .tk-body { padding: 18px 20px; }
  .tk-text { font-size: 18px; }
  .tk-body small { font-size: 12px; }
  .park { padding-top: 88px; }
  .zones { gap: 64px; }
  .zone { grid-template-columns: 1fr; gap: 24px; }
  /* 縦向きでは画面を止めて巡る（main.js が .is-tour を付ける）。止めた画面に収まるよう、名札は2列にして説明を省く
     （11のエリアの説明は「代表的なエリア」と「ほかのエリア」にもある）。ゾーンは横にすべって入れ替わる */
  .park { overflow-x: clip; } /* 待っているゾーンを横にずらしても、ページが横に揺れないように */
  .park.is-tour .park-stage { height: 100svh; padding: calc(var(--header) + 16px) 0 16px; }
  .park.is-tour .zone-tabs { display: flex; margin-bottom: 16px; }
  .park.is-tour .zone-tab { flex: 1; padding: 6px 4px; font-size: 15px; }
  .park.is-tour .zone { gap: 14px; transform: translateX(40px); transition: opacity 0.5s, visibility 0.5s, transform 0.5s; }
  .park.is-tour .zone.is-past { transform: translateX(-40px); }
  .park.is-tour .zone.is-active { transform: none; }
  .park.is-tour .zone-view img { max-height: 28svh; }
  .park.is-tour .zone-guide h3 { font-size: 26px; }
  .park.is-tour .zone-guide > p { margin-top: 4px; font-size: 14px; line-height: 1.7; }
  .park.is-tour .areas { grid-template-columns: 1fr 1fr; margin-top: 12px; gap: 4px; }
  .park.is-tour .area { grid-template-columns: 40px 1fr; column-gap: 10px; padding: 6px 8px; }
  .park.is-tour .area img { width: 40px; grid-row: auto; }
  .park.is-tour .area b { font-size: 15px; }
  .park.is-tour .area span { display: none; }
  .featured, .others { padding: 88px 0; }
  .feature { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .feature-media { display: contents; } /* スマートフォンは 画面 → 文 → 作例 の順 */
  .samples { order: 1; }
  .map { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
  .map img { width: 104px; }
  .manga, .howto, .price, .faq { padding: 88px 0; }
  .manga-inner, .step, .start-inner { grid-template-columns: 1fr; gap: 28px; }
  .manga-eps { display: none; }
  .step { margin-top: 48px; }
  .step.is-flip .step-shot { order: 0; }
  .howto-cta { margin-top: 56px; }
  .plans { grid-template-columns: 1fr; gap: 32px; }
  .plan-price b { font-size: 44px; }
  .qa summary { padding: 18px 48px 18px 52px; font-size: 16px; }
  .qa summary::before { left: 18px; top: 14px; font-size: 20px; }
  .qa summary::after { right: 18px; top: 12px; }
  .qa-a { padding: 0 20px 22px 52px; font-size: 15px; }
  .start { padding: 88px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .loader { display: none; } /* ファーストビューが切り替わらないので、覆わない */
  .btn-join, .btn-join::after { animation: none; }
  .btn-join::before { display: none; }
}
