/* =========================================
   Base / Tokens
   - リセット最小
   - 変数で色/寸法を一元管理
========================================= */
html,
body {
  margin: 0;
  overflow-x: clip; /* 横はみ出し非描画 */
}

* {
  box-sizing: border-box;
}

:root {
  /* 色 */
  --c-text: #003366;
  --c-accent: #ffd60a;
  --c-bg-soft: #fff8f0;

  /* 余白・装飾 */
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 20px;
  --space-6: 32px;
  --radius: 10px;
  --border: 2px;
  --shadow: 0 4px 12px rgba(0, 0, 0, .08);

  /* カード共通 */
  --card-w: 700px;
  --card-image-ratio: 16/7; /* 低め横長 */
  --card-image-h: 200px;    /* 互換用：固定高さ指定の残骸対策 */
}

/* =========================================
   Global Typography
   - h1/h2/p を短文指定
   - フォントユーティリティ
========================================= */
h1,
h2,
p {
  margin: 0 0 var(--space-3);
  color: var(--c-text);
  line-height: 1.2;
}

h1 {
  color: #4facf7;
  font-family: "M PLUS 1p", sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.3;
  letter-spacing: .05em;
   text-align: center;  
   padding: 0.2em 0;   /* 上下に余白 */
}

h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  color: var(--c-text);
  font-size: clamp(1.6rem, 4.5vw, 2rem);
  line-height: 1.3;
   text-align: center;  
}

p {
  font-size: clamp(1.3rem, 3.6vw, 1.6rem);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.9;
  color: var(--c-text);
}

/* フォントの簡易クラス */
.noto-regular {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
}

.noto-bold {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
}

.kosugi-regular,
.m-plus-1p-regular {
  font-family: "M PLUS 1p", sans-serif;
  font-weight: 400;
}

/* =========================================
   Break Helpers
   - PC既定は改行なし
   - SPのみ改行
========================================= */
.sp-only {
  display: none;
}

.pc-inline {
  display: inline;
}

@media (max-width: 480px) {
  .sp-only {
    display: block;
  }
  .pc-inline {
    display: none;
  }
}

