/* content-poster.css v1.0.2
 * ポスター調テーマ（docs/CONTENT_PAGES_REDESIGN.md セクション13-14）
 * 読み込み順: content-pop.css の後（最後）。後勝ちで pop テーマを上書きする。
 * 由来: Phase 6 で活用例LP 4ページのインライン <style> に実装したものを共通化。
 * 注意: TOPページ用に src/styles/main.css の .seo-poster 群へ複製されている。
 *       ヒーロー・CTA・マーカー等を変更する際は main.css 側との同期必須（POSTER_DESIGN_SYSTEM.md 6章）。
 */

/* === デザイントークン上書き === */
:root {
  --color-surface-alt: #FBF7EA; /* pop の #FFFACD を淡いクリームに */
  --color-border: #F0E9D8;
  --color-text-primary: #5A5A5A; /* 真っ黒を避け、紙に馴染むグレーに */
}

/* === 記事ヘッダー（全ページ共通のクリーム地パネル） === */
.article-header {
  background: #FDFAF2;
  border: 1px solid #F0E9D8;
  border-bottom: 3px solid var(--color-gold);
  border-radius: 20px;
  padding: 36px 32px;
  margin: 24px 0 40px;
}

/* --- ポスター型ヒーロー（2026-07 リニューアル） --- */
.poster-hero {
  --font-hand: "Yomogi", "Hiragino Maru Gothic ProN", sans-serif;
  position: relative;
  background: #FDFAF2;
  border: 1px solid #F0E9D8;
  border-bottom: 3px solid var(--color-gold);
  border-radius: 20px;
  padding: 36px 40px 32px;
  margin: 8px 0 var(--space-section-mobile);
  overflow: hidden;
}
.poster-hero::before {
  content: "";
  position: absolute;
  left: -14px;
  bottom: -14px;
  width: 190px;
  height: 120px;
  background-image: radial-gradient(circle, #F2D64B 3px, transparent 3.5px);
  background-size: 22px 22px;
  opacity: 0.45;
  pointer-events: none;
}
.poster-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}
.poster-eyebrow {
  margin: 0;
}
.poster-eyebrow span {
  display: inline-block;
  position: relative;
  background: #DDF2E4;
  color: #2E6B47;
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 8px 18px;
  border-radius: 999px;
}
.poster-eyebrow span::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -7px;
  border-style: solid;
  border-width: 8px 6px 0 6px;
  border-color: #DDF2E4 transparent transparent transparent;
}
.poster-headline {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: #1A1A1A;
  margin: 16px 0 12px;
  text-wrap: balance;
}
.poster-marker {
  font-style: normal;
  background: linear-gradient(transparent 62%, #FFE44D 62%, #FFE44D 94%, transparent 94%);
}
.poster-hero .poster-h1 {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 6px;
}
.poster-hero .article-meta {
  margin-bottom: 10px;
}
.poster-hero .article-lead {
  font-size: var(--text-base);
  margin: 0 0 12px;
}
.poster-note {
  font-family: var(--font-hand);
  color: #8A8069;
  font-size: 1.05rem;
  transform: rotate(-2.5deg);
  transform-origin: left center;
  margin: 0 0 20px;
}
.poster-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.poster-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFD700;
  color: #1A1A1A;
  font-weight: 700;
  font-size: var(--text-lg);
  padding: 14px 36px;
  border-radius: 999px;
  border-bottom: 4px solid #D4B800;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.poster-cta-main:hover {
  background: #FFDA33;
  transform: scale(1.03);
  text-decoration: none;
}

