/* ==========================================================
   東北電気工業 提案用デモサイト
   ネイビー基調 × アンバー（電気・照明の連想色）アクセント
   ========================================================== */

:root {
  --navy-900: #0b1f33;
  --navy-800: #12293f;
  --navy-700: #1b3a57;
  --blue-600: #1b5e9e;
  --blue-500: #2d7dd2;
  --blue-100: #e3eef8;
  --amber-500: #f09a1f;   /* アクセント（電話・強調） */
  --amber-600: #d9880f;
  --gray-50: #f8fafc;   /* セクション背景用のごく薄いグレー */
  --gray-100: #f4f6f9;
  --gray-200: #e5e9ef;
  --gray-500: #6b7684;
  --text-900: #1d2733;
  --white: #ffffff;
  --header-h: 68px;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(11, 31, 51, 0.08);
  --shadow-hover: 0 10px 26px rgba(11, 31, 51, 0.14);
  --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}

/* ---------- リセット・基本 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip; /* hiddenだとスクロールコンテナ化しページ内リンクが動かなくなるためclipを使用 */
}

body {
  font-family: var(--font-body);
  color: var(--text-900);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: clip;
}

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

ul, ol { list-style: none; }

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 2px;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.pc-only { display: inline; }
.sp-only { display: none; }
.nowrap { white-space: nowrap; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}

.btn-primary {
  background: var(--amber-500);
  color: var(--navy-900);
  padding: 12px 22px;
  font-size: 15px;
}
.btn-primary:hover { background: var(--amber-600); transform: translateY(-1px); box-shadow: var(--shadow-hover); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
  padding: 12px 22px;
  font-size: 15px;
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); }

.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* 電話ボタン（ヘッダー用・小） */
.btn-tel {
  background: var(--amber-500);
  color: var(--navy-900);
  padding: 8px 14px;
  border-radius: var(--radius);
}
.btn-tel:hover { background: var(--amber-600); }

/* 電話ボタン（大） */
.btn-tel-large {
  background: var(--amber-500);
  color: var(--navy-900);
  padding: 12px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.btn-tel-large:hover { background: var(--amber-600); transform: translateY(-1px); box-shadow: var(--shadow-hover); }

.tel-wrap { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.tel-number { font-size: 19px; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; }
.tel-label, .tel-note { font-size: 11px; font-weight: 600; }
.btn-tel .tel-number { font-size: 16px; }

.text-link { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--blue-500); }
.text-link-light { color: #ffd489; }
.text-link-light:hover { color: var(--white); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy-900);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--amber-500);
  color: var(--navy-900);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: 0.04em; white-space: nowrap; }
.brand-sub { font-size: 11px; color: rgba(255, 255, 255, 0.65); white-space: nowrap; }

.global-nav { display: flex; align-items: center; gap: 20px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.1); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn-primary { padding: 9px 16px; font-size: 14px; }
.btn-tel .tel-note { display: none; }

.menu-toggle { display: none; }

/* ---------- ファーストビュー（施工写真を全面に） ---------- */
.hero {
  position: relative;
  background: var(--navy-900); /* 写真読み込み前のフォールバック */
  color: var(--white);
  padding: calc(var(--header-h) + 100px) 20px 112px; /* v1.0: 上下の余白を広げ写真を主役に（第3案の迫力を反映） */
  min-height: 660px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* 背景写真：人物が右側に来るよう左右反転し、全面に表示 */
.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 22%;
  transform: scaleX(-1);
  filter: brightness(1.07) contrast(1.02);
}

/* オーバーレイ：左は文字が読める濃さ、右は人物が見える薄さ */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg,
      rgba(11, 31, 51, 0.93) 0%,
      rgba(11, 31, 51, 0.82) 32%,
      rgba(11, 31, 51, 0.45) 62%,
      rgba(11, 31, 51, 0.16) 100%),
    linear-gradient(to top, rgba(11, 31, 51, 0.5) 0%, rgba(11, 31, 51, 0) 32%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-copy { max-width: 660px; }

.hero-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber-500);
  border: 1px solid rgba(240, 154, 31, 0.5);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: clamp(14px, 1.3vw, 17px);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 38px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }

/* ---------- 写真プレースホルダー共通 ---------- */
.photo-ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    linear-gradient(150deg, rgba(45, 125, 210, 0.25), rgba(11, 31, 51, 0.1)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 12px, transparent 12px 24px),
    var(--navy-800);
  color: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  overflow: hidden;
}
.ph-note { font-size: 12px; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.6); }

/* ---------- 信頼補助エリア ---------- */
.trust-bar {
  background: var(--navy-800);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
}
.trust-list {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
.trust-item svg { color: var(--amber-500); flex-shrink: 0; }

/* ---------- セクション共通 ---------- */
.section { padding: 88px 20px; } /* v1.0: 余白を広げ、法人提案でも通用する落ち着きを出す */
.section-gray { background: var(--gray-50); }

.container { max-width: 1120px; margin: 0 auto; }
.container-narrow { max-width: 820px; }

.section-tag {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600); /* コントラスト改善(旧blue-500) */
  margin-bottom: 6px;
}
.section-tag-light { color: var(--amber-500); }

.section-title {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 12px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 4px;
  border-radius: 2px;
  background: var(--amber-500); /* v1.0: グラデーションをやめ単色に（装飾を抑えて実務的な印象に） */
}
.section-title-light { color: var(--white); }

.section-lead { color: var(--gray-500); margin-bottom: 40px; }
.section-lead-light { color: rgba(255, 255, 255, 0.85); }

/* ---------- サービス ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* カード上部の帯：写真カード・アイコンカードで高さをそろえて統一感を出す */
.service-icon {
  display: grid;
  place-items: center;
  margin: -26px -22px 6px;
  height: 150px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(150deg, var(--blue-100), #f2f7fc);
  color: var(--blue-600);
}
.service-icon svg {
  width: 64px; height: 64px;
  padding: 15px;
  box-sizing: border-box;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(11, 31, 51, 0.08);
}

.service-photo {
  margin: -26px -22px 6px;
  height: 150px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-name { font-size: 17px; font-weight: 800; line-height: 1.5; }
.service-desc { font-size: 14px; color: var(--gray-500); flex-grow: 1; }
.service-price { font-size: 14px; color: var(--text-900); }
.service-price strong { color: var(--amber-600); font-size: 16px; }

.service-link {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-600);
  border-bottom: 2px solid var(--amber-500);
  padding-bottom: 2px;
}
.service-link:hover { color: var(--blue-500); }

/* 料金目安 */
.price-note {
  margin-top: 34px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 5px solid var(--amber-500);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.price-note-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}
.price-note-title svg { color: var(--amber-600); }
.price-list { max-width: 560px; }
.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--gray-200);
  font-size: 15px;
}
.price-value { font-weight: 700; white-space: nowrap; }
.price-caution { margin-top: 14px; font-size: 13px; color: var(--gray-500); }

/* ---------- 選ばれる理由（白カードで一段上質に：第3案のカード化を第1案の配色で） ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-item {
  text-align: left;
  padding: 30px 26px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 0 0 18px;
  border-radius: 14px;
  background: var(--navy-800);
  color: var(--amber-500);
}
.feature-title { font-size: 16px; font-weight: 800; margin-bottom: 8px; line-height: 1.5; }
.feature-text { font-size: 14px; color: var(--gray-500); line-height: 1.8; }

/* ---------- 施工事例 ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.work-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.photo-ph-work { aspect-ratio: 16 / 10; border-radius: 0; }
.work-card img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }

.work-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.work-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-800);
  background: var(--blue-100);
  border-radius: 999px;
  padding: 3px 12px;
}
.work-title { font-size: 15px; font-weight: 800; line-height: 1.5; }
.work-desc { font-size: 13px; color: var(--gray-500); }

/* ---------- 法人向け ---------- */
.section-business {
  background:
    linear-gradient(135deg, #16334f 0%, #1f4d7a 100%);
  color: var(--white);
}
.business-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.business-list { display: grid; gap: 10px; }
.business-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 18px;
}
.business-list li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber-500);
  flex-shrink: 0;
}
.photo-ph-business { aspect-ratio: 4 / 3; border: 1px solid rgba(255, 255, 255, 0.15); }
.business-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}
.business-cta { margin-top: 36px; text-align: center; }

