/* ==========================================================
   旅するせんせい×研究者のラジオ 
   Official Website - Integrated Stylesheet
   ========================================================== */


   html, body {
  overflow-x: hidden; /* 横方向のはみ出しを強制的にカット */
  width: 100%;        /* 幅を画面ピッタリに固定 */
  position: relative;
}
/* --- 1. Root & Base --- */
:root {
  --color-main: #1d362e;
  --color-sub: #4ba6c3;
  --color-accent: #3C9DB3; 
  --color-bg: #f9f9f7;
  --text-main: #333333;
  --text-muted: #666666;
  --container-padding: clamp(20px, 8vw, 80px);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--color-bg);
  color: var(--text-main);
  line-height: 1.8;
  margin: 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--container-padding);
}

.section {
  padding: 100px 0;
}

.section__title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 4rem;
  color: #3C9DB3;
}

.section-main-title {
  font-size: 4rem;
  color: #1C3D31;
  margin-bottom: 40px;
  text-align: center; /* 左寄せに変更 */
}

/* --- 2. Header --- */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
border-bottom: 3px solid var(--color-accent);
}

.header__inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: var(--container-padding);
}

.brand img {
  display: block;
  
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav ul a {
  text-decoration: none;
  color: var(--color-main);
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav ul a:hover {
  color: var(--color-sub);
}

/* --- 3. Hero --- */
.hero {
  position: relative;
  /* 固定のheightではなく、最小の高さを指定（中身が増えても溢れないように） */
  min-height: 70vh; 
  height: auto; 
  padding-top: 40px; /* ヘッダーの高さ(80px)分の余白を上に追加して重なり防止 */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* 背面に配置 */
  overflow: hidden;
}

.hero__video-element {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画面いっぱいに広げつつ、比率を維持してクロップ */
  object-position: center;
}

.hero__video img {
  width: 100%; /* コンテナいっぱいに表示 */
  height: 100%; /* 高さをいっぱいに表示 */
  object-fit: cover; /* 縦横比を維持しながら隙間なく表示 */
  object-position: center; /* 画像の中心を基準にする */

}

.hero__overlay-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  width: 100%;
  /* 上下のパディングを調整して、画像内の中央に配置 */
  padding: 40px 0;
}

.hero__overlay-text h1 {
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-family: "Zen Maru Gothic", sans-serif;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
  
}

.hero__overlay-text p {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
}

/* --- 4. About ( Education Style) --- */
.about {
  background-color: #ffffff !important; /* 背景を白に固定 */
}

.about-flex {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-top: 10px;
}

.about-flex__left {
  flex: 1;
}

.about-jacket {
  display: block;
  width: 240px;
  aspect-ratio: 1;
  margin: 0 auto 30px; /* 上下左右の中央に配置 */
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  object-fit: cover;
}

.about-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
}

.about-description p {
  margin-bottom: 20px;
}

.about-flex__right {
  flex: 1.2;
  padding-top: 10px;
  border-left: 1px solid #e0e0e0;
  padding-left: 40px;
}

/* (2) タイトルからコンテンツまでの空白を削減 */
.about-flex__right .movement-title {
  font-size: 2.8rem;
  font-weight: 700;
  padding-top: 0; /* 上の余白を完全にゼロにする */
  margin-bottom: 20px; /* 余白を縮小 */
  padding-bottom: 10px;
}

.movement-title {
  font-size: 4rem;
  font-weight: 700;
  color: #333;
  text-align: left;
  margin-bottom: 40px;
  padding-bottom: 15px;
  font-family: "Zen Kaku Gothic New", sans-serif;
}

.subscribe-area {
  margin-bottom: 50px;
}

.subscribe-area .label {
  display: block;
  font-weight: 700;
  color: #666;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.subscribe-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.subscribe-icons img {
  height: 36px;
  width: auto;
  transition: transform 0.2s ease, opacity 0.2s;
}

.subscribe-icons img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.episode-highlight .episode-tag {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.episode-highlight .highlight-title {
  font-size: 1.8rem;
  color: var(--color-main);
  margin: 12px 0 25px;
  line-height: 1.4;
  text-align: left;
  font-family: "Zen Maru Gothic", sans-serif;
}

.player-wrapper {
  margin-bottom: 30px;
}

.btn--resources:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* --- 5. Speaker (Original Grid) --- */
#speaker.speaker {
  background-color: #ffffff !important; /* 背景を白に強制 */
}

