* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #1a3a5c;
  --primary-light: #2d5a8a;
  --accent: #c0392b;
  --green: #2e7d32;
  --bg: #f8fafc;
  --card: #fff;
  --border: #e0e0e0;
  --text: #1a1a1a;
  --text-dim: #666;
  --radius: 8px;
}
body { font-family: 'Hiragino Sans', 'Noto Sans JP', system-ui, sans-serif; color: var(--text); line-height: 1.7; background: var(--bg); scroll-behavior: smooth; }
html { scroll-padding-top: 64px; }
section[id] { scroll-margin-top: 64px; }
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* トップナビ(白帯) */
.topnav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.topnav-inner { max-width: 960px; margin: 0 auto; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
.topnav-logo { font-size: 16px; font-weight: 800; color: var(--primary); letter-spacing: 0.5px; }
.topnav-tel { display: flex; align-items: center; gap: 6px; text-decoration: none; }
.topnav-tel .tel-label { font-size: 10px; color: var(--text-dim); font-weight: 600; letter-spacing: 0.5px; }
.topnav-tel .tel-number { font-size: 20px; font-weight: 800; color: #333333; letter-spacing: 0.5px; }
.topnav-tel:hover .tel-number { color: #000000; }
@media (max-width: 768px) {
  .topnav-inner { padding: 8px 16px; }
  .topnav-logo { font-size: 13px; }
  .topnav-tel .tel-number { font-size: 16px; }
  .topnav-tel .tel-label { display: none; }
}

/* ヒーロー */
.hero { background: linear-gradient(135deg, rgba(13,27,42,0.92) 0%, rgba(26,58,92,0.88) 40%, rgba(45,90,138,0.82) 100%), url('../images/hero-bg.jpg') center center / cover no-repeat; color: #fff; padding: 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(240,192,64,0.08) 0%, transparent 60%); pointer-events: none; }
.hero-inner { max-width: 960px; margin: 0 auto; padding: 56px 20px 48px; position: relative; z-index: 1; }
.hero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.hero-logo { font-size: 13px; opacity: 0.7; letter-spacing: 1px; }
.hero-badge { background: rgba(240,192,64,0.15); border: 1px solid rgba(240,192,64,0.3); color: #f0c040; font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 20px; letter-spacing: 0.5px; }
.hero-main { text-align: center; }
.hero-main h1 { font-size: 32px; font-weight: 900; margin-bottom: 12px; letter-spacing: -0.5px; line-height: 1.3; }
.hero-main h1 .accent { color: #f0c040; }
.hero-main .lead { font-size: 15px; opacity: 0.85; margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 800px; margin: 0 auto 28px; }
.benefit-item { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 16px 12px; text-align: center; backdrop-filter: blur(4px); }
.benefit-item .benefit-icon { width: 36px; height: 36px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: rgba(240,192,64,0.15); border-radius: 50%; }
.benefit-item .benefit-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.benefit-item .benefit-desc { font-size: 11px; opacity: 0.7; line-height: 1.4; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-cta .cta-primary { background: #f0c040; color: #1a1a1a; padding: 14px 32px; border-radius: 30px; font-size: 15px; font-weight: 700; text-decoration: none; transition: 0.2s; box-shadow: 0 4px 16px rgba(240,192,64,0.3); }
.hero-cta .cta-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(240,192,64,0.4); }
.hero-cta .cta-secondary { background: transparent; color: #fff; padding: 14px 28px; border-radius: 30px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid rgba(255,255,255,0.3); transition: 0.2s; }
.hero-cta .cta-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.hero-news { margin-top: 24px; text-align: center; font-size: 12px; opacity: 0.6; }
.hero-news .news-highlight { color: #f0c040; font-weight: 600; }
.hero-badge-top { display: inline-block; background: rgba(240,192,64,0.18); border: 1px solid rgba(240,192,64,0.45); color: #f0c040; font-size: clamp(12px, 3.4vw, 15px); font-weight: 700; padding: 6px 18px; border-radius: 20px; letter-spacing: 0.5px; margin-bottom: 16px; }
.hero-checklist { list-style: none; display: inline-block; text-align: left; padding: 0; margin: 0 0 28px; }
.hero-checklist li { position: relative; padding-left: 26px; margin-bottom: 4px; font-size: clamp(13px, 3.6vw, 15px); font-weight: 600; line-height: 1.4; }
.hero-checklist li:last-child { margin-bottom: 0; }
.hero-checklist li::before { content: '✓'; position: absolute; left: 0; top: 0; color: #f0c040; font-weight: 800; }

/* セクション共通 */
section { padding: 40px 0; }
section h2 { font-size: 22px; font-weight: 800; color: var(--primary); margin-bottom: 16px; text-align: center; }
section h2::after { content: ''; display: block; width: 40px; height: 3px; background: var(--accent); margin: 8px auto 0; border-radius: 2px; }
section h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin: 24px 0 12px; }

/* 備えの考え方 */
.concept-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin: 16px 0; }
.concept-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.concept-box p { font-size: 15px; margin-bottom: 12px; }
.concept-box .note { font-size: 12px; color: var(--text-dim); margin-top: 8px; }
.concept-box .concept-mission { font-size: 16px; font-weight: 700; color: var(--primary); border-left: 3px solid var(--accent); padding-left: 12px; margin-top: 16px; line-height: 1.6; }
.concept-image { position: relative; }
.concept-image img { width: 100%; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(26,58,92,0.15); }
.concept-caption { position: absolute; bottom: 12px; left: 12px; right: 12px; background: rgba(26,58,92,0.85); color: #fff; padding: 8px 14px; border-radius: 4px; font-size: 12px; font-weight: 600; backdrop-filter: blur(4px); text-align: center; }
@media (max-width: 768px) {
  .concept-layout { grid-template-columns: 1fr; }
}

/* 使いながら備える */
.usage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.usage-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.usage-card .icon { font-size: 32px; margin-bottom: 8px; }
.usage-card h4 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.usage-card p { font-size: 13px; color: var(--text-dim); }

/* 比較表 */
.compare-table-wrap { overflow-x: auto; margin: 20px 0; }
table.compare { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--card); border-radius: var(--radius); overflow: hidden; }
table.compare th, table.compare td { padding: 10px 12px; border: 1px solid var(--border); text-align: center; }
table.compare td:first-child { text-align: left; font-weight: 600; background: #f0f4f8; color: var(--text); }
table.compare thead th:first-child { text-align: left; background: var(--primary); color: #fff; }
table.compare th { background: var(--primary); color: #fff; font-weight: 700; }
table.compare .price { font-weight: 800; font-size: 15px; }
table.compare .price-low { color: var(--green); }
table.compare .price-high { color: var(--accent); }
table.compare .yes { color: var(--green); font-weight: 700; }
table.compare .no { color: #ccc; }

/* 製品カード */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0; }
.product-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.product-card img { width: 100%; max-height: 160px; object-fit: cover; border-radius: 4px; margin-bottom: 12px; }
.product-card h4 { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.product-card .price-tag { font-size: 18px; font-weight: 800; color: var(--green); margin-bottom: 8px; }
.product-card .price-tag.high { color: var(--accent); }
.product-card ul { font-size: 12px; padding-left: 16px; margin: 8px 0; }
.product-card ul li { margin-bottom: 4px; }

/* 補助金 */
.subsidy-box { background: var(--card); border: 2px solid var(--primary); border-radius: var(--radius); padding: 24px; margin: 16px 0; }
.subsidy-box .highlight { color: var(--accent); font-weight: 700; font-size: 18px; }

/* ステップ */
.steps { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }
.step { flex: 1; min-width: 120px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 12px; text-align: center; position: relative; }
.step .num { width: 28px; height: 28px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; margin: 0 auto 8px; }
.step h4 { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.step p { font-size: 11px; color: var(--text-dim); }
.step-arrow { display: flex; align-items: center; color: var(--primary); font-size: 18px; font-weight: 700; }

/* GCF */
.gcf-box { background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.gcf-box h3 { color: var(--green); margin-top: 0; }

/* 連携協定 */
.partner-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 16px 0; text-align: center; }

/* マイクロCVR(比較→資料請求) */
.mid-cta { margin: 32px 0 8px; padding: 24px; background: linear-gradient(135deg, #fff9e6 0%, #fff 100%); border: 1px solid #f0c040; border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mid-cta-text { flex: 1; }
.mid-cta-title { font-size: 16px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.mid-cta-desc { font-size: 13px; color: var(--text-dim); }
.mid-cta-btn { background: var(--accent); color: #fff; padding: 14px 24px; border-radius: 30px; text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: 0 4px 12px rgba(192,57,43,0.25); transition: 0.2s; }
.mid-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(192,57,43,0.35); }
@media (max-width: 768px) {
  .mid-cta { flex-direction: column; text-align: center; padding: 20px; }
  .mid-cta-btn { width: 100%; text-align: center; }
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: 0.2s; }
.faq-item[open] { box-shadow: 0 4px 12px rgba(26,58,92,0.08); }
.faq-q { padding: 16px 20px; font-size: 14px; font-weight: 700; color: var(--primary); cursor: pointer; list-style: none; position: relative; padding-right: 40px; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 400; color: var(--accent); transition: 0.2s; }
.faq-item[open] .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 20px 16px; font-size: 13px; color: var(--text); line-height: 1.7; }
.faq-a p { margin-bottom: 8px; }
.faq-a p:last-child { margin-bottom: 0; }

/* お問い合わせ */
.contact { background: var(--primary); color: #fff; padding: 40px 0; }
.contact h2 { color: #fff; }
.contact h2::after { background: #f0c040; }
.contact p { text-align: center; font-size: 15px; margin-bottom: 20px; opacity: 0.9; }
.contact-form { max-width: 560px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 28px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.form-group .req { color: var(--accent); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; font-family: inherit; }
.form-group textarea { min-height: 80px; resize: vertical; }
.submit-btn { width: 100%; padding: 14px; background: var(--accent); color: #fff; border: none; border-radius: 4px; font-size: 16px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.submit-btn:hover { background: #a93226; }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.form-error { display: none; color: var(--accent); font-size: 12px; margin-top: 4px; }
.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] { border-color: var(--accent); }
.tt-hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* フローティングお問い合わせボタン */
.floating-contact { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.floating-contact .float-btn { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 40px; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: 0.2s; cursor: pointer; border: none; }
.floating-contact .float-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
.floating-contact .float-contact { background: var(--accent); color: #fff; }
.floating-contact .float-call { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.floating-contact .float-icon { font-size: 18px; }
.floating-contact .float-pulse { animation: pulse 2s infinite; }
.floating-contact .float-mascot { display: flex; flex-direction: column; align-items: flex-end; margin-bottom: 4px; }
.floating-contact .float-bubble { background: #fff; color: #1a1a1a; padding: 8px 12px; border-radius: 14px; font-size: 12px; font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,0.15); position: relative; margin-bottom: 6px; white-space: nowrap; }
.floating-contact .float-bubble::after { content: ''; position: absolute; bottom: -6px; right: 24px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid #fff; }
.floating-contact .float-mascot img { width: 216px; height: auto; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); }
@keyframes pulse { 0% { box-shadow: 0 4px 12px rgba(192,57,43,0.4), 0 0 0 0 rgba(192,57,43,0.3); } 70% { box-shadow: 0 4px 12px rgba(192,57,43,0.4), 0 0 0 12px rgba(192,57,43,0); } 100% { box-shadow: 0 4px 12px rgba(192,57,43,0.4), 0 0 0 0 rgba(192,57,43,0); } }

/* スマホ用: 画面下固定の2ボタンバー */
.mobile-bottom-nav { display: none; }
@media (max-width: 768px) {
  /* PC用フローティングメニューを非表示に */
  .floating-contact { display: none !important; }

  /* スマホ用の下部固定バーを表示 */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.12);
    padding: 8px;
    gap: 8px;
    border-top: 1px solid var(--border);
  }
  .mobile-bottom-nav .mb-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    gap: 3px;
    transition: 0.15s;
  }
  .mobile-bottom-nav .mb-btn:active { transform: scale(0.97); }
  .mobile-bottom-nav .mb-btn .mb-icon { font-size: 20px; line-height: 1; }
  .mobile-bottom-nav .mb-contact { background: var(--accent); color: #fff; }
  .mobile-bottom-nav .mb-call { background: #fff; color: #333; border: 1px solid #ddd; }

  /* 下部バーぶんの余白を確保してフッターが被らないようにする */
  body { padding-bottom: 72px; }
}

/* フッター */
footer { background: #1a1a1a; color: #888; padding: 24px 0; text-align: center; font-size: 12px; line-height: 2; }
footer .footer-link { color: #ccc; text-decoration: underline; }
footer .footer-link:hover { color: #fff; }

/* レスポンシブ */
@media (max-width: 768px) {
  .usage-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); justify-content: center; }
  .hero-main h1 { font-size: 24px; }
  .hero-benefits { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .cta-primary, .hero-cta .cta-secondary { width: 100%; max-width: 320px; text-align: center; }
  table.compare { font-size: 11px; }
  table.compare th, table.compare td { padding: 6px 4px; }
}

/* 送信完了ページ(thanks.html) */
.thanks-section { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 80px 20px; }
.thanks-content { text-align: center; max-width: 560px; }
.thanks-icon { font-size: 56px; color: var(--green); margin-bottom: 20px; line-height: 1; }
.thanks-title { font-size: 24px; font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.thanks-text { font-size: 15px; line-height: 1.8; color: var(--text-dim); margin-bottom: 32px; }
.thanks-tel { display: inline-block; font-size: 20px; font-weight: 800; color: var(--primary); text-decoration: none; margin-bottom: 32px; }
.thanks-back { display: inline-block; padding: 12px 32px; background: var(--accent); color: #fff; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 15px; }
.thanks-back:hover { background: #a93226; }