@charset "Shift_JIS";
/* 追加 */
.four-for-ehime * {
  box-sizing: border-box;
}
h3 {border-bottom: none;}
h3::after {border-bottom: none;}
@media screen and (min-width: 641px) {
  nav .breadcrumbs {
    width: 1080px;
    padding-right: 24px;
    padding-left: 24px;
  }
}
/* 追加 */

.ev-header { list-style-type: none;width:100%;margin:0px auto 3% auto;padding:20px 7%;text-align:center;box-sizing:border-box; }
.local_hd { display:none; }
.video-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 32px;
}

.video-wrap video {
  display: block;
  width: 100%;
  height: auto;
}
#main .section-channels {
  margin-top: 60px;
}
/* --------------------------------------------------------------------------
   カスタムプロパティ（デザイン設定・カラー・背景）
   -------------------------------------------------------------------------- */
:root {
  /* ブランドカラー */
  --color-primary: #ef8200;      /* えひめオレンジ */
  --color-primary-dark: #d97300;
  --color-secondary-blue: #0080cb;
  --color-secondary-green: #00a34f;
  --color-secondary-red: #e50012;

  /* テキストカラー */
  --color-text-main: #2d3748;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-heading: #1e293b;

  /* 背景設定（上品で清潔感のある背景）
     ※背景画像（和紙テクスチャ等）に変更したい場合は、
       下記 --bg-site のコメントアウトを切り替えることで簡単に変更できます。
  --bg-site: linear-gradient(180deg, #ffffff 0%, #f7f9fa 300px, #f2f5f8 100%); */
  /* 画像背景にしたい場合: */
     --bg-site: url('img/back01.jpg') repeat center / 100%, #f7f9fa;

  /* セクション背景 */
  --bg-card: #ffffff;
  /* --bg-banner-section: #eaf4fb; */
  --bg-banner-section: #ffeeee;
  --border-subtle: rgba(0, 0, 0, 0.07);
  /* --border-card: #e2e8f0; */
  --border-card: #FFD5D5;

  /* 局カラー */
  --color-rnb: #0080cb;
  --color-eat: #e85a00;
  --color-itv: #0098d8;
  --color-ebc: #e50012;

  /* フォント */
  --font-family-base: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;

  /* シャドウ・トランジション */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition-normal: all 0.25s ease;
}

/* --------------------------------------------------------------------------
   リセット & ベーススタイル
   -------------------------------------------------------------------------- */

body {
  background: var(--bg-site);
  background-attachment: fixed;
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: 0.02em;
}

/* custom */
.four-for-ehime {
  font-family: var(--font-family-base);
  color: var(--color-text-main);  
}
/* custom */

body.modal-open {
  overflow: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-normal);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

/* --------------------------------------------------------------------------
   レイアウトコンテナ
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-main {
  flex: 1 0 auto;
}

/* --------------------------------------------------------------------------
   セクション共通タイトル
   -------------------------------------------------------------------------- */
.section-title {
  text-align: center;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   ヘッダー / タイトルロゴ
   -------------------------------------------------------------------------- */
.site-header {
  padding-top: 50px;
  padding-bottom: 60px;
  text-align: center;
}

.title-logo-wrapper {
  max-width: 1000px;
  margin: 5% auto 6%;
  padding: 0 16px;
  transition: transform 0.3s ease;
}

.title-logo-wrapper:hover {
  transform: scale(1.01);
}

.title-logo-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.06));
}

/* タイトル下の4局合同バナーストリップ（リンクなし、合同感の演出） */
.collab-banner-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

.collab-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  padding: 4px 16px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.collab-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-primary);
  display: inline-block;
}

.collab-banners {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.collab-banner-item {
  width: 240px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.collab-banner-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  /* border-color: #93c5fd; */
  border-color: #FFA2A2;
}

.collab-banner-item:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.collab-banner-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   プロジェクトについて（概要セクション）
   -------------------------------------------------------------------------- */
.section-about {
  padding: 30px 0 50px;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 36px 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.about-text {
  font-size: 1.10rem;
  line-height: 2.0;
  color: #334155;
  margin-bottom: 12px;
}

.about-text:last-child {
  margin-bottom: 0;
}

.about-highlight {
  font-weight: 700;
  color: var(--color-heading);
  margin-top: 16px;
  font-size: 1.25rem;
}

.info-text {
  font-size: 1.10rem;
  line-height: 2.0;
  color: #334155;
  margin-bottom: 12px;
  text-align: left;
}



/* --------------------------------------------------------------------------
   番組一覧（YouTube動画一覧）
   -------------------------------------------------------------------------- */
.section-programs {
  padding: 40px 0 70px;
}

/* 1つ目の動画：フィーチャー動画（大きく表示） */
.featured-video-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-card);
  margin-bottom: 40px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.featured-video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.featured-video-inner {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  align-items: center;
}

.video-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a202c;
  overflow: hidden;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-video-card:hover .video-thumb,
.program-card:hover .video-thumb {
  transform: scale(1.05);
}

/* 再生ボタンオーバーレイ */
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.25);
  transition: background 0.3s ease;
}

