/*
Theme Name:        ヤミツキ v2
Theme URI:         https://yamitsuki-drama.com
Author:            Yamitsuki
Description:       気分で選ぶ韓ドラガイド。2026年SEO完全対応（E-E-A-T強化・Core Web Vitals最適化・構造化データ完備・AI Overview対応・スマホファースト）。
Version:           2.0.0
Requires at least: 6.4
Tested up to:      6.7
Requires PHP:      8.1
License:           GPL-2.0-or-later
Text Domain:       yamitsuki
Tags:              blog, entertainment, custom-colors, custom-menu, featured-images, responsive-layout, translation-ready
*/

/* =====================================================
   DESIGN TOKENS
   ===================================================== */
:root {
  /* Brand */
  --c-rose:        #c4443f;
  --c-rose-soft:   #f9edec;
  --c-rose-deep:   #8c2220;
  --c-gold:        #a8800e;
  --c-gold-soft:   #fdf4e0;
  --c-teal:        #1e7068;
  --c-teal-soft:   #e5f4f2;
  --c-ink:         #1a1917;
  --c-paper:       #faf9f6;
  --c-surface:     #f4f2ee;
  --c-muted:       #706b65;
  --c-subtle:      #9e9791;
  --c-border:      #e3dfd8;
  --c-border-soft: #edeae4;

  /* Typography */
  --f-serif: 'Noto Serif JP', 'YuMincho', 'Yu Mincho', serif;
  --f-sans:  'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;

  /* Layout */
  --max-w:      1080px;
  --max-w-wide: 1320px;
  --r-sm:       6px;
  --r-md:       10px;
  --r-lg:       16px;
  --r-xl:       24px;

  /* Shadows — CLS防止のため outline系を避けbox-shadow最小化 */
  --sh-xs: 0 1px 4px rgba(26,25,23,.06);
  --sh-sm: 0 2px 10px rgba(26,25,23,.08);
  --sh-md: 0 6px 24px rgba(26,25,23,.10);
  --sh-lg: 0 12px 40px rgba(26,25,23,.12);
}

/* =====================================================
   RESET — CLS最小化のため寸法を全て明示
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px; /* rem基準 — 絶対に変えない */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* INP改善：scrollはpassiveで処理 */
}

/* 画像・メディアのCLS防止 — 必ず width/height属性も付与すること */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
  display: block;
}
/* アスペクト比固定でCLS=0 */
img[width][height] {
  aspect-ratio: attr(width) / attr(height);
}

a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--f-sans); cursor: pointer; }

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.container--wide {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

/* =====================================================
   TYPOGRAPHY — フォント読み込みはCritical CSS内で対応
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-serif);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--c-ink);
}
h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.35rem, 2.8vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p { line-height: 1.85; color: var(--c-muted); font-size: .94rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: .6rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* =====================================================
   BUTTONS — INP改善のためtouch-target 44px以上確保
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  min-height: 44px;          /* タッチターゲット */
  padding: .6em 1.5em;
  border-radius: 40px;
  font-family: var(--f-sans);
  font-size: .88rem;
  font-weight: 700;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  /* GPU compositing — INP改善 */
  will-change: transform;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--c-rose); color: #fff; border-color: var(--c-rose); }
