@charset "UTF-8";
/* CSS Document */

/* ============================================================
    下層ページ用スタイル
============================================================ */
/*研修カリキュラム　schdelue.html --*/

/* ---------- アンカー（第2期/第3期/第4期） ---------- */

.skd-anchor-nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 40px auto 50px;
  padding: 12px 0;
}

.skd-anchor-nav a {
  padding: 8px 18px;
  border: 1px solid var(--navy);
  border-radius: 15px;
  color: var(--navy);
  font-size: 0.95rem;
  background: #fff;
  transition: 0.3s;
  white-space: nowrap;
}
.skd-anchor-nav a:hover {
  background: var(--navy);
  color: #fff;
}


/* ---------- セクション ---------- */
.skd-section {
  padding: 70px 0;
  background: #fff;
 scroll-margin-top: 120px; /* アンカー位置補正上にある固定UIの高さ分 */
}

@media (max-width: 767px) {/* スマホ時アンカー位置補正上にある固定UIの高さ分 */
  .skd-section {
    scroll-margin-top: 130px;
  }
}


.skd-section .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 見出し ---------- */
.skd-h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  text-align: left;
}
.skd-h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text-main);
}

/* ---------- 注意文 ---------- */
.skd-alert {
  padding: 8px 0;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* ---------- テーブル ---------- */
.skd-table-box {
  margin-top: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.skd-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 560px;
}

.skd-table th {
  background: var(--navy);
  color: #fff;
  padding: 12px 10px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.skd-table td {
  padding: 12px 10px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-light);
}

/* 偶数行を少しトーンを変えて可読性UP */
.skd-table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 767px) {

  .skd-anchor-nav {
    gap: 12px;
    overflow-x: auto;
    padding: 10px 16px;
  }
  .skd-anchor-nav a {
    font-size: 0.85rem;
    padding: 7px 14px;
  }

  .skd-section {
    padding: 50px 0;
  }

  .skd-h2 {
    font-size: 1.5rem;
    text-align: left;
  }
  .skd-h3 {
    font-size: 1.05rem;
  }

  .skd-table {
    font-size: 0.85rem;
    min-width: 520px;
  }
  .skd-table th,
  .skd-table td {
    padding: 10px 8px;
  }
}

/* ============================================================
   schedule.html：SPカード化（横スクロール廃止）
============================================================ */
@media (max-width: 767px) {

  /* 横スクロール前提を解除 */
  .skd-table-box {
    overflow-x: visible;
  }

  .skd-table {
    min-width: 100%;
  }

  /* テーブルを分解してカード化 */
  .skd-table,
  .skd-table thead,
  .skd-table tbody,
  .skd-table tr,
  .skd-table th,
  .skd-table td {
    display: block;
    width: 100%;
  }

  /* ヘッダーは非表示 */
  .skd-table thead {
    display: none;
  }

  /* 1行 = 1カード */
  .skd-table tr {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
  }

  .skd-table td {
    padding: 4px 0;
    border: none;
    font-size: 0.85rem;
    line-height: 1.6;
  }

  /* 疑似ラベル（意味を保持） */
  .skd-table td:nth-child(1)::before {
    content: "回数：";
    font-weight: 600;
    color: var(--navy);
  }

  .skd-table td:nth-child(2)::before {
    content: "日程：";
    font-weight: 600;
    color: var(--navy);
  }

  .skd-table td:nth-child(3)::before {
    content: "内容：";
    font-weight: 600;
    color: var(--navy);
  }
}


/* ============================================================
   助成金ページ（grant.html）最適化版
============================================================ */

/* 共通セクション余白（schedule と揃える） */
.grant-hero,
.grant-summary,
.grant-detail,
.grant-links {
  padding: 70px 0;
}
@media (max-width: 767px) {
  .grant-hero,
  .grant-summary,
  .grant-detail,
  .grant-links {
    padding: 50px 0;
  }
}

