/**
 * brain_environment_design.css
 *
 * 脳環境デザイン・アーキテクト LP — スタイルシート
 *
 * 設計原則:
 *   - .bed-lp .bed-wrapper にスコープして Cocoon CSS 干渉を完全遮断
 *   - `all: unset` は使用禁止。スコープ型リセットのみ。
 *   - CSS Variables で全カラー管理
 *   - モバイルファースト（SP: ~767px / Tablet: 768px~ / PC: 1024px~）
 *   - clamp() / min() / max() による流体タイポグラフィ
 *   - アニメーション: opacity / transform / filter のみ
 *   - 余白は脳が静まるほどの十分な呼吸感を確保
 *
 * Google Fonts は wp_enqueue_scripts 側で読み込み済み
 */

/* =====================================================
   CSS カスタムプロパティ（全色・全値 一元管理）
   ===================================================== */
.bed-wrapper {
  --olive-deep:      #3d4a2e;
  --olive-mid:       #5a6e3d;
  --olive-light:     #8aa65c;
  --olive-pale:      #b8cc8a;
  --olive-mist:      #d6e3b0;
  --olive-frost:     #edf3d6;
  --olive-pearl:     #f5f8ea;
  --cream:           #faf8f0;
  --warm-white:      #fdfbf4;
  --gold:            #b8960c;
  --gold-light:      #d4af37;
  --gold-pale:       #f0e0a0;
  --ink:             #1e2318;
  --ink-mid:         #2d3624;
  --ink-light:       #4a5a38;
  --shadow-olive:    rgba(61, 74, 46, 0.15);
  --shadow-deep:     rgba(30, 35, 24, 0.25);
  --radius-sm:       2px;
  --transition-base: 0.35s ease;
  --font-serif-jp:   'Shippori Mincho', 'Noto Serif JP', serif;
  --font-body-jp:    'Noto Serif JP', 'Shippori Mincho', serif;
  --font-display:    'Cormorant Garamond', serif;
}

/* =====================================================
   Cocoon 干渉リセット（スコープ型）
   entry-content / article / sidebar 等の影響を遮断
   ===================================================== */
.bed-lp #bed-wrapper,
.bed-lp #bed-wrapper * {
  box-sizing: border-box;
}

/* Cocoon のマージン・パディングリセット */
.bed-lp #bed-wrapper p,
.bed-lp #bed-wrapper ul,
.bed-lp #bed-wrapper ol,
.bed-lp #bed-wrapper h1,
.bed-lp #bed-wrapper h2,
.bed-lp #bed-wrapper h3,
.bed-lp #bed-wrapper h4,
.bed-lp #bed-wrapper h5,
.bed-lp #bed-wrapper h6,
.bed-lp #bed-wrapper figure,
.bed-lp #bed-wrapper table,
.bed-lp #bed-wrapper blockquote {
  margin: 0;
  padding: 0;
}

.bed-lp #bed-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
}

.bed-lp #bed-wrapper a {
  text-decoration: none;
  color: inherit;
}

.bed-lp #bed-wrapper ul,
.bed-lp #bed-wrapper ol {
  list-style: none;
}

.bed-lp #bed-wrapper button {
  cursor: pointer;
  font-family: inherit;
  background: none;
  border: none;
}

/* =====================================================
   ラッパー基盤
   ===================================================== */
.bed-wrapper {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body-jp);
  line-height: 1.8;
  font-size: 15px;
  overflow-x: hidden;
  position: relative;
  animation: bed-fadeIn 0.6s ease 0.05s both;
}

/* 装飾的背景グラデーション */
.bed-wrapper::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(138, 166, 92, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(90, 110, 61, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(214, 227, 176, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* =====================================================
   コンテナ
   ===================================================== */
.bed-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  position: relative;
  z-index: 1;
}

/* =====================================================
   HERO セクション
   ===================================================== */
.bed-hero {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(100px, 12vw, 140px) clamp(20px, 4vw, 48px) clamp(80px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}

/* キービジュアル背景 */
.bed-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bed-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.7) brightness(0.55);
  transform: scale(1.03);
  transition: transform 12s ease;
  will-change: transform;
}

.bed-hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(30, 35, 24, 0.45) 0%,
    rgba(61, 74, 46, 0.30) 40%,
    rgba(30, 35, 24, 0.55) 100%
  );
}