.btn--primary:hover { background: var(--c-rose-deep); border-color: var(--c-rose-deep); box-shadow: var(--sh-md); }
.btn--outline { background: transparent; color: var(--c-ink); border-color: var(--c-border); }
.btn--outline:hover { border-color: var(--c-rose); color: var(--c-rose); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--ghost:hover { background: rgba(255,255,255,.2); }
.btn--sm { min-height: 36px; padding: .4em 1.1em; font-size: .8rem; }

/* =====================================================
   SECTION HEADER
   ===================================================== */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.sec-head__title { font-size: clamp(1.2rem, 2.5vw, 1.65rem); }
.sec-head__title::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--c-rose);
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: middle;
  margin-bottom: 3px;
}
.sec-head__more {
  font-size: .78rem;
  font-weight: 700;
  color: var(--c-rose);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* =====================================================
   HEADER
   2026 SEO: sticky, lightweight, LCP阻害しない構造
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-border-soft);
  /* layout shiftを防ぐため高さを固定 */
  height: 60px;
  display: flex;
  align-items: center;
  /* will-change: transform で スクロール時のrepaint回避 */
  will-change: transform;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 100%;
  width: 100%;
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
/* ロゴ — LCP要素になる場合があるため preload対応 */
.site-logo {
  font-family: var(--f-serif);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--c-rose);
  letter-spacing: -.03em;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  line-height: 1;
}
.site-logo__accent {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--c-gold);
  border-radius: 50%;
  margin-bottom: 1px;
}
.site-logo__sub {
  font-size: .55rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--c-subtle);
  font-family: var(--f-sans);
  line-height: 1;
  align-self: flex-end;
  margin-bottom: 2px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.primary-nav a {
  font-size: .8rem;
  font-weight: 500;
  color: var(--c-muted);
  padding: .4em .9em;
  border-radius: 20px;
  min-height: 36px;   /* touch target */
  display: flex;
  align-items: center;
  transition: color .15s, background .15s;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--c-rose);
  background: var(--c-rose-soft);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 0 .9em;
  height: 38px;
  min-width: 180px;
  transition: border-color .15s;
}
.header-search:focus-within { border-color: var(--c-rose); }
.header-search input {
  border: none;
  background: transparent;
  font-family: var(--f-sans);
  font-size: .8rem;
  color: var(--c-ink);
  outline: none;
  width: 100%;
  height: 100%;
}
.header-search input::placeholder { color: var(--c-subtle); }
.header-search__icon {
  color: var(--c-subtle);
  font-style: normal;
  font-size: .85rem;
  flex-shrink: 0;
  pointer-events: none;
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}
.hamburger__line {
  display: block;
  width: 20px; height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* モバイルメニュー */
.mobile-nav {
  display: none;
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-border-soft);
  padding: .75rem clamp(1rem,4vw,2rem) 1rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: flex;
  align-items: center;
  padding: .75rem 0;
  font-size: .9rem;
  font-weight: 500;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-border-soft);
  min-height: 44px;
}

/* =====================================================
   HERO — CWV: LCP要素はfetchpriority=high + no lazy
   ===================================================== */