/* 見出し */
.grant-heading {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--navy);
}
@media (max-width: 767px) {
  .grant-heading {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
}

/* ハイライトテキスト */
.grant-highlight {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 20px;
}
@media (max-width: 767px) {
  .grant-highlight {
    font-size: 1.1rem;
  }
}

/* 金額ボックス */
.grant-box {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  margin: 40px 0;
  flex-wrap: wrap;
}
.grant-item {
  background: var(--navy);
  color: #fff;
  padding: 24px 20px;
  border-radius: 12px;
  flex: 1;
  min-width: 260px;
  text-align: center;
}
.grant-title {
  font-size: 1.1rem;
  font-weight: 600;
}
.grant-value {
  margin-top: 8px;
  font-size: 1.4rem;
  font-weight: 700;
}
.grant-plus {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 40px 0;
}

/* SP：縦並びで見やすく */
@media (max-width: 767px) {
  .grant-box {
    flex-direction: column;
    gap: 16px;
    align-items: center; /* ← 追加：中央に寄せる */
  }
  .grant-item {
    width: 100%;
    min-width: auto;
  }
  .grant-plus {
    font-size: 1.6rem;
    display: block;     /* ← ブロック化 */
    text-align: center; /* ← 中央揃え */
    margin: 8px 0;      /* ← 上下余白追加（任意） */
  }
}

/* テーブル */
.grant-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}
.grant-table th {
  background: var(--navy);
  color: #fff;
  padding: 14px;
  width: 240px;
  vertical-align: top;
  font-weight: 600;
}
.grant-table td {
  background: #fff;
  padding: 14px;
  border-bottom: 1px solid #ddd;
}

/* SP：横スクロール許容＋幅縮小 */
@media (max-width: 767px) {
  .grant-table {
    display: block;
    overflow-x: auto;
    font-size: 0.9rem;
  }
  .grant-table th {
    width: 160px;
    padding: 12px;
  }
  .grant-table td {
    padding: 12px;
  }
}

/* リンクカード */
.grant-links .grant-link-card {
  border: 1px solid #ccc;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  background: #fff;
}
.grant-link-card .btn {
  margin-top: 12px;
}

/* =================================
      news-archive.html 専用スタイル
===================================== */

.news-list-section {
  background: var(--beige);
}

.news-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.news-list-item {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 26px 28px;
  box-shadow: var(--shadow-soft);
  transition: 0.3s ease;
}

.news-list-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.news-list-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.news-list-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.news-list-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.7;
}



