@charset "UTF-8";
/* 株式会社村岡電気商会 公式サイト
   ------------------------------------------------------------------
   配色は「濃紺・チャコール・白」を土台に、電気を表すアンバーを差し色として使う。
   アンバーは白地の上では文字色に使わない（読みにくくなるため）。
   文字は16px以上、押せる部分は44px以上を確保する。
   ------------------------------------------------------------------ */

/* ============================== 1. 土台 ============================== */

:root {
  --navy-900: #0e2338;
  --navy-800: #16324c;
  --navy-700: #1e4468;
  --navy-050: #eef3f8;
  --charcoal: #232a32;
  --ink: #1b2530;
  --muted: #556475;
  --line: #dbe2ea;
  --line-strong: #c3cedb;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --amber: #f0a92c;
  --amber-strong: #e08c10;
  --amber-text: #8a5a05;      /* 白地に置ける濃さのアンバー */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(14, 35, 56, .06), 0 2px 8px rgba(14, 35, 56, .05);
  --shadow-md: 0 4px 12px rgba(14, 35, 56, .08), 0 12px 32px rgba(14, 35, 56, .07);
  --header-h: 64px;
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}

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

a { color: var(--navy-700); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--amber-strong);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 { line-height: 1.45; margin: 0; font-weight: 700; letter-spacing: .01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: 12px 18px;
  border-radius: 0 0 var(--radius) var(--radius); text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* ============================== 2. ヘッダー ============================== */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: var(--header-h);
  padding-block: 8px;
}

.logo { margin: 0; margin-right: auto; }
.logo a {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.logo-mark { color: var(--navy-900); display: flex; flex: 0 0 auto; }
.logo-text { display: grid; }
.logo-text-main {
  font-size: 17px; font-weight: 700; color: var(--navy-900); line-height: 1.3;
  letter-spacing: .02em;
}
.logo-text-sub { font-size: 11.5px; color: var(--muted); line-height: 1.4; letter-spacing: .04em; }

.global-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.global-nav a {
  display: block; padding: 10px 13px; border-radius: var(--radius);
  color: var(--charcoal); text-decoration: none; font-size: 15px; font-weight: 600;
  white-space: nowrap;
}
.global-nav a:hover { background: var(--navy-050); color: var(--navy-800); }
.global-nav li.is-current a {
  color: var(--navy-900);
  box-shadow: inset 0 -3px 0 var(--amber);
}

.header-contact { display: flex; align-items: center; gap: 14px; }
.header-tel { display: grid; text-align: right; line-height: 1.25; }
.header-tel-label { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.header-tel-number {
  display: flex; align-items: center; justify-content: flex-end; min-height: 44px;
  font-size: 21px; font-weight: 700; color: var(--navy-900);
  letter-spacing: .01em; text-decoration: none; font-variant-numeric: tabular-nums;
}
.header-tel-number:hover { text-decoration: underline; }

/* 文章の中に置いた電話リンクも、指で押せる高さ（44px以上）を確保する。
   上下の余白を負のマージンで打ち消すので、行の高さは変わらない。 */
.footer-tel a,
.company-table td a[href^="tel:"],
.prose a[href^="tel:"] {
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
}

.nav-toggle { display: none; }

/* ============================== 3. ボタン ============================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-size: 16px; font-weight: 700; text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-tel {
  background: var(--amber); color: #2c1d00;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .12);
}
.btn-tel:hover { background: var(--amber-strong); }

.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }

.btn-outline {
  background: transparent; color: var(--navy-800); border-color: var(--line-strong);
}
.btn-outline:hover { background: var(--navy-050); border-color: var(--navy-700); }

.btn-ghost-light {
  background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .5);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); }

.icon-phone { display: inline-flex; }

/* ============================== 4. ヒーロー ============================== */

.hero {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(14, 35, 56, .96) 0%, rgba(14, 35, 56, .88) 42%, rgba(14, 35, 56, .55) 100%);
}
.hero-inner {
  position: relative;
  padding-block: clamp(52px, 8vw, 92px);
  max-width: 720px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 6px 14px;
  border: 1px solid rgba(240, 169, 44, .55); border-radius: 999px;
  background: rgba(240, 169, 44, .12);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; color: #ffd58f;
}
.hero h1 {
  font-size: clamp(28px, 5.4vw, 46px);
  line-height: 1.35; letter-spacing: .005em; margin: 0 0 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}
.hero h1 .accent {
  background: linear-gradient(transparent 66%, rgba(240, 169, 44, .45) 66%);
}
.hero-lead {
  font-size: clamp(15.5px, 1.7vw, 17.5px); line-height: 1.95;
  color: rgba(255, 255, 255, .92); margin: 0 0 28px; max-width: 40em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { min-width: 220px; }
.hero-tel-note {
  margin: 16px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .78);
}

.hero-facts {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .16);
  background: rgba(0, 0, 0, .22);
}
.hero-facts ul {
  display: grid; grid-template-columns: repeat(3, 1fr);
  list-style: none;
}
.hero-facts li {
  padding: 16px 18px;
  border-left: 1px solid rgba(255, 255, 255, .12);
}
.hero-facts li:first-child { border-left: 0; }
.hero-facts .fact-label {
  display: block; font-size: 11.5px; letter-spacing: .08em; color: rgba(255, 255, 255, .66);
}
.hero-facts .fact-value {
  display: block; font-size: 15px; font-weight: 700; color: #fff; line-height: 1.5; margin-top: 2px;
}

