/* ============================================================
   前払いサポート君 - メインスタイルシート
   カラーテーマ: ネイビー × ホワイト × アクセントブルー
   ============================================================ */

/* ============================================================
   CSS カスタムプロパティ（変数）
   ============================================================ */
:root {
  /* メインカラー */
  --color-navy:       #1a2e5a;
  --color-navy-light: #243d78;
  --color-blue:       #2563eb;
  --color-blue-light: #3b82f6;
  --color-teal:       #0891b2;
  --color-purple:     #6d28d9;

  /* テキストカラー */
  --color-text-primary:   #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted:     #94a3b8;

  /* 背景カラー */
  --color-bg-white:   #ffffff;
  --color-bg-light:   #f8fafc;
  --color-bg-section: #f1f5f9;

  /* ボーダー */
  --color-border:       #e2e8f0;
  --color-border-light: #f1f5f9;

  /* フォント */
  --font-primary: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN',
                  'YuGothic', sans-serif;

  /* スペーシング */
  --section-padding:    96px;
  --container-max:      1120px;

  /* 角丸 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* シャドウ */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.05);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-blue: 0 4px 24px rgba(37,99,235,0.18);

  /* トランジション */
  --transition: 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text-primary);
  background: var(--color-bg-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============================================================
   コンテナ
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   セクション共通
   ============================================================ */
section {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue);
  background: #eff6ff;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.35;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.9;
  max-width: 640px;
  margin: 0 auto;
}

.section-desc strong {
  color: var(--color-navy);
}

/* ============================================================
   ボタン
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--color-blue);
  color: #fff;
  border-color: var(--color-blue);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37,99,235,0.28);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-outline:hover {
  background: var(--color-navy);
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 48px;
  font-size: 1rem;
}

/* ============================================================
   ナビゲーションヘッダー
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-navy);
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.4rem;
  color: var(--color-blue);
}

.logo-white .logo-icon,
.logo-white .logo-text {
  color: #fff;
}

/* PC ナビ */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover { color: var(--color-blue); }

.nav-cta {
  background: var(--color-blue) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: var(--radius-sm) !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
  background: var(--color-navy) !important;
  transform: translateY(-1px) !important;
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   ① ヒーロー（ファーストビュー）
   ============================================================ */
.hero {
  padding-top: calc(68px + 72px);
  padding-bottom: 80px;
  background: linear-gradient(160deg, #f0f6ff 0%, #fff 55%, #f8faff 100%);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--color-blue);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-navy);
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--color-blue);
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 3px;
  background: var(--color-blue);
  border-radius: 2px;
  opacity: 0.3;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.9;
  margin-bottom: 28px;
}

.sp-br { display: none; }

.hero-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.hero-points li i {
  color: var(--color-blue);
  font-size: 1rem;
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ヒービジュアルカード */
.hero-visual {
  display: flex;
  justify-content: center;
}

.visual-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  width: 100%;
  max-width: 420px;
}

.vc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.9375rem;
  margin-bottom: 28px;
}

.vc-header i { color: var(--color-blue); font-size: 1.1rem; }

.vc-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 24px;
}

.vc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  flex: 1;
}

.vc-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
}

.vc-icon.blue  { background: var(--color-blue); }
.vc-icon.navy  { background: var(--color-navy); }
.vc-icon.teal  { background: var(--color-teal); }

.vc-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.4;
}

.vc-label small {
  display: block;
  font-weight: 400;
  color: var(--color-text-secondary);
  font-size: 0.725rem;
  margin-top: 2px;
}

