@charset "utf-8";

/* ============================================================
   株式会社ワタル電工様 ご提案（刷新案）
   様式：信頼感／コーポレート ・ 構図：グリッド＋カード
   色は3案から選べるようにしている（画面右上で切替）
   ============================================================ */

/* --- 配色A：紺 × 銀（初期表示） --- */
:root {
  color-scheme: only light;

  --bg: #ffffff;
  --bg-sub: #f4f6f9;
  --line: #dfe4ea;
  --text: #1c2430;
  --text-sub: #55606e;
  --brand: #16365e;
  --brand-dark: #0e2340;
  --accent: #7b8ea3;
  --on-brand: #ffffff;
  --shadow: 0 1px 3px rgba(20, 35, 60, 0.1);
}

/* --- 配色B：濃紺 × 橙 --- */
:root[data-theme="b"] {
  --bg: #ffffff;
  --bg-sub: #f6f4f0;
  --line: #e4ded6;
  --text: #21252b;
  --text-sub: #5b6068;
  --brand: #0f2b4a;
  --brand-dark: #081b30;
  --accent: #d2691e;
  --on-brand: #ffffff;
  --shadow: 0 1px 3px rgba(15, 43, 74, 0.12);
}

/* --- 配色C：墨 × 青灰 --- */
:root[data-theme="c"] {
  --bg: #ffffff;
  --bg-sub: #f5f5f5;
  --line: #e0e0e0;
  --text: #1a1a1a;
  --text-sub: #565656;
  --brand: #2b2b2b;
  --brand-dark: #161616;
  --accent: #4a6d8c;
  --on-brand: #ffffff;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "Meiryo", sans-serif;
  font-size: 18px; /* 本文18px（社内の標準） */
  line-height: 1.8;
  padding-bottom: 60px;
}

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

a {
  color: var(--brand);
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 本文の1行は35〜45文字に収める */
.narrow {
  max-width: 720px;
}

/* --- 提案専用の注釈 --- */
.proposal-note {
  background: #14396b;
  color: #eef2f8;
  font-size: 14px;
  line-height: 1.7;
  padding: 10px 16px;
  text-align: center;
}

/* --- 色の切替（見本用の操作パネル） --- */
.theme-pick {
  position: absolute;
  top: 12px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--on-brand);
}

.theme-pick button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 0;
}

