/* ===== Base ===== */
:root {
  --color-main: #1D4ED8;
  --color-sub: #020617;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: var(--color-sub);
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.header_inner {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  min-height: 56px;
}

.header_logo {
  display: block;
  line-height: 0;
}

.header_logo img {
  display: block;
  height: 48px;
  width: auto;
}

/* PC用メニュー（768px以上で表示） */
.header_pc_nav {
  display: none;
}

@media (min-width: 768px) {
  .header_pc_nav {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .header_pc_nav_link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-sub);
    transition: color 0.2s;
  }

  .header_pc_nav_link:hover {
    color: var(--color-main);
  }

  /* シカクルTOP：目立つボタン風 */
  .header_pc_nav_top {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-main);
    border: 2px solid var(--color-main);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35);
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  }

  .header_pc_nav_top:hover {
    color: #fff;
    background: #1a43b8;
    border-color: #1a43b8;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.45);
    transform: translateY(-1px);
  }

  .header_pc_cta {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .header_pc_cta_btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
  }

  .header_pc_cta_request {
    color: var(--color-main);
    background: transparent;
    border: 1px solid var(--color-main);
  }

  .header_pc_cta_request:hover {
    color: #fff;
    background: var(--color-main);
  }

  .header_pc_cta_consult {
    color: #fff;
    background: var(--color-main);
    border: 1px solid var(--color-main);
  }

  .header_pc_cta_consult:hover {
    background: #1a43b8;
    border-color: #1a43b8;
  }
}

/* ハンバーガーボタン（768px未満のみ表示） */
.header_hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  gap: 5px;
  transition: background 0.2s;
}

@media (min-width: 768px) {
  .header_hamburger {
    display: none;
  }
}

.header_hamburger:hover {
  background: rgba(29, 78, 216, 0.08);
}

.header_hamburger_line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-main);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.header.is-open .header_hamburger_line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.is-open .header_hamburger_line:nth-child(2) {
  opacity: 0;
}

.header.is-open .header_hamburger_line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ナビゲーション（ハンバーガーで開くパネル） */
.header_nav_contents {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: #fff;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}

.header.is-open .header_nav_contents {
  visibility: visible;
  opacity: 1;
}

.header_globalnav {
  padding: 70px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}

/* スマホ用：その他の機能リスト（ハンバーガー内） */
.header_globalnav_features .header_globalnav_lead {
  margin: 0 0 16px;
  font-size: 0.875rem;
}

.header_globalnav_features .header_globalnav_lead a {
  display: inline-block;
  padding: 10px 16px;
  font-weight: 700;
  color: #fff;
  background: var(--color-main);
  border-radius: 8px;
  transition: background 0.2s;
}

.header_globalnav_features .header_globalnav_lead a:hover {
  background: #1a43b8;
}

.header_globalnav_features .header_globalnav_title {
  margin: 0 0 12px;
  padding: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-sub);
  border-bottom: 2px solid rgba(29, 78, 216, 0.2);
}

.header_globalnav_features_list {
  margin: 0;
}

.header_globalnav_list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.header_globalnav_list > li {
  border-bottom: 1px solid rgba(29, 78, 216, 0.12);
}

.header_globalnav_list > li > a {
  display: block;
  padding: 14px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-sub);
  transition: background 0.2s, color 0.2s;
}

.header_globalnav_list > li > a:hover {
  background: rgba(29, 78, 216, 0.06);
  color: var(--color-main);
}

.header_globalnav_home > a {
  font-weight: 700;
}

/* サブメニューを持つ項目 */
.header_globalnav_list > li {
  position: relative;
}

.globalnav_submenu {
  display: none;
  padding: 0 0 0 20px;
  margin-bottom: 12px;
  border-left: 3px solid var(--color-main);
}

.globalnav_submenu.is-open {
  display: block;
}

.globalnav_submenu_hgroup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(29, 78, 216, 0.12);
}

.globalnav_submenu_title a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-main);
}

.globalnav_submenu_close button {
  padding: 6px 12px;
  font-size: 0.8125rem;
  color: var(--color-main);
  background: rgba(29, 78, 216, 0.08);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.globalnav_submenu_close button:hover {
  background: rgba(29, 78, 216, 0.15);
}

.globalnav_submenu_detail {
  margin-bottom: 8px;
}

.globalnav_submenu_list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.globalnav_submenu_list a {
  display: block;
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--color-sub);
  transition: color 0.2s, padding-left 0.2s;
}

.globalnav_submenu_list a:hover {
  color: var(--color-main);
  padding-left: 4px;
}

/* カラム（講座一覧・試験インフォ等） */
.globalnav_submenu_column {
  margin: 0 0 20px;
  padding: 0;
}

.globalnav_submenu_column dt {
  margin: 0 0 8px;
  padding: 0 0 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-sub);
  border-bottom: 1px solid rgba(29, 78, 216, 0.15);
}

.globalnav_submenu_column dd {
  margin: 0;
  padding: 0;
}

.globalnav_submenu_column .globalnav_submenu_list {
  margin-bottom: 4px;
}