/* ============================
       topics-archive .html専用スタイル
       （G案トンマナに寄せたカード型一覧）
    ============================ */

    .topics-archive-section {
      padding: 80px 16px 100px;
      background: #fcfbf9;
    }
    .topics-archive-inner {
      max-width: 1200px;
      margin: 0 auto;
    }
    .topics-archive-head {
      margin-bottom: 40px;
      text-align: center;
    }
    .topics-archive-head .sec-title {
      font-size: 2rem;
      font-weight: 700;
      color: #1e3a5f;
      margin-bottom: 16px;
    }
    .topics-archive-head .sec-lead {
      font-size: 0.95rem;
      line-height: 1.8;
      color: #555;
    }

    /* カテゴリタブ（任意・不要なら削除可） */
    .topics-filter {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
      margin-bottom: 32px;
    }
    .topics-filter button {
      border: 1px solid #d4cbbd;
      background: #fff;
      padding: 6px 14px;
      border-radius: 999px;
      font-size: 0.85rem;
      cursor: pointer;
      transition: 0.2s;
      color: #555;
    }
    .topics-filter button.is-active,
    .topics-filter button:hover {
      background: #1e3a5f;
      border-color: #1e3a5f;
      color: #fff;
    }

    /* カード一覧 */
    .topics-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .topic-card {
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 6px 18px rgba(0,0,0,0.06);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .topic-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    }
    .topic-link {
      display: flex;
      flex-direction: column;
      height: 100%;
      text-decoration: none;
      color: inherit;
    }

    .topic-thumb-wrap {
      position: relative;
      aspect-ratio: 16 / 9;
      overflow: hidden;
    }
    .topic-thumb-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.3s ease;
    }
    .topic-card:hover .topic-thumb-wrap img {
      transform: scale(1.03);
    }

    /* 再生アイコン（薄く） */
    .topic-play-icon {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
    }
    .topic-play-icon span {
      display: inline-block;
      width: 54px;
      height: 54px;
      border-radius: 50%;
      background: rgba(0,0,0,0.55);
      clip-path: polygon(30% 23%, 30% 77%, 78% 50%);
    }

    /* カテゴリバッジ */
    .topic-tag {
      position: absolute;
      left: 12px;
      top: 12px;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 0.75rem;
      font-weight: 600;
      color: #fff;
      background: #9C3B3B;
    }
    .topic-tag.wih {
      background: #216e5b;
    }
    .topic-tag.alta {
      background: #b6681a;
    }
    .topic-tag.archi {
      background: #1e3a5f;
    }

    .topic-body {
      padding: 16px 16px 18px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    .topic-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
      font-size: 0.8rem;
      color: #777;
    }
    .topic-id {
      font-family: "Barlow", system-ui, sans-serif;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #b0a79a;
    }
    .topic-date {
      font-size: 0.82rem;
    }
    .topic-title {
      font-size: 0.98rem;
      font-weight: 700;
      color: #33302a;
      line-height: 1.5;
      margin-bottom: 8px;
    }
    .topic-desc {
      font-size: 0.85rem;
      color: #666;
      line-height: 1.7;
      margin-bottom: 12px;
    }

    .topic-footer {
      margin-top: auto;
      text-align: right;
    }
    .topic-more {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.85rem;
      font-weight: 600;
      color: #1e3a5f;
      text-decoration: none;
    }
    .topic-more::after {
      content: "›";
      font-size: 1rem;
      transform: translateY(1px);
    }

    /* SP レスポンシブ */
    @media (max-width: 991.98px) {
      .topics-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    @media (max-width: 767.98px) {
      .topics-archive-section {
        padding: 60px 16px 80px;
      }
      .topics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }
      .topics-archive-head .sec-title {
        font-size: 1.6rem;
      }
      .topics-archive-head .sec-lead {
        font-size: 0.9rem;
      }
    }


/* =========================
   topics-archive.html 専用 モーダル
========================= */

.ta-video-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.ta-video-modal.is-open{
  display: flex;
}
.ta-video-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
}

.ta-video-modal-inner {
  position: relative;
  width: 90%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  z-index: 10000;
}

#ta-videoFrame {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.ta-video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 32px;
  cursor: pointer;
  color: #fff;
}

/* =========================
   SP時：動画をもっと大きく表示
========================= */
@media (max-width: 767px) {

  .ta-video-modal-inner {
    width: 100vw !important;     /* 画面いっぱい */
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border-radius: 0;
  }

  #ta-videoFrame {
    border-radius: 0 !important;
    width: 100vw !important;
    height: calc(100vw * 0.75) !important; /* 16:9 高さ */
  }

  .ta-video-modal-close {
    top: 8px !important;
    right: 8px !important;
    font-size: 28px;
  }
}

/* =============================
   スクールTOPへ戻る（下層ページ用）
============================= */
.back-to-school {
  max-width: 1200px;
  margin: 24px auto 40px;
  padding: 0 16px;
}

.back-to-school a {
  display: inline-block;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity .2s ease;
}

.back-to-school a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* =============================
   SP：さらにトーンダウン
============================= */
@media (max-width: 767px) {
  .back-to-school {
    margin: 12px auto 24px;
  }

  .back-to-school a {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.55;
  }
}


/* =============================
   過去 topics アーカイブ案内（注釈）
============================= */
.topics-archive-note {
  margin-top: 8px;
  margin-bottom: 24px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #777;
}

.topics-archive-note a {
  color: var(--navy);
  text-decoration: underline;
  opacity: 0.6;
}

.topics-archive-note a:hover {
  opacity: 0.85;
}

/* SP：さらに控えめ */
@media (max-width: 767px) {
  .topics-archive-note {
    font-size: 0.7rem;
    margin-bottom: 20px;
  }
}
