/* ウチ、くる？（R18的な意味で❤︎） — 公式サイト
   夜のリビング: 深いプラムの闇に、ランプのアンバーと頬のローズ。 */
:root {
  --night: #2A1A22;
  --night-deep: #1B1017;
  --plum: #3A2430;
  --amber: #FFB861;
  --rose: #E2879A;
  --rose-deep: #C9647D;
  --cream: #FFF6EA;
  --cream-dim: #D9C6B8;
  --wood: #C99A63;
  --teal: #5FD3D0;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --max: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--night-deep);
  color: var(--cream);
  font-family: var(--round);
  font-weight: 400;
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.35; letter-spacing: .02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: var(--cream); }
h2 small { display: block; font-family: var(--round); font-weight: 500; font-size: .95rem; color: var(--rose); letter-spacing: .12em; margin-top: .4rem; }
p { max-width: 38em; }
.lead { font-size: 1.08rem; color: var(--cream-dim); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---- 年齢確認 ---- */
#gate {
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,184,97,.18), transparent 55%), var(--night-deep);
  display: grid; place-items: center; padding: 24px;
}
#gate .box {
  max-width: 480px; width: 100%; text-align: center;
  background: var(--plum); border: 1px solid rgba(255,184,97,.35); border-radius: 18px;
  padding: 40px 32px 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,246,234,.08);
}
#gate img { width: 260px; margin: 0 auto 18px; }
#gate h1 { font-size: 1.35rem; margin-bottom: 10px; }
#gate p { margin: 0 auto 22px; color: var(--cream-dim); font-size: .95rem; }
#gate .yes, #gate .no {
  display: inline-block; border-radius: 999px; padding: 13px 30px; font-weight: 700;
  text-decoration: none; margin: 4px; font-family: var(--round); font-size: 1rem; cursor: pointer; border: 0;
}
#gate .yes { background: linear-gradient(180deg, var(--rose), var(--rose-deep)); color: #fff; box-shadow: 0 8px 24px rgba(226,135,154,.35); }
#gate .no { background: transparent; color: var(--cream-dim); border: 1px solid rgba(217,198,184,.35); }
body.ok #gate { display: none; }
body:not(.ok) { overflow: hidden; }

/* ---- 上部バー ---- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 22px;
  background: linear-gradient(180deg, rgba(27,16,23,.92), rgba(27,16,23,.6) 80%, transparent);
  backdrop-filter: blur(6px);
}
.bar .brand img { height: 30px; width: auto; }
.bar nav { display: flex; gap: 22px; font-size: .92rem; }
.bar nav a { color: var(--cream-dim); text-decoration: none; }
.bar nav a:hover { color: var(--cream); }
.bar .right { display: flex; align-items: center; gap: 14px; }
.bar .seal { width: 44px; height: 44px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.bar .buy {
  background: var(--rose); color: #fff; text-decoration: none; border-radius: 999px;
  padding: 8px 18px; font-weight: 700; font-size: .92rem; white-space: nowrap;
}
@media (max-width: 760px) { .bar nav { display: none; } .bar .buy { padding: 7px 14px; font-size: .85rem; } .bar .brand img { height: 26px; } }

/* ---- ヒーロー ---- */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: grid; align-items: center;
}
.hero .bg { position: absolute; inset: -10% 0; background: url(assets/ui/bg_bokeh.jpg) center/cover no-repeat; opacity: .9; will-change: transform; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,16,23,.92) 0%, rgba(27,16,23,.55) 45%, rgba(27,16,23,.1) 100%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 24px; padding-top: 90px; padding-bottom: 60px; }
.hero .copy { position: relative; z-index: 2; }
.hero .logo { width: min(560px, 90%); margin-bottom: 22px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.5)); }
.hero .catch { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.85rem); line-height: 1.65; margin-bottom: 14px; text-wrap: balance; }
.hero .catch em { font-style: normal; color: var(--amber); }
.hero .lead { margin-bottom: 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; text-decoration: none;
  padding: 15px 30px; font-weight: 700; font-size: 1.02rem; font-family: var(--round);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: linear-gradient(180deg, #FFC98A, var(--amber)); color: var(--plum); box-shadow: 0 10px 30px rgba(255,184,97,.3); }
.btn.rose { background: linear-gradient(180deg, var(--rose), var(--rose-deep)); color: #fff; box-shadow: 0 10px 30px rgba(226,135,154,.3); }
.btn.ghost { border: 1px solid rgba(255,246,234,.35); color: var(--cream); }
.btn .tag { font-size: .75rem; opacity: .8; font-weight: 500; }
.hero .art { position: relative; z-index: 1; justify-self: center; }
.hero .art .pic {
  width: min(480px, 100%); border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,.65), 0 0 0 1px rgba(255,184,97,.25);
  transform: rotate(-2deg);
}
.hero .art .corner { position: absolute; width: 120px; pointer-events: none; }
.hero .art .corner.tl { top: -26px; left: -30px; }
.hero .art .corner.tr { top: -26px; right: -30px; transform: scaleX(-1); }
.hero .art .corner.bl { bottom: -26px; left: -30px; transform: scaleY(-1); }
.hero .art .corner.br { bottom: -26px; right: -30px; transform: scale(-1); }
.hero .hearts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero .hearts span {
  position: absolute; bottom: -40px; width: 18px; height: 18px; opacity: 0;
  background: var(--rose); clip-path: path("M9 17 L2.2 10 A4.5 4.5 0 0 1 9 4.2 A4.5 4.5 0 0 1 15.8 10 Z");
  animation: rise 11s linear infinite;
}
@keyframes rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 12% { opacity: .55; } 100% { transform: translateY(-110vh) translateX(30px) scale(1.1); opacity: 0; } }
.hero .scrolldown { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: .8rem; color: var(--cream-dim); letter-spacing: .2em; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 110px; }
  .hero .art { order: -1; }
  .hero .art .pic { width: min(340px, 80%); margin: 0 auto; }
}

