/* ============================================================
   ふとうこう進路コンパス LPスタイル
   モバイルファースト / 画像不使用(SVG・CSSのみ) /
   カラー: スカイブルー(信頼) + オレンジ(CTA)
   ============================================================ */

/* ---------- デザイントークン ---------- */
:root {
  --color-primary: #0ea5e9;        /* スカイブルー(信頼) */
  --color-primary-dark: #0284c7;
  --color-primary-deep: #0c4a6e;   /* 濃紺(本文・フッター) */
  --color-cta: #ea580c;            /* CTAオレンジ(温かみ) */
  --color-cta-dark: #c2410c;
  --color-bg: #f0f9ff;             /* 薄いスカイブルー背景 */
  --color-surface: #ffffff;
  --color-text: #0c4a6e;
  --color-text-muted: #47657a;
  --color-border: #dbeafe;
  --color-pr-bg: #fef3c7;          /* PR表記:アンバー背景 */
  --color-pr-text: #92400e;
  --font-heading: "Noto Serif JP", serif;
  --font-body: "Noto Sans JP", sans-serif;
  --radius: 16px;
  --shadow-card: 0 4px 20px rgba(12, 74, 110, 0.08);
  --shadow-card-hover: 0 8px 28px rgba(12, 74, 110, 0.14);
  /* z-index スケール */
  --z-header: 20;
  --z-sticky-cta: 30;
}

/* ---------- リセット・ベース ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem; /* 16px:モバイルでの可読性を確保 */
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
}

/* スマホでは下部固定CTAに隠れないよう余白を確保 */
@media (max-width: 767px) {
  body {
    padding-bottom: 84px;
  }
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--color-primary-dark);
}

/* キーボード操作時のフォーカスリング */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* スクリーンリーダー専用テキスト */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* スマホのみ改行 */
.br-sp {
  display: inline;
}
@media (min-width: 768px) {
  .br-sp {
    display: none;
  }
}

/* ---------- レイアウト共通 ---------- */
.container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 20px;
}

.container--narrow {
  max-width: 760px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4.5vw, 1.9rem);
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 0.75em;
}

.section-lead {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 40em;
  margin: 0 auto 2rem;
}

/* ---------- ボタン共通 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px; /* タッチターゲット44px以上を確保 */
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* 青:ページ内誘導用 */
.btn--primary {
  background: var(--color-primary-dark);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn--primary:hover {
  background: var(--color-primary-deep);
}

/* オレンジ:成果地点へのCTA用 */
.btn--cta {
  background: var(--color-cta);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.btn--cta:hover {
  background: var(--color-cta-dark);
}

/* ---------- PR表記バー(偽装禁止・視認性最優先) ---------- */
.pr-banner {
  background: var(--color-pr-bg);
  color: var(--color-pr-text);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
}

.site-logo__icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.pr-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-pr-text);
  background: var(--color-pr-bg);
  border: 1px solid #f59e0b;
  border-radius: 4px;
  padding: 2px 8px;
}

/* ---------- ヒーロー ---------- */
.hero {
  background: linear-gradient(170deg, #e0f2fe 0%, var(--color-bg) 70%);
  padding: 56px 0 64px;
  text-align: center;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 5.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 1em;
}

.hero__lead {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.hero__note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ---------- 悩み共感セクション ---------- */
.worries {
  padding: 64px 0;
}

.worries__grid {
  display: grid;
  gap: 20px;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .worries__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.worry-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  text-align: center;
}

.worry-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: #e0f2fe;
  border-radius: 50%;
  color: var(--color-primary-dark);
}

.worry-card__icon svg {
  width: 28px;
  height: 28px;
}

.worry-card__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5em;
}

.worry-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  text-align: left;
}

.worries__closing {
  text-align: center;
  margin-top: 2.5rem;
  font-weight: 500;
}

/* ---------- 比較セクション(サービスカード) ---------- */
.services {
  padding: 64px 0;
  background: var(--color-surface);
}

.services__grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-primary);
}

