/* =============================================
   新事業進出補助金ナビ - base.css
   CSS変数・リセット・共通UI・ダークモード
   ============================================= */

/* === CSS変数 === */
:root {
  --accent-primary:   #0d9488;    /* 成長・挑戦のティールグリーン */
  --accent-secondary: #6366f1;    /* 新事業＝革新のインディゴ */
  --accent-warning:   #d97706;    /* 注意・締切の橙 */
  --accent-danger:    #dc2626;    /* エラー・警告の赤 */
  --accent-hover:     #0f766e;    /* primary hover */

  --bg-primary:   #ffffff;
  --bg-secondary: #f8fafc;
  --bg-surface:   #f1f5f9;
  --bg-hover:     #e2e8f0;

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --text-inverse:   #ffffff;

  --border-color:  #e2e8f0;
  --border-radius: 8px;
  --radius-sm:     4px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     24px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.12);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.15);

  --font-sans:  'LINE Seed JP', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-mono:  'JetBrains Mono', 'Cascadia Code', 'Courier New', monospace;

  --container:  1140px;
  --header-h:   64px;
  --sidebar-w:  280px;

  --transition: 0.2s ease;
}

/* === ダークモード === */
[data-theme="dark"] {
  --bg-primary:   #0f172a;
  --bg-secondary: #1e293b;
  --bg-surface:   #334155;
  --bg-hover:     #475569;

  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  --border-color: #334155;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.5);
}

/* === リセット === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }
button { font-family: var(--font-sans); cursor: pointer; }
input, textarea, select { font-family: var(--font-sans); }

/* === コンテナ === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }
@media (max-width: 768px) { .container { padding: 0 16px; } }

/* =============================================
   ヘッダー
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.9);
}
.site-header .container { height: 100%; }
[data-theme="dark"] .site-header {
  background: rgba(15,23,42,.9);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}
.site-logo .logo-icon {
  flex-shrink: 0;
  margin-right: 3px;
  align-self: center;
}
.site-logo .logo-ai {
  font-family: 'LINE Seed JP', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #1a1a1a;
  margin-right: 1px;
}
.site-logo .logo-sub {
  font-family: 'LINE Seed JP', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a1a1a;
}
.site-logo .logo-navi {
  font-family: 'M PLUS 2', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0d9488;
  margin-left: 3px;
}
[data-theme="dark"] .site-logo .logo-ai,
[data-theme="dark"] .site-logo .logo-sub {
  color: #f1f5f9;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.header-nav a {
  color: var(--text-secondary);
  font-size: .9rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.header-nav a:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}
.btn-consult-header {
  background: var(--accent-primary);
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600;
  font-size: .875rem !important;
}
.btn-consult-header:hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
}
.header-theme-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  transition: background var(--transition);
}
.header-theme-btn:hover { background: var(--bg-surface); }

/* ハンバーガー */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  color: var(--text-primary);
}
@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger-btn { display: flex; }
}

/* サブヘッダー */
.sub-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: var(--header-h);
  z-index: 99;
}
.sub-header-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sub-header-inner::-webkit-scrollbar { display: none; }
.sub-header-inner a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-size: .8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  border-bottom: 2px solid transparent;
}
.sub-header-inner a i,
.sub-header-inner a svg { width: 14px; height: 14px; }
.sub-header-inner a:hover,
.sub-header-inner a.active {
  color: var(--accent-primary);
  background: rgba(29,78,216,.04);
  border-bottom-color: var(--accent-primary);
}
.sub-header-inner a.active { font-weight: 700; }
[data-theme="dark"] .sub-header {
  background: rgba(15,23,42,.95);
}
@media (max-width: 768px) {
  .sub-header-inner a { padding: 8px 12px; font-size: .75rem; }
}

/* ドロワー */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }
.drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--bg-primary);
  z-index: 201;
  padding: 24px;
  overflow-y: auto;
  transition: right .3s ease;
}
.drawer.open { right: 0; }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}
.drawer-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 4px;
}
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  font-size: .95rem;
}

/* =============================================
   フッター
   ============================================= */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 0;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .site-logo { font-size: 1rem; margin-bottom: 12px; }
