/* ============================================================
   らぶらぼ / LoveLab
   ============================================================ */

:root {
  --bg: #fdf8fa;
  --bg-warm: #fbf2f6;
  --bg-cool: #f2eefa;
  --card: #ffffff;
  --card-soft: rgba(255, 255, 255, .74);

  --line: #eddfe9;
  --line-cool: #e2dbf1;

  --ink: #2b3364;
  --ink-soft: #5b5a83;
  --ink-dim: #948fae;

  --pink: #ec4a86;
  --pink-hi: #f774a6;
  --pink-soft: #f9c8dc;
  --pink-wash: #fce9f1;

  --lav: #b7a9e0;
  --lav-wash: #ece7f8;
  --aqua: #8fc9e4;
  --aqua-wash: #e4f1f8;
  --gold: #d9bd7e;

  --dlsite: #0a3d91;
  --dlsite-hi: #1657c4;
  --fanza: #e8213b;
  --fanza-hi: #ff3b52;

  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1060px;
  --nav-h: 64px;

  --shadow-sm: 0 2px 10px rgba(120, 90, 130, .07);
  --shadow: 0 8px 28px rgba(120, 90, 130, .10);
  --shadow-lg: 0 16px 48px rgba(120, 90, 130, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: 'Zen Maru Gothic', 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 8% 4%,   rgba(249, 200, 220, .55) 0%, transparent 62%),
    radial-gradient(ellipse 55% 40% at 94% 12%, rgba(183, 169, 224, .40) 0%, transparent 62%),
    radial-gradient(ellipse 65% 40% at 50% 46%, rgba(228, 241, 248, .60) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 4% 82%,  rgba(183, 169, 224, .28) 0%, transparent 62%),
    radial-gradient(ellipse 60% 40% at 96% 92%, rgba(249, 200, 220, .38) 0%, transparent 62%),
    var(--bg);
  pointer-events: none;
}

a { color: var(--pink); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--pink-hi); }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* ---------- ロゴ ---------- */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; }

/* ---------- ナビ ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 252, 253, .84);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--pink); background: var(--pink-wash); }
.nav-links a.active { color: var(--pink); background: var(--pink-wash); }

/* ---------- セクション ---------- */
section { padding: 76px 0; }
section.tight { padding: 48px 0; }

.sec-head { margin-bottom: 34px; text-align: center; }
.sec-head.left { text-align: left; }
.sec-label {
  font-family: 'Outfit', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--lav);
  display: block;
  margin-bottom: 6px;
}
.sec-head h2 {
  font-size: clamp(1.45rem, 4vw, 1.95rem);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink);
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}
.sec-head h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 46px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--pink-soft), var(--pink));
}
.sec-head.left h2::after { left: 0; transform: none; }
.sec-head p { color: var(--ink-soft); margin-top: 12px; font-size: .93rem; }

/* ---------- ヒーロー（トップ） ---------- */
.hero { padding: 56px 0 40px; text-align: center; overflow: hidden; }
.hero-inner { display: flex; align-items: center; justify-content: center; gap: 20px; }
.hero-main { flex: 0 1 auto; min-width: 0; }
.hero-chara {
  flex: 0 0 auto;
  height: 420px;
  width: auto;
  align-self: flex-end;
  margin-bottom: -40px;
  filter: drop-shadow(0 14px 26px rgba(120, 90, 130, .22));
  pointer-events: none;
  user-select: none;
}
@media (max-width: 900px) { .hero-chara { display: none; } }

.hero-logo { max-width: 460px; margin: 0 auto -18px; }
.hero-logo video, .hero-logo img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 50%, #000 58%, transparent 88%);
  mask-image: radial-gradient(ellipse 62% 58% at 50% 50%, #000 58%, transparent 88%);
}
.hero-tag {
  margin-top: 18px;
  font-size: clamp(1rem, 3vw, 1.22rem);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .04em;
}
.hero-sub { margin-top: 10px; color: var(--ink-dim); font-size: .88rem; letter-spacing: .08em; }