/* 中央カードを軽く強調 */
.service-card--featured {
  border: 2px solid var(--color-primary);
}

.service-card__tag {
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: #e0f2fe;
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 12px;
}

.service-card__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
}

.service-card__category {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.service-card__features {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.service-card__features li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9375rem;
}

/* チェックマーク(CSSのみで描画) */
.service-card__features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--color-primary);
  border-bottom: 2.5px solid var(--color-primary);
  transform: rotate(-45deg);
}

.service-card__recommend {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 1.25rem;
}

.service-card__recommend h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.4em;
}

.service-card__recommend ul {
  list-style: none;
  display: grid;
  gap: 4px;
}

.service-card__recommend li {
  position: relative;
  padding-left: 16px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.service-card__recommend li::before {
  content: "・";
  position: absolute;
  left: 0;
}

.service-card__cta {
  margin-top: auto;
  width: 100%;
}

.service-card__cta-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 8px;
}

/* ---------- 比較表 ---------- */
.compare {
  padding: 64px 0;
}

/* モバイルでは表を横スクロール(ページ全体は横スクロールさせない)
   contain: inline-size がないと、モバイルブラウザが表の min-width に
   引きずられてページ全体の表示幅を広げてしまうため必須 */
.compare__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  contain: layout inline-size;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  background: var(--color-surface);
}

.compare__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare__table th,
.compare__table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.compare__table thead th {
  background: var(--color-primary-deep);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.compare__table thead th:first-child {
  background: var(--color-primary-deep);
}

.compare__table tbody th {
  background: #e0f2fe;
  font-weight: 700;
  white-space: nowrap;
  text-align: left;
}

.compare__table tbody tr:last-child th,
.compare__table tbody tr:last-child td {
  border-bottom: none;
}

.compare__sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.compare__price {
  color: var(--color-text-muted);
}

.mark {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
}

.mark--good {
  color: var(--color-cta);
}

.mark--mid {
  color: var(--color-text-muted);
}

.compare__note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* ---------- FAQ(アコーディオン) ---------- */
.faq {
  padding: 64px 0;
  background: var(--color-surface);
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--color-surface);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px; /* タッチターゲット確保 */
  padding: 16px 20px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq__question:hover {
  background: var(--color-bg);
}

.faq__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-primary-dark);
  transition: transform 0.25s ease;
}

/* 開いたら「+」を「×」に回転 */
.faq__question[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 20px 18px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ---------- クロージングCTA ---------- */
.closing {
  padding: 72px 0;
  background: linear-gradient(170deg, var(--color-bg) 0%, #e0f2fe 100%);
}

.closing__inner {
  text-align: center;
}

.closing__title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 0.75em;
}

.closing__text {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--color-primary-deep);
  color: #e0f2fe;
  padding: 40px 0 32px;
  font-size: 0.8125rem;
  line-height: 1.9;
}

.site-footer a {
  color: #bae6fd;
}

.site-footer__pr {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 1.25rem;
}

.site-footer__notes {
  list-style: none;
  display: grid;
  gap: 4px;
  margin-bottom: 1.25rem;
  color: #bae6fd;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 16px;
}

.site-footer__copy {
  margin-top: 16px;
  color: #7dd3fc;
}

/* ---------- スマホ用固定CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-sticky-cta);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -4px 16px rgba(12, 74, 110, 0.12);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta__btn {
  width: 100%;
}

/* PC・タブレットでは非表示(カード内CTAが見えているため) */
@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
}

/* ---------- プライバシーポリシーページ用 ---------- */
.policy-body {
  background: var(--color-surface);
}

.policy-main {
  padding: 48px 0 72px;
}

.policy-main h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: 1em;
}

.policy-main h2 {
  font-family: var(--font-heading);
  font-size: 1.185rem;
  margin: 2em 0 0.6em;
  padding-left: 12px;
  border-left: 4px solid var(--color-primary);
}

.policy-main p,
.policy-main ul {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0.75em;
}

.policy-main ul {
  padding-left: 1.4em;
}

.policy-back {
  display: inline-block;
  margin-top: 2.5rem;
}