/* =========================================
   Utilities
   - フルブリード画像
   - body 微調整
========================================= */
.u-full-bleed {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.u-full-bleed img {
  width: 100%;
  height: auto;
  display: block;
}

body {
  padding-top: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
}

/* =========================================
   Header / Navigation
========================================= */
/* ヘッダー本体 */
.lp-header {
  position: relative;
  width: 100%;
  height: 60px;
  background: var(--c-bg-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 10;
}

.lp-header .logo img {
  height: 40px;
}

/* ハンバーガー */
.hamburger {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  width: 100%;
  height: 5px;
  background: var(--c-text);
  border-radius: 2px;
}

/* ナビゲーション */
.lp-nav ul {
  display: none;
  position: fixed;
  top: 70px;
  right: 12px;
  width: min(82vw, 280px);
  background: var(--c-bg-soft);
  flex-direction: column;
  padding: 16px 0;
  margin: 0;
  list-style: none;
}

.lp-nav.open ul {
  display: flex;
}

.lp-nav a {
  color: var(--c-text);
  text-decoration: none;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: .9rem;
  padding: 8px 16px;
  transition: background .2s, color .2s;
}

.lp-nav a:hover {
  background: rgba(0, 0, 0, .06);
  color: var(--c-accent);
}

/* =========================================
   Hero / Titles
   - キャッチ/見出し/本文
========================================= */
.top-hero {
  background: var(--c-bg-soft);
   padding: 0px 20px 20px; 
  text-align: center;
  color: var(--c-text);
}

.top-hero img {
  width: 100%;
  max-width: 700px;
  height: 300px;
  object-fit: cover;
  object-position: center top;
  border: 6px solid #fff;
  box-sizing: border-box;
}

/* ハイライト塗り */
.strong-highlight {
  background: var(--c-accent);
  color: var(--c-text);
  padding: 0 0px;
  display: inline-block;
  font-size: 1.2em;
  font-weight: bold;
}

/* 大きめ和文見出し */
.zen-title {
  font-family: "M PLUS 1p", sans-serif;
  font-weight: 700;
  font-size: 3rem;
  color: var(--c-text);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 0.2rem;
}

.highlight-box {
  background: var(--c-accent);
  color: var(--c-text);
  padding: .2em;
  font-weight: bold;
  display: inline-block;
  font-size: 4rem;
  letter-spacing: .07em;
}

@media (max-width: 480px) {
  .zen-title {
    font-size: 2.3rem;
  }
  .highlight-box {
    font-size: 3.3rem;
    padding: .05em .1em;
    letter-spacing: .07em;
  }
}

/* キャッチ行 */
.catch-box {
  text-align: center;
  line-height: 1.1;
  margin: 0;
}

/* 「カンボジア」 */
.catch-heading {
  font-family: "Dela Gothic One", sans-serif;
  color: var(--c-text);
  background: var(--c-accent);
  padding: .2em .6em;
  font-size: clamp(3rem, 11vw, 8rem);
  display: inline-block;
  white-space: nowrap;
  letter-spacing: .07em;
}

/* 「72インターン」 */
.catch-sub {
  font-family: "Dela Gothic One", sans-serif;
  color: var(--c-text);
  font-size: clamp(2.5rem, 9vw, 7.5rem);
  display: inline-block;
  white-space: nowrap;
  margin: 0 0 0;
  letter-spacing: .05em;
}

/* サブ見出し */
.hero-subtitle {
  font-size: 2.2rem;
  font-family: "Dela Gothic One", sans-serif;
  background: var(--c-accent);
  color: var(--c-text);
  display: inline-block;
  padding: 4px 12px;
  letter-spacing: .05em;
}

/* サブサブ見出し */
.hero-subsub {
  font-size: 2rem;
  font-family: "Dela Gothic One", sans-serif;
  margin-top: 10px;
  letter-spacing: .05em;
}

/* ヒーロー本文 */
.hero-text {
  margin-top: 40px;
  line-height: 2;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.3rem;
  color: var(--c-text);
}

/* =========================================
   Prose Wrapper
   - 読み幅を制限
========================================= */
.prose {
  max-width: 68ch;
  margin-inline: auto;
  padding-inline: min(5vw, 24px);
}

.prose--narrow {
  max-width: 56ch;
}

.prose--wide {
  max-width: 80ch;
}

/* =========================================
   Buttons / Banners
========================================= */
.banner-button,
.banner-button-black,
.banner-button-gray {
  display: inline-block;
  font-weight: bold;
  padding: 12px 24px;
  text-decoration: none;
  text-align: center;
  margin: 40px auto;
}

.banner-button {
  background-color: var(--c-accent);
  color: var(--c-text);
}

.banner-button-black {
  background-color: var(--c-bg-soft);
  color: var(--c-text);
  border: 2px solid var(--c-text);
}

.banner-button-gray {
  background-color: #ccc;
  color: var(--c-text);
  border-radius: 0;
}
/* 固定バナー */
.fixed-button {
  position: fixed;
  inset: auto 20px 20px auto;   /* 右下に固定 */
  left: auto !important;        /* left:0 を無効化 */
  right: 20px !important;       /* 念のため明示 */
  z-index: 10000;

  display: inline-block;
  padding: 18px 36px;           /* サイズを1.3倍 */
  background: #FFD700;          /* 黄色ベース */
  color: #003366;               /* 紺文字 */
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  box-shadow: 6px 6px 0 #003366;/* 紺の影 */
  transition: background .3s;
}

.fixed-button:hover {
  background: #FFC300;          /* ホバー時に濃い黄色 */
}


/* =========================================
   Movie (16:9)
========================================= */
.mv-video {
  position: relative;
  width: 100%;
  margin: 0 0 60px;
  background: var(--c-bg-soft);
  z-index: 2;
}

.mv-video::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.mv-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================
   Reason（縦→PC2カラム）
========================================= */
.reason-section {
  text-align: center;
   background-color:#e7f6ff
}

.reason-section .prose {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .reason-section .prose {
    grid-template-columns: 1fr 1fr;
  }
}

/* イラスト */
.reason-illustration {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: 0 auto; 
}

@media (max-width: 480px) {
  .reason-illustration {
    width: 160px;
    height: 160px;
  }
}

/* カード骨格 */
.reason-item {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

/* ヘッダ行 */
.reason-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 16px;
}

/* 通し番号 */
.reason-number {
  color: var(--c-text);
  margin-right: 12px;
  font-weight: 700;
  line-height: 1;
  font-size: 4rem;
}

@media (max-width: 480px) {
  .reason-number {
    font-size: 5rem;
  }
}

/* 区切り線 */
.reason-line {
  flex: 0 0 70%;
  height: 1px;
  background-color: var(--c-text);
}

/* カード見出し */
.reason-title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--c-text);
  margin: 8px 0 16px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* カード本文 */
.reason-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* 横長バナー */
.reason-banner img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* =========================================
   Program 概要（カード＋スライダー）
========================================= */
/* セクション枠 */
.program-section {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
}

/* セクション見出し */
.program-section .section-title,
.program-section > h2 {
  border: 8px solid var(--c-text) !important;
  box-sizing: border-box !important;
  padding: 6px 16px !important;
  display: inline-block !important;
  margin-bottom: 24px !important;
  position: relative !important;
  z-index: 6 !important;
  background: #fff;
  color: var(--c-text);
}

/* カード外枠 */
.program-block {
  border: 4px solid var(--c-text);
  margin-bottom: 56px !important;
  max-width: var(--card-w);
  margin-inline: auto;
  overflow: visible;
  position: relative;
}

/* 画像ラッパー */
.program-image-wrapper {
  aspect-ratio: var(--card-image-ratio);
  height: auto !important;
  overflow: hidden;
  position: relative;
}

/* スライダー拡張 */
.program-image-wrapper.slider {
  height: auto !important;
  margin-top: 0 !important;
}

.program-image-wrapper .slides {
  display: flex;
  height: 100% !important;
  transition: transform .4s ease;
}

.program-image-wrapper .slides img {
  flex: 0 0 100%;
   width: 100%;
  height: 100% !important;   /* 互換ルールの固定高さを無効化 */
  object-fit: cover;          /* 余白なくフィル（必要に応じて切り取り） */
  object-position: 50% 50%;   /* 中央基準（後述のクラスで個別調整） */
}

/* 特定画像のトリミング */
.slides img.top-focus {
  object-position: 50% 20%;
}

/* 矢印ボタン */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .65);
  color: #666;
  border: 1px solid rgba(0, 0, 0, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  backdrop-filter: blur(2px);
  cursor: pointer;
  z-index: 4;
}