/* ============================== 5. セクション共通 ============================== */

.section { padding-block: clamp(48px, 7vw, 80px); }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy-900); color: #fff; }

.section-head { max-width: 44em; margin: 0 0 clamp(28px, 4vw, 44px); }
.section-head.is-center { margin-inline: auto; text-align: center; }

.section-label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  color: var(--amber-text); margin: 0 0 8px; text-transform: uppercase;
}
.section-navy .section-label { color: #ffc978; }

.section-title {
  font-size: clamp(23px, 3.4vw, 32px); line-height: 1.4; margin: 0 0 14px;
  color: var(--navy-900);
}
.section-navy .section-title { color: #fff; }
.section-title::after {
  content: ""; display: block; width: 46px; height: 4px; margin-top: 14px;
  background: var(--amber); border-radius: 2px;
}
.section-head.is-center .section-title::after { margin-inline: auto; }

.section-desc { font-size: 16px; color: var(--muted); margin: 0; }
.section-navy .section-desc { color: rgba(255, 255, 255, .84); }

/* ============================== 6. 会社紹介 ============================== */

.intro-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.intro-body p { font-size: 16.5px; }
.intro-points { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.intro-points li {
  position: relative; padding-left: 32px; font-size: 16px; font-weight: 600; color: var(--charcoal);
}
.intro-points li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--amber);
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--amber-strong);
}
.intro-figure { margin: 0; }
.intro-figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.intro-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ============================== 7. 事業内容 ============================== */

.service-cards {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.service-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line-strong); }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--navy-050); color: var(--navy-800);
  margin-bottom: 14px; flex: 0 0 auto;
}
.service-card-name { font-size: 17px; color: var(--navy-900); margin: 0 0 8px; }
.service-card-text { font-size: 14.8px; color: var(--muted); line-height: 1.8; margin: 0 0 14px; }
.service-card-link {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-size: 14.5px; font-weight: 700; color: var(--navy-700); text-decoration: none;
}
.service-card-link::after { content: "→"; }
.service-card-link:hover { text-decoration: underline; }

/* 事業内容ページ */
.service-index {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 36px;
}
.service-index a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: var(--navy-800); text-decoration: none;
}
.service-index a:hover { border-color: var(--navy-700); background: var(--navy-050); }

.service-details { display: grid; gap: 20px; }
.service-detail {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--amber);
  border-radius: var(--radius); padding: 24px clamp(18px, 3vw, 30px);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.service-detail-name {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(18px, 2.4vw, 21px); color: var(--navy-900); margin: 0 0 12px;
}
.service-detail-name .service-icon { width: 42px; height: 42px; margin: 0; }
.service-detail p { font-size: 16px; color: var(--charcoal); margin: 0; }

/* ============================== 8. 選ばれる理由 ============================== */

