/* ============================
   Zero Start Web - Common Styles
   ============================ */
:root {
  --primary: #1a4d8f;
  --primary-dark: #0f3a5c;
  --primary-light: #4a7fbf;
  --accent: #f9a825;
  --accent-dark: #e65100;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-soft: #555;
  --text-mute: #888;
  --border: #e5e7eb;
  --success: #4caf50;
  --danger: #c33;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* PCのみ88%表示に縮小（見やすさ最適化） */
  zoom: 0.88;
}
/* モバイルでは zoom を解除（読みやすさ優先） */
@media (max-width: 768px) {
  html { zoom: 1; }
}
/* Firefox用フォールバック（zoom非対応版） */
@supports not (zoom: 1) {
  html { font-size: 14px; }
  @media (max-width: 768px) {
    html { font-size: 16px; }
  }
}

body {
  font-family: "游ゴシック", "Yu Gothic", "Hiragino Sans", "Meiryo", -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dark); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================
   Header
   ============================ */
header.site-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.site-header .inner {
  max-width: 1100px;
  margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-header .logo {
  font-size: 18px; font-weight: 800; color: var(--primary);
  letter-spacing: 0.02em;
}
.site-header .logo small {
  display: block; font-size: 10px; color: var(--text-mute);
  letter-spacing: 0.2em; font-weight: 400; margin-top: -2px;
}
.site-header nav ul {
  list-style: none; display: flex; gap: 24px; align-items: center;
}
.site-header nav a {
  color: var(--text); font-size: 14px; font-weight: 500;
}
.site-header nav a:hover { color: var(--primary); }
.site-header .cta-btn {
  background: var(--accent); color: #fff !important;
  padding: 8px 18px; border-radius: 24px; font-weight: 700;
}
.site-header .cta-btn:hover { background: var(--accent-dark); color: #fff; }

.menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 24px; color: var(--primary);
}

/* ============================
   Hero（共通）
   ============================ */
.hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 60%, var(--primary-light));
  color: #fff;
  padding: 80px 20px 100px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(249,168,37,0.2) 0, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(74,127,191,0.3) 0, transparent 50%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: 42px; font-weight: 800; line-height: 1.3;
  margin-bottom: 20px; letter-spacing: 0.02em;
}
.hero h1 .accent {
  color: var(--accent); display: inline-block;
}
.hero p.lead {
  font-size: 18px; opacity: 0.95;
  max-width: 720px; margin: 0 auto 30px;
}
.hero .badge {
  display: inline-block; background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 16px; border-radius: 20px; font-size: 13px;
  letter-spacing: 0.15em; margin-bottom: 20px;
}

/* ページタイトル（サブページ用） */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 60px 20px 70px; text-align: center;
}
.page-hero h1 {
  font-size: 32px; font-weight: 800; margin-bottom: 10px;
}
.page-hero p { font-size: 16px; opacity: 0.9; }
.page-hero .breadcrumb {
  font-size: 12px; opacity: 0.7; letter-spacing: 0.1em; margin-top: 14px;
}

/* ============================
   Buttons
   ============================ */
.btn {
  display: inline-block; padding: 16px 36px;
  background: var(--accent); color: #fff !important;
  border-radius: 30px; font-weight: 700; font-size: 16px;
  border: none; cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(249,168,37,0.4);
}
.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,168,37,0.5);
}
.btn.btn-outline {
  background: transparent; color: #fff !important;
  border: 2px solid #fff; box-shadow: none;
}
.btn.btn-outline:hover { background: #fff; color: var(--primary) !important; }
.btn.btn-primary {
  background: var(--primary); color: #fff !important;
  box-shadow: 0 4px 14px rgba(26,77,143,0.3);
}
.btn.btn-primary:hover { background: var(--primary-dark); }
.btn-row {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin-top: 20px;
}

/* ============================
   Section
   ============================ */
section {
  padding: 70px 20px;
}
section.bg-soft { background: var(--bg-soft); }
section h2.section-title {
  font-size: 30px; text-align: center; font-weight: 800;
  margin-bottom: 14px; color: var(--text);
}
section h2.section-title::after {
  content: ""; display: block; width: 60px; height: 4px;
  background: var(--accent); margin: 14px auto 0; border-radius: 2px;
}
section .section-lead {
  text-align: center; color: var(--text-soft); font-size: 16px;
  max-width: 700px; margin: 0 auto 40px;
}

/* ============================
   Cards
   ============================ */
.cards {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--bg-card); padding: 28px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card .icon {
  font-size: 36px; margin-bottom: 14px;
}
.card h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 10px;
  color: var(--primary);
}
.card p { color: var(--text-soft); font-size: 14px; }

/* ============================
   Price Box
   ============================ */
