/* =========================
   リセット & ベース
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* =========================
   カラーテーマ
========================= */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --accent: #f59e0b;
  --bg: #f8f9fa;
  --text: #1a1a1a;
  --gray: #6b7280;
  --light-gray: #e5e7eb;
  --white: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111827;
    --text: #f3f4f6;
    --gray: #9ca3af;
    --light-gray: #374151;
    --white: #1f2937;
  }
}

/* =========================
   レイアウト
========================= */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

/* =========================
   見出し
========================= */
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  margin-bottom: 32px;
  text-align: center;
  position: relative;
}

h2::after {
  content: "";
  width: 80px;
  height: 4px;
  background: var(--primary);
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* =========================
   ヘッダー
========================= */
header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
  padding: 100px 20px 80px;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
  animation: shine 8s linear infinite;
}

@keyframes shine {
  0% { transform: translate(-100%, -100%); }
  100% { transform: translate(100%, 100%); }
}

.subtitle {
  font-size: 1.3rem;
  opacity: 0.95;
}

/* =========================
   バッジ
========================= */
.badge {
  display: inline-block;
  background: white;
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: bold;
  padding: 12px 28px;
  border-radius: 999px;
  margin: 24px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* =========================
   比較表
========================= */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid var(--light-gray);
  padding: 14px;
  text-align: center;
}

.comparison-table th {
  background: var(--light-gray);
  font-weight: bold;
}

/* 1位強調 */
.rank-1 {
  background: #fff7ed;
  font-weight: bold;
}

.table-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;          /* 親の色そのまま */
  text-decoration: none;   /* 下線消す */
  font-weight: bold;
}

.table-link:hover {
  color: var(--primary);
  transform: translateX(2px);
  transition: 0.2s;
}


/* =========================
   カードUI
========================= */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.benefit-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: 16px;
  transition: 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(79,70,229,0.18);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--primary);
}

/* =========================
   CTAボタン（重要）
========================= */
.cta-button {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 24px auto;
  padding: 20px;
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 8px 25px rgba(79,70,229,0.35);
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* ホバー */
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(79,70,229,0.45);
}

/* クリック促進アニメ */
.cta-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.3);
  transform: skewX(-25deg);
  transition: 0.5s;
}

.cta-button:hover::after {
  left: 125%;
}

.benefit-card .cta-button {
  margin-top: auto;
}

/* =========================
   補足テキスト
========================= */
.note {
  font-size: 0.9rem;
  color: var(--gray);
  text-align: center;
  margin-top: 20px;
  line-height: 1.8;
}

/* =========================
   CTAセクション
========================= */
.cta-section {
  margin: 40px 0;
}

.cta-box {
  background: var(--light-gray);
  border-radius: 24px;
  padding: 60px 20px;
  text-align: center;
}

/* =========================
   フッター
========================= */
footer {
  text-align: center;
  padding: 40px 0;
  color: var(--gray);
  font-size: 0.9rem;
  border-top: 1px solid var(--light-gray);
}

/* =========================
   ユーティリティ
========================= */
.center {
  text-align: center;
}

.mt-40 {
  margin-top: 40px;
}

/* =========================
   レスポンシブ
========================= */
@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .badge { font-size: 1.4rem; }
  .cta-button { font-size: 1.1rem; }
}

/* =========================
   フッター
========================= */
footer a {
  color: var(--gray);
  text-decoration: none;
  margin: 0 8px;
}

footer a:hover {
  color: var(--primary);
}