.theme-pick button[aria-pressed="true"] {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.sw-a {
  background: #16365e;
}
.sw-b {
  background: #d2691e;
}
.sw-c {
  background: #4a6d8c;
}

/* --- ヘッダー --- */
.site-head {
  background: var(--brand);
  color: var(--on-brand);
  position: relative;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 46px;
  padding-bottom: 14px;
}

.site-head .logo img {
  width: 260px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 4px;
}

.head-tel {
  text-align: right;
  line-height: 1.4;
}

.head-tel .label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.head-tel .num {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.head-tel .num a {
  color: var(--on-brand);
  text-decoration: none;
}

.head-tel .time {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

/* --- メニュー --- */
.gnav {
  background: var(--brand-dark);
}

.gnav ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gnav a {
  display: block;
  padding: 14px 20px;
  color: var(--on-brand);
  text-decoration: none;
  font-size: 16px;
}

.gnav a:hover,
.gnav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
}

/* --- ヒーロー：写真ではなく「記録」で見せる --- */
.hero {
  background: var(--brand);
  color: var(--on-brand);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.35;
  margin: 0 0 18px;
  font-weight: 700;
}

.hero .lead {
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  max-width: 720px;
}

/* 直近の物件名を静かに流す */
.ticker {
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 16px;
  overflow: hidden;
}

.ticker .cap {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
}

.ticker ul {
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
  animation: flow 46s linear infinite;
}

.ticker li {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
}

.ticker li b {
  color: #fff;
  font-weight: 700;
  margin-right: 8px;
}

@keyframes flow {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker ul {
    animation: none;
    white-space: normal;
    flex-wrap: wrap;
    gap: 10px 28px;
  }
}

/* --- 実績の数字 --- */
.figures {
  background: var(--bg-sub);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.figures ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.figures .n {
  display: block;
  font-size: 40px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
}

.figures .t {
  font-size: 15px;
  color: var(--text-sub);
}

/* --- セクション共通 --- */
section {
  padding: 56px 0;
}

section.tint {
  background: var(--bg-sub);
}

h2 {
  font-size: 32px;
  line-height: 1.4;
  margin: 0 0 8px;
  font-weight: 700;
}

h2 + .sub {
  color: var(--text-sub);
  font-size: 16px;
  margin: 0 0 32px;
}

h3 {
  font-size: 24px;
  line-height: 1.4;
  margin: 0 0 10px;
}

/* --- 入口2つ --- */
.gates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.gate {
  display: block;
  border: 1px solid var(--line);
  border-top: 5px solid var(--brand);
  border-radius: 4px;
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.gate:hover {
  border-color: var(--accent);
}

.gate .k {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.gate h3 {
  margin: 4px 0 10px;
}

.gate p {
  margin: 0;
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.8;
}

/* --- 施工実績カード --- */
.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.work {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.work .ph {
  background: #eceff3;
  aspect-ratio: 290 / 200;
  overflow: hidden;
}

.work .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work .body {
  padding: 14px 16px 18px;
}

.work .year {
  display: inline-block;
  font-size: 14px;
  color: var(--on-brand);
  background: var(--brand);
  padding: 2px 10px;
  border-radius: 2px;
  margin-bottom: 8px;
}

.work .name {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  font-weight: 700;
}

.more {
  text-align: center;
  margin-top: 34px;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--on-brand);
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 3px;
}

.btn:hover {
  background: var(--brand-dark);
}

.btn.ghost {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}

/* --- 対応できる工事（4本柱） --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pillar {
  border-left: 5px solid var(--accent);
  background: var(--bg);
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pillar h3 {
  font-size: 21px;
  margin: 0 0 8px;
}

.pillar ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.9;
}

/* --- 工事の流れ --- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  counter-reset: step;
}

.flow li {
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px 16px;
  position: relative;
}

.flow li::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--on-brand);
  background: var(--accent);
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 10px;
}

.flow b {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.flow span {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* --- 小さな相談の受け皿 --- */
.small-jobs {
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 4px;
  padding: 34px 32px;
  text-align: center;
}

.small-jobs h2 {
  font-size: 27px;
  margin-bottom: 10px;
}

.small-jobs p {
  margin: 0 auto 22px;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
}

.small-jobs .tel {
  font-size: 34px;
  font-weight: 700;
}

.small-jobs .tel a {
  color: var(--on-brand);
  text-decoration: none;
}

/* --- 会社の基本情報 --- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.company-table th,
.company-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 10px;
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}

.company-table th {
  width: 200px;
  color: var(--text-sub);
  font-weight: 700;
  white-space: nowrap;
}

/* --- フッター --- */
.site-foot {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 34px 0 26px;
  font-size: 15px;
}

.site-foot a {
  color: rgba(255, 255, 255, 0.88);
}

.site-foot .copy {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* --- スマホ用の電話バー --- */
.sp-call {
  display: none;
}

/* --- 施工実績ページ --- */
.year-block {
  margin-bottom: 44px;
}

.year-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 8px;
  margin-bottom: 22px;
}

.year-head h2 {
  font-size: 27px;
  margin: 0;
}

.year-head .count {
  font-size: 15px;
  color: var(--text-sub);
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.jump a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 7px 14px;
  font-size: 15px;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
}

.jump a:hover {
  border-color: var(--brand);
}

/* ============================================================
   スマートフォン
   ============================================================ */
@media screen and (max-width: 860px) {
  body {
    font-size: 17px;
  }

  .site-head .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 52px;
  }

  .site-head .logo img {
    width: 210px;
  }

  .head-tel {
    text-align: left;
  }

  .head-tel .num {
    font-size: 26px;
  }

  .gnav a {
    padding: 12px 14px;
    font-size: 15px;
  }

  .hero {
    padding: 36px 0 32px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .hero .lead {
    font-size: 17px;
  }

  .figures ul {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .figures li {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
  }

  .figures .n {
    font-size: 32px;
  }

  section {
    padding: 40px 0;
  }

  h2 {
    font-size: 25px;
  }

  .gates,
  .pillars,
  .flow {
    grid-template-columns: 1fr;
  }

  .works {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .work .name {
    font-size: 14px;
  }

  .small-jobs {
    padding: 26px 18px;
  }

  .small-jobs .tel {
    font-size: 28px;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: auto;
    border-bottom: none;
    padding: 4px 0;
  }

  .company-table th {
    color: var(--brand);
    padding-top: 14px;
  }

  .company-table td {
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
  }

  .theme-pick {
    top: 10px;
    right: 14px;
  }

  /* タップで電話（画面下に固定） */
  .sp-call {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    background: var(--brand);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    padding: 14px 8px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.25);
  }
}

@media screen and (max-width: 480px) {
  .works {
    grid-template-columns: 1fr;
  }
}
