/*
Theme Name: Yorumil
Description: 「好みで探す、最短の一本へ。」アダルトアフィリエイトポータル「Yorumil」用のクラシック（PHP）WordPressテーマ。年齢確認ゲート、5枚ヒーロースライダー、イベント/セール特集、ジャンル別カテゴリカード、ランキングを標準搭載。
Version: 3.3.0
Author: Yorumil Dev
Requires PHP: 8.1
Text Domain: yorumil
*/

/* =====================================================================
   以下、静的デザインファイル（homepage_template.html）の <style> を
   そのまま移植。デザイン・配色・フォントは変更していません。
   ===================================================================== */

:root{
  /* 夜間・布団の中での閲覧に合わせたダーク基調パレット */
  --bg:        #120e16;
  --bg-soft:   #1c1620;
  --bg-soft-2: #251c2b;
  --ink:       #f5f0f3;
  --ink-muted: #c3bac5;
  --ink-faint: #8f8590;
  --line:      #332a39;
  --pink:      #ff2f7e;
  --pink-deep: #ff6fa0;
  --plum:      #2a0e22;
  --gold:      #ffc93c;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:"Zen Kaku Gothic New","Hiragino Sans",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{ color:inherit; text-decoration:none; }
.display{ font-family:"Rampart One","Zen Kaku Gothic New",sans-serif; }
::selection{ background:var(--pink); color:#fff; }
:focus-visible{ outline:2px solid var(--pink); outline-offset:2px; }
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
  .gate-thumbs{ display:none; }
}

/* ============ 年齢確認ゲート（白ベース） ============ */
#age-gate{
  position:fixed; inset:0; z-index:999; display:flex; align-items:center; justify-content:center; padding:20px;
  overflow:hidden; text-align:center; color:var(--ink);
  background:var(--bg);
}
.gate-halftone{
  position:absolute; inset:0;
  background-image:radial-gradient(rgba(255,47,126,0.12) 1px, transparent 1.4px);
  background-size:9px 9px;
  mask-image:radial-gradient(70% 70% at 50% 40%, black, transparent 85%);
}
.gate-orb{
  position:absolute; border-radius:50%; filter:blur(2px);
  background:radial-gradient(circle at 35% 30%, rgba(255,47,126,0.16), rgba(255,47,126,0) 70%);
  animation:drift 9s ease-in-out infinite;
}
.gate-thumbs{
  position:absolute; inset:0; overflow:hidden; pointer-events:none;
  perspective:1300px;
}
.gate-thumb{
  position:absolute; left:var(--x); top:var(--y);
  width:150px; height:100px; border-radius:14px;
  background:var(--tg); background-size:cover; background-position:center;
  box-shadow:0 18px 40px rgba(21,18,26,0.18);
  opacity:0; will-change:transform, opacity;
  animation:thumbRecede var(--dur,9s) linear infinite;
  animation-delay:var(--delay,0s);
}
@keyframes thumbRecede{
  0%{ transform:translateZ(560px) scale(1); opacity:0; }
  12%{ opacity:.8; }
  60%{ opacity:.35; }
  100%{ transform:translateZ(-1700px) scale(.12); opacity:0; }
}
.gate-content{
  position:relative; z-index:1; max-width:440px; width:100%;
  opacity:0; transform:translateY(16px) scale(.98);
  animation:gateIn .8s .1s ease forwards;
}
@keyframes gateIn{ to{ opacity:1; transform:translateY(0) scale(1); } }
.gate-mark{ width:38px; height:34px; margin:0 auto 22px; color:var(--pink); }
.gate-eyebrow{ font-size:0.72rem; letter-spacing:.32em; color:var(--pink); margin-bottom:18px; }
.gate-content p{ color:var(--ink-muted); font-size:0.86rem; line-height:1.9; margin:0 0 34px; }
.btn-yes{
  display:inline-flex; align-items:center; gap:10px;
  background:var(--ink); color:var(--bg); border:none; cursor:pointer;
  font-weight:900; font-size:1rem; padding:18px 46px;
  box-shadow:0 14px 30px rgba(255,47,126,0.22);
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-yes:hover{ transform:translateY(-2px); background:var(--pink); color:#fff; box-shadow:0 18px 34px rgba(255,47,126,0.28); }
.btn-yes svg{ width:16px; height:16px; }
.gate-exit{
  display:block; margin:22px auto 0; background:none; border:none; cursor:pointer;
  color:var(--ink-faint); font-size:0.76rem; text-decoration:underline; text-underline-offset:3px;
}
.gate-exit:hover{ color:var(--ink-muted); }
.gate-note{ margin-top:30px; font-size:0.66rem; color:var(--ink-faint); letter-spacing:.02em; }
body.locked{ overflow:hidden; }
/*
 * 以前は #site（サイト本体）を display:none にして年齢確認ゲートの裏に隠していたが、
 * それだとGoogle等の検索エンジンが最初に描画した状態＝年齢確認ゲートの文言だけを
 * ページの内容として認識してしまい、検索結果のスニペットが本来のmeta descriptionではなく
 * 「18歳以上の方のみお進みください」という警告文になってしまう問題があった。
 * #age-gate は position:fixed; inset:0; の不透明な背景（--bg、透過なし）で画面全体を
 * 覆っているため、#site を非表示にしなくても実際の見た目は変わらない
 * （クリックも #age-gate が全面で受け止めるため、裏の内容を誤って押せることもない）。
 * そのため #site 自体は常に通常表示のままにし、視覚的な「隠す」役割は
 * #age-gate の不透明な背景だけに任せる。
 */
body.unlocked #age-gate{ display:none; }

/* ============ ヘッダー ============ */
.top-bar{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  max-width:1240px; margin:0 auto; padding:22px 24px;
}
.wordmark{ font-size:1.15rem; font-weight:900; letter-spacing:.02em; }
.wordmark span{ color:var(--pink); }
.top-links{ display:flex; gap:26px; font-size:0.82rem; color:var(--ink-muted); }
.top-links a:hover{ color:var(--pink); }

/* ============ ヒーロー（5枚スライド） ============ */
.hero{
  position:relative; overflow:hidden; min-height:80vh; color:#fff;
}
.slide{
  position:absolute; inset:0; display:flex; align-items:center;
  opacity:0; visibility:hidden; transition:opacity .9s ease;
  pointer-events:none;
}
.slide.active{ opacity:1; visibility:visible; pointer-events:auto; }

.slide-bg{ position:absolute; inset:0; }
.slide-bg .p1{ position:absolute; inset:0; }
.slide-bg .p2{
  position:absolute; right:-10%; top:0; width:65%; height:100%;
  background:linear-gradient(200deg, rgba(255,255,255,0.28), transparent 60%);
  clip-path:polygon(38% 0,100% 0,100% 100%,10% 100%);
}
/* 背景に写真（bg_image）を設定したスライド用：文字が読みやすいよう暗いグラデーションを重ねる */
.slide-bg.has-image::before{
  content:""; position:absolute; inset:0; z-index:1;
  background:linear-gradient(100deg, rgba(18,14,22,0.92) 0%, rgba(18,14,22,0.68) 42%, rgba(18,14,22,0.22) 100%);
}
.hero-halftone{
  position:absolute; inset:0;
  background-image:radial-gradient(rgba(255,255,255,0.14) 1px, transparent 1.4px);
  background-size:8px 8px;
  mask-image:linear-gradient(200deg, black, transparent 65%);
}
.orb{
  position:absolute; border-radius:50%; background:radial-gradient(circle at 35% 30%, rgba(255,255,255,0.5), rgba(255,255,255,0) 70%);
  animation:drift 9s ease-in-out infinite;
}
@keyframes drift{ 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-22px) } }