/* ---- 演出: 初回だけの登場 ---- */
.enter { opacity: 0; transform: translateY(18px); }
body.ok .enter { animation: enter .9s cubic-bezier(.2,.7,.2,1) forwards; }
body.ok .enter.d1 { animation-delay: .15s; } body.ok .enter.d2 { animation-delay: .35s; } body.ok .enter.d3 { animation-delay: .55s; } body.ok .enter.d4 { animation-delay: .8s; }
@keyframes enter { to { opacity: 1; transform: none; } }

/* ---- 区切り ---- */
.divider { width: min(720px, 80%); margin: 0 auto; opacity: .9; }
section { padding: 96px 0; position: relative; }
section.tint { background: linear-gradient(180deg, var(--night), var(--night-deep)); }

/* ---- 全幅の一枚絵(パララックス) ---- */
.panorama { position: relative; height: clamp(420px, 70vh, 760px); overflow: hidden; }
.panorama img.full { position: absolute; left: 50%; top: 50%; width: 100%; height: 125%; object-fit: cover; object-position: 50% 12%; transform: translate(-50%, -50%); will-change: transform; }
.panorama .veil { position: absolute; inset: 0; background: linear-gradient(180deg, var(--night-deep) 0%, transparent 16%, transparent 52%, rgba(27,16,23,.92) 100%); }
.panorama .caption { position: absolute; left: 0; right: 0; bottom: 44px; text-align: center; padding: 0 24px; }
.panorama .caption h2 { text-shadow: 0 4px 24px rgba(0,0,0,.8); }
.panorama .caption p { margin: 8px auto 0; text-shadow: 0 2px 12px rgba(0,0,0,.9); }

