@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本にそろえている。暖かみは写真そのものの色が担う。
   書体：Zen Maru Gothic（丸ゴシック）。お手本と同じ。太さ500と700だけ使う。
   画像：写真はA案と同じ実物。イラスト・線画はプレースホルダー（.ph）。
   ========================================================== */

:root{
  --brand:      #456580;   /* 藍色。白文字とのコントラスト 6.1 */
  --brand-dark: #35505f;
  --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;
  --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:17px; line-height:1.95;
  font-feature-settings:"palt";
}
img{ max-width:100%; height:auto; display:block; }
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:13px; 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:26px; font-weight:700; letter-spacing:.06em; }
.head__right{ display:flex; align-items:center; gap:16px; }
.head__tel{ text-align:right; line-height:1.4; }
.head__tel a{ display:flex; align-items:center; gap:9px; text-decoration:none; color:var(--brand); }
.head__tel b{ font-size:29px; font-weight:700; letter-spacing:.02em; }
.head__tel .ico{ width:24px; height:24px; }
.head__hours{ font-size:13.5px; 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:12.5px;
}
.hbtn{
  display:inline-flex; align-items:center; gap:9px; text-decoration:none;
  background:var(--brand); color:#fff; font-size:15.5px; font-weight:700;
  padding:12px 22px; transition:background .25s var(--ease);
}
.hbtn:hover{ background:var(--brand-dark); }
.hbtn--accent{ background:var(--accent); }
.hbtn--accent:hover{ background:#2f625a; }
.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:15.5px; 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:17px; line-height:1.9; 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:17px; 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:17px; 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:19px; 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:transform .35s var(--ease), background .3s var(--ease);
}
.svc__item:hover .svc__disc{ transform:translateY(-8px); 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:12.5px; }
.svc__ico{ width:104px; height:104px; }
.svc__jp{ font-size:23px; font-weight:700; letter-spacing:.14em; }
.svc__en{ font-size:13.5px; letter-spacing:.16em; }
.svc__note{ margin:22px 4px 0; font-size:15.5px; color:var(--brand); line-height:1.9; }
@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(24px,2.8vw,33px); font-weight:700; letter-spacing:.1em; color:var(--ink); margin:0 0 20px; line-height:1.6; }
.band__mid p{ font-size:16.5px; 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:16.5px; 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:16.5px; 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:transform .8s var(--ease); }
.rcard:hover img{ transform:scale(1.04); }
.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:13.5px; font-weight:700; padding:3px 12px; }
.rcard__t{ font-size:17px; 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; }
.history__photo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 28%; }
.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(26px,3vw,38px); 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:16.5px; }
.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:15px; }
@media (max-width:900px){
  .history{ grid-template-columns:1fr; }
  /* 顔が切れないように高さを確保し、切り取り位置を上へ */
  .history__photo{ min-height:340px; }
  .history__photo img{ object-position:center 20%; }
  .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(48px,6vw,74px); font-weight:500; color:var(--brand); line-height:1; letter-spacing:.02em; margin:0; }
.news__jp{ font-size:19px; 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:15.5px; color:var(--ink-sub); letter-spacing:.04em; }
.news__t{ font-size:16.5px; 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:56px 0 72px; }
.cband__in{ display:flex; align-items:center; justify-content:center; gap:44px; flex-wrap:wrap; }
.cband__tel{ display:flex; align-items:center; gap:22px; }
.cband__tel .lbl{ font-size:16.5px; font-weight:700; }
.cband__tel .bar{ width:1px; height:56px; background:var(--rule); }
.cband__tel a{ display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--brand); }
.cband__tel b{ font-size:clamp(30px,3.6vw,42px); font-weight:700; letter-spacing:.02em; }
.cband__tel .ico{ width:30px; height:30px; }
.cband .hbtn{ font-size:18px; padding:20px 34px; }

/* ---------- フッター ---------- */
.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:15.5px; line-height:1.9; margin:20px 0 0; color:#e8eff5; }
.foot h3{ font-size:15px; 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:15.5px; }
.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:15.5px; font-weight:700; }
.mbar a:last-child{ background:var(--accent); }
.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; transform:translateY(22px); }
.reveal-active [data-reveal].is-in{ opacity:1; transform:none; transition:opacity .8s var(--ease), transform .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; }
  .svc__item:hover .svc__disc,.rcard:hover img{ transform:none; }
}

section[id]{ scroll-margin-top:130px; }

@media (max-width:1000px){
  .gnav{ display:none; }
  .head__top{ padding:12px 0; }
  section[id]{ scroll-margin-top:80px; }
}
@media (max-width:760px){
  .section,.results,.news{ padding:60px 0; }
  .head__right .hbtn span{ display:none; }
  .head__right .hbtn{ padding:12px 15px; }
  /* スマホは屋号とボタンだけ。電話は下の固定バーが担う */
  .head__tel{ display:none; }
  .head__top{ gap:12px; padding:11px 0; }
  .logo__name{ font-size:21px; white-space:nowrap; letter-spacing:.04em; }
  .hero{ height:min(72vh, 520px); }
  .hero__title{ font-size:26px; letter-spacing:.01em; }
  .hero__en{ font-size:16px; }
  .hero__lead{ font-size:15.5px; 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); }
}