.slider-btn.prev {
  left: 8px;
}

.slider-btn.next {
  right: 8px;
}

.slider-btn:hover,
.slider-btn:focus-visible {
  background: rgba(255, 255, 255, .88);
  color: #333;
  outline: none;
}

.slider-btn:active {
  transform: translateY(-50%) scale(.96);
}

@media (max-width: 480px) {
  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}

/* プログラム概要 見出し：位置だけ調整 */
/* プログラム概要 見出し：かぶり防止で上にずらす */
.program-heading {
  position: relative;   /* z-indexを効かせるため */
  z-index: 20;          /* サブタイトルより前面に */
  margin-top: -60px;    /* 上に持ち上げ（調整OK） */
  margin-bottom: 60px;  /* 下に余白 */
}


/* 帯見出し（中央寄せ・1行固定・太枠） */
.program-subtitle {
  position: absolute !important;          /* 画像上に重ねる配置 */
  top: -72px !important;                  /* 上にずらす（必要なら -72px などに調整） */
  left: 50% !important;                   /* 横中央に配置 */
  transform: translateX(-50%) !important; /* 中央寄せのための補正 */
  z-index: 10 !important;                 /* 他要素より前に表示 */

  background-color: var(--c-bg-soft);     /* 帯の背景色 */
  color: #003366;                         /* 文字色 */
  font-family: "M PLUS 1p", sans-serif; /* フォント */
  font-size: 1.8rem;                      /* 文字サイズ */
  font-weight: bold;                      /* 太字（強調） */

  padding: 6px 16px;                      /* 内側の余白 */

  border-width: 4px !important;           /* 枠線の太さ */
  border-style: solid !important;         /* 枠線のスタイル */
  border-color: #003366 !important;       /* 枠線の色（濃紺） */

  white-space: nowrap !important;         /* 必ず1行にする */
  overflow: hidden !important;            /* はみ出し部分を非表示 */
  text-overflow: ellipsis !important;     /* 長い場合は「…」で省略 */
}

/* カード本文 */
.program-text {
  padding: 12px 20px 20px;
  background-color: #fff;
  text-align: left;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
}

/* 行数制御（閉） */
.clamp-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 3;
  transition: max-height .3s ease;
}

/* 行数制御（開） */
.program-text.expanded .clamp-text {
  display: block;
  -webkit-line-clamp: unset;
}

/* 読み進めボタン */
.program-text .read-more {
  display: inline-block;
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--c-text);
  font-weight: 700;
  cursor: pointer;
  font-family: "Noto Sans JP", sans-serif;
  text-decoration: underline;
}

.program-text .read-more:hover {
  opacity: .85;
}

/* ツアー概要カード */
.program-summary-card {
  background: #fff8e1;       /* 薄黄色 */
  padding: 24px 20px;
  margin-top: 40px;
  max-width: 800px;
  margin-inline: auto;
  text-align: left;
  box-shadow: none;          /* 影なし */
}

.summary-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #003366;            /* ダークブルー */
  text-align: center;
}

.summary-list {
  list-style: disc;
  padding-left: 1.5em;
  margin: 0;
  color: #003366;            /* ダークブルー */
  font-size: 1rem;
  line-height: 1.8;
}

/* プログラム概要 見出しをさらに上へ */
.program-heading {
  margin-top: -120px;   /* -60px → -90px に調整 */
  margin-bottom: 60px;
}



/* =========================================
   Voices（参加者の声）
========================================= */
/* セクション */
.voices-section {
  background: var(--c-bg-soft);
  padding: 60px 20px;
  color: var(--c-text);
  text-align: center;
  margin-bottom: 0px;
}

/* カード */
.voice-card {
  border-bottom: 0;
  max-width: var(--card-w);
  margin: 0 auto 40px;
}

