@charset "utf-8";

/* ==========================================================
   北野電気 公式HP ─ B案（提案用デモ）

   お手本：東陽電気工事株式会社 https://www.toyodenkikouji.jp/
   構造・配色・見せ方をほぼそのまま踏襲した「落ち着いた・信頼感」の案。
   A案（site/）はポップで親しみやすい方向。2案で比べていただく。

   色（2026-08-20 変更）
     当初はお手本の「えんじ #873137」だったが、指摘
     「北野さんの雰囲気にあうカラーリングに。もっとやさしくておちついた雰囲気」を受け、
     **代表写真（images/kitano.jpg）から実測した色**に組み直した。
       写真の占有色 … 青みグレー #d0d8e0 12.1%／同系グレー約17%／墨 #202028 前後 12%
     ブランドは写真の墨とグレーの中間の色相＝青系。帯は温かいクリーム。
     2026-08-20 に「もうちょっと明るくていいかな。なんか白黒みたいです」の指摘を受けて、
     いちど彩度を落としすぎたものを**明るく・色味を戻した**。
       ブランド #456580（藍色寄り）／地色 #f4f7fa（明るい青みグレー）
     写真のグレースケール加工もやめ、そのままの色で見せている。
     2026-08-21、さらに「クリーム色が浮いてる」の指摘を2度受けて、**暖色の面を全部やめた**。
     淡い面はブランドの藍色を薄めた #dfe9f1 と #edf3f8 の2段だけにして、
     ページ全体を青系1本にそろえている。暖かみは写真そのものの色が担う。
     2026-08-25、ゆみさん経由でリベ友さんから「ブルーが少し暗いかも」との指摘。
     色相・彩度はそのままに、**明度だけ +5pt** 上げた（HSL 207.5, 30%, 38.6% → 43.7%）。
       ブランド #456580 → #4e7291（白文字とのコントラスト 6.1 → 5.1。AA の 4.5 は確保）
       濃い方 #35505f → #3e5e6f／LINEボタンのホバー #2a4150 → #334f61
     淡い面（--brand-pale／--brand-soft）と地色 --paper はもともと明るいので触っていない。
     ヒーローの背景色 #33465a は写真の下に隠れて見えないため据え置き。
     2026-08-26、比べて選んだ #4378a5（HSL 207.6, 42.2%, 45.5%）にいったん確定。
     2026-08-30、ゆみさん経由で再度「もう少し明るめの色に」。**#3b7ab0**（HSL 207.6, 50%, 46%）へ。
     🔴 明度Lはもう上げられない。+1.2pt で白文字のコントラストが AA の下限 4.5 を割る。
     一方で彩度Sは +20pt まで上げても 4.5 を保てるので、**明るさは彩度で稼いでいる**。
        L のみ +2pt → #467dac はコントラスト 4.38（大きい文字しかAAを満たさない）
        今回の #3b7ab0（L +0.5pt / S +7.8pt）→ 4.57
     スライダーで触って選べるページを別に用意した（site-b-color/・kitano-denki-b-colorsetting.pages.dev）。
     淡い面（--brand-pale／--brand-soft）と --paper・--rule は「青色を明るく」の対象外なので触っていない。
     8/25 の #4e7291 では「まだ暗い・彩度をもう少し高く」との指摘。彩度を 30% → 42% に上げ、
     明度も 43.7% → 45.5% にした。白文字とのコントラストは 4.70 で AA の 4.5 を確保している。
     ホバー系は同じ色相・彩度のまま明度を下げて作った（--brand-dark は -9.6pt、LINEのホバーは -14.7pt）。
   書体：Zen Maru Gothic（丸ゴシック）。お手本と同じ。太さ500と700だけ使う。
   画像：写真はA案と同じ実物。イラスト・線画はプレースホルダー（.ph）。
   ========================================================== */

:root{
  --brand:      #3b7ab0;   /* 藍色。白文字とのコントラスト 4.57（AA 4.5 を確保） */
  --brand-dark: #2e618b;
  --brand-pale: #dfe9f1;   /* 藍色を薄めた面（帯・もうすぐ20年・流れの円） */
  --brand-soft: #edf3f8;   /* さらに淡い面（お知らせの斜め・料金・デモ帯） */
  --accent:     #3f7d72;   /* 青緑。白文字で 4.8 */
  --paper:      #f4f7fa;   /* 明るい青みグレー */
  --white:      #ffffff;
  --ink:        #22272e;
  --ink-sub:    #5b6570;
  --rule:       #dde3e9;
  --rule-fine:  #e9eef3;

  --wrap: 1120px;
  --gap: 28px;
  --sans: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  /* 数字は標準字形の欧文に任せる。和文は --sans へ落ちる（手本マザーリーフの手法） */
  --num: "Helvetica Neue", Arial, "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  --ease: cubic-bezier(.22,.68,.28,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--sans); font-weight:500; font-size:16px; line-height:1.7;
  font-feature-settings:"palt";
}
img{ max-width:100%; height:auto; display:block; }
.num{ font-family:var(--num); }
a{ color:var(--brand); }
a:focus-visible, button:focus-visible{ outline:3px solid var(--brand); outline-offset:3px; border-radius:4px; }
.wrap{ width:min(100% - 40px, var(--wrap)); margin-inline:auto; }
p{ margin:0 0 1.1em; } p:last-child{ margin-bottom:0; }