.reason-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.reason-item {
  position: relative;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
}
.reason-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--amber); color: #2c1d00;
  font-size: 16px; font-weight: 800; margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.reason-title { font-size: 18px; color: #fff; margin: 0 0 8px; }
.reason-text { font-size: 15.5px; color: rgba(255, 255, 255, .84); margin: 0; line-height: 1.85; }

/* ============================== 9. 対応地域 ============================== */

.area-grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(28px, 4vw, 48px); align-items: center; }
.area-note {
  margin-top: 20px; padding: 16px 18px;
  background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius);
  font-size: 14.5px; color: var(--muted);
}
.area-figure { margin: 0; }
.area-figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.area-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ============================== 10. ご依頼の流れ ============================== */

.flow-list { list-style: none; counter-reset: flow; display: grid; gap: 0; }
.flow-item {
  counter-increment: flow;
  position: relative;
  display: grid; grid-template-columns: 64px 1fr; gap: 20px;
  padding: 0 0 28px 0;
}
.flow-item::before {
  content: counter(flow, decimal-leading-zero);
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy-800); color: #fff;
  font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 6px var(--bg-soft);
  z-index: 1;
}
.flow-item::after {
  content: ""; position: absolute; left: 27px; top: 56px; bottom: 0;
  width: 2px; background: var(--line-strong);
}
.flow-item:last-child { padding-bottom: 0; }
.flow-item:last-child::after { display: none; }
.flow-title { font-size: 18px; color: var(--navy-900); margin: 12px 0 6px; }
.flow-text { font-size: 15.5px; color: var(--muted); margin: 0 0 4px; }

/* ============================== 11. 会社概要テーブル ============================== */

.company-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.company-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.company-table th, .company-table td {
  text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line);
  font-size: 15.8px; vertical-align: top;
}
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: 0; }
.company-table th {
  width: 15em; background: var(--navy-050); color: var(--navy-900);
  font-weight: 700; white-space: nowrap;
}
.company-table td { color: var(--charcoal); }
.company-table td a { color: var(--navy-700); font-weight: 700; }
.company-table ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.company-table ul li {
  background: var(--navy-050); border-radius: 6px; padding: 3px 10px; font-size: 14.5px;
}

/* 地図 */
.map-block { margin-top: 28px; }
.map-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  min-height: 260px; background: var(--navy-050);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: grid; place-items: center;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder { text-align: center; padding: 24px; }
.map-placeholder p { font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.map-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }

/* ============================== 12. FAQ ============================== */

.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-q {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 46px 16px 18px; min-height: 44px;
  cursor: pointer; list-style: none;
  font-size: 16.5px; font-weight: 700; color: var(--navy-900); position: relative;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 11px; height: 11px; margin-top: -7px;
  border-right: 2.5px solid var(--navy-700); border-bottom: 2.5px solid var(--navy-700);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq-item[open] .faq-q::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-q:hover { background: var(--navy-050); }
.faq-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 7px;
  background: var(--navy-800); color: #fff; font-size: 14px; font-weight: 800;
  margin-top: 1px;
}
.faq-mark-a { background: var(--amber); color: #2c1d00; }
.faq-a {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 0 18px 18px; border-top: 1px solid var(--line); padding-top: 16px;
}
.faq-a p { font-size: 15.8px; color: var(--charcoal); margin: 0; line-height: 1.9; }

/* ============================== 13. CTA ============================== */

.cta {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff; text-align: center;
}
.cta-title { font-size: clamp(21px, 3.2vw, 30px); margin: 0 0 12px; color: #fff; }
.cta-lead { font-size: 16px; color: rgba(255, 255, 255, .86); margin: 0 0 28px; }
.cta-tel {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 20px 34px; margin-bottom: 18px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-lg);
  text-decoration: none; color: #fff;
}
.cta-tel:hover { background: rgba(255, 255, 255, .13); }
.cta-tel-label { font-size: 13px; letter-spacing: .08em; color: rgba(255, 255, 255, .8); }
.cta-tel-number {
  font-size: clamp(30px, 6vw, 46px); font-weight: 800; line-height: 1.2;
  letter-spacing: .01em; font-variant-numeric: tabular-nums; color: #ffd58f;
}
.cta-tel-sub { font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-actions .btn { min-width: 220px; }

/* ============================== 14. 汎用パーツ ============================== */

.breadcrumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  list-style: none; padding-block: 10px; font-size: 13.5px; color: var(--muted);
}
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--navy-700); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.page-hero {
  background: var(--navy-900); color: #fff;
  padding-block: clamp(34px, 5vw, 56px);
}
.page-hero h1 { font-size: clamp(24px, 4vw, 36px); margin: 0 0 10px; }
.page-hero p { font-size: 16px; color: rgba(255, 255, 255, .86); margin: 0; max-width: 46em; }