/* 装飾レイヤー */
.bed-hero__art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.bed-hero__dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--olive-mist) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.18;
}

.bed-hero__circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.bed-hero__circle--1 {
  width: min(700px, 90vw);
  height: min(700px, 90vw);
  top: -200px;
  right: -150px;
  border: 1px solid var(--olive-mid);
  animation: bed-slowRotate 60s linear infinite;
}

.bed-hero__circle--2 {
  width: min(500px, 70vw);
  height: min(500px, 70vw);
  bottom: -100px;
  left: -100px;
  border: 1px solid var(--olive-light);
  animation: bed-slowRotate 45s linear infinite reverse;
}

.bed-hero__circle--3 {
  width: min(900px, 120vw);
  height: min(900px, 120vw);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 0.5px solid var(--olive-pale);
  animation: bed-pulse 8s ease-in-out infinite;
}

/* ヒーローコンテンツ */
.bed-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.bed-hero__eyebrow {
  font-family: var(--font-display);
  font-size: clamp(11px, 1.5vw, 13px);
  font-style: italic;
  letter-spacing: 0.3em;
  color: var(--olive-pale);
  margin-bottom: 28px;
  text-transform: uppercase;
  display: block;
  animation: bed-fadeInUp 1s ease 0.2s both;
}

.bed-hero__title {
  font-family: var(--font-serif-jp);
  font-size: clamp(32px, 5.5vw, 68px);
  font-weight: 800;
  color: var(--warm-white);
  line-height: 1.25;
  margin-bottom: 24px;
  animation: bed-fadeInUp 1s ease 0.4s both;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(30, 35, 24, 0.6);
}

.bed-hero__title-accent {
  color: var(--olive-pale);
  display: inline-block;
}

.bed-hero__subtitle {
  font-size: clamp(13px, 1.8vw, 15px);
  color: rgba(245, 248, 234, 0.85);
  max-width: 600px;
  line-height: 2;
  margin-bottom: 48px;
  margin-left: auto;
  margin-right: auto;
  animation: bed-fadeInUp 1s ease 0.6s both;
}

.bed-hero__divider {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  margin: 0 auto 48px;
  animation: bed-lineGrow 1.5s ease 1s both;
}

.bed-hero__stats {
  display: flex;
  gap: clamp(32px, 6vw, 60px);
  justify-content: center;
  animation: bed-fadeIn 1s ease 1.2s both;
}

.bed-hero__stat {
  text-align: center;
}

.bed-hero__stat-number {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 300;
  color: var(--olive-pale);
  line-height: 1;
  display: block;
}

.bed-hero__stat-label {
  font-size: clamp(9px, 1.2vw, 10px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 248, 234, 0.7);
  margin-top: 6px;
  display: block;
}

/* スクロールヒント */
.bed-hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  animation: bed-fadeIn 2s ease 2s both;
}

.bed-hero__scroll span {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--olive-pale);
  opacity: 0.7;
}

.bed-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--olive-pale), transparent);
  animation: bed-scrollPulse 2s ease-in-out infinite;
}

/* =====================================================
   MAIN エリア
   ===================================================== */
.bed-main {
  position: relative;
  z-index: 1;
}

/* =====================================================
   セクション共通
   ===================================================== */
.bed-section {
  padding: clamp(64px, 8vw, 100px) 0;
  border-top: 1px solid var(--olive-mist);
}

.bed-section__header {
  margin-bottom: 64px;
}

.bed-section__tag {
  font-family: var(--font-display);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.bed-section__title {
  font-family: var(--font-serif-jp);
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--olive-deep);
  line-height: 1.3;
  margin-bottom: 16px;
}

.bed-section__desc {
  font-size: clamp(13px, 1.6vw, 14px);
  color: var(--ink-light);
  max-width: 600px;
  line-height: 2;
}