/* Revision: accessible layout and editorial content */
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif; overflow-wrap: anywhere; }
a { color: var(--primary-dark); text-underline-offset: 3px; }
a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
header { padding: 42px 0 54px; }
header::before { pointer-events: none; animation: none; }
header .container { position: relative; }
h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.5; }
.badge { font-size: 1rem; box-shadow: none; padding: 8px 20px; }
.subtitle { max-width: 760px; margin: auto; font-size: 1.1rem; }
section { padding: 46px 0; }
section p + p { margin-top: 16px; }
.site-nav { background: var(--white); border-bottom: 1px solid var(--light-gray); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 17px; padding-bottom: 17px; }
.site-brand { font-weight: 700; text-decoration: none; }
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; }
.nav-links a { color: var(--text); }
.ad-notice { font-size: .83rem; padding-top: 14px; padding-bottom: 14px; color: var(--gray); }
.ad-notice strong { color: var(--text); margin-right: 8px; }
.article-meta { padding: 22px 0 0; font-size: .85rem; color: var(--gray); }
.lead { max-width: 800px; margin: 0 auto 28px; font-size: 1.05rem; }
.benefits { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin-top: 24px; }
.benefit-card { justify-content: flex-start; gap: 10px; min-width: 0; }
.benefit-card:hover { transform: none; }
.benefit-card h3 { margin-bottom: 0; }
.benefit-card ul, .checklist { padding-left: 1.5em; }
li + li { margin-top: 10px; }
.checklist { margin: 24px 0; }
.table-scroll { width: 100%; overflow-x: auto; border-radius: 12px; margin-top: 16px; border: 1px solid var(--light-gray); }
.comparison-table { min-width: 780px; margin: 0; background: var(--white); }
.comparison-table caption { padding: 14px; text-align: left; font-weight: 700; }
.comparison-table th, .comparison-table td { text-align: left; vertical-align: top; line-height: 1.8; }
.comparison-table tbody th { background: var(--white); width: 22%; }
.scroll-hint { font-size: .85rem; color: var(--gray); margin-top: 16px; }
.school-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.school-card { padding: 28px; border: 1px solid var(--light-gray); border-radius: 16px; background: var(--white); display: flex; flex-direction: column; min-width: 0; }
.eyebrow { color: var(--primary); font-size: .85rem; font-weight: 700; margin-bottom: 10px; }
.school-card dl { margin: 18px 0 24px; }
dt { font-weight: 700; margin-top: 14px; }
dd { margin-top: 6px; }
.school-card .cta-button { margin-top: auto; margin-bottom: 0; font-size: 1rem; border-radius: 12px; }
.cta-button { font-size: 1.1rem; padding: 17px 20px; }
.callout { border-left: 4px solid var(--primary); padding: 22px; background: var(--white); border-radius: 0 12px 12px 0; margin: 24px 0; }
.source-list { padding-left: 1.5em; }
.article-link { color: var(--text); text-decoration: none; border: 1px solid var(--light-gray); }
.article-link h3 { color: var(--primary-dark); }
.steps { list-style: none; counter-reset: step; }
.steps > li { counter-increment: step; margin: 24px 0; padding: 24px; border: 1px solid var(--light-gray); border-radius: 14px; background: var(--white); }
.steps > li h3::before { content: counter(step) ". "; color: var(--primary); }
.profile { max-width: 780px; margin: auto; gap: 16px; }
.avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #fff; background: var(--primary); font-size: 2rem; font-weight: 700; }
.contact-address { font-size: 1.1rem; font-weight: 700; overflow-wrap: anywhere; }
footer { margin-top: 40px; padding: 32px 0; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 18px; }
.skip-link { position: absolute; left: 12px; top: -100px; padding: 12px; background: var(--white); z-index: 10; }
.skip-link:focus { top: 12px; }
@media (max-width: 640px) {
  .nav-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav-links { gap: 14px; }
  .school-grid { grid-template-columns: 1fr; }
  .school-card { padding: 22px; }
  section { padding: 34px 0; }
  h2 { font-size: 1.45rem; }
  header { padding: 22px 0 38px; }
  .badge { font-size: .9rem; }
  .article-meta { font-size: .8rem; }
}
@media (prefers-color-scheme: dark) {
  :root { --primary: #a5b4fc; --primary-dark: #c7d2fe; }
  header { background: linear-gradient(135deg, #3730a3, #312e81); }
  .badge { color: #3730a3; }
  .avatar { background: #4f46e5; }
  .ad-notice { color: #cbd5e1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
