* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  color: #333;
  background: #fff;
  min-width: 0;
}

/* ===== ヘッダー ===== */
.header {
  background: #fff;
  border-bottom: 2px solid #e5e5e5;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.header img {
  height: 36px;
}
.header-tagline {
  font-size: 13px;
  color: #666;
}

/* ===== パンくず ===== */
.breadcrumb {
  background: #f7f7f7;
  padding: 8px 40px;
  font-size: 13px;
  color: #888;
}
.breadcrumb a {
  color: #0066cc;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span {
  margin: 0 4px;
}

/* ===== メインコンテンツ ===== */
.main-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* ===== H1 ===== */
h1.page-title {
  font-size: 34px;
  font-weight: bold;
  color: #1a3a6c;
  line-height: 1.5;
  margin-bottom: 24px;
  text-align: center;
  border-left: none;
  padding-left: 0;
}

/* ===== 導入テキスト ===== */
.intro-text {
  font-size: 16px;
  color: #444;
  line-height: 1.9;
  margin: 12px 0 20px;
  padding: 14px 20px;
  background: #f5f8ff;
  border-left: none;
  border-radius: 4px;
}

/* ===== SNS ===== */
.sns-area {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.sns-area iframe {
  border: none;
}

/* ===== ヒーローバナー ===== */
.hero-banner {
  display: block;
  margin-bottom: 32px;
}
.hero-banner img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ===== 試験日程 ===== */
.exam-schedule {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 36px;
}
.exam-schedule h2 {
  font-size: 20px;
  font-weight: bold;
  color: #1a3a6c;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.exam-schedule h2::before {
  content: "📅";
  font-size: 22px;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
}
.schedule-table tr {
  border-bottom: 1px solid #c5dff5;
}
.schedule-table tr:last-child {
  border-bottom: none;
}
.schedule-table th {
  background: #0077cc;
  color: #fff;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: bold;
  text-align: left;
  width: 160px;
}
.schedule-table tr:first-child th {
  border-radius: 6px 0 0 0;
}
.schedule-table tr:last-child th {
  border-radius: 0 0 0 6px;
}
.schedule-table td {
  background: #fff;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}
.schedule-table tr:first-child td {
  border-radius: 0 6px 0 0;
}
.schedule-table tr:last-child td {
  border-radius: 0 0 6px 0;
}

/* ===== 無料テストセクション ===== */
.free-test-section {
  background: #fff9e6;
  border: 2px solid #f5a623;
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 0;
}
.free-test-section h2 {
  font-size: 22px;
  font-weight: bold;
  color: #c05a00;
  margin-bottom: 12px;
}
.free-test-section .duration {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}
.free-test-section p {
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 15px;
}
.target-rate {
  font-size: 20px;
  font-weight: bold;
  color: #cc0000;
}
.btn-primary {
  display: inline-block;
  background: linear-gradient(to bottom, #ff6b00, #e05000);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 16px 40px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover {
  opacity: 0.85;
}
.btn-wrap {
  text-align: center;
  margin: 16px 0 8px;
}
.btn-note {
  text-align: center;
  font-size: 13px;
  color: #888;
}

/* ===== 分岐フロー ===== */
.branch-flow {
  margin: 0 0 40px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 32px 36px;
}

/* 矢印ステム（テストボタン下から伸びる） */
.branch-stem {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0;
}
.stem-line {
  width: 3px;
  height: 32px;
  background: #555;
}
.stem-label {
  background: #555;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 4px;
}
.stem-line2 {
  width: 3px;
  height: 24px;
  background: #555;
}

/* 分岐ヘッダー */
.branch-header {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #1a3a6c;
  margin-bottom: 20px;
  padding: 12px 20px;
  background: transparent;
  border: none;
}
.branch-header span.key {
  color: #cc0000;
  font-size: 18px;
}

/* 左右分岐ライン */
.branch-fork {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}
.branch-fork::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 1.5px);
  width: 3px;
  height: 0;
  background: #555;
}

/* 分岐の横線 + 縦線のSVG的な表現 */
.fork-lines {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 8px;
  position: relative;
  height: 50px;
}
.fork-lines::before {
  /* 横バー */
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 3px;
  background: #555;
}
.fork-left-line {
  position: absolute;
  top: 0;
  left: 25%;
  width: 3px;
  height: 50px;
  background: #555;
}
.fork-right-line {
  position: absolute;
  top: 0;
  right: 25%;
  width: 3px;
  height: 50px;
  background: #555;
}

/* 分岐ラベル */
.branch-cols {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: 0;
  align-items: start;
}
.branch-divider-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
  color: #888;
  font-size: 13px;
  font-weight: bold;
}
.branch-divider-line {
  width: 2px;
  flex: 1;
  background: #ddd;
  margin-top: 8px;
}