/* ---------- カード ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.work-card {
  display: block;
  max-width: 680px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work-card .thumb { display: block; position: relative; overflow: hidden; background: var(--pink-wash); }
.work-card .thumb img { width: 100%; height: auto; display: block; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.work-card:hover .thumb img { transform: scale(1.03); }
.work-card .body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.work-card .title-logo { max-width: 380px; width: 100%; }
.work-card h3 {
  font-size: clamp(1.15rem, 3vw, 1.42rem);
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--ink);
  line-height: 1.5;
}
.work-card p { color: var(--ink-soft); font-size: .92rem; }

/* ---------- バッジ ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 13px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  border: 1px solid;
}
.badge-wip { color: #4a9bb8; border-color: #b8dcea; background: var(--aqua-wash); }
.badge-new { color: var(--pink); border-color: var(--pink-soft); background: var(--pink-wash); }
.badge-r18 { color: #d94a4a; border-color: #f3c4c4; background: #fdeded; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- ボタン（ぷっくり） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 30px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: .97rem;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s, filter .22s;
  text-align: center;
  line-height: 1.45;
  position: relative;
}
.btn:hover { transform: translateY(-2px); }
.btn::after {
  content: '';
  position: absolute;
  left: 12%; right: 12%; top: 4px;
  height: 34%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,0));
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(180deg, #f978ab 0%, #ec4a86 100%);
  color: #fff;
  box-shadow: 0 4px 0 #cf3970, 0 10px 22px rgba(236, 74, 134, .28);
}
.btn-primary:hover { color: #fff; box-shadow: 0 4px 0 #cf3970, 0 14px 30px rgba(236, 74, 134, .38); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #cf3970, 0 6px 14px rgba(236, 74, 134, .3); }

.btn-ghost {
  background: #fff;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { color: var(--pink); border-color: var(--pink-soft); }
.btn-ghost::after { display: none; }

.btn-dlsite { background: linear-gradient(180deg, #2a63bd 0%, #0a3d91 100%); color: #fff; box-shadow: 0 4px 0 #06306f, 0 10px 22px rgba(10, 61, 145, .26); }
.btn-dlsite:hover { color: #fff; box-shadow: 0 4px 0 #06306f, 0 14px 30px rgba(10, 61, 145, .34); }
.btn-dlsite:active { transform: translateY(2px); box-shadow: 0 2px 0 #06306f; }

.btn-fanza { background: linear-gradient(180deg, #f2465c 0%, #e8213b 100%); color: #fff; box-shadow: 0 4px 0 #c0142a, 0 10px 22px rgba(232, 33, 59, .24); }
.btn-fanza:hover { color: #fff; box-shadow: 0 4px 0 #c0142a, 0 14px 30px rgba(232, 33, 59, .32); }
.btn-fanza:active { transform: translateY(2px); box-shadow: 0 2px 0 #c0142a; }

.btn-lg { padding: 17px 42px; font-size: 1.06rem; }
.btn-block { width: 100%; }

.btn.is-disabled,
.btn[aria-disabled="true"] {
  background: #f4eff5;
  color: var(--ink-dim);
  border: 1px dashed var(--line);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
.btn.is-disabled::after { display: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ---------- 作品ページ ヒーロー ---------- */
.work-hero {
  padding: 56px 0 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.work-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(26px) saturate(1.15);
  transform: scale(1.18);
  opacity: .62;
  z-index: -2;
  pointer-events: none;
}
.work-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(253,248,250,.55) 0%, rgba(253,248,250,0) 26%, rgba(253,248,250,0) 62%, var(--bg) 100%);
  pointer-events: none;
}
.work-hero .title-logo { max-width: 560px; margin: 0 auto 22px; }
.work-hero .catch {
  font-size: clamp(1rem, 3.4vw, 1.24rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.9;
}
.work-hero .catch { margin-top: 28px; }
.kv {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .85);
  max-width: 680px;
  margin: 0 auto;
}
.kv img { width: 100%; height: auto; display: block; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 本作の特徴（差別化ポイント／ここだけ強く出す） ---------- */
.feature-hero {
  position: relative;
  border-radius: var(--radius);
  padding: 40px 44px;
  background: linear-gradient(150deg, #fff 0%, var(--pink-wash) 58%, var(--lav-wash) 100%);
  border: 1px solid var(--pink-soft);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.feature-hero::before {
  content: '';
  position: absolute;
  right: -60px; top: -70px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.feature-hero > * { position: relative; }
.feature-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 15px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 18px;
}
.feature-hero h3 {
  font-size: clamp(1.24rem, 3.6vw, 1.68rem);
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 16px;
  text-wrap: balance;
}
.feature-hero h3 em {
  font-style: normal;
  color: var(--pink);
}
.feature-hero p { color: var(--ink-soft); font-size: .97rem; }
.feature-hero p + p { margin-top: 12px; }

.feature-demo {
  margin-top: 24px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow);
  background: #000;
}
.feature-demo video { width: 100%; height: auto; display: block; }
.feature-demo figcaption {
  background: var(--card);
  color: var(--ink-dim);
  font-size: .78rem;
  text-align: center;
  padding: 8px 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.feature-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.feature-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.feature-item p { color: var(--ink-soft); font-size: .89rem; }

@media (max-width: 760px) {
  .feature-hero { padding: 28px 22px; }
}

/* ---------- 購入ブロック ---------- */
.buybox {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}
.buybox h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--ink); }
.buybox .note { color: var(--ink-dim); font-size: .82rem; margin-top: 18px; line-height: 1.8; }
.buy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 22px; }

