/* ==================================================
   Base
================================================== */
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  background: #f5f7fa;
  color: #222;
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;

  width: 120vw;        /* 伸びる前提 */
  height: 20px;        /* ★ 20px ストライプ */

  background: linear-gradient(
    90deg,
    rgba(120,180,255,0.95),
    rgba(180,120,255,0.95),
    rgba(120,180,255,0.95)
  );

  /* ★ 曲線パス */
  offset-path: path(
    "M -200 300
     C 200 200, 400 400, 700 300
     S 1200 200, 1600 350"
  );

  offset-rotate: auto;           /* 進行方向に沿って回転 */
  offset-distance: 0%;

  transform-origin: left center;
  transform: scaleX(0);

  opacity: 0;
  pointer-events: none;
  z-index: -1;

  animation: ribbonCurveGrow 28s ease-in-out infinite;
}

body::after {
  content: "";
  position: fixed;

  width: 120vw;
  height: 18px;

  background: linear-gradient(
    90deg,
    rgba(120,220,190,0.9),
    rgba(120,180,255,0.9)
  );

  offset-path: path(
    "M -200 420
     C 300 500, 600 300, 900 450
     S 1400 550, 1800 420"
  );

  offset-rotate: auto;
  offset-distance: 0%;

  transform-origin: left center;
  transform: scaleX(0);

  opacity: 0;
  pointer-events: none;
  z-index: -1;

  animation: ribbonCurveGrow2 36s ease-in-out infinite;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
}

body {
  background-attachment: fixed;
}

body::marker {
  content: "";
}

@keyframes ribbonCurveGrow {
  0% {
    opacity: 0;
    offset-distance: 0%;
    transform: scaleX(0);
  }

  20% {
    opacity: 1;
    transform: scaleX(0.6);
  }

  40% {
    offset-distance: 40%;
    transform: scaleX(1);
  }

  60% {
    offset-distance: 70%;
    transform: scaleX(1);
  }

  80% {
    opacity: 1;
    offset-distance: 100%;
  }

  100% {
    opacity: 0;
    offset-distance: 100%;
  }
}

@keyframes ribbonCurveGrow2 {
  0% {
    opacity: 0;
    offset-distance: 0%;
    transform: scaleX(0);
  }
  25% {
    opacity: 1;
    transform: scaleX(0.5);
  }
  45% {
    offset-distance: 50%;
    transform: scaleX(1);
  }
  70% {
    offset-distance: 100%;
  }
  100% {
    opacity: 0;
    offset-distance: 100%;
  }
}


@media (min-width: 769px) {
  body {
    --stripe3: 1;
  }
}

@media (max-width: 768px) {
  body::before,
  body::after {
    animation: none;
  }
}