/* 画像ラッパー（外に出す） */
.voice-image-wrapper {
  position: relative;
  margin-bottom: 0;
  aspect-ratio: var(--card-image-ratio);
  height: auto;
  overflow: visible !important;
}

.voice-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* タイトル帯（画像にかぶせ） */
.voice-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -30px !important;
  z-index: 10 !important;
  background: var(--c-accent);
  color: var(--c-text);
  font-family: "M PLUS 1p", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.2;
  padding: 10px 14px;
  margin: 0 !important;
  box-shadow: none !important;
  letter-spacing: .05em;
}

/* 本文（帯分の余白確保） */
.voice-text {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--c-text);
  text-align: left;
  padding: 46px 20px 20px !important;
  font-size: 1rem;
  line-height: 1.8;
  margin-top: 0 !important;
}

/* 行数制御（閉） */
.voice-text .clamp-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
  transition: max-height .3s ease;
}

/* 行数制御（開） */
.voice-text.expanded .clamp-text {
  display: block;
  -webkit-line-clamp: unset;
}

/* 読み進め */
.voice-text .read-more {
  display: inline-block;
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--c-text);
  font-weight: 700;
  cursor: pointer;
  font-family: "Noto Sans JP", sans-serif;
}
/* 外部リンク */
.voices-link-wrap {
  margin-top: 8px;
}

.voices-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1;

  background: #FFD700;          /* 黄色 */
  color: #003366;               /* 紺文字 */
  border: 2px solid #003366;    /* 輪郭 */
  border-radius: 0;             /* ← 丸みなし */
  box-shadow: 4px 4px 0 #003366;/* 影でボタン感UP */
  transition: transform .08s ease,
              box-shadow .08s ease,
              background .2s ease;
}

.voices-link:hover {
  background: #FFC300;
  transform: translate(-1px,-1px);
  box-shadow: 6px 6px 0 #003366;
}

.voices-link:active {
  transform: translate(0,0);
  box-shadow: 2px 2px 0 #003366;
}

.voices-link:focus-visible {
  outline: 3px solid #003366;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .voice-title {
    font-size: 1.35rem;
    padding: 8px 12px;
  }
  .voices-link {
    padding: 12px 18px;  /* スマホで少し小さめ */
  }
}


/* =========================================
   Case（事例） - 統合版
========================================= */
.case-section {
  background-color: var(--c-accent);
  padding: 60px 20px;
  text-align: center;
}

.case-block {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.case-block.reverse { flex-direction: row-reverse; }

.case-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  display: block;
  border: 4px solid var(--c-text);
}

.case-text {
  flex: 1;
  max-width: 500px;
  text-align: left;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--c-text);
  font-size: 1rem;
  line-height: 1.6;
}

/* リスト（✔ 表示） */
.case-text ul {
  margin: 0;
  padding: 0;            /* 左インデントをゼロに */
  list-style: none;      /* 黒丸を完全に無効化 */
}
.case-text li {
  position: relative;
  padding-left: 1.4em;   /* ✔ 用スペース */
  margin-bottom: 0.4em;
  list-style: none;      /* 念のため li 側でも無効化 */
}
/* Safari等の保険 */
.case-text li::marker { content: ""; }

.case-text li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 1rem;
  line-height: 1;
  color: #0b3d91;        /* ダークブルー */
}
.case-section {
  background-color: var(--c-accent);
  padding: 60px 20px;
  text-align: center;
}

.case-block {
  display: flex;
  flex-direction: column;   /* ← 常に縦並び */
  align-items: center;      /* 画像とテキストを中央揃え */
  gap: 20px;
  margin-bottom: 60px;
  /* flex-wrap: wrap; ← 不要なので外す */
}
/* .case-block.reverse { flex-direction: row-reverse; } ← 使わないなら削除 */

.case-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  display: block;
  border: 4px solid var(--c-text);
}

.case-text {
  width: 100%;
  max-width: 500px;
  text-align: left;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--c-text);
  font-size: 1rem;
  line-height: 1.6;
}

/* ✔ リスト */
.case-text ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.case-text li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.4em;
  list-style: none;
}
.case-text li::marker { content: ""; }
.case-text li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 1rem;
  line-height: 1;
  color: #0b3d91;
}
.case-section {
  background-color: var(--c-accent);
  padding: 60px 20px;
  text-align: center;
}

/* 縦並びで中央寄せ */
.case-block {
  display: flex;
  flex-direction: column;
  align-items: center;   /* 子を中央に */
  gap: 20px;
  margin-bottom: 60px;
}

/* 画像はラッパーを用意して幅を制御 */
.case-image { width: 100%; max-width: 400px; margin-inline: auto; }
.case-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border: 4px solid var(--c-text);
}

/* テキストは幅を100%にしない → 中央に“箱”を置く */
.case-text {
  max-width: 500px;
  width: auto;                /* ← ここがポイント（100%をやめる） */
  margin-inline: auto;        /* 念のため中央寄せ */
  text-align: left;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--c-text);
  font-size: 1rem;
  line-height: 1.6;
}

