/* =====================================================================
   みすず電設 — 共通スタイル
   電気工事・設備工事会社サイト（竹プラン デモ）
   信頼性（青）× 親しみやすさ（暖色アクセント）
   ===================================================================== */

:root {
  /* --- Brand blues --- */
  --blue-950: #0f3358;
  --blue-900: #143f6e;
  --blue-800: #1B4F8A;   /* メイン */
  --blue-600: #2E7CC4;   /* サブ */
  --blue-400: #5fa0d8;
  --blue-100: #dbe8f5;

  /* --- Accent (energy) --- */
  --accent: #F6A623;      /* CTA / 強調 */
  --accent-600: #e2900f;
  --accent-100: #fdeccb;

  /* --- Neutrals --- */
  --bg: #ffffff;
  --bg-alt: #F2F5F8;      /* 淡いブルーグレー */
  --bg-deep: #0f2c4d;
  --ink: #1A1A1A;
  --ink-soft: #555c66;
  --ink-faint: #8a929c;
  --line: #e3e9f0;
  --line-soft: #eef2f6;
  --white: #ffffff;

  /* --- Type --- */
  --font: "Noto Sans JP", system-ui, -apple-system, sans-serif;

  /* --- Radius / shadow --- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(20, 63, 110, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 63, 110, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 44, 77, 0.16);

  /* --- Layout --- */
  --maxw: 1140px;
  --header-h: 70px;

  /* accent override hook (tweaks) */
  --cta: var(--accent);
  --cta-600: var(--accent-600);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; line-height: 1.4; font-weight: 700; letter-spacing: 0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: var(--r-pill); border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  line-height: 1.2; white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--cta { background: var(--cta); color: #2a1a00; box-shadow: 0 8px 20px rgba(246,166,35,.32); }
.btn--cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(246,166,35,.42); background: var(--cta-600); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--blue { background: var(--blue-800); color: #fff; box-shadow: var(--shadow-sm); }
.btn--blue:hover { transform: translateY(-2px); background: var(--blue-900); }
.btn--outline { background: #fff; color: var(--blue-800); border-color: var(--blue-100); }
.btn--outline:hover { border-color: var(--blue-600); }
.btn--lg { font-size: 18px; padding: 18px 36px; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  background: linear-gradient(145deg, var(--blue-800), var(--blue-600));
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.brand__mark svg { width: 24px; height: 24px; }
.brand__name { font-weight: 900; font-size: 19px; letter-spacing: .02em; color: var(--blue-900); line-height: 1.15; }
.brand__tag { font-size: 11px; color: var(--ink-faint); font-weight: 500; letter-spacing: .04em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 15px; font-weight: 600; color: var(--ink); padding: 8px 13px; border-radius: var(--r-sm);
  transition: color .15s, background .15s; white-space: nowrap;
}
.nav a:hover { color: var(--blue-800); background: var(--bg-alt); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-tel { text-align: right; line-height: 1.15; }
.header-tel__label { font-size: 10.5px; color: var(--ink-faint); font-weight: 600; letter-spacing: .06em; }
.header-tel__num {
  font-size: 21px; font-weight: 900; color: var(--blue-900); letter-spacing: .01em;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.header-tel__num svg { width: 17px; height: 17px; color: var(--accent-600); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; padding: 0; place-items: center; color: var(--blue-900);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* mobile drawer */
.drawer { display: none; }

/* ---------------------------------------------------------------------
   Section scaffolding
   --------------------------------------------------------------------- */
section { position: relative; }
.sec { padding: 90px 0; }
.sec--alt { background: var(--bg-alt); }
.sec--deep { background: var(--bg-deep); color: #eaf1f8; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.sec--deep .eyebrow { color: var(--blue-400); }

.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .eyebrow::before { display: none; }
.sec-title {
  font-size: clamp(26px, 4.4vw, 38px); font-weight: 900; color: var(--blue-900);
  margin: 16px 0 14px; letter-spacing: .01em; line-height: 1.34;
}
.sec--deep .sec-title { color: #fff; }
.sec-lead { font-size: 16px; color: var(--ink-soft); line-height: 1.95; }
.sec--deep .sec-lead { color: #b9cbe0; }
.jp-accent { color: var(--accent-600); }
.sec--deep .jp-accent { color: var(--accent); }

/* ---------------------------------------------------------------------
   Placeholder image blocks (差し替え前提)
   --------------------------------------------------------------------- */
.ph {
  position: relative; overflow: hidden; background: var(--blue-100);
  background-image:
    linear-gradient(135deg, rgba(46,124,196,.92), rgba(27,79,138,.92)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px);
  display: grid; place-items: center; color: #fff;
  border-radius: var(--r-md);
}
.ph__inner { text-align: center; padding: 14px; opacity: .92; }
.ph__inner svg { width: 38px; height: 38px; margin: 0 auto 8px; opacity: .85; }
.ph__cap { font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.ph--light {
  background-image:
    linear-gradient(135deg, rgba(219,232,245,.95), rgba(189,212,235,.95)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.4) 0 14px, transparent 14px 28px);
  color: var(--blue-800);
}
.ph--people {
  background-image:
    linear-gradient(150deg, rgba(246,166,35,.16), rgba(46,124,196,.28)),
    linear-gradient(0deg, var(--blue-600), var(--blue-600));
}
.ph__tag {
  position: absolute; top: 10px; left: 10px; background: rgba(15,44,77,.78);
  color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill);
  letter-spacing: .03em;
}
.ph__ba {
  position: absolute; bottom: 10px; left: 10px; font-size: 11px; font-weight: 800;
  background: var(--accent); color: #2a1a00; padding: 3px 10px; border-radius: 5px; letter-spacing: .06em;
}

/* ---------------------------------------------------------------------
   Cards / chips / badges
   --------------------------------------------------------------------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); color: var(--blue-900);
  font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.badge svg { width: 15px; height: 15px; color: var(--accent-600); }
.badge--ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.34); color: #fff; box-shadow: none; }
.badge--ghost svg { color: var(--accent); }

.tag {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 700;
  padding: 4px 11px; border-radius: var(--r-pill); background: var(--blue-100); color: var(--blue-800);
}
.tag--accent { background: var(--accent-100); color: var(--accent-600); }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { background: var(--bg-deep); color: #c4d4e6; padding: 64px 0 120px; font-size: 14px; }
.site-footer a { color: #c4d4e6; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand__name { font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.footer-col h4 { font-size: 14px; color: #fff; margin-bottom: 14px; letter-spacing: .04em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-meta { line-height: 1.95; color: #93a8c2; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: #7e93ae;
}

/* ---------------------------------------------------------------------
   Sticky mobile CTA
   --------------------------------------------------------------------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: 0; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(15,44,77,.12);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}
.mobile-cta a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 13px; font-weight: 800; padding: 9px 6px; border-radius: 12px; line-height: 1.2;
}
.mobile-cta a svg { width: 20px; height: 20px; }
.mobile-cta__tel { color: var(--blue-900); }
.mobile-cta__tel small { font-size: 10px; font-weight: 600; color: var(--ink-faint); }
.mobile-cta__form { background: var(--cta); color: #2a1a00; margin-left: 8px; }

/* ---------------------------------------------------------------------
   Scroll reveal
   --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .nav, .header-tel { display: none; }
  .nav-toggle { display: grid; }
  .header-cta .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .sec { padding: 60px 0; }
  .wrap { padding: 0 18px; }
  .sec-head { margin-bottom: 34px; }
  .mobile-cta { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 100px; }
  :root { --header-h: 62px; }
}
