/* ==========================================================
   完堕ワイフ 公式サイト（モック）
   昼（全年齢）＝生成り＋くすみローズ＋金 ／ 夜（R18）＝黒＋ワイン＋金
   色は下の変数だけで切り替わる。body.is-r18 で夜になる。
   ========================================================== */

:root {
  --bg: #F7F1EA;
  --bg-2: #EFE4D8;
  --bg-3: #FFFBF6;
  --ink: #3A2E2C;
  --ink-soft: #6F605A;
  --accent: #B7787F;
  --accent-deep: #8E4F58;
  --gold: #B8975A;
  --gold-hi: #D9BE85;
  --line: rgba(58, 46, 44, .14);
  --card: rgba(255, 251, 246, .82);
  --shadow: 0 18px 50px -24px rgba(90, 55, 50, .35);
  --hero-fade: 247, 241, 234; /* --bg を rgb で */
  --header-h: 72px;
  --f-mincho: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --f-goth: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --f-en: "Cormorant Garamond", "Times New Roman", serif;
}
body.is-r18 {
  --bg: #140C10;
  --bg-2: #1D1117;
  --bg-3: #24151C;
  --ink: #F3E9E4;
  --ink-soft: #BCA9A3;
  --accent: #B0345A;
  --accent-deep: #7A1E3A;
  --gold: #C9A45C;
  --gold-hi: #E6C88A;
  --line: rgba(243, 233, 228, .14);
  --card: rgba(36, 21, 28, .86);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --hero-fade: 20, 12, 16;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-goth);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .04em;
  font-variant-numeric: lining-nums; /* 英字の書体の数字が小文字のように見えないように */
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--ink); color: var(--bg); padding: 6px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* 「仮」の札（モックの間だけ。確認待ちの情報） */
.kari {
  display: inline-block;
  margin-left: .5em;
  padding: 0 .45em;
  border: 1px dashed currentColor;
  border-radius: 3px;
  font: 500 10px/1.6 var(--f-goth);
  letter-spacing: .05em;
  color: #C0392B;
  vertical-align: middle;
  opacity: .85;
}
body.is-r18 .kari { color: #FF8A80; }

/* ---------- 上のメニュー ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 40px);
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.header.is-scrolled {
  background: rgba(var(--hero-fade), .86);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.logo__mark { font: 800 24px/1.1 var(--f-mincho); letter-spacing: .12em; }
.logo__sub { font: 600 10px/1.6 var(--f-en); letter-spacing: .32em; color: var(--gold); }
.gnav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.gnav ul { display: flex; gap: clamp(14px, 2.2vw, 32px); }
.gnav li a {
  display: flex; flex-direction: column; align-items: center;
  font-size: 12px; font-weight: 500; text-decoration: none; letter-spacing: .14em;
  transition: color .3s;
}
.gnav li a span { font: 600 11px/1.3 var(--f-en); letter-spacing: .3em; color: var(--gold); }
.gnav li a:hover { color: var(--accent-deep); }
body.is-r18 .gnav li a:hover { color: var(--gold-hi); }
.btn-r18 {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  background: linear-gradient(135deg, #8E2A48, #5E1430);
  color: #FFF4F0; font-weight: 700; font-size: 13px; text-decoration: none; letter-spacing: .1em;
  box-shadow: 0 6px 18px -8px rgba(122, 30, 58, .8);
  transition: transform .25s, box-shadow .25s;
}
.btn-r18 em { font-style: normal; font: 700 10px/1 var(--f-goth); padding: 3px 5px; border-radius: 4px; background: #FFF4F0; color: #7A1E3A; }
.btn-r18:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(122, 30, 58, .9); }
.btn-r18--back { background: transparent; border: 1px solid var(--gold); color: var(--gold-hi); box-shadow: none; }
.nav-toggle { display: none; }

/* ---------- 最初の画面 ---------- */
.hero { position: relative; height: max(640px, min(100svh, 940px)); overflow: hidden; background: var(--bg-2); }
.hero__slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s 1.2s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s ease; }
.slide__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06);
  transition: transform 9s linear;
}
.slide.is-active .slide__bg { transform: scale(1); }
.slide__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--hero-fade), .85) 0, rgba(var(--hero-fade), 0) 140px),
    linear-gradient(90deg, rgba(var(--hero-fade), .97) 0%, rgba(var(--hero-fade), .88) 30%, rgba(var(--hero-fade), .25) 58%, rgba(var(--hero-fade), 0) 75%),
    linear-gradient(0deg, rgba(var(--hero-fade), .9) 0%, rgba(var(--hero-fade), 0) 22%);
}
body.is-r18 .slide__bg { filter: blur(28px) brightness(.45) saturate(1.2); transform: scale(1.2); }
body.is-r18 .slide.is-active .slide__bg { transform: scale(1.15); }