/* ✔ リスト（そのままでOK） */
.case-text ul { margin: 0; padding: 0; list-style: none; }
.case-text li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.4em;
  list-style: none;
}
.case-text li::marker { content: ""; }
.case-text li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 1rem;
  line-height: 1;
  color: #0b3d91;
}


/* =========================================
   Timeline（参加までの流れ） — 修正版
========================================= */

/* セクション本体：背景も filter も外す（子要素が白黒化されるのを防ぐ） */
.timeline-section {
  margin-top: 0; 
  position: relative;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden; /* 背景レイヤーのはみ出し防止 */
}

/* 背景画像＋白黒は ::before で背面に敷く */
.timeline-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('img/top/in-background1.jpg') center/cover no-repeat;
  filter: grayscale(100%);   /* ← 白黒は背景だけ */
  z-index: 0;
}

/* 白のトーンオーバーレイ（必要なら残す） */
.timeline-section .bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .7);
  pointer-events: none;
  z-index: 1; /* 背景より前、コンテンツより後ろ */
}

/* コンテンツは最前面 */
.timeline-section > *:not(.bg-overlay) {
  position: relative;
  z-index: 2;
}

/* 見出し：背景なし＆濃紺 */
.timeline-section h1 {
  color: #003366;
  background: transparent;
  border: 0;
}

/* タイムライン本体 */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 400px;
}
.timeline::before { display: none; }

/* タイムライン項目 */
.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  padding-left: 60px;
}

/* テキスト（濃紺） */
.timeline-item p {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: #003366;            /* ← ここが効くようになる */
}

/* マーカー共通 */
.marker {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
}

/* PNGアイコン（色付きで表示されるようになる。CSSでは色変えしない） */
.marker.icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

/* ドット（中身も枠も濃紺） */
.marker.dot {
  background: #003366;
  border-radius: 50%;
  border: 2px solid #003366;
}

/* 垂直の線（濃紺） */
.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: calc(50% + 16px);   
  transform: translateX(-50%);
  width: 2px;
  height: calc(40px + 16px);       
  background: #003366;
  z-index: 1;
}


/* =========================================
   Support（安全・サポート体制）
========================================= */
.support-section {
  background-color: #e7f6ff;
  padding: 60px 20px;
  text-align: center;
}

.support-sub {
  font-family: "Noto Sans JP", sans-serif;
  color: #003366;
  margin-bottom: 40px;
}

.support-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  margin: 0 auto 40px;
  text-align: center;
}

.support-image img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  background: none;
  border: none;
}

.support-image img.img-1 {
  object-position: center top; /* 水平方向は中央、垂直方向は上寄せ */
}
.support-image img.img-2 {
  object-position: left center; /* 水平方向は左、垂直方向は中央 */
}


.support-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.2rem;
  color: var(--c-text);
  margin: 20px 0 8px;
}

.support-body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  color: #003366;
  line-height: 1.6;
  margin: 0;
}

/* =========================================
   FAQ（details/summary）
========================================= */

#faq {
  position: relative;
  z-index: 2;
}

/* 全体余白 */
.faq-section {
  padding-inline: 16px;
}

/* 各Q&Aボックス */
.faq-section details {
  background: #fff;
  color: #003366;
  width: min(100%, 72ch);
  margin: 12px auto;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 1rem;
}

/* 質問（summary） */
.faq-section summary {
  display: flex;                 /* ▶を左に、テキストを右に */
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  line-height: 1.6;
  max-width: 66ch;
  margin-inline: auto;
  list-style: none;              /* 既定マーカー消し */
}
.faq-section summary::-webkit-details-marker { display: none; }

/* 三角アイコン（閉→開） */
.faq-section summary::before {
  content: "▶";
  margin-right: 6px;
  font-size: 0.95rem;
  line-height: 1;
  flex: 0 0 auto;
}
.faq-section details[open] summary::before { content: "▼"; }

/* 開いた時の質問色 */
.faq-section details[open] summary { color: var(--c-accent); }

/* 回答（p） */
.faq-section details p {
  max-width: 62ch;
  margin: 10px auto 0;
  font-size: 0.95rem;            /* 回答だけ少し小さく */
  line-height: 1.9;
}

/* フォーカス可視化 */
.faq-section summary:focus {
  outline: 2px solid #99c;
  outline-offset: 3px;
}

/* モバイル調整 */
@media (max-width: 480px) {
  .faq-section details { width: 100%; }
  .faq-section summary,
  .faq-section details p { max-width: 100%; }
  .faq-section details p { font-size: 0.9rem; }
}

/* =========================================
   Footer / Org（運営）
========================================= */
.org-section {
  background: #fff; /* セミコロン修正済み */
  color: var(--c-text);
  text-align: center;
  padding: 72px 20px;
}

