@charset "UTF-8";

/* ==============================================
   sub.css : 下層ページ共通スタイル
   ============================================== */

/* 目次
   1.  レイアウト・基本設定
   2.  ヒーローエリア（FV）
   3.  見出し（メイン・セクション）
   4.  ボックス・情報エリア
   5.  テーブル（講習会・汎用）
   6.  リスト・タイムライン
   7.  リンク・ボタン・バナー
   8.  その他セクションパーツ（背景・CTAなど）
   9.  最新情報一覧（ニュース）
   10. 記事詳細ページ
   11. お問い合わせフォーム
   12. 汎用パーツ・ユーティリティ（マーカー、隙間調整、アイコン等）
*/


/* ==============================================
   1. レイアウト・基本設定
   ============================================== */
.sub-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 0 20px;
}

.container {
  padding-bottom: 0 !important;
}

/* 画像の高さ統一クラス */
.sub-grid-img-fix img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  vertical-align: bottom;
}


/* ==============================================
   2. ヒーローエリア（FV）
   ============================================== */
.page-hero-auto {
  position: relative;
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  margin-top: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-hero-content h1 {
  color: var(--bg-white);
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  padding-top: 50px;
}

@media (max-width: 768px) {
  .page-hero-auto {
    height: 300px;
    margin-top: 65px;
  }
  .page-hero-content h1 {
    font-size: 1.4rem;
    padding-top: 50px;
  }
}


/* ==============================================
   3. 見出し（メイン・セクション）
   ============================================== */
/* メイン見出し */
.sub-heading-main {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  margin-top: 50px;
}

.sub-heading-main::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--main-color) 50%, var(--accent-color) 50%);
  margin: 25px auto 0;
}

/* セクション見出し */
.sub-heading-section {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text-primary);
  border-bottom: 2px solid var(--main-color);
  padding: 5px 0 10px 25px;
  margin-top: 60px;
  margin-bottom: 30px;
  position: relative;
  line-height: 1.4;
}

.sub-heading-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(90deg, var(--main-color) 50%, var(--accent-color) 50%);
}

/* goodアイコン付き見出し */
.heading-good::before {
  content: "";
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  background-image: url('../images/good.svg');
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  margin-right: 0.1em;
  position: relative;
  top: -0.1em;
}


/* ==============================================
   4. ボックス・情報エリア
   ============================================== */
/* 緑色の情報ボックス */
.sub-box-info {
  background-color: #F0F8F5;
  border: 1px solid #D6EBE5;
  padding: 30px;
  border-radius: 4px;
  margin-bottom: 40px;
}

