/* ベース */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "YuGothic", "メイリオ", sans-serif;
  line-height: 1.7;
  color: #1f2933;
  background: #f3f5fb;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 共通レイアウト */

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ヘッダー */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e0e7ff;
  box-shadow: 0 2px 6px rgba(15, 46, 90, 0.06);
  position: sticky;
  top: 0;
  z-index: 800;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-service {
  font-size: 18px;
  font-weight: 700;
  color: #16335b;
}

.logo-office {
  font-size: 12px;
  color: #6b7280;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e0edff;
  color: #1d4ed8;
  font-weight: 600;
}

.header-tel {
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #d0d7ff;
  color: #1d4ed8;
  font-weight: 600;
}

/* ナビゲーション */

.site-nav {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nav-list li a {
  display: block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
  color: #4b5563;
  transition: background 0.15s, color 0.15s;
}

.nav-list li a:hover {
  background: #e0edff;
  color: #1d4ed8;
}

/* フローティング電話ボタン */

.floating-tel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
}

.floating-tel a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}

/* メイン */

main {
  flex: 1;
}

/* ヒーロー（ファーストビュー） */

.hero {
  padding: 32px 0 24px;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  background: radial-gradient(circle at top left, #e0edff, #ffffff);
  border-radius: 20px;
  padding: 28px 20px;
  box-shadow: 0 10px 30px rgba(15, 46, 90, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
}

.hero-eyecatch {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.06);
  color: #1d4ed8;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 26px;
  margin: 6px 0 10px;
  color: #0f172a;
}

.hero-lead {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 12px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.hero-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, background 0.1s;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  color: #2563eb;
  border: 1px solid #93c5fd;
}

.btn-outline:hover {
  background: #eff6ff;
}

.hero-note {
  font-size: 11px;
  color: #6b7280;
}

.hero-side {
  font-size: 12px;
  color: #4b5563;
  border-left: 1px solid #bdd3ff;
  padding-left: 16px;
  align-self: center;
}

/* セクション */

.section {
  padding: 48px 0;
}

.section--alt {
  background: linear-gradient(180deg, #f9fafb, #eef2ff);
}

.section-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 4px;
}

.section-title {
  font-size: 22px;
  margin: 0 0 16px;
  color: #111827;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2563eb, #38bdf8);
}

.section-lead {
  font-size: 14px;
  color: #4b5563;
  margin: 0 0 18px;
}

/* タイポ */

.section p {
  font-size: 14px;
  color: #374151;
  margin: 0 0 12px;
}

.section h3 {
  font-size: 17px;
  margin: 18px 0 8px;
  color: #111827;
}

/* グリッド・カード */

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 12px;
}

.feature-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.feature-card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-card h3::before {
  content: "●";
  font-size: 9px;
  color: #2563eb;
}

/* セルフチェック用グリッド */

.check-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 8px;
}

.check-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px dashed #c4d3ff;
}

.check-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1d4ed8;
}

.list-check {
  list-style: none;
  padding-left: 0;
  margin: 4px 0 0;
}

.list-check li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 4px;
  font-size: 13px;
}

.list-check li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #16a34a;
  font-size: 11px;
}

/* セルフチェック後のリンク（不安別動線） */

.check-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.check-links span {
  font-size: 12px;
  color: #6b7280;
  margin-right: 4px;
}

.check-links a {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  white-space: nowrap;
}

/* セルフチェック後のタイプ診断 */
.check-types {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.check-type {
  background: #f9fafb;
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px dashed #e5e7eb;
  font-size: 12px;
}

.check-type-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
}


/* リスクボックス */

.risk-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 8px;
}

.risk-card {
  background: #fff7ed;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid #fed7aa;
}

.risk-card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #b45309;
}

.risk-card h3::before {
  content: "!";
  font-weight: 700;
  font-size: 12px;
  border-radius: 999px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f97316;
  color: #fff;
}

/* 比較表 */

.compare-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  margin-top: 12px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.compare-table th,
.compare-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
}

.compare-table th {
  background: #eff6ff;
  text-align: left;
  white-space: nowrap;
}

.compare-note {
  font-size: 12px;
  color: #6b7280;
}

/* サービス内容：番号付き */

.service-list {
  counter-reset: service;
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0;
}

.service-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  font-size: 14px;
}

.service-list li::before {
  counter-increment: service;
  content: counter(service);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 料金ボックス */

.price-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  margin-top: 12px;
}

.price-box h3 {
  margin-top: 16px;
  font-size: 16px;
}

.price-box h3:first-child {
  margin-top: 0;
}

.price-note {
  font-size: 12px;
  color: #6b7280;
}

/* ケースカード */

.case-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 12px;
}

.case-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
}

.case-label {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* FAQ（内側スクロール） */

.faq-scroll {
  max-height: 340px;
  overflow-y: auto;
  padding: 12px 12px 12px 4px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

/* スクロールバー（Webkit系） */
.faq-scroll::-webkit-scrollbar {
  width: 6px;
}

.faq-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.faq-scroll::-webkit-scrollbar-thumb {
  background: #cbd5f5;
  border-radius: 999px;
}

.faq-category {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin: 14px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e5edff;
  display: inline-block;
}

.faq-item + .faq-item {
  border-top: 1px solid #e5e7eb;
  margin-top: 10px;
  padding-top: 10px;
}

.faq-q {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.faq-a {
  font-size: 13px;
  color: #4b5563;
}

/* ご相談の流れ：タイムライン */

.steps {
  margin-top: 8px;
  border-left: 2px solid #d1d5db;
  padding-left: 16px;
}

.step {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 8px;
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2563eb;
  border: 2px solid #e5edff;
}

.step-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.step h3 {
  margin: 4px 0 4px;
}

.step h3::before {
  content: none;
}
/* ミニFAQ（CTA前の軽い不安解消） */
.mini-faq {
  margin-top: 24px;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.mini-faq h3 {
  margin-top: 0;
  font-size: 15px;
}

.mini-faq ul {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0;
  font-size: 13px;
}

.mini-faq li {
  margin-bottom: 6px;
}

/* CTAセクション */

.cta-box {
  text-align: center;
}

.cta-box p {
  margin: 6px 0;
}

.cta-options {
  margin: 16px 0 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cta-option {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.cta-option-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cta-option-note {
  font-size: 12px;
  color: #6b7280;
}
/* ページ末尾のソフトCTA */
.section-soft-cta {
  background: #f9fafb;
  padding-top: 24px;
  padding-bottom: 32px;
}

.section-soft-cta .section-inner {
  text-align: center;
}

.section-soft-cta p {
  font-size: 13px;
}

/* フッター */

.site-footer {
  margin-top: 32px;
  padding: 24px 0 16px;
  background: #111827;
  color: #e5e7eb;
}

.footer-container {
  max-width: 960px;
}

.footer-main h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.footer-main p {
  margin: 2px 0;
  font-size: 13px;
}

.footer-main a {
  color: #bfdbfe;
}

.footer-copy {
  margin-top: 12px;
  font-size: 11px;
  text-align: right;
  color: #9ca3af;
}

/* 固定ヘッダー対策：アンカー位置の余白調整（保険） */
[id] {
  scroll-margin-top: 96px;
}

@media (max-width: 768px) {
  [id] {
    scroll-margin-top: 72px;
  }
}

/* レスポンシブ */

@media (max-width: 768px) {

  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-side {
    border-left: none;
    border-top: 1px solid #bdd3ff;
    padding-left: 0;
    padding-top: 12px;
  }

  .section {
    padding: 32px 0;
  }

  .compare-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}