.org-inner {
  max-width: 720px;
  margin-inline: auto;
}
/* ロゴ画像を中央＆リサイズ */
.org-inner img {
  display: block;       /* 中央寄せ用 */
  margin: 0 auto 24px;  /* 自動で中央寄せ＋下余白 */
  max-width: 260px;     /* 横幅の上限（調整可） */
  height: auto;         /* アスペクト比維持 */
}


.org-title {
  font-family: "Dela Gothic One", "Noto Sans JP", sans-serif;
  font-size: 2rem;
  margin: 0 0 24px;
  letter-spacing: .05em;
}

.org-text {
  line-height: 1.9;
  font-size: 1rem;
  margin: 0 auto 28px;
  max-width: 36em;
  opacity: .95;
}

.org-cta {
 margin-bottom: 64px; /* ←好みで調整、例: 64px */
  display: inline-block; /* voices-link に合わせる */
}

.org-cta:hover {
  opacity: .9;
}

.org-cta:active {
  transform: translateY(1px);
}

.org-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.org-socials li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
}

.org-socials img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  display: block;
}

@media (max-width: 480px) {
  .org-title {
    font-size: 1.7rem;
  }
  .org-socials {
    gap: 18px;
  }
  .org-socials li a {
    width: 84px;
    height: 84px;
  }
}
/* =========================================
   CTA（斜め帯・ボタン）
========================================= */

/* 1か所目（YouTube直下）の寄せ */
#cta {
  position: relative;
  z-index: 1;
  margin-top: -10vw; /* SP基準：動画に寄せる */
}

/* CTA全体の上下余白 */
.cta-steps {
  padding: 6px 0 8px;
}

/* 各ステップ枠の基本（スタッキング独立＋前後関係の安定化） */
.cta-step {
  position: relative;
  margin: 0;
  padding: 48px 20px 40px;
  overflow: visible;
  isolation: isolate;   /* 背景が消えないようスタックを独立 */
  z-index: 0;           /* 背景(0) < 中身(1) の層構成 */
}
.cta-step::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 100vw;
  z-index: 0;           /* 背景層 */
  pointer-events: none;
  --slope-top-left: 18%;
  --slope-top-right: 0%;
  --slope-btm-right: 82%;
  --slope-btm-left: 100%;
}
.cta-step > * { position: relative; z-index: 1; }

/* -----------------------------------------
   STEP1（青）— 上辺は水平、下辺は斜めのまま
   ※ デフォルト（全体）はニュートラル
----------------------------------------- */
.cta-step--1 {
  margin-top: 0;
  padding-top: 56px;
  padding-bottom: 56px;
  --slope-top-left: 0%;
  --slope-top-right: 0%;
}
.cta-step--1::before {
  background: #e7f6ff;
  clip-path: polygon(
    0 var(--slope-top-left),
    100% var(--slope-top-right),
    100% var(--slope-btm-right),
    0 var(--slope-btm-left)
  );
}

/* 1か所目 STEP1（#cta 直下） */
#cta .cta-step--1 {
  margin-top: -12vw;                 /* SP：動画に寄せる */
  padding-top: calc(48px + 7vw);
}
#cta .cta-step--1::before {
  top: -10vw;
  bottom: -32px;                      /* クリームと自然につなぐ */
}
/* PCで詰めすぎ防止 */
@media (min-width: 769px) {
  #cta .cta-step--1 {
    margin-top: -2.5vw;
    padding-top: calc(48px + 4.2vw);
  }
  #cta .cta-step--1::before {
    top: -4vw;
    bottom: -34px;
  }
}

/* -----------------------------------------
   STEP2（クリーム）
----------------------------------------- */
.cta-step--2 {
  margin-top: -40px;  /* SP：青と寄せる */
  padding-top: 40px;
  padding-bottom: 60px;
}
.cta-step--2::before {
  background: #fff6dd;
  clip-path: polygon(
    0 var(--slope-top-left),
    100% var(--slope-top-right),
    100% var(--slope-btm-right),
    0 var(--slope-btm-left)
  );
  top: 0;
  bottom: -20px;
}
/* PC：さらに詰める */
@media (min-width: 769px) {
  .cta-step--2 { margin-top: -60px; }
}

/* -----------------------------------------
   2か所目 STEP1（下の青）
   → 上コンテンツにかぶらないよう下げる＋右上角だけ少し下げる
----------------------------------------- */
.cta-steps + .cta-steps .cta-step--1 {
  margin-top: 80px;   /* SP：下げる */
  padding-top: 56px;  /* 余白は標準＝青の見かけ増加を防止 */
  --slope-top-right: 10%; /* 右上角だけ下げる */
}
.cta-steps + .cta-steps .cta-step--1::before {
  top: 0;
  bottom: -40px;
}
/* PCで位置をさらに下げつつ余白は控えめに */
@media (min-width: 769px) {
  .cta-steps + .cta-steps .cta-step--1 {
    margin-top: 100px;
    padding-top: 20px;
    --slope-top-right: 6%;
  }
  .cta-steps + .cta-steps .cta-step--1::before {
    bottom: -30px;
  }
}

