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

/* --- 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: 120px; /* ヘッダーの高さ(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;
}

/* --- 7. Archive (COTEN Style Grid) --- */
.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;
    padding-left: 0;
    width: 100%;
  }

 .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;
}

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

/* COTEN風の大きなボタンデザイン */
.btn--supporter-main {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  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-dot {
  width: 12px;
  height: 12px;
  background-color: var(--color-sub);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.btn--supporter-main:hover .btn-dot {
  background-color: #fff;
}

/* --- Supporter Plan Buttons (COTEN Style) --- */
.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: 60vh; /* 最小高さも少し低く */
  }}

.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;
  }

  /* ローディング画面のスタイル */
#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;
  }
}

/* --- JR East Inspired Blue Theme --- */
:root {
  --jr-blue: #005bac;
  --jr-bg-light: #f7f9fc;
}

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


/* --- JR East Style System --- */

/* 1. STATEMENT */
.jr-statement {
  background: #fff;
  padding: 160px 0 100px;
}
.jr-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
  padding: 0 40px;
}
.jr-flex-reverse {
  flex-direction: row-reverse; /* 画像右、テキスト左 */
}
.jr-image-area {
  flex: 1.2;
}
.jr-main-visual {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}
.jr-text-area {
  flex: 1;
  display: flex;
  gap: 40px;
}
.jr-sticky-label {
  position: sticky;
  top: 150px;
  height: fit-content;
}
.jr-vertical-text {
  writing-mode: vertical-rl;
  font-size: 2.4rem;
  line-height: 1.5;
  color: #1a1a1a;
  font-family: "Zen Maku Gothic", serif;
}
.jr-main-description {
  padding-top: 10px;
  font-size: 1rem;
  line-height: 2.2;
}

/* 2. Transition Section */
.jr-transition {
  background: #f7f9fa;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jr-transition-text {
  font-size: 3rem;
  font-weight: 700;
  color: #1d362e;
  letter-spacing: 0.2em;
}