.sub-box-info h3,
.sub-box-info h4 {
  color: var(--main-color);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* シンプルな枠線ボックス */
.sub-box-border {
  border: 2px solid var(--secondary-color);
  background-color: var(--bg-white);
  padding: 30px;
  margin-top: 20px;
  margin-bottom: 40px;
  border-radius: 2px;
}

.sub-box-border p {
  margin-bottom: 10px;
}

.sub-box-border p:last-child {
  margin-bottom: 0;
}

/* シンプルな緑背景ボックス */
.sub-box-bg-green {
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: 4px;
  margin-bottom: 40px;
}

@media (max-width: 600px) {
  .sub-box-bg-green {
    padding: 20px;
  }
}

/* カードリスト */
.sub-card-box {
  background-color: var(--bg-white);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.sub-card-box img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  vertical-align: bottom;
  border-bottom: 1px solid #eee;
}

.sub-card-box-body {
  padding: 15px;
  font-size: 0.9rem;
  flex-grow: 1;
}


/* ==============================================
   5. テーブル（講習会・汎用）
   ============================================== */
/* --- 講習会日程用テーブル --- */
.sub-table,
.sub-table table {
  border: none !important;
  border-collapse: collapse;
  margin-bottom: 40px;
  font-size: 0.95rem;
}

.sub-table thead,
.sub-table tbody,
.sub-table tr,
.sub-table th,
.sub-table td {
  border: none !important;
}

.sub-table th,
.sub-table td {
  padding: 15px;
  vertical-align: middle;
}

.sub-table th {
  background-color: var(--main-color);
  color: var(--bg-white);
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  border-right: 1px solid #fff !important;
}

.sub-table th:last-child {
  border-right: none !important;
}

.sub-table td {
  border-bottom: 1px solid #ddd !important;
  color: #333;
  text-align: left;
}

.sub-table th:first-child,
.sub-table td:first-child {
  border-left: none !important;
}

/* 講習会テーブルのスマホ対応（カード型表示） */
@media (max-width: 768px) {
  .sub-table thead {
    display: none !important;
  }

  .sub-table tr {
    display: block;
    margin-bottom: 30px;
    border: 2px solid var(--secondary-color) !important;
    border-radius: 8px;
    background-color: #fff;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  }

  .sub-table td,
  .sub-table th {
    display: flex !important;
    align-items: baseline;
    justify-content: flex-start;
    border-bottom: 1px dashed #ddd !important;
    border-right: none !important;
    padding: 12px 0 !important;
    text-align: left !important;
    width: 100% !important;
    background-color: transparent !important;
    box-sizing: border-box;
  }

  .sub-table tr > *:last-child {
    border-bottom: none !important;
  }

  .sub-table td::before,
  .sub-table th::before {
    display: block;
    width: 6em;
    flex-shrink: 0;
    font-weight: bold;
    color: var(--main-color);
    margin-right: 1em;
  }

  .sub-table tr > *:nth-child(1)::before { content: "開催地"; }
  .sub-table tr > *:nth-child(2)::before { content: "開催日時"; }
  .sub-table tr > *:nth-child(3)::before { content: "開催場所"; }
  .sub-table tr > *:nth-child(4)::before { content: "定員"; }
}


/* --- 汎用テーブル --- */
.sub-table-general {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  font-size: 0.95rem;
  border-top: 1px solid #ddd;
}

.sub-table-general table,
.sub-table-general thead,
.sub-table-general tbody,
.sub-table-general tr,
.sub-table-general th,
.sub-table-general td {
  border: none !important;
}

.sub-table-general tr {
  border-bottom: 1px solid #ddd !important;
}

.sub-table-general th,
.sub-table-general td {
  padding: 20px;
  vertical-align: middle;
  line-height: 1.6;
}

.sub-table-general th,
.sub-table-general tr td:first-child {
  background-color: var(--bg-light);
  width: 25%;
  min-width: 160px;
  font-weight: bold;
  color: #333;
  text-align: left;
}

.sub-table-general td:last-child {
  background-color: var(--bg-white);
  text-align: left;
}

@media (max-width: 600px) {
  .sub-table-general tr {
    display: flex;
    flex-direction: column;
  }
  
  .sub-table-general th,
  .sub-table-general td,
  .sub-table-general tr td:first-child {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-width: auto;
  }

  .sub-table-general th,
  .sub-table-general tr td:first-child {
    border-bottom: 1px solid #eee !important;
  }
}


/* ==============================================
   6. リスト・タイムライン
   ============================================== */
/* 講習内容のタイムラインリスト */
ul.sub-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

ul.sub-timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 0;
  left: 200px;
  width: 2px;
  background-color: var(--main-color);
  z-index: 0;
  transform: translateX(-50%);
}

ul.sub-timeline li {
  display: flex;
  margin-bottom: 30px;
  position: relative;
  line-height: 1.6;
}

ul.sub-timeline li::after {
  content: "";
  position: absolute;
  left: 200px;
  top: 7px;
  width: 14px;
  height: 14px;
  background-color: var(--main-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

ul.sub-timeline li strong {
  width: 180px;
  margin-right: 40px;
  flex-shrink: 0;
  color: #333;
  font-weight: normal;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  ul.sub-timeline::before {
    left: 15px;
  }
  ul.sub-timeline li {
    flex-direction: column;
    padding-left: 40px;
  }
  ul.sub-timeline li::after {
    left: 15px;
  }
  ul.sub-timeline li strong {
    width: 100%;
    margin-right: 0;
    margin-bottom: 5px;
    font-weight: bold;
  }
}

/* チェックマークリスト */
ul.sub-list-check-bg {
  background-color: var(--bg-light);
  padding: 40px;
  list-style: none;
  margin: 0 0 40px 0;
}

ul.sub-list-check-bg li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 15px;
  line-height: 1.6;
  font-weight: bold;
}

ul.sub-list-check-bg li:last-child {
  margin-bottom: 0;
}

ul.sub-list-check-bg li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 14px;
  height: 7px;
  border-left: 4px solid var(--underline-color);
  border-bottom: 4px solid var(--underline-color);
  transform: rotate(-45deg);
}

/* シンプルなドットリスト（メインカラー） */
ul.list-green-dot {
  list-style: none;
  padding: 10px 0 0 0;
  margin: 0;
}

ul.list-green-dot li {
  position: relative;
  padding-left: 2.5em;
  color: var(--text-primary);
  font-weight: bold;
}

ul.list-green-dot li::before {
  content: '';
  position: absolute;
  left: 1.5em;
  top: 0.5em;
  width: 10px;
  height: 10px;
  background-color: var(--main-color);
  border-radius: 50%;
}

/* スマホ調整：リスト余白リセット */
@media (max-width: 768px) {
  ul.sub-timeline,
  ul.sub-list-check-bg {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
}


/* ==============================================
   7. リンク・ボタン・バナー
   ============================================== */
/* リンクバナー */
.link-banner-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  text-decoration: none;
  color: var(--main-color);
  font-weight: bold;
  font-size: 1.1rem;
  width: 100%;
  box-sizing: border-box;
  transition: opacity 0.3s;
  border-radius: 4px;
}

.link-banner-arrow:hover {
  opacity: 0.7;
  color: var(--main-color);
}

.link-banner-arrow::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background-color: var(--main-color);
  border-radius: 50%;
  margin-right: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-size: 65%;
  background-repeat: no-repeat;
  background-position: 55% center;
}

