/* ============================================================
   ハナブサキュービクル｜style.css
   スコープ：.hc- 接頭辞。後で WordPress（SWELL・標準ブロック）に
   移植する前提で、部品ごとにまとめる。
   構成は docs/build_spec.md「1. セクションID一覧」に対応。
   ============================================================ */

/* ---------- 変数 ---------- */
:root {
  --hc-logo-font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --hc-navy: #081d3e;
  --hc-navy-2: #12305f;
  --hc-blue: #2b5fa8;
  --hc-blue-soft: #e8eff9;
  --hc-gold: #e2c280;
  --hc-gold-dark: #c9a24a;
  --hc-cta: #e8a33c;
  --hc-cta-hover: #d9942c;
  --hc-text: #1f2a3a;
  --hc-muted: #5b6675;
  --hc-alt: #f3f6fa;
  --hc-border: #d9e0e8;
  --hc-white: #ffffff;
  --hc-radius: 8px;
  --hc-shadow: 0 2px 10px rgba(8, 29, 62, 0.06);
  --hc-shadow-hover: 0 6px 18px rgba(8, 29, 62, 0.10);
  --hc-font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --hc-inner: 1120px;
  --hc-header-h: 118px;
}

/* ---------- ベース ---------- */
.hc-br-sp { display: none; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hc-header-h) + 8px); -webkit-text-size-adjust: 100%; }
.hc-body {
  margin: 0;
  font-family: var(--hc-font);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--hc-text);
  background: var(--hc-white);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:where(.hc-body) img { max-width: 100%; height: auto; display: block; }
:where(.hc-body) a { color: var(--hc-blue); text-decoration: none; }
:where(.hc-body) a:hover { text-decoration: underline; }
:where(.hc-body) p { margin: 0 0 1em; }
:where(.hc-body) p:last-child { margin-bottom: 0; }
:where(.hc-body) ul, :where(.hc-body) ol { margin: 0; padding: 0; list-style: none; }
:where(.hc-body) h1, :where(.hc-body) h2, :where(.hc-body) h3 { margin: 0; line-height: 1.4; font-weight: 700; color: var(--hc-navy); }
:where(.hc-body) :focus-visible { outline: 3px solid var(--hc-blue); outline-offset: 2px; }

.hc-inner { width: 100%; max-width: var(--hc-inner); margin: 0 auto; padding: 0 24px; }
.hc-inner--narrow { max-width: 860px; }
.hc-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.hc-text-center { text-align: center; }
.hc-mt-l { margin-top: 32px !important; }
.hc-br-pc { display: inline; }

/* ---------- 見出し ---------- */
.hc-h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: 0.04em; }
.hc-h3 { font-size: 20px; margin-bottom: 10px; }
.hc-h3--sm { font-size: 17px; }
.hc-lead { margin: 14px auto 0; max-width: 780px; color: var(--hc-text); }
.hc-sec-head { text-align: center; margin-bottom: 40px; }
.hc-sec-head--light .hc-h2 { color: var(--hc-white); }
.hc-note { font-size: 13px; color: var(--hc-muted); line-height: 1.7; margin-top: 12px; }
.hc-note--light { color: rgba(255, 255, 255, 0.82); }
.hc-note--list { margin-top: 20px; }
.hc-note--list li { position: relative; padding-left: 14px; margin-bottom: 4px; }
.hc-note--list li::before { content: "・"; position: absolute; left: -2px; top: 0; }

/* ---------- セクション共通 ---------- */
.hc-section { padding: 80px 0; }
.hc-section--alt { background: var(--hc-alt); }
.hc-section--navy { background: var(--hc-navy); color: var(--hc-white); }

/* ---------- ボタン ---------- */
.hc-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 220px;
  padding: 14px 28px;
  border-radius: var(--hc-radius);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none !important;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s, box-shadow .15s, transform .15s, border-color .15s;
  font-family: inherit;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.hc-btn small { font-size: 12px; font-weight: 500; }
.hc-btn--primary { background: var(--hc-cta); color: var(--hc-navy); border-color: var(--hc-cta); box-shadow: 0 3px 10px rgba(232, 163, 60, 0.35); }
.hc-btn--primary:hover { background: var(--hc-cta-hover); border-color: var(--hc-cta-hover); box-shadow: var(--hc-shadow-hover); transform: translateY(-1px); }
.hc-btn--outline { background: var(--hc-white); color: var(--hc-navy); border-color: var(--hc-navy); }
.hc-btn--outline:hover { background: var(--hc-blue-soft); }
.hc-btn--lg { min-width: 280px; padding: 18px 32px; font-size: 18px; }
.hc-btn--sm { min-width: 0; padding: 10px 20px; font-size: 14px; white-space: normal; }
.hc-btn--block { width: 100%; }
.hc-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }

/* ---------- タグ ---------- */
.hc-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
}
.hc-tag--free { background: var(--hc-gold-dark); color: var(--hc-white); }

/* ---------- カード ---------- */
.hc-card {
  background: var(--hc-alt);
  border-radius: var(--hc-radius);
  padding: 24px;
  box-shadow: var(--hc-shadow);
}
.hc-card--white { background: var(--hc-white); }
.hc-cards { display: grid; gap: 20px; }
.hc-cards--2 { grid-template-columns: repeat(2, 1fr); }
.hc-cards--3 { grid-template-columns: repeat(3, 1fr); }
.hc-cards--4 { grid-template-columns: repeat(4, 1fr); }
.hc-card p { font-size: 15px; }