.hero-inner{ position:relative; z-index:2; max-width:1240px; margin:0 auto; padding:0 24px; width:100%; }
/* テキスト要素は「常に表示」を初期値にし、非アクティブなスライドのときだけ隠す（下の :not(.active) ルール）。
   以前は逆（初期値で opacity:0 にして .active 側で opacity:1 に戻す）にしていたが、
   環境によってはこの「戻す」処理が効かず見出し・本文・ボタンが常に非表示になる不具合があったため、
   見えなくなる方向ではなく「見える」方向をデフォルトにして安全側に倒した。 */
.slide-icon{ width:40px; height:40px; margin-bottom:22px; opacity:1; transform:translateY(0); }
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:10px; font-size:0.74rem; letter-spacing:.28em;
  margin-bottom:20px; opacity:1; transform:translateY(0);
}
.hero-eyebrow::before{ content:""; width:30px; height:1px; background:currentColor; }
.hero h1.display{ font-size:clamp(2.2rem, 5.6vw, 3.9rem); line-height:1.32; margin:0 0 24px; opacity:1; transform:translateY(0); }
.hero .lead{ max-width:44ch; font-size:0.95rem; line-height:2; color:rgba(255,255,255,0.85); margin:0 0 32px; opacity:1; transform:translateY(0); }
.hero-cta{
  display:inline-flex; align-items:center; gap:12px; background:#fff; color:var(--plum);
  font-weight:900; font-size:0.9rem; padding:16px 32px; opacity:1; transform:translateY(0);
}
.hero-cta:hover{ filter:brightness(.94); }
.hero-cta svg{ width:16px; height:16px; transition:transform .25s ease; }
.hero-cta:hover svg{ transform:translateX(5px); }

.slide.active .slide-icon,
.slide.active .hero-eyebrow,
.slide.active h1.display,
.slide.active .lead,
.slide.active .hero-cta{
  transition:opacity .7s ease, transform .7s ease;
}
.slide.active .hero-eyebrow{ transition-delay:.08s; }
.slide.active h1.display{ transition-delay:.16s; }
.slide.active .lead{ transition-delay:.24s; }
.slide.active .hero-cta{ transition-delay:.32s; }

/* 非アクティブなスライドの中身だけを隠す（.slide 自体は opacity:0 + visibility:hidden で
   既に非表示だが、次にアクティブになった瞬間ふわっと現れる演出のため、念のためここでも隠しておく）。 */
.slide:not(.active) .slide-icon,
.slide:not(.active) .hero-eyebrow,
.slide:not(.active) h1.display,
.slide:not(.active) .lead,
.slide:not(.active) .hero-cta{
  opacity:0; transform:translateY(18px);
}