/* ---------- プレースホルダー ---------- */
.ph{
  display:grid; place-items:center; text-align:center;
  border:2px dashed #b9c4cf; background:rgba(255,255,255,.66);
  color:#5d6b78; font-size:12px; font-weight:700; line-height:1.6; padding:10px;
}
.ph--sq{ aspect-ratio:1/1; border-radius:50%; }
.ph--wide{ aspect-ratio:16/7; }
.ph--line{ aspect-ratio:5/2; border-style:dashed; background:none; }

/* ---------- デモ告知 ---------- */
.demobar{
  background:var(--brand-soft); color:#4a5763; text-align:center;
  font-size:14px; line-height:1.7; padding:10px 0;
}
.demobar b{ color:var(--brand-dark); }

/* ---------- ヘッダー（上下2段） ---------- */
.head{ position:sticky; top:0; z-index:50; background:var(--white); }
.head__top{ display:flex; align-items:center; justify-content:space-between; gap:24px; padding:16px 0; }
.logo{ display:flex; align-items:center; text-decoration:none; color:var(--ink); }
.logo__name{ font-size:24px; font-weight:700; letter-spacing:.06em; }
.head__right{ display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:16px; row-gap:10px; }
.head__lead{ text-align:right; line-height:1.4; flex:none; }
.head__leadt{ display:block; font-size:14px; font-weight:700; color:var(--brand); }
.head__hours{ font-size:14px; color:var(--ink-sub); margin-top:2px; }
.head__hours span{
  color:var(--brand);
  margin-right:8px; font-size:12px;
}
.hbtn{
  display:inline-flex; align-items:center; gap:9px; text-decoration:none;
  background:var(--brand); color:#fff; font-size:16px; font-weight:700;
  padding:12px 20px; white-space:nowrap; transition:background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.hbtn:hover{ background:var(--brand-dark); }
/* 2026-11-01 「LINE のボタンが主役になるよう色味を抑えて」は、色を残して明るさで控えめにした案 A・B・C から B に決まった。
   8/26 の4色の色相のまま、OKLCH で明るさ +0.13・彩度 ×0.80（灰色に寄せない）。ホバーは明るさ -0.05。
   8/26 の色＝#7c3aa2・#b03095・#c93075・#c9624a（ホバー #6d338f・#9c2b84・#b52c69・#c05239） */
/* 2026-10-31 ゆみさんの「色味を抑えて」で白地 → 彩度 -42% と変えたが、「色味前に戻してや」で 8/26 の色に戻した */
/* 2026-08-26 Instagramのグラデーション。公式そのままは浮き、彩度を45%落とすとくすんだ。
   紫〜マゼンタは彩度をほぼ保ち（-12〜15%）、いちばん騒がしいオレンジの端だけ彩度-40%・明度-7ptにして
   テラコッタ寄りに落とした。紫→マゼンタ→暖色の並びは公式のまま */
.hbtn--insta{ background:linear-gradient(135deg,#9e6bbf 0%,#d06bb6 38%,#e86f9c 62%,#e9937e 100%); }
.hbtn--insta:hover{ background:linear-gradient(135deg,#8f5caf 0%,#bf5ca6 38%,#d75f8d 62%,#d8846f 100%); }
.hbtn .ico{ width:19px; height:19px; }

.gnav{ background:var(--brand); }
.gnav__in{ display:flex; align-items:center; justify-content:space-between; gap:20px; }
.gnav ul{ display:flex; align-items:center; list-style:none; margin:0; padding:0; }
.gnav li + li{ border-left:1px solid rgba(255,255,255,.4); }
.gnav a{
  display:block; color:#fff; text-decoration:none; font-size:16px; font-weight:700;
  padding:15px 26px; transition:opacity .2s;
}
.gnav a:hover{ opacity:.72; }
.gnav__sns{ display:flex; gap:10px; }
.gnav__sns a{ padding:0; display:grid; place-items:center; width:26px; height:26px; }
.gnav__sns .ico{ width:24px; height:24px; }

/* ---------- ヒーロー ---------- */
.hero{ position:relative; height:min(78vh, 660px); overflow:hidden; background:#33465a; }
.hero__bg{ position:absolute; inset:0; }
.hero__bg img{
  width:100%; height:100%; object-fit:cover; object-position:center 45%;
  transform:scale(1.04); animation:heroZoom 22s linear forwards;
}
@keyframes heroZoom{ to{ transform:scale(1.14); } }
/* 2026-10-30 ゆみさん「トップページの写真をもう少し明るく」で .58/.26/.06 → .42/.16/.02 に薄くした（スマホも同じ日に）。
   1280px で背景の明るさ（相対輝度の平均）0.220 → 0.271、白い文字との比（影なし）見出し 3.9 → 3.2・説明文 4.9 → 3.9 */
.hero::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(16,28,42,.42) 0%, rgba(16,28,42,.16) 55%, rgba(16,28,42,.02) 100%);
}
.hero__in{
  position:relative; z-index:2; height:100%;
  display:flex; flex-direction:column; justify-content:center;
  width:min(100% - 40px, var(--wrap)); margin-inline:auto; color:#fff;
}
.hero__en{ font-size:20px; font-weight:500; letter-spacing:.1em; margin:0 0 18px; color:#fff; }
.hero__title{
  font-size:clamp(34px,5vw,62px); font-weight:500; line-height:1.5;
  letter-spacing:.06em; margin:0 0 34px; color:#fff;
  text-shadow:0 2px 24px rgba(0,0,0,.35);
}
.hero__lead{ max-width:640px; font-size:16px; line-height:1.7; margin:0 0 30px; color:#f2f5f8;
  text-shadow:0 1px 14px rgba(10,20,32,.55); }
.hero__more{ display:inline-flex; align-items:center; gap:16px; color:#fff; text-decoration:none; font-size:16px; font-weight:700; }
.circ{
  width:46px; height:46px; border-radius:50%; border:1px solid currentColor;
  display:grid; place-items:center; flex:none; transition:background .25s var(--ease), color .25s var(--ease);
}
.circ .ico{ width:20px; height:20px; }
.hero__more:hover .circ{ background:#fff; color:var(--brand); }

/* 右下に浮くカード（お手本と同じ位置） */
.hero__cards{ position:absolute; right:0; bottom:26px; z-index:3; display:grid; gap:12px; }
.hero__card{
  display:flex; align-items:center; gap:16px; background:var(--white);
  border-radius:60px 0 0 60px; padding:10px 26px 10px 10px; text-decoration:none; color:var(--brand);
  min-width:330px;
}
.hero__card .ph{ width:104px; height:70px; flex:none; font-size:12px; padding:4px; }
.hero__card b{ font-size:16px; font-weight:700; line-height:1.5; }
.hero__card .circ{ width:34px; height:34px; background:var(--brand); color:#fff; border:0; margin-left:auto; }
.hero__card .circ .ico{ width:16px; height:16px; }
@media (max-width:900px){ .hero__cards{ display:none; } }

/* ---------- 共通の見出し ---------- */
.shead{ text-align:center; margin:0 0 52px; }
.shead__en{
  display:inline-block; font-size:20px; font-weight:500; letter-spacing:.14em;
  color:var(--brand-dark); border-bottom:1px solid var(--brand); padding:0 10px 6px; margin:0 0 14px;
}
.shead__jp{ font-size:clamp(28px,3.4vw,40px); font-weight:700; letter-spacing:.16em; color:var(--brand); margin:0; line-height:1.4; }
.shead--left{ text-align:left; }
.shead--left .shead__en{ padding-left:0; }

.section{ padding:96px 0; }

/* ---------- 事業案内（えんじの丸3つ） ---------- */
.svc{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap); }
.svc__item{ text-decoration:none; color:inherit; display:block; }
/* 円は大きくなりすぎないように上限をつける（お手本と同じくらい） */
.svc__disc{
  aspect-ratio:1/1; max-width:330px; margin-inline:auto; border-radius:50%; background:var(--brand); color:#fff;
  display:grid; place-items:center; align-content:center; gap:14px; text-align:center;
  transition:background .3s var(--ease);
}
.svc__item:hover .svc__disc{ background:var(--brand-dark); }
.svc__disc .ph{ width:104px; height:104px; border-color:rgba(255,255,255,.7); background:rgba(255,255,255,.10); color:#fff; font-size:12px; }
.svc__ico{ width:104px; height:104px; }
.svc__jp{ font-size:24px; font-weight:700; letter-spacing:.14em; }
.svc__en{ font-size:14px; letter-spacing:.16em; }
.svc__note{ margin:22px 4px 0; font-size:16px; color:var(--brand); line-height:1.7; }
@media (max-width:820px){ .svc{ grid-template-columns:1fr; gap:36px; } .svc__disc{ max-width:300px; margin-inline:auto; } }

/* ---------- ベージュの帯（左右に写真がのぞく） ---------- */
.band{ display:grid; grid-template-columns:1fr minmax(0,760px) 1fr; align-items:stretch; }
.band__side{ position:relative; overflow:hidden; }
/* 写真を絶対配置にして、帯の高さを中央の文章だけで決める
     （そうしないと写真の高さに引っぱられ、中央の下に大きな余白ができる）
     グレースケールはかけない。写真から色が抜けると全体が白黒に見えるため */
.band__side img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  filter:saturate(1.02) brightness(1.04); }
.band__mid{ background:var(--brand-pale); text-align:center; padding:64px 32px; }
.band__mid h2{ font-size:clamp(28px,3.4vw,40px); font-weight:700; letter-spacing:.1em; color:var(--ink); margin:0 0 20px; line-height:1.6; }
.band__mid p{ font-size:16px; color:var(--ink-sub); margin:0 0 30px; }
.band__btns{ display:flex; gap:18px; justify-content:center; flex-wrap:wrap; }
.obtn{
  display:inline-flex; align-items:center; gap:14px; text-decoration:none;
  background:var(--white); color:var(--brand); border:1px solid var(--brand);
  border-radius:999px; padding:14px 22px 14px 30px; font-size:16px; font-weight:700;
  transition:background .25s var(--ease), color .25s var(--ease);
}
.obtn .circ{ width:30px; height:30px; background:var(--brand); color:#fff; border:0; }
.obtn .circ .ico{ width:15px; height:15px; }
.obtn:hover{ background:var(--brand); color:#fff; }
.obtn:hover .circ{ background:#fff; color:var(--brand); }
@media (max-width:900px){ .band{ grid-template-columns:1fr; } .band__side{ height:230px; } }

/* ---------- 施工事例 ---------- */
.results{ background:var(--white); padding:96px 0; }
.results__in{ display:grid; grid-template-columns:300px 1fr; gap:48px; align-items:start; width:min(100% - 40px, 1400px); margin-inline:auto; }
.results__lead{ font-size:16px; margin:0 0 30px; }
.results__ill{ margin-top:44px; }
.rslider{ position:relative; overflow:hidden; }
.rslider__track{ display:flex; gap:24px; overflow-x:auto; scroll-snap-type:x proximity; scrollbar-width:none; padding-bottom:6px; }
.rslider__track::-webkit-scrollbar{ display:none; }
.rcard{ flex:0 0 min(88vw, 670px); scroll-snap-align:start; }
.rcard__frame{ display:block; overflow:hidden; }
.rcard img{ width:100%; aspect-ratio:16/10; object-fit:cover; transition:opacity .3s var(--ease); }
.rcard:hover img{ opacity:.78; }
.rcard__cap{ display:flex; align-items:center; gap:16px; margin-top:16px; flex-wrap:wrap; }
.tag{ border:1px solid var(--brand); color:var(--brand); font-size:14px; font-weight:700; padding:3px 12px; }
.rcard__t{ font-size:16px; font-weight:700; margin:0; }
.dots{ display:flex; gap:10px; margin-top:26px; }
.dots button{ width:12px; height:12px; border-radius:50%; border:0; padding:0; background:#c8d4de; cursor:pointer; transition:background .2s; }
.dots button[aria-current="true"]{ background:var(--brand); }
@media (max-width:1000px){ .results__in{ grid-template-columns:1fr; gap:28px; } .results__ill{ display:none; } }

/* ---------- 地域とともに ---------- */
.history{ display:grid; grid-template-columns:1fr 1fr; align-items:stretch; }
/* 帯と同じ考え方。写真を絶対配置にして、高さは右側の文章だけで決める */
.history__photo{ position:relative; overflow:hidden; min-height:420px; }
/* 作業風景の写真に差し替えたので切り取り位置を下げた（2026-08-22）。
   上寄せのままだと上半分が天井だけになる */
.history__photo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 55%; }
.history__body{ background:var(--brand-pale); position:relative; }
/* 見出しは下寄せ、線画は右上。ぶつからないように高さを確保する */
/* 2026-10-26 見出しが3行（個人事業として／歩み始めて、／まもなく20年。）になり、320px では右上の線画に重なったので 400px に */
.history__top{ padding:40px 56px 40px; position:relative; min-height:400px; display:flex; align-items:flex-end; }
.history__ill{ position:absolute; right:34px; top:34px; width:236px; opacity:.95; }
.history__top h2{ font-size:clamp(28px,3.4vw,40px); font-weight:500; letter-spacing:.1em; color:var(--brand); margin:0; line-height:1.5; }
/* 2026-10-26「まもなく20年。」（1字長くなった）が 901〜1250px で2行に割れたので 5.4vw → 4.6vw */
.history__top .big{ font-size:clamp(40px,4.6vw,66px); font-weight:700; }
/* 2026-10-31 ゆみさん「濃い青のベタ塗りに長文が載るため、少し圧迫感がある。行間や余白の取り方、文章の区切り方で軽く」
   → 行間 1.7 → 2・段落の間 1.1em → 1.6em・上下の余白を広げた。文は一字も変えず、2段落目（経歴）を2つに分けた */
.history__note{ background:var(--brand); color:#fff; padding:60px 60px 64px; }
.history__note p{ font-size:16px; line-height:2; margin-bottom:1.6em; }
/* 代表あいさつの題（2026-10-12 かめさんの原稿の「ごあいさつ」）。本文と同じ白・左基準で、飾りは付けない */
.history__ttl{ font-size:20px; font-weight:700; letter-spacing:.12em; margin:0 0 18px; line-height:1.6; }
.history__facts{ display:flex; gap:14px; flex-wrap:wrap; margin-top:26px; }
.history__facts span{ border:1px solid rgba(255,255,255,.6); padding:9px 18px; font-size:14px; }
@media (max-width:900px){
  .history{ grid-template-columns:1fr; }
  /* 顔が切れないように高さを確保し、切り取り位置を上へ */
  .history__photo{ min-height:340px; }
  /* 2026-10-30 リビングの横長の写真に替えたので、600〜900px で天井の照明が切れないように 50% → 30% */
  .history__photo img{ object-position:center 30%; }
  .history__top,.history__note{ padding-left:24px; padding-right:24px; }
  .history__top{ min-height:0; padding-top:36px; }
  .history__ill{ display:none; }
}

/* ---------- お知らせ ---------- */
.news{ position:relative; background:var(--white); padding:96px 0; overflow:hidden; }
.news::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:34%;
  background:var(--brand-soft); clip-path:polygon(0 0, 100% 0, 76% 100%, 0 100%);
}
.news__in{ position:relative; z-index:1; display:grid; grid-template-columns:300px 1fr; gap:56px; align-items:start; }
.news__en{ font-size:clamp(28px,3.4vw,40px); font-weight:500; color:var(--brand); line-height:1; letter-spacing:.02em; margin:0; }
/* 2026-10-31 英字の「News」を外したので、「お知らせ」を見出しの大きさに（入口のカードの見出しと同じ） */
.news__jp{ font-size:clamp(24px,2.6vw,30px); font-weight:700; color:var(--brand); letter-spacing:.16em; margin:0 0 30px; line-height:1.4; }
.news__list{ list-style:none; margin:0; padding:0; }
.news__list li{ display:flex; align-items:center; gap:20px; padding:20px 0; border-bottom:1px solid var(--rule); flex-wrap:wrap; }
.news__date{ font-size:16px; color:var(--ink-sub); letter-spacing:.04em; }
.news__t{ font-size:16px; font-weight:700; }
@media (max-width:900px){ .news__in{ grid-template-columns:1fr; gap:26px; } .news::before{ width:100%; height:210px; bottom:auto; clip-path:polygon(0 0,100% 0,100% 74%,0 100%); } }

/* ---------- お問い合わせ帯 ---------- */
.cband{ background:var(--white); padding:96px 0; }
.cband__lead{ max-width:820px; margin:0 auto 34px; text-align:center; font-size:16px; }
.cband__h3{ max-width:820px; margin:56px auto 12px; text-align:center;
  font-size:20px; font-weight:700; color:var(--brand); }
.cband__h3 + .cband__lead{ margin-bottom:0; }
.cband .hbtn{ font-size:18px; padding:20px 34px; }

/* 入力欄（メールを作るためのフォーム。送信先はお客様のメールアプリ） */
button.hbtn{ border:0; cursor:pointer; font-family:inherit; }
.mform{ width:min(100%, 620px); margin:40px auto 0; }
.mform__row{ margin-bottom:18px; }
.mform__lbl{ display:block; font-size:14px; font-weight:700; color:var(--brand); line-height:1.6; margin-bottom:6px; }
.mform__req{ font-size:12px; font-weight:700; color:var(--accent); letter-spacing:.06em; margin-left:8px; }
.mform__in{
  width:100%; font-family:inherit; font-weight:500; font-size:16px; line-height:1.7; color:var(--ink);
  background:var(--brand-soft); border:1px solid var(--rule); border-radius:4px; padding:13px 15px;
}
.mform__in::placeholder{ color:#93a0ab; }
.mform__in:focus-visible{ outline:3px solid var(--brand); outline-offset:2px; }
.mform__area{ resize:vertical; min-height:140px; }
.mform__act{ text-align:center; margin-top:26px; }
.mform__note{ font-size:14px; line-height:1.7; color:var(--ink-sub); margin:14px 0 0; text-align:center; }
.mform__note b{ font-weight:700; color:var(--ink); }
@media (max-width:640px){ .mform .hbtn{ width:100%; justify-content:center; } }
.mform .hbtn[disabled]{ opacity:.55; cursor:default; }

/* ---------- フッター ---------- */
.foot{ background:var(--brand); color:#fff; padding:56px 0 26px; }
.foot a{ color:#fff; text-decoration:none; }
.foot a:hover{ text-decoration:underline; }
.foot__in{ display:grid; grid-template-columns:1.2fr 1fr 1fr 1fr; gap:36px; }
.foot__co .logo{ color:#fff; }
.foot__addr{ font-size:16px; line-height:1.7; margin:20px 0 0; color:#fff; }
/* 会社概要の電話番号に添える断り。
   住所の欄（約290px）の中に置くと2行に折り返すので、4列いっぱいに広げて1行にしている。
   🔴 そのままだと「行の間隔36px + 自分の余白20px」で住所から56px空いて間延びしたので、
   margin-top を負にして行の間隔を打ち消し、住所から16pxにそろえた。
   🔴 列が2列以下になる幅では、DOM上いちばん最後にあるとリンクの列を挟んで住所から離れる
   （実測820pxで240px空いた）。order で住所の真下に引き上げる。
   スマホは幅が足りないので折り返しを許す */
.foot__memo{ grid-column:1 / -1; font-size:14px; line-height:1.8; margin:-20px 0 0;
  color:#fff; white-space:nowrap; }
@media (max-width:760px){ .foot__memo{ white-space:normal; } }
@media (max-width:900px){
  .foot__memo{ order:1; }
  .foot__in > div:not(.foot__co){ order:2; }
}
.foot h3{ font-size:14px; font-weight:700; letter-spacing:.16em; margin:0 0 16px; padding-bottom:10px; border-bottom:1px solid rgba(255,255,255,.35); }
.foot ul{ list-style:none; margin:0; padding:0; font-size:16px; }
.foot li{ margin-bottom:11px; }
.foot__copy{ margin-top:44px; padding-top:20px; border-top:1px solid rgba(255,255,255,.32); font-size:14px; color:#fff; }
@media (max-width:900px){ .foot__in{ grid-template-columns:1fr 1fr; gap:28px; } }
@media (max-width:560px){ .foot__in{ grid-template-columns:1fr; } }

/* ---------- ページ上部へ ---------- */
.totop{ position:fixed; right:22px; bottom:22px; z-index:40; width:88px; height:88px; text-decoration:none; color:var(--brand-dark);
  opacity:0; pointer-events:none; visibility:hidden; transition:opacity .3s var(--ease), visibility .3s; }
.totop.is-on{ opacity:1; pointer-events:auto; visibility:visible; }
.totop svg{ width:100%; height:100%; }
.totop .arrow{ position:absolute; inset:0; display:grid; place-items:center; font-size:24px; }
@media (max-width:640px){ .totop{ width:64px; height:64px; right:12px; bottom:82px; } }

/* ---------- スマホの固定バー ---------- */
.mbar{ position:fixed; left:0; right:0; bottom:0; z-index:45; display:none; gap:1px; background:rgba(255,255,255,.9); }
.mbar a{ flex:1; display:flex; align-items:center; justify-content:center; gap:9px; padding:16px 6px calc(16px + env(safe-area-inset-bottom));
  text-decoration:none; color:#fff; background:var(--brand); font-size:16px; font-weight:700; }
.mbar a.mbar__line{ flex:1.5; background:#06c755; }
.mbar .ico{ width:19px; height:19px; }
/* 2026-11-01 公開でフッター末尾のデモの注記を外したら、許可番号の行がスマホの「上へ戻る」（下から 82px・高さ 64px）に隠れた。
   下の余白を 96px → 160px にして、一番下までスクロールしたとき行がボタンより上に来るようにした */
@media (max-width:640px){ .mbar{ display:flex; } .foot{ padding-bottom:160px; } }

/* ---------- 出現アニメーション（保険つき） ---------- */
.ico{ fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.reveal-active [data-reveal]{ opacity:0; }
.reveal-active [data-reveal].is-in{ opacity:1; transition:opacity .8s var(--ease); }
.reveal-active [data-reveal][data-delay="1"].is-in{ transition-delay:.12s; }
.reveal-active [data-reveal][data-delay="2"].is-in{ transition-delay:.24s; }
.reveal-active [data-reveal][data-delay="3"].is-in{ transition-delay:.36s; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .hero__bg img{ animation:none; transform:none; }
  .reveal-active [data-reveal]{ opacity:1; transform:none; }
  .rcard:hover img{ opacity:1; }
  .totop{ transition:none; }
}

section[id]{ scroll-margin-top:130px; }

@media (max-width:1000px){
  .gnav{ display:none; }
  /* gnav が消える幅では、案内文を1行目・ボタンを2行目にそろえる（ボタンの折り返し防止） */
  .head__lead{ flex:1 0 100%; }
  .head__top{ padding:12px 0; }
  section[id]{ scroll-margin-top:80px; }
}
@media (max-width:760px){
  .section,.results,.news,.cband,.ledbnr{ padding:60px 0; }
  .head__right .hbtn span{ display:none; }
  .head__right .hbtn{ padding:12px 15px; }
  /* スマホは屋号とボタンだけ。問い合わせは下の固定バーが担う */
  .head__lead{ display:none; }
  .head__top{ gap:12px; padding:11px 0; }
  .logo__name{ font-size:20px; white-space:nowrap; letter-spacing:.04em; }
  .hero{ height:min(72vh, 520px); }
  .hero__title{ font-size:24px; letter-spacing:.01em; }
  .hero__en{ font-size:16px; }
  .hero__lead{ font-size:16px; margin-bottom:22px; }
  .band__mid{ padding:44px 22px; }
  .history__top{ padding-top:40px; }
}

/* ---------- スマホのヒーロー（2026-08-21） ----------
   PCは「左に文字・右に写真」なので横方向の覆いでよかったが、
   スマホは写真いっぱいに文字が乗るので、縦方向の覆いに差し替える。
   2026-10-26 ゆみさん「暗いので明るくしてください」で .42/.66/.74 → .18/.34/.44 に薄くした。
   背景の明るさ（相対輝度の平均）0.086 → 0.205 ＝ PC のヒーロー（0.259）に近づけた。
   白い文字と背景の比は、文字の影を除いて 見出し 3.6・説明文 4.3（影でさらに読みやすくなる）
   2026-10-30 ゆみさん「トップページの写真をもう少し明るく」（2回目）で .18/.34/.44 → .06/.18/.26 に。
   390px で背景の明るさ 0.205 → 0.295、白い文字との比（影なし）見出し 2.7・説明文 3.1。ここから先は文字の影で読ませる */
@media (max-width:760px){
  .hero::after{
    background:linear-gradient(180deg,
      rgba(16,28,42,.06) 0%, rgba(16,28,42,.18) 48%, rgba(16,28,42,.26) 100%);
  }
  .hero__en{ text-shadow:0 1px 12px rgba(8,16,26,.6); }
  .hero__title{ text-shadow:0 2px 16px rgba(8,16,26,.6); }
  .hero__more{ text-shadow:0 1px 10px rgba(8,16,26,.6); }
}

/* 代表の署名。宣材写真は小さく丸く添えるだけにする
   （2026-08-21 かめさん指摘「B案は宣材写真が大きく、少し恥ずかしい」） */
.sign{ display:flex; align-items:center; gap:20px; margin-top:26px; }
.sign img{ width:140px; height:140px; border-radius:50%; object-fit:cover; object-position:center 22%; flex:none; }
.sign span{ font-size:16px; }
/* 署名は「北野電気」と「代表　北野 真一」の間でだけ折る（360px 前後で名前の「一」だけが次の行に落ちたため・2026-10-12） */
.sign span span{ display:inline-block; white-space:nowrap; }
/* 見出しを、切ってよい位置でだけ折る（2026-10-26。語の途中で1〜2文字だけ次の行に落ちるのを防ぐ） */
.nb{ display:inline-block; }
@media (max-width:900px){
  .sign img{ width:110px; height:110px; }
}

/* ---------- 経済産業省のLED切り替えバナー（2026-08-23 追加） ----------
   8/22 の打ち合わせでゆみさんから出た提案。お手本の栗村電気工事と同じく、
   経産省のチラシ上部をそのまま置いて、特設サイトへリンクするだけにしてある。
   画像は経産省のチラシ（PDF）から切り出したもの。利用条件は PDL1.0（出典の明記が必要）。 */
.ledbnr{ padding:96px 0; background:var(--white); }
.ledbnr__link{
  display:block; max-width:640px; margin-inline:auto;
  text-decoration:none; color:var(--ink); text-align:center;
}
.ledbnr__link img{ width:100%; height:auto; }
/* キャプションは栗村電気と同じ「1行・14px・標準の太さ・グレー」にそろえた（2026-08-30） */
.ledbnr__cap{
  display:block; margin-top:14px; font-size:14px; font-weight:400;
  line-height:1.8; color:var(--ink-sub);
}
.ledbnr__link:hover .ledbnr__cap{ opacity:.72; }
@media (max-width:640px){ .ledbnr{ padding:60px 0; } }

/* ==========================================================
   B2案の追加分（2026-08-24）
   入口を「法人のお客様」「個人のお客様」に分ける。
   お手本は interior-r.com。ヘッダーに両方を並べ、
   トップで大きく2つに分岐させたうえで、それぞれの下層ページへ渡す。
   面は既存の白と brand-soft だけ。色は増やしていない。
   ========================================================== */

/* ---------- ご依頼の入口 ---------- */
.gate__lead{
  max-width:820px; margin:-28px auto 44px; text-align:center;
  font-size:16px; color:var(--ink-sub);
}
.gates{ display:grid; grid-template-columns:1fr 1fr; gap:var(--gap); }
.gate{
  display:block; text-decoration:none; color:var(--ink);
  background:var(--white); border:1px solid var(--rule);
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.gate:hover{ border-color:var(--brand); }
.gate__photo{ display:block; overflow:hidden; }
.gate__photo img{
  width:100%; aspect-ratio:16/9; object-fit:cover; object-position:center 55%;
  transition:transform .5s var(--ease);
}
.gate:hover .gate__photo img{ transform:scale(1.05); }
@media (prefers-reduced-motion: reduce){
  .gate__photo img{ transition:none; }
  .gate:hover .gate__photo img{ transform:none; }
}
.gate__body{ display:block; padding:30px 30px 32px; }
.gate__en{ display:block; font-size:14px; font-weight:500; letter-spacing:.16em; color:var(--brand); }
.gate__jp{ display:block; font-size:clamp(24px,2.6vw,30px); font-weight:700; letter-spacing:.1em; color:var(--brand); margin:6px 0 10px; }
.gate__sub{ display:block; font-size:16px; color:var(--ink-sub); }
.gate__list{ display:block; margin-top:20px; border-top:1px solid var(--rule); }
.gate__list span{
  display:block; padding:12px 0; border-bottom:1px solid var(--rule-fine);
  font-size:16px; line-height:1.7;
}
.gate__go{
  display:inline-flex; align-items:center; gap:14px; margin-top:24px;
  font-size:16px; font-weight:700; color:var(--brand);
}
.gate__go .circ{ width:38px; height:38px; background:var(--brand); color:#fff; border:0; }
.gate__go .circ .ico{ width:18px; height:18px; }
.gate:hover .gate__go .circ{ background:var(--brand-dark); }
@media (max-width:820px){
  .gates{ grid-template-columns:1fr; gap:28px; }
  .gate__body{ padding:24px 22px 26px; }
  .gate__lead{ margin-top:-16px; }
}

/* ---------- 下層ページの見出し（法人／個人） ---------- */
.phead{ position:relative; background:var(--brand-pale); padding:56px 0 58px; overflow:hidden; }
.phead__in{ position:relative; z-index:1; text-align:center; }
.phead__en{ display:block; font-size:14px; font-weight:500; letter-spacing:.18em; color:var(--brand-dark); }
.phead h1{
  font-size:clamp(27px,3.4vw,40px); font-weight:700; letter-spacing:.14em;
  color:var(--brand); margin:10px 0 0; line-height:1.4;
}
.phead__lead{ max-width:760px; margin:22px auto 0; font-size:16px; color:var(--ink); text-align:left; }
.crumb{ font-size:14px; color:var(--ink-sub); padding:16px 0 0; }
.crumb a{ color:var(--ink-sub); }
.crumb b{ color:var(--brand-dark); font-weight:700; }

/* ---------- 下層ページの「こんなご依頼」 ---------- */
.needs{ display:grid; grid-template-columns:1fr 1fr; gap:0 var(--gap); }
.needs__item{ padding:24px 0; border-top:1px solid var(--rule); }
.needs__t{ font-size:20px; font-weight:700; color:var(--brand); margin:0 0 8px; line-height:1.6; }
.needs__item p{ font-size:16px; color:var(--ink-sub); margin:0; }
@media (max-width:820px){ .needs{ grid-template-columns:1fr; } }

/* ---------- 下層ページの段取り（番号つき） ---------- */
.steps{ counter-reset:st; max-width:900px; margin-inline:auto; }
.steps__item{ display:grid; grid-template-columns:64px 1fr; gap:22px; padding:26px 0; border-bottom:1px solid var(--rule); }
.steps__no{
  counter-increment:st; width:64px; height:64px; border-radius:50%;
  background:var(--brand-pale); color:var(--brand);
  display:grid; place-items:center; font-size:24px; font-weight:700;
}
.steps__no::before{ content:counter(st); }
.steps__t{ font-size:20px; font-weight:700; color:var(--ink); margin:6px 0 8px; }
.steps__item p{ font-size:16px; color:var(--ink-sub); margin:0; }

/* ---------- 現在地を示すナビ ---------- */
.gnav a[aria-current="page"]{ background:var(--brand-dark); }

/* ---------- 下層ページの写真の列 ---------- */
.shots{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap); margin-top:46px; }
.shots figure{ margin:0; }
.shots img{ width:100%; aspect-ratio:4/3; object-fit:cover; }
.shots .ph{ aspect-ratio:4/3; }
.shots figcaption{ margin-top:12px; font-size:14px; color:var(--ink-sub); line-height:1.7; }
@media (max-width:820px){ .shots{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .shots{ grid-template-columns:1fr; } }

/* ヒーローの入口タイル。写真・イラストとも同じ寸法で切り出す */
.hero__card img{ width:104px; height:70px; flex:none; object-fit:cover; }

/* ---------- LINEの導線（2026-08-25 追加） ----------
   LINEのロゴは商標なので使わない。公式の友だち追加QRと、
   サービス名の文字だけで組む（rules/third_party_logos.md）。 */
.lineblock{
  display:grid; grid-template-columns:1fr auto; gap:var(--gap);
  align-items:center; max-width:820px; margin:0 auto 34px;
  background:var(--white); padding:26px 28px; border:1px solid var(--rule);
}
.lineblock__t{ margin:0 0 8px; font-size:20px; font-weight:700; color:var(--brand); }
.lineblock__note{ margin:0 0 18px; font-size:16px; color:var(--ink-sub); }
.lineblock__btn{
  display:inline-flex; align-items:center; gap:10px; text-decoration:none;
  background:#06c755; color:#fff; padding:13px 24px; font-size:16px; font-weight:700;
  transition:background .25s var(--ease);
}
.lineblock__btn:hover{ background:#05b34c; }
.lineblock__btn .ico{ width:20px; height:20px; }
.lineblock__qr{ margin:0; text-align:center; }
.lineblock__qr img{ width:132px; height:132px; }
/* お問い合わせの先頭に置く主役版。枠をブランド色で締め、QRを一回り大きくする */
.lineblock--lead{ border-color:var(--rule); }
.lineblock--lead .lineblock__t{ font-size:24px; }
.lineblock--lead .lineblock__qr img{ width:160px; height:160px; }
.lineblock__qr figcaption{ margin-top:8px; font-size:12px; line-height:1.6; color:var(--ink-sub); }
/* 押した先のサービスが分かるように、LINEは公式の緑、Instagramは公式のグラデーションを使う
   （2026-08-26 の指示「LINEっぽい色・instaっぽい色にして、押したら開きそうなアフォーダンスを」）
   ロゴマークは貼らない・描き起こさない方針は継続（rules/third_party_logos.md） */
.hbtn--line{ background:#06c755; }
.hbtn--line:hover{ background:#05b34c; }
@media (max-width:640px){
  .lineblock{ grid-template-columns:1fr; text-align:center; padding:22px 20px; }
  .lineblock__qr{ display:none; }
}

/* ---------- LEDバナーの上下の余白（B2案だけの事情・2026-08-30） ----------
   B2案では LEDバナーの前が「法人／個人の入口」（.section・上下96px）なので、
   96px + 96px で余白が二重になり、画像の上に白い面だけの帯が96px分できていた
   （指摘「おうちの蛍光灯の上の白い隙間が目立つ」）。
   前が節のときだけバナー側を詰めて、白い面が画像を囲む形にする。
   A案・B案・kojin.html はバナーの前がヒーロー／ページ見出し（余白なし・別クラス）なので
   このセレクタに当たらず、96px のまま。 */
.section + .ledbnr{ padding:48px 0; }


/* ---- ロゴ（2026-09-09 追加）----
   ヘッダーは「マークだけ」を使う。ロゴ全体（縦組み）を48pxに縮めると
   中の「北野電気」が8.2pxになって読めないため。フッターは高さに余裕があるので全体を置く。
   フッターの地色は --brand なので、濃紺のままだとコントラスト比3.70で沈む。白1色版を使う。 */
.logo{ gap:12px; }
.logo__mark{ width:auto; height:48px; display:block; }
.logo--foot{ display:block; }
.logo__full{ width:auto; height:104px; display:block; }
@media (max-width:820px){
  .logo{ gap:9px; }
  .logo__mark{ height:36px; }
  .logo__full{ height:92px; }
}

/* ---- お写真・図面の欄（2026-09-24 追加）----
   ゆみさん（9/24）「写真はどこから添付する仕様でしょうか」「画像添付用の枠を別に設けていただけると、より分かりやすい」。
   このフォームは mailto（2026-08-22 の打ち合わせで決めた形）なので、写真はページでは受け取れず、
   ボタンのあとに開くメールで添付してもらう。その「どこで」を、入力欄と並ぶ1つの欄として見せる。
   - 入力欄（淡い青の地）と取り違えないよう、地は白・枠は細い罫線。点線にしない（写真を落とす場所に見える）
   - アイコンは既存のカメラ（#i-cam）を流用し、新しく描かない
   - スマホで「マ／ーク」のように行頭へ長音が来たので line-break:strict */
p.mform__lbl{ margin:0 0 6px; }
.mform__photo{ display:flex; align-items:flex-start; gap:14px;
  background:var(--white); border:1px solid var(--rule); border-radius:4px; padding:14px 16px; }
.mform__photo .ico{ flex:none; width:28px; height:28px; color:var(--brand); margin-top:1px; }
.mform__photo p{ margin:0; font-size:16px; line-height:1.7; color:var(--ink); line-break:strict; }

/* 最新の施工事例（法人ページ・2026-10-01 クリニック開院） */
.case{ background:var(--brand-soft); }
.case__head{ max-width:760px; }
.case__name{ font-size:clamp(22px,2.6vw,28px); font-weight:700; line-height:1.5; margin:0; word-break:keep-all; }
.case__meta{ display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:12px 0 0; color:var(--ink-sub); font-size:15px; }
.case__text{ margin:20px 0 0; line-height:1.9; }
.case__shots{ grid-template-columns:repeat(2,1fr); }
@media (max-width:520px){ .case__shots{ grid-template-columns:1fr; } }
.rcard__date{ display:block; margin-top:4px; font-size:13px; font-weight:400; color:var(--ink-sub); }

/* ---------- 2026-10-31 ゆみさんの修正のお願い（7点）のうち、ここで直したもの ---------- */
/* 見出しのコントラスト：「淡い水色の背景の上に載った青い大きな見出しが少し薄い。読みやすくなるようコントラストを強めて」
   → 大きな見出しだけ --brand → --brand-dark。淡い面（--brand-pale）との比 3.7 → 5.3、白地 4.6 → 6.6。
   ボタン・帯・タグ・小さい文字の青はそのまま */
.shead__jp, .phead h1, .history__top h2, .gate__jp, .news__jp{ color:var(--brand-dark); }
/* 電話番号：スマホで押すとそのまま発信できるリンクに（フッター）。リンクと分かるよう下線を引く */
.foot__addr a{ text-decoration:underline; text-underline-offset:3px; }