/* -----------------------------------------
   2か所目 STEP2（クリーム）
   → 青との隙間がわずかに空いたので 10px 上詰め
----------------------------------------- */
.cta-steps + .cta-steps .cta-step--2 { margin-top: -90px; }      /* SP */
@media (min-width: 769px) {
  .cta-steps + .cta-steps .cta-step--2 { margin-top: -70px; }    /* PC */
}


/* -----------------------------------------
   共通パーツ（タイポグラフィ／ボタン）
----------------------------------------- */
.cta-step__title {
  font-family: "M PLUS 1p", sans-serif;
  font-size: clamp(1.3rem, 5vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 6px;
  font-weight: 900;
  color: var(--c-text) !important;
  letter-spacing: .10em;
}
.cta-eyebrow {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(.95rem, 2.8vw, 1.1rem);
  margin: 2px 0 8px;
  color: var(--c-text);
}
.cta-note {
  text-align: center;
  font-size: clamp(.85rem, 3.5vw, 1rem);
  margin: 6px auto 0;
}

/* CTAボタン */
.cta-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  text-decoration: none;
  color: #fff;
  border: none;
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--c-text);
  transition: transform .08s ease, box-shadow .08s ease, opacity .2s ease;
}
.cta-button img { max-width: none; height: auto; }
.cta-button:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--c-text); }
.cta-button:active { transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--c-text); }
.cta-button__label { font-size: clamp(1.25rem, 4.8vw, 1.8rem); font-weight: 800; letter-spacing: .02em; }
.cta-button__icon { flex: 0 0 40px; width: 40px; height: 40px; }
.cta-button__icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cta-button::before { content: none !important; }

