@charset "utf-8";

:root {
  /* メインカラー（朱色）とサブカラー（紺色、グレー）の定義 */
  --main-red: #e64d10ff;
  --sub-navy: #1A2B4C;
  --bg-gray: #e5d9c8ff;
  --text-gray: #333333;
  --border-brown:#69452bff;
}

*, *:before, *:after {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth; /* スムーススクロールを追加 */
}

/* --- ここから追加・変更 --- */
body {
  margin: 0; 
  padding: 0;
  border: 10px solid var(--main-red);
  box-sizing: border-box;
  overflow-x: hidden; /* ← これを必ず追加してください（横スクロール防止） */
}
/* --- ここまで --- */


.kuraber {
  /* フォントを明朝体に変更 */
  font-family: 'Noto Serif JP', serif;
  color: var(--text-gray);
  line-height: 1.8;
  margin: 0;
  padding: 0;
}

img {
  width: 100%;
  display: inline-block;
  vertical-align: bottom;
}

a {
  color: var(--main-red);
}

a:hover, a:active {
  text-decoration: none;
}

section {
  margin: 0 auto;
  padding: 40px 0;
}
@media (max-width: 768px) {
  section { padding: 30px max(20px, 3vw); }
}



/* -------------------------------------
  右側固定ナビゲーション (PC用)
------------------------------------- */
.nav-toggle {
  display: none; /* PCでは非表示 */
}
.side-nav {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 999;
  background-color: var(--main-red);
  border-radius: 10px 0 0 10px;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
}
.side-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}
.side-nav li {
  margin: 0;
}
.side-nav a {
  display: block;
  padding: 15px 25px;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}
.side-nav a:hover {
  color: var(--text-gray);
}

/* -------------------------------------
  ハンバーガーメニュー (スマホ用)
------------------------------------- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    position: fixed;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background-color: var(--main-red);
    border-radius: 5px;
    z-index: 1000;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }
  .nav-toggle span {
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: #fff;
    left: 10px;
    transition: all 0.3s ease-in-out;
  }
  .nav-toggle span:nth-child(1) { top: 14px; }
  .nav-toggle span:nth-child(2) { top: 24px; }
  .nav-toggle span:nth-child(3) { top: 34px; }
  
  /* ×に変化 */
  .nav-toggle.is-active span:nth-child(1) {
    top: 24px;
    transform: rotate(45deg);
  }
  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-active span:nth-child(3) {
    top: 24px;
    transform: rotate(-45deg);
  }

  .side-nav {
    top: 0;
    right: -100%; /* 初期は画面外 */
    transform: translateY(0);
    width: 250px;
    height: 100vh;
    border-radius: 0;
    transition: all 0.3s ease-in-out;
    padding-top: 80px;
  }
  .side-nav.is-active {
    right: 0;
  }
  .side-nav ul {
    padding: 0;
  }
  .side-nav a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}


/* -------------------------------------
  トップ画像スライダー (6枚フェード)
------------------------------------- */

header#top {
  position: relative; /* ロゴの絶対配置の基準にするため追加 */
}

/* スライダー中央のロゴ設定 */
.center-logo {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10; /* スライド画像（z-index: 1〜2）より前面に出す */
  width: 80%;
  max-width: 620px; /* ロゴの最大サイズ（お好みで調整してください） */
  display: block;
}

.slider {
  width: 100%;
  height: 80vh;
  position: relative;
  overflow: hidden;
  background-color: var(--sub-navy);
}
@media (max-width: 768px) {
  .slider { height: 40vh; }
  
  /* スマホ表示時のロゴサイズ調整 */
  .center-logo {
    width: 90%;
  }
}
.slider div {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  /* 全体30秒(1枚5秒)で無限ループ */
  animation: slideFade 30s infinite;
}
/* 各画像のパスを指定（ファイル名は適宜合わせてください） */
.slider .slide-img1 { background-image: url('image/slide/slide_01.jpg'); animation-delay: 0s; }
.slider .slide-img2 { background-image: url('image/slide/slide_02.jpg'); animation-delay: 5s; }
.slider .slide-img3 { background-image: url('image/slide/slide_03.jpg'); animation-delay: 10s; }
.slider .slide-img4 { background-image: url('image/slide/slide_04.jpg'); animation-delay: 15s; }
.slider .slide-img5 { background-image: url('image/slide/slide_05.jpg'); animation-delay: 20s; }
.slider .slide-img6 { background-image: url('image/slide/slide_06.jpg'); animation-delay: 25s; }

@keyframes slideFade {
  0%   { opacity: 0; transform: scale(1.1); z-index: 1;}
  5%   { opacity: 1; z-index: 2; }
  16%  { opacity: 1; transform: scale(1.05); z-index: 2;}
  21%  { opacity: 0; transform: scale(1); z-index: 1;}
  100% { opacity: 0; z-index: 0;}
}