.poster-cta-main:active {
  border-bottom-color: transparent;
  transform: translateY(3px) scale(1.03);
}
.poster-cta-sub {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* ビジュアル列（アプリ画面モック＋名前タグ） */
.poster-hero-visual {
  position: relative;
  padding: 20px 8px 26px;
}
.poster-mock {
  background: #FFFFFF;
  border: 1px solid #E5E0D2;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(120, 100, 40, 0.15);
  transform: rotate(2deg);
  padding: 14px 16px 18px;
}
.poster-mock-bar {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}
.poster-mock-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E8E2D2;
}
.poster-mock-title {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #5A5A5A;
  margin-bottom: 10px;
}
.poster-mock-result {
  display: block;
  width: fit-content;
  margin: 0 auto 12px;
  background: #DDF2E4;
  color: #2E6B47;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
}
.poster-mock-teams {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.poster-mock-team {
  border-radius: 10px;
  padding: 8px 6px;
}
.poster-mock-team--a { background: #FFF6D6; }
.poster-mock-team--b { background: #E7F6EC; }
.poster-mock-team--c { background: #FDEDF0; }
.poster-mock-team b {
  display: block;
  text-align: center;
  font-size: 11px;
  margin-bottom: 6px;
}
.poster-mock-team--a b { color: #A07C00; }
.poster-mock-team--b b { color: #2E6B47; }
.poster-mock-team--c b { color: #B04A5E; }
.poster-mock-team span {
  display: block;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #5A5A5A;
  text-align: center;
  padding: 3px 2px;
  margin-bottom: 4px;
}
.poster-mock-btn {
  display: block;
  width: 70%;
  margin: 12px auto 0;
  background: #FFD700;
  border-radius: 8px;
  border-bottom: 3px solid #D4B800;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #5A5A5A;
  padding: 8px 0;
}
/* ルーレットモック（教室指名ページ用。スタイルブロックは4ページで同一） */
.poster-wheel-pointer {
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto -6px;
  position: relative;
  z-index: 1;
  border-style: solid;
  border-width: 14px 9px 0 9px;
  border-color: #E5484D transparent transparent transparent;
}
.poster-wheel {
  position: relative;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: conic-gradient(#FF8A9B 0 72deg, #FFC24B 72deg 144deg, #FFE566 144deg 216deg, #7ED99A 216deg 288deg, #70B8FF 288deg 360deg);
  border: 5px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(120, 100, 40, 0.18);
}
.poster-wheel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.poster-tag {
  position: absolute;
  z-index: 1;
  background: #FFFDF6;
  border: 1px solid #EADFC8;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(120, 100, 40, 0.14);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #6E6852;
  padding: 5px 12px;
}
.poster-tag--1 { top: 0; left: -4px; transform: rotate(-8deg); }
.poster-tag--2 { top: 34px; right: -6px; transform: rotate(6deg); }
.poster-tag--3 { bottom: 4px; right: 16px; transform: rotate(-5deg); }
.poster-tag--4 { bottom: 96px; left: -12px; transform: rotate(4deg); }
.poster-badge {
  position: absolute;
  z-index: 1;
  left: -6px;
  bottom: -10px;
  font-family: var(--font-hand);
  background: #FFFDF6;
  border: 2px solid #2F2A1E;
  border-radius: 55% 45% 50% 50% / 55% 50% 50% 45%;
  transform: rotate(-4deg);
  padding: 12px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #2F2A1E;
  text-align: center;
  line-height: 1.55;
  box-shadow: 0 4px 10px rgba(120, 100, 40, 0.12);
}
/* ベネフィット3カード */
.poster-benefits {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
}
.poster-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 14px 16px;
}
.poster-benefit--yellow { background: #FFF6D6; }
.poster-benefit--green { background: #E7F6EC; }
.poster-benefit--pink { background: #FDEDF0; }
.poster-benefit svg { flex-shrink: 0; }
.poster-benefit b {
  display: block;
  font-size: var(--text-base);
  color: var(--color-text-primary);
  margin-bottom: 2px;
}
.poster-benefit p {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 860px) {
  .poster-hero {
    padding: 24px 20px;
  }
  .poster-hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .poster-hero-visual {
    max-width: 400px;
    margin: 0 auto;
    padding: 12px 4px 30px;
  }
  .poster-tag--2 { right: -2px; }
  .poster-tag--4 { left: -2px; }
  .poster-cta-main {
    justify-content: center;
    width: 100%;
  }
  .poster-benefits {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}


/* --- ポスター調 本文スタイル（Phase 6.5、4ページで同一） --- */
.article-content h2,
.related-articles h2,
.container > section h2 {
  border-left: none;
  padding-left: 0;
  font-weight: 900;
  font-size: 1.55rem;
  color: var(--color-text-primary);
}
.article-content h2::after,
.related-articles h2::after,
.container > section h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 6px;
  margin-top: 8px;
  border-radius: 3px;
  background: #FFE44D;
  transform: rotate(-1deg);
}
.article-content h3 { font-weight: 800; }
/* 縦のリズム: コンセプトの「余白」。content-base.css の見出しは margin-top を持たず、
   <section> にも余白が無いため、セクションと見出しの手前をここで空けて
   本文が「ギチギチ」に詰まらないようにする。 */
.article-content section + section { margin-top: 64px; }
.article-content h2 { margin-bottom: 20px; }
/* h3 の手前は空ける。ただしカードやボックス内の h3 に効かないようセクション直下に限定 */
.article-content section > h3 { margin-top: 32px; }
.article-content section > h2 + h3 { margin-top: 0; }
.article-content .problem-box + .solution-box { margin-top: 20px; }
@media (max-width: 767px) {
  .article-content section + section { margin-top: 48px; }
  .article-content section > h3 { margin-top: 28px; }
}
/* 悩み / 解決ボックス */
.problem-box {
  background: #FDEDF0;
  border: none;
  border-radius: 16px;
  padding: 24px;
}
.problem-box h3 { color: #B04A5E; }
.problem-box ul { list-style: none; padding-left: 4px; margin-bottom: 0; }
.problem-box li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.problem-box li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0;
  color: #E5484D;
  font-weight: 700;
}
.solution-box,
.benefit-card {
  background: #E7F6EC;
  border: none;
  border-radius: 16px;
  padding: 24px;
}
/* benefit-card は連続して並ぶ（classroom-name-picker）ため、カード間に余白を取る */
.benefit-card + .benefit-card { margin-top: 20px; }
.solution-box h3,
.benefit-card h3 { color: #2E6B47; }
.solution-box ul,
.benefit-card ul { list-style: none; padding-left: 4px; margin-bottom: 0; }
.solution-box li,
.benefit-card li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.solution-box li::before,
.benefit-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #2E6B47;
  font-weight: 700;
}
/* 情報ボックス */
.tip-box { background: #E7F6EC; border: none; border-radius: 12px; }
.point-box { background: #FFF6D6; border: none; border-radius: 12px; }
/* カード */
.method-card,
.scenario-card {
  background: #FFFFFF;
  border: 1px solid #F0E9D8;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  /* カード内余白。ポスター化前のインラインスタイルが持っていた padding が
     共通化時に失われ、中身が縁までギチギチに詰まっていたのを復元。 */
  padding: 24px 28px;
}
.method-card > :first-child,
.scenario-card > :first-child { margin-top: 0; }
.method-card > :last-child,
.scenario-card > :last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .method-card,
  .scenario-card { padding: 20px 18px; }
}
.feature-item {
  background: #FFFFFF;
  border: 1px solid #F0E9D8;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.feature-item .icon { background: #FFE44D; }
/* ステップリスト（ol型） */
.step-list {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 20px 0;
  list-style: none;
  counter-reset: poster-step;
}
.step-list li {
  counter-increment: poster-step;
  position: relative;
  padding: 3px 0 3px 44px;
  margin-bottom: 14px;
}
.step-list li::before {
  content: counter(poster-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFE44D;
  color: #6B5A00;
  border-radius: 50%;
  font-weight: 800;
  font-size: 15px;
}
/* デモコンテナ: ヒーローのモックと同じウィンドウ風カード */
.demo-container {
  background: #FFFFFF;
  border: 1px solid #E5E0D2;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(120, 100, 40, 0.12);
  padding: 18px 20px 24px;
}
.demo-container::before {
  content: "";
  display: block;
  width: 42px;
  height: 8px;
  margin-bottom: 14px;
  background-image: radial-gradient(circle, #E8E2D2 4px, transparent 4.5px);
  background-size: 14px 8px;
  background-repeat: repeat-x;
}
/* ゴールドピルボタン（本文内リンクボタン） */
.try-button {
  background: #FFD700;
  color: #1A1A1A;
  border-radius: 999px;
  border-bottom: 3px solid #D4B800;
  font-weight: 700;
  padding: 12px 30px;
}
.try-button:hover {
  background: #FFDA33;
  transform: scale(1.03);
  box-shadow: none;
  text-decoration: none;
}
/* CTA帯: ゴールドパネル */
.cta-band {
  position: relative;
  overflow: hidden;
  background: #FFD700;
  border: none;
  border-radius: 20px;
  padding: 44px 32px;
  box-shadow: none;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -12px;
  top: -12px;
  width: 170px;
  height: 110px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.55) 3px, transparent 3.5px);
  background-size: 20px 20px;
  pointer-events: none;
}
.cta-band h2 {
  position: relative;
  font-weight: 900;
  color: #1A1A1A;
}
.cta-band .btn-group { position: relative; }
.cta-band .btn-primary {
  background: #FFFFFF;
  color: #1A1A1A;
  border-radius: 999px;
  padding: 14px 36px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(120, 100, 40, 0.25);
}
.cta-band .btn-primary:hover {
  background: #FFF7DA;
  color: #1A1A1A;
  transform: translateY(-1px);
}
/* 関連記事カード */
.related-card {
  border: 1px solid #F0E9D8;
  border-radius: 14px;
}
.related-card-icon { background: #FFE44D; }
/* FAQ */
.faq-item {
  border: 1px solid #F0E9D8;
  border-radius: 12px;
}
.faq-question::before { background: #FFE44D; color: #6B5A00; }

/* === 言語差分（英語ページ: 手書きフォントを Caveat に） === */
html[lang="en"] .poster-hero {
  --font-hand: "Caveat", "Comic Sans MS", cursive;
}
html[lang="en"] .poster-note {
  font-size: 1.3rem;
}
html[lang="en"] .poster-badge {
  font-size: 1.1rem;
  line-height: 1.35;
}

/* === Phase 7.5: 記事型ヒーローのポスター調アップグレード === */
.article-header {
  position: relative;
  overflow: hidden;
  padding: 40px 36px;
}
.article-header > * {
  position: relative;
}
.article-header::after {
  content: "";
  position: absolute;
  right: -14px;
  top: -14px;
  width: 170px;
  height: 110px;
  background-image: radial-gradient(circle, #F2D64B 3px, transparent 3.5px);
  background-size: 22px 22px;
  opacity: 0.4;
  pointer-events: none;
}
.poster-hero::after {
  content: none; /* ポスター型ヒーローは既存の左下ドットのみ */
}
.article-header h1:not(.poster-h1) {
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.4;
  text-wrap: balance;
}
.article-header h1:not(.poster-h1)::after {
  content: "";
  display: block;
  width: 72px;
  height: 8px;
  margin-top: 14px;
  border-radius: 4px;
  background: #FFE44D;
  transform: rotate(-1deg);
}

/* === Phase 7.5: LP型ヒーロー（about）のポスター調化 === */
.hero {
  position: relative;
  overflow: hidden;
  width: min(1008px, calc(100% - 32px));
  margin: 24px auto var(--space-section);
  background: #FDFAF2;
  border: 1px solid #F0E9D8;
  border-bottom: 3px solid var(--color-gold);
  border-radius: 20px;
  padding: 56px 24px;
}
.hero::before {
  content: "";
  position: absolute;
  left: -14px;
  bottom: -14px;
  width: 190px;
  height: 120px;
  background-image: radial-gradient(circle, #F2D64B 3px, transparent 3.5px);
  background-size: 22px 22px;
  opacity: 0.45;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -14px;
  top: -14px;
  width: 170px;
  height: 110px;
  background-image: radial-gradient(circle, #F2D64B 3px, transparent 3.5px);
  background-size: 22px 22px;
  opacity: 0.4;
  pointer-events: none;
}
.hero > .container {
  position: relative;
}
.hero .poster-eyebrow {
  margin-bottom: 18px;
}
.hero-headline {
  font-weight: 900;
  text-wrap: balance;
}
.hero-headline .highlight {
  color: inherit;
  background: linear-gradient(transparent 62%, #FFE44D 62%, #FFE44D 94%, transparent 94%);
}
.hero-points {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: none;
}
.hero-point {
  background: #E7F6EC;
  color: #2E6B47;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
}
.hero-point .check {
  color: #2E6B47;
}

/* === Phase 8: TOPページで確立した部品の移植（POSTER_DESIGN_SYSTEM.md 7章） === */

/* ゴールド面上の白マーカー（CTA帯の「あの瞬間」用） */
.poster-marker--white {
  background: linear-gradient(transparent 62%, rgba(255, 255, 255, 0.7) 62%, rgba(255, 255, 255, 0.7) 94%, transparent 94%);
}

/* ステップボックス＝付箋（7.2）: パステル3色・微回転・テープ */
.step-box {
  position: relative;
  border: none;
  border-radius: 6px;
  background: #FFF6D6;
  box-shadow: 0 6px 14px rgba(120, 100, 40, 0.1);
  transform: rotate(-1deg);
  margin-top: 14px;
}

.step-box:nth-of-type(3n + 2) {
  background: #E7F6EC;
  transform: rotate(0.8deg);
}

.step-box:nth-of-type(3n) {
  background: #FDEDF0;
  transform: rotate(-0.6deg);
}

.step-box::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  width: 64px;
  height: 18px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 2px;
}

.step-number {
  background: #FFFFFF;
  color: #6B5A00;
  box-shadow: 0 1px 3px rgba(120, 100, 40, 0.15);
}

/* 関連記事カード＝テープ付きチケット（7.1） */
.related-articles .card-grid {
  row-gap: 26px;
  padding-top: 10px;
}

.related-card {
  position: relative;
  transform: rotate(-0.7deg);
}

.related-card:nth-child(even) {
  transform: rotate(0.7deg);
}

.related-card:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: var(--shadow-md);
}

.related-card::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  width: 56px;
  height: 16px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 214, 77, 0.45);
  border-radius: 2px;
}

.related-card:nth-child(3n + 2)::before {
  background: rgba(126, 217, 154, 0.4);
}

.related-card:nth-child(3n)::before {
  background: rgba(255, 138, 155, 0.35);
}

/* 本文の strong は 600 まで（タイポグラフィのメリハリ） */
.article-content p strong,
.article-lead strong {
  font-weight: 600;
}

/* 大見出し（ストローク型 h1/h2）はポスターの「声」として黒 */
.article-header h1:not(.poster-h1),
.article-content h2,
.related-articles h2,
.container > section h2 {
  color: #1A1A1A;
}

/* CTA帯の見出し: セクション見出しの型（縮小・ストローク・黒）を適用せず、ゴールド帯用に上書き
   （.container > section h2 の詳細度(0,1,2)に勝つよう section.cta-band で指定） */
.container > section.cta-band h2 {
  color: #1A1A1A;
  font-size: 1.75rem;
}

.container > section.cta-band h2::after {
  content: none;
}