/* 各カード列 */
.branch-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.branch-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
}
.branch-tag-blue {
  background: #1565c0;
  color: #fff;
}
.branch-tag-red {
  background: #c62828;
  color: #fff;
}
.branch-arrow-down {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  margin-bottom: 12px;
}
.branch-arrow-blue {
  border-top: 14px solid #1565c0;
}
.branch-arrow-red {
  border-top: 14px solid #c62828;
}

/* プランカード */
.plan-card {
  border-radius: 10px;
  padding: 24px 28px;
  width: 100%;
}
.plan-card-blue {
  background: linear-gradient(135deg, #e3f0ff 0%, #f0f7ff 100%);
  border: 2px solid #1565c0;
}
.plan-card-red {
  background: linear-gradient(135deg, #fff0f0 0%, #fff8f8 100%);
  border: 2px solid #c62828;
}

.plan-score-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.badge-blue {
  background: #bbdefb;
  color: #0d47a1;
}
.badge-red {
  background: #ffcdd2;
  color: #b71c1c;
}

.plan-condition {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.5;
}
.hl-blue {
  color: #1565c0;
}
.hl-red {
  color: #c62828;
}

.plan-course-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
}
.title-blue {
  color: #0d47a1;
}
.title-red {
  color: #b71c1c;
}

.plan-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 18px;
}

.btn-course {
  display: block;
  font-size: 14px;
  font-weight: bold;
  padding: 13px 16px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.18);
  width: 100%;
}
.btn-blue {
  background: linear-gradient(to bottom, #1976d2, #0d47a1);
  color: #fff;
}
.btn-red {
  background: linear-gradient(to bottom, #e53935, #b71c1c);
  color: #fff;
}
.btn-course:hover {
  opacity: 0.85;
}

/* 2027カード内コンテンツ */
.lp-catchcopy {
  font-size: 17px;
  font-weight: bold;
  color: #c0392b;
  line-height: 1.4;
  margin-bottom: 4px;
}
.lp-body-text {
  font-size: 13px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 16px;
  text-align: center;
}
.voice-box {
  border: 2px solid #e8a0a0;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 18px;
  background: #fff;
  position: relative;
}
.voice-label {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  font-size: 13px;
  font-weight: bold;
  color: #c0392b;
  padding: 3px 16px;
  border: 2px solid #e8a0a0;
  border-radius: 20px;
  white-space: nowrap;
}
.voice-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 8px;
}
.voice-avatar {
  text-align: center;
  flex-shrink: 0;
}
.voice-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.voice-name {
  font-size: 11px;
  color: #555;
  margin-top: 4px;
  text-align: center;
}
.voice-text {
  font-size: 13px;
  color: #333;
  line-height: 1.8;
}

/* ===== セクション区切り ===== */
.divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 32px 0;
}