.delpc {
  display: inline;
}

/* SPのみ表示（お客様相談窓口） */
.header_globalnav_faq.sp {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px solid rgba(29, 78, 216, 0.2);
}

.header_globalnav_faq.sp a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-main);
  border-radius: 6px;
  transition: background 0.2s;
}

.header_globalnav_faq.sp a:hover {
  background: #1a43b8;
}

/* ===== Main ===== */
.main {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* 1. アプリロゴ */
.app_hero {
  padding: 14px 0 5px;
  border-bottom: 1px solid #e5e7eb;
}

.app_hero_inner {
  text-align: center;
}

.app_logo img {
  display: inline-block;
  width: 240px;
  max-width: 100%;
  height: 70px;
  aspect-ratio: 1;
  object-fit: contain;
}

/* 2. タイトル */
.page_title_section {
  padding: 0 0 16px;
}

.page_title_inner {
  text-align: center;
}

.page_title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-main);
}

@media (min-width: 768px) {
  .page_title {
    font-size: 2rem;
  }
}

/* 3. パンくずリスト */
.breadcrumb_wrap {
  padding: 0 0 40px;
}

.breadcrumb_inner {
  max-width: 100%;
}

.breadcrumb_list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--color-sub);
}

.breadcrumb_item:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: #999;
}

.breadcrumb_item a:hover {
  color: var(--color-main);
  text-decoration: underline;
}

.breadcrumb_item:last-child {
  color: var(--color-sub);
  font-weight: 500;
}

/* 4. 注釈（アラート風・テキスト表示） */
.page_note_section {
  padding: 0 0 40px;
}

.page_note_inner {
  display: block;
  max-width: 100%;
  padding: 10px 16px 10px 14px;
  border-left: 4px solid rgba(29, 78, 216, 0.6);
  background: rgba(29, 78, 216, 0.06);
  border-radius: 0 4px 4px 0;
}

.page_note {
  margin: 0;
  font-size: 1.0125rem;
  color: var(--color-sub);
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 768px) {
  .page_note {
    margin-bottom: 10px;
  }
}

/* 5. サマリー */
.app_summary_section {
  margin-top: 20px;
  padding: 0 0 50px;
}

.app_summary_inner {
  max-width: 100%;
}

.app_summary_title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-sub);
}

.app_summary {
  margin: 0;
  font-size: 1.1375rem;
  line-height: 1.8;
  color: var(--color-sub);
}

/* セクションラベル（Web版・アプリ版アイコン付き） */
.section_label_wrap {
  margin: 0 0 40px;
}

.section_label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-main);
  background: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.2);
  border-radius: 8px;
}

.section_label_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.section_label_icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section_label_text {
  line-height: 1.2;
}

/* 6. イメージ画像 */
.app_hero_img_section {
  padding: 0 0 40px;
}

.app_hero_img_inner {
  max-width: 100%;
}

/* 座布団（画像の下に敷いた土台） */
.app_hero_img_zabuton {
  padding: 12px;
  background: linear-gradient(180deg, #e8e6e2 0%, #ddd9d4 100%);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.app_hero_img_zabuton .app_hero_img_figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.app_hero_img_figure picture {
  display: block;
}

.app_hero_img_figure .app_hero_img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* 7. 画像の説明（番号リスト） */
.app_img_caption_section {
  padding: 0 0 50px;
}

.app_img_caption_inner {
  max-width: 100%;
}

.app_img_caption_title {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-sub);
}

.app_img_caption_list {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-sub);
}

.app_img_caption_list li {
  margin-bottom: 2.4em;
}

.app_img_caption_list li:last-child {
  margin-bottom: 0;
}

/* br以前＝見出し、br以降＝テキスト */
.app_img_caption_heading {
  display: block;
  margin-bottom: 0.25em;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-sub);
}

.app_img_caption_text {
  display: block;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--color-sub);
}

/* 8. 動画エリア */
.app_video_section {
  padding: 0 0 80px;
}

.app_video_inner {
  max-width: 100%;
}

.app_video_title {
  margin: 0 0 16px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-sub);
}

.app_video_wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: 720px;
  margin: 0 auto;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
}

.app_video_placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #888;
  text-align: center;
  padding: 20px;
}

.app_video_placeholder_text {
  margin: 0 0 8px;
  font-size: 1rem;
}

.app_video_placeholder_sub {
  margin: 0;
  font-size: 0.8125rem;
  color: #666;
}

/* 9. アプリ版イメージスライダー */
.app_slider_section {
  padding: 0 0 100px;
}

.app_slider_inner {
  max-width: 100%;
}

.app_slider_title {
  margin: 0 0 20px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-sub);
}

.app_slider {
  position: relative;
  /* max-width: 400px; */
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  /* background: #f5f5f5; */
}

.app_slider_track {
  display: flex;
  transition: transform 0.35s ease-out;
}

.app_slider_slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 16px;
  box-sizing: border-box;
}

.app_slider_slide img {
  width: 100%;
  height: auto;
  display: block;
  /* aspect-ratio: 9 / 16; */
  object-fit: cover;
}

