/*
Theme Name: LP Board Review
Theme URI: https://example.com/
Author: Kurihara Takuya
Description: LP Board レビュー記事風ペライチテーマ。画像・動画・文章はすべて「外観 > カスタマイズ」から差し替え可能。
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: lpbr
*/

:root {
  --base: #FAF9F6;
  --card: #FFFFFF;
  --ink: #2B2B33;
  --sub: #6E6E78;
  --line: #E7E4DD;
  --star: #F5A623;
  --primary: #2F6FED;
  --primary-soft: #EAF1FE;
  --cta1: #FF7A29;
  --cta2: #FF5E3A;
  --good: #2E9E6B;
  --good-bg: #EDF8F2;
  --bad: #D9534F;
  --bad-bg: #FCF0EF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  background: var(--base);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }

/* ---------- PR bar ---------- */
.pr-bar {
  background: #F1EFE9;
  color: var(--sub);
  font-size: 12px;
  text-align: center;
  padding: 6px 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-header__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
.site-header__title span { color: var(--primary); }
.site-header__cta {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--cta1), var(--cta2));
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(255, 110, 50, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.site-header__cta:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(255, 110, 50, 0.45); }

/* ---------- Article layout ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}
.section { margin-top: 56px; }
.section__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  padding-left: 14px;
  border-left: 5px solid var(--primary);
  margin-bottom: 22px;
}

/* ---------- Hero ---------- */
.hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.hero__badge {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
}
.hero__title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 16px;
}
.hero__lead { color: var(--ink); margin-bottom: 20px; }
.hero__score {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 24px;
}
.hero__score-label { font-size: 13px; color: var(--sub); font-weight: 700; }
.hero__score-num { font-size: 32px; font-weight: 800; color: var(--star); line-height: 1; }
.hero__image { margin-bottom: 8px; }
.hero__image img { border-radius: 12px; }

/* ---------- Stars ---------- */
.stars {
  position: relative;
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  color: #DDD8CE;
  letter-spacing: 2px;
}
.stars::before { content: '★★★★★'; }
.stars__fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--star);
}
.stars__fill::before { content: '★★★★★'; letter-spacing: 2px; }

/* ---------- TOC ---------- */
.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 32px;
}
.toc__title { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.toc ol { padding-left: 22px; }
.toc li { margin: 4px 0; font-size: 14px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc a.is-active { font-weight: 800; }

/* PC用サイド目次（デフォルト非表示。1100px以上で表示） */
.toc-side { display: none; }

@media (min-width: 1100px) {
  .page-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) 250px;
    gap: 40px;
    justify-content: center;
    align-items: start;
  }
  .article { max-width: none; margin: 0; }
  .toc--inline { display: none; }
  .toc-side {
    display: block;
    position: sticky;
    top: 84px;
    margin-top: 64px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
  .toc--side { margin-top: 0; padding: 18px 20px; }
  .toc--side li { margin: 7px 0; }
  .toc--side a {
    color: var(--sub);
    display: block;
    padding: 2px 8px;
    margin-left: -8px;
    border-left: 3px solid transparent;
    border-radius: 0 6px 6px 0;
  }
  .toc--side a:hover { color: var(--primary); text-decoration: none; background: var(--primary-soft); }
  .toc--side a.is-active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: var(--primary-soft);
  }
}