/* ---------- チェックリスト ---------- */
.hc-checklist li { position: relative; padding-left: 28px; margin-bottom: 8px; font-weight: 500; }
.hc-checklist li:last-child { margin-bottom: 0; }
.hc-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 14px;
  border-right: 3px solid var(--hc-gold-dark);
  border-bottom: 3px solid var(--hc-gold-dark);
  transform: rotate(45deg);
}

/* ---------- 表 ---------- */
.hc-table-wrap { overflow-x: auto; }
.hc-table { width: 100%; border-collapse: collapse; background: var(--hc-white); font-size: 15px; border-radius: var(--hc-radius); overflow: hidden; box-shadow: var(--hc-shadow); }
.hc-table th, .hc-table td { padding: 14px 18px; border-bottom: 1px solid var(--hc-border); text-align: left; vertical-align: top; line-height: 1.7; }
.hc-table thead th { background: var(--hc-navy); color: var(--hc-white); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; }
.hc-table tbody th { background: var(--hc-blue-soft); color: var(--hc-navy); font-weight: 700; width: 26%; }
.hc-table tbody tr:last-child th, .hc-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- 画像プレースホルダ（素材未制作の枠） ---------- */
.hc-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 2px dashed var(--hc-border);
  border-radius: var(--hc-radius);
  background: repeating-linear-gradient(45deg, #f7f9fc, #f7f9fc 10px, #eef2f7 10px, #eef2f7 20px);
}
.hc-ph--43 { aspect-ratio: 4 / 3; }
.hc-ph--cover { aspect-ratio: 3 / 4; }
.hc-ph__label { font-size: 13px; font-weight: 700; color: var(--hc-muted); letter-spacing: 0.08em; }

/* ---------- SPでの折りたたみ（PCは常に開いた状態） ---------- */
.hc-fold { margin: 0; }
.hc-fold__summary { display: none; }
.hc-fold__summary::-webkit-details-marker { display: none; }

/* ============================================================
   header
   ============================================================ */
.hc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hc-border);
}
.hc-header__inner { padding-top: 0; padding-bottom: 0; }
.hc-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.hc-logo { display: inline-flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--hc-navy); text-decoration: none !important; flex: 0 1 auto; }
.hc-logo__svg { height: 42px; width: auto; max-width: 100%; display: block; }
.hc-logo__svg text { font-family: var(--hc-logo-font); font-weight: 800; }
.hc-logo__ja { fill: var(--hc-navy); }
.hc-logo__en { fill: var(--hc-gold-dark); }
.hc-logo--light .hc-logo__ja { fill: var(--hc-white); }
.hc-logo--light .hc-logo__en { fill: var(--hc-gold); }

.hc-header__ctas { display: flex; align-items: stretch; gap: 10px; flex: 0 0 auto; }
/* 3つのCTAは高さを揃える（align-items: stretch＋同じ padding。個別に align-self や小さい padding を与えない） */
.hc-header__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 8px 16px;
  border: 2px solid transparent;
  border-radius: var(--hc-radius);
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  transition: background-color .15s, border-color .15s;
}
.hc-header__ctamain { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.hc-header__ctasub { font-size: 11px; font-weight: 500; }
.hc-header__cta--tel { color: var(--hc-navy); padding-left: 4px; padding-right: 12px; }
.hc-header__cta--tel .hc-header__ctamain { font-size: 22px; letter-spacing: 0.04em; }
.hc-header__cta--tel .hc-header__ctamain::before { content: "\260E\FE0E"; font-size: 16px; margin-right: 6px; color: var(--hc-gold-dark); }
.hc-header__cta--tel .hc-header__ctasub { color: var(--hc-muted); }
.hc-header__cta--sub { background: var(--hc-white); color: var(--hc-navy); border-color: var(--hc-navy); }
.hc-header__cta--sub:hover { background: var(--hc-blue-soft); }
.hc-header__cta--sub .hc-header__ctamain { font-size: 14px; }
.hc-header__cta--sub .hc-header__ctasub { color: var(--hc-muted); font-size: 10px; }
.hc-header__cta--primary { background: var(--hc-cta); color: var(--hc-navy); border-color: var(--hc-cta); box-shadow: 0 3px 10px rgba(232, 163, 60, 0.3); }
.hc-header__cta--primary:hover { background: var(--hc-cta-hover); border-color: var(--hc-cta-hover); }
.hc-header__cta--primary .hc-header__ctasub { color: var(--hc-navy); }

.hc-gnav { border-top: 1px solid var(--hc-border); }
.hc-gnav__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 56px; padding: 8px 0; }
.hc-gnav__list a { display: inline-block; padding: 2px 0; font-size: 14px; font-weight: 700; color: var(--hc-navy); }
.hc-gnav__list a:hover { color: var(--hc-blue); }

/* ============================================================
   hero（ファーストビュー：画像1枚＋非表示テキスト）
   ============================================================ */