/* チャプターナンバー */
.bed-chapter {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.bed-chapter__number {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 300;
  color: var(--olive-mist);
  line-height: 1;
  letter-spacing: -0.03em;
}

/* =====================================================
   2カラムレイアウト
   ===================================================== */
.bed-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 48px);
  align-items: start;
}

.bed-two-col__text {
  font-size: clamp(13px, 1.6vw, 14px);
  color: var(--ink-light);
  line-height: 2;
}

.bed-two-col__text p + p {
  margin-top: 16px;
}

.bed-two-col__heading {
  font-family: var(--font-serif-jp);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  color: var(--olive-deep);
  margin-bottom: 16px;
}

/* =====================================================
   サブセクション見出し
   ===================================================== */
.bed-subsection-heading {
  font-family: var(--font-serif-jp);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  color: var(--olive-deep);
  margin-bottom: 20px;
}

.bed-subsection-heading--bordered {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--olive-mist);
}

.bed-subsection-heading__sub {
  font-size: 11px;
  color: var(--olive-light);
  font-weight: 400;
  margin-left: 12px;
  font-family: var(--font-body-jp);
}

/* =====================================================
   セクション画像
   ===================================================== */
.bed-section-figure {
  margin-bottom: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.bed-section-figure--overview {
  height: 480px;
}

.bed-section-figure--overview .bed-img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bed-section-figure--brain-science {
  margin: 32px 0 0;
  width: 100%;
}

.bed-section-figure--habits {
  height: 480px;
  border-radius: var(--radius-sm);
}

.bed-section-figure--habits .bed-img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bed-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  filter: saturate(0.85);
  transition: filter var(--transition-base), transform 0.6s ease;
}

.bed-img:hover {
  filter: saturate(1.0);
}

.bed-figure-caption {
  font-size: 11px;
  color: var(--ink-light);
  letter-spacing: 0.05em;
  text-align: center;
  padding: 12px 16px;
  background: var(--olive-pearl);
  border: 1px solid var(--olive-mist);
  border-top: none;
  font-style: italic;
  line-height: 1.6;
}

/* =====================================================
   ハイライトボックス
   ===================================================== */
.bed-highlight-box {
  border: 1px solid var(--olive-pale);
  background: linear-gradient(135deg, var(--olive-pearl) 0%, var(--warm-white) 100%);
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-sm);
  position: relative;
}

.bed-highlight-box::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 32px;
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--olive-mist);
  line-height: 1;
  pointer-events: none;
}

.bed-highlight-text {
  font-family: var(--font-serif-jp);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 600;
  color: var(--olive-deep);
  line-height: 1.7;
}

/* =====================================================
   情報パネル（タイムライン形式）
   ===================================================== */
.bed-info-panel {
  background: var(--olive-pearl);
  border: 1px solid var(--olive-mist);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-sm);
}

.bed-info-panel__title {
  font-family: var(--font-serif-jp);
  font-size: clamp(15px, 1.9vw, 17px);
  font-weight: 700;
  color: var(--olive-deep);
  margin-bottom: 24px;
}

/* =====================================================
   タイムライン
   ===================================================== */
.bed-timeline {
  position: relative;
  padding-left: 48px;
}

.bed-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--olive-light), var(--olive-mist), transparent);
}

.bed-timeline__item {
  position: relative;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.bed-timeline__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bed-timeline__item:last-child {
  margin-bottom: 0;
}

.bed-timeline__item::before {
  content: '';
  position: absolute;
  left: -42px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--olive-light);
  border: 2px solid var(--olive-pearl);
  box-shadow: 0 0 0 2px var(--olive-light);
}

.bed-timeline__title {
  font-family: var(--font-serif-jp);
  font-size: clamp(13px, 1.7vw, 16px);
  font-weight: 700;
  color: var(--olive-deep);
  margin-bottom: 8px;
}

.bed-timeline__body {
  font-size: clamp(12px, 1.5vw, 13.5px);
  color: var(--ink-light);
  line-height: 1.9;
}

/* =====================================================
   カードグリッド
   ===================================================== */
.bed-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  margin-top: 40px;
}