/* 3. Leader Message (Plan B) */
.jr-leader-msg {
  padding: 100px 0;
  background: #fff;
}
.jr-msg-box {
  position: relative;
  background: #f8f8f8;
  padding: 80px;
  width: 100%;
  display: flex;
  gap: 60px;
}
/* JR風の背景図形あしらい */
.jr-msg-deco {
  position: absolute;
  top: 0; right: 0;
  width: 300px; height: 100%;
  background: linear-gradient(135deg, transparent 50%, #e0e0e0 50%);
  opacity: 0.5;
}
.jr-msg-content { position: relative; z-index: 1; }
.jr-msg-title { font-size: 2.5rem; margin-bottom: 30px; color: #1d362e; }
.jr-msg-lead { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.rec-item { 
  border-bottom: 1px solid #ddd; 
  padding: 15px 0; 
  font-weight: 500;
}
.jr-arrow-link {
  display: inline-block;
  margin-top: 40px;
  color: #1d362e;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid #1d362e;
}

/* 4. Entry Selection (JR ENTRY/MY PAGE) */
.jr-entry-selection {
  background: #fff;
}
.jr-entry-grid {
  display: flex;
  height: 350px;
}
.jr-entry-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  transition: flex 0.5s ease;
}
.jr-entry-item:hover { flex: 1.2; }
.jr-bg-green { background: #1d362e; }
.jr-bg-dark { background: #333; }
.jr-entry-inner h3 { font-size: 0.9rem; letter-spacing: 0.3em; margin-bottom: 10px; opacity: 0.8; }
.jr-entry-inner p { font-size: 1.5rem; font-weight: 700; margin-bottom: 30px; }
.jr-entry-btn {
  display: inline-block;
  padding: 15px 40px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  border-radius: 100px;
  font-weight: 700;
  transition: background 0.3s;
}
.jr-entry-btn:hover { background: #fff; color: #1d362e; }

/* Responsive */
@media (max-width: 900px) {
  .jr-container { flex-direction: column; padding: 0 20px; }
  .jr-text-area { flex-direction: column; }
  .jr-vertical-text { writing-mode: horizontal-tb; height: auto; }
  .jr-entry-grid { flex-direction: column; height: auto; }
  .jr-entry-item { padding: 60px 20px; }
}
/* --- JR East Style System - Updated --- */

/* 1. Base Utility for Animation */
/* コンテナ全体を監視するためのクラス */
.reveal-container {
  overflow: hidden;
}

/* アニメーションの初期状態（下から浮き上がる） */
.reveal-item, .jr-transition-text.reveal-item, .jr-msg-box.reveal-item {
  opacity: 0;
  transform: translateY(40px); /* 動きを大きく */
  transition: opacity 1.6s ease, transform 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: transform, opacity; /* パフォーマンス向上 */
}

/* 画面内に入った時の状態 */
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 1. HERO (全て横書き) */
.jr-hero {
  background: #fff;
  padding: 180px 0 120px;
  min-height: 90vh; /* 十分な高さを確保 */
  display: flex;
  align-items: center;
}
.jr-hero-flex {
  display: flex;
  gap: 80px;
  align-items: center;
}
.jr-hero-image { flex: 1; }
.jr-hero-text { flex: 1.5; }
.jr-hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.4;
  color: #1a1a1a;
  margin-bottom: 40px;
  font-family: "Zen Maku Gothic", serif;
  text-align: center;
}
.jr-hero-description p {
  font-size: 1.2rem;
  line-height: 2;
  margin-bottom: 20px;
  color: #444;
}

/* 2. Transition (高さを十分に確保・アニメーション調整) */
.jr-transition {
  background: #f7f9fa;
  height: 100vh; /* 画面いっぱいの高さ */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.jr-transition-text {
  font-size: clamp(1.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #1d362e;
  letter-spacing: 0.3em;
  white-space: nowrap;
}
/* 1文字ずつ現れるアニメーションのためのスタイル */
.jr-split-text span {
  display: inline-block;
  opacity: 0;
  transform: translateZ(0); /* ちらつき防止 */
}

/* 3. Entry Selection (順番変更・2段組内に詳細) */
.jr-entry-selection {
  background: #fff;
  min-height: 100vh; /* デバイスの高さいっぱいに */
}
.jr-entry-grid {
  display: flex;
  min-height: 100vh; /* コンテナも高さを確保 */
}
.jr-entry-item {
  flex: 1;
  padding: 120px 60px; /* 上下パディングを多く */
  color: #fff;
}
.jr-bg-green { background: #1d362e; }
.jr-bg-dark { background: #222; }

.jr-plan-header h3 { font-size: 0.9rem; letter-spacing: 0.3em; margin-bottom: 10px; opacity: 0.8; }
.jr-plan-header p { font-size: 1.8rem; font-weight: 700; margin-bottom: 60px; }

.jr-plan-desc { font-size: 1rem; line-height: 1.8; margin-bottom: 40px; opacity: 0.9; text-align: left;}

/* 金額グリッドを2段組内用に微調整 */
.jr-plan-grid-mini {
  grid-template-columns: repeat(2, 1fr); /* 2列に */
  gap: 15px;
}
.jr-plan-grid-mini .plan-btn-small {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 1.1rem;
  padding: 15px;
}
.jr-plan-grid-mini .plan-btn-small:hover {
  background: #fff;
  color: #1d362e;
}

.jr-entry-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 40px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  border-radius: 100px;
  font-weight: 700;
  transition: all 0.3s;
}
.jr-entry-btn:hover { background: #fff; color: #1d362e; }

/* 4. Leader Message (JAM 詳細・最下部) */
.jr-leader-msg {
  padding: 150px 0;
  background: #f7f9fa;
  min-height: 80vh;
}
.jr-msg-box {
  background: #fff;
  padding: 100px;
}
/* Responsive */
@media (max-width: 900px) {
  .jr-hero-flex { flex-direction: column; text-align: center; gap: 40px;}
  .jr-hero { padding-top: 120px; }
  .jr-entry-grid { flex-direction: column; height: auto; }
  .jr-entry-item { padding: 80px 20px; min-height: 80vh;}
  .jr-transition-text { font-size: 1.2rem; letter-spacing: 0.1em; }
  .jr-msg-box { padding: 40px; }
}

/* パラグラフ専用の初期状態 */
.jr-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

/* 表示された時の状態 */
.jr-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* --- スクロールスナップの有効化（親要素） --- */
html {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  /* ヘッダーの高さ(80px)＋余裕分を、スナップの停止位置として定義 */
  scroll-padding-top: 120px; 
}

/* --- 2. 各セクションの高さと挙動の最適化 --- */
.jr-hero, 
.jr-transition, 
.jr-entry-selection, 
.jr-leader-msg,
#faq {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  /* 最小高さは全画面(100vh)にするが、
     中身が多い場合は自動で縦に伸びるように 'min-height' を使用 
  */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;    /* ヘッダーと重ならないための余白 */
  padding-bottom: 60px;  /* 下端のゆとり */
  box-sizing: border-box;
}

/* --- 3. 内容が多いセクション（Plan A等）への配慮 --- */
/* 内容が1画面に収まりきらない場合でも、
   スクロールして下まで読み、次のセクションへスムーズにスナップさせる設定
*/
.jr-entry-selection {
  height: auto; 
  display: block; /* 中央寄せを解除して上から順に並べる */
}

/* フッターの調整 */
.footer {
  scroll-snap-align: end;
  min-height: auto;
  padding: 60px 0;
}