.app_slider_btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.5rem;
  line-height: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  transition: background 0.2s;
  z-index: 2;
}

.app_slider_btn_inner {
  display: block;
  line-height: 1;
  transform: translateY(-3px);
}

.app_slider_prev {
  left: 12px;
}

.app_slider_next {
  left: auto;
  right: 12px;
}

.app_slider_btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.app_slider_dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
}

.app_slider_dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: #ccc;
  transition: background 0.2s;
}

.app_slider_dots button:hover {
  background: #999;
}

.app_slider_dots button.is-active {
  background: var(--color-main);
}

/* PC：すき間（共通） */
@media (min-width: 768px) {
  .app_slider.app_slider--pc-grid .app_slider_track,
  .app_slider.app_slider--pc-carousel .app_slider_track {
    gap: 16px;
  }

  .app_slider.app_slider--pc-grid .app_slider_slide,
  .app_slider.app_slider--pc-carousel .app_slider_slide {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 0;
  }
}

/* PC：3枚並び（3枚以下のとき） */
@media (min-width: 768px) {
  .app_slider.app_slider--pc-grid .app_slider {
    max-width: 960px;
  }

  .app_slider.app_slider--pc-grid .app_slider_track {
    transform: none;
  }

  .app_slider.app_slider--pc-grid .app_slider_btn,
  .app_slider.app_slider--pc-grid .app_slider_dots {
    display: none;
  }
}

/* PC：スライダー（4枚以上のとき、3枚表示） */
@media (min-width: 768px) {
  .app_slider.app_slider--pc-carousel .app_slider {
    max-width: 960px;
  }
}

/* 10. CTAエリア */
.app_cta_section {
  padding: 40px 0;
  background: #f8f8f8;
  border-radius: 8px;
  margin: 0 0 40px;
}

.app_cta_inner {
  text-align: center;
  padding: 0 20px;
}

/* 注釈（アラート風・テキスト表示） */
.app_cta_note_wrap {
  display: block;
  margin: 0 auto 16px;
  padding: 10px 16px 10px 14px;
  border-left: 4px solid rgba(29, 78, 216, 0.6);
  background: rgba(29, 78, 216, 0.06);
  border-radius: 0 4px 4px 0;
}

.app_cta_note {
  margin: 0;
  font-size: 1.0125rem;
  color: var(--color-sub);
  line-height: 1.5;
}

.app_cta_top_wrap {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 16px;
}

.app_cta_top_link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-main);
  background: transparent;
  border-top: 2px solid var(--color-main);
  border-bottom: 2px solid var(--color-main);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.app_cta_top_link:hover {
  color: #fff;
  background: var(--color-main);
  border-color: var(--color-main);
}

.app_cta_top_icon {
  display: inline-flex;
  flex-shrink: 0;
}

.app_cta_top_icon svg {
  display: block;
  vertical-align: middle;
}

/* 講座一覧ボタン（注釈の直下に表示） */
.app_cta_btn_course {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 20px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-main);
  border-radius: 6px;
  transition: background 0.2s;
  text-align: center;
  box-sizing: border-box;
}

.app_cta_btn_course:hover {
  background: #1a43b8;
}

/* 講座リンク（テキストリンクスタイル） */
.app_cta_links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 0 0 20px;
  padding: 12px 0;
  border-top: 1px solid #0066cc;
  border-bottom: 1px solid #0066cc;
}

.app_cta_links_title {
  width: 100%;
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-sub);
}

.app_cta_link.app_cta_link_course {
  font-size: 1rem;
  font-weight: 500;
  color: #0066cc;
  text-decoration: underline;
  text-underline-offset: 5px;
  transition: color 0.2s, opacity 0.2s;
}

.app_cta_link.app_cta_link_course:hover {
  color: #004499;
  opacity: 0.85;
}

/* 資料請求・受講相談・受講予約 */
.app_cta_actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.app_cta_btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.app_cta_btn_primary {
  color: #fff;
  background: var(--color-main);
}

.app_cta_btn_primary:hover {
  background: #1a43b8;
}

.app_cta_btn_secondary {
  color: var(--color-sub);
  background: #fff;
  border: 2px solid #ccc;
}

.app_cta_btn_secondary:hover {
  border-color: #999;
  background: #f5f5f5;
}

/* 11. 他の機能リスト */
.app_other_features_section {
  padding: 0 0 48px;
}

.app_other_features_inner {
  max-width: 100%;
}

.app_other_features_title {
  margin: 0 0 16px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-sub);
}

.app_other_features_list {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--color-sub);
}

.app_other_features_list li {
  margin-bottom: 6px;
}

.app_other_features_list li:last-child {
  margin-bottom: 0;
}

.app_other_features_list a {
  color: var(--color-main);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s, opacity 0.2s;
}

.app_other_features_list a:hover {
  color: #1a43b8;
  opacity: 0.9;
}

/* ===== Footer ===== */
.footer {
  background: #333;
  color: #fff;
  padding: 24px 0;
}

.footer_inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer_copyright {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}