.bed-card {
  background: var(--warm-white);
  border: 1px solid var(--olive-mist);
  border-radius: var(--radius-sm);
  padding: clamp(24px, 3vw, 36px);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
}

.bed-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bed-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--olive-light), var(--olive-pale));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-base);
}

.bed-card:hover::before {
  transform: scaleY(1);
}

.bed-card:hover {
  box-shadow: 0 12px 40px var(--shadow-olive);
  transform: translateY(-4px);
}

.bed-card__icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
  filter: saturate(0.7);
}

.bed-card__title {
  font-family: var(--font-serif-jp);
  font-size: clamp(15px, 1.9vw, 18px);
  font-weight: 700;
  color: var(--olive-deep);
  margin-bottom: 12px;
  line-height: 1.4;
}

.bed-card__body {
  font-size: clamp(12px, 1.5vw, 13.5px);
  color: var(--ink-light);
  line-height: 1.9;
}

.bed-card__tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive-light);
  border: 1px solid var(--olive-mist);
  padding: 3px 10px;
  border-radius: 1px;
}

/* =====================================================
   Essentials ブロック（ダーク）
   ===================================================== */
.bed-essentials-block {
  background: linear-gradient(135deg, var(--olive-deep) 0%, var(--ink-mid) 100%);
  padding: clamp(36px, 5vw, 60px);
  border-radius: var(--radius-sm);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  margin: 48px 0;
}

.bed-essentials-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(214, 227, 176, 0.1);
  pointer-events: none;
}

.bed-essentials-block::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(184, 204, 138, 0.08);
  pointer-events: none;
}

.bed-essentials__title {
  font-family: var(--font-serif-jp);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  color: var(--olive-pale);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.bed-essentials__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(214, 227, 176, 0.25);
}

.bed-essentials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.bed-essential-item {
  padding: 24px;
  border: 1px solid rgba(214, 227, 176, 0.15);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  transition: background var(--transition-base), border-color var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
}

.bed-essential-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bed-essential-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(184, 204, 138, 0.35);
}

.bed-essential__label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--olive-pale);
  margin-bottom: 10px;
  display: block;
}

.bed-essential__text {
  font-size: clamp(12px, 1.5vw, 14px);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

/* =====================================================
   リスト（エレガント形式）
   ===================================================== */
.bed-elegant-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bed-elegant-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: clamp(12px, 1.5vw, 14px);
  color: var(--ink-light);
  line-height: 1.8;
  padding: clamp(12px, 1.5vw, 16px) 20px;
  background: var(--olive-pearl);
  border-left: 2px solid var(--olive-pale);
  transition: background var(--transition-base), border-left-color var(--transition-base);
  opacity: 0;
  transform: translateY(16px);
}

.bed-elegant-list li.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bed-elegant-list li::before {
  content: '▸';
  color: var(--olive-light);
  font-size: 12px;
  margin-top: 2px;
  flex-shrink: 0;
}

.bed-elegant-list li:hover {
  background: var(--olive-frost);
  border-left-color: var(--olive-light);
}

/* =====================================================
   バッジ
   ===================================================== */
.bed-badge {
  display: inline-block;
  padding: 3px 12px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 1px;
  font-weight: 500;
  font-family: var(--font-body-jp);
}

.bed-badge--must {
  background: var(--olive-deep);
  color: var(--olive-pale);
}

.bed-badge--important {
  background: var(--olive-mist);
  color: var(--olive-deep);
}

.bed-badge--recommend {
  background: var(--gold-pale);
  color: var(--gold);
}

/* =====================================================
   比較テーブル
   ===================================================== */
.bed-compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: clamp(11px, 1.5vw, 13.5px);
}

.bed-compare-table th {
  background: var(--olive-deep);
  color: var(--olive-pale);
  padding: clamp(10px, 1.5vw, 16px) 20px;
  text-align: left;
  font-family: var(--font-serif-jp);
  font-weight: 600;
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.05em;
}

.bed-compare-table th:first-child {
  width: 25%;
}