.prose h2 {
  font-size: clamp(20px, 2.6vw, 24px); color: var(--navy-900);
  margin: 40px 0 14px; padding-left: 14px; border-left: 5px solid var(--amber);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17.5px; color: var(--navy-800); margin: 26px 0 8px; }
.prose p, .prose li { font-size: 16px; color: var(--charcoal); }
.prose ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.prose ol { list-style: decimal; padding-left: 1.5em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--navy-700); font-weight: 600; }

.notice {
  background: var(--navy-050); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 18px 20px; margin: 24px 0;
}
.notice p { font-size: 15.5px; margin: 0; color: var(--charcoal); }

.contact-card {
  background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--amber);
  border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); text-align: center;
  box-shadow: var(--shadow-sm);
}
.contact-card h2 { font-size: clamp(20px, 2.8vw, 26px); color: var(--navy-900); margin: 0 0 10px; }
.contact-card > p { font-size: 16px; color: var(--muted); margin: 0 0 22px; }
.contact-tel {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 18px 30px; border-radius: var(--radius-lg);
  background: var(--navy-050); text-decoration: none; color: var(--navy-900);
}
.contact-tel:hover { background: #e3ecf6; }
.contact-tel-label { font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.contact-tel-number {
  font-size: clamp(28px, 6vw, 42px); font-weight: 800; line-height: 1.2;
  color: var(--navy-900); font-variant-numeric: tabular-nums;
}
.contact-meta { margin-top: 18px; font-size: 15px; color: var(--muted); }

.error-page { text-align: center; padding-block: clamp(60px, 10vw, 110px); }
.error-code {
  font-size: clamp(56px, 14vw, 96px); font-weight: 800; color: var(--navy-050);
  line-height: 1; margin: 0 0 8px; letter-spacing: .04em;
}
.error-page h1 { font-size: clamp(21px, 3.4vw, 28px); color: var(--navy-900); margin: 0 0 14px; }
.error-page p { color: var(--muted); margin: 0 auto 26px; max-width: 34em; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ============================== 15. フッター ============================== */

.site-footer {
  background: var(--charcoal); color: rgba(255, 255, 255, .82);
  padding-top: clamp(40px, 6vw, 56px);
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}
.footer-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px;
  padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.footer-name { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 8px; }
.footer-address, .footer-tel, .footer-license, .footer-business {
  margin: 0 0 6px; font-size: 14.8px; line-height: 1.75;
}
.footer-tel a { color: #ffd58f; font-weight: 700; text-decoration: none; font-size: 17px; }
.footer-tel a:hover { text-decoration: underline; }
.footer-fax { margin-left: 12px; font-size: 14.5px; color: rgba(255, 255, 255, .75); }
.footer-license, .footer-business { color: rgba(255, 255, 255, .68); font-size: 14px; }

.footer-nav ul {
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px;
}
.footer-nav a {
  display: block; min-height: 44px; display: flex; align-items: center;
  color: rgba(255, 255, 255, .85); text-decoration: none; font-size: 15px;
}
.footer-nav a:hover { color: #fff; text-decoration: underline; }

.credit-area { padding-block: 26px; }
.crea-backlink-banner {
  display: flex; align-items: center; gap: 18px;
  max-width: 560px; padding: 14px 20px;
  background: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.crea-backlink-banner:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.crea-backlink-banner img {
  width: 62px; height: 62px; flex: 0 0 62px; object-fit: contain; border-radius: 8px;
}
.crea-backlink-text { display: grid; line-height: 1.4; }
.crea-backlink-text small { font-size: 12px; color: var(--muted); }
.crea-backlink-text strong { font-size: 18px; color: var(--navy-900); margin: 2px 0; }
.crea-backlink-text b { font-size: 13px; color: var(--amber-text); font-weight: 700; }

.credit-note { margin: 14px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .6); }

.copyright {
  margin: 0; padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  text-align: center; font-size: 13px; color: rgba(255, 255, 255, .62);
}

/* ============================== 16. 固定電話ボタン（スマホ） ============================== */

.fixed-tel-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
}
.fixed-tel-btn {
  width: 100%; min-height: 56px; font-size: 17px;
  flex-wrap: nowrap; white-space: nowrap; overflow-wrap: normal;
}
.fixed-tel-number { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }

/* ============================== 17. 画面幅ごとの調整 ============================== */

@media (max-width: 1080px) {
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .header-tel { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 60px; }

  .nav-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; min-width: 44px; padding: 8px 12px;
    background: var(--navy-050); color: var(--navy-900);
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    font-size: 13px; font-weight: 700; cursor: pointer;
    order: 3;
  }
  .nav-toggle-bars { display: grid; gap: 4px; width: 18px; }
  .nav-toggle-bars span { display: block; height: 2px; background: currentColor; border-radius: 1px; }

  .global-nav {
    order: 4; flex-basis: 100%;
    display: none;
    border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px;
  }
  .global-nav.is-open { display: block; }
  /* JavaScriptが読み込めなかったときは、開閉ボタンを隠してメニューを開いたままにする */
  .no-js .global-nav { display: block; }
  .no-js .nav-toggle { display: none; }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .global-nav a {
    padding: 14px 8px; min-height: 48px; display: flex; align-items: center;
    border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px;
  }
  .global-nav li:last-child a { border-bottom: 0; }
  .global-nav li.is-current a { box-shadow: inset 3px 0 0 var(--amber); background: var(--navy-050); }

  .header-inner { flex-wrap: wrap; }
  .header-tel-btn { padding: 10px 14px; font-size: 14px; min-height: 44px; }
  .header-tel-btn .icon-phone { display: none; }

  .intro-grid, .area-grid { grid-template-columns: 1fr; }
  .reason-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-inner { max-width: none; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .container { width: min(100% - 28px, var(--container)); }

  .fixed-tel-bar { display: block; }

  .logo-text-main { font-size: 15.5px; }
  .logo-text-sub { display: none; }

  .hero-facts ul { grid-template-columns: 1fr; }
  .hero-facts li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .hero-facts li:first-child { border-top: 0; }
  .hero-actions .btn { width: 100%; min-width: 0; }

  .service-cards { grid-template-columns: 1fr; }
  .cta-actions .btn { width: 100%; min-width: 0; }
  .cta-tel { width: 100%; padding: 18px 16px; }

  .company-table th, .company-table td { display: block; width: auto; }
  .company-table th {
    border-bottom: 0; padding-bottom: 6px; font-size: 14px;
    background: transparent; color: var(--muted); letter-spacing: .04em;
  }
  .company-table td { padding-top: 0; padding-bottom: 16px; }
  .company-table tr { display: block; border-bottom: 1px solid var(--line); }
  .company-table tr:last-child { border-bottom: 0; }

  .flow-item { grid-template-columns: 48px 1fr; gap: 14px; }
  .flow-item::before { width: 44px; height: 44px; font-size: 15px; }
  .flow-item::after { left: 21px; top: 44px; }

  .crea-backlink-banner { max-width: none; gap: 14px; padding: 14px 16px; }
  .crea-backlink-banner img { width: 54px; height: 54px; flex-basis: 54px; }
  .crea-backlink-text strong { font-size: 16.5px; }

  .footer-nav ul { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  /* 固定電話ボタンが2行になるとフッターの著作権表示を覆うので、文字を詰めて1行に収める */
  .fixed-tel-btn { font-size: 15px; gap: 8px; padding-inline: 10px; }
  .fixed-tel-btn .icon-phone svg { width: 18px; height: 18px; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

  .logo-mark svg { width: 22px; height: 22px; }
  .logo-text-main { font-size: 14.5px; }
  .header-tel-btn { padding: 9px 10px; font-size: 13px; }
  .nav-toggle { padding: 8px 9px; }
  .nav-toggle-label { display: none; }
  .cta-tel-number { font-size: 28px; }
}

/* ============================== 18. 印刷 ============================== */

@media print {
  .site-header, .fixed-tel-bar, .breadcrumb, .cta, .hero-actions { display: none !important; }
  body { color: #000; background: #fff; }
  .hero, .page-hero, .section-navy, .site-footer { background: #fff !important; color: #000 !important; }
  .hero-media { display: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; }
}