/* カラーバリエーション */
.cta-button--line {
  background: linear-gradient(135deg, #87dbff 0%, #4facf7 52%, #0e4a8a 100%);
}
.cta-button--apply {
  background: linear-gradient(135deg, #ffe766 0%, #ffc84a 50%, #ff9333 100%);
  color: var(--c-text);
}

/* キラーン効果 */
.cta-button.is-shine { position: relative; overflow: hidden; }
.cta-button.is-shine::after {
  content: "";
  position: absolute;
  inset: -20% -60% -20% auto;
  width: 40%;
  transform: skewX(-20deg);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, .5) 50%,
    rgba(255, 255, 255, 0) 70%,
    transparent 100%
  );
  animation: ctaShine 2.4s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes ctaShine { 0%{ right:110%; } 100%{ right:-70%; } }
@media (prefers-reduced-motion: reduce) { .cta-button.is-shine::after { animation: none; } }

/* SP向けボタン調整 */
@media (max-width: 480px) {
  .cta-button { width: 100%; justify-content: center; min-height: 56px; }
}
/* ── CTA 2か所目の境界ずれ対策（スマホ） ── */
@media (max-width: 480px) {
  /* 青の帯を気持ち長く（下へ 1〜2px 余分に） */
  .cta-steps + .cta-steps .cta-step--1::before {
    bottom: -52px; /* 既存 -40px から -50〜-54px の範囲で微調整 */
  }

  /* クリーム側は少しだけ上に被せる＆前面へ */
  .cta-steps + .cta-steps .cta-step--2 {
    margin-top: -96px;  /* 既存 -90px から -94〜-100px で微調整 */
    z-index: 2;         /* 縫い目で上に来るように */
  }
  .cta-steps + .cta-steps .cta-step--2::before {
    top: -2px;          /* ← ここがポイント：上端を 1〜2px 被せる */
    bottom: -24px;      /* 既存 -20px から少しだけ伸ばす */
  }
}


/* =========================================
   Misc（互換）
   - 既存の固定高さ指定に合わせた保険
========================================= */
.slides img {
  height: var(--card-image-h);
}

/* =========================================
   Patch: Program & Voice 本文のサイズを小さめ固定
   - グローバル p の clamp をここで打ち消す
   - 必ずファイルの最後に置くこと（勝たせるため）
========================================= */
.program-text .clamp-text,
.voice-text .clamp-text {
  font-size: 1rem;  /* 14px 相当に固定 */
  line-height: 1.6;     /* 行間は読みやすさ優先で少しだけ広め */
}

/* =========================================
/* ===== H1：左からシュッ（スクロールで一度だけ）
 ===== */

.anim-title-left {
  opacity: 0;
  transform: translate3d(-40px, 0, 0);
  will-change: transform, opacity;
  transition:
    transform 420ms cubic-bezier(.2,.8,.2,1),
    opacity 300ms ease-out;
}

.anim-title-left.is-in {
  opacity: 1;
  transform: none;
}

/* モーション軽減：フェードのみ */
@media (prefers-reduced-motion: reduce) {
  .anim-title-left {
    transform: none !important;
  }
  .anim-title-left.is-in {
    transition: opacity 160ms linear;
  }
}
/* ===== 下からふわっと（スクロールで一度だけ） ===== */
.anim-up {
  opacity: 0;
  transform: translate3d(0, 24px, 0);  /* 24px 下から */
  will-change: transform, opacity;
  transition:
    transform 360ms ease-out,
    opacity 300ms ease-out;
}

.anim-up.is-in {
  opacity: 1;
  transform: none;
  transition:
    transform 360ms ease-out 250ms, /* ← 最後の数字が delay */
    opacity 300ms ease-out 200ms;
}


/* モーション軽減：フェードのみ */
@media (prefers-reduced-motion: reduce) {
  .anim-up {
    transform: none !important;
  }
  .anim-up.is-in {
    transition: opacity 160ms linear;
  }
}
/* ===== 1) タイプ風（ページロード時） ===== */
.hero-title { position: relative; }
.hero-line {
  display: inline-block;
  white-space: nowrap;
  padding-right: .1em;
  /* 初期は空文字（JSで文字が増える） */
  animation: none;
}
.hero-line.is-typed {  }


/* ===== 2) 「稼げ」左からシュッ ===== */
.hero-kasege {
  display: inline-block;
  opacity: 0;
  transform: translate3d(-40px, 0, 0);
  transition:
    transform 420ms cubic-bezier(.2,.8,.2,1),
    opacity 260ms ease-out;
}
.hero-kasege.is-in {
  opacity: 1;
  transform: none;
}

/* ===== 3) 見出し2つをポップイン（拡大で出現） ===== */
.hero-pop {
  display: inline-block;
  opacity: 0;
  transform: scale(.86);
  transform-origin: center;
  transition:
    transform 420ms cubic-bezier(.2,.8,.2,1),
    opacity 260ms ease-out;
}
.hero-pop.is-in {
  opacity: 1;
  transform: none;
}
/* ステッガー（順番出し）：「カンボジア」→「72インターン」 */
.hero-pop.is-in:nth-of-type(1) { transition-delay: 40ms; }
.hero-pop.is-in:nth-of-type(2) { transition-delay: 140ms; }

/* モーション軽減：タイプ省略＆フェードのみ */
@media (prefers-reduced-motion: reduce) {
  .hero-line { animation: none; }
  .hero-kasege, .hero-pop {
    transition: opacity 160ms linear !important;
    transform: none !important;
  }
}

/* JS未実行フォールバック */
html.no-js .anim-up,
html.no-js .anim-title-left {
  opacity: 1 !important;
  transform: none !important;
}

/* ===== 
サポート体制
 ===== */
/* サポートページ専用の背景色 */
.section-support {
  background-color: #fff8f0;  /* お好みのクリーム色 */
  padding: 60px 20px;         /* 他のセクションと余白を合わせる */
}
/* ===== サポート体制（サポートページ専用レイアウト） ===== */
.section-support .prose {
  grid-template-columns: 1fr; /* スマホでは1列 */
}

@media (min-width: 1024px) {  /* PCは3列 */
  .section-support .prose {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================
   医療サポート
========================================= */
.medical-support {
  background: #e7f6ff;
  padding: 60px 20px;
  text-align: center;
  color: #003366;
}

.medical-support h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.medical-support .logo {
  display: block;
  margin: 0 auto 20px;
  max-width: 200px;
  height: auto;
}

.medical-support .lead {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.medical-support .sub-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 30px 0;
}

/* 画面端まで背景を広げる */
.full-bleed {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* カード全体 */
.card-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: #fff;         /* 本体は白 */
  color: #003366;
  border-radius: 0;         /* 角丸なし */
  overflow: hidden;         /* タイトル帯と揃える */
  display: flex;
  flex-direction: column;
  padding: 0;               /* 余白はヘッダーと本文に持たせる */
}

/* タイトル帯（上部） */
.card-header {
  background: #003366;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.card-header img,
.card-header svg {
  width: 28px;
  height: 28px;
  display: block;
  margin-right: 8px;
}

.card-header h3 {
  margin: 0;
  font-size: 1rem;
}

/* 本文（下部） */
.card-body {
  background: #fff;
  color: #003366;
  padding: 16px 20px;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* CTAブロック */
.cta {
  text-align: center;
  margin-top: 40px;
}

.cta-title {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: #003366;
}

.cta-btn {
  display: inline-block;
  background: #003366;
  color: #fff;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.cta-btn:hover {
  background: #002244; /* 濃いめに */
}

/* レスポンシブ */
@media (max-width: 768px) {
  .card-wrap {
    grid-template-columns: 1fr;
  }
  .medical-support .lead {
    font-size: 0.95rem;
  }
}