/* -------------------------------------
  放送日時 (横並び)
------------------------------------- */
.broadcast-time-sec {
  background-color: var(--main-red);
  padding: 30px 0;
}
.broadcast-time {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}
.time-box {
  flex: 1;
  background:#fff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.time-box .station {
  display: block;
  font-weight: 700;
  color: var(--main-red);
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.time-box .date {
  display: block;
  font-weight: 900;
  color: var(--sub-navy);
  font-size: clamp(1rem, 1.2vw + 0.8rem, 1.4rem);
}
@media (max-width: 768px) {
  .broadcast-time {
    flex-direction: column;
  }
}

/* --- MBC（鹿児島）の背景画像 --- */
.time-box.mbc-box {
  background-image: url('image/bg_onair_kagoshima.jpg');
  background-size: cover; /* ボックス全体に画像を敷き詰める */
  background-position: center; /* 画像の中央を表示 */
  background-repeat: no-repeat;
}

/* --- TYS（山口）の背景画像 --- */
.time-box.tys-box {
  background-image: url('image/bg_onair_yamaguchi.jpg');
  background-size: cover; /* ボックス全体に画像を敷き詰める */
  background-position: center; /* 画像の中央を表示 */
  background-repeat: no-repeat;
}


/* -------------------------------------
  TVer 
------------------------------------- */
.tverinfo {
  padding: 2em 1em;
  text-align: center;
  border-top: solid 1px var(--bg-gray);
  border-bottom: solid 1px var(--bg-gray);
  background-color: #fff;
}
.tverinfo img { max-width: 260px; }
.tverinfo p {
  margin-top: 15px;
  margin-bottom: 0;
  font-size: clamp(1rem, 1vw + 1rem, 1.2rem);
  font-weight: 700;
  color: var(--main-red);
}




/* --- 番組概要と出演者の共通背景画像 --- */
.info, .cast {
  background-image: url('image/bg_main.jpg');
  background-size: cover; /* 画像をセクション全体に敷き詰める */
  background-position: center; /* 画像の中央を表示する */
  background-attachment: scroll; /* スクロールに合わせて画像を動かす（必要に応じてfixedに変更） */
    background-color: var(--bg-gray); 
}


/* -------------------------------------
  番組概要
------------------------------------- */
.info {
  padding: 3em 2em;
  text-align: center;
}
.info h3 {
  font-weight: 900;
  width: fit-content;
  margin: 0 auto 1em auto;
  padding: 0.5em 1em;
  color: var(--sub-navy);
  font-size: clamp(1.25rem, 1vw + 1rem, 1.875rem);
  border-bottom: 2px solid var(--main-red);
}

.youtube-container {
  margin: 2rem auto;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  background: #000;
}
.youtube-container iframe {
  width: 100%;
  height: 100%;
}

.info p {
  margin: 2em auto;
  max-width: 900px;
  font-size: clamp(0.6rem, 1vw + 0.8rem, 1rem);
  text-align: left;
}

.info-in {
  margin: 0 auto;
  max-width: 1000px;
  text-align: left;
}

.item {
  margin: 1.5em 0;
  padding: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.item h4 {
  margin: 0;
  padding: 12px 15px;
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
}
.yamaguchi-title { background: var(--main-red); }
.kagoshima-title { background: var(--main-red); }

.item p {
  padding: 1.5em;
  margin: 0;
  font-size: 1rem;
}

@media (min-width: 769px) {
  .info-in {
    display: flex;
    justify-content: space-between;
    gap: 20px;
  }
  .item {
    width: 49%;
  }
}

/* -------------------------------------
  放送日時 (まとめたボックス)
------------------------------------- */
.broadcast-time-sec {
  background-color: var(--main-red);
  padding: 40px 0;
}

.broadcast-time {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 全体の背景を薄いベージュにする */
.time-box.joint-box {
  background-color: var(--bg-gray); /* 既存の薄いベージュ変数を適用 */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* --- ON AIRと日付の行 --- */
.date-header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

/* 赤枠のON AIRバッジ */
.on-air-badge {
  color: var(--main-red);
  border: 2px solid var(--main-red);
  background-color: #fff; /* バッジの中は白く抜く */
  font-weight: 900;
  font-size: 1.1rem;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.main-date {
  color: var(--sub-navy);
  font-size: clamp(1.3rem, 2vw + 1rem, 1.6rem);
  font-weight: 900;
}

/* --- 各放送局の白背景ボックス（横並び） --- */
.station-boxes {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.station-box {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  flex: 1; /* 左右の幅を均等にする */
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.station-name {
  color: var(--main-red);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.station-time {
  color: var(--text-gray);
  font-weight: 900;
  font-size: clamp(1.2rem, 1.5vw + 1rem, 1.4rem);
}

/* スマホ表示時は放送局ボックスを縦並びにして見やすくする */
@media (max-width: 768px) {
  .station-boxes {
    flex-direction: column;
  }
}



/* -------------------------------------
  山口県・鹿児島県エリア紹介（2カラム）
------------------------------------- */
.area-intro {
  background-color: var(--bg-gray); /* 背景色はお好みで変更してください */
  padding: 40px 20px;
  border-top: 2px solid #1A2B4C;
  border-bottom: 2px solid #1A2B4C;
}

.area-col {
  background-color: #fff;
  padding: 10px;
  border-radius: 6px;
}

/* スマホ表示（デフォルト: 縦並び） */
.area-intro-in {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px; /* 山口県と鹿児島県の間の余白 */
}

.area-col h3 {
  color: var(--sub-navy);
  font-size: clamp(1.2rem, 2vw + 1rem, 1.5rem);
  margin: 0 0 15px 0;
  text-align: center;
  border-bottom: 2px solid var(--main-red);
  padding-bottom: 5px;
}

.area-desc {
  font-size: 1rem;
  line-height: 1.8;
  margin: 15px 0 0 0;
}

/* 4枚の画像を2×2のグリッドで配置 */
.area-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列に均等分割 */
  gap: 10px; /* 画像と画像の間の隙間 */
}

.area-photo-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3; /* 画像の縦横比を統一して綺麗に揃える */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* PC表示（画面幅769px以上で横並びに変化） */
@media (min-width: 769px) {
  .area-intro-in {
    flex-direction: row; /* 横並びにする */
    justify-content: space-between;
    gap: 40px;
  }
  .area-col {
    width: 48%; /* 左右で半々ずつの幅を持たせる */
  }
}


/* -------------------------------------
  出演者 (上段2・下段2)
------------------------------------- */

.cast {
  background-color: var(--bg-gray);
  padding: 3rem 1rem;
}
.cast h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.info-in p {
  font-size: clamp(0.8rem, 1vw + 0.8rem, 1rem);
}

/* --- タイトル画像用の設定 --- */
.cast h2 .c-title-img {
  max-width: 250px; /* 画像の本来のサイズやお好みに合わせて数値を調整してください */
  width: 80%;
  height: auto;
}

/* --- ふわっと表示させる専用アニメーション --- */
.fade-only {
  opacity: 0;
  transition: opacity 2s ease-in-out; /* 2秒かけてゆっくりフェードイン（秒数はお好みで変更可） */
}

.cast-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.cast-row {
  display: flex;
  justify-content: center;
  gap: 40px;
}
.castlist-wrap {
  text-align: center;
  width: 45%; 
  max-width: 300px;
  margin: 0;
}
.cast-img img {
  margin: auto;
  border-radius: 10px;
  width: 100%;
  border: 3px solid #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.cast-name {
  margin: 15px 0 5px 0;
  color: var(--main-red);
  font-weight: 700;
  font-size: 1.1rem;
}
.cast-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-gray);
}
@media (max-width: 768px) {
  .cast-row {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .castlist-wrap {
    width: 80%;
  }
}


/* -------------------------------------
  出演者（上段3名）の写真サイズ調整
------------------------------------- */
.item img {
  width: 75%; /* 100%から75%に縮小（お好みで数値を調整してください） */
  margin: 20px auto 10px auto; /* 写真を左右中央に寄せ、上下に余白を入れる */
  display: block; /* 中央寄せを有効にするための設定 */
  border-radius: 8px; /* 写真の角を少し丸くして柔らかい印象にする（不要なら削除可） */
}


/* -------------------------------------
  お店・観光情報 (横並び・縦積み)
------------------------------------- */
.shop {
  background: #fff;
  padding: 3rem 2rem;
}

.shop h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* --- タイトル画像用の設定 --- */
.shop h2 .c-title-img {
  max-width: 360px; /* 画像の本来のサイズやお好みに合わせて数値を調整してください */
  width: 80%;
  height: auto;
}


.shop-columns {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.shop-col {
  flex: 1;
  width: 48%;
}
.shop-col h2 {
  margin: 0 0 1em 0;
  padding: 0.8rem 0;
  background-color: var(--sub-navy);
  color: #fff;
  border-radius: 4px;
  text-align: center;
  font-size: clamp(1.125rem, 1vw + 1rem, 1.3rem);
}
.shop-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.shop-list li {
  background: var(--bg-gray);
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.shop-list img {
  border-radius: 8px 8px 0 0;
}
.shop-list h3 {
  margin: 0;
  padding: 15px;
  color: var(--main-red);
  font-size: 1.1rem;
  background: #fff;
}
.shop-list .col_txt {
  padding: 0 15px 15px 15px;
  font-size: 0.95rem;
  background: #fff;
  height: 100%;
}
@media (max-width: 768px) {
  .shop-columns {
    flex-direction: column;
  }
  .shop-col {
    width: 100%;
  }
}


/* -------------------------------------
  TVer 
------------------------------------- */
.tverinfo {
  padding: 40px 20px;
  text-align: center;
  /* 全体の背景色をpタグの文字色（朱色）と同じにする */
  background-color: var(--main-red);
}

/* 白背景で囲むボックスの設定 */
.tver-box {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* 少し影をつけて背景から浮き出させます */
}

/* ロゴ画像のサイズ調整 */
.tver-box img { 
  max-width: 260px; 
}

.tverinfo p {
  margin-top: 15px;
  margin-bottom: 0;
  font-size: clamp(1rem, 1vw + 1rem, 1.2rem);
  font-weight: 700;
  color: var(--main-red); /* フォントカラーは朱色のまま */
}

/* -------------------------------------
  放送局一覧 (ロゴ画像)
------------------------------------- */
.tvname {
  text-align: center;
  background-color: var(--sub-navy);
  padding: 3rem 0;
  color: #fff;
}
.tvname h3 {
  margin: 0;
}
.tvname h3 span {
  padding: 0.5rem 1.5rem;
  border-bottom: 2px solid var(--main-red);
  font-size: 1.2rem;
}
.logo-list {
  margin: 2rem auto 0 auto;
  padding: 0;
  list-style: none;
}
.logo-list li {
  display: inline-block;
  margin: 0 20px;
  vertical-align: middle;
}
.logo-list li img {
  height: 50px; 
  width: auto;
  transition: opacity 0.3s;
}
.logo-list li a:hover img {
  opacity: 0.7;
}

/* フェードイン用アニメーション */
.slide-top { opacity: 0; transform: translate(0, -30px); transition: all 1s ease-out; }
.slide-bottom { opacity: 0; transform: translate(0, 30px); transition: all 1s ease-out; }



/* -------------------------------------
  装飾画像のぴょんと飛び出すアニメーション (PCのみ)
------------------------------------- */
@media (max-width: 768px) {
  .pop-deco {
    display: none; /* スマホでは非表示（コンテンツの邪魔にならないように） */
  }
}

@media (min-width: 769px) {
  /* 画像の配置基準にするため、親要素にrelativeを付与 */
  .info-in, .cast-container, .shop-columns {
    position: relative;
  }

  .pop-deco {
    position: absolute;
    z-index: 50;
    width: 150px; /* 飛び出す画像のサイズ（お好みで調整） */
    height: auto;
    opacity: 0; /* 初期状態は透明 */
  }

  /* 左から飛び出す設定 */
  .pop-left {
    top: 30%; /* 縦の位置 */
    left: -180px; /* コンテンツ枠より左外側で待機 */
    /* 小さく、更に左側に引っ張り、少し左回転させた状態からスタート */
    transform: translate(-80px, 0) scale(0.3) rotate(-20deg);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); /* バウンドするような動きの設定 */
  }

  /* 右から飛び出す設定 */
  .pop-right {
    top: 40%; /* 縦の位置（左とずらすと動きが出て可愛いです） */
    right: -180px; /* コンテンツ枠より右外側で待機 */
    transform: translate(80px, 0) scale(0.3) rotate(20deg);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* スクロールして画面に入った時（JSでクラス付与） */
  .pop-deco.is-active {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg); /* 元の位置・サイズ・角度に戻る */
  }
}

/* ===================================================
     ここから下を書き換えます
  =================================================== */
  
  /* ふわふわ揺れるアニメーションの定義 */
  @keyframes floating {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
    50%  { transform: translate(0, -12px) scale(1) rotate(0deg); } /* 12px上にふわっと浮く */
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  }

  /* スクロールして画面に入った時（JSでクラス付与） */
  .pop-deco.is-active {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg); /* 最初の0.8秒で定位置に飛び出す */
  }

  /* 左側の装飾: 0.8秒待ってから、3秒周期でふわふわ動かす */
  .pop-left.is-active {
    animation: floating 3s ease-in-out infinite;
    animation-delay: 0.8s; 
  }

  /* 右側の装飾: 0.8秒待ってから、3.5秒周期でふわふわ動かす（左右で少しずらすと自然です） */
  .pop-right.is-active {
    animation: floating 3.5s ease-in-out infinite;
    animation-delay: 0.8s;
  }