/* ---------- Verdict (総評) ---------- */
.verdict {
  background: var(--card);
  border: 2px solid var(--star);
  border-radius: 14px;
  padding: 26px 24px;
}
.verdict__head {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.verdict__text { margin-bottom: 20px; }
.scorebar { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.scorebar__label { flex: 0 0 7.5em; font-size: 13px; font-weight: 700; }
.scorebar__track {
  flex: 1;
  height: 10px;
  background: #EFECE5;
  border-radius: 999px;
  overflow: hidden;
}
.scorebar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--star), #FFC85C);
  border-radius: 999px;
  transition: width 0.8s ease;
}
.scorebar__num { flex: 0 0 2.5em; text-align: right; font-size: 13px; font-weight: 700; color: var(--star); }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: var(--card); border-radius: 10px; overflow: hidden; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 12px 16px; font-size: 14px; text-align: left; }
.spec-table th { background: #F5F3EE; width: 32%; font-weight: 700; white-space: nowrap; }

/* ---------- Video ---------- */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  margin-bottom: 24px;
}
.video-wrap iframe, .video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Steps ---------- */
.step { display: flex; gap: 16px; margin-top: 20px; }
.step__num {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__body { flex: 1; }
.step__title { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.step__body img { border-radius: 10px; margin-top: 10px; }

/* ---------- Pros / Cons ---------- */
.pc-box { border-radius: 12px; padding: 22px 24px; margin-top: 20px; }
.pc-box--good { background: var(--good-bg); border: 1px solid #CBE9DA; }
.pc-box--bad { background: var(--bad-bg); border: 1px solid #F0D4D2; }
.pc-box__head { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.pc-box--good .pc-box__head { color: var(--good); }
.pc-box--bad .pc-box__head { color: var(--bad); }
.pc-item { margin-top: 12px; }
.pc-item__title { font-weight: 700; font-size: 15px; }
.pc-box--good .pc-item__title::before { content: '◎ '; color: var(--good); }
.pc-box--bad .pc-item__title::before { content: '△ '; color: var(--bad); }
.pc-item__text { font-size: 14px; color: #4A4A52; }

/* ---------- Voices (口コミ) ---------- */
.voice {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  margin-top: 16px;
}
.voice__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.voice__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 48px;
}
.voice__avatar img { width: 100%; height: 100%; object-fit: cover; }
.voice__name { font-weight: 800; font-size: 14px; }
.voice__meta { font-size: 12px; color: var(--sub); }
.voice__text { font-size: 14px; }

/* ---------- Price ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--card); }
.price-table th, .price-table td { border: 1px solid var(--line); padding: 12px 14px; font-size: 14px; text-align: left; }
.price-table thead th { background: var(--primary); color: #fff; font-weight: 700; }
.price-table .price-table__price { font-weight: 800; color: var(--cta2); white-space: nowrap; }
.price-note { font-size: 12px; color: var(--sub); margin-top: 8px; }

/* ---------- Target ---------- */
.target-list { list-style: none; margin-top: 8px; }
.target-list li {
  position: relative;
  padding: 8px 0 8px 32px;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.target-list--good li::before { content: '✔'; position: absolute; left: 4px; color: var(--good); font-weight: 800; }
.target-list--bad li::before { content: '✖'; position: absolute; left: 4px; color: var(--bad); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  position: relative;
  padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: 'Q. '; color: var(--primary); font-weight: 800; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--sub);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item__a { padding: 0 20px 16px; font-size: 14px; color: #4A4A52; }
.faq-item__a::before { content: 'A. '; color: var(--bad); font-weight: 800; }

/* ---------- Summary / CTA ---------- */
.summary-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  text-align: center;
}
.summary-box__text { text-align: left; margin-bottom: 24px; }
.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--cta1), var(--cta2));
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  padding: 18px 44px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(255, 110, 50, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgba(255, 110, 50, 0.5); }
.cta-note { font-size: 12px; color: var(--sub); margin-top: 10px; }

/* ---------- Placeholder ---------- */
.ph {
  border: 2px dashed #C9C4B8;
  border-radius: 12px;
  background: repeating-linear-gradient(45deg, #F5F3EE, #F5F3EE 12px, #EFECE5 12px, #EFECE5 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #8A857A;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 12px;
}
.ph--wide { aspect-ratio: 16 / 9; }
.ph--avatar { width: 48px; height: 48px; border-radius: 50%; aspect-ratio: 1; font-size: 9px; padding: 2px; gap: 0; }
.ph--avatar .ph__icon { display: none; }
.ph__icon { font-size: 26px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #2B2B33;
  color: #C9C7D2;
  margin-top: 40px;
  padding: 32px 20px 90px;
  text-align: center;
  font-size: 13px;
}
.site-footer a { color: #C9C7D2; margin: 0 12px; }
.site-footer__copy { margin-top: 16px; font-size: 12px; color: #8A889A; }

/* ---------- Mobile fixed CTA ---------- */
.fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  text-align: center;
  display: none;
}
.fixed-cta .cta-btn { font-size: 15px; padding: 13px 32px; width: 100%; max-width: 420px; }

/* ---------- Animation ---------- */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hero__title { font-size: 23px; }
  .section__title { font-size: 20px; }
  .scorebar__label { flex-basis: 6.5em; font-size: 12px; }
  .fixed-cta { display: block; }
  .site-header__cta { display: none; }
  .step { gap: 12px; }
  .step__num { flex-basis: 34px; height: 34px; font-size: 14px; }
}