/* ---- コントロール ---- */
.hero-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  width:44px; height:44px; border-radius:50%; border:1px solid rgba(255,255,255,0.35);
  background:rgba(255,255,255,0.08); backdrop-filter:blur(6px); color:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer; transition:.2s ease;
}
.hero-arrow:hover{ background:rgba(255,255,255,0.22); border-color:#fff; }
.hero-arrow.prev{ left:20px; }
.hero-arrow.next{ right:20px; }
.hero-arrow svg{ width:18px; height:18px; }

.hero-foot{
  position:absolute; left:0; right:0; bottom:24px; z-index:3;
  display:flex; align-items:center; justify-content:space-between;
  max-width:1240px; margin:0 auto; padding:0 24px;
}
.hero-count{ font-size:0.78rem; color:rgba(255,255,255,0.75); font-variant-numeric:tabular-nums; letter-spacing:.06em; }
.hero-dots{ display:flex; gap:9px; }
.hero-dot{
  width:26px; height:3px; background:rgba(255,255,255,0.35); border:none; cursor:pointer; padding:0;
  transition:background .25s ease;
}
.hero-dot.active{ background:#fff; }
.scroll-cue{
  display:flex; align-items:center; gap:6px; font-size:0.64rem; letter-spacing:.16em; color:rgba(255,255,255,0.75);
}
.scroll-cue svg{ width:12px; height:12px; animation:bob 1.8s ease-in-out infinite; }
@keyframes bob{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(5px);} }

@media (max-width:640px){
  .hero-arrow{ display:none; }
}

/* ============ カテゴリ（クリーン） ============ */
.section{ max-width:1240px; margin:0 auto; padding:70px 24px; }
.section-head{ display:flex; align-items:baseline; gap:12px; margin-bottom:30px; }
.section-head .cut{
  width:12px; height:12px; background:var(--pink); transform:skew(-12deg);
  display:inline-block;
}
.section-head h2{ margin:0; font-size:1.3rem; font-weight:900; }
.section-head .sub{ font-size:0.78rem; color:var(--ink-faint); }

.genre-grid{ display:flex; flex-wrap:wrap; gap:10px; }
.genre-btn{
  font-family:inherit; font-size:0.84rem; font-weight:700; color:var(--ink-muted);
  background:var(--bg-soft); border:1px solid var(--line); padding:10px 22px; cursor:pointer;
  transition:.2s ease;
}
.genre-btn:hover{ border-color:var(--pink); color:var(--ink); }
.genre-btn.active{ background:var(--pink); border-color:var(--pink); color:#fff; }

/* ============ イベント・セール ============ */
.event-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(280px,1fr)); gap:20px; }
.event-card{
  position:relative; overflow:hidden; border:1px solid var(--line);
  display:flex; flex-direction:column; background:var(--bg);
  transition:box-shadow .2s ease, transform .2s ease;
}
.event-card:hover{ box-shadow:0 18px 38px rgba(255,47,126,0.16); transform:translateY(-3px); }
.event-banner{
  position:relative; padding:26px 22px 22px; color:#fff; min-height:150px;
  display:flex; flex-direction:column; justify-content:flex-end; gap:8px;
}
.event-banner::after{
  content:""; position:absolute; inset:0;
  background-image:radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1.4px);
  background-size:8px 8px;
  mask-image:linear-gradient(200deg, black, transparent 65%);
}
.event-badge{
  position:relative; z-index:1; align-self:flex-start;
  background:rgba(255,255,255,0.92); color:#15121a; font-size:0.66rem; font-weight:900;
  letter-spacing:.05em; padding:4px 12px;
}
.event-banner h3{ position:relative; z-index:1; margin:0; font-size:1.15rem; font-family:"Rampart One",sans-serif; line-height:1.4; }
.event-body{ padding:18px 20px 22px; display:flex; flex-direction:column; gap:12px; flex:1; }
.event-body p{ margin:0; font-size:0.82rem; line-height:1.8; color:var(--ink-muted); white-space:pre-line; }