.bed-compare-table td {
  padding: clamp(10px, 1.5vw, 14px) 20px;
  border-bottom: 1px solid var(--olive-mist);
  color: var(--ink-light);
  vertical-align: top;
  line-height: 1.8;
}

.bed-compare-table tr:last-child td {
  border-bottom: none;
}

.bed-compare-table tr:nth-child(odd) td {
  background: var(--olive-pearl);
}

.bed-compare-table td:first-child {
  font-weight: 600;
  color: var(--olive-mid);
}

/* =====================================================
   習慣パネル
   ===================================================== */
.bed-habit-panel {
  background: var(--olive-pearl);
  border: 1px solid var(--olive-mist);
  padding: clamp(20px, 2.5vw, 28px);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.bed-habit-panel__title {
  font-family: var(--font-serif-jp);
  font-size: clamp(13px, 1.7vw, 14px);
  font-weight: 700;
  color: var(--olive-deep);
  margin-bottom: 16px;
}

/* =====================================================
   BANI グリッド
   ===================================================== */
.bed-bani-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 48px 0;
  border: 1px solid var(--olive-mist);
}

.bed-bani-item {
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2.5vw, 28px);
  border-right: 1px solid var(--olive-mist);
  transition: background var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
}

.bed-bani-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bed-bani-item:last-child {
  border-right: none;
}

.bed-bani-item:hover {
  background: var(--olive-pearl);
}

.bed-bani__letter {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 300;
  color: var(--olive-mist);
  line-height: 1;
  margin-bottom: 12px;
  display: block;
  transition: color var(--transition-base);
}

.bed-bani-item:hover .bed-bani__letter {
  color: var(--olive-pale);
}

.bed-bani__word {
  font-family: var(--font-serif-jp);
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 700;
  color: var(--olive-mid);
  margin-bottom: 16px;
  display: block;
}

.bed-bani__desc {
  font-size: clamp(11px, 1.4vw, 12.5px);
  color: var(--ink-light);
  line-height: 1.8;
}

.bed-bani__strategy {
  color: var(--olive-mid);
}

/* =====================================================
   VUCA / BANI 時代パネル
   ===================================================== */
.bed-era-panel {
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-sm);
}

.bed-era-panel--vuca {
  background: var(--olive-pearl);
  border: 1px solid var(--olive-mist);
}

.bed-era-panel--bani {
  background: linear-gradient(135deg, var(--olive-deep), var(--ink-mid));
  border: 1px solid var(--olive-mid);
}

