/* ============================================================
   BLAST Co., Ltd. コーポレートサイト共通スタイル
   夜の道 × ビーコン（アンバー）を基調としたダークテーマ
   ============================================================ */

:root {
  --night: #0E1826;      /* 最深部の夜空 */
  --night-2: #1D3157;    /* 明るい夜空 */
  --panel: #182338;      /* カード・路面 */
  --panel-2: #1F2C46;    /* 持ち上げたカード */
  --line: rgba(246, 244, 239, 0.14);
  --paper: #F6F4EF;      /* 本文のオフホワイト */
  --muted: rgba(246, 244, 239, 0.68);
  --beacon: #F2A93B;     /* ビーコンのアンバー */
  --beacon-deep: #D98B1B;
  --danger: #E4572E;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { background: var(--night-2); }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  background-attachment: fixed;
  background-color: var(--night-2);
  color: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  line-height: 1.8;
}
body.has-fixed-bar { padding-bottom: 96px; }
img { max-width: 100%; display: block; }
a { color: var(--beacon); text-decoration: none; }
a:hover { opacity: 0.85; }
h1, h2, h3, h4, h5 { line-height: 1.4; color: var(--paper); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ---------- ヘッダー / ナビ ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(14, 24, 38, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--paper); font-size: 22px; font-weight: bold; letter-spacing: 0.08em;
}
.brand small { font-size: 10.5px; font-weight: normal; letter-spacing: 0.06em; color: var(--muted); }
.beacon-dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--beacon);
  box-shadow: 0 0 12px rgba(242, 169, 59, 0.9);
  animation: beaconPulse 2.2s ease-in-out infinite;
}
@keyframes beaconPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(242, 169, 59, 0.9); }
  50% { opacity: 0.45; box-shadow: 0 0 4px rgba(242, 169, 59, 0.4); }
}
@media (prefers-reduced-motion: reduce) {
  .beacon-dot { animation: none; }
}
.nav-links {
  display: flex; gap: 26px; list-style: none; margin: 0; padding: 0;
}
.nav-links a { color: var(--paper); font-size: 14.5px; font-weight: bold; }
.nav-links a:hover { color: var(--beacon); opacity: 1; }
.nav-cta {
  background: var(--beacon); color: var(--night);
  border: none; border-radius: 8px; padding: 10px 20px;
  font-size: 14px; font-weight: bold; font-family: inherit; cursor: pointer;
  box-shadow: 0 3px 12px rgba(242, 169, 59, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(242, 169, 59, 0.5); }
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px;
  background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--paper);
  border-radius: 2px; transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- ヒーロー ---------- */
.hero { padding: 84px 0 72px; }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
}
.hero h1 { font-size: 40px; margin: 10px 0 18px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--beacon); }
.hero p { color: var(--muted); font-size: 16px; margin: 0; max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.badge {
  display: inline-block; font-size: 12.5px; font-weight: bold; color: var(--paper);
  border: 1px solid var(--line); border-radius: 30px; padding: 6px 16px;
  background: rgba(246, 244, 239, 0.05);
}
.badge:hover { border-color: var(--beacon); color: var(--beacon); opacity: 1; }
.hero-road svg { width: 100%; height: auto; border-radius: 14px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 10px; padding: 14px 28px;
  font-size: 15px; font-weight: bold; font-family: inherit;
  border: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-1px); opacity: 1; }
.btn-primary {
  background: var(--beacon); color: var(--night);
  box-shadow: 0 4px 16px rgba(242, 169, 59, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(242, 169, 59, 0.5); }
.btn-ghost {
  background: transparent; color: var(--paper);
  border: 1px solid rgba(246, 244, 239, 0.4);
}
.btn-ghost:hover { border-color: var(--beacon); color: var(--beacon); }
.btn-dark {
  background: var(--panel-2); color: var(--paper);
  border: 1px solid var(--line);
}

/* ---------- 緊急電話バー ---------- */
.road-emergency {
  background: linear-gradient(90deg, var(--beacon-deep), var(--beacon));
  color: var(--night);
}
.road-emergency .wrap { padding: 14px 24px; text-align: center; }
.road-emergency .label { font-size: 13px; font-weight: bold; }
.road-emergency .tel { font-size: 24px; font-weight: bold; letter-spacing: 0.04em; }
.fixed-bottom {
  position: fixed; bottom: 0; left: 0; width: 100%; z-index: 150;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.4);
}

/* ---------- セクション共通 ---------- */
section { padding: 72px 0; }
.section-alt {
  background: rgba(24, 35, 56, 0.55);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: 28px; margin: 6px 0 12px; }