.slide__chara {
  position: absolute; right: clamp(0px, 13vw, 230px); bottom: 0;
  height: 90%; aspect-ratio: 3 / 4;
  filter: drop-shadow(0 30px 40px rgba(80, 50, 45, .25));
}
.slide__chara video { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.slide__kv {
  position: absolute; right: clamp(24px, 8vw, 140px); top: 50%;
  width: min(42vw, 640px); aspect-ratio: 4 / 3;  /* 左の文字（説明の 1 行）と重ならない大きさ */
  transform: translateY(-46%);
  border: 1px solid rgba(201, 164, 92, .55);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 8px rgba(201, 164, 92, .08);
}
.slide__kv img { width: 100%; height: 100%; object-fit: cover; }

.slide__text {
  position: absolute; left: clamp(20px, 7vw, 120px); top: 50%;
  transform: translateY(-46%);
  width: min(620px, 48vw);
}
/* 切り替わる時：出ていく文字はすぐ消し、入ってくる文字は少し待ってから下から出す（重ならないように） */
.slide:not(.is-active) .slide__text { opacity: 0; transition: opacity .3s; }
.slide.is-active .slide__text > * { animation: rise .9s .4s both; }
.slide.is-active .slide__text > *:nth-child(2) { animation-delay: .48s; }
.slide.is-active .slide__text > *:nth-child(3) { animation-delay: .56s; }
.slide.is-active .slide__text > *:nth-child(4) { animation-delay: .64s; }
.slide.is-active .slide__text > *:nth-child(5) { animation-delay: .72s; }
.slide.is-active .slide__text > *:nth-child(6) { animation-delay: .8s; }
.slide.is-active .slide__text > *:nth-child(7) { animation-delay: .88s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.slide__label { font-size: 12px; letter-spacing: .2em; color: var(--ink-soft); margin-bottom: 14px; }
.slide__when { display: inline-block; white-space: nowrap; }  /* 「予告中・2026年12月発売予定」を途中で折らない（入らない時は札の下の行へまとめて送る） */
.badge {
  display: inline-block; margin-right: 10px; padding: 1px 10px;
  border-radius: 2px; background: var(--accent-deep); color: #FFF6F2;
  font: 600 11px/1.8 var(--f-en); letter-spacing: .25em;
}
.slide__title {
  font: 800 clamp(36px, 4.8vw, 68px)/1.15 var(--f-mincho);
  letter-spacing: .08em; white-space: nowrap;
  background: linear-gradient(180deg, var(--ink) 30%, var(--accent-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* 題に半角スペースがある時は、そこで 2 行に分ける（妻の裏垢 通知オン） */
.slide__tl { display: block; }
body.is-r18 .slide__title { background: linear-gradient(180deg, #FFF3EC 20%, var(--gold-hi)); -webkit-background-clip: text; background-clip: text; }
.slide__sub { margin-top: 6px; font: 600 15px/1.6 var(--f-mincho); color: var(--accent-deep); letter-spacing: .08em; }
body.is-r18 .slide__sub { color: var(--gold-hi); }
.slide__genre { margin-top: 8px; font-size: 13px; letter-spacing: .2em; color: var(--accent-deep); }
body.is-r18 .slide__genre { color: #E58AA5; }
.slide__catch { margin-top: 22px; font: 700 clamp(18px, 1.8vw, 24px)/1.6 var(--f-mincho); letter-spacing: .1em; white-space: pre-line; }
.slide__one { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.slide__btns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero__vertical {
  position: absolute; right: clamp(16px, 3vw, 48px); top: calc(var(--header-h) + 28px);
  writing-mode: vertical-rl;
  font: 700 clamp(17px, 1.6vw, 22px)/1.6 var(--f-mincho);
  letter-spacing: .5em; color: var(--ink);
  padding: 18px 8px 10px;
  background: rgba(var(--hero-fade), .62);
  backdrop-filter: blur(6px);
  border-radius: 2px;
  z-index: 2; pointer-events: none;
}
.hero__dots {
  position: absolute; left: clamp(20px, 7vw, 120px); bottom: 54px; z-index: 3;
  display: flex; gap: 18px;
}
.hero-dot {
  border: 0; background: none; padding: 10px 0 0; cursor: pointer;
  font: 500 12px/1 var(--f-goth); letter-spacing: .14em; color: var(--ink-soft);
  border-top: 2px solid var(--line); min-width: 110px; text-align: left;
  transition: color .3s, border-color .3s;
}
.hero-dot.is-active { color: var(--ink); border-top-color: var(--gold); }
.hero__note { position: absolute; left: clamp(20px, 7vw, 120px); bottom: 18px; z-index: 3; font-size: 11px; color: var(--ink-soft); }

/* ---------- ボタン ---------- */
.btn-main {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 28px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-weight: 700; font-size: 14px; letter-spacing: .14em; text-decoration: none;
  transition: transform .25s, background .25s;
}
.btn-main span { transition: transform .25s; }
.btn-main:hover { transform: translateY(-1px); background: var(--accent-deep); }
.btn-main:hover span { transform: translateX(4px); }
body.is-r18 .btn-main { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: #22130F; }
body.is-r18 .btn-main:hover { background: linear-gradient(135deg, #F2DAA6, var(--gold-hi)); }
.btn-main--sm { padding: 11px 22px; font-size: 13px; }

.btn-store {
  position: relative; display: inline-grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px;
  padding: 8px 18px 9px; border-radius: 999px;
  color: #fff; text-decoration: none; line-height: 1.25;
  border: 1px solid rgba(255, 255, 255, .25);
  transition: transform .25s, filter .25s;
}
.btn-store small { grid-column: 1 / -1; font-size: 9px; letter-spacing: .2em; opacity: .85; }
.btn-store span { font-weight: 700; font-size: 13px; letter-spacing: .08em; }
.btn-store .r18mark { font-style: normal; font: 700 9px/1 var(--f-goth); padding: 3px 4px; border-radius: 3px; background: rgba(255, 255, 255, .92); color: #7A1E3A; }
.btn-store .kari { position: absolute; top: -10px; right: -6px; background: var(--bg); }
.btn-store--fanza { background: linear-gradient(135deg, #C2384E, #8E1F33); }
.btn-store--dlsite { background: linear-gradient(135deg, #2F5C9E, #1C3A6C); }
.btn-store:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-store[aria-disabled="true"] { filter: saturate(.5); cursor: not-allowed; }
.btn-store--sm { padding: 6px 14px 7px; }

.btn-line {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border: 1px solid var(--gold); border-radius: 999px;
  text-decoration: none; font-size: 13px; letter-spacing: .1em;
  transition: background .25s, color .25s;
}
.btn-line:hover { background: var(--gold); color: var(--bg); }

/* ---------- 欄の共通 ---------- */
.sec { position: relative; padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 64px); }
.sec-title { display: flex; flex-direction: column; align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-title__en {
  font: 500 clamp(46px, 6vw, 76px)/1 var(--f-en); letter-spacing: .14em;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, #9A7A40);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-title__ja { margin-top: 14px; display: flex; align-items: center; gap: 14px; font: 700 13px/1 var(--f-mincho); letter-spacing: .4em; }
.sec-title__ja::before, .sec-title__ja::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
.sec-title--left { align-items: flex-start; }
.sec-title--left .sec-title__ja::before { display: none; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s ease, transform 1s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 作品 ---------- */
.sec--works { background: var(--bg); }
.works-list {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px);
}
.work-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .4s, box-shadow .4s;
}
.work-card:hover { transform: translateY(-4px); }
.work-card__visual { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.work-card__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.2s; }
.work-card__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--hero-fade), .55), rgba(var(--hero-fade), 0) 45%); }
.work-card__chara { position: absolute; right: 8%; bottom: -2%; height: 108%; width: auto; max-width: none; transition: transform 1.2s; }
.work-card__kv { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s; }
.work-card:hover .work-card__bg, .work-card:hover .work-card__kv { transform: scale(1.04); }
.work-card:hover .work-card__chara { transform: translateY(-6px); }
.badge--float { position: absolute; left: 16px; top: 16px; }
.work-card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.work-card__meta { display: flex; align-items: center; gap: 14px; font: 500 12px/1.4 var(--f-goth); letter-spacing: .14em; color: var(--ink-soft); }
.work-card__meta .badge { margin-right: 0; }
.work-card__meta span:not(.badge) + span::before { content: "／"; margin-right: 14px; color: var(--line); }
.work-card__title { margin-top: 10px; font: 800 30px/1.3 var(--f-mincho); letter-spacing: .08em; }
.work-card__title a { text-decoration: none; }
.work-card__sub { font: 600 13px/1.6 var(--f-mincho); color: var(--accent-deep); }
body.is-r18 .work-card__sub { color: var(--gold-hi); }
.work-card__genre { margin-top: 4px; font-size: 12px; letter-spacing: .16em; color: var(--accent-deep); }
body.is-r18 .work-card__genre { color: #E58AA5; }
.work-card__one { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 2px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; background: var(--bg-3); }
.work-card__btns { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.work-card--next { grid-column: 1 / -1; flex-direction: row; box-shadow: none; background: transparent; border-style: dashed; }
.work-card--next:hover { transform: none; }
.work-card--next .work-card__visual { width: 220px; aspect-ratio: auto; display: grid; place-items: center; background: transparent; border-right: 1px dashed var(--line); }
.next-mark { font: italic 500 34px/1 var(--f-en); letter-spacing: .2em; color: var(--gold); }
.work-card--next .work-card__title { font-size: 20px; margin-top: 0; }

/* ---------- 香澄：ふたつの物語 ---------- */
.sec--kasumi { background: linear-gradient(180deg, var(--bg-2), var(--bg)); overflow: hidden; }
.kasumi { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.kasumi__chara { position: relative; }
.kasumi__chara::before {
  content: ""; position: absolute; left: 50%; top: 54%; width: 86%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid var(--gold); opacity: .5;
  box-shadow: 0 0 0 14px rgba(184, 151, 90, .06);
}
.kasumi__chara img {
  position: relative; width: 100%; max-width: 440px; margin: 0 auto;
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent);
}
.kasumi__title { font: 800 clamp(24px, 2.6vw, 34px)/1.5 var(--f-mincho); letter-spacing: .1em; }
.kasumi__lead { margin-top: 14px; color: var(--ink-soft); }
.kasumi__steps { margin-top: 34px; display: grid; gap: 18px; position: relative; }
.kasumi__steps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 1px; background: linear-gradient(var(--gold), var(--accent)); }
.kstep { position: relative; padding: 18px 22px 20px 64px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.kstep__when { font-size: 12px; letter-spacing: .2em; color: var(--accent-deep); }
body.is-r18 .kstep__when { color: #E58AA5; }
.kstep__no {
  position: absolute; left: 6px; top: 16px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); border: 1px solid var(--gold);
  font: 500 13px/1 var(--f-goth); color: var(--gold);
}
.kstep__title { margin-top: 2px; font: 800 20px/1.5 var(--f-mincho); letter-spacing: .06em; }
.kstep__title a { text-decoration: none; }
.kstep__title a:hover { color: var(--accent-deep); }
.kstep__text { margin-top: 4px; font-size: 14px; }
.kasumi__note { margin-top: 20px; font-size: 13px; color: var(--ink-soft); }

/* ---------- ニュース ---------- */
.sec--news { background: var(--bg); }
.news-list { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 110px 130px 1fr; gap: 16px; align-items: baseline; padding: 18px 8px; border-bottom: 1px solid var(--line); }
.news-item time { font: 500 13px/1 var(--f-goth); letter-spacing: .1em; color: var(--ink-soft); }
.news-item__link { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; transition: color .2s, text-decoration-color .2s; }
.news-item__link:hover { color: var(--accent-deep); text-decoration-color: currentColor; }
body.is-r18 .news-item__link:hover { color: #E58AA5; }
.news-item__tag { justify-self: start; padding: 1px 10px; border: 1px solid var(--accent); border-radius: 999px; font-size: 11px; color: var(--accent-deep); white-space: nowrap; }
body.is-r18 .news-item__tag { color: #E58AA5; }

/* ---------- サークル ---------- */
.sec--circle { background: var(--bg-2); }
.circle { max-width: 760px; margin: 0 auto; text-align: center; }
.circle__en { font: 600 13px/1 var(--f-en); letter-spacing: .5em; color: var(--gold); }
.circle__name { margin-top: 14px; font: 800 clamp(34px, 4vw, 48px)/1.2 var(--f-mincho); letter-spacing: .16em; }
.circle__tagline { margin-top: 12px; font: 700 17px/1.6 var(--f-mincho); letter-spacing: .14em; color: var(--accent-deep); }
body.is-r18 .circle__tagline { color: var(--gold-hi); }
.circle__about { margin-top: 22px; color: var(--ink-soft); }
.circle__links { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- R18 版への帯（全年齢ページ） ---------- */
.sec--r18band { background: var(--bg); padding-top: clamp(60px, 7vw, 100px); padding-bottom: clamp(60px, 7vw, 100px); }
.r18band {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(18px, 3vw, 36px); align-items: center;
  padding: clamp(26px, 3vw, 40px) clamp(24px, 4vw, 48px);
  border-radius: 10px; text-decoration: none; color: #FBEFEA;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(201, 164, 92, .22), transparent 55%),
    linear-gradient(120deg, #2A0F1B, #5E1430 55%, #8E2A48);
  box-shadow: 0 30px 60px -30px rgba(94, 20, 48, .8);
  transition: transform .35s, box-shadow .35s;
}
.r18band:hover { transform: translateY(-3px); box-shadow: 0 36px 70px -30px rgba(94, 20, 48, .95); }
.r18band__badge { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold-hi); font: 700 24px/1 var(--f-mincho); color: var(--gold-hi); }
.r18band__body { display: flex; flex-direction: column; gap: 4px; }
.r18band__en { font: 600 11px/1 var(--f-en); letter-spacing: .4em; color: var(--gold-hi); }
.r18band strong { font: 800 clamp(20px, 2.2vw, 26px)/1.5 var(--f-mincho); letter-spacing: .08em; }
.r18band__text { font-size: 13px; opacity: .9; }
.r18band__warn { font-size: 11px; opacity: .7; }
.r18band__arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .5); font-size: 18px; transition: transform .3s; }
.r18band:hover .r18band__arrow { transform: translateX(4px); }

/* ---------- いちばん下 ---------- */
.footer { padding: 64px 20px 40px; text-align: center; background: #2A201E; color: #E9DFD8; }
body.is-r18 .footer { background: #0B0609; }
.footer__logo { font: 800 26px/1.2 var(--f-mincho); letter-spacing: .16em; }
.footer ul { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.footer ul a { font-size: 13px; text-decoration: none; letter-spacing: .1em; opacity: .85; }
.footer ul a:hover { opacity: 1; text-decoration: underline; }
.footer ul em { font-style: normal; margin-left: 6px; padding: 1px 5px; border-radius: 3px; background: #8E2A48; font-size: 10px; }
.footer__note { margin-top: 28px; font-size: 11px; line-height: 1.9; opacity: .65; }
.footer__copy { margin-top: 18px; font: 500 12px/1 var(--f-en); letter-spacing: .2em; opacity: .6; }

/* ---------- 年齢確認（R18 ページ） ---------- */
.agegate {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center; padding: 20px;
  background: #F7F1EA; color: #3A2E2C;
  transition: background 1.1s ease, opacity .9s ease .3s;
}
html.age-ok .agegate { display: none; }
body.is-gated { overflow: hidden; }
.agegate__box {
  width: min(460px, 100%); padding: 44px 36px 36px; text-align: center;
  background: #FFFBF6; border: 1px solid rgba(184, 151, 90, .5); border-radius: 10px;
  box-shadow: 0 30px 80px -30px rgba(90, 55, 50, .4);
  transition: opacity .5s, transform .6s;
}
.agegate__badge { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: #7A1E3A; color: #FFF4F0; font: 700 18px/1 var(--f-mincho); letter-spacing: .02em; box-shadow: 0 0 0 4px #FFFBF6, 0 0 0 5px #B8975A; }
.agegate__title { margin-top: 20px; font: 800 24px/1.4 var(--f-mincho); letter-spacing: .2em; }
.agegate__text { margin-top: 14px; font-size: 13px; color: #6F605A; }
.agegate__q { margin-top: 20px; font-weight: 700; }
.agegate__btns { margin-top: 22px; display: grid; gap: 12px; }
.agegate__yes, .agegate__no {
  display: block; padding: 15px; border-radius: 999px; cursor: pointer;
  font: 700 15px/1.2 var(--f-goth); letter-spacing: .12em; text-decoration: none;
}
.agegate__yes { border: 0; background: linear-gradient(135deg, #8E2A48, #5E1430); color: #FFF4F0; box-shadow: 0 10px 24px -10px rgba(94, 20, 48, .8); }
.agegate__yes:hover { filter: brightness(1.1); }
.agegate__no { border: 1px solid rgba(58, 46, 44, .25); color: #3A2E2C; background: #fff; }
/* 「はい」を押した後：昼の生成りが夜に沈んでから消える */
.agegate.is-leaving { background: #140C10; opacity: 0; pointer-events: none; }
.agegate.is-leaving .agegate__box { opacity: 0; transform: scale(.97); }

/* ---------- 実写の作品（R18 の奥の r18/real/・2026-12-01） ---------- */
/* 実写の注意：年齢確認の後に 1 回だけ（年齢確認より下に重ねる＝年齢確認が消えると出てくる） */
.realgate {
  position: fixed; inset: 0; z-index: 490;
  display: grid; place-items: center; padding: 20px;
  background: radial-gradient(120% 90% at 50% 0%, #2A1420, #140C10 70%); color: #F3E9E4;
  transition: opacity .8s ease;
}
html.real-ok .realgate { display: none; }
.realgate__box {
  width: min(480px, 100%); padding: 40px 34px 34px; text-align: center;
  background: #1D1117; border: 1px solid rgba(201, 164, 92, .45); border-radius: 10px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
  transition: opacity .5s, transform .6s;
}
.realgate__badge, .real-mark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid #E05A6E;
  font: 700 13px/1 var(--f-en); letter-spacing: .32em; color: #FFE7EA;
  background: rgba(224, 90, 110, .14);
}
.realgate__badge::before, .real-mark::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #FF4B5C; box-shadow: 0 0 8px #FF4B5C; }
.realgate__badge small, .real-mark small { font: 700 11px/1 var(--f-goth); letter-spacing: .12em; }
.realgate__title { margin-top: 20px; font: 800 22px/1.4 var(--f-mincho); letter-spacing: .16em; }
.realgate__text { margin-top: 14px; font-size: 13px; line-height: 1.9; color: #BCA9A3; }
.realgate__q { margin-top: 20px; font-weight: 700; }
.realgate__btns { margin-top: 22px; display: grid; gap: 12px; }
.realgate__yes, .realgate__no {
  display: block; padding: 15px; border-radius: 999px; cursor: pointer;
  font: 700 15px/1.2 var(--f-goth); letter-spacing: .12em; text-decoration: none;
}
.realgate__yes { border: 0; background: linear-gradient(135deg, #E6C88A, #C9A45C); color: #22130F; }
.realgate__yes:hover { filter: brightness(1.08); }
.realgate__no { border: 1px solid rgba(243, 233, 228, .3); color: #F3E9E4; background: transparent; }
.realgate.is-leaving { opacity: 0; pointer-events: none; }
.realgate.is-leaving .realgate__box { opacity: 0; transform: scale(.97); }
/* 上のメニューの「REAL 実写」の印（ロゴのすぐ右） */
.real-mark { margin: 0 auto 0 16px; padding: 5px 11px; font-size: 11px; white-space: nowrap; }
body.is-real .logo__sub { white-space: nowrap; }
/* 実写のトップ：作品は 1 列（数が増えたら 2 列に戻す） */
.real-lead { margin: -24px auto 40px; text-align: center; font-size: 14px; line-height: 2; color: var(--ink-soft); }
body.is-real .works-list { grid-template-columns: minmax(0, 1fr); max-width: 1080px; }
body.is-real .work-card { flex-direction: row; }
body.is-real .work-card__visual { flex: 0 0 52%; aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
  body.is-real .work-card { flex-direction: column; }
  body.is-real .work-card__visual { flex: none; }
}
/* 実写の作品への入口（R18 のトップ）と、R18 のトップへ戻る道（実写のトップ） */
.sec--realband { background: var(--bg); padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(60px, 7vw, 100px); }
.realband {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(18px, 3vw, 36px); align-items: center;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 4vw, 48px);
  border-radius: 10px; text-decoration: none; color: #F3E9E4;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 4px),
    radial-gradient(120% 140% at 100% 0%, rgba(224, 90, 110, .22), transparent 55%),
    linear-gradient(120deg, #0B0609, #1D1117 55%, #2A1420);
  border: 1px solid rgba(224, 90, 110, .45);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
  transition: transform .35s, box-shadow .35s;
}
.realband:hover { transform: translateY(-3px); }
.realband__badge { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #E05A6E; font: 700 18px/1 var(--f-en); letter-spacing: .2em; text-indent: .2em; color: #FFE7EA; }
.realband--back .realband__badge { border-color: var(--gold-hi); color: var(--gold-hi); font: 700 24px/1 var(--f-mincho); letter-spacing: 0; text-indent: 0; }
.realband--back { border-color: rgba(201, 164, 92, .4); }
.realband__body { display: flex; flex-direction: column; gap: 4px; }
.realband__en { font: 600 11px/1 var(--f-en); letter-spacing: .4em; color: #F28C9C; }
.realband--back .realband__en { color: var(--gold-hi); }
.realband strong { font: 800 clamp(20px, 2.2vw, 26px)/1.5 var(--f-mincho); letter-spacing: .08em; }
.realband__text { font-size: 13px; opacity: .9; }
.realband__warn { font-size: 11px; opacity: .7; }
.realband__arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .5); font-size: 18px; transition: transform .3s; }
.realband:hover .realband__arrow { transform: translateX(4px); }

/* ---------- スマホ ---------- */
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .logo__mark { font-size: 20px; }
  .nav-toggle {
    display: grid; gap: 5px; width: 44px; height: 44px; place-content: center;
    border: 0; background: none; cursor: pointer; color: var(--ink);
  }
  .nav-toggle span:not(.sr) { width: 22px; height: 1.5px; background: currentColor; transition: transform .3s, opacity .3s; }
  .header.is-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .gnav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 24px; padding: 28px 24px 34px;
    background: rgba(var(--hero-fade), .97); backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .3);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .3s;
  }
  .header.is-open { background: rgba(var(--hero-fade), .97); }
  .header.is-open .gnav { transform: none; opacity: 1; visibility: visible; }
  .gnav ul { flex-direction: column; align-items: center; gap: 18px; }

  .hero { height: max(720px, 100svh, var(--hero-need-h, 0px)); }
  .slide__bg::after {
    background: linear-gradient(0deg, rgba(var(--hero-fade), 1) 0%, rgba(var(--hero-fade), .92) 40%, rgba(var(--hero-fade), .2) 66%, rgba(var(--hero-fade), .35) 100%);
  }
  /* 立ち絵は上半分。下の端を生成りに溶かして、文字と重ならないようにする */
  .slide__chara {
    right: 50%; transform: translateX(50%); top: var(--header-h); bottom: auto; height: 50%;
    -webkit-mask-image: linear-gradient(#000 72%, transparent 98%); mask-image: linear-gradient(#000 72%, transparent 98%);
  }
  .slide__kv { left: 50%; right: auto; top: calc(var(--header-h) + 16px); width: min(88vw, 520px); transform: translateX(-50%); }
  /* 下の作品の切り替え（題の並び）は題の長さで行の数が変わる＝高さを js/main.js が測って、その上に置く（重ならないように） */
  .slide__text { left: 20px; right: 20px; top: auto; bottom: var(--hero-text-bottom, 120px); transform: none; width: auto; text-align: center; }
  .slide__title { font-size: clamp(32px, 9vw, 44px); }
  .slide__catch { margin-top: 14px; }
  .slide__btns { justify-content: center; margin-top: 20px; }
  .slide__one { display: none; }
  .hero__vertical { display: none; }
  .hero__dots { left: 20px; right: 20px; bottom: var(--hero-dots-bottom, 66px); justify-content: center; gap: 8px; }
  .hero-dot { min-width: 0; flex: 1; text-align: center; font-size: 11px; line-height: 1.35; letter-spacing: .04em; }
  .hero__note { left: 20px; right: 20px; bottom: 14px; text-align: center; font-size: 10px; line-height: 1.6; }

  .works-list { grid-template-columns: 1fr; }
  .work-card--next { flex-direction: column; }
  .work-card--next .work-card__visual { width: 100%; padding: 26px 0 0; border-right: 0; }
  .kasumi { grid-template-columns: 1fr; }
  .kasumi__chara img { max-width: 300px; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .r18band { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .realband { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .realband__badge { width: 64px; height: 64px; font-size: 15px; }
  .real-mark { margin-left: 10px; padding: 4px 9px; font-size: 10px; letter-spacing: .24em; }
  .real-mark small { font-size: 10px; }
  .real-lead { margin-top: -16px; font-size: 13px; }
}

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

/* 副題は「、」の所でだけ折り返す（言葉の途中で切らない。入りきらない時だけどこでも折る） */
.slide__sub, .work-card__sub, .related__sub, .buy__sub { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- 作者（つくっている人）：最初の画面のすぐ下。チビ絵が手を振り、吹き出しで紹介する ---------- */
.sec--author { background: linear-gradient(180deg, var(--bg), var(--bg-2) 28%, var(--bg-2) 72%, var(--bg)); padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); overflow: hidden; }
.author {
  max-width: 880px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(170px, 230px) 1fr; align-items: center; gap: clamp(24px, 4vw, 56px);
}
.author__chara img { width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgba(90, 55, 50, .18)); animation: author-bob 4.8s ease-in-out infinite; }
body.is-r18 .author__chara img { filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .55)); }
@keyframes author-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.author__title { display: flex; align-items: baseline; gap: 16px; }
.author__en {
  font: 500 clamp(30px, 3.4vw, 42px)/1 var(--f-en); letter-spacing: .14em;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, #9A7A40);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.author__ja { display: flex; align-items: center; gap: 12px; font: 700 13px/1 var(--f-mincho); letter-spacing: .4em; }
.author__ja::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.author__bubble {
  position: relative; margin-top: 22px; padding: 26px 32px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  font: 700 clamp(17px, 1.9vw, 21px)/1.9 var(--f-mincho); letter-spacing: .1em;
}
/* 吹き出しのしっぽ（チビ絵の方へ） */
.author__bubble::before {
  content: ""; position: absolute; left: -11px; top: 38%; width: 20px; height: 20px;
  background: var(--bg-3); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.author__name { margin-top: 22px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; font: 800 clamp(24px, 2.6vw, 30px)/1.3 var(--f-mincho); letter-spacing: .16em; }
.author__name small { font: 500 12px/1 var(--f-goth); letter-spacing: .2em; color: var(--ink-soft); }
.author__links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn-line--sm { padding: 8px 20px; font-size: 12px; }

/* スマホ：見出し → チビ絵 → 吹き出し（しっぽは上の絵へ）→ 名前 → リンク の順に縦に並べる */
@media (max-width: 900px) {
  .author { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; }
  .author__body { display: contents; }
  .author__title { order: 1; flex-direction: column; align-items: center; gap: 10px; }
  .author__ja::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
  .author__chara { order: 2; width: min(44vw, 180px); margin-top: 22px; }
  .author__bubble { order: 3; padding: 18px 22px; margin-top: 18px; font-size: 16px; }
  .author__bubble::before { left: 50%; top: -11px; margin-left: -10px; border-bottom: 0; border-top: 1px solid var(--line); }
  .author__name { order: 4; justify-content: center; }
  .author__links { order: 5; justify-content: center; }
}

/* 全年齢で作品の絵（kvAll）を出す時：昼の色に合う影にする。一覧の絵は顔が切れないよう上寄せ */
body:not(.is-r18) .slide__kv { box-shadow: 0 30px 60px -30px rgba(80, 50, 45, .45), 0 0 0 8px rgba(184, 151, 90, .1); }
.work-card__kv { object-position: 50% 15%; }

/* ---------- このサイトについて（about/） ---------- */
.sec--about { background: linear-gradient(180deg, var(--bg-2), var(--bg) 40%); padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px)); min-height: 100vh; }
.sec--about .sec-title__en { margin: 0; }
.about { max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: clamp(8px, 2vw, 16px) clamp(22px, 4vw, 48px); }
.about__item { padding: clamp(22px, 3vw, 32px) 0; }
.about__item + .about__item { border-top: 1px solid var(--line); }
.about__item h2 { font: 700 clamp(16px, 1.6vw, 19px)/1.5 var(--f-mincho); letter-spacing: .12em; margin: 0 0 12px; padding-left: 14px; border-left: 3px solid var(--gold); }
.about__item p { font-size: 14px; line-height: 2; color: var(--ink-soft); margin: 0; }
.about__item p + p { margin-top: 8px; }
.about__links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; padding: 0; }
.about__links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border: 1px solid var(--gold); border-radius: 999px; font: 600 13px/1 var(--f-goth); letter-spacing: .08em; color: var(--ink); text-decoration: none; transition: background .2s, color .2s; }
.about__links a:hover { background: var(--gold); color: #fff; }
.about .nw { white-space: nowrap; }

/* 実写の「REAL 実写」の印：狭いスマホは「● 実写」だけ（スマホの決まりより後に置く） */
@media (max-width: 360px) {
  .real-mark { margin-left: 8px; gap: 6px; padding: 4px 9px; font-size: 0; letter-spacing: 0; }  /* 狭いスマホは「● 実写」だけ */
  .real-mark small { font-size: 11px; letter-spacing: .1em; }
}