.bed-era-panel__title {
  font-family: var(--font-serif-jp);
  font-size: clamp(13px, 1.7vw, 16px);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.bed-era-panel--vuca .bed-era-panel__title {
  color: var(--olive-mid);
}

.bed-era-panel--bani .bed-era-panel__title {
  color: var(--olive-pale);
}

.bed-era-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bed-era-item {
  padding: 16px;
  border-radius: var(--radius-sm);
}

.bed-era-item--light {
  background: var(--warm-white);
  border: 1px solid var(--olive-mist);
}

.bed-era-item--dark {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(184, 204, 138, 0.2);
}

.bed-era-item__letter {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 300;
  line-height: 1;
}

.bed-era-item--light .bed-era-item__letter {
  color: var(--olive-pale);
}

.bed-era-item--dark .bed-era-item__letter {
  color: var(--olive-mist);
}

.bed-era-item__word {
  font-size: clamp(10px, 1.4vw, 12px);
  font-weight: 700;
  margin-top: 4px;
}

.bed-era-item--light .bed-era-item__word {
  color: var(--olive-deep);
}

.bed-era-item--dark .bed-era-item__word {
  color: var(--olive-pale);
}

.bed-era-item__note {
  font-size: 11px;
  margin-top: 4px;
}

.bed-era-item--light .bed-era-item__note {
  color: var(--ink-light);
}

.bed-era-item--dark .bed-era-item__note {
  color: rgba(255, 255, 255, 0.5);
}

/* =====================================================
   実践タブ
   ===================================================== */
.bed-practical-tabs {
  margin-top: 40px;
}

.bed-tab-headers {
  display: flex;
  border-bottom: 1px solid var(--olive-mist);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bed-tab-headers::-webkit-scrollbar {
  display: none;
}

.bed-tab-header {
  padding: 14px 24px;
  font-size: clamp(10px, 1.4vw, 12px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--transition-base), border-bottom-color var(--transition-base);
  white-space: nowrap;
  font-family: var(--font-body-jp);
  background: none;
  min-height: 44px;
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius: 0;
  display: flex;
  align-items: center;
}

.bed-tab-header--active {
  color: var(--olive-deep);
  border-bottom-color: var(--olive-light);
  font-weight: 600;
}

.bed-tab-header:hover:not(.bed-tab-header--active) {
  color: var(--olive-mid);
}

.bed-tab-content {
  display: none;
  padding: 40px 0;
}

.bed-tab-content--active {
  display: block;
}

.bed-tab-content__heading {
  font-family: var(--font-serif-jp);
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 700;
  color: var(--olive-deep);
  margin-bottom: 28px;
}

/* =====================================================
   デイリールーティン
   ===================================================== */
.bed-routine-grid {
  display: grid;
  grid-template-columns: clamp(64px, 8vw, 100px) 1fr;
  gap: 0;
  margin: 32px 0;
}

.bed-routine__time {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 300;
  color: var(--olive-light);
  text-align: right;
  padding: 20px 24px 20px 0;
  border-right: 1px solid var(--olive-mist);
  line-height: 1.2;
}

.bed-routine__content {
  padding: 20px 0 20px 28px;
  border-bottom: 1px solid var(--olive-mist);
}

.bed-routine__title {
  font-family: var(--font-serif-jp);
  font-size: clamp(13px, 1.7vw, 15px);
  font-weight: 700;
  color: var(--olive-deep);
  margin-bottom: 6px;
}

.bed-routine__detail {
  font-size: clamp(11px, 1.4vw, 13px);
  color: var(--ink-light);
  line-height: 1.8;
}

/* =====================================================
   マスターモデルセクション
   ===================================================== */
.bed-master-model {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 80px;
}

.bed-master-model__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bed-master-model__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.5) brightness(0.35);
  border-radius: 0;
}

.bed-master-model__visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(61, 74, 46, 0.75) 0%,
    rgba(42, 53, 32, 0.85) 50%,
    rgba(30, 35, 24, 0.90) 100%
  );
}

.bed-master-model__content {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 6vw, 80px) clamp(28px, 5vw, 60px);
  text-align: center;
  color: var(--cream);
}

/* 装飾円 */
.bed-master-model__content::before,
.bed-master-model__content::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(184, 204, 138, 0.1);
  pointer-events: none;
}

.bed-master-model__content::before {
  width: min(600px, 80vw);
  height: min(600px, 80vw);
  top: -200px;
  right: -100px;
}

.bed-master-model__content::after {
  width: min(400px, 60vw);
  height: min(400px, 60vw);
  bottom: -150px;
  left: -80px;
}

.bed-master-model__eyebrow {
  font-family: var(--font-display);
  font-size: clamp(11px, 1.4vw, 13px);
  font-style: italic;
  letter-spacing: 0.3em;
  color: var(--olive-pale);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
}