.bg-ribbons {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg-ribbons {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.ribbon {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  opacity: 0;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

/* 左→右 */
.r1 {
  stroke: #4fa3ff;
  stroke-width: 20;
  animation: ribbonMove1 20s infinite;
}

.r2 {
  stroke: #3dd6a0;
  stroke-width: 18;
  animation: ribbonMove2 26s infinite;
}

/* 右→左 */
.r3 {
  stroke: #b47bff;
  stroke-width: 16;
  animation: ribbonMove3 30s infinite;
}

/* ---- keyframes ---- */

@keyframes ribbonMove1 {
  0%   { stroke-dashoffset: 1000; opacity: 0; }
  10%  { opacity: 1; }
  55%  { stroke-dashoffset: 0; opacity: 1; }
  70%  { opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes ribbonMove2 {
  0%   { stroke-dashoffset: 1000; opacity: 0; }
  12%  { opacity: 1; }
  50%  { stroke-dashoffset: 0; opacity: 1; }
  68%  { opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes ribbonMove3 {
  0%   { stroke-dashoffset: -1000; opacity: 0; }
  15%  { opacity: 1; }
  52%  { stroke-dashoffset: 0; opacity: 1; }
  72%  { opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ===============================
   Outline text (same as background)
================================ */

/* 背景白を使っていない文字用 */
.text-outline {
  /* ★ 袋文字（背景色に近い色） */
  text-shadow:
    1px 0   rgba(245, 247, 250, 0.95),
   -1px 0   rgba(245, 247, 250, 0.95),
    0   1px rgba(245, 247, 250, 0.95),
    0  -1px rgba(245, 247, 250, 0.95),
    1px 1px rgba(245, 247, 250, 0.95),
   -1px 1px rgba(245, 247, 250, 0.95),
    1px -1px rgba(245, 247, 250, 0.95),
   -1px -1px rgba(245, 247, 250, 0.95);
}

/* ==================================================
   Header
================================================== */

/* ヘッダ全体 */
.site-header {
  background: linear-gradient(
    180deg,
    #16665c 0%,
    #1f8a7b 100%
  );
}

/* 中央コンテナ */
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;

  display: flex;
  justify-content: space-between;  /* ★左右に分ける */
  align-items: center;
}
/* ロゴ＋放送情報の塊 */
.header-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;              /* ← ロゴに“寄り添う”距離 */
  flex-wrap: nowrap;     /* ★ 1024pxでも折り返さない */
}

/* ロゴ */
.site-logo {
  height: 60px;
  display: block;
}

/* 放送情報 */
.onair-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.4;
  white-space: nowrap;   /* ★ 2行とも途中で折らせない */
}

/* 1行目（テレビ放送） */
.onair-main {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.03em;
}

/* 2行目（YouTube） */
.onair-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.site-nav a {
  margin-left: 24px;
  font-size: 14px;
  color: #fff;
  opacity: 0.9;
}

.site-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ヘッダ固定表示 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.producer-strap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  padding: 8px 16px;
  background: #243a5e;
}

.producer-label {
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.05em;
  white-space: nowrap;
  font-weight: 500;
}

.producer-logo {
  height: 48px;
  opacity: 0.85;
}

/* ==================================================
   Broadcast Hero
================================================== */
.broadcast-hero {
  background: linear-gradient(
    135deg,
    #0d1b2a 0%,
    #1f8a7b 100%
  );
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.broadcast-inner {
  max-width: 900px;
  margin: 0 auto;
}

.catch {
  font-size: 32px;
  opacity: 0.95;
  margin-bottom: 10px;
}

.sub-catch {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 50px;
}

.producer {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.broadcast-inner h1 {
  font-size: 42px;
  letter-spacing: 0.05em;
  margin-bottom: 0px;
}

.hero-logo img {
  max-width: 420px;
  width: 100%;
  height: auto;
  margin: 10px auto 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.broadcast-hero.has-bg {
  position: relative;
}

.broadcast-hero.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/back_KyotoKC_img.jpg") center / cover no-repeat;
  opacity: 0.5;
  z-index: 0;
}

.broadcast-hero.has-bg > * {
  position: relative;
  z-index: 1;
}

/* 放送情報ボックス */
.broadcast-box {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.broadcast-item {
  background: rgba(31, 138, 123, 0.68);
  padding: 20px 30px;
  border-radius: 8px;
  max-width: 380px;
  text-align: center;
}

.broadcast-item.youtube {
  background: rgba(229, 57, 53, 0.95);
}

.label {
  display: block;
  font-size: 12px;
  opacity: 0.85;
}

.time {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin: 6px 0;
}

.note {
  font-size: 12px;
  opacity: 0.9;
}

/* ==================================================
   Section Common
================================================== */
section {
  max-width: 900px;
  margin: 70px auto;
  padding: 0 20px;
  scroll-margin-top: 100px;
}

h2 {
  font-size: 22px;
  margin-bottom: 25px;
  border-left: 6px solid #1f8a7b;
  padding-left: 12px;
}



/* ==================================================
   Card
================================================== */
.card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
}

.card.primary {
  border-left: 8px solid #1f8a7b;
}

.program-card {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: center;
}

.program-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  color: #fff;
  margin-bottom: 12px;
}

.badge.next {
  background: #1f8a7b;
}

.badge.latest {
  background: #555;
}

/* 番組内容リスト */
.program-list {
  list-style: none;
  padding-left: 0;
  margin: 15px 0;
}

.program-list li {
  margin-bottom: 6px;
}

/* 日時 */
.date {
  font-size: 14px;
  color: #444;
  margin-top: 10px;
}

/* ボタン */
.btn {
  display: inline-block;
  margin-top: 18px;
  background: #e53935;
  color: #fff;
  padding: 10px 26px;
  border-radius: 30px;
  font-size: 14px;
  transition: 0.2s;
}

.btn:hover {
  opacity: 0.85;
}

/* Program thumbnail slider */

.program-slider {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
}

.program-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.program-slider img.is-active {
  opacity: 1;
}

.program-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
}

.program-thumb img,
.program-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* ← ここが重要 */
}
/* ==================================================
   Archive (Top page)
================================================== */
.archive-list {
  display: grid;
  gap: 15px;
}

.archive-item {
  background: #fff;
  padding: 18px 20px;
  border-radius: 8px;
}

.archive-title {
  margin: 0 0 6px;
  font-weight: 600;
}

.archive-watch {
  margin: 0;
  font-size: 14px;
}

.archive-watch a {
  color: #1f8a7b;
}

.archive-watch a:hover {
  text-decoration: underline;
}

.archive-more {
  margin-top: 22px;
  text-align: right;
}

.archive-more a {
  color: #1f8a7b;
  font-weight: 600;
}

.archive-more a:hover {
  text-decoration: underline;
}

/* ===============================
   Program Sections
================================ */
.program-sections {
  margin: 80px auto;
}

.program-section-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.program-section h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #1f8a7b;
}

.program-desc {
  font-size: 15px;
  line-height: 1.7;
}

.program-note {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

/* スマホ */
@media (max-width: 768px) {
  .program-section-list {
    grid-template-columns: 1fr;
  }
}



/* ==================================================
   Cast
================================================== */
.cast {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.member {
  display: flex;
  flex-direction: column;   /* ★ 縦並び */
  align-items: center;      /* ★ 中央揃え */
}


.member img {
  width: 150px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.member span {
  display: block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  text-align: center;      /* ★ 中央揃え */
}

.member-text {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);  /* ★ 白透け */
  padding: 6px 12px;
  border-radius: 8px;
  text-align: center;      /* ★ 中央揃え */
  min-width: 120px;
}

.member-name {
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  color: #222;
  line-height: 1.4;
}

.member-role {
  padding: 0;

  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* 注釈マーク */
.note-mark {
  font-size: 11px;
  margin-left: 2px;
  color: #666;
  vertical-align: super; /* 上付き */
}

/* 出演者 注釈文 */
.cast-note {
  max-width: 900px;
  margin: 20px auto 0;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  text-align: center;
}

/* ===============================
   Viewer Feedback
================================ */

.viewer-feedback {
  max-width: 900px;
  margin: 80px auto;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.1) blur(2px);
  border-top: 4px solid #1f8a7b;
  border-radius: 10px;
  text-align: center;
}


.viewer-feedback h2 {
  font-size: 20px;
  margin-bottom: 20px;
  border-left: 0px;
  padding-left: 10;
}

.feedback-text {
  font-size: 15px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.feedback-action {
  margin-top: 25px;
  margin-bottom: 30px;
}

.feedback-button {
  display: inline-block;
  padding: 12px 28px;
  background: #1f8a7b;
  color: #ffffff;
  font-size: 15px;
  border-radius: 30px;
  text-decoration: none;
}

.feedback-button:hover {
  opacity: 0.9;
}

.feedback-note {
  margin-top: 32px;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.feedback-action {
  margin-top: 20px;
}

.feedback-action a {
  display: inline-block;
  padding: 10px 24px;
  background: #1f8a7b;
  color: #ffffff;
  font-size: 14px;
  border-radius: 30px;
  text-decoration: none;
}

.feedback-action a:hover {
  opacity: 0.9;
}


/* ==================================================
   Footer
================================================== */
.site-footer {
  background:  #243a5e;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.footer-org-logo {
  height: 60px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.site-footer p {
  font-size: 12px;
  margin: 0;
}

/* ==================================================
   Responsive
================================================== */
@media (max-width: 768px) {
  .site-logo {
    height: 48px;
  }

  .header-inner {
    flex-direction: column;      /* ★ 横 → 縦 */
    align-items: flex-start;     /* ★ 左寄せ */
    gap: 12px;                   /* ★ 重なり防止 */
  }

  .site-nav {
    width: 100%;
    margin-left: 0;              /* PC用の auto を無効化 */
    display: flex;
    justify-content: center;
  }

  .site-nav a {
    margin-left: 14px;
    font-size: 13px;
  }

  .producer-logo {
    height: 36px;
    opacity: 0.85;
  }

  .broadcast-inner h1 {
    font-size: 32px;
  }

  .hero-logo img {
    max-width: 300px;
    margin-bottom: 30px;
  }

  .time {
    font-size: 18px;
  }

.footer-org-logo {
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.9;
  }

}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 40px;
  }
}

@media (max-width: 768px) {
  .catch {
    font-size: 20px;
  }

  .sub-catch {
    font-size: 14px;
  }
}


/* ==============================
   Archive Page
============================== */
.archive-section {
  max-width: 1000px;
  margin: 70px auto;
  padding: 0 20px;
}

.archive-section h1 {
  font-size: 26px;
  margin-bottom: 40px;
}

/* カード */
.archive-card {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 30px;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 40px;
}

/* 左側 */
.archive-body h2 {
  font-size: 20px;
  margin-top: 0;
}

.archive-date {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}

.archive-watch a {
  font-weight: 600;
  color: #1f8a7b;
}

.archive-watch a:hover {
  text-decoration: underline;
}

.archive-program {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.archive-program li {
  margin-bottom: 6px;
}

.archive-watch-title {
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0 6px;
  color: #333;
}

.archive-subnote {
  font-size: 12px;
  color: #666;
  margin: 6px 0 12px;
}

.archive-corners-box {
  background: #f7f9f8;
  padding: 15px 20px;
  border-radius: 6px;
}

/* 右側サムネ */
.archive-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-top: 40px;
  border-radius: 6px;
}

/* スマホ */
@media (max-width: 768px) {
  .archive-card {
    grid-template-columns: 1fr;
  }

  .archive-thumb {
    margin-top: 15px;
  }
}

/* ===============================
   スマホ表示：2カラムを縦積みに
================================ */
@media (max-width: 768px) {

  .archive-item {
    grid-template-columns: 1fr;
  }

  .program-card {
    grid-template-columns: 1fr;
  }

  /* 右側カラムを下に */
  .archive-thumb,
  .program-thumb {
    margin-top: 15px;
  }
}

/* ===============================
   Page Top Button
================================ */
#pageTop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;

  border: none;
  border-radius: 50%;
  background: rgba(36, 58, 94, 0.85); /* #243a5e */
  color: #fff;

  font-size: 14px;
  cursor: pointer;

  display: none; /* 初期は非表示 */
  align-items: center;
  justify-content: center;

  z-index: 900;
  transition: opacity 0.3s, transform 0.3s;
}

/* hover（PCのみ自然に） */
#pageTop:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* スマホでは少しだけ小さく */
@media (max-width: 768px) {
  #pageTop {
    width: 40px;
    height: 40px;
    font-size: 13px;
    right: 16px;
    bottom: 16px;
  }
}

/* ===============================
   H2: white background
================================ */

h2 {
  display: inline-block;              /* ← 背景を文字幅に限定 */
  background: #ffffff;                /* ★ 白背景 */
  padding: 8px 16px 8px 14px;          /* 左は縦ライン分を考慮 */

  border-left: 6px solid #1f8a7b;      /* ★ グリーン縦ライン維持 */
  border-radius: 6px;

  margin-bottom: 25px;
}

/* ===============================
   Program section background
================================ */

.program-section {
  background: rgba(255, 255, 255, 0.94);
  padding: 24px 28px;
  border-radius: 10px;
}

.card,
.archive-item,
.archive-card {
  background: rgba(255, 255, 255, 0.96);
}