.hc-hero { position: relative; }
.hc-hero--img { background: none; padding: 0; }
.hc-hero__pic { display: block; width: 100%; }
.hc-hero__pic img { display: block; width: 100%; height: auto; }

/* ============================================================
   cta-1 / cta-2 / cta-3（共通CTA帯）
   ============================================================ */
.hc-ctaband {
  background: linear-gradient(rgba(8, 29, 62, 0.84), rgba(8, 29, 62, 0.84)), url("../img/bg_cta.jpg") center / cover no-repeat;
  color: var(--hc-white);
  padding: 36px 0 34px;
}
.hc-ctaband__text {
  margin: 0 auto 20px;
  max-width: 820px;
  text-align: center;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--hc-white);
}
.hc-ctaband__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 40px; }

/* ---------- 電話導線 ---------- */
.hc-tel { display: inline-flex; flex-direction: column; line-height: 1.3; color: var(--hc-navy); text-decoration: none !important; }
.hc-tel__num { font-size: 30px; font-weight: 700; letter-spacing: 0.04em; }
.hc-tel__num::before { content: "\260E\FE0E"; font-size: 22px; margin-right: 8px; color: var(--hc-gold-dark); }
.hc-tel__note { font-size: 13px; color: var(--hc-muted); }
.hc-tel--light { color: var(--hc-white); }
.hc-tel--light .hc-tel__note { color: rgba(255, 255, 255, 0.85); }
.hc-tel--light .hc-tel__num::before { color: var(--hc-gold); }

/* ============================================================
   trouble
   ============================================================ */
.hc-trouble__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 18px; }
.hc-trouble__item { display: flex; }
/* 吹き出し：尾は中央下から出す（外側の三角＝枠線色、内側の三角＝背景色） */
.hc-trouble__bubble {
  position: relative;
  flex: 1 1 auto;
  margin: 0 0 16px;
  padding: 20px 18px;
  border: 1px solid var(--hc-border);
  border-radius: 14px;
  background: var(--hc-white);
  box-shadow: var(--hc-shadow);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--hc-navy);
  text-align: center;
}
.hc-trouble__bubble::before,
.hc-trouble__bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  border-style: solid;
}
.hc-trouble__bubble::before {
  bottom: -16px;
  margin-left: -11px;
  border-width: 16px 11px 0 11px;
  border-color: var(--hc-border) transparent transparent transparent;
}
.hc-trouble__bubble::after {
  bottom: -14px;
  margin-left: -10px;
  border-width: 15px 10px 0 10px;
  border-color: var(--hc-white) transparent transparent transparent;
}

/* ============================================================
   estimate
   ============================================================ */
.hc-estimate__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
  max-width: 640px;
  margin: 0 auto;
  font-size: 16px;
}
.hc-estimate__list li { margin-bottom: 0; color: var(--hc-navy); font-weight: 700; }

/* ============================================================
   method
   ============================================================ */
.hc-plan__table tbody th { width: 30%; white-space: nowrap; }

/* ============================================================
   service
   ============================================================ */
.hc-service__item { display: flex; align-items: center; }
.hc-service__item .hc-h3 { margin-bottom: 0; }

/* ============================================================
   reason
   ============================================================ */
.hc-reason { padding: 72px 0; }
.hc-reason__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.hc-reason__item {
  flex: 0 1 calc((100% - 40px) / 3);
  max-width: calc((100% - 40px) / 3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--hc-radius);
  background: rgba(255, 255, 255, 0.06);
}
.hc-reason__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: rgba(255, 255, 255, 0.08); }
.hc-reason__body { padding: 20px 22px 22px; }
.hc-reason__h { color: var(--hc-white); font-size: 19px; margin-bottom: 10px; line-height: 1.45; }
.hc-reason__p { font-size: 15px; color: rgba(255, 255, 255, 0.92); }

/* ============================================================
   works
   ============================================================ */
.hc-works__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hc-work { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.hc-work__media { position: relative; }
.hc-work__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hc-work__body { padding: 20px 22px 22px; }
.hc-work .hc-h3 { font-size: 17px; margin-bottom: 10px; }

/* 事例カード（トップ #works と cases/index.html で共通。
   項目と順序は shared/templates/case_article_template.md §2b：
   写真／タイトル／地域・施設／工事種別／結果／概要／リンク） */
.hc-case-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hc-case-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .15s, transform .15s; }
.hc-case-card:hover { box-shadow: var(--hc-shadow-hover); transform: translateY(-2px); }
.hc-case-card__media { position: relative; }
.hc-case-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hc-case-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1 1 auto; }
.hc-case-card__heading { font-size: 17px; margin: 0 0 10px; line-height: 1.5; }
.hc-case-card__title { color: var(--hc-navy); position: relative; z-index: 1; }
.hc-case-card__meta { margin: 0; font-size: 14px; }
.hc-case-card__meta div { padding: 8px 0; border-top: 1px solid var(--hc-border); }
.hc-case-card__meta dt { font-weight: 700; color: var(--hc-navy); font-size: 13px; }
.hc-case-card__meta dd { margin: 0; color: var(--hc-text); }
.hc-case-card__result dd { font-weight: 700; color: var(--hc-blue); }
.hc-case-card__summary { font-size: 14px; margin: 12px 0 0; }
.hc-case-card__more { margin: auto 0 0; padding-top: 14px; font-size: 14px; font-weight: 700; }
.hc-case-card__link { display: inline-flex; align-items: center; gap: 6px; color: var(--hc-blue); }
.hc-case-card__link::before { content: "\25b6"; font-size: 10px; }
.hc-case-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--hc-radius); }