.speaker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.speaker__item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.speaker__img {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: #ddd;
}

.speaker__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker__role {
  font-size: 0.85rem;
  color: var(--color-sub);
  font-weight: 700;
  margin-bottom: 8px;
}

.speaker__info h3 {
  margin-bottom: 8px;
  font-size: 1.4rem;
  font-family: "Zen Maru Gothic", sans-serif;
}

/* --- 6. Concept (Original Cards) --- */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.concept-card {
  padding: 40px;
  background: #f0f4f5;
  border-radius: var(--radius);
  transition: 0.3s;
}

.concept-card h3 {
  color: var(--color-main);
  margin-bottom: 16px;
  font-family: "Zen Maru Gothic", sans-serif;
}

.archive-main-title {
  font-size: 4rem;
  color: #C8AB72;
  opacity: 0.8;
  font-family: sans-serif;
  text-align: center;
  margin-bottom: 40px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.chip {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #4F372A;
  background-color: transparent;
  color: #C8AB72;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  
  /* (重要) デフォルト（未選択）の状態を薄くする */
  opacity: 0.4; 
}

/* 選択されている（is-selected）チップの強調 */
.chip.is-selected {
  opacity: 1; /* はっきりと表示 */
  background-color: #4F372A;
  color: #fff;
  box-shadow: 0 4px 10px rgba(60, 157, 179, 0.3); /* 少し影をつけて浮かせる */
}

.chip:hover {
  opacity: 0.8; /* ホバー時は少しだけ濃くする */
}

/* 2段組にするための調整 */
.archive-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 3カラムから2カラムに変更 */
  gap: 50px 40px; /* 余白を少しゆったりと */
}

.grid-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.grid-item__img {
  width: 140px; /* 画像を少し大きくして2段組での存在感を出す */
  height: 140px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.grid-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-item__info .grid-item__date {
  font-size: 0.75rem;
  color: #999;
}

.grid-item__info .grid-item__title {
  font-size: 1.4rem; /* タイトルを少し大きく */
  margin: 4px 0 6px;
  font-weight: 700;
  color: var(--color-main);
}

/* 番組内で探究した問いのスタイル */
.grid-item__query {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; /* 3行以上は省略 */
  overflow: hidden;
}

.grid-item__links {
  display: flex;
  gap: 12px;
}

.grid-item__links img {
  height: 22px;
  opacity: 1;
  transition: opacity 0.2s;
}

.grid-item__links img:hover {
  opacity: 0.8;
}


/* --- 8. Supporter & Footer --- */
.supporter__card {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px;
  background: #e9f5f1;
  border-radius: 20px;
  text-align: center;
}

.btn--primary {
  background: var(--color-sub);
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
}

.footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 60px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer .brand {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 900;
  color: var(--color-main);
}

/* --- 9. Responsive --- */
@media (max-width: 900px) {
  .about-flex {
    flex-direction: column;
    gap: 40px;
  }

.about-flex__right {
    border-left: none !important;    /* 横並び用の左線を消す */
    padding-left: 0 !important;      /* 左の余白をリセット */
    width: 100% !important;          /* 幅を100%に固定 */
    box-sizing: border-box;
  }

 .movement-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  border-bottom: none; /* 下線を消して、行間の調整に当てる */
}

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

  .speaker__item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero__overlay-text h1 {
    font-size: 2.5rem;
  }
/* モバイル対応 */
  .hero__line h1 { font-size: 2rem; }
  .en-sub { left: -15px; font-size: 0.5rem; }
}



.link-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #eee; /* 上に区切り線を入れる */
}

.row-label {
  width: 140px; /* ラベルの幅を固定 */
  font-weight: 500;
  color: #666;
  font-size: 0.85rem;
}

.icon-group {
  background-color: transparent !important;
  display: flex;
  gap: 20px;
  align-items: center;
}

.icon-group a {
  background-color: transparent !important;
  border: none !important;
  padding: 0;
  display: flex;
  align-items: center;
}