/* ---------- 工事の流れ（横並びのステップ図解：第3案の図解を第1案の配色で） ---------- */
.flow-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px 20px;
  margin-top: 8px;
}
.flow-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
}
/* ステップをつなぐ横ライン */
.flow-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 58px;
  right: -20px;
  height: 2px;
  background: var(--gray-200);
}
.flow-num {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--amber-500);
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.flow-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; line-height: 1.5; }
.flow-body p { font-size: 13.5px; color: var(--gray-500); line-height: 1.8; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-heading { margin: 0; }
.faq-question {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  color: var(--text-900);
  padding: 18px 20px;
  cursor: pointer;
  line-height: 1.6;
}
.faq-q-mark, .faq-a-mark {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}
.faq-q-mark { background: var(--navy-800); color: var(--amber-500); }
.faq-a-mark { background: var(--amber-500); color: var(--navy-900); margin-right: 12px; float: left; }

.faq-icon { margin-left: auto; position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--blue-600);
  border-radius: 2px;
  transition: transform .25s;
}
.faq-icon::before { width: 16px; height: 2.5px; }
.faq-icon::after { width: 2.5px; height: 16px; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg); }

.faq-answer { padding: 0 20px 20px 20px; }
.faq-answer p { font-size: 15px; color: var(--text-900); overflow: hidden; }

/* ---------- 会社案内（第3案の表形式：薄い見出し列で会社案内らしい落ち着きに） ---------- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.company-table th, .company-table td {
  padding: 17px 22px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 15px;
  text-align: left;
  vertical-align: top;
}
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: none; }
.company-table th {
  width: 160px;
  background: var(--gray-50);
  color: var(--navy-900);
  font-weight: 700;
  white-space: nowrap;
  border-right: 1px solid var(--gray-200);
}
.company-map-note { margin-top: 18px; font-size: 13px; color: var(--gray-500); }

/* ---------- お問い合わせ ---------- */
.section-contact {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 44px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-tel { align-self: flex-start; }
.contact-mail, .contact-address { font-size: 15px; color: rgba(255, 255, 255, 0.88); }

.contact-form {
  background: var(--white);
  color: var(--text-900);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 18px;
}
.form-demo-note {
  font-size: 13px;
  color: var(--navy-800);
  background: var(--blue-100);
  border-radius: 8px;
  padding: 10px 14px;
}
.form-field { display: grid; gap: 6px; }
.form-field label, .form-field legend { font-size: 14px; font-weight: 700; }
.req {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy-900); /* コントラスト改善(旧white) */
  background: var(--amber-600);
  border-radius: 4px;
  padding: 1px 7px;
  margin-left: 6px;
  vertical-align: 2px;
}
.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 11px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  background: var(--gray-100);
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--blue-500);
  background: var(--white);
}
.form-radio-group { border: none; }
.form-radio-group legend { margin-bottom: 6px; }
.radio-label, .check-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 500;
  margin-right: 18px;
  cursor: pointer;
}
.radio-label input, .check-label input { width: 18px; height: 18px; accent-color: var(--blue-600); }
.form-agree { padding-top: 4px; }

.form-result {
  display: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-800);
  background: #fff4dd;
  border: 1px solid var(--amber-500);
  border-radius: 8px;
  padding: 12px 14px;
}
.form-result.is-visible { display: block; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--white);
  padding: 56px 20px 26px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-name { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.footer-address, .footer-contact { font-size: 14px; color: rgba(255, 255, 255, 0.8); line-height: 2; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 32px; }
.footer-nav a { font-size: 14px; color: rgba(255, 255, 255, 0.8); padding: 4px 0; display: inline-block; }
.footer-nav a:hover { color: var(--amber-500); }
.footer-copy { text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.5); padding-top: 22px; }

/* ---------- スマホ固定CTA ---------- */
.mobile-cta { display: none; }

/* ---------- フェードイン ---------- */
html.js .fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
html.js .fade-in.is-visible { opacity: 1; transform: none; }

/* JS無効時・reduced-motion時は常に表示 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  .btn, .service-card, .work-card { transition: none; }
}

/* ==========================================================
   レスポンシブ
   ========================================================== */