/* ============================================================
   guide（資料請求バナー／download.html の資料説明）
   ============================================================ */
.hc-guide { padding: 56px 0; }
.hc-guide__box {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--hc-border);
  border-radius: 12px;
  background: var(--hc-alt);
}
.hc-guide__box--page { background: var(--hc-white); grid-template-columns: 260px 1fr; }
.hc-guide__cover { width: 100%; }
.hc-guide__cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hc-border);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(16, 36, 66, 0.12);
  background: var(--hc-white);
}
.hc-guide__body .hc-h3 { font-size: 20px; margin-bottom: 10px; }
.hc-guide__name { font-weight: 700; color: var(--hc-navy); margin-bottom: 8px; }
.hc-guide__list { counter-reset: guide; display: grid; gap: 4px; margin-bottom: 18px; font-size: 15px; }
.hc-guide__list li { position: relative; padding-left: 26px; counter-increment: guide; }
.hc-guide__list li::before {
  content: counter(guide);
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--hc-navy);
  color: var(--hc-white);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.hc-guide__btn { margin-top: 4px; }

/* ============================================================
   flow
   ============================================================ */
.hc-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hc-flow__step { position: relative; padding: 22px 18px 20px; }
.hc-flow__num { display: block; font-size: 28px; font-weight: 700; color: var(--hc-gold-dark); line-height: 1; margin-bottom: 8px; }
.hc-flow__step .hc-h3 { margin-bottom: 8px; }
.hc-flow__step p { font-size: 14px; }

/* ============================================================
   area
   ============================================================ */
.hc-area__layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: start; }
.hc-area__map { margin: 0; padding: 16px 16px 12px; background: var(--hc-white); border-radius: var(--hc-radius); box-shadow: var(--hc-shadow); }
.hc-area__map-image { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 6px; background: #f7f9fc; }
.hc-area__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 13px; color: var(--hc-muted); }
.hc-area__key { display: inline-flex; align-items: center; gap: 6px; }
.hc-area__key::before { content: ""; width: 14px; height: 14px; border-radius: 3px; }
.hc-area__key--main::before { background: var(--hc-blue); }
.hc-area__key--sub::before { background: #bfd0ec; }
.hc-area__grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.hc-area__col p { font-size: 15px; }

/* ============================================================
   faq
   ============================================================ */
.hc-faq { display: flex; flex-direction: column; gap: 10px; }
.hc-faq__item { background: var(--hc-white); border-radius: var(--hc-radius); box-shadow: var(--hc-shadow); border: 1px solid var(--hc-border); }
.hc-faq__q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 48px 16px 18px;
  cursor: pointer;
  font-weight: 700;
  color: var(--hc-navy);
  list-style: none;
  position: relative;
  line-height: 1.6;
}
.hc-faq__q::-webkit-details-marker { display: none; }
.hc-faq__q::before { content: "Q"; flex: 0 0 auto; color: var(--hc-gold-dark); font-weight: 700; }
.hc-faq__q::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--hc-navy);
  border-bottom: 2px solid var(--hc-navy);
  transform: rotate(45deg);
  transition: transform .2s;
}
.hc-faq__item[open] .hc-faq__q::after { transform: rotate(-135deg); top: 28px; }
.hc-faq__a { padding: 0 18px 18px 42px; font-size: 15px; }

/* ============================================================
   contact / フォーム（download.html の dl-form と共通）
   ============================================================ */
.hc-contact {
  background: var(--hc-navy) url("../img/bg_cta.jpg") center / cover no-repeat;
  color: var(--hc-white);
  padding: 80px 0 96px;
}
.hc-contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start; }
.hc-contact__intro .hc-h2 { color: var(--hc-white); margin-bottom: 16px; font-size: clamp(22px, 2.6vw, 30px); }
.hc-contact__intro .hc-tel { margin-top: 20px; padding: 14px 18px; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: var(--hc-radius); background: rgba(255, 255, 255, 0.08); }

.hc-form { background: var(--hc-white); color: var(--hc-text); border-radius: 12px; padding: 32px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.hc-field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.hc-field__label { display: block; font-weight: 700; font-size: 14px; color: var(--hc-navy); margin-bottom: 8px; padding: 0; }
.hc-field__note { margin: 6px 0 0; font-size: 12px; color: var(--hc-muted); line-height: 1.6; }
.hc-req, .hc-opt { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; vertical-align: middle; line-height: 1.6; }
.hc-req { background: #c8451f; color: var(--hc-white); }
.hc-opt { background: var(--hc-border); color: var(--hc-muted); }
.hc-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #b9c3cf;
  border-radius: 6px;
  background: #fbfcfd;
  font: inherit;
  font-size: 16px;
  color: var(--hc-text);
  letter-spacing: 0.04em;
}
.hc-input:focus { border-color: var(--hc-blue); background: var(--hc-white); outline: 3px solid rgba(43, 95, 168, 0.25); outline-offset: 0; }
.hc-input--textarea { resize: vertical; min-height: 110px; }
.hc-input--file { padding: 10px 12px; font-size: 14px; background: var(--hc-white); }
.hc-input--select { appearance: auto; cursor: pointer; }
.hc-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.7; cursor: pointer; }
.hc-consent input { width: 18px; height: 18px; margin: 5px 0 0; flex: 0 0 auto; accent-color: var(--hc-navy); }
.hc-link { text-decoration: underline; }
.hc-form__submit { margin-top: 8px; }
.hc-form__msg { margin-top: 14px; padding: 12px 16px; border-radius: 6px; background: var(--hc-blue-soft); color: var(--hc-navy); font-size: 14px; font-weight: 500; text-align: center; }