.footer-brand p { font-size: .85rem; color: var(--text-secondary); line-height: 1.6; }
.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: .875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent-primary); }
/* フッター地域セクション */
.footer-region-section {
  padding-top: 24px;
  margin-bottom: 32px;
  border-top: 1px solid var(--border-color);
}
.footer-region-section h4 {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.footer-region-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .footer-region-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-region-grid { grid-template-columns: 1fr; }
}
.footer-region-block {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 12px;
}
.footer-region-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}
.footer-region-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.footer-region-links a {
  font-size: .8rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  white-space: nowrap;
}
.footer-region-links a:hover { color: var(--accent-primary); }
.footer-city-links {
  gap: 6px 12px;
}
.footer-city-links a {
  font-size: .8rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 4px 10px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
.footer-city-links a:hover {
  color: var(--accent-primary);
  background: var(--bg-tertiary, var(--border-color));
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  font-size: .8rem;
  color: var(--text-muted);
}
@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
.footer-links,
.footer-bottom-links { display: flex; gap: 16px; }
.footer-links a,
.footer-bottom-links a { color: var(--text-muted); }
.footer-links a:hover,
.footer-bottom-links a:hover { color: var(--text-secondary); }

/* =============================================
   フローティングCTA（PC右下カード / スマホ下部固定バー）
   ============================================= */
.float-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px;
  padding: 16px;
  width: 260px;
  max-width: calc(100vw - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.float-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.float-cta-team {
  width: 100%;
  object-fit: cover;
  object-position: top;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}
.float-cta-btn {
  font-size: 13px;
  padding: 10px 16px;
  text-align: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
}
.float-cta-label {
  font-size: 10px;
  opacity: .7;
  font-weight: 400;
}
.float-cta-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 600;
  font-size: 13px;
}
@media (max-width: 768px) {
  .float-cta {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    flex-direction: row;
    padding: 8px;
    gap: 8px;
  }
  .float-cta-team { display: none; }
  .float-cta-btn {
    flex: 1;
    font-size: 13px;
    padding: 10px 8px;
  }
}

/* トップへ戻るボタン */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 50;
  width: 44px;
  height: 44px;
  background: var(--accent-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, transform .3s;
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}
.scroll-top-btn i { width: 20px; height: 20px; }
@media (max-width: 480px) {
  .scroll-top-btn { bottom: 16px; left: 16px; width: 40px; height: 40px; }
}

/* =============================================
   ボタン
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29,78,216,.3);
}
.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.btn-success {
  background: var(--accent-secondary);
  color: #fff;
}
.btn-success:hover {
  background: #047857;
  color: #fff;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-block { width: 100%; justify-content: center; }

/* =============================================
   フォーム
   ============================================= */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-group label .required {
  color: var(--accent-danger);
  margin-left: 4px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: .95rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-hint {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.form-error {
  font-size: .8rem;
  color: var(--accent-danger);
  margin-top: 4px;
}

/* =============================================
   カード
   ============================================= */
.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 20px; }
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

/* =============================================
   バッジ・タグ
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: .75rem;
  font-weight: 600;
}
.badge-primary { background: rgba(29,78,216,.1); color: var(--accent-primary); }
.badge-success { background: rgba(5,150,105,.1); color: var(--accent-secondary); }
.badge-warning { background: rgba(217,119,6,.1); color: var(--accent-warning); }
.badge-danger  { background: rgba(220,38,38,.1); color: var(--accent-danger); }
.badge-gray    { background: var(--bg-surface); color: var(--text-secondary); }

/* =============================================
   アラート・通知
   ============================================= */
.alert {
  padding: 14px 16px;
  border-radius: var(--border-radius);
  font-size: .9rem;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-info    { background: #eff6ff; color: #1e40af; }
.alert-success { background: #f0fdf4; color: #166534; }
.alert-warning { background: #fffbeb; color: #92400e; }
.alert-danger  { background: #fef2f2; color: #991b1b; }

/* =============================================
   Toast通知
   ============================================= */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 16px;
  border-radius: var(--border-radius);
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform .3s ease;
  min-width: 280px;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show { transform: translateX(0); }
.toast-success { background: #f0fdf4; color: #166534; }
.toast-error   { background: #fef2f2; color: #991b1b; }
.toast-info    { background: #eff6ff; color: #1e40af; }

/* =============================================
   パンくずリスト
   ============================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  padding: 12px 0;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent-primary); }
.breadcrumb span { color: var(--text-muted); }

/* =============================================
   ページヘッダー
   ============================================= */
.page-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
}
.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.page-header .lead {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* =============================================
   グリッド
   ============================================= */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* =============================================
   ローディング
   ============================================= */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text-muted);
}
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================
   ユーティリティ
   ============================================= */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-primary { color: var(--accent-primary); }
.text-success { color: var(--accent-secondary); }
.text-warning { color: var(--accent-warning); }
.text-danger  { color: var(--accent-danger); }
.text-muted   { color: var(--text-muted); }
.font-bold    { font-weight: 700; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.mr-1 { margin-right: 4px; }

/* === Privacy Policy === */
.privacy-content { padding-bottom: 60px; }
.privacy-section { margin-bottom: 32px; }
.privacy-section h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
.privacy-section p { line-height: 1.8; margin-bottom: 8px; color: var(--text-secondary); }
.privacy-section ul { padding-left: 24px; margin: 8px 0; }
.privacy-section li { line-height: 1.8; color: var(--text-secondary); }
.privacy-date { margin-top: 40px; color: var(--text-muted); font-size: .85rem; }

/* === Listing Complete === */
.complete-page { max-width: 700px; margin: 0 auto; text-align: center; padding: 40px 0 80px; }
.complete-icon { margin-bottom: 16px; }
.complete-icon i { width: 64px; height: 64px; color: var(--accent-secondary); }
.complete-page h1 { font-size: 1.5rem; margin-bottom: 8px; }
.complete-steps { text-align: left; padding-left: 0; counter-reset: step; list-style: none; margin: 24px 0; }
.complete-steps li { position: relative; padding: 12px 0 12px 48px; border-bottom: 1px solid var(--border-color); counter-increment: step; }
.complete-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
}
.complete-steps li strong { display: block; margin-bottom: 4px; }
.complete-steps li p { font-size: .875rem; color: var(--text-secondary); margin: 0; }

/* === Plan Detail (public) === */
.plan-detail-card { text-align: center; padding: 32px 24px; }
.plan-detail-card.plan-popular { border-top: 4px solid var(--accent-primary); box-shadow: var(--shadow-lg); }
.plan-detail-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.plan-detail-price { font-size: 2.2rem; font-weight: 700; color: var(--accent-primary); }
.plan-detail-unit { font-size: .85rem; font-weight: 400; color: var(--text-muted); }
.plan-detail-leads { font-size: .85rem; color: var(--text-muted); margin: 8px 0 16px; }
.plan-detail-features { text-align: left; margin: 16px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.plan-detail-features li { display: flex; gap: 6px; align-items: center; font-size: .875rem; }
.plan-detail-features i { width: 16px; height: 16px; color: var(--accent-secondary); flex-shrink: 0; }
.text-success { color: var(--accent-secondary); }

/* =============================================
   CTA セクション（メイン・ミニ・フッターバナー）
   ============================================= */

/* --- メインCTA（記事末尾） --- */
.cta-section {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid rgba(29,78,216,.15);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 48px 0;
}
[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, rgba(29,78,216,.1) 0%, rgba(5,150,105,.1) 100%);
  border-color: rgba(29,78,216,.2);
}
.cta-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.cta-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.cta-icon i { width: 28px; height: 28px; }
.cta-content { flex: 1; }
.cta-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.cta-desc {
  color: var(--text-secondary);
  font-size: .9rem;
  margin-bottom: 12px;
}
.cta-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.cta-points li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  color: var(--accent-secondary);
  font-weight: 600;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.cta-sister-site {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(29,78,216,.1);
  text-align: center;
}
.cta-sister-site p {
  font-size: .875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cta-sister-site a {
  font-weight: 600;
  color: var(--accent-primary);
}
@media (max-width: 768px) {
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-icon { margin: 0 auto; }
  .cta-points { justify-content: center; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .hidden-sp { display: none; }
}
@media (max-width: 480px) {
  .cta-section { padding: 24px 20px; }
}

/* --- リッチCTA（記事末尾） --- */
.cta-rich {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid rgba(29,78,216,.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 48px 0;
}
[data-theme="dark"] .cta-rich {
  background: linear-gradient(135deg, rgba(29,78,216,.08) 0%, rgba(5,150,105,.08) 100%);
  border-color: rgba(29,78,216,.15);
}
.cta-rich-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.cta-rich-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.cta-rich-desc {
  font-size: .9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}
.cta-rich-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 24px;
  padding: 0;
  list-style: none;
}
.cta-rich-points li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  color: var(--accent-secondary);
  font-weight: 600;
}
.cta-rich-points li i { width: 16px; height: 16px; }
.cta-rich-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 0;
}
.cta-rich-actions .btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
}
.btn-outline:hover {
  background: var(--accent-primary);
  color: #fff;
}
.cta-bottom-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(29,78,216,.1);
  font-size: .875rem;
}
.cta-bottom-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
}
.cta-bottom-link:hover { text-decoration: underline; }
.cta-bottom-link i { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .cta-rich { padding: 24px 20px; }
  .cta-rich-header { flex-direction: column; text-align: center; }
  .cta-rich-points { justify-content: center; }
  .cta-rich-actions { flex-direction: column; }
  .cta-rich-actions .btn-lg { width: 100%; justify-content: center; }
}

/* --- ミニCTA（記事中盤） --- */
.cta-mini {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid rgba(29,78,216,.12);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
[data-theme="dark"] .cta-mini {
  background: linear-gradient(135deg, rgba(29,78,216,.08) 0%, rgba(5,150,105,.08) 100%);
  border-color: rgba(29,78,216,.15);
}
.cta-mini-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.cta-mini-icon i { width: 22px; height: 22px; }
.cta-mini-body { flex: 1; }
.cta-mini-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.cta-mini-desc {
  font-size: .85rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}
.cta-mini .btn {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .cta-mini { flex-direction: column; text-align: center; padding: 20px; }
  .cta-mini-icon { margin: 0 auto; }
}

/* --- フッターCTAバナー --- */
.footer-cta-team {
  width: 200px;
  margin: 0 auto 16px;
  display: block;
}
.footer-cta-banner {
  background: linear-gradient(135deg, #1d4ed8 0%, #059669 100%);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
}
.footer-cta-banner-inner {
  max-width: 720px;
  margin: 0 auto;
}
.footer-cta-banner h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.footer-cta-banner p {
  font-size: .95rem;
  opacity: .9;
  margin-bottom: 24px;
  line-height: 1.6;
}
.footer-cta-banner .btn {
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-cta-banner .btn-white {
  background: #fff;
  color: #1d4ed8;
  border: none;
  text-decoration: none;
}
.footer-cta-banner .btn-white:hover { background: #f0f4ff; }
.footer-cta-banner .btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  text-decoration: none;
}
.footer-cta-banner .btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}
.footer-cta-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .footer-cta-banner { padding: 36px 20px; }
  .footer-cta-banner h2 { font-size: 1.25rem; }
  .footer-cta-btns { flex-direction: column; align-items: center; }
}

/* === 会社概要・特商法テーブル === */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  text-align: left;
  font-size: .95rem;
  line-height: 1.6;
}
.legal-table th {
  width: 160px;
  font-weight: 700;
  white-space: nowrap;
  vertical-align: top;
  color: var(--text-primary, #111);
}
@media (max-width: 640px) {
  .legal-table th,
  .legal-table td { display: block; width: 100%; padding: 8px 0; }
  .legal-table th { border-bottom: none; padding-bottom: 0; }
}

/* === お知らせ・プレスリリース === */
.news-list { margin: 24px 0; }
.news-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.news-item time {
  font-size: .85rem;
  color: var(--text-secondary, #6b7280);
  white-space: nowrap;
  min-width: 90px;
}
.news-badge {
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--accent-primary, #1d4ed8);
  color: #fff;
}
.news-item p { margin: 0; font-size: .95rem; }
@media (max-width: 640px) {
  .news-item { flex-wrap: wrap; gap: 6px; }
  .news-item p { width: 100%; }
}

/* === よくある質問（FAQ） === */
.faq-list { margin: 24px 0; }
.faq-item {
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.faq-question {
  padding: 18px 0;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-secondary, #6b7280);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] .faq-question::after {
  content: '−';
}
.faq-answer {
  padding: 0 0 18px;
  font-size: .93rem;
  line-height: 1.7;
  color: var(--text-secondary, #4b5563);
}
.faq-answer p { margin: 0; }

/* === エラーページ === */
.error-page { padding: 60px 20px; text-align: center; }