.hero {
  background: var(--c-ink);
  color: var(--c-paper);
  padding-block: clamp(3rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
  /* LCP: background-imageを使わずCSS layer */
}
/* 装飾はCSSのみ — 画像LCPを妨げない */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 88% 40%, rgba(196,68,63,.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 10% 90%, rgba(168,128,14,.14) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -60px;
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(196,68,63,.12);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero__eyebrow { color: var(--c-gold); }
.hero__heading {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--c-paper);
  margin-block: .6rem 1rem;
}
.hero__heading em { font-style: normal; color: var(--c-rose); }
.hero__lead {
  font-size: .95rem;
  color: rgba(250,249,246,.6);
  margin-bottom: 1.75rem;
  line-height: 1.95;
}
.hero__cta { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ヒーローパネル（気分プレビュー） */
.hero__panel {
  background: rgba(250,249,246,.06);
  border: 1px solid rgba(250,249,246,.12);
  border-radius: var(--r-lg);
  padding: 1.4rem;
}
.hero__panel-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(250,249,246,.4);
  margin-bottom: .9rem;
}
.mood-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.mood-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 9px;
  background: rgba(250,249,246,.07);
  border: 1px solid rgba(250,249,246,.1);
  font-size: .78rem;
  font-weight: 500;
  color: var(--c-paper);
  cursor: pointer;
  min-height: 44px;
  transition: background .15s, border-color .15s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.mood-chip:hover { background: rgba(196,68,63,.22); border-color: rgba(196,68,63,.45); }
.mood-chip[aria-pressed="true"] { background: rgba(196,68,63,.28); border-color: var(--c-rose); }
.mood-chip__icon { font-size: .95rem; flex-shrink: 0; }
.mood-chip__count { font-size: .65rem; color: rgba(250,249,246,.35); margin-left: auto; }

/* =====================================================
   MOOD SECTION — 気分選択 (Dark bg)
   ===================================================== */
.mood-section { background: var(--c-ink); }
.mood-section .sec-head__title { color: var(--c-paper); }
.mood-section .sec-head__more { color: var(--c-gold); }

/* グリッドはauto-fillで自動折り返し — CLS防止 */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.mood-card {
  background: rgba(250,249,246,.06);
  border: 1px solid rgba(250,249,246,.1);
  border-radius: var(--r-md);
  padding: 1.1rem .9rem;
  text-align: center;
  display: block;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.mood-card:hover {
  background: rgba(196,68,63,.18);
  border-color: rgba(196,68,63,.5);
  transform: translateY(-2px);
}
.mood-card__icon  { font-size: 1.75rem; display: block; margin-bottom: .4rem; line-height: 1; }
.mood-card__name  { font-size: .82rem; font-weight: 700; color: var(--c-paper); margin-bottom: 3px; line-height: 1.4; }
.mood-card__count { font-size: .68rem; color: rgba(250,249,246,.38); }

/* =====================================================
   DRAMA CARD
   LCP: サムネは preload不要（below fold）
   CLS: aspect-ratio固定でwrapper内部も揺れない
   ===================================================== */
.drama-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 18px;
}
.drama-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  will-change: transform;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.drama-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
  border-color: var(--c-rose);
}
/* CLS=0のためアスペクト比を aspect-ratio で固定 */
.drama-card__thumb {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  background: var(--c-surface);
  /* 幅が変わってもCLSが発生しないようmin-height不使用 */
}
.drama-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* loading=lazyはPHP側で付与。LCPカード（1枚目）はeager */
  transition: transform .35s ease;
}
.drama-card:hover .drama-card__thumb img { transform: scale(1.04); }