/* ---- キャラクター ---- */
.cast { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.girl { position: relative; border-radius: 20px; padding: 28px 22px 26px; background: linear-gradient(180deg, rgba(58,36,48,.7), rgba(27,16,23,.9)); border: 1px solid rgba(255,184,97,.18); overflow: hidden; }
.girl::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 20%, rgba(226,135,154,.22), transparent 60%); }
.girl figure { position: relative; height: 380px; display: flex; align-items: flex-end; justify-content: center; }
.girl figure img { max-height: 380px; width: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.girl:hover figure img { transform: translateY(-8px) scale(1.03); }
.girl h3 { position: relative; font-size: 1.5rem; margin-top: 14px; }
.girl h3 span { font-family: var(--round); font-size: .85rem; color: var(--rose); font-weight: 500; margin-left: 10px; }
.girl .voice { position: relative; font-family: var(--serif); color: var(--amber); margin: 8px 0 8px; font-size: 1.05rem; }
.say { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 8px;
  vertical-align: -5px; border-radius: 50%; border: 1px solid rgba(226,135,154,.55); background: rgba(226,135,154,.14);
  color: var(--rose); font-size: .62rem; line-height: 1; cursor: pointer; padding: 0; transition: background .2s, color .2s, transform .2s; }
.say:hover { background: rgba(226,135,154,.3); color: var(--cream); }
.say:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.say.playing { background: var(--rose); color: var(--night-deep); border-color: transparent; }

.girl p { position: relative; font-size: .95rem; color: var(--cream-dim); }
.girl .corner { position: absolute; width: 90px; opacity: .85; pointer-events: none; }
.girl .corner.tl { top: -8px; left: -8px; } .girl .corner.br { bottom: -8px; right: -8px; transform: scale(-1); }
.hub { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; margin-top: 28px; padding: 26px 30px; border-radius: 20px; border: 1px dashed rgba(95,211,208,.45); background: rgba(95,211,208,.06); }
.hub .mark { font-family: var(--serif); font-size: 3.4rem; line-height: 1; text-align: center; color: var(--teal); text-shadow: 0 0 24px rgba(95,211,208,.5); }
.hub h3 { font-size: 1.35rem; }
.hub h3 small { font-family: var(--round); font-size: .85rem; color: var(--teal); font-weight: 500; margin-left: 10px; }
.hub p { margin-top: 8px; font-size: .95rem; color: var(--cream-dim); max-width: none; }
.hub a { color: var(--teal); }
@media (max-width: 900px) { .cast { grid-template-columns: 1fr; } .girl figure { height: 320px; } .hub { grid-template-columns: 1fr; gap: 8px; text-align: center; } }

/* ---- 遊び ---- */
.play { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 56px; }
.play:nth-of-type(even) .shot { order: 2; }
.play .shot { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(255,184,97,.2); }
.play .shot img { width: 100%; transition: transform .8s ease; }
.play .shot:hover img { transform: scale(1.03); }
.play h3 { font-size: 1.6rem; margin-bottom: 10px; }
.play h3 small { display: block; font-family: var(--round); font-size: .85rem; color: var(--rose); font-weight: 500; letter-spacing: .1em; }
.play ul { list-style: none; margin-top: 14px; }
.play li { padding-left: 1.4em; position: relative; color: var(--cream-dim); }
.play li::before { content: "❤"; position: absolute; left: 0; color: var(--rose); font-size: .8em; top: .15em; }
@media (max-width: 900px) { .play { grid-template-columns: 1fr; } .play:nth-of-type(even) .shot { order: 0; } }

/* ---- スクリーンショット(仮置き) ---- */
.note { font-size: .9rem; color: var(--cream-dim); margin-top: 18px; }
/* 実機の画は 2 列で大きく、どれも 16:9 に揃える。縦横比の違う画は切って合わせるので、
   顔や台詞が切れる画だけ位置をずらす(下の y-* )。麻雀だけは横いっぱいで一段大きい。 */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.gallery figure { position: relative; border-radius: 14px; overflow: hidden; background: var(--plum);
  border: 1px solid rgba(255,184,97,.22); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery img.y-top { object-position: center top; }  /* 縦長の画。上の台詞と顔を残し、下を切る */
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 15px;
  background: linear-gradient(transparent, rgba(16,9,15,.55) 35%, rgba(16,9,15,.94)); }
.gallery figcaption b { display: block; font-family: var(--serif); color: var(--amber); font-size: 1.12rem; }
.gallery figcaption span { display: block; font-size: .88rem; color: var(--cream-dim); margin-top: 3px; }
.gallery figure.wide figcaption b { font-size: 1.3rem; }
@media (max-width: 620px) { .gallery { grid-template-columns: 1fr; gap: 14px; } }

/* ---- 購入 ---- */
.buy { text-align: center; }
.buy .stores { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 30px; }
.store {
  min-width: 280px; padding: 26px 28px; border-radius: 18px; text-decoration: none; color: var(--cream);
  background: linear-gradient(180deg, rgba(58,36,48,.9), rgba(27,16,23,.95)); border: 1px solid rgba(255,184,97,.28);
  transition: transform .15s ease, border-color .15s ease;
}
.store:hover { transform: translateY(-3px); border-color: var(--amber); }
.store b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--amber); }
.store span { display: block; color: var(--cream-dim); font-size: .9rem; margin-top: 4px; }
.store .price { display: block; margin-top: 12px; font-size: 1.3rem; color: var(--cream); }
.trial { margin: 40px auto 0; max-width: 780px; padding: 24px 28px; border-radius: 16px; background: rgba(95,211,208,.06); border: 1px dashed rgba(95,211,208,.4); text-align: left; }
.trial b { color: var(--teal); }

/* ---- 表・FAQ ---- */
table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: .96rem; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(255,246,234,.12); vertical-align: top; }
th { color: var(--amber); font-weight: 600; width: 10em; white-space: nowrap; }
details { border-bottom: 1px solid rgba(255,246,234,.12); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; color: var(--cream); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "＋"; color: var(--rose); }
details[open] summary::after { content: "－"; }
details p { margin-top: 10px; color: var(--cream-dim); font-size: .95rem; }

footer { padding: 50px 24px 60px; text-align: center; color: var(--cream-dim); font-size: .88rem; border-top: 1px solid rgba(255,246,234,.1); }
footer a { color: var(--cream-dim); }
/* p の max-width(38em)は左右 auto を持たないので、中央寄せの箱の中では左に寄ってしまう。
   中央寄せしている所だけ、段落の箱も中央に置く。 */
footer p, .panorama .caption p, .buy p { margin-left: auto; margin-right: auto; }
footer .logo { width: 240px; margin: 0 auto 18px; opacity: .8; }

/* ---- スクロールで浮かぶ ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .enter, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .hero .hearts, .hero .bg, .panorama img.full { animation: none !important; transform: none !important; }
}