/* ============================================================
   thanks（download-thanks.html）
   ============================================================ */
.hc-thanks { text-align: center; }
.hc-thanks .hc-card { text-align: left; }
.hc-thanks__tel { align-items: center; margin-top: 24px; padding: 14px 18px; border: 2px solid var(--hc-navy); border-radius: var(--hc-radius); background: var(--hc-white); }

/* ============================================================
   下層ページの読み物・定義表（privacy.html / company.html）
   ============================================================ */
.hc-prose .hc-sec-head--left { text-align: left; margin-bottom: 28px; }
.hc-prose .hc-sec-head--left .hc-lead { margin-left: 0; margin-right: 0; max-width: none; }
.hc-prose > h2 { margin: 40px 0 12px; padding-left: 12px; border-left: 4px solid var(--hc-gold-dark); line-height: 1.5; }
.hc-prose > h2:first-of-type { margin-top: 0; }
.hc-prose__list { margin: 0 0 8px; font-size: 15px; }
.hc-prose__list li { position: relative; padding-left: 16px; margin-bottom: 8px; line-height: 1.8; }
.hc-prose__list li:last-child { margin-bottom: 0; }
.hc-prose__list li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--hc-blue); }
.hc-prose .hc-table-wrap { margin-bottom: 8px; }
.hc-prose .hc-note { margin-top: 32px; }
.hc-prose .hc-cta-row { justify-content: flex-start; }
.hc-deftable tbody th { width: 28%; }
.hc-company__lead { margin: 24px 0 0; max-width: none; }


/* ============================================================
   下層ページ：パンくず・事例詳細・コラム（cases/ / column/）
   ============================================================ */
.hc-breadcrumb { background: var(--hc-alt); border-bottom: 1px solid var(--hc-border); }
.hc-breadcrumb__list { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 10px 0; font-size: 13px; color: var(--hc-muted); }
.hc-breadcrumb__list li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hc-breadcrumb__list li + li::before { content: "＞"; color: var(--hc-border); }
.hc-breadcrumb__list a { color: var(--hc-blue); }
.hc-breadcrumb__list [aria-current="page"] { color: var(--hc-navy); font-weight: 700; }

.hc-section--head { padding-bottom: 40px; }
.hc-section--tight { padding-top: 40px; padding-bottom: 40px; }
.hc-sec-head--left { text-align: left; }
.hc-sec-head--left .hc-lead { margin-left: 0; margin-right: 0; max-width: none; }

.hc-case__media { margin-top: 28px; }
.hc-case__media img, .hc-case__media .hc-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--hc-radius); }


/* 事例・コラムのカード（トップの #works と共通の型） */
.hc-work--link { position: relative; transition: box-shadow .15s, transform .15s; }
.hc-work--link:hover { box-shadow: var(--hc-shadow-hover); transform: translateY(-2px); }
.hc-work__title { color: var(--hc-navy); position: relative; z-index: 1; }
.hc-work__summary { font-size: 14px; margin-top: 12px; }
.hc-work__date { font-size: 13px; color: var(--hc-muted); margin-bottom: 8px; }
.hc-work__more { margin: 14px 0 0; font-size: 14px; font-weight: 700; }
.hc-work__link { display: inline-flex; align-items: center; gap: 6px; color: var(--hc-blue); }
.hc-work__link::before { content: "▶"; font-size: 10px; }
.hc-work__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--hc-radius); }
.hc-works__list--1 { grid-template-columns: 1fr; }
.hc-works__list--1 .hc-work { flex-direction: row; }
.hc-works__list--1 .hc-work__media { flex: 0 0 38%; }
.hc-works__list--1 .hc-work__media img, .hc-works__list--1 .hc-work__media .hc-ph { height: 100%; aspect-ratio: auto; object-fit: cover; }
.hc-works__list--1 .hc-work__body { flex: 1 1 auto; }

.hc-article__date { margin: 12px 0 0; font-size: 13px; color: var(--hc-muted); }
.hc-prose .hc-flow { margin-top: 16px; }
.hc-prose .hc-flow__step p { margin: 0; }

/* ============================================================
   記事ページ（cases/<slug>.html：一般的な記事形式。1カラム・装飾ブロックなし）
   ============================================================ */
