:root {
  --pink: #F35F76;
  --pink-text: #b0304a;   /* ピンクを文字に使うときの濃い版（AA） */
  --ink: #2b2724;
  --muted: #5f5750;
  --bg: #f4efe6;
  --panel: rgba(250, 246, 239, .86);
  --line: rgba(43, 39, 36, .18);
  --accent: var(--ink);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .2 0 0 0 0 .15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body[data-line="luxury"] { --bg: #f6ebe6; --panel: rgba(250, 241, 237, .88); --accent: var(--pink-text); }
body[data-line="casual"] { --bg: #fbfbf8; --panel: rgba(255, 255, 255, .88); --accent: #1b1b1b; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg) var(--paper);
  font: 400 16px/1.9 var(--sans); letter-spacing: .03em;
  transition: background-color .6s ease; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* ---------- 入口 ---------- */
#enter {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  background: #f4efe6 var(--paper); padding: 24px 16px; text-align: center;
}
#enter[hidden], html.entered #enter { display: none; }
.enter-title { margin: 0; font: 400 clamp(26px, 5vw, 40px)/1.2 var(--serif); letter-spacing: .14em; }
.enter-title span { font-style: italic; color: var(--muted); }
.enter-logos { display: flex; gap: clamp(20px, 6vw, 56px); }
.enter-logo {
  width: clamp(120px, 30vw, 180px); aspect-ratio: 1; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(0, 0, 0, .08); transition: transform .5s ease;
}
.enter-logo:hover { transform: translateY(-4px); }
.enter-logo.n { background: #fffdf9; }
.enter-logo.d { background: #151515; }
.enter-logo img { width: 70%; height: auto; }
.enter-logo.d img { width: 76%; }
#enter-btn {
  min-width: 160px; min-height: 48px; padding: 0 32px; border: 1px solid var(--ink); border-radius: 999px; background: transparent;
  font: 500 15px/1 var(--serif); letter-spacing: .4em; text-indent: .4em; color: var(--ink); cursor: pointer; transition: background .3s, color .3s;
}
#enter-btn:hover { background: var(--ink); color: #f4efe6; }
.enter-note { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- 散らばる写真・動画 ---------- */
#stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.tile {
  position: absolute; left: var(--x); top: var(--y); width: clamp(150px, calc(var(--w) * 1.7), 360px); margin: 0;
  background: #fff; padding: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
  /* スクロールに合わせて、写真ごとに違う速さで少し動く */
  transform: translateY(calc(var(--sy, 0) * var(--k, -.2) * 1px)) rotate(var(--r));
  transition: opacity .6s ease, visibility .6s;
}
.tile video, .tile img { width: 100%; height: auto; aspect-ratio: auto; object-fit: cover; }
.logo-tile { padding: 14px 12px; }
.logo-tile.d { background: #151515; }
body[data-line="luxury"] .tile[data-line="casual"],
body[data-line="casual"] .tile[data-line="luxury"] { opacity: 0; visibility: hidden; }

/* ---------- メイン ---------- */
main, footer { position: relative; z-index: 1; }
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 28px 16px 0; gap: 16px; }
.panel { position: relative; width: 100%; text-align: center; }
/* 枠の代わりに、文字のまわりにだけ生成り色のにじみ */
.eyebrow, h1, .label { text-shadow: 0 0 3px var(--bg), 0 0 8px var(--bg), 0 0 14px var(--bg), 0 0 22px var(--bg); }
.eyebrow { margin: 0 0 6px; font: 400 14px/1 var(--serif); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
h1 { position: relative; z-index: 2; margin: 0 0 14px; font-size: 13px; font-weight: 400; line-height: 1.7; letter-spacing: .08em; color: var(--ink); }
h1:focus { outline: none; }
/* ---------- 2つのアイコン（そのままリンク） ---------- */
/* 選択肢：枠なしで左右に大きく離して浮かべ、少し傾けてゆっくり漂わせる */
#choices { position: relative; height: clamp(430px, 60vh, 560px); margin-top: 6px; }
.hero { overflow-x: clip; } /* 傾けた選択肢が横にはみ出しても、横スクロールを出さない */
.choice {
  position: absolute; z-index: 2; width: clamp(200px, 25vw, 290px); text-decoration: none;
  rotate: var(--tilt, 0deg); translate: 0 calc(var(--sy, 0) * -.12px); scale: 1; transition: scale .5s ease;
}
.choice[data-line="luxury"] { left: 3%; top: 8%; --tilt: -4deg; }
.choice[data-line="casual"] { right: 3%; top: 16%; --tilt: 4deg; }
.float { display: grid; justify-items: center; gap: 2px; animation: bob 7s ease-in-out infinite alternate; }
.choice[data-line="casual"] .float { animation-duration: 5.5s; animation-delay: -2s; }
@keyframes bob { from { translate: 0 -6px; rotate: -.6deg; } to { translate: 0 6px; rotate: .6deg; } }
/* 選んだ側が手前に、もう一方は引く */
body[data-line="luxury"] .choice[data-line="luxury"], body[data-line="casual"] .choice[data-line="casual"] { scale: 1.08; z-index: 3; }
body[data-line="luxury"] .choice[data-line="casual"], body[data-line="casual"] .choice[data-line="luxury"] { scale: .92; }
.label { position: relative; display: grid; justify-items: center; gap: 2px; line-height: 1.5; padding: 10px 28px 14px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 90%, transparent) 55%, transparent); }
.label .tag { font-size: 15px; color: var(--muted); }
.label strong { font-weight: 500; font-size: 20px; letter-spacing: .06em; }
.label .go { font-size: 14px; color: var(--muted); }
.label .go > span { display: inline-block; white-space: nowrap; } /* 言葉の途中で改行しない */

.icon {
  position: relative; width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 4px;
  transition: transform .5s ease, opacity .5s ease;
}
.disc { position: relative; z-index: 1; width: 72%; aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: box-shadow .5s ease; }
.disc.n { background: #fffdf9; box-shadow: 0 4px 16px rgba(0, 0, 0, .07); }
.disc.d { background: #151515; color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .15); }
.disc img, .disc > svg { width: 86%; height: auto; }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; pointer-events: none; }
/* NICOLE：淡い光・細いピンクの輪・金の点線 */
.icon.n::before { content: ""; position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle, rgba(243, 95, 118, .2), rgba(243, 95, 118, 0) 65%); }
.ring1 { fill: none; stroke: var(--pink); stroke-width: .8; stroke-dasharray: 1; }
.ring2 { fill: none; stroke: #c8963c; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0 5; transform-box: view-box; transform-origin: 50px 50px; }
/* NICOLE の文字に流れる光（ロゴの形で切り抜く） */
.disc.n::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .95) 50%, transparent 60%) 100% 0 / 300% 100% no-repeat;
  -webkit-mask: url(media/logo-nicole.svg) center / 86% auto no-repeat; mask: url(media/logo-nicole.svg) center / 86% auto no-repeat;
}
/* デジャヴ：キリトリ線・三色の輪・一周するはさみ */
.cut { fill: none; stroke: #1d1d1d; stroke-width: .9; stroke-dasharray: 2.4 2.2; }
.tri { fill: none; stroke-width: 3; stroke-linecap: round; transform-box: view-box; transform-origin: 50px 50px; }
.orbit { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; }
.osc { position: absolute; left: 50%; top: 2%; width: 24px; height: 24px; margin-left: -12px; color: #1d1d1d; transform: rotate(90deg); }
.osc .b1, .osc .b2, .disc .sc .b1, .disc .sc .b2 { transform-box: view-box; transform-origin: 12px 12px; }

/* 登場（ENTERのあと一度だけ・約2.5秒） */
.hero.intro .icon.n::before { animation: glow 1.6s ease .2s both; }
.hero.intro .ring1 { animation: draw 1.4s ease .3s both; }
.hero.intro .ring2 { animation: fadeIn 1s ease .9s both, spin 2.6s cubic-bezier(.3, .6, .3, 1) .9s both; }
.hero.intro .disc.n::after { animation: sheen .9s ease-out 1.7s both; }
.hero.intro .cut { animation: fadeIn .4s ease .3s both; }
.hero.intro .orbit { animation: orbit 1.3s cubic-bezier(.5, .1, .5, .9) .45s both; }
.hero.intro .osc .b1 { animation: snipA .22s ease .45s 6; }
.hero.intro .osc .b2 { animation: snipB .22s ease .45s 6; }
.hero.intro .tri { animation: triPop .55s cubic-bezier(.3, 1.8, .5, 1) 1.75s both; }
.hero.intro .disc.d { animation: bump .5s cubic-bezier(.3, 1.8, .5, 1) 1.75s both; }
.hero.intro .label { animation: fadeUp .7s ease 1.9s both; }
@keyframes glow { from { opacity: 0; transform: scale(.6); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
@keyframes spin { from { transform: rotate(-60deg); } }
@keyframes orbit { 0% { opacity: 1; transform: rotate(0); } 92% { opacity: 1; } 100% { opacity: 0; transform: rotate(360deg); } }
@keyframes triPop { from { opacity: 0; transform: scale(.7); } }
@keyframes bump { 40% { transform: scale(1.08); } }

/* 選ばれていない側は小さく薄く */
body[data-line="luxury"] .choice[data-line="casual"] .icon,
body[data-line="casual"] .choice[data-line="luxury"] .icon { transform: scale(.88); opacity: .45; }

/* 選んだとき：NICOLE＝浮き上がり・輪をなぞり直し・光（0.8秒）／デジャヴ＝ぽんと弾み・ロゴのはさみがチョキッ（0.55秒） */
.icon.n.play { animation: floatUp .8s cubic-bezier(.25, .8, .3, 1) forwards; }
.icon.n.play .ring1 { animation: draw .8s ease-out both; }
.icon.n.play .disc.n::after { animation: sheen .7s ease-out .15s both; }
.icon.d.play { animation: pop .55s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.icon.d.play .disc .sc .b1 { animation: snipA .4s ease .1s; }
.icon.d.play .disc .sc .b2 { animation: snipB .4s ease .1s; }
@keyframes floatUp { to { transform: translateY(-8px); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes pop { 0% { transform: scale(1); } 30% { transform: translateY(-10px) scale(1.06, .96); } 60% { transform: translateY(0) scale(.98, 1.03); } 100% { transform: translateY(-4px) scale(1.04); } }
@keyframes snipA { 50% { transform: rotate(-24deg); } }
@keyframes snipB { 50% { transform: rotate(24deg); } }

/* ---------- 文字盤 ---------- */
#dial { width: 100%; max-width: 360px; text-align: center; padding: 16px 18px 10px; background: var(--panel); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 210px 210px 4px 4px; transition: background-color .6s ease; }
.dial-face { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; }
.dial-svg { width: 100%; height: auto; overflow: visible; cursor: grab; }
.dial-svg .arc { fill: none; stroke: var(--line); stroke-width: 1; }
.dial-svg .arc.inner { stroke-dasharray: 2 6; }
.dial-svg .ticks line { stroke: var(--line); stroke-width: 1; }
.needle { transform-box: view-box; transform-origin: 200px 200px; transform: rotate(var(--a, 0deg)); transition: transform .6s cubic-bezier(.3, 1.2, .5, 1); }
.dragging .needle { transition: none; }
.needle line { stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; transition: stroke .6s; }
.needle circle { fill: var(--accent); transition: fill .6s; }
.dial-opts { position: absolute; inset: 0; pointer-events: none; }
.dial-opt {
  position: absolute; bottom: 2%; min-width: 92px; min-height: 48px; padding: 4px 10px; border: 0; background: none; cursor: pointer; pointer-events: auto;
  display: grid; color: var(--muted); font: 500 15px/1.3 var(--serif); letter-spacing: .18em; transition: color .4s;
}
.dial-opt small { font-size: 12px; letter-spacing: .28em; }
.dial-opt.lux { left: 6%; }
.dial-opt.cas { right: 6%; }
.dial-opt[aria-checked="true"] { color: var(--accent); }
#go {
  position: relative; margin-top: 10px; min-height: 44px; padding: 0 22px; display: inline-flex; align-items: center;
  border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-size: 15px; letter-spacing: .1em; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}
#go[hidden] { display: inline-flex; visibility: hidden; } /* 場所は確保して、出たときに画面がずれないように */
.dial-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- 説明文 ---------- */
#about { max-width: 880px; margin: 0 auto; padding: 72px 16px 40px; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.about-item { background: var(--panel); padding: 24px; border-radius: 4px; }
.about-item h2 { margin: 0 0 10px; font-size: 17px; font-weight: 500; letter-spacing: .06em; }
.about-item h2 small { display: block; font: 500 13px/1.6 var(--serif); letter-spacing: .2em; color: var(--muted); }
.about-item p { margin: 0; font-size: 16px; }
footer { text-align: center; padding: 24px 16px 40px; font: 400 14px/1 var(--serif); letter-spacing: .2em; color: var(--muted); }
footer p { margin: 0; }
.ga-note { margin-top: 14px !important; font: 400 12px/1.7 var(--sans); letter-spacing: .02em; }
.ga-note a { color: inherit; }

@media (max-width: 640px) {
  .hero { padding-top: 24px; }
  .label .go { font-size: 13px; }
  .label { padding: 8px 14px 12px; }
  .label .tag { font-size: 14px; }
  /* スマホ：左上と右下に斜めに置いて画面内に収める */
  #choices { height: calc(215px + 56vw + 150px); } /* 右下の選択肢（アイコン＋文字）が収まる高さ */
  .choice { width: 56%; }
  .choice[data-line="luxury"] { left: -2%; top: 0; }
  .choice[data-line="casual"] { right: -2%; top: 215px; }
  /* 写真は空いている2か所（右上・左下）にだけ置く */
  .tile { width: 150px; display: none; }
  .tile:nth-child(-n+4) { display: block; }
  .tile:nth-child(1) { --x: 57% !important; --y: 12% !important; }
  .tile:nth-child(2) { --x: 61% !important; --y: 17% !important; }
  .tile:nth-child(3) { --x: -4% !important; --y: 58% !important; }
  .tile:nth-child(4) { --x: 0% !important;  --y: 63% !important; }
}

/* 高さの低いPC画面：文字盤の「進む」まで1画面に収める */
@media (min-width: 641px) and (max-height: 880px) {
  .hero { padding-top: 16px; gap: 12px; }
  h1 { margin-bottom: 8px; }
  #choices { height: 470px; }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .choice { translate: none; }
  .tile { transform: rotate(var(--r)); }
}