/* アイコンの大きさを指定（ここが重要です） */
.icon-group img {
  height: 32px;
  width: auto;
  border-radius: 4px;
  background-color: transparent !important; /* 画像の背景も透明に */
  transition: transform 0.2s, filter 0.2s; /* filterの遷移も追加 */
}

.icon-group img:hover {
  transform: scale(1.1);   /* 少し大きくする */
  filter: grayscale(100%); /* 白黒（モノクロ）にする */
  cursor: pointer;         /* カーソルを指マークにする */
}

/* シェアアイコンだけ少し小さく、または色味を抑える場合 */
.share-icons img {
  height: 24px; /* シェア用は少し控えめに */
  filter: grayscale(100%); /* 白黒にして統一感を出す（ホバーで色を出す） */
  opacity: 0.6;
}

.share-icons img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* 最新エピソードエリアのラベル */
.episode-label {
  display: block;
  color: var(--color-accent); /* 指定のパープル */
  font-weight: 700;
  font-size: 2rem;
  margin-top: 30px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* ボタンのデザイン調整（Resources and more風） */
.btn--resources {
  display: inline-block;
  background-color: var(--color-accent);
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px; /* 角丸を少し抑える */
  font-weight: 700;
  text-decoration: none;
  margin-top: 20px;
  transition: opacity 0.2s ease, transform 0.2s;

}

/* --- 6. Concept (Stylized Background & No-Card Layout) --- */
.value {
  position: relative;
  overflow: hidden;
  text-align: center;
  background-color: var(--color-bg); /* セクション全体の背景 */
}

/* 背景に表示される巨大な "CONCEPT" */
.value__title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(100px, 15vw, 200px);
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.03); /* 非常に薄い透過色 */
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
}

.value .value-title2 {
  text-align: center;
  font-size: 4rem !important; /* 強制的に適用 */
  color: #4F372A !important;  /* 指定の茶色 */
  position: relative;
  z-index: 2; /* 背景のCONCEPTより手前に出す */
}

.value__inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.value__inner h2 {
  font-size: 2rem;
  margin-bottom: 60px;
  color: var(--color-main);
}

/* カード形式を捨て、グリッドレイアウトのみ活用 */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  text-align: left;
}

.concept-card {
  padding: 0;           /* 余白をリセット */
  background: none;     /* 背景色をなしに */
  border-radius: 0;     /* 角丸をなしに */
  box-shadow: none;     /* シャドウをなしに */
  transition: transform 0.3s ease;
}

.concept-card:hover {
  transform: translateY(-5px);
  background: transparent; /* ホバー時の背景変化もなしに */
}

/* ハッシュタグ部分のスタイリング */
.concept-card h3 {
  font-size: 1.25rem;
  color: var(--color-sub) !important; /* スタイリッシュな青系アクセント */
  margin-bottom: 12px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
}

.concept-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .value__title {
    font-size: 80px;
  }
  .concept-grid {
    text-align: center;
  }
.archive-grid-v2 {
    grid-template-columns: 1fr;
  }
  .grid-item__img {
    width: 100px;
    height: 100px;
  }

}

/* --- Contact Form Styles --- */
.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-main);
  font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-sub);
}

.form-group textarea {
  resize: vertical;
}


/* --- Supporter Navigation Button --- */
.nav-btn-supporter {
  background-color: var(--color-sub);
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 999px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(60, 157, 179, 0.3);
}

.nav-btn-supporter:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* --- Supporter Intro Section --- */
.supporter-intro {
  text-align: center;
  padding: 100px 0;
}

.supporter-intro__subtitle {
  font-size: 1.2rem;
  color: var(--color-sub);
  font-weight: 700;
  margin-top: -30px;
  margin-bottom: 40px;
}

.supporter-intro__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.supporter-intro__content p {
  line-height: 2;
  margin-bottom: 50px;
  color: var(--text-main);
}

.btn--supporter-main {
  /* display: inline-flex; */
  align-items: center;
  width: 100%;
  max-width: 500px;
  padding: 25px 40px;
  border: 2px solid var(--color-sub);
  border-radius: 999px;
  color: var(--color-sub);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
}

.btn--supporter-main:hover {
  background-color: var(--color-sub);
  color: #fff;
}