.hc-article-wrap { padding: 48px 0 72px; }
.hc-article { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 24px; }
.hc-article__title { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.5; }
.hc-article__sub { margin: 16px 0 0; font-weight: 500; }
.hc-article__lead { margin: 14px 0 0; color: var(--hc-muted); }
.hc-article > h2 { margin: 48px 0 14px; padding-left: 12px; font-size: 21px; line-height: 1.5; border-left: 4px solid var(--hc-gold-dark); }
.hc-article > p { margin: 0 0 1.4em; }
.hc-article__steps { counter-reset: hc-step; margin: 0 0 1.4em; }
.hc-article__steps > li { counter-increment: hc-step; position: relative; padding-left: 34px; margin-bottom: 10px; line-height: 1.8; }
.hc-article__steps > li:last-child { margin-bottom: 0; }
.hc-article__steps > li::before {
  content: counter(hc-step);
  position: absolute; left: 0; top: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--hc-blue-soft); color: var(--hc-navy);
  font-size: 13px; font-weight: 700; line-height: 24px; text-align: center;
}
.hc-article__table { width: 100%; border-collapse: collapse; margin: 28px 0 10px; font-size: 15px; }
.hc-article__table th, .hc-article__table td { border: 1px solid var(--hc-border); padding: 10px 14px; text-align: left; vertical-align: top; line-height: 1.7; }
.hc-article__table th { width: 30%; background: var(--hc-alt); color: var(--hc-navy); font-weight: 700; }
.hc-article__note { margin: 0 0 1.4em; font-size: 13px; color: var(--hc-muted); line-height: 1.7; }
.hc-article__note a { word-break: break-all; }
.hc-article__list { margin: 0 0 1.4em; }
.hc-article__list > li { position: relative; padding-left: 16px; margin-bottom: 8px; line-height: 1.8; }
.hc-article__list > li:last-child { margin-bottom: 0; }
.hc-article__list > li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--hc-blue); }
.hc-article__inlink { margin: -0.6em 0 1.4em; font-size: 15px; font-weight: 700; line-height: 1.7; }
.hc-article .hc-table-wrap { margin: 28px 0 10px; }
.hc-article .hc-table-wrap .hc-article__table { margin: 0; }
.hc-article__table--cols { min-width: 620px; }
.hc-article__table--cols th { width: auto; }
.hc-article .hc-note--list { margin: 10px 0 1.4em; }
.hc-article__figure { margin: 28px 0; }
.hc-article__figure img { width: 100%; height: auto; border-radius: var(--hc-radius); }
.hc-article__figure--portrait img { max-width: 420px; margin-left: auto; margin-right: auto; }
.hc-article__figcap { margin-top: 8px; font-size: 13px; color: var(--hc-muted); line-height: 1.7; }
.hc-article__related { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--hc-border); }
.hc-article__related > h2 { margin: 28px 0 12px; font-size: 18px; color: var(--hc-navy); }
.hc-article__links { margin: 0 0 8px; font-size: 15px; }
.hc-article__links li { position: relative; padding-left: 16px; margin-bottom: 10px; line-height: 1.8; }
.hc-article__links li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--hc-blue); }
.hc-article__linkcta { margin-left: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.hc-article__linkcta::before { content: "▶"; font-size: 9px; margin-right: 4px; }
.hc-article__more { margin: 24px 0 0; }
.hc-article__more .hc-btn { width: 100%; max-width: 320px; }
.hc-related-links { max-width: 780px; margin: 0 auto; }

/* ============================================================
   footer
   ============================================================ */
.hc-footer { background: var(--hc-navy); color: rgba(255, 255, 255, 0.88); padding: 44px 0 40px; font-size: 13px; }
.hc-footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 20px 48px; align-items: start; }
.hc-footer__company { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.hc-footer__companylogo { width: 150px; height: auto; background: var(--hc-white); padding: 6px 10px; border-radius: 6px; }
.hc-footer__info p { margin-bottom: 6px; line-height: 1.7; }
.hc-footer__info a { color: var(--hc-white); text-decoration: underline; }
.hc-footer__tel { font-weight: 700; }
.hc-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; }
.hc-footer__copy { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.7); }

/* ============================================================
   fixed-cta（SP固定CTA）
   ============================================================ */
.hc-fixed {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--hc-border);
  box-shadow: 0 -4px 16px rgba(8, 29, 62, 0.12);
  transform: translateY(100%);
  transition: transform .25s ease;
}
.hc-fixed.is-visible { transform: translateY(0); }
.hc-fixed__btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 6px 8px;
  border-radius: var(--hc-radius);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none !important;
}
.hc-fixed__btn--tel { background: var(--hc-white); color: var(--hc-navy); border: 2px solid var(--hc-navy); }
.hc-fixed__btn--form { background: var(--hc-cta); color: var(--hc-navy); border: 2px solid var(--hc-cta); }
.hc-fixed__sub { font-size: 12px; font-weight: 500; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1024px) {
  .hc-cards--4 { grid-template-columns: repeat(2, 1fr); }
  .hc-works__list { grid-template-columns: 1fr; }
  .hc-work { flex-direction: row; }
  .hc-work__media { flex: 0 0 34%; }
  .hc-work__media img, .hc-work__media .hc-ph { height: 100%; aspect-ratio: auto; }
  .hc-work__body { flex: 1 1 auto; }
  .hc-case-list { grid-template-columns: 1fr; }
  .hc-case-card { flex-direction: row; }
  .hc-case-card__media { flex: 0 0 34%; }
  .hc-case-card__media img { height: 100%; aspect-ratio: auto; }
  .hc-case-card__body { flex: 1 1 auto; }
  .hc-flow { grid-template-columns: repeat(2, 1fr); }
  .hc-trouble__list { grid-template-columns: repeat(2, 1fr); }
  .hc-reason__item { flex-basis: calc((100% - 20px) / 2); max-width: calc((100% - 20px) / 2); }
  .hc-header__cta--tel .hc-header__ctamain { font-size: 19px; }
  .hc-header__ctamain { font-size: 14px; }
  .hc-header__cta { padding: 8px 12px; }
  .hc-header__cta--sub .hc-header__ctamain { font-size: 13px; }
  .hc-gnav__list { gap: 4px 36px; }
  .hc-guide__box--page { grid-template-columns: 200px 1fr; }
}

