/* ============================================================
   style2204_sp.css — フロント公開ページ スマホ最適化
   ブレークポイント: 1023px（タブレット）/ 767px（スマホ）
   ============================================================ */

/* ── 5-5 共通: 画像はみ出し防止 ── */
img { max-width: 100%; height: auto; }

/* ────────────────────────────────────
   タブレット (max-width: 1023px)
   ──────────────────────────────────── */
@media screen and (max-width: 1023px) {

  /* ── 5-1 ホーム: 特徴3ブロック 縦積み ── */
  .top_features_in {
    flex-direction: column;
    gap: 1em;
  }
  .top_feature_block {
    width: 100%;
  }

  /* ── 5-1 ホーム: セミナー一覧テーブル 横スクロール ── */
  .seminar-all .ul_table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ── 5-2 詳細: テーブル横スクロール ── */
  .detail-venue-table-wrap,
  .detail-schedule-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1em;
  }

  /* ── 5-3 カード: ボタン縦並び ── */
  .seminar_btns {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8em;
  }
  .seminar_btns a {
    display: flex !important;
    width: 100%;
    margin: 0 !important;
    text-align: center;
    box-sizing: border-box;
  }
}

/* ────────────────────────────────────
   スマホ (max-width: 767px)
   ──────────────────────────────────── */
@media screen and (max-width: 767px) {

  /* ── fix: ヘッダーが position:relative のとき padding-top 不要 ── */
  #contents {
    padding: 0 0 2rem 0 !important;
  }

  /* ── 5-5 共通: go_top ボタン ── */
  #go_top {
    width: 44px;
    bottom: 1em;
    right: 0.5em;
  }

  /* ── 5-5 共通: タッチターゲット最小サイズ ── */
  .seminar_btns a,
  .search_btns_col a,
  .btn_metaverse_login,
  .detail-form-btn a,
  .news_past a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ── 5-5 共通: フォントサイズ最低14px保証 ── */
  .fold_category_application a {
    font-size: 14px;
  }

  /* ── 5-1 ホーム: 説明文 ── */
  .top_intro {
    padding: 0 0.5rem;
    font-size: 14px;
    line-height: 1.7;
  }

  /* ── 5-1 ホーム: 特徴3ブロック（中央寄せ） ── */
  .top_features {
    padding: 0 0.5rem;
  }
  .top_features_in {
    flex-direction: column;
    gap: 0.8em;
    align-items: center;
  }
  .top_feature_block {
    text-align: center;
    max-width: 400px;
  }

  /* ── 5-1 ホーム: 学習内容 ── */
  .top_learning {
    padding: 0 0.5rem;
  }
  .top_learning_list {
    font-size: 14px;
    line-height: 1.7;
    padding-left: 1.2em;
  }

  /* ── 5-1 ホーム: メタバースボタン ── */
  .top_metaverse {
    padding: 0 0.5rem;
  }
  .top_metaverse_btn_wrap {
    text-align: center;
  }
  .btn_metaverse_login {
    width: 100%;
    box-sizing: border-box;
  }

  /* ── 5-1 ホーム: 検索・カレンダーボタン（枠線+間隔） ── */
  .search_btns_col.v--col2 {
    flex-direction: column;
    gap: 0.8em;
    padding: 0 0.5rem;
  }
  .search_btns_col.v--col2 a {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #329BCB;
    border-radius: 4px;
    padding: 0.7em 1em;
  }

  /* ── 5-1 ホーム: セミナー一覧テーブル → カード形式 ── */
  .seminar-all .ul_table > ul:first-child {
    /* ヘッダー行を非表示 */
    display: none;
  }
  .seminar-all .ul_table > ul {
    flex-direction: column;
    padding: 0.8em 0.5rem;
    border-bottom: 1px solid #d1d5db;
    gap: 0.3em;
  }
  .seminar-all .ul_table > ul > li {
    width: 100% !important;
    flex: none !important;
    font-size: 14px;
    padding: 0;
  }
  .seminar-all .ul_table > ul > li:nth-child(2) {
    /* セミナー名を強調 */
    font-weight: bold;
    font-size: 15px;
  }

  /* ── 5-1 ホーム: ニュース・近日開催 パディング ── */
  .news,
  .upcoming {
    padding: 0 0.5rem;
  }
  .news_past {
    padding: 0 0.5rem;
  }

  /* ── 5-1 ホーム: セクション(IMSS/DIMM) パディング ── */
  .section-imss,
  .section-dimm,
  .seminar-all {
    padding: 0 0.5rem;
  }

  /* ── 5-2 詳細: wrap パディング ── */
  .detail-wrap {
    padding: 0 0.5rem;
  }

  /* ── 5-2 詳細: タイトル ── */
  .detail-title {
    font-size: 16px;
    padding: 0.5em 0.6em;
    word-break: break-all;
  }

  /* ── 5-2 詳細: テーブルのスマホ対応は detail.html 内の <style> で定義 ── */

  /* ── 5-2 詳細: 概要DL 縦並び ── */
  .detail-wrap .seminar_overview dl {
    flex-direction: column;
  }
  .detail-wrap .seminar_overview dl dt {
    width: auto;
    margin-bottom: 0.2em;
  }
  .detail-wrap .seminar_overview dl dd {
    padding-left: 1.2em;
    margin-bottom: 0.5em;
  }

  /* ── 5-2 詳細: 申込ボタン ── */
  .detail-form-btn a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 0.8em 1em;
    min-height: 48px;
    font-size: 16px;
  }

  /* ── 5-2 詳細: セクション見出し ── */
  .detail-section-heading {
    font-size: 14px;
  }

  /* ── 5-2 詳細: 戻るリンク ── */
  .detail-back {
    text-align: left;
  }

  /* ── 5-3 カード: タイトル ── */
  .fold_category_title h2 {
    font-size: 15px;
    line-height: 1.4;
    word-break: break-all;
  }

  /* ── 5-3 カード: 会場テーブル 縦積み ── */
  .fold_category_contents_right {
    width: 100%;
    margin-bottom: 1em;
  }
  .fold_category_contents_right_table.location_ul_table > ul {
    flex-wrap: wrap;
  }

  /* ── 5-3 カード: ボタン（間隔を広げる） ── */
  .seminar_btns {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8em;
    margin-top: 1em;
  }
  .seminar_btns a {
    width: 100%;
    min-height: 44px;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 14px;
  }

  /* ── 5-3 カード: 概要DL ── */
  .fold_category_contents_left .seminar_overview dl {
    flex-direction: column;
  }
  .fold_category_contents_left .seminar_overview dl dt {
    width: auto;
  }

  /* ── 5-4 セクション一覧: 会場テーブル ── */
  .location_ul_table > ul > .local_ul_table_note {
    display: none;
  }
  .location_ul_table > ul > .local_ul_table_venue {
    border-right: none;
  }
  .location_ul_table > ul > li {
    font-size: 13px;
  }

  /* ── 5-1 ホーム: c-sec_wrap パディング ── */
  .c-sec_wrap {
    padding: 0 0.5rem;
  }
  .c-sec_title {
    font-size: 18px;
  }
}

/* ────────────────────────────────────
   超小型スマホ (max-width: 500px)
   ──────────────────────────────────── */
@media screen and (max-width: 500px) {

  /* ── 5-4 セクション一覧: 開催地も省略 ── */
  .location_ul_table > ul > .local_ul_table_city {
    display: none;
  }
  .location_ul_table > ul > .local_ul_table_date {
    border-right: none;
  }

}