.featured-video-card:hover .play-overlay,
.program-card:hover .play-overlay {
  background: rgba(15, 23, 42, 0.0);
}

.play-button-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.92);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}

.play-button-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  margin-left: 3px; /* 三角形の視覚的中心補正 */
}

.featured-video-card:hover .play-button-icon,
.program-card:hover .play-button-icon {
  transform: scale(1.15);
  background: #dc2626;
}

.featured-video-info {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge-featured {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef8200 0%, #e50012 100%);
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(239, 130, 0, 0.25);
}

.featured-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.5;
  margin-bottom: 14px;
}

.featured-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.featured-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.featured-video-card:hover .featured-cta svg {
  transform: translateX(4px);
}

/* 2つ目?6つ目の動画グリッド（3列表示） */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.program-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.program-card .play-button-icon {
  width: 52px;
  height: 52px;
}

.program-card .play-button-icon svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

.program-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.channel-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  background: #f1f5f9;
  color: #475569;
}

/* 制作局別のタグラベル色合い */
.tag-rnb { background: #e0f2fe; color: #0284c7; }
.tag-eat { background: #ffedd5; color: #ea580c; }
.tag-itv { background: #e0f7fa; color: #00838f; }
.tag-ebc { background: #fee2e2; color: #dc2626; }
.tag-collab { background: #fef3c7; color: #d97706; }

.program-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   各局リンクバナーセクション（フッター上部・薄青背景）
   -------------------------------------------------------------------------- */
.section-channels {
  background: var(--bg-banner-section);
  border-top: 1px solid rgba(0, 128, 203, 0.1);
  border-bottom: 1px solid rgba(0, 128, 203, 0.1);
  padding: 50px 0 80px 0;
}

.section-channels-info {
  text-align: center;
  font-size: 1.1rem;
  margin: 10px auto 25px auto;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: center;
}

.channel-link-card {
  display: block;
  background: #ffffff;
  /* border: 1px solid #bfdbfe; */
  border: 1px solid #FFD5D5;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-shadow: 0 2px 6px rgba(0, 80, 160, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.channel-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 80, 160, 0.14);
  /* border-color: #60a5fa; */
  border-color: #FFA2A2;
}

.channel-link-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   YouTube再生モーダルウィンドウ
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: 100%;
  max-width: 1200px;
  background: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-active .modal-dialog {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.modal-title {
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 16px;
}

.modal-close-btn {
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: #ffffff;
  background: #334155;
}

.modal-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.modal-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --------------------------------------------------------------------------
   レスポンシブ対応（タブレット & スマートフォン）
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .featured-video-inner {
    grid-template-columns: 1fr;
  }

  .featured-video-info {
    padding: 24px 24px 28px;
  }

  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .channels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 36px;
    padding-bottom: 20px;
  }

  .title-logo-wrapper {
    max-width: 380px;
    margin-bottom: 20px;
  }

  .collab-banner-strip {
    margin-top: 4px;
  }

  .collab-banners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 280px;
    gap: 8px;
  }

  .collab-banner-item {
    width: 100%;
    padding: 4px 6px;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
  }

  .about-content {
    padding: 24px 20px;
  }

  .about-text {
    font-size: 0.92rem;
    line-height: 1.85;
  }

  .about-highlight {
    font-size: 0.98rem;
  }

  .featured-video-card {
    margin-bottom: 28px;
  }

  .featured-video-info {
    padding: 20px 18px;
  }

  .featured-title {
    font-size: 1.15rem;
  }

  .programs-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .channels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .channel-link-card {
    padding: 8px 10px;
  }
}

@media (max-width: 400px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .collab-banners {
    max-width: 250px;
  }
}