@media (max-width: 781px) {
  :root { --hc-header-h: 8px; }
  .hc-body { font-size: 15px; letter-spacing: 0.03em; }
  .hc-section { padding: 48px 0; }
  .hc-inner { padding: 0 16px; }
  .hc-h2 { font-size: 21px; }
  .hc-h3 { font-size: 18px; }
  .hc-br-sp { display: block; }
  .hc-br-pc { display: none; }
  .hc-sec-head { margin-bottom: 24px; }
  .hc-cta-row .hc-btn { width: 100%; }
  .hc-btn--lg { min-width: 0; width: 100%; font-size: 16px; padding: 16px 20px; }

  /* ヘッダー：ロゴの下に3CTAを3分割。補足文は非表示。追従はしない */
  .hc-header { position: static; }
  .hc-header__bar { flex-direction: column; align-items: stretch; gap: 8px; min-height: 0; padding: 10px 0 8px; }
  .hc-header__bar .hc-logo { align-self: flex-start; }
  .hc-logo__svg { height: 30px; }
  /* 電話ボタンを広めに取り、SPでも番号が1行に収まるようにする */
  .hc-header__ctas { display: grid; grid-template-columns: 1.12fr 0.95fr 0.93fr; gap: 6px; align-items: stretch; }
  .hc-header__cta { padding: 9px 4px; border-radius: 6px; height: 100%; }
  .hc-header__ctamain { font-size: 12px; letter-spacing: 0; }
  .hc-header__cta--tel { padding-left: 2px; padding-right: 2px; border: 2px solid var(--hc-navy); }
  .hc-header__cta--tel .hc-header__ctamain { font-size: 13px; white-space: nowrap; }
  .hc-header__cta--tel .hc-header__ctamain::before { font-size: 12px; margin-right: 3px; }
  .hc-header__cta--sub .hc-header__ctamain { font-size: 11px; }
  .hc-header__ctasub { display: none; }
  .hc-gnav__list { gap: 0 16px; justify-content: space-between; padding: 6px 0; }
  .hc-gnav__list a { font-size: 12px; }

  /* 共通CTA帯 */
  .hc-ctaband { padding: 28px 0 26px; }
  .hc-ctaband__row { flex-direction: column; align-items: stretch; gap: 14px; }
  .hc-ctaband .hc-tel { align-items: center; padding: 10px; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: var(--hc-radius); background: rgba(255, 255, 255, 0.08); }
  .hc-tel__num { font-size: 26px; }

  /* SPで折りたたむ部品 */
  .hc-fold__summary {
    display: block;
    position: relative;
    padding: 14px 40px 14px 16px;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    background: var(--hc-white);
    font-size: 15px;
    font-weight: 700;
    color: var(--hc-navy);
    cursor: pointer;
    list-style: none;
  }
  .hc-fold__summary::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 20px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--hc-navy);
    border-bottom: 2px solid var(--hc-navy);
    transform: rotate(45deg);
    transition: transform .2s;
  }
  .hc-fold[open] > .hc-fold__summary { margin-bottom: 12px; }
  .hc-fold[open] > .hc-fold__summary::after { transform: rotate(-135deg); top: 24px; }

  .hc-cards--2, .hc-cards--3 { grid-template-columns: 1fr; }
  .hc-cards--4 { grid-template-columns: 1fr; gap: 10px; }
  .hc-card { padding: 18px 16px; }
  .hc-service__item { padding: 14px 16px; }
  .hc-service__item .hc-h3 { font-size: 15px; }

  /* 見出し1行目「電気工事のセカンドオピニオンとして、」がSPで1行に収まるサイズ */
  .hc-estimate__h { font-size: 18px; letter-spacing: 0.01em; }
  .hc-trouble__list { grid-template-columns: 1fr; gap: 16px 0; }
  .hc-trouble__bubble { padding: 16px 14px; font-size: 15px; }
  .hc-estimate__list { grid-template-columns: 1fr; gap: 8px; max-width: 420px; font-size: 15px; }
  .hc-reason { padding: 44px 0; }
  .hc-reason__item { flex-basis: 100%; max-width: 100%; }
  .hc-reason__body { padding: 16px 16px 18px; }

  /* 表：行をカード化 */
  .hc-plan__table thead { display: none; }
  .hc-plan__table tr { display: block; border-bottom: 1px solid var(--hc-border); }
  .hc-plan__table th, .hc-plan__table td { display: block; width: auto; border-bottom: 0; padding: 10px 14px; }
  .hc-plan__table td { padding-top: 4px; }
  .hc-plan__table td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--hc-muted); margin-bottom: 2px; }
  .hc-plan__table tbody th { width: auto; white-space: normal; }

  .hc-works__list { gap: 14px; }
  .hc-work { flex-direction: column; }
  .hc-work__media { flex: none; }
  .hc-work__media img, .hc-work__media .hc-ph { aspect-ratio: 16 / 9; height: auto; }
  .hc-work__body { padding: 16px 14px 18px; }

  .hc-case-list { gap: 14px; }
  .hc-case-card { flex-direction: column; }
  .hc-case-card__media { flex: none; }
  .hc-case-card__media img { aspect-ratio: 16 / 9; height: auto; }
  .hc-case-card__body { padding: 16px 14px 18px; }
  .hc-case-card__heading { font-size: 16px; }

  .hc-guide { padding: 40px 0; }
  .hc-guide__box, .hc-guide__box--page { grid-template-columns: 1fr; gap: 18px; padding: 18px 16px; }
  .hc-guide__cover { max-width: 180px; margin: 0 auto; }
  .hc-guide__btn { width: 100%; }

  .hc-flow { grid-template-columns: 1fr; }
  .hc-area__layout { grid-template-columns: 1fr; gap: 16px; }
  .hc-area__map { padding: 12px 10px 8px; }

  .hc-contact { padding: 44px 0 64px; }
  .hc-contact__grid { grid-template-columns: 1fr; gap: 24px; }
  .hc-form { padding: 20px 14px; }

  /* 下層ページ：定義表を縦積みにする */
  .hc-prose > h2 { margin: 28px 0 10px; font-size: 17px; }
  .hc-prose__list { font-size: 14px; }
  .hc-prose .hc-cta-row .hc-btn { width: 100%; }
  .hc-deftable tr { display: block; border-bottom: 1px solid var(--hc-border); }
  .hc-deftable tbody tr:last-child { border-bottom: 0; }
  .hc-deftable th, .hc-deftable td { display: block; width: auto; border-bottom: 0; padding: 10px 14px 0; }
  .hc-deftable td { padding: 4px 14px 12px; }
  .hc-deftable tbody th { width: auto; background: none; font-size: 13px; color: var(--hc-muted); }
  .hc-deftable td a { word-break: break-all; }

  .hc-footer__inner { grid-template-columns: 1fr; }
  .hc-footer { padding-bottom: 100px; } /* 固定CTA分 */
  .hc-footer__companylogo { width: 130px; }

  .hc-fixed { display: flex; }
  .hc-fixed__btn { font-size: 14px; }

  /* 下層ページ（cases/ / column/） */
  .hc-breadcrumb__list { font-size: 12px; }
  .hc-section--head { padding-bottom: 24px; }
  .hc-section--tight { padding-top: 24px; padding-bottom: 24px; }
  .hc-works__list--1 { grid-template-columns: 1fr; }
  .hc-works__list--1 .hc-work { flex-direction: column; }
  .hc-works__list--1 .hc-work__media { flex: none; }
  .hc-works__list--1 .hc-work__media img, .hc-works__list--1 .hc-work__media .hc-ph { aspect-ratio: 16 / 9; height: auto; }
  .hc-case__media { margin-top: 20px; }

  /* 記事ページ */
  .hc-article-wrap { padding: 28px 0 48px; }
  .hc-article { padding: 0 20px; }
  .hc-article > h2 { margin: 32px 0 12px; font-size: 18px; }
  .hc-article__figure { margin: 20px 0; }
  .hc-article__table { margin: 20px 0 10px; font-size: 14px; }
  .hc-article__table tr { display: block; border: 1px solid var(--hc-border); border-bottom: 0; }
  .hc-article__table tbody tr:last-child { border-bottom: 1px solid var(--hc-border); }
  .hc-article__table th, .hc-article__table td { display: block; width: auto; border: 0; padding: 10px 14px 0; }
  .hc-article__table td { padding: 2px 14px 12px; }
  .hc-article__table th { font-size: 13px; color: var(--hc-muted); background: none; }
  .hc-article__related { margin-top: 40px; }
  .hc-article__more .hc-btn { max-width: none; }
}

@media (max-width: 400px) {
  .hc-header__ctamain { font-size: 11px; }
  .hc-header__cta--tel .hc-header__ctamain { font-size: 12px; letter-spacing: -0.01em; }
  .hc-header__cta--sub { padding-left: 2px; padding-right: 2px; }
  .hc-header__cta--sub .hc-header__ctamain { font-size: 10px; letter-spacing: -0.02em; white-space: nowrap; }
  .hc-gnav__list { gap: 0 8px; }
}

/* 360px以下：estimate の見出し1行目が1行に収まるようさらに縮める */
@media (max-width: 360px) {
  .hc-estimate__h { font-size: 15px; letter-spacing: 0; }
}

/* 迷惑送信対策：ハニーポット（人には見せない入力欄） */
.hc-hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.hc-hp input { width: 1px; }

/* フォームの戻りエラー表示 */
.hc-form__msg.is-error { color: #b3261e; font-weight: 700; }