/* ===== テストの受け方 ===== */
.howto-section {
  margin-bottom: 40px;
}
.howto-section h2 {
  font-size: 22px;
  font-weight: bold;
  color: #1a3a6c;
  border-bottom: 3px solid #0077cc;
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.howto-section > p {
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 15px;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.step-num {
  background: #0077cc;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
}
.step-body h3 {
  font-size: 17px;
  font-weight: bold;
  color: #1a3a6c;
  margin-bottom: 6px;
}
.step-body img {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-top: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* ===== 無料講座 ===== */
.free-course-section {
  margin-bottom: 40px;
}
.free-course-section h2 {
  font-size: 22px;
  font-weight: bold;
  color: #1a3a6c;
  border-bottom: 3px solid #0077cc;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.free-course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.free-course-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}
.free-course-card img {
  width: 100%;
  height: auto;
}
.free-course-card-body {
  padding: 12px;
}
.free-course-card-label {
  font-size: 12px;
  color: #0077cc;
  font-weight: bold;
  margin-bottom: 4px;
}
.free-course-card-text {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
}

.btn-secondary {
  display: inline-block;
  background: linear-gradient(to bottom, #0088ee, #005fbf);
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  padding: 15px 40px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.18);
}
.btn-secondary:hover {
  opacity: 0.85;
}
.btn-back {
  display: inline-block;
  background: #fff;
  border: 2px solid #0077cc;
  color: #0077cc;
  font-size: 15px;
  font-weight: bold;
  padding: 12px 32px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  margin-top: 12px;
}
.btn-back:hover {
  background: #0077cc;
  color: #fff;
}

.promo-banner {
  background: #f0f7ff;
  border: 1px solid #b3d4f5;
  border-radius: 6px;
  padding: 16px 24px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.7;
}
.promo-banner strong {
  color: #c05a00;
}

/* ===== フッター ===== */
.footer {
  background: #1a3a6c;
  color: #ccc;
  padding: 40px;
  font-size: 13px;
  line-height: 1.8;
}
.footer a {
  color: #9dc8f0;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* ===== 直前対策・模試サブカード ===== */
.sub-course-card {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #b3cef5;
}
.sub-course-title {
  font-size: 16px;
  font-weight: bold;
  color: #0d47a1;
  margin-bottom: 6px;
}
.sub-course-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 10px;
}
.sub-course-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin-bottom: 12px;
}
.btn-blue-outline {
  display: block;
  font-size: 14px;
  font-weight: bold;
  padding: 11px 16px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  width: 100%;
  background: #fff;
  border: 2px solid #1565c0;
  color: #1565c0;
}
.btn-blue-outline:hover {
  background: #1565c0;
  color: #fff;
}

/* ===== 今から合格を目指せる！画像パーツ（追加分） ===== */
.banner-section {
  margin-bottom: 40px;
}
.banner-section h2 {
  font-size: 22px;
  font-weight: bold;
  color: #1a3a6c;
  border-bottom: 3px solid #0077cc;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.banner-img-wrap {
  width: 100%;
  text-align: center;
}
.banner-img-wrap img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 既存のメディアクエリ @media (max-width: 768px) 内に自動で適応されます */

/* ===== Responsive ===== */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .header,
  .breadcrumb,
  .main-wrap,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1.page-title {
    font-size: 26px;
  }

  .title-first-line {
    font-size: 20px;
  }

  .exam-schedule {
    margin: 0 0 40px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
  }

  .branch-flow {
    margin: 0 0 40px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 0 36px;
  }

  .free-test-section {
    padding: 24px 16px;
    margin-bottom: 0;
  }

  .schedule-table th,
  .schedule-table td {
    display: block;
    width: 100%;
    border-radius: 0 !important;
  }

  .schedule-table tr {
    display: block;
    margin-bottom: 12px;
  }

  .branch-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .branch-divider-center {
    display: none;
  }

  .fork-lines {
    display: none;
  }

  .free-course-grid {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    gap: 8px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-back {
    width: 100%;
  }

  .voice-inner {
    flex-direction: column;
    align-items: center;
  }
}