/* ---------- スペック表 ---------- */
.spec { width: 100%; border-collapse: collapse; font-size: .93rem; }
.spec th, .spec td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { color: var(--ink-dim); font-weight: 700; white-space: nowrap; width: 132px; font-size: .85rem; }
.spec td { color: var(--ink-soft); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: none; }

/* ---------- カルーセル ---------- */
.carousel {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
}
.carousel-track {
  display: flex;
  transition: transform .5s cubic-bezier(.3, .8, .3, 1);
  will-change: transform;
}
.carousel-slide { flex: 0 0 100%; min-width: 0; }
.carousel-slide img { width: 100%; height: auto; display: block; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--pink);
  font-size: 1.4rem;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  transition: background .2s, transform .2s, color .2s;
  z-index: 2;
}
.carousel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.carousel-btn:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.carousel-btn.prev { left: -14px; }
.carousel-btn.next { right: -14px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.carousel-dot[aria-current="true"] { background: var(--pink); transform: scale(1.25); }
.carousel-dot:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

.carousel-caption {
  text-align: center;
  color: var(--ink-dim);
  font-size: .84rem;
  margin-top: 12px;
  min-height: 1.6em;
}

@media (max-width: 820px) {
  .carousel-btn.prev { left: 6px; }
  .carousel-btn.next { right: 6px; }
  .carousel-btn { width: 38px; height: 38px; font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

/* ---------- 開発日誌 ---------- */
.post { padding: 26px 0; border-bottom: 1px dashed var(--line); }
.post:first-of-type { padding-top: 0; }
.post:last-child { border-bottom: none; padding-bottom: 0; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.post-date { font-family: 'Outfit', sans-serif; font-size: .8rem; letter-spacing: .1em; color: var(--ink-dim); }
.post h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.post p { color: var(--ink-soft); font-size: .93rem; }
.post p + p { margin-top: 10px; }

.tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--lav-wash);
  color: #7b6ba8;
}

/* ---------- 本文 ---------- */
.prose h3 { font-size: 1.08rem; margin: 30px 0 10px; color: var(--ink); }
.prose h3:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); font-size: .96rem; }
.prose p + p { margin-top: 14px; }
.prose strong { color: var(--pink); font-weight: 700; }
.prose .fineprint { font-size: .87rem; color: var(--ink-dim); }
.prose ul { margin: 12px 0 12px 1.3em; color: var(--ink-soft); font-size: .96rem; }
.prose li { margin-bottom: 6px; }

/* ---------- 注意書き ---------- */
.callout {
  border-left: 4px solid var(--pink-soft);
  background: var(--pink-wash);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .89rem;
  color: var(--ink-soft);
}
.callout strong { color: var(--ink); }
.callout.cool { border-left-color: var(--lav); background: var(--lav-wash); }

/* ---------- フッター ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 46px 0 60px;
  margin-top: 48px;
  background: rgba(255, 255, 255, .5);
}
.footer .wrap { display: flex; flex-direction: column; gap: 24px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--ink-soft); font-size: .87rem; font-weight: 700; }
.footer-links a:hover { color: var(--pink); }
.footer-note {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: var(--ink-dim);
  font-size: .77rem;
  line-height: 2;
}
.footer-note strong { color: var(--ink-soft); font-weight: 700; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 760px) {
  section { padding: 56px 0; }
  .work-card { grid-template-columns: 1fr; }
  .work-card .thumb { aspect-ratio: 4 / 3; }
  .work-card .body { padding: 24px 22px; }
  .nav-links a { padding: 6px 10px; font-size: .82rem; }
  .logo img { height: 28px; }
  .buybox { padding: 26px 20px; }
  .btn-row .btn { width: 100%; }
  .work-hero .title-logo { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