/* ダウンロードアイコン付きボタン */
.btn-download .wp-block-button__link {
  position: relative;
  padding-left: 4.5em !important;
}

.btn-download .wp-block-button__link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 2.5em;
  transform: translateY(-50%);
  width: 1.2em;
  height: 1.2em;
  background-image: url('../images/download-icon.svg');
  background-repeat: no-repeat;
  background-size: contain;
}


/* ==============================================
   8. その他セクションパーツ（背景・CTAなど）
   ============================================== */
/* 全幅背景セクション */
.sub-section-bg {
  background-color: var(--bg-light);
  padding: 80px 0;
  margin-top: 60px;
  margin-bottom: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.sub-section-bg > .wp-block-group__inner-container,
.sub-section-bg > div {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* コンバージョンエリア（シンプル） */
.sub-cta-box {
  background-color: var(--underline-color);
  padding: 20px;
  text-align: center;
  font-weight: bold;
  color: #333;
  margin: 30px 0;
  border-radius: 4px;
}

/* 緑文字のCTAボックス */
.sub-box-cta-green {
  background-color: var(--bg-light);
  color: var(--main-color);
  padding: 50px 30px;
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1.8;
  border-radius: 4px;
  margin-bottom: 40px;
}

@media (max-width: 600px) {
  .sub-box-cta-green {
    padding: 30px 20px;
    font-size: 1rem;
    text-align: left;
  }
}


/* ==============================================
   9. 最新情報一覧（ニュース）
   ============================================== */
/* カテゴリーフィルターボタン */
.news-cat-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin-bottom: 50px;
}

.news-cat-nav a {
  display: block;
  background-color: var(--main-color);
  color: var(--bg-white);
  padding: 10px 20px;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: opacity 0.3s;
}

.news-cat-nav a:hover,
.news-cat-nav a.active {
  opacity: 0.8;
  background-color: var(--accent-color);
}

/* 記事リスト本体 */
.news-list-container {
  max-width: 100%;
}

.news-item {
  border-bottom: 1px solid #eee;
  margin-bottom: 30px;
  padding-bottom: 30px;
}

.news-link {
  display: flex;
  text-decoration: none;
  color: #333;
  gap: 30px;
  align-items: flex-start;
}

.news-link:hover .news-title {
  color: var(--main-color);
}

.news-link:hover .news-thumb img,
.news-link:hover .no-image {
  opacity: 0.8;
}

/* サムネイル画像エリア */
.news-thumb {
  width: 240px;
  flex-shrink: 0;
}

.news-thumb img {
  width: 100% !important;
  height: 160px !important;
  object-fit: cover !important;
  vertical-align: bottom;
  background-color: #ccc;
}

.no-image {
  width: 100%;
  height: 160px;
  background-color: #ccc;
}

.news-body {
  flex-grow: 1;
}

.news-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0 0 15px 0;
  line-height: 1.5;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.news-date {
  color: #888;
}

.news-cat {
  background-color: var(--main-color);
  color: var(--bg-white);
  padding: 4px 12px;
  font-size: 0.8rem;
  border-radius: 2px;
}

.news-excerpt {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

.news-pagination {
  margin-top: 60px;
  margin-bottom: 40px;
  text-align: center;
}

.news-pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 5px;
  background-color: #ddd;
  color: #333;
  text-decoration: none;
  border-radius: 2px;
  font-size: 0.9rem;
}

.news-pagination .page-numbers.current {
  background-color: var(--main-color);
  color: var(--bg-white);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .news-link {
    flex-direction: column;
    gap: 15px;
  }
  
  .news-thumb {
    width: 100%;
  }
  
  .news-thumb img, 
  .no-image {
    height: 200px !important;
  }
  
  .news-cat-nav ul {
    gap: 5px;
    margin-left: 0 !important;
    padding-left: 0 !important;
    margin-bottom: 30px !important;
  }
  
  .news-cat-nav a {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
  }

  .news-cat {
    font-size: 10px;
    padding: 3px 8px;
    min-width: auto;
    width: auto;
    margin-right: 0;
    margin-bottom: 0;
    line-height: 1.4;
  }

  .news-date {
    font-size: 0.8rem;
    margin-right: 5px;
    white-space: nowrap;
  }

  ul.news-list {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
}


/* ==============================================
   10. 記事詳細ページ
   ============================================== */
.single-article {
  margin-bottom: 60px;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
}

.single-date {
  color: #888;
  font-weight: bold;
}

.single-cat {
  background-color: var(--main-color);
  color: var(--bg-white);
  padding: 4px 12px;
  font-size: 0.8rem;
  border-radius: 2px;
}

.single-body h2 {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-top: 50px;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.single-body h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--main-color) 50%, var(--accent-color) 50%);
  margin: 15px auto 0;
}