.price-hero {
  background: #fff;
  border: 3px solid var(--accent);
  border-radius: 16px;
  padding: 40px 30px; text-align: center;
  max-width: 600px; margin: 30px auto;
  box-shadow: var(--shadow-lg);
}
.price-hero .free-tag {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 6px 20px; border-radius: 20px; font-size: 14px;
  font-weight: 700; letter-spacing: 0.1em; margin-bottom: 16px;
}
.price-hero .price-main {
  font-size: 26px; color: var(--text-soft); margin-bottom: 4px;
}
.price-hero .price-main .big {
  font-size: 64px; color: var(--accent-dark); font-weight: 800;
  display: inline-block; line-height: 1; margin: 0 4px;
}
.price-hero .price-sub {
  font-size: 16px; color: var(--text-soft); margin-top: 6px;
}
.price-hero .monthly {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px dashed var(--border);
  font-size: 18px;
}
.price-hero .monthly strong {
  color: var(--primary); font-size: 28px; font-weight: 800;
}

/* ============================
   Tables
   ============================ */
table.simple {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table.simple th, table.simple td {
  padding: 14px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
}
table.simple th {
  background: var(--primary); color: #fff; font-weight: 700;
}
table.simple tr:last-child td { border-bottom: none; }
table.simple td.center { text-align: center; }
table.simple td.right { text-align: right; }
table.simple .check { color: var(--success); font-weight: 700; }
table.simple .x { color: var(--text-mute); }

/* ============================
   Steps
   ============================ */
.steps {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  counter-reset: step;
}
.step-card {
  background: #fff; padding: 24px 20px;
  border-radius: var(--radius);
  border-top: 4px solid var(--accent);
  text-align: center; position: relative;
  box-shadow: var(--shadow-sm);
}
.step-card .step-num {
  counter-increment: step;
  background: var(--accent); color: #fff;
  width: 40px; height: 40px; border-radius: 50%;
  line-height: 40px; font-weight: 800; font-size: 18px;
  margin: 0 auto 14px;
}
.step-card .step-num::before { content: counter(step); }
.step-card h3 {
  font-size: 16px; color: var(--primary); margin-bottom: 8px;
}
.step-card p { font-size: 13px; color: var(--text-soft); }

/* ============================
   FAQ
   ============================ */
.faq-item {
  background: #fff; padding: 20px 24px;
  border-radius: var(--radius); margin-bottom: 12px;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
}
.faq-item .q {
  font-weight: 700; color: var(--primary); font-size: 17px;
  margin-bottom: 8px; display: flex; gap: 10px;
}
.faq-item .q::before {
  content: "Q."; color: var(--accent); font-weight: 800;
  flex-shrink: 0;
}
.faq-item .a {
  color: var(--text-soft); font-size: 15px; padding-left: 28px;
}

/* ============================
   Forms
   ============================ */
form.contact-form {
  background: #fff; padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-width: 600px; margin: 0 auto;
}
form .field { margin-bottom: 18px; }
form label {
  display: block; font-weight: 700; margin-bottom: 6px;
  font-size: 14px; color: var(--text);
}
form label .required {
  background: var(--danger); color: #fff;
  font-size: 10px; padding: 2px 6px; border-radius: 3px;
  margin-left: 6px; font-weight: 700;
}
form input, form textarea, form select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 15px; font-family: inherit;
  transition: border-color 0.2s;
}
form input:focus, form textarea:focus, form select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,77,143,0.1);
}
form textarea { min-height: 140px; resize: vertical; }
form .form-actions { text-align: center; margin-top: 24px; }

/* ============================
   CTA Section
   ============================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; padding: 60px 20px; text-align: center;
}
.cta-section h2 {
  font-size: 28px; font-weight: 800; margin-bottom: 14px;
}
.cta-section p { font-size: 16px; opacity: 0.9; margin-bottom: 24px; }

/* ============================
   Footer
   ============================ */
footer.site-footer {
  background: var(--primary-dark); color: #fff;
  padding: 50px 20px 20px;
}
.site-footer .inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px;
}
.site-footer h4 {
  font-size: 14px; letter-spacing: 0.1em; margin-bottom: 14px;
  color: var(--accent);
}
.site-footer p, .site-footer li { font-size: 13px; opacity: 0.85; line-height: 1.9; }
.site-footer ul { list-style: none; }
.site-footer a { color: #fff; opacity: 0.85; }
.site-footer a:hover { color: var(--accent); opacity: 1; }
.site-footer .copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 30px; padding-top: 20px;
  text-align: center; font-size: 12px; opacity: 0.7;
}

/* ============================
   Highlight Box
   ============================ */