.btn--supporter-main:hover  {
  padding-right: 40px !important;    /* 左右の余白を均等にする（左が40pxなので） */
  text-align: center;
}

.plan-button-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6分割のグリッドで比率を調整 */
  gap: 20px;
  margin-top: 50px;
}

/* 共通ボタンベース */
.plan-btn-large, .plan-btn-small {
  background-color: #7facda; /* サポーターカラーの淡い青 */
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all 0.3s ease;
}

.plan-btn-large:hover, .plan-btn-small:hover {
  background-color: var(--color-sub); /* ホバー時に濃い青へ */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(127, 172, 218, 0.4);
}

/* 上段の大きなボタン（3列分ずつ使用） */
.plan-btn-large {
  grid-column: span 3;
  padding: 35px 20px;
  font-size: 2.2rem;
}

/* 下段の小さなボタン（2列分ずつ使用） */
.plan-btn-small {
  grid-column: span 2;
  padding: 20px 15px;
  font-size: 1.2rem;
}

/* 円/月のテキストサイズ調整 */
.plan-btn-large span, .plan-btn-small span {
  font-size: 0.9rem;
  margin-left: 5px;
  font-weight: 500;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .plan-button-grid {
    grid-template-columns: 1fr; /* スマホでは縦一列 */
  }
  .plan-btn-large, .plan-btn-small {
    grid-column: span 1;
    font-size: 1.5rem;
    padding: 20px;
  }
}


@media (max-width: 600px) {
  .form-container {
    padding: 20px;
  }
}

/* もし、モバイル（最大900px）でパディングが多すぎる場合は微調整 */
@media (max-width: 900px) {
  .hero {
    padding: 100px 0; /* 少しパディングを減らす */
    min-height: 50vh; /* 最小高さも少し低く */
  }}

.required {
  color: #e63946;
  margin-left: 4px;
}

.conditional-section {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  margin-top: 20px;
  border-left: 4px solid var(--color-sub);
}

.error-msg {
  color: #e63946;
  font-size: 0.8rem;
  display: none;
  margin-top: 5px;
  font-weight: bold;
}

.radio-group, .checkbox-label {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

#email_confirm {
  /* コピペ禁止をユーザーに意識させるためのスタイル */
  background-color: #fff9f9;
}

.btn--supporter-main {
    font-size: 1.1rem;
    padding: 15px 25px;
    text-align: center;

  }

  /* ローディング画面のスタイル */
#loader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

#loader img {
  width: 80px; /* GIFのサイズはお好みで */
}

/* ヒーローセクションのテキスト装飾 */
.hero__content {
  color: #ffffff;
  text-align: center;
  max-width: 1100px; /* 900pxから1100pxへ広げて「チ」の落ちを防止 */
  margin: 0 auto;
  padding-inline: var(--container-padding);
  font-family: "Zen Kaku Gothic New", sans-serif;
  transform: translateY(5%);
}

.hero__line {
  position: relative;
  margin-bottom: 0.8rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.5s forwards var(--delay);
}