/* ---- 〜1024px：ハンバーガーメニューに切替 ---- */
@media (max-width: 1024px) {
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .trust-item { justify-content: flex-start; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 18px; }
  .pc-only { display: none; }
  .sp-only { display: inline; }

  .menu-toggle {
    display: grid;
    place-items: center;
    gap: 5px;
    width: 48px; height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 10px;
  }
  .menu-bar {
    display: block;
    width: 26px; height: 2.5px;
    border-radius: 2px;
    background: var(--white);
    transition: transform .25s, opacity .25s;
  }
  .menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .global-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    bottom: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 18px 24px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
  }
  .global-nav.is-open { transform: translateX(0); visibility: visible; }

  .nav-list { display: block; }
  .nav-list li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .nav-link { padding: 16px 6px; font-size: 16px; }

  .nav-cta { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 24px; }
  .nav-cta .btn { justify-content: center; padding: 14px 20px; }
  .btn-tel .tel-note { display: block; }
  .btn-tel .tel-wrap { align-items: center; }

  body.menu-open { overflow: hidden; }

  .hero { padding: calc(var(--header-h) + 56px) 20px 64px; min-height: 520px; }
  /* 中間幅〜スマホ：文字が写真全体に重なるため、オーバーレイを全体的に濃くする */
  .hero-overlay {
    background:
      linear-gradient(95deg,
        rgba(11, 31, 51, 0.9) 0%,
        rgba(11, 31, 51, 0.78) 45%,
        rgba(11, 31, 51, 0.55) 100%),
      linear-gradient(to top, rgba(11, 31, 51, 0.5) 0%, rgba(11, 31, 51, 0) 32%);
  }

  .business-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  /* 工事の流れ：横並び→縦並びのステップに切替 */
  .flow-list { grid-template-columns: 1fr; gap: 0; max-width: 680px; margin-top: 0; }
  .flow-item { flex-direction: row; gap: 20px; padding-bottom: 32px; }
  .flow-item:last-child { padding-bottom: 0; }
  .flow-item:not(:last-child)::before {
    top: 52px;
    bottom: 4px;
    left: 23px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .section { padding: 68px 20px; }
}

/* ---- 〜600px：スマホ ---- */
@media (max-width: 600px) {
  body { font-size: 15px; }

  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 10px; }

  .hero-title { font-size: 27px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn-tel-large { justify-content: center; }
  .btn-tel-large .tel-wrap { align-items: center; }

  .trust-list { grid-template-columns: 1fr; gap: 8px; }
  .trust-bar { padding: 16px 20px; }

  .card-grid, .works-grid { grid-template-columns: 1fr; }

  /* 選ばれる理由はスマホでも2列（白カードの余白を保つ） */
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feature-item { padding: 20px 16px; }
  .feature-icon { width: 46px; height: 46px; margin-bottom: 12px; }
  .feature-title { font-size: 14px; }
  .feature-text { font-size: 14px; }

  .price-note { padding: 22px 18px; }
  .price-list li { flex-direction: column; gap: 2px; }

  .company-table th { width: 96px; padding: 14px 12px; font-size: 13px; }
  .company-table td { padding: 14px 14px; font-size: 14px; }
  .company-table td { word-break: break-all; }

  .contact-form { padding: 24px 18px; }
  .contact-tel { align-self: stretch; }

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

  /* スマホ固定CTA */
  .mobile-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.2);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
  }
  .mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    padding: 15px 8px;
    min-height: 54px;
  }
  .mobile-cta-tel { background: var(--amber-500); color: var(--navy-900); }
  .mobile-cta-form { background: var(--navy-800); color: var(--white); }

  /* 固定CTAに隠れないよう下部へ余白 */
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: 30px; }
}

/* ---------- 品質改善（2026-07-25 最終仕上げ） ---------- */
/* スキップリンク：キーボード操作時のみ表示 */
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 1000;
  background: #ffffff;
  color: #0b1f33;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

/* サービスカードのリンク：タップ領域を確保 */
.service-link { display: inline-block; padding: 10px 0; }

/* 施工事例：掲載写真はイメージである旨の注記（実写を載せる際の誠実な表記） */
.works-note {
  font-size: 13px;
  color: var(--gray-500);
  margin: -18px 0 30px;
}