.vc-arrow {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.vc-note {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: var(--color-teal);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.vc-tag-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vc-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.vc-tag.good {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.vc-tag.bad {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* ヒーロー背景装飾 */
.hero-bg-deco {
  position: absolute;
  top: -120px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   ② サービスの特徴
   ============================================================ */
.features { background: var(--color-bg-light); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrap {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  color: #fff;
  margin-bottom: 20px;
}

.feature-icon-wrap.blue   { background: var(--color-blue); }
.feature-icon-wrap.navy   { background: var(--color-navy); }
.feature-icon-wrap.teal   { background: var(--color-teal); }
.feature-icon-wrap.purple { background: var(--color-purple); }

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
  line-height: 1.45;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}

.feature-card p strong { color: var(--color-navy); }

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: var(--color-blue);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
}

/* 重要注記バナー */
.notice-banner {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid var(--color-blue);
  border-left: 5px solid var(--color-blue);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.notice-icon {
  font-size: 1.5rem;
  color: var(--color-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-text {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.85;
}

.notice-text strong {
  color: var(--color-navy);
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

/* ============================================================
   ③ 導入メリット
   ============================================================ */
.benefits { background: var(--color-bg-white); }

.benefits-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.benefits-col {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.benefits-col-header {
  padding: 36px 32px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.benefits-col-header.company {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
}

.benefits-col-header.worker {
  background: linear-gradient(135deg, var(--color-teal), #0e7490);
}

.col-icon { font-size: 2rem; opacity: 0.9; }

.benefits-col-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.benefits-col-header p {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.7;
}

.benefits-list {
  background: #fff;
  padding: 0 32px 32px;
}

.benefits-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.benefits-list li:last-child { border-bottom: none; }

.benefit-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.b-icon {
  width: 40px; height: 40px;
  background: #eff6ff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ワーカー側のアイコン色 */
.benefits-col-header.worker ~ .benefits-list .b-icon {
  background: #ecfeff;
  color: var(--color-teal);
}

.b-content strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.b-content p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

/* ============================================================
   ④ ご利用の流れ
   ============================================================ */
.flow { background: var(--color-bg-section); }

.flow-steps {
  display: flex;
  flex-direction: column;
  max-width: 760px;
  margin: 0 auto 56px;
}

.flow-step {
  display: grid;
  grid-template-columns: 56px 56px 1fr;
  gap: 24px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 4px;
}

.step-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-blue);
  opacity: 0.22;
  font-family: Georgia, serif;
  line-height: 1;
  align-self: center;
}

.step-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--color-blue), var(--color-navy));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  align-self: center;
}

.step-content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
  line-height: 1.4;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.step-content strong { color: var(--color-navy); }

.step-note {
  margin-top: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.875rem;
  color: #92400e;
  line-height: 1.7;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.step-note i { flex-shrink: 0; margin-top: 2px; color: #d97706; }
.step-note strong { color: #92400e; }

.flow-connector {
  text-align: center;
  padding: 6px 0;
  color: var(--color-blue);
  font-size: 0.875rem;
  opacity: 0.45;
}

/* 決済フロー比較表 */
.payment-flow-table {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  max-width: 860px;
  margin: 0 auto;
}

.table-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-title i { color: var(--color-blue); }

.table-wrapper { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  line-height: 1.6;
}

thead th {
  background: #f8fafc;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  border-bottom: 2px solid var(--color-border);
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f8fafc; }

td:first-child,
th:first-child {
  font-weight: 600;
  color: var(--color-navy);
}

.bad-col  { background: #fff5f5 !important; color: #dc2626; }
.good-col { background: #f0fdf4 !important; color: #166534; }
.good-col strong { color: #15803d; }

/* ============================================================
   ⑤ 安心の理由
   ============================================================ */
.security { background: var(--color-bg-white); }

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.security-grid .highlight-card {
  grid-column: 1 / -1;
}

.security-card {
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.security-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.security-card.highlight-card {
  background: linear-gradient(135deg, #f0f6ff, #e8f0fe);
  border-color: #bfdbfe;
}

.sec-icon {
  font-size: 2rem;
  color: var(--color-blue);
  margin-bottom: 16px;
}

.security-card.highlight-card .sec-icon { color: var(--color-navy); }

.security-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
  line-height: 1.45;
}

.security-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.security-card p strong { color: var(--color-navy); }

/* 方針バナー */
.policy-banner {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  color: #fff;
}

.policy-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.policy-inner > i {
  font-size: 2rem;
  color: #93c5fd;
  flex-shrink: 0;
  margin-top: 2px;
}

.policy-inner strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.policy-inner p {
  font-size: 0.9375rem;
  opacity: 0.85;
  line-height: 1.8;
}

/* ============================================================
   ⑥ FAQ
   ============================================================ */
.faq { background: var(--color-bg-light); }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item.open {
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-navy);
  transition: background var(--transition);
}

.faq-question:hover { background: #f8fafc; }

.faq-q-label {
  width: 28px; height: 28px;
  background: var(--color-blue);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-question span:not(.faq-q-label) {
  flex: 1;
  line-height: 1.5;
}

.faq-chevron {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-blue);
}

.faq-answer {
  padding: 0 24px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.faq-a-label {
  width: 28px; height: 28px;
  background: #eff6ff;
  color: var(--color-blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.85;
  flex: 1;
}

.faq-answer p strong { color: var(--color-navy); }

.faq-ul {
  list-style: disc;
  padding-left: 1.25em;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-ul li {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  list-style: disc;
}

/* ============================================================
   ⑦ 会社情報
   ============================================================ */
.company { background: var(--color-bg-white); }

.company-inner {
  max-width: 720px;
  margin: 0 auto;
}

.company-table-wrap {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.company-table { width: 100%; border-collapse: collapse; }

.company-table th,
.company-table td {
  padding: 20px 28px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
  vertical-align: middle;
}

.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }

.company-table th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--color-navy);
  width: 36%;
  white-space: nowrap;
}

.company-table td { color: var(--color-text-secondary); }

/* ============================================================
   ⑧ お問い合わせ
   ============================================================ */
.contact { background: var(--color-bg-section); }

.contact-inner {
  max-width: 680px;
  margin: 0 auto;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 48px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form > .form-group {
  margin-bottom: 20px;
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.required {
  font-size: 0.7rem;
  font-weight: 600;
  background: #fef2f2;
  color: #dc2626;
  padding: 2px 7px;
  border-radius: 100px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  color: var(--color-text-primary);
  background: #f8fafc;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition),
              background var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

.form-privacy {
  margin: 20px 0 28px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--color-blue);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label a {
  color: var(--color-blue);
  text-decoration: underline;
}

.form-submit { text-align: center; }
.form-submit .btn { min-width: 200px; }

/* 送信完了メッセージ */
.form-success {
  text-align: center;
  padding: 64px 32px;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid #a7f3d0;
  box-shadow: var(--shadow-md);
}

.success-icon {
  font-size: 3.5rem;
  color: #059669;
  margin-bottom: 20px;
}

.form-success h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 14px;
}

.form-success p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  background: #0f1c3a;
  color: rgba(255,255,255,0.8);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 48px;
}

.footer-brand { max-width: 280px; }

.footer-tagline {
  margin-top: 16px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}

.footer-nav {
  display: flex;
  gap: 60px;
}

.footer-nav-col .footer-nav-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer-nav-col a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-links a:hover { color: rgba(255,255,255,0.75); }

/* ============================================================
   ページトップへ戻るボタン
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 800;
  width: 48px; height: 48px;
  background: var(--color-navy);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition),
              transform var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  background: var(--color-blue);
}

/* ============================================================
   スクロールアニメーション
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   アクセシビリティ
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}

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

/* ============================================================
   レスポンシブ（タブレット: 〜1024px）
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-padding: 72px; }

  .hero-inner { gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-brand { max-width: none; }
  .footer-nav { gap: 40px; }
}

/* ============================================================
   レスポンシブ（スマートフォン: 〜768px）
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-padding: 64px; }

  /* ヘッダー */
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 28px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    gap: 0;
    z-index: 899;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.9375rem;
    color: var(--color-navy) !important;
    background: none !important;
  }

  .nav-links .nav-cta {
    margin-top: 16px;
    text-align: center;
    padding: 14px !important;
    border-radius: var(--radius-sm) !important;
    border-bottom: none !important;
    background: var(--color-blue) !important;
    color: #fff !important;
  }

  .hamburger { display: flex; }

  /* ヒーロー */
  .hero {
    padding-top: calc(68px + 48px);
    padding-bottom: 56px;
  }

  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-title { font-size: 1.875rem; }
  .sp-br { display: block; }

  .hero-ctas { flex-direction: column; gap: 12px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .visual-card { max-width: 100%; }

  /* 特徴 */
  .features-grid { grid-template-columns: 1fr; }

  /* メリット */
  .benefits-columns { grid-template-columns: 1fr; }
  .benefits-col-header { padding: 28px 24px; }
  .benefits-list { padding: 0 24px 24px; }

  /* フロー */
  .flow-step {
    grid-template-columns: 52px 1fr;
    gap: 16px;
    padding: 24px;
  }

  .step-number { display: none; }

  .payment-flow-table { padding: 24px 20px; }
  th, td { padding: 12px 14px; font-size: 0.8125rem; }

  /* 安心の理由 */
  .security-grid { grid-template-columns: 1fr; }
  .security-grid .highlight-card { grid-column: 1; }

  /* FAQ */
  .faq-question { padding: 18px 20px; font-size: 0.9rem; }
  .faq-answer { padding: 0 20px 18px; }

  /* お問い合わせ */
  .contact-form { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }

  /* 会社情報 */
  .company-table th {
    width: auto;
    min-width: 100px;
  }

  .company-table th,
  .company-table td {
    padding: 16px 18px;
    font-size: 0.875rem;
  }

  /* フッター */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 36px;
  }

  .footer-nav { flex-direction: column; gap: 28px; }

  .footer-bottom .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-links { flex-wrap: wrap; gap: 14px; }

  /* ページトップボタン */
  .back-to-top {
    bottom: 20px; right: 20px;
    width: 42px; height: 42px;
    font-size: 0.875rem;
  }

  /* バナー系 */
  .policy-inner { flex-direction: column; gap: 14px; }
  .notice-banner { flex-direction: column; gap: 12px; }
}