.drama-card__thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-serif);
  font-size: 3rem;
  color: var(--c-border);
  background: linear-gradient(150deg, var(--c-surface) 0%, var(--c-rose-soft) 100%);
}
.drama-card__badge {
  position: absolute;
  top: 7px; left: 7px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  line-height: 1.6;
}
/* CLS防止: position:absolute は親にposition:relative + 固定サイズ必須 */
.badge-n { background: #e50914; color: #fff; }
.badge-u { background: #1a1a2e; color: #fff; }
.badge-h { background: #10c44c; color: #000; }
.badge-a { background: #ff9900; color: #000; }
.badge-d { background: #0063e5; color: #fff; }
.badge-l { background: #f03c00; color: #fff; }

.drama-card__svc-row {
  position: absolute;
  bottom: 7px; right: 7px;
  display: flex; gap: 3px;
}
.svc-icon {
  width: 18px; height: 18px;
  border-radius: 3px;
  font-size: .52rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.25);
  line-height: 1;
}

.drama-card__body {
  padding: .8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.drama-card__title {
  font-family: var(--f-serif);
  font-size: .9rem;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.45;
}
.drama-card__meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.drama-card__year  { font-size: .68rem; color: var(--c-subtle); }
.drama-card__genre {
  font-size: .62rem;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--c-surface);
  color: var(--c-muted);
}

/* 感情バー — CLS=0: 高さを固定 */
.emo-bars { display: flex; flex-direction: column; gap: 3px; margin-top: 3px; }
.emo-bar  { display: flex; align-items: center; gap: 5px; }
.emo-bar__label { font-size: .6rem; color: var(--c-subtle); width: 32px; flex-shrink: 0; text-align: right; }
.emo-bar__track {
  flex: 1;
  height: 3px;
  background: var(--c-border);
  border-radius: 2px;
  overflow: hidden;
}
/* width: 0 → JS で data-w に変更 — CLS発生しないようinitial=0 */
.emo-bar__fill { height: 100%; border-radius: 2px; width: 0; transition: width .8s ease; }

/* =====================================================
   WATCH NOW (配信フィルター)
   ===================================================== */
.watchnow { background: var(--c-teal-soft); border-block: 1px solid #b4d9d5; }

.svc-filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.svc-filter-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: .45em 1em;
  border-radius: 20px;
  border: 1.5px solid var(--c-border);
  background: #fff;
  font-size: .78rem;
  font-weight: 700;
  color: var(--c-muted);
  min-height: 40px;
  transition: all .15s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.svc-filter-btn[data-on]           { border-color: var(--c-teal); color: var(--c-teal); background: rgba(30,112,104,.07); }
.svc-filter-btn[data-svc="n"][data-on] { border-color:#e50914; color:#e50914; background:rgba(229,9,20,.05); }
.svc-filter-btn[data-svc="u"][data-on] { border-color:#1a1a2e; color:#1a1a2e; background:rgba(26,26,46,.05); }
.svc-filter-btn[data-svc="h"][data-on] { border-color:#007d2e; color:#007d2e; background:rgba(0,125,46,.05); }
.svc-filter-btn[data-svc="a"][data-on] { border-color:#b36200; color:#b36200; background:rgba(255,153,0,.07); }
.svc-filter-btn[data-svc="d"][data-on] { border-color:#0063e5; color:#0063e5; background:rgba(0,99,229,.05); }
.svc-filter-btn[data-svc="l"][data-on] { border-color:#c83200; color:#c83200; background:rgba(240,60,0,.05); }

/* グリッドのスケルトン — JavaScript実行前でもCLS=0 */
.drama-grid[aria-busy="true"] .drama-card { pointer-events: none; opacity: .5; }

/* =====================================================
   PICKUP BANNER — 配信終了速報
   ===================================================== */
.pickup { background: var(--c-gold-soft); border-block: 1px solid #e3d098; }
.pickup__inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.5rem;
  align-items: center;
}
.pickup__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(196,68,63,.12);
  border: 1px solid rgba(196,68,63,.25);
  border-radius: var(--r-sm);
  padding: 3px 10px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--c-rose);
  margin-bottom: .6rem;
}
.pickup__title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: .75rem;
  color: var(--c-ink);
}
.pickup__desc { font-size: .88rem; color: var(--c-muted); line-height: 1.85; margin-bottom: 1.25rem; }
.pickup__svc-row { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.svc-pill {
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 16px;
  border: 1.5px solid;
}

.expiring-list { display: flex; flex-direction: column; gap: 8px; }
.expiring-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  text-decoration: none;
  transition: box-shadow .15s;
}
.expiring-item:hover { box-shadow: var(--sh-sm); }
.expiring-item__thumb {
  /* CLS=0: 寸法固定 */
  width: 42px; height: 58px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--c-surface);
}
.expiring-item__thumb img { width:100%; height:100%; object-fit:cover; }
.expiring-item__title { font-size: .82rem; font-weight: 700; color: var(--c-ink); line-height: 1.4; }
.expiring-item__deadline { font-size: .68rem; color: var(--c-rose); font-weight: 700; margin-top: 2px; }

/* =====================================================
   EMOTION RADAR FEATURE
   ===================================================== */
.radar-feature { background: #fff; }
.radar-feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.radar-demo {
  background: var(--c-ink);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}
.radar-demo__title {
  font-family: var(--f-serif);
  font-size: .95rem;
  font-weight: 700;
  color: var(--c-paper);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}
.radar-axes { display: flex; flex-direction: column; gap: 11px; }
.radar-axis {
  display: grid;
  grid-template-columns: 66px 1fr 34px;
  align-items: center;
  gap: 9px;
}
.radar-axis__label { font-size: .72rem; color: rgba(250,249,246,.5); text-align: right; }
.radar-axis__track {
  height: 6px;
  background: rgba(250,249,246,.1);
  border-radius: 3px;
  overflow: hidden;
}
.radar-axis__fill { height: 100%; border-radius: 3px; width: 0; transition: width .9s ease; }
.radar-axis__val  { font-size: .72rem; font-weight: 700; color: var(--c-paper); text-align: right; }
.radar-demo__svc  { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid rgba(250,249,246,.1); }
.radar-demo__svc-label { font-size: .66rem; color: rgba(250,249,246,.35); margin-bottom: .4rem; }
.radar-demo__svc-row { display: flex; gap: 5px; flex-wrap: wrap; }

/* =====================================================
   NEWS LIST — 速報・新着
   構造化データ：Article schemaに対応した意味的HTML
   ===================================================== */
.news-section { background: var(--c-surface); }
.news-list {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
}
.news-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: .75rem;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--c-border-soft);
  text-decoration: none;
  align-items: start;
  transition: background .12s;
  min-height: 44px;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--c-surface); }
.news-item__date  { font-size: .68rem; color: var(--c-subtle); padding-top: 3px; }
.news-item__tag {
  display: inline-block;
  font-size: .6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--c-rose-soft);
  color: var(--c-rose-deep);
  margin-bottom: 3px;
}
.news-item__title { font-size: .86rem; font-weight: 500; color: var(--c-ink); line-height: 1.55; }

/* =====================================================
   E-E-A-T TRUST STRIP — 信頼性を可視化
   ===================================================== */
.trust-strip { background: var(--c-ink); padding-block: 1.75rem; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.trust-item { text-align: center; }
.trust-item__num {
  font-family: var(--f-serif);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--c-rose);
  line-height: 1;
  margin-bottom: .25rem;
}
.trust-item__label { font-size: .72rem; color: rgba(250,249,246,.45); }

/* =====================================================
   FEATURE STRIP
   ===================================================== */
.feature-strip { background: var(--c-rose); padding-block: clamp(2rem,4vw,3rem); }
.feature-grid  { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; }
.feature-item  { text-align: center; }
.feature-item__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto .8rem;
}
.feature-item__title { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: .35rem; }
.feature-item__desc  { font-size: .78rem; color: rgba(255,255,255,.68); line-height: 1.65; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: var(--c-ink); padding-block: clamp(2.5rem,5vw,4rem) 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(250,249,246,.08);
  margin-bottom: 1.25rem;
}
.footer-brand__logo {
  font-family: var(--f-serif);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--c-rose);
  letter-spacing: -.02em;
  display: flex; align-items: center; gap: 5px;
  margin-bottom: .6rem;
}
.footer-brand__desc { font-size: .78rem; color: rgba(250,249,246,.35); line-height: 1.85; }
.footer-col__title {
  font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(250,249,246,.55); margin-bottom: .85rem;
}
.footer-col__links { display: flex; flex-direction: column; gap: 7px; }
.footer-col__links a { font-size: .78rem; color: rgba(250,249,246,.35); transition: color .12s; min-height: 28px; display: flex; align-items: center; }
.footer-col__links a:hover { color: rgba(250,249,246,.85); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .7rem; color: rgba(250,249,246,.28); flex-wrap: wrap; gap: .4rem;
}
.footer-disclaimer { font-size: .65rem; color: rgba(250,249,246,.22); }

/* =====================================================
   SINGLE DRAMA PAGE
   ===================================================== */
.drama-hero {
  background: var(--c-ink);
  color: var(--c-paper);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.drama-hero__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}
/* CLS=0: ポスターサイズを aspect-ratio で固定 */
.drama-hero__poster {
  aspect-ratio: 3/4;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.1);
  background: var(--c-surface);
}
.drama-hero__poster img { width:100%; height:100%; object-fit:cover; }
.drama-hero__title { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 900; color: var(--c-paper); margin-block: .5rem .7rem; }
.drama-hero__badges { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: .9rem; }
.drama-hero__tag {
  font-size: .65rem; font-weight: 700; padding: 3px 8px; border-radius: 4px;
  background: rgba(250,249,246,.12); color: rgba(250,249,246,.75);
}
.drama-hero__tag--genre { background: rgba(196,68,63,.25); color: var(--c-rose); }
.drama-hero__lead { font-size: .9rem; color: rgba(250,249,246,.6); line-height: 1.95; margin-bottom: 1.25rem; }
.drama-hero__watch-label { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(250,249,246,.35); margin-bottom: .4rem; }
.drama-hero__watch-btns { display: flex; gap: 7px; flex-wrap: wrap; }
.watch-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 7px;
  font-size: .78rem; font-weight: 700;
  min-height: 40px;
  transition: opacity .15s, transform .15s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.watch-btn:hover { opacity: .88; transform: translateY(-1px); }
.watch-btn--n { background: #e50914; color: #fff; }
.watch-btn--u { background: #1a1a2e; color: #fff; }
.watch-btn--h { background: #10c44c; color: #000; }
.watch-btn--a { background: #ff9900; color: #000; }
.watch-btn--d { background: #0063e5; color: #fff; }
.watch-btn--l { background: #f03c00; color: #fff; }

/* ─── 本文レイアウト ─── */
.drama-body { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.drama-content {}
.drama-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

/* 感情レーダー（本文内） */
.emo-radar {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
}
.emo-radar__title { font-size: .88rem; font-weight: 700; color: var(--c-ink); margin-bottom: 1rem; }
.emo-axes { display: flex; flex-direction: column; gap: 10px; }
.emo-axis { display: grid; grid-template-columns: 68px 1fr 34px; align-items: center; gap: 9px; }
.emo-axis__label { font-size: .72rem; color: var(--c-muted); text-align: right; }
.emo-axis__track { height: 7px; background: var(--c-border); border-radius: 4px; overflow: hidden; }
.emo-axis__fill  { height: 100%; border-radius: 4px; width: 0; transition: width .9s ease; }
.emo-axis__val   { font-size: .72rem; font-weight: 700; color: var(--c-ink); text-align: right; }

/* エピソードアコーディオン */
.ep-accordion { border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; }
.ep-item { border-bottom: 1px solid var(--c-border-soft); }
.ep-item:last-child { border-bottom: none; }
.ep-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr 32px;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1rem;
  background: #fff;
  border: none; text-align: left; font-family: var(--f-sans); cursor: pointer;
  min-height: 52px; /* touch target */
  transition: background .12s;
  -webkit-tap-highlight-color: transparent;
}
.ep-toggle:hover { background: var(--c-surface); }
.ep-toggle[aria-expanded="true"] { background: var(--c-rose-soft); }
.ep-toggle__num   { font-size: .68rem; font-weight: 700; color: var(--c-subtle); }
.ep-toggle__title { font-size: .88rem; font-weight: 700; color: var(--c-ink); line-height: 1.45; }
.ep-toggle__arrow {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-surface); display: flex; align-items: center; justify-content: center;
  font-size: .65rem; color: var(--c-muted);
  transition: transform .3s;
  flex-shrink: 0;
}
.ep-toggle[aria-expanded="true"] .ep-toggle__arrow { transform: rotate(180deg); }
.ep-body {
  /* CLS=0: max-height アニメーションでCLSは発生しない（内側なので） */
  max-height: 0;
  overflow: hidden;
  font-size: .86rem;
  color: var(--c-muted);
  line-height: 1.85;
  transition: max-height .35s ease, padding .3s;
  padding-inline: 1rem;
}
.ep-body.open { padding-block: .85rem; }

/* サイドバーウィジェット */
.widget {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.1rem;
}
.widget__title {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-subtle);
  padding-bottom: .6rem; border-bottom: 1px solid var(--c-border);
  margin-bottom: .85rem;
}
.widget-drama-list { display: flex; flex-direction: column; gap: 9px; }
.widget-drama-item { display: flex; gap: 9px; align-items: start; text-decoration: none; }
.widget-drama-item__thumb {
  /* CLS=0: 寸法固定 */
  width: 48px; height: 65px;
  border-radius: 5px; overflow: hidden; flex-shrink: 0; background: var(--c-surface);
}
.widget-drama-item__thumb img { width:100%; height:100%; object-fit:cover; }
.widget-drama-item__title { font-size: .8rem; font-weight: 700; color: var(--c-ink); line-height: 1.4; margin-bottom: 2px; }
.widget-drama-item__year  { font-size: .68rem; color: var(--c-subtle); }

/* アフィリバナー */
.affili-banner {
  border-radius: var(--r-md); padding: 1.1rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.affili-banner--u { background: linear-gradient(135deg,#141428,#26266a); }
.affili-banner--h { background: linear-gradient(135deg,#00481a,#009933); }
.affili-banner__name  { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 2px; }
.affili-banner__head  { font-size: .95rem; font-weight: 700; color: #fff; line-height: 1.45; }
.affili-banner__sub   { font-size: .72rem; color: rgba(255,255,255,.55); }

/* =====================================================
   STRUCTURED DATA SUPPORT — FAQアコーディオン
   (FAQPage schemaに対応)
   ===================================================== */
.faq-list { display: flex; flex-direction: column; gap: 1px; background: var(--c-border); border-radius: var(--r-md); overflow: hidden; }
.faq-item { background: #fff; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  font-family: var(--f-sans); font-size: .9rem; font-weight: 700; color: var(--c-ink);
  padding: 1rem 1.1rem; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: .5rem; min-height: 52px;
  transition: background .12s;
  -webkit-tap-highlight-color: transparent;
}
.faq-q:hover { background: var(--c-surface); }
.faq-q[aria-expanded="true"] { color: var(--c-rose); }
.faq-a {
  max-height: 0; overflow: hidden; padding-inline: 1.1rem;
  font-size: .86rem; color: var(--c-muted); line-height: 1.85;
  transition: max-height .35s ease, padding .3s;
}
.faq-a.open { padding-block: .75rem 1rem; }

/* =====================================================
   ANIMATIONS — will-change最小化でINP改善
   ===================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow,
.hero__heading,
.hero__lead,
.hero__cta { animation: fadeUp .6s ease both; }
.hero__heading { animation-delay: .08s; }
.hero__lead    { animation-delay: .14s; }
.hero__cta     { animation-delay: .2s; }

/* Intersection Observer で付与 */
.js-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.js-reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================
   PRINT
   ===================================================== */
@media print {
  .site-header, .site-footer, .hero__panel,
  .svc-filters, .affili-banner, .feature-strip, .trust-strip { display: none !important; }
  body { color: #000; background: #fff; }
  a::after { content: ' (' attr(href) ')'; font-size: .75em; }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .mood-grid          { grid-template-columns: repeat(4, 1fr); }
  .radar-feature__grid{ grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
  .drama-body         { grid-template-columns: 1fr; }
  .trust-grid         { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .site-header { height: 56px; }
  .primary-nav, .header-search { display: none; }
  .hamburger { display: flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { display: none; }
  .mood-grid { grid-template-columns: repeat(3,1fr); }
  .drama-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pickup__inner { grid-template-columns: 1fr; }
  .expiring-list { display: none; }
  .drama-hero__grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .mood-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2,1fr); gap: .75rem; }
}
