/**
 * FM放送局 トピックスページ用スタイル v3
 * プレフィックス: tp- (topics page)
 * 
 * デザイン方針:
 *   - サイト全体のデザイントークン（design-tokens.css）と統一
 *   - FMラジオ局コーポレイトサイトに相応しい落ち着いた配色
 *   - ボタン類は /programs/ の .program-link スタイルに準拠
 *
 * 単位ルール:
 *   - font-size / margin / gap / width（レイアウト系）→ rem
 *   - padding / letter-spacing / アイコン相対サイズ  → em（要素内比例）
 *   - line-height                                    → 単位なし
 */

/* =========================================
   カスタムプロパティ（カラーパレット）
   ========================================= */
:root {
  /* メインカラー ─ サイトのプライマリ系に統一 */
  --topic-main: var(--primary-main, #4785FF);
  --topic-dark: var(--primary-dark, #4285FF);
  --topic-light: #eef4ff;
  --topic-light-fade: rgba(71, 133, 255, 0.04);
  --topic-accent-blue: #2563eb;
  --topic-note: #dc2626;

  /* セカンダリ（アクセント補助） */
  --topic-secondary: var(--secondary-main, #6B8BFF);
  --topic-secondary-dark: var(--secondary-dark, #5471D1);

  /* ボタン用 ─ サイトのプライマリカラーに準拠 */
  --topic-btn-primary: var(--primary-main, #4785FF);
  --topic-btn-primary-hover: var(--primary-dark, #4285FF);
  --topic-btn-secondary: var(--secondary-main, #6B8BFF);
  --topic-btn-secondary-hover: var(--secondary-dark, #5471D1);
}

/* =========================================
   ルート
   ========================================= */
.tp-root {
  max-width: 100%;
  box-sizing: border-box;
}

/* =========================================
   ページタイトル（h2）
   ========================================= */
.tp-root h2,
h2.title {
  all: unset;
  display: block;
  box-sizing: border-box;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-fg, #111);
  padding: 0.5em 0 0.6em;
  margin: 0 0 1.5rem;
  border-bottom: solid 3px var(--topic-light, #eef4ff);
  position: relative;
}

.tp-root h2::after,
h2.title::after {
  position: absolute;
  content: "";
  display: block;
  border-bottom: solid 3px var(--topic-main);
  bottom: -3px;
  left: 0;
  width: 20%;
}

/* =========================================
   リード画像
   ========================================= */
.tp-lead-img {
  text-align: center;
  margin: 0 0 1.5rem;
}

.tp-lead-img img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  vertical-align: middle;
  border-radius: var(--radius-md, 0.75rem);
}

/* =========================================
   リード文・概要
   ========================================= */
.tp-lead {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--color-fg, #111);
}

/* =========================================
   放送・日時・出演などの情報ブロック
   ========================================= */
.tp-info {
  margin-bottom: 1.75rem;
  background: #f8fafc;
  border: 1px solid var(--color-border, #e5e7eb);
  border-left: 3px solid var(--topic-main);
  border-radius: var(--radius-md, 0.75rem);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.tp-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.tp-info-table tr {
  border-bottom: 1px solid #f0f0f0;
}

.tp-info-table tr:last-child {
  border-bottom: none;
}

.tp-info-table td {
  padding: 0.75em 1em;           /* em: セル内テキストに比例 */
  vertical-align: top;
}

.tp-info-label {
  white-space: nowrap;
  width: 1%;
  min-width: 5.5rem;
  color: var(--color-muted, #6b7280);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;        /* em: 微小値は文字比例 */
  background: rgba(248, 250, 252, 0.8);
  border-right: 1px solid #e5e7eb;
}

.tp-info-value {
  font-weight: 600;
  color: var(--color-fg, #111);
  line-height: 1.6;
  background-color: var(--white);
}

.tp-info-value strong {
  font-weight: 700;
}

/* 定義リスト形式の情報ブロック */
.tp-info-dl {
  margin: 0 0 1.5rem;
}

.tp-info-dl dt {
  float: left;
  clear: left;
  width: 5rem;
  margin: 0 0.5rem 0.25rem 0;
  color: var(--color-muted, #6b7280);
}

.tp-info-dl dd {
  margin: 0 0 0.25rem;
  overflow: hidden;
}

/* =========================================
   出演者・パーソナリティ一覧
   ========================================= */
.tp-cast-list {
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  clear: both;
}

.tp-cast-item {
  text-align: center;
  width: 200px;
}

.tp-cast-img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: 200px;
  object-fit: cover;
  margin: 0 auto 0.5rem;
  border-radius: var(--radius-md, 0.75rem);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tp-cast-name {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--color-fg, #111);
  font-weight: 500;
}

/* 情報ブロック内の画像（司会者など） */
.tp-info .tp-cast-img {
  max-width: 150px;
  height: 200px;
  object-fit: cover;
}

/* =========================================
   セクション見出し（h3）
   ========================================= */
.tp-section {
  margin: 2.5rem 0 1.5rem;
}

.tp-section:first-of-type {
  margin-top: 2rem;
}

/* article内のh3：他CSSの継承をリセット */
.tp-root h3 {
  all: unset;
  display: block;
  box-sizing: border-box;
}

.tp-root h3.tp-section-title {
  margin: 0 0 1.25rem;
  padding: 0.75em 0 0.75em 1em; /* em: 見出しサイズに比例 */
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.6;
  color: var(--color-fg, #111);
  letter-spacing: 0.02em;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.tp-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--topic-main);
  border-radius: 2px;
}

.tp-section-title i {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
  margin-right: 0.5em;           /* em: アイコン文字比例 */
  color: var(--topic-main);
  font-size: 1.2em;              /* em: 見出しサイズに比例 */
}

/* =========================================
   本文ブロック
   ========================================= */
.tp-body {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--color-fg, #111);
}

.tp-body p {
  margin: 0 0 0.75rem;
}

.tp-body p:last-child {
  margin-bottom: 0;
}

/* フッター風デザイン（主催・後援など） */
.tp-body.tp-footer {
  margin-top: 2.5rem;
  margin-bottom: 0;
  padding: 1.25em 1.5em;         /* em: 内部テキストに比例 */
  background: #f1f5f9;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 0.75rem);
}

.tp-body.tp-footer p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--color-muted, #6b7280);
}

/* =========================================
   CTAボタン（メッセージ・応募リンク）
   ─ /programs/ の .program-link スタイルに準拠
   ========================================= */
.tp-cta-btn {
  margin: 1.75rem auto;
  width: 50%;
  max-width: 100%;
}

.tp-cta-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;                    /* em: ボタン内比例 */
  width: 100%;
  padding: 0.75em 1.5em;         /* em: ボタン内比例 */
  background-color: var(--topic-btn-primary);
  color: #fff !important;
  text-decoration: none;
  border-radius: var(--radius-sm, 0.375rem);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Font Awesome メッセージアイコンを ::before で付加 */
.tp-cta-btn a::before {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
  font-weight: 500;
  content: "\f658"; /* fa-envelope-open-text */
  font-size: 1.1em;              /* em: ボタン文字に比例 */
  flex-shrink: 0;
}

.tp-cta-btn a:hover {
  background-color: var(--topic-btn-primary-hover);
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.tp-cta-btn a img {
  vertical-align: middle;
  margin-right: 0.25em;          /* em: ボタン内比例 */
  height: 1.2em;                 /* em: ボタン文字に比例 */
  width: auto;
}

/* =========================================
   注釈・注意書き
   ========================================= */
.tp-notes {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0.5rem 0 1rem;
}

.tp-notes-small {
  font-size: 0.8rem;
  color: #64748b;
}

/* =========================================
   引用・住所など
   ========================================= */
.tp-blockquote {
  margin: 1rem 0;
  padding: 0.75em 1.25em;        /* em: 引用テキストに比例 */
  border-left: 4px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 0 var(--radius-sm, 0.375rem) var(--radius-sm, 0.375rem) 0;
}

/* =========================================
   ダウンロードリンク（ボタンデザイン）
   ─ /programs/ の .program-link スタイルに準拠
   ========================================= */
.tp-download {
  margin: 1.25rem 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55em 1.2em;         /* em: ボタン内比例 */
  background-color: var(--topic-btn-secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm, 0.375rem);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  line-height: 1.3;
  cursor: pointer;
}

.tp-download:hover {
  background-color: var(--topic-btn-secondary-hover);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.tp-download a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.tp-download i {
  margin-left: 0.5em;            /* em: アイコン文字比例 */
  font-size: 0.9em;              /* em: ボタン文字に比例 */
  line-height: 1;
  vertical-align: middle;
  flex-shrink: 0;
}

/* 色バリエーション */
.tp-download.tp-download-success {
  background-color: #059669;
}

.tp-download.tp-download-success:hover {
  background-color: #047857;
}

.tp-download.tp-download-info {
  background-color: var(--topic-btn-primary);
}

.tp-download.tp-download-info:hover {
  background-color: var(--topic-btn-primary-hover);
}

.tp-notice-section {
  background: #fdf7e1;
  border: 2px solid #ffc107;
  border-radius: 10px;
  padding: 30px;
  margin: 40px 0;
  font-size: 0.8em;
}

.tp-notice-section h3 {
  color: #856404;
  font-size: 1.5em;
  margin-bottom: 20px;
  border-bottom: 2px solid #ffc107;
  padding-bottom: 10px;
}

.tp-notice-section ul {
  list-style: none;
  padding-left: 0;
}

.tp-notice-section li {
  padding: 10px 0;
  padding-left: 25px;
  position: relative;
}

.tp-notice-section li:before {
  content: "▶";
  position: absolute;
  left: 0;
  color: #ffc107;
}
/* =========================================
   区切り線
   ========================================= */
.tp-divider {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid #e2e8f0;
}

/* =========================================
   ハイライト文（抽選招待など）
   ========================================= */
.tp-highlight {
  color: var(--topic-note);
  font-weight: bold;
  margin: 0.5rem 0;
}

.tp-highlight-blue {
  color: var(--topic-accent-blue);
}

/* =========================================
   画像（本文中）
   ========================================= */
.tp-fig {
  text-align: center;
  margin: 1.5rem 0;
}

.tp-fig img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-sm, 0.375rem);
}

/* =========================================
   SNSシェアリンク
   ========================================= */
.entry-sns-share {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.entry-sns-share-label {
  font-size: 0.875rem;
  color: var(--color-muted, #6b7280);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.sns-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm, 0.375rem);
  text-decoration: none;
  font-size: 1.1rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.sns-share-link:hover {
  transform: translateY(-1px);
}

.sns-share-x {
  background-color: #0f1419;
  color: #fff;
}

.sns-share-x:hover {
  background-color: #1d9bf0;
  color: #fff;
}

.sns-share-line {
  background-color: #06c755;
  color: #fff;
}

.sns-share-line:hover {
  background-color: #04a847;
  color: #fff;
}

/* =========================================
   レスポンシブ対応
   ========================================= */
@media (max-width: 640px) {
  .tp-cast-list {
    gap: 1rem;
    justify-content: center;
  }

  .tp-cast-item {
    width: calc(50% - 0.5rem);
    min-width: 120px;
  }

  .tp-cast-img {
    height: 150px;
    max-width: 100%;
  }

  .tp-cta-btn {
    width: 90%;
  }

  .tp-info-table td {
    padding: 0.6em 0.75em;       /* em: セル内比例（維持） */
  }

  .tp-info-label {
    font-size: 0.8rem;
    min-width: 4.5rem;
  }

  .tp-info-value {
    font-size: 0.9rem;
  }

  .tp-root h3.tp-section-title {
    font-size: 1.1rem;
    padding: 0.6em 0 0.6em 0.85em; /* em: 見出し比例（維持） */
  }
}


/* =========================================
   コンサートページ
   ========================================= */

:root {
  --concert-primary-color: #e60012; /* ページカラー */
}

.concert-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* 特別受付セクション */
.concert-special-notice {
  background-color: var(--concert-primary-color);
  color: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(230, 0, 18, 0.2);
}
.concert-special-notice h2 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
}
.concert-special-notice p {
  margin: 5px 0;
  font-weight: bold;
  font-size: 1.1rem;
}

/* ツアータイトル */
.concert-tour-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}
.concert-tour-header-img {
  text-align: center;
  flex-shrink: 0;
}
.concert-tour-header-img img {
  max-width: 400px;
  max-height: 400px;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.concert-tour-header-text {
  text-align: center;
}
.concert-artist-name {
  font-size: 2rem;
  color: var(--concert-primary-color);
  font-weight: bold;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 10px;
}
.concert-tour-title {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.4;
}

/* タブレット以上: 横並び 3:7 */
@media (min-width: 768px) {
  .concert-tour-header {
      flex-direction: row;
      align-items: center;
  }
  .concert-tour-header-img {
      flex: 0 0 30%;
      max-width: 30%;
  }
  .concert-tour-header-text {
      flex: 0 0 70%;
      max-width: 70%;
      text-align: left;
  }
}

/* メイン情報カード */
.concert-info-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}
.concert-info-row {
  display: flex;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}
.concert-info-row:last-child { border-bottom: none; }
.concert-info-label {
  width: 120px;
  font-weight: bold;
  color: #666;
  font-size: 0.9rem;
}
.concert-info-value {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 500;
}
.concert-date-text {
  font-size: 1.5rem;
  color: var(--concert-primary-color);
  font-weight: bold;
}

/* チケットボタン */
.concert-ticket-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
  white-space: nowrap;
}
.concert-btn {
  display: block;
  text-align: center;
  padding: 12px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  color: #222;
  font-weight: bold;
  transition: all 0.3s;
}
.concert-btn:hover {
  border-color: var(--concert-primary-color);
  color: var(--concert-primary-color);
  background: #fff1f1;
}

/* 注意事項・学割 */
.concert-details-section {
  background: #f0f0f0;
  border-radius: 12px;
  padding: 25px;
  font-size: 0.9rem;
}
.concert-details-section h3 {
  margin-top: 0;
  border-left: 4px solid var(--concert-primary-color);
  padding-left: 10px;
  font-size: 1.1rem;
}
.concert-gakuwari-box {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border: 1px dashed var(--concert-primary-color);
  margin-top: 15px;
}
.concert-gakuwari-title {
  color: var(--concert-primary-color);
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

/* 問い合わせ */
.concert-contact-info {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  border-top: 1px solid #ddd;
  color: #666;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .concert-info-row { flex-direction: column; }
  .concert-info-label { margin-bottom: 5px; }
  .concert-tour-title { font-size: 1.4rem; }
}

/* =========================================
   ダークモード対応（design-tokens連動）
   ========================================= */
@media (prefers-color-scheme: dark) {
  :root {
    --topic-light: #1e293b;
    --topic-light-fade: rgba(71, 133, 255, 0.08);
  }
}