.bed-master-model__title {
  font-family: var(--font-serif-jp);
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 800;
  color: var(--olive-pale);
  margin-bottom: 16px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.bed-master-model__subtitle {
  font-size: clamp(13px, 1.7vw, 15px);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 64px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 2;
  position: relative;
  z-index: 1;
}

/* マスターモデル 5本柱 */
.bed-master-pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(184, 204, 138, 0.15);
  border: 1px solid rgba(184, 204, 138, 0.15);
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.bed-master-pillar {
  background: rgba(30, 35, 24, 0.6);
  padding: clamp(18px, 2.5vw, 28px) clamp(10px, 1.5vw, 16px);
  transition: background var(--transition-base);
}

.bed-master-pillar:hover {
  background: rgba(90, 110, 61, 0.3);
}

.bed-master-pillar__number {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  color: var(--olive-pale);
  display: block;
  margin-bottom: 8px;
}

.bed-master-pillar__title {
  font-family: var(--font-serif-jp);
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  margin-bottom: 10px;
  display: block;
}

.bed-master-pillar__desc {
  font-size: clamp(10px, 1.2vw, 11px);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

/* 名言引用 */
.bed-master-quote {
  font-family: var(--font-serif-jp);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  /* Cocoonテーマ干渉を遮断するため !important で色を強制確保 */
  color: #d6e3b0 !important;
  line-height: 1.8;
  max-width: 700px;
  /* リセット（margin:0）を突き破り中央揃え + 下方移動 */
  margin: 60px auto 0 !important;
  text-align: center;
  position: relative;
  z-index: 2;
  /* リセット（padding:0）を突き破りパディングを確保 */
  padding: 40px 20px !important;
  border-top: 1px solid rgba(184, 204, 138, 0.3);
  /* 背景を明示してオーバーレイが不完全な場合も確実に読める状態にする */
  background: rgba(30, 35, 24, 0.55);
  border-radius: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.bed-master-quote cite {
  font-size: 13px;
  font-weight: 400;
  /* 45%では暗背景で消えるため75%に引き上げ */
  color: rgba(214, 227, 176, 0.75) !important;
  display: block;
  margin-top: 20px;
  font-style: italic;
  letter-spacing: 0.08em;
}

/* =====================================================
   キーワードクラウド
   ===================================================== */
.bed-keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0;
}

.bed-keyword-chip {
  background: var(--olive-pearl);
  border: 1px solid var(--olive-pale);
  color: var(--olive-mid);
  padding: 6px 16px;
  font-size: clamp(10px, 1.4vw, 11.5px);
  letter-spacing: 0.08em;
  border-radius: 1px;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
  cursor: default;
}

.bed-keyword-chip:hover {
  background: var(--olive-deep);
  color: var(--olive-pale);
  border-color: var(--olive-deep);
}

/* =====================================================
   区切り線
   ===================================================== */
.bed-divider {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 64px 0;
  color: var(--olive-mist);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-style: italic;
}

.bed-divider::before,
.bed-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--olive-mist), transparent);
}

/* =====================================================
   CTA セクション
   ===================================================== */
.bed-cta-section {
  background: linear-gradient(160deg, var(--olive-deep) 0%, #2a3520 50%, var(--ink) 100%);
  padding: clamp(64px, 8vw, 100px) clamp(20px, 4vw, 48px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bed-cta-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: min(700px, 90vw);
  height: min(700px, 90vw);
  border-radius: 50%;
  border: 1px solid rgba(184, 204, 138, 0.08);
  pointer-events: none;
}

.bed-cta-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -80px;
  width: min(500px, 70vw);
  height: min(500px, 70vw);
  border-radius: 50%;
  border: 1px solid rgba(214, 227, 176, 0.06);
  pointer-events: none;
}

.bed-cta-section__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.bed-cta-section__eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.35em;
  color: var(--olive-pale);
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
}

.bed-cta-section__title {
  font-family: var(--font-serif-jp);
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--olive-pale);
  line-height: 1.3;
  margin-bottom: 24px;
}

.bed-cta-section__body {
  font-size: clamp(13px, 1.7vw, 15px);
  color: rgba(255, 255, 255, 0.65);
  line-height: 2;
  margin-bottom: 48px;
}

.bed-cta-section__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 48px;
  border-radius: 2px;
  color: #fff;
  font-family: var(--font-serif-jp);
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 700;
  letter-spacing: 0.1em;
  min-height: 56px;
  min-width: 240px;
  text-decoration: none;
  transition: filter var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.bed-cta-section__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--transition-base);
}

.bed-cta-section__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.bed-cta-section__btn:hover::before {
  background: rgba(255, 255, 255, 0.06);
}

.bed-cta-section__btn:active {
  transform: translateY(0);
}

.bed-cta-section__subtext {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 20px;
  text-transform: uppercase;
}

/* =====================================================
   スクロールバー（カスタム）
   ===================================================== */
.bed-wrapper ::-webkit-scrollbar {
  width: 6px;
}

