@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{
  border:1px solid var(--brand); color:var(--brand); border-radius:999px;
  padding:1px 9px; 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-08-26 Instagramのグラデーション。公式そのままは浮き、彩度を45%落とすとくすんだ。
   紫〜マゼンタは彩度をほぼ保ち（-12〜15%）、いちばん騒がしいオレンジの端だけ彩度-40%・明度-7ptにして
   テラコッタ寄りに落とした。紫→マゼンタ→暖色の並びは公式のまま */
.hbtn--insta{ background:linear-gradient(135deg,#7c3aa2 0%,#b03095 38%,#c93075 62%,#c9624a 100%); }
.hbtn--insta:hover{ background:linear-gradient(135deg,#6d338f 0%,#9c2b84 38%,#b52c69 62%,#c05239 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); } }
.hero::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(16,28,42,.58) 0%, rgba(16,28,42,.26) 55%, rgba(16,28,42,.06) 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);
  box-shadow:0 6px 22px rgba(20,40,60,.15); 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); 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; }
/* 見出しは下寄せ、線画は右上。ぶつからないように高さを確保する */
.history__top{ padding:40px 56px 40px; position:relative; min-height:320px; 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; }
.history__top .big{ font-size:clamp(40px,5.4vw,66px); font-weight:700; }
.history__note{ background:var(--brand); color:#fff; padding:44px 56px 52px; }
.history__note p{ font-size:16px; }
.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; }
  .history__photo img{ object-position:center 50%; }
  .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; }
.news__jp{ font-size:20px; font-weight:700; color:var(--brand); letter-spacing:.16em; margin:10px 0 30px; }
.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; } }

/* ---------- フッター ---------- */
.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:#e8eff5; }
/* 会社概要の電話番号に添える断り。
   住所の欄（約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:#c9dae7; 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:#e2eaf1; }
@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);
  opacity:0; pointer-events:none; transition:opacity .3s var(--ease); }
.totop.is-on{ opacity:1; pointer-events:auto; }
.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; }
@media (max-width:640px){ .mbar{ display:flex; } .foot{ padding-bottom:96px; } }

/* ---------- 出現アニメーション（保険つき） ---------- */
.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; }
}

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は「左に文字・右に写真」なので横方向の覆いでよかったが、
   スマホは写真いっぱいに文字が乗るので、縦方向の濃い覆いに差し替える */
@media (max-width:760px){
  .hero::after{
    background:linear-gradient(180deg,
      rgba(16,28,42,.42) 0%, rgba(16,28,42,.66) 48%, rgba(16,28,42,.74) 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; }
@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; } }

/* ヒーローのタイルをイラストにした（2026-08-24）。枠だったときと同じ寸法で切り出す */
.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(--brand); }
.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; }
}