.single-body h3 {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text-primary);
  border-bottom: 2px solid var(--main-color);
  padding: 5px 0 10px 15px;
  margin-top: 40px;
  margin-bottom: 20px;
  border-left: 8px solid var(--main-color);
}

.single-body p {
  line-height: 1.8;
  margin-bottom: 20px;
}

.single-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
  margin-bottom: 40px;
  padding-top: 40px;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
  gap: 20px;
  clear: both;
}

.nav-prev, .nav-next {
  width: 30%;
}

.nav-prev a, .nav-next a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-prev a:hover, .nav-next a:hover {
  color: var(--main-color);
}

.nav-next {
  text-align: right;
}

.nav-btn {
  text-align: center;
}

.nav-btn a {
  display: inline-block;
  background-color: #888;
  color: #fff;
  padding: 10px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}

.nav-btn a:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .single-nav {
    flex-direction: column-reverse;
  }
  .nav-prev, .nav-next, .nav-btn {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
  }

  .single-cat {
    font-size: 10px;
    padding: 3px 8px;
    min-width: auto;
    width: auto;
    margin-right: 0;
    margin-bottom: 0;
    line-height: 1.4;
  }

  .single-date {
    font-size: 0.8rem;
    margin-right: 5px;
    white-space: nowrap;
  }
}


/* ==============================================
   11. お問い合わせフォーム
   ============================================== */
.custom-form-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #ddd !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
  margin-bottom: 40px;
  font-size: 0.95rem;
}

.custom-form-table tr {
  border-bottom: 1px solid #ddd !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
}

.custom-form-table th {
  background-color: var(--bg-light);
  width: 30%;
  min-width: 180px;
  padding: 20px;
  text-align: left;
  vertical-align: middle;
  font-weight: bold;
  border: none !important; 
}

.custom-form-table td {
  background-color: #fff;
  padding: 20px;
  vertical-align: middle;
  border: none !important;
}

.required-badge {
  background-color: var(--main-color);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 10px;
  vertical-align: middle;
}

.custom-form-table input[type="text"],
.custom-form-table input[type="email"],
.custom-form-table input[type="tel"],
.custom-form-table textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1rem;
}

.form-submit-area {
  text-align: center;
  margin-top: 30px;
}

.wpcf7-submit {
  background-color: var(--main-color);
  color: #fff;
  border: none;
  padding: 15px 60px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: opacity 0.3s;
}

.wpcf7-submit:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .custom-form-table tr {
    display: flex;
    flex-direction: column;
    border-bottom: none !important;
  }
  
  .custom-form-table th,
  .custom-form-table td {
    width: 100%;
    display: block;
    box-sizing: border-box;
  }

  .custom-form-table th {
    background-color: var(--bg-light);
    border-bottom: 1px solid #eee !important;
    padding: 15px;
  }
  
  .custom-form-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd !important;
  }
}


/* ==============================================
   12. 汎用パーツ・ユーティリティ
   ============================================== */

.tight-gap :where(.is-layout-flow) > * {
  margin-block-start: 10px !important;
  margin-top: 10px !important;
}

.no-gap :where(.is-layout-flow) > * {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}

.tight-gap figure,
.tight-gap img,
.no-gap figure,
.no-gap img {
  margin-bottom: 5px !important;
}

.label-accent {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 4px 12px;
  font-weight: bold;
  font-size: 0.9rem;
  line-height: 1.2;
  margin-bottom: 0 !important;
}

.label-accent::before {
  content: "▼";
  margin-right: 6px;
  font-size: 0.8em;
  position: relative;
  top: -1px;
}

.label-accent + * {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}

.flowchart-sp {
  display: none !important;
}

@media (max-width: 768px) {
  .flowchart-pc {
    display: none !important;
  }
  .flowchart-sp {
    display: block !important;
  }
}

.marker-yellow {
  background: linear-gradient(transparent 80%, var(--accent-color) 80%);
  display: inline;
}