/* イベント：バナー画像モード（FANZA等のキャンペーンバナーをそのまま1枚のリンクとして表示） */
.event-banner-link{
  display:block; border-radius:14px; overflow:hidden; border:1px solid var(--line);
  transition:box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.event-banner-link:hover{ border-color:var(--pink); box-shadow:0 18px 38px rgba(255,47,126,0.16); transform:translateY(-3px); }
.event-banner-link--nolink{ cursor:default; }
.event-banner-link--nolink:hover{ border-color:var(--line); box-shadow:none; transform:none; }
.event-banner-link img{ display:block; width:100%; height:auto; }

/* イベント：ウィジェット埋め込みモード（DMMの自動配信バナー。<ins>+<script>、または<iframe>をそのまま出力） */
.event-widget-card{
  position:relative; border-radius:14px; overflow:hidden; border:1px solid var(--line);
  aspect-ratio:640/200; /* DMMバナーの標準サイズ（640x200）に合わせた比率。中身が空でも枠は保持される */
}
.event-widget-card .widget-banner{ display:block; max-width:100%; }
.event-widget-card .widget-banner a{ display:block; }
.event-widget-card .widget-banner img{ display:block; max-width:100%; height:auto; }
/*
 * iframeは<img>と違い、CSSで幅を指定しても中身（DMM側のページ）は自動で縮小されない
 * （枠のサイズが変わるだけで、中の見え方はそのまま＝はみ出た部分が欠けて見える）。
 * そのため幅はJS（theme.js の initEventWidgetIframes）側で実際のカード幅に合わせて
 * transform:scale() で縮小する。ここでは絶対配置の土台だけを用意する。
 */
.event-widget-card .widget-banner-iframe{ position:absolute; top:0; left:0; border:0; transform-origin:top left; display:block; }
.event-timer{
  display:flex; gap:8px; font-variant-numeric:tabular-nums;
}
.event-timer .unit{
  background:var(--bg-soft); border:1px solid var(--line); padding:6px 4px; flex:1; text-align:center;
}
.event-timer .unit b{ display:block; font-size:1rem; color:var(--ink); }
.event-timer .unit span{ display:block; font-size:0.6rem; color:var(--ink-faint); letter-spacing:.04em; }
.event-cta{
  margin-top:auto; display:inline-flex; align-items:center; gap:8px;
  font-size:0.78rem; font-weight:700; color:var(--pink);
}
.event-card:hover .event-cta{ color:var(--pink-deep); }

/* ============ カードグリッド ============ */
.card-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(230px,1fr)); gap:20px; margin-top:34px; }
.card{
  background:var(--bg); border:1px solid var(--line); display:flex; flex-direction:column;
  transition:box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.card.hidden{ display:none; }
.card:hover{ border-color:var(--pink); box-shadow:0 16px 34px rgba(255,47,126,0.18); transform:translateY(-3px); }
.card-thumb{
  aspect-ratio:4/3; position:relative;
  background:linear-gradient(155deg, var(--bg-soft) 0%, var(--bg-soft-2) 100%);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.card-thumb svg{ width:34%; color:#fff; opacity:.45; filter:drop-shadow(0 2px 10px rgba(0,0,0,0.25)); }
.card-thumb img{ width:100%; height:100%; object-fit:cover; }
.card-badge{
  position:absolute; top:10px; left:10px; background:var(--ink); color:var(--bg);
  font-size:0.62rem; font-weight:900; padding:4px 10px; letter-spacing:.03em;
}
.card-badge.pink{ background:var(--pink); color:#fff; }
.rank-badge{
  position:absolute; top:8px; left:8px; z-index:1;
  width:30px; height:30px; border-radius:50%;
  background:var(--ink); color:var(--bg);
  display:flex; align-items:center; justify-content:center;
  font-size:0.82rem; font-weight:900; font-family:"Rampart One",sans-serif;
  box-shadow:0 4px 12px rgba(0,0,0,0.35);
}
.rank-badge.rank-1{ background:var(--gold); color:#3a2a00; }
.rank-badge.rank-2{ background:#d9d9e2; color:#3a3a42; }
.rank-badge.rank-3{ background:#cf8a4f; color:#3a2210; }
.card-body{ padding:16px 18px 18px; display:flex; flex-direction:column; gap:8px; flex:1; }
.card-tag{ font-size:0.66rem; font-weight:700; color:var(--pink); letter-spacing:.03em; }
.card-body h3{ margin:0; font-size:0.9rem; font-weight:700; line-height:1.5; }
.card-body a.card-title-link{ color:inherit; }
.card-meta{
  margin-top:auto; padding-top:10px; border-top:1px solid var(--line);
  display:flex; justify-content:space-between; font-size:0.72rem; color:var(--ink-faint);
}
.card-meta .stars{ color:var(--gold); filter:brightness(.85); }
.card-meta a{ color:var(--ink-faint); }

.empty-msg{ display:none; text-align:center; padding:60px 0; color:var(--ink-muted); }
.empty-msg.show{ display:block; }

.section.alt{ background:var(--bg-soft); max-width:none; padding-left:0; padding-right:0; }
.section.alt .inner{ max-width:1240px; margin:0 auto; padding:0 24px; }

/* ============ 固定ページ（法的ページ等） ============ */
.section--page{ max-width:1240px; }
.page-content{ max-width:720px; margin:0 auto; }
.page-eyebrow{ font-size:0.72rem; letter-spacing:.32em; color:var(--pink); margin-bottom:16px; font-weight:700; }
.page-title{ font-size:clamp(1.5rem,3vw,2.1rem); line-height:1.5; margin:0 0 48px; color:var(--ink); }
.page-body{ color:var(--ink-muted); font-size:0.92rem; line-height:2; }
.page-body p{ margin:0 0 1.6em; white-space:pre-line; }
.page-body a{ color:var(--pink); text-decoration:underline; text-underline-offset:3px; }
.page-body ul, .page-body ol{ margin:0 0 1.6em; padding-left:1.4em; }
.page-body li{ margin-bottom:.5em; }

/*
 * 本文中に貼り付けた画像（パッケージ画像・サンプル画像等）の安全対策。
 * FANZA等のアフィリエイトHTMLをそのまま貼ると、正方形パッケージ／横長サンプルなど
 * 画像ごとに元のサイズ・比率がバラバラで、幅がスマホ画面をはみ出したり
 * 極端に縦長になったりして表示が崩れることがあるため、
 * 「横幅は画面内に必ず収まり、縦横比は保ったまま自動調整」というルールで統一する。
 * どんな比率（正方形・横長・縦長）の画像が来ても崩れない。
 */
.page-body img{
  max-width:100%;
  width:auto;
  height:auto;
  display:block;
  margin:1.6em auto;
  border-radius:14px;
}
.page-body figure{ margin:1.6em 0; text-align:center; }
.page-body figure img{ margin:0 auto; }
.page-body figcaption{ margin-top:8px; font-size:0.76rem; color:var(--ink-faint); }
/* 複数のサンプル画像を横並びで貼った場合に折り返しできるようにする */
.page-body p:has(> img + img),
.page-body div:has(> img + img){
  display:flex; flex-wrap:wrap; justify-content:center; gap:10px;
}
.page-body p:has(> img + img) img,
.page-body div:has(> img + img) img{
  margin:0; max-width:calc(50% - 5px); flex:1 1 140px;
}
.page-body a:has(img){ text-decoration:none; }

/* カタログページのページネーション（the_posts_pagination） */
.catalog-pagination{ display:flex; justify-content:center; gap:8px; margin-top:44px; flex-wrap:wrap; }
.catalog-pagination .page-numbers{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:40px; height:40px; padding:0 12px;
  border:1px solid var(--line); color:var(--ink-muted); font-size:0.82rem; font-weight:700;
}
.catalog-pagination .page-numbers.current{ background:var(--pink); border-color:var(--pink); color:#fff; }
.catalog-pagination a.page-numbers:hover{ border-color:var(--pink); color:var(--ink); }

/* ランキングページ：ジャンルごとのブロック（見出しは .legal-block-head を流用） */
.ranking-genre-block{ margin:0 0 52px; padding-top:36px; border-top:1px solid var(--line); }
.ranking-genre-block:first-of-type{ margin-top:0; padding-top:0; border-top:none; }

/* セクション見出しの「もっと見る」リンク（既存の .section-head はそのまま、外側に行を追加して右寄せ配置） */
.section-head-row{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; row-gap:8px; margin-bottom:30px; }
.section-head-row .section-head{ margin-bottom:0; }
.view-all-link{
  font-size:0.76rem; font-weight:700; color:var(--pink); white-space:nowrap;
  display:inline-flex; align-items:center; gap:4px;
}
.view-all-link:hover{ color:var(--pink-deep); }

/* 法的ページ内の見出しブロック（サイト内の section-head と同じ意匠で統一） */
.legal-block{ margin:0 0 40px; padding-top:34px; border-top:1px solid var(--line); }
.legal-block:first-child{ margin-top:0; padding-top:0; border-top:none; }
.legal-block-head{ display:flex; align-items:baseline; gap:12px; margin-bottom:16px; }
.legal-block-head .cut{
  width:10px; height:10px; background:var(--pink); transform:skew(-12deg);
  display:inline-block; flex:none;
}
.legal-block-head h2{ margin:0; font-size:1rem; font-weight:900; color:var(--ink); letter-spacing:.02em; }
.legal-block p:last-child{ margin-bottom:0; }
.legal-note{
  margin-top:1.2em; padding:14px 18px; background:var(--bg-soft);
  border-left:3px solid var(--pink); font-size:0.82rem; color:var(--ink-muted); line-height:1.9;
}

/* ============ 作品 単体記事ページ ============ */
.work-genre-pill{
  display:inline-block; font-size:0.68rem; font-weight:900; letter-spacing:.03em;
  color:var(--pink); background:rgba(255,47,126,0.08); padding:6px 14px; border-radius:999px;
  margin-bottom:16px;
}
.work-hero{
  aspect-ratio:16/9; border-radius:20px; overflow:hidden; margin:0 0 30px;
  background:linear-gradient(155deg, var(--bg-soft) 0%, var(--bg-soft-2) 100%);
  display:flex; align-items:center; justify-content:center;
}
/*
 * サムネイル画像がある場合は 16:9 に固定トリミングせず、元の縦横比のまま表示する。
 * 正方形のパッケージ画像が不自然に横長へ切り取られていた問題への対応。
 * 極端に縦長な画像だけ高さに上限を設け、見切れる代わりに中央にレターボックス表示する。
 */
.work-hero:has(img){ aspect-ratio:auto; max-height:640px; }
.work-hero img{ width:100%; height:auto; max-height:640px; object-fit:contain; display:block; }
.work-hero svg{ width:64px; color:var(--pink); opacity:.24; }
.work-hero a{ display:block; width:100%; height:100%; }
.work-hero a img{ transition:opacity .15s ease; }
.work-hero a:hover img{ opacity:.88; }
.work-meta-row{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:0 0 40px; padding-bottom:24px; border-bottom:1px solid var(--line); }
.work-meta-badge{ background:var(--ink); color:var(--bg); font-size:0.68rem; font-weight:900; padding:5px 12px; letter-spacing:.03em; }
.work-meta-rating{ color:var(--gold); filter:brightness(.85); font-weight:700; font-size:0.9rem; }
.page-body .lead{ font-size:1.02rem; color:var(--ink); line-height:1.95; margin-bottom:1.5em; }
.info-box{ margin:1.8em 0; padding:22px 26px; background:var(--bg-soft); border-radius:16px; border-left:4px solid var(--pink); }
.info-box-label{ font-size:0.7rem; letter-spacing:.28em; color:var(--pink); font-weight:900; margin-bottom:8px; }
.info-box p{ margin:0 !important; color:var(--ink); }
.work-back-link{ display:inline-flex; align-items:center; gap:8px; margin-top:20px; font-size:0.82rem; font-weight:700; color:var(--ink-muted); }
.work-back-link:hover{ color:var(--pink); }

/* 作品ページ下部：関連作品（内部リンク／回遊率向上） */
.related-works{ margin:56px 0 40px; padding-top:40px; border-top:1px solid var(--line); }
.related-works-title{ margin:0 0 24px; font-size:1.15rem; font-weight:900; color:var(--ink); }

/* ============ ジャンル解説・コラム記事（review-article） ============ */
.review-article .article-header{ margin-bottom:30px; }
.review-article .category-tag{
  display:inline-block; background:rgba(255,47,126,0.14); color:var(--pink);
  font-size:0.72rem; font-weight:900; letter-spacing:.05em;
  padding:5px 14px; border-radius:50px; margin-bottom:14px;
  border:1px solid rgba(255,47,126,0.3);
}
.review-article h1{ font-size:clamp(1.4rem,3vw,1.9rem); line-height:1.5; margin:0 0 18px; color:var(--ink); }
.review-article .author-box{
  background:linear-gradient(135deg, var(--plum) 0%, var(--bg-soft-2) 100%);
  color:var(--ink); padding:22px 26px; border-radius:16px; margin-top:18px;
  font-size:0.92rem; line-height:1.9;
}
.review-article .author-box strong{ color:var(--pink-deep); }
.review-article .section-block{ margin:32px 0; }
.review-article .section-block h2{
  font-size:1.2rem; color:var(--ink); border-bottom:2px solid var(--pink);
  padding-bottom:8px; margin-bottom:16px;
}
.review-article .section-block h3{ font-size:1rem; color:var(--pink-deep); margin:18px 0 8px; }
.review-article .style-list{ display:flex; flex-direction:column; gap:12px; margin-top:14px; }
.review-article .style-item{
  background:var(--bg-soft); border-left:3px solid var(--pink);
  border-radius:10px; padding:14px 18px; font-size:0.9rem; line-height:1.8;
}
.review-article .simple-card{
  background:var(--bg-soft); border:1px solid rgba(255,47,126,0.35);
  border-radius:16px; padding:22px; margin-top:18px;
}
/* この中の .card-badge はカタログ一覧用の絶対配置バッジとは別物なので上書きする */
.review-article .simple-card .card-badge{
  position:static; display:inline-block; background:var(--pink); color:#fff;
  font-size:0.68rem; font-weight:900; padding:4px 12px; border-radius:50px;
  letter-spacing:.03em; margin-bottom:12px;
}
.review-article .simple-card .card-title{ font-size:1.05rem; line-height:1.5; margin:0 0 14px; color:var(--ink); }
.review-article .simple-card .card-thumb-link{ display:block; margin:0 0 16px; }
.review-article .simple-card .card-thumb-link img{ width:100%; max-width:320px; height:auto; border-radius:10px; display:block; margin:0 auto; }
.review-article .review-text{ font-size:0.9rem; line-height:1.85; color:var(--ink-muted); margin-bottom:14px; }
.review-article .point-list{ margin:0; padding-left:1.3em; font-size:0.88rem; line-height:1.9; color:var(--ink-muted); }
.review-article .point-list li{ margin-bottom:.4em; }
.review-article .simple-card-cta{
  display:inline-block; margin-top:6px; background:var(--pink); color:#fff !important;
  font-weight:800; font-size:0.88rem; padding:10px 24px; border-radius:50px;
  text-decoration:none !important;
}

/* お問い合わせページのメール表示ブロック */
.contact-card{
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  background:var(--bg-soft); border-radius:16px; padding:26px 30px; margin:6px 0 0;
}
.contact-card .label{ font-size:0.72rem; letter-spacing:.22em; color:var(--ink-faint); margin-bottom:6px; }
.contact-card .email{ font-size:1.05rem; font-weight:900; color:var(--ink); word-break:break-all; }
.contact-card a{ text-decoration:none; }
.contact-card a:hover .email{ color:var(--pink); }

/* ============ フッター ============ */
footer{ border-top:1px solid var(--line); padding:40px 24px; }
.footer-inner{ max-width:1240px; margin:0 auto; }
.legal-links{ display:flex; flex-wrap:wrap; gap:8px 26px; margin-bottom:18px; font-size:0.75rem; color:var(--ink-muted); }
.legal-links a:hover{ color:var(--pink); }
.footer-meta{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; font-size:0.7rem; color:var(--ink-faint); }

@media (max-width:720px){
  .top-links{ display:none; }
  .hero{ min-height:86vh; }
  html{ font-size:17px; }
  .section{ padding:48px 20px; }
  body{ padding-bottom:calc(58px + env(safe-area-inset-bottom)); }
}

/* ============ 下部固定ナビ（スマホ専用・親指の届く範囲に主要導線を配置） ============ */
.bottom-nav{
  position:fixed; left:0; right:0; bottom:0; z-index:60;
  display:flex; background:rgba(28,22,32,0.92); backdrop-filter:blur(14px);
  border-top:1px solid var(--line);
  padding:4px 4px calc(4px + env(safe-area-inset-bottom));
}
.bottom-nav-item{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  min-height:50px; padding:6px 4px; color:var(--ink-faint); font-size:0.62rem; font-weight:700;
  letter-spacing:.02em; transition:color .15s ease;
  background:none; border:none; font-family:inherit; cursor:pointer; text-decoration:none;
}
.bottom-nav-item svg{ width:21px; height:21px; }
.bottom-nav-item:hover,
.bottom-nav-item:active{ color:var(--pink); }
.bottom-nav-item.active{ color:var(--pink); }
#bottomNavSearchBtn[aria-expanded="true"]{ color:var(--pink); }
@media (min-width:721px){
  .bottom-nav{ display:none; }
}

/* ============ チャットボット「Yorumilナビ」 ============ */
/* スマホでは画面下からせり上がるボトムシート表示になるため、後ろのページを暗くして
   タップで閉じられるようにする背景幕。PC幅では使わないので非表示にする。 */
.chatbot-backdrop{
  position:fixed; inset:0; z-index:65;
  background:rgba(10,6,12,0.55);
  opacity:0; pointer-events:none; transition:opacity .22s ease;
}
.chatbot-backdrop.open{ opacity:1; pointer-events:auto; }
@media (min-width:721px){
  .chatbot-backdrop{ display:none; }
}
.chatbot{
  position:fixed; right:18px; bottom:calc(24px + env(safe-area-inset-bottom));
  z-index:70; display:flex; flex-direction:column; align-items:flex-end; gap:12px;
}
.chatbot-toggle{
  width:56px; height:56px; border-radius:50%; border:none; cursor:pointer;
  background:var(--pink); color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 12px 28px rgba(255,47,126,0.38); transition:transform .18s ease, background .18s ease;
}
.chatbot-toggle:hover{ background:var(--pink-deep); transform:translateY(-2px); }
.chatbot-toggle svg{ width:24px; height:24px; }
.chatbot-toggle .icon-open{ display:flex; width:34px; height:34px; }
.chatbot-toggle .icon-open svg{ width:100%; height:100%; }
.chatbot-toggle .icon-close{ display:none; }
/* パネルを開いている間は、丸いトグルボタンではなくヘッダー内の×ボタン（.chatbot-head-close）で
   閉じる形にする。ボタンが2つ重なって見えて画面を余計に大きく占領して見えるのを防ぐため。 */
.chatbot.open .chatbot-toggle{ display:none; }

.chatbot-panel{
  width:min(360px, calc(100vw - 36px)); height:min(520px, calc(100vh - 140px));
  background:var(--bg-soft); border:1px solid var(--line); border-radius:18px;
  display:flex; flex-direction:column; overflow:hidden;
  box-shadow:0 24px 60px rgba(0,0,0,0.45);
}
/* 上の .chatbot-panel{display:flex} が常に効いてしまい、hidden属性だけでは
   閉じられない（＝一度開くと×を押しても画面に残り続ける）不具合があったための明示的な上書き。 */
.chatbot-panel[hidden]{ display:none; }
.chatbot-head{
  padding:14px 18px; border-bottom:1px solid var(--line); display:flex; align-items:center; gap:12px;
  background:linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
}
.chatbot-head-avatar{ width:34px; height:34px; flex:none; filter:drop-shadow(0 2px 6px rgba(0,0,0,0.25)); }
.chatbot-head-avatar svg{ width:100%; height:100%; }
.chatbot-head-text{ display:flex; flex-direction:column; min-width:0; }
.chatbot-head-title{ font-family:"Rampart One","Zen Kaku Gothic New",sans-serif; font-size:1rem; color:#fff; }
.chatbot-head-sub{ font-size:0.72rem; color:rgba(255,255,255,0.85); margin-top:2px; }
.chatbot-head-close{
  margin-left:auto; flex:none; width:28px; height:28px; border-radius:50%; border:none; cursor:pointer;
  background:rgba(255,255,255,0.18); color:#fff; display:flex; align-items:center; justify-content:center;
  transition:background .18s ease;
}
.chatbot-head-close:hover{ background:rgba(255,255,255,0.32); }
.chatbot-head-close svg{ width:14px; height:14px; }

.chatbot-body{ flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; }

.chatbot-search-row{
  flex:none; display:flex; gap:8px; padding:10px 14px;
  border-top:1px solid var(--line); background:var(--bg-soft);
}
.chatbot-search-input{
  flex:1; min-width:0; font-family:inherit; font-size:0.82rem; color:var(--ink);
  background:var(--bg-soft-2); border:1px solid var(--line); border-radius:999px;
  padding:9px 14px;
}
.chatbot-search-input::placeholder{ color:var(--ink-muted); }
.chatbot-search-input:focus{ outline:none; border-color:var(--pink); }
.chatbot-search-btn{
  flex:none; width:38px; height:38px; border-radius:50%; border:none; cursor:pointer;
  background:var(--pink); color:#fff; display:flex; align-items:center; justify-content:center;
  transition:background .18s ease;
}
.chatbot-search-btn:hover{ background:var(--pink-deep); }
.chatbot-search-btn svg{ width:18px; height:18px; }

.chat-row{ display:flex; align-items:flex-start; gap:8px; max-width:100%; }
.chat-row-plain{ padding-left:36px; }
.chat-avatar{
  width:28px; height:28px; flex:none; border-radius:50%; background:var(--bg-soft-2);
  border:1px solid var(--line); padding:4px;
}
.chat-avatar svg{ width:100%; height:100%; }

.chat-msg{ max-width:88%; font-size:0.82rem; line-height:1.7; }
.chat-msg-bot{
  align-self:flex-start; background:var(--bg-soft-2); color:var(--ink);
  padding:10px 14px; border-radius:4px 14px 14px 14px;
}
.chat-msg-bot:empty{ display:none; }
.chat-msg-user{
  align-self:flex-end; background:var(--pink); color:#fff;
  padding:10px 14px; border-radius:14px 4px 14px 14px; font-weight:700; max-width:88%; font-size:0.82rem;
}
.chat-msg-chips, .chat-msg-cards{ background:none; padding:0; max-width:100%; flex:1; }

.chat-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chat-chip{
  font-family:inherit; font-size:0.76rem; font-weight:700; color:var(--ink-muted);
  background:var(--bg-soft-2); border:1px solid var(--line); border-radius:999px;
  padding:8px 16px; cursor:pointer; transition:.18s ease; text-decoration:none; display:inline-flex;
}
.chat-chip:hover{ border-color:var(--pink); color:var(--ink); }
.chat-chip:disabled{ opacity:.4; cursor:default; }
.chat-chip-link{ background:var(--pink); border-color:var(--pink); color:#fff; }
.chat-chip-link:hover{ background:var(--pink-deep); color:#fff; }

.chat-rec-card{
  display:flex; gap:10px; align-items:center; padding:8px; margin-bottom:8px;
  background:var(--bg-soft-2); border:1px solid var(--line); border-radius:12px;
  text-decoration:none; transition:border-color .18s ease, transform .18s ease;
}
.chat-rec-card:last-child{ margin-bottom:0; }
.chat-rec-card:hover{ border-color:var(--pink); transform:translateY(-2px); }
.chat-rec-thumb{
  width:52px; height:52px; border-radius:8px; overflow:hidden; flex:none;
  background:linear-gradient(155deg, var(--bg-soft) 0%, var(--bg) 100%);
  display:flex; align-items:center; justify-content:center;
}
.chat-rec-thumb img{ width:100%; height:100%; object-fit:cover; }
.chat-rec-thumb svg{ width:40%; color:var(--pink); opacity:.3; }
.chat-rec-body{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.chat-rec-title{ font-size:0.78rem; font-weight:700; color:var(--ink); line-height:1.4; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.chat-rec-meta{ font-size:0.7rem; color:var(--gold); filter:brightness(.9); }

@media (max-width:720px){
  /* 丸いトグルボタン（Yorumilキャラクター）は、下部固定ナビの上に重ならないよう
     少し上・少し小さめにして表示する（下部ナビの「検索」からも同じパネルを開けるが、
     マスコットも見えているとブランドの目印になり、押しやすさも変わらないため両方残す）。
     パネル自体は画面下からせり上がるボトムシートに切り替える。hidden属性が付いていても
     display は常に flex のままにして、transform/opacity のトランジションで
     アニメーションさせる（display:none のままだとアニメーションできないため）。 */
  .chatbot{
    right:14px;
    bottom:calc(72px + env(safe-area-inset-bottom));
  }
  .chatbot-toggle{
    width:48px; height:48px;
    box-shadow:0 8px 20px rgba(255,47,126,0.35);
  }
  .chatbot-toggle .icon-open{ width:28px; height:28px; }
  /* 画面いっぱいの下からのシートだと圧迫感があり操作しづらいとのことなので、
     左右・下に少し余白を持たせた「浮いているカード」のような見た目に変更。
     角も全部丸くして、下部固定ナビの上にふわっと浮くカードに見えるようにする。 */
  .chatbot-panel{
    position:fixed; left:12px; right:12px;
    bottom:calc(12px + env(safe-area-inset-bottom)); z-index:70;
    width:auto; border-radius:20px;
    height:min(68vh, 560px);
    box-shadow:0 -14px 40px rgba(0,0,0,0.5);
    transform:translateY(24px); opacity:0; pointer-events:none;
    transition:transform .28s cubic-bezier(.32,.72,0,1), opacity .22s ease;
  }
  /* dvh対応ブラウザでは、アドレスバーの表示/非表示で変動する実際の表示領域を基準にする
     （非対応ブラウザはこの行自体が無効値として無視され、上のvh指定のままになる）。 */
  .chatbot-panel{ height:min(68dvh, 560px); }
  .chatbot-panel[hidden]{ display:flex; }
  .chatbot.open .chatbot-panel{
    transform:translateY(0); opacity:1; pointer-events:auto;
  }
  .chatbot-head{ padding:10px 12px; gap:8px; }
  .chatbot-head-avatar{ width:28px; height:28px; }
  .chatbot-head-title{ font-size:0.88rem; }
  .chatbot-head-sub{ font-size:0.66rem; }
  .chatbot-body{ padding:10px; gap:6px; }
  .chatbot-search-row{ padding:8px 10px; }
}

/* ============ 管理画面の追加スタイルは admin側で individually enqueue（このファイルはフロント専用） ============ */