/* 日本語メインテキスト */
.hero__line h1 {
  /* 最小サイズを 1.5rem 程度まで下げて、スマホでの折り返しを防止 */
  font-size: clamp(1.0rem, 5vw, 3.5rem); 
  color: #ffffff !important;
  font-family: "Zen Kaku Gothic", sans-serif;
  letter-spacing: 0.1em;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* 英語の縦書きサブタイトル */
/* 英語サブテキスト（日本語の下） */
.en-sub {
  display: block;
  font-size: clamp(0.6rem, 1.2vw, 0.8rem); /* 英語も画面幅に応じて可変に */
  letter-spacing: 0.2em;
  color: #ffffff;
  opacity: 0.8;
  margin-top: 4px;
}

.hero__desc {
font-size: 1.0rem; /* 少し小さく（前：1.1rem） */
  margin-top: 15px; /* 上の間隔を詰める（前：40px） */
  color: #ffffff;
  opacity: 0;
  line-height: 1.6;
  text-align: center;
  animation: fadeInOnly 2s ease-out forwards var(--delay);
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* アニメーション定義 */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeInOnly {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* detailsタグの標準矢印を消し、スタイリッシュに */
details summary::-webkit-details-marker {
  display: none;
}
details summary {
  list-style: none;
  outline: none;
  transition: background-color 0.2s;
}
details summary:hover {
  background-color: #f9f9f9;
}
details[open] summary {
  border-bottom: 1px solid #fafafa;
}

/* アコーディオンの表をスマホで崩さない設定 */
.recruitment-table-container th {
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

/* FAQセクションの強調 */
#faq h3 {
  border-left: 4px solid var(--color-sub);
  padding-left: 15px;
}

/* ヒーローエリアのレスポンシブ（スマホで画像を上、テキストを下に） */
@media (max-width: 768px) {
  .supporter-hero .container {
    flex-direction: column;
    text-align: center;
  }
  .supporter-hero h1 {
    text-align: center;
  }
}

:root {
  --sp-blue: #005bac;
  --sp-bg-light: #f7f9fc;
}

/* --- Base --- */
.narrow-container { max-width: 800px; margin: 0 auto; }
.align-center { text-align: center; }
.mt-40 { margin-top: 40px; }


/* --- スクロールスナップ設定 --- */
html {
  /* scroll-snap-type: y proximity;
  scroll-behavior: smooth; */
  scroll-padding-top: 80px; /* ヘッダーの高さ分 */
}

/* 全ての主要セクションをスナップ対象に */
.hero, 
#about, 
#concept, 
#speaker, 
#archive, 
#supporter-intro, 
#contact, 
.footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

/* フッターは高さに合わせて調整 */
.footer {
  min-height: auto;
  scroll-snap-align: end;
}

/* --- アニメーション用初期状態 --- */
.reveal-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ヒーローセクションの特別な重なり設定 */
.hero {
  height: 100vh;
  overflow: hidden;
  padding-top: 0; /* ビデオを全画面で見せるため */
}


/* 1. 参考文献リンク */
/* アイコンの親要素の設定を微調整（横並びと中央揃え） */
.grid-item__links {
  display: flex;
  align-items: center; /* アイコンとテキストの上下中央を揃える */
  gap: 12px;           /* アイコン同士の間隔 */
  flex-wrap: wrap;     /* スマホで溢れた時に折り返す設定 */
}

/* インライン版の参考文献リンク */
.grid-item__ref-inline {
  font-size: 0.6rem;   /* アイコンの邪魔をしない控えめなサイズ */
  color: #999;
  text-decoration: none;
  margin-left: 4px;    /* 最後のアイコンとの間隔を少し広げる */
  white-space: nowrap; /* テキストが途中で改行されないようにする */
  transition: color 0.3s;
  font-weight: 500;
  transform: translateY(-2px);
}

.grid-item__ref-inline:hover {
  color: var(--color-sub);
  text-decoration: underline;
}

/* --- Listeners' Voice (修正版) --- */

/* 1. 背景巨大タイトルと日本語タイトルの統一 */
.listeners__bg-title {
  /* .value__title のスタイルを引き継ぐ */
  color: rgba(0, 0, 0, 0.03); /* 非常に薄い透過色 */
}

.listeners-title {
  /* .value-title2 のスタイルを引き継ぐ */
  color: #4f372a !important; /* 指定の茶色 */
  margin-bottom: 60px; /* タイトル下の余白 */
}

/* 2. カルーセル (手動スライダー) */
.carousel-outer {
  position: relative; /* ボタンの基準点 */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.carousel-viewport {
  width: 100%;
  overflow: visible !important; /* 左右のチラ見えを許容 */
  z-index: 1;
}

.carousel-inner {
  display: flex;
  width: max-content;
  transition: transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1); /* なめらかな移動 */
  will-change: transform;
}

/* --- カード：透過とボカシを強化 --- */
.voice-card {
  width: 480px;
  min-height: 280px;
  background: rgba(34, 34, 34, 0.5); /* さらに透過（0.85 -> 0.5） */
  backdrop-filter: blur(12px);     /* ボカシを強めて高級感を出す */
  -webkit-backdrop-filter: blur(12px);
  padding: 45px;
  border-radius: 24px;             /* 角丸を少し強調 */
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  margin: 0 15px;                  /* 左右均等にマージン */
  opacity: 0.4;                    /* 非アクティブ時は薄く */
  transform: scale(0.9);           /* 非アクティブ時は小さく */
  transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  color: #fff;
  /* ★ここを確実に設定 */
  text-align: left; 
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 中の要素を左に寄せる */
  justify-content: flex-start;
}

/* --- アクティブなカード（中央）の強調 --- */
.voice-card.is-active {
  opacity: 1;
  transform: scale(1);
  background: rgba(34, 34, 34, 0.7); /* 中央だけ少し濃くして読みやすく */
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.voice-icon {
  position: absolute;
  top: 25px;
  right: 25px;
  color: var(--color-sub);
  opacity: 0.3; /* アイコンを薄く配置 */
}

.voice-profile {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-sub);
  margin-bottom: 15px;
  position: relative;
  z-index: 1; /* アイコンより手前に */
}

/* 本文を白に */
.voice-text {
  font-size: 0.95rem;          /* 少し大きく */
  line-height: 1.8;
  color: #fff;                /* 白色に変更 */
  position: relative;
  z-index: 1;
}

/* 4. 操作ボタン  */
.carousel-prev, .carousel-next {
  position: absolute;  /* 枠に縛られず固定位置に配置 */
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;        /* カードより手前に */
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: left;
  justify-content: left;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.carousel-prev { left: -10px; }
.carousel-next { right: -10px; }

.carousel-prev:hover, .carousel-next:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev:focus, .carousel-next:focus {
  outline: none;
  border-color: var(--color-sub);
  box-shadow: 0 0 0 3px rgba(60, 157, 179, 0.2);
}

/* モバイル対応 */
@media (max-width: 900px) {
  .carousel-outer { flex-direction: column; }
  .carousel-prev, .carousel-next { display: none; } /* モバイルはスワイプ操作前提でボタン非表示 */
.carousel-viewport {
    overflow-x: auto !important; /* はみ出た分をスクロール可能に */
    overflow-y: hidden;
    scroll-snap-type: x mandatory; /* スワイプした時にカードの端でピタッと止める */
    -webkit-overflow-scrolling: touch; /* iOSでスワイプを滑らかにする */
    width: 100%;
    padding: 20px 0; /* カードの影が切れないように上下に少し余白 */
  }

}

@keyframes loop-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- お問い合わせセクション (四角形・大型) --- */
.contact-square-card {
  background: #fff;
  padding: 80px 40px;      /* 上下を厚くして大きく見せる */
  border-radius: 24px;     /* 丸すぎない四角形 */
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
  border: 1px solid #eee;
  max-width: 900px;        /* カード自体の横幅 */
  margin: 0 auto;
  text-align: center;      /* 中央揃え */
  display: flex;
  flex-direction: column;  /* 縦に並べる */
  align-items: center;
  gap: 30px;
}

.contact-square-icon {
  color: var(--color-sub);
  margin-bottom: 10px;
}

.contact-square-content h3 {
  font-size: 2rem;         /* タイトルを大きく */
  color: #1a1a1a;
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}

.contact-square-content p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
}

/* ボタン：改行対応・ボックス型 */
.btn--contact-box {
  display: inline-block;
  background-color: var(--color-sub);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.4;        /* 改行した時の行間 */
  padding: 20px 60px;      /* ボタン自体も大きく */
  border-radius: 16px;     /* 四角に近い角丸 */
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(75, 166, 195, 0.2);
}

.btn--contact-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(75, 166, 195, 0.3);
  background-color: var(--color-accent);
}

/* モバイル対応 */
@media (max-width: 768px) {
  .contact-square-card {
    padding: 60px 20px;
    border-radius: 16px;
  }
  .contact-square-content h3 {
    font-size: 1.5rem;
  }
  .btn--contact-box {
    padding: 15px 40px;
    font-size: 1.1rem;
  }
}

/* ==========================================================
   スマホ・タブレット向け最適化（追加分）
   ========================================================== */

@media (max-width: 768px) {
  /* 1. セクション共通タイトルのリサイズ（4remだと大きすぎるため） */
  .section-main-title, 
  .section__title, 
  .value .value-title2, 
  .archive-main-title {
    font-size: 2.2rem !important; /* 画面幅に合わせて縮小 */
    margin-bottom: 30px;
    line-height: 1.3;
  }

  /* 2. ヒーローセクションのテキスト調整 */
  .hero__content {
    padding-inline: 20px; /* 余白を詰めて横幅を確保 */
    width: 100%;
  }

  .hero__line h1.ja-main {
    /* スマホで1行に収まりやすく、かつ小さすぎないサイズ */
    font-size: 1.6rem !important; 
    letter-spacing: 0.05em;
    display: inline-block; /* 単語の途中で変な改行を防ぐ */
  }

  .en-sub-horizontal {
    font-size: 0.7rem !important;
    display: block;
    margin-top: 5px;
  }

  .hero__desc {
    font-size: 0.9rem !important;
    padding: 0 10px;
    margin-top: 20px;
    text-align: center;
  }

  /* 3. Aboutセクションのテキスト改行を解除 */
  /* PC用の<br>がスマホで変な位置に来るのを防ぐ */
.about-description {
    word-wrap: break-word;           /* 長い英単語などのはみ出しを防止 */
    overflow-wrap: break-word;
  }

  

  .about-description br {
    display: none; 
  }
  .about-description p {
    display: block;
    margin-bottom: 1.5em;
  }

  .about-jacket {
    width: 200px; /* 画像を少し小さくして収まりを良くする */
    margin-bottom: 20px;
  }

  /* 4. 番組バリュー（Concept）セクション */
  .value__title {
    font-size: 60px; /* 背景の巨大文字が重なりすぎるのを防止 */
  }
  
  .concept-card h3 {
    font-size: 1.1rem !important;
    word-break: break-all;
  }

  /* 5. アーカイブ（Episodes）のカード調整 */
  .grid-item {
    gap: 15px;
    align-items: center; /* 画像とテキストの中央を揃える */
  }

  .grid-item__img {
    width: 80px; /* モバイルでは画像をコンパクトに */
    height: 80px;
  }

  .grid-item__info .grid-item__title {
    font-size: 1.1rem !important;
  }

  .grid-item__query {
    font-size: 0.8rem;
    -webkit-line-clamp: 2; /* 説明文を2行に絞ってスッキリさせる */
  }

  /* 6. サポーター募集ボタンの文字サイズ */
  .btn--supporter-main {
    font-size: 1.1rem;
    padding: 15px 20px;
    width: 90%;
  }

  /* 7. リスナーの声（カルーセル） */
  .voice-card {
    width: 85vw; /* 画面幅いっぱいに近く */
    padding: 30px 20px;
    min-height: auto;
  }
  
  .voice-text {
    font-size: 0.85rem;
  }
}

/* 小さなスマホ（iPhone SEなど）向けの最終調整 */
@media (max-width: 480px) {
  .hero__line h1.ja-main {
    font-size: 1.3rem !important;
  }
  
  .section-main-title {
    font-size: 1.8rem !important;
  }
}

/* ==========================================================
   最終調整：特定セクションの非表示と表示崩れ修正
   ========================================================== */

/* 1. リスナーの声セクションを完全に非表示にする */
#listeners {
  display: none !important;
}

/* ==========================================================
   番組について：テキストとSpotifyのはみ出し修正
   ========================================================== */

@media (max-width: 900px) {
  /* 1. 説明文のテキストが画面内で確実に折り返されるようにする */
  .about-description p {
    overflow-wrap: break-word;
    word-break: break-all; /* 英単語などが長くても強制的に折る */
    white-space: normal;
    width: 100%;
  }

  /* 2. 140pxの固定ラベルとアイコンが横に並ぶと画面を突き破るので、縦並びに切り替え */
  .link-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 15px 0 !important;
  }

  .row-label {
    width: auto !important; /* 140px固定を解除 */
    margin-bottom: 10px;
  }

  /* 3. アイコンが横に並びきれない場合に折り返すようにする */
  .icon-group {
    flex-wrap: wrap;
    gap: 15px; /* スマホ用に少し隙間を調整 */
  }

  /* 4. Spotifyプレイヤーと最新エピソードの枠を画面幅に強制的に収める */
  .latest-episode-box,
  .player-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .player-container iframe {
    width: 100% !important;
    min-width: 0 !important; /* iframeが自身の最小幅を主張するのを防ぐ */
  }
}