.eyebrow {
  font-size: 12.5px; font-weight: bold; letter-spacing: 0.22em;
  color: var(--beacon); margin: 0;
}
.lead { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- グリッド / カード ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 24px;
}
.card h3 { font-size: 17px; margin: 0 0 10px; }
.card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- ご依頼の流れ ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 22px;
}
.step .num {
  display: inline-block; font-size: 26px; font-weight: bold; color: var(--beacon);
  letter-spacing: 0.06em; margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.step h4 { font-size: 16px; margin: 0 0 8px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- 対応トラブル ---------- */
.service-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 24px;
}
.service-card.main {
  background: var(--panel-2); border-color: rgba(242, 169, 59, 0.55);
  box-shadow: 0 6px 24px rgba(242, 169, 59, 0.12);
}
.service-card h3 { font-size: 17px; margin: 12px 0 8px; }
.service-card p { font-size: 14px; color: var(--muted); margin: 0; }
.tag {
  display: inline-block; font-size: 11.5px; font-weight: bold;
  color: var(--beacon); border: 1px solid rgba(242, 169, 59, 0.5);
  border-radius: 20px; padding: 2px 12px;
}

/* ---------- お客様の声 ---------- */
.review-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 22px;
}
.review-card > p { font-size: 13.5px; color: var(--muted); margin: 0; }
.review-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar-circle {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--night-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; color: var(--beacon); font-size: 17px;
}
.review-name { font-weight: bold; font-size: 14.5px; }
.review-meta { font-size: 12px; color: var(--muted); }
.stars { color: var(--beacon); letter-spacing: 3px; font-size: 15px; margin-bottom: 8px; }

/* ---------- 下層ページヘッダー ---------- */
.page-header {
  padding: 52px 0 44px;
  background: rgba(24, 35, 56, 0.55);
  border-bottom: 1px solid var(--line);
}
.page-header h1 { font-size: 30px; margin: 8px 0 12px; }
.page-header p { margin: 0; max-width: 72ch; }
.breadcrumb { font-size: 12.5px; color: var(--muted); margin: 0 0 4px; }
.breadcrumb a { color: var(--muted); text-decoration: underline; }

/* ---------- フォーム ---------- */
.form-wrap {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 28px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: bold; margin-bottom: 8px;
}
.req {
  background: var(--danger); color: #fff; font-size: 10.5px; font-weight: bold;
  border-radius: 4px; padding: 1px 8px; line-height: 1.7;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%; padding: 13px 14px; font-size: 15px; font-family: inherit;
  background: var(--night); color: var(--paper);
  border: 1px solid var(--line); border-radius: 8px;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(246, 244, 239, 0.35); }
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: 2px solid var(--beacon); border-color: var(--beacon);
}
.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-cols .form-row { margin-bottom: 20px; }
.form-submit-note { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.thanks-box {
  display: none;
  background: rgba(242, 169, 59, 0.12); border: 1px solid rgba(242, 169, 59, 0.5);
  border-radius: 12px; padding: 22px 24px; font-size: 15px;
}

/* ---------- テーブル（会社概要・特商法） ---------- */
.reg-table {
  width: 100%; border-collapse: collapse;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; font-size: 14.5px;
}
.reg-table th, .reg-table td {
  padding: 16px 20px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.reg-table tr:last-child th, .reg-table tr:last-child td { border-bottom: none; }
.reg-table th {
  width: 200px; background: rgba(246, 244, 239, 0.05);
  color: var(--beacon); font-weight: bold; white-space: nowrap;
}
.reg-table td { color: var(--paper); }

/* ---------- 事例カード（採用・依頼ページ） ---------- */
.case-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 22px;
}
.case-card h3, .case-card h4 { font-size: 16px; margin: 10px 0 8px; }
.case-card p { font-size: 13.5px; color: var(--muted); margin: 0; }
.case-tag {
  display: inline-block; font-size: 11.5px; font-weight: bold;
  color: var(--night); background: var(--beacon);
  border-radius: 4px; padding: 2px 10px;
}

/* ---------- フッター ---------- */
footer {
  border-top: 1px solid var(--line);
  background: rgba(14, 24, 38, 0.85);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.footer-grid h5 { font-size: 14px; margin: 0 0 12px; letter-spacing: 0.06em; }
.footer-grid p { color: var(--muted); margin: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.footer-grid li a { color: var(--muted); }
.footer-grid li a:hover { color: var(--beacon); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px;
  font-size: 12px; color: var(--muted);
}

/* ---------- モーダル ---------- */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 500;
  background: rgba(8, 14, 24, 0.75);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  position: relative;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 34px 30px; max-width: 480px; width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal-box h3 { font-size: 19px; margin: 0 0 10px; }
.modal-box p { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.modal-choice { display: flex; flex-direction: column; gap: 12px; }
.modal-choice .btn { justify-content: center; }
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: var(--muted);
  font-size: 26px; line-height: 1; cursor: pointer; padding: 4px;
}
.modal-close:hover { color: var(--paper); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; width: 100%;
    flex-direction: column; gap: 0;
    background: rgba(14, 24, 38, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 14px 24px; }
  .nav-toggle { display: flex; }
  .nav { position: relative; }
  .hero { padding: 56px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 30px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .brand { font-size: 19px; }
  .nav-cta { padding: 9px 14px; font-size: 12.5px; }
  .hero h1 { font-size: 26px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 23px; }
  .page-header h1 { font-size: 25px; }
  .form-cols { grid-template-columns: 1fr; }
  .form-wrap { padding: 24px 18px; }
  .reg-table th { width: 120px; white-space: normal; }
  .reg-table th, .reg-table td { padding: 13px 14px; font-size: 13.5px; }
  .road-emergency .tel { font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  body.has-fixed-bar { padding-bottom: 110px; }
}