.highlight-box {
  background: linear-gradient(135deg, #fff8e1, #ffecb3);
  border-left: 5px solid var(--accent);
  padding: 24px 28px; border-radius: var(--radius);
  margin: 30px 0;
}
.highlight-box h3 { color: var(--accent-dark); margin-bottom: 8px; }

/* ============================
   Comparison
   ============================ */
.compare {
  display: grid; gap: 20px;
  grid-template-columns: 1fr 1fr;
  margin: 30px 0;
}
.compare .col {
  padding: 28px; border-radius: var(--radius);
}
.compare .col.bad {
  background: #ffebee; border: 1px solid #ffcdd2;
}
.compare .col.good {
  background: #e8f5e9; border: 2px solid var(--success);
}
.compare .col h3 {
  font-size: 18px; margin-bottom: 12px;
}
.compare .col.bad h3 { color: var(--danger); }
.compare .col.good h3 { color: var(--success); }
.compare .col ul { list-style: none; padding: 0; }
.compare .col li {
  padding: 6px 0 6px 24px; position: relative; font-size: 14px;
}
.compare .col.bad li::before {
  content: "✗"; position: absolute; left: 0; color: var(--danger); font-weight: 700;
}
.compare .col.good li::before {
  content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700;
}

/* ============================
   フローティング常時CTA
   ============================ */
.floating-hearing-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 95;
  background: linear-gradient(135deg, #f9a825, #e65100);
  color: #fff;
  padding: 14px 24px;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(249,168,37,0.5);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  animation: pulse-cta 2s ease-in-out infinite;
}
.floating-hearing-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(249,168,37,0.6);
  color: #fff;
}
@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 8px 24px rgba(249,168,37,0.5); }
  50% { box-shadow: 0 8px 28px rgba(249,168,37,0.8); }
}
/* ヒアリングページでは非表示 */
body.hearing-page .floating-hearing-cta { display: none; }
@media (max-width: 600px) {
  .floating-hearing-cta { padding: 12px 20px; font-size: 13px; bottom: 14px; right: 14px; }
}

/* ============================
   Responsive（モバイル最適化）
   ============================ */
@media (max-width: 768px) {
  body { font-size: 15px; line-height: 1.7; }
  .container, .container-narrow { padding: 0 14px; }

  .hero { padding: 40px 16px 50px; }
  .hero h1 { font-size: 26px; line-height: 1.4; }
  .hero p.lead { font-size: 15px; line-height: 1.8; }
  .hero .badge { font-size: 11px; padding: 5px 12px; }
  section { padding: 40px 14px; }
  section h2.section-title { font-size: 22px; line-height: 1.4; }
  section .section-lead { font-size: 14px; }
  .page-hero { padding: 36px 16px 40px; }
  .page-hero h1 { font-size: 22px; }
  .page-hero p { font-size: 14px; }

  /* ナビ */
  .menu-btn { display: block; font-size: 26px; }
  .site-header nav { display: none; }
  .site-header nav.open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; box-shadow: var(--shadow-md);
    padding: 16px;
    max-height: 80vh; overflow-y: auto;
  }
  .site-header nav.open ul {
    flex-direction: column; gap: 0; align-items: stretch;
  }
  .site-header nav.open li { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .site-header nav.open .cta-btn {
    display: block; text-align: center; margin-top: 8px;
    padding: 14px; font-size: 15px;
  }
  .site-header .logo { font-size: 16px; }

  /* ボタン */
  .btn { padding: 14px 24px; font-size: 15px; width: auto; }
  .btn-row { flex-direction: column; gap: 10px; }
  .btn-row .btn { width: 100%; text-align: center; }

  /* カード */
  .cards { gap: 16px; }
  .card { padding: 20px 18px; }
  .card h3 { font-size: 16px; }
  .card p { font-size: 13px; }

  /* テーブル */
  table.simple { font-size: 13px; }
  table.simple th, table.simple td { padding: 10px 8px; }

  /* フォーム */
  form input, form textarea, form select { font-size: 16px; /* iOSズーム防止 */ }
  form .field { margin-bottom: 14px; }

  /* フッター */
  .site-footer .inner { grid-template-columns: 1fr; gap: 24px; padding: 0 14px; }
  .site-footer h4 { font-size: 13px; }

  /* 比較 */
  .compare { grid-template-columns: 1fr; }

  /* 価格BOX */
  .price-hero { padding: 24px 18px; }
  .price-hero .price-main .big { font-size: 44px; }
  .price-hero .monthly strong { font-size: 22px; }

  /* CTA */
  .cta-section { padding: 40px 16px; }
  .cta-section h2 { font-size: 20px; }
  .cta-section p { font-size: 14px; }

  /* フローティングCTA */
  .floating-hearing-cta {
    padding: 12px 18px; font-size: 13px;
    bottom: 14px; right: 14px;
  }

  /* ヒアリングシート専用調整 */
  .hearing-form { padding: 16px !important; }
  .hearing-section .sec-title h3 { font-size: 15px !important; }
  .tier-banner { padding: 18px 16px !important; flex-direction: column; text-align: center; }
  .tier-banner .tier-title { font-size: 18px !important; }
  .checkbox-group { grid-template-columns: 1fr !important; }
  .plan-option { padding: 14px 16px !important; }
  .plan-option .plan-name { font-size: 14px !important; }
  .plan-option .plan-price { font-size: 13px; }
  .domain-row { padding: 12px !important; }
  .submit-banner { padding: 24px 16px !important; }
  .submit-btn-large { padding: 16px 24px !important; font-size: 15px !important; width: 100%; }
  .submit-banner .flow-3step { grid-template-columns: 1fr; }
}

/* 超小型スマホ対応（〜380px） */
@media (max-width: 380px) {
  .hero h1 { font-size: 22px; }
  section h2.section-title { font-size: 18px; }
  .page-hero h1 { font-size: 19px; }
  .card { padding: 16px 14px; }
}