.bed-wrapper ::-webkit-scrollbar-track {
  background: var(--cream);
}

.bed-wrapper ::-webkit-scrollbar-thumb {
  background: var(--olive-pale);
  border-radius: 3px;
}

.bed-wrapper ::-webkit-scrollbar-thumb:hover {
  background: var(--olive-light);
}

/* =====================================================
   キーフレーム
   ===================================================== */
@keyframes bed-slowRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes bed-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.05; }
  50%       { transform: translate(-50%, -50%) scale(1.03); opacity: 0.08; }
}

@keyframes bed-fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes bed-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes bed-lineGrow {
  from { width: 0;   }
  to   { width: 80px; }
}

@keyframes bed-scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1;   }
}

/* =====================================================
   レスポンシブ — Tablet（768px〜）
   ===================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .bed-master-pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =====================================================
   レスポンシブ — SP（〜767px）
   ===================================================== */
@media (max-width: 767px) {
	
  .bed-section-figure--overview,
  .bed-section-figure--habits {
    height: 240px;
  }
	
  /* ナビゲーション：SPでハンバーガーに切り替え */
  .bed-nav__toggle {
    display: flex;
  }

  .bed-nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(253, 251, 244, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--olive-mist);
    flex-direction: column;
    padding: 8px 0;
    gap: 0;
    box-shadow: 0 8px 32px var(--shadow-olive);
  }

  .bed-nav__list.is-open {
    display: flex;
  }

  .bed-nav__link {
    padding: 14px 24px;
    justify-content: flex-start;
    border-bottom: 1px solid var(--olive-frost);
    letter-spacing: 0.1em;
  }

  /* HEROのテキスト改行調整 */
  .bed-hero__subtitle br {
    display: none;
  }

  /* 2カラム → 1カラム */
  .bed-two-col,
  .bed-two-col--era {
    grid-template-columns: 1fr;
  }

  /* BANIグリッド SP */
  .bed-bani-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bed-bani-item {
    border-right: none;
    border-bottom: 1px solid var(--olive-mist);
  }

  .bed-bani-item:nth-child(odd) {
    border-right: 1px solid var(--olive-mist);
  }

  /* マスターモデル柱 SP */
  .bed-master-pillars {
    grid-template-columns: 1fr 1fr;
  }

  /* ルーティングリッド SP */
  .bed-routine-grid {
    grid-template-columns: clamp(48px, 16vw, 72px) 1fr;
  }

  .bed-routine__time {
    font-size: clamp(16px, 5vw, 22px);
    padding-right: 16px;
  }

  .bed-routine__content {
    padding-left: 16px;
  }

  /* Essentials SP */
  .bed-essentials-block {
    padding: clamp(24px, 6vw, 40px) clamp(20px, 5vw, 28px);
  }

  /* マスターモデル SP */
  .bed-master-model__content {
    padding: clamp(40px, 8vw, 60px) clamp(20px, 5vw, 32px);
  }

  /* CTA SP */
  .bed-cta-section__body br {
    display: none;
  }

  .bed-cta-section__btn {
    width: 100%;
    max-width: 320px;
  }

  /* ヒーロー統計SP */
  .bed-hero__stats {
    gap: clamp(24px, 6vw, 40px);
  }

  /* タブヘッダー SP */
  .bed-tab-header {
    padding: 12px 16px;
    font-size: 10px;
  }
}

/* =====================================================
   PC（1024px〜）補完
   ===================================================== */
@media (min-width: 1024px) {
  .bed-master-pillars {
    grid-template-columns: repeat(5, 1fr);
  }

  .bed-bani-grid {
    grid-template-columns: repeat(4, 1fr);
  }
	
  .bed-essentials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================
   アクセシビリティ — モーション軽減
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  .bed-wrapper { animation: none; opacity: 1; }
  .bed-hero__circle--1,
  .bed-hero__circle--2,
  .bed-hero__circle--3 {
    animation: none;
  }

  .bed-hero__bg-img {
    transition: none;
  }

  .bed-card,
  .bed-timeline__item,
  .bed-essential-item,
  .bed-bani-item,
  .bed-elegant-list li {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
