@charset "utf-8";

/* ============================================================
   株式会社エコー様 ご提案専用見本
   配色の設計：社屋・ロゴの実色（濃紺×白）を主役に、
   電気を運ぶ「銅線の色」をアクセントに据えた。
   ============================================================ */

:root {
  color-scheme: only light;

  /* 色 */
  --ink: #1a2035;        /* 鉄紺（ロゴの紺・ほぼ黒） */
  --ink-2: #2b3350;      /* 鉄紺の明るめ */
  --copper: #a5673f;     /* 銅 */
  --copper-deep: #8a5230;
  --copper-pale: #e8d9cd;
  --base: #eceae6;       /* ウォームグレー */
  --paper: #f7f6f3;      /* 紙色（カード面） */
  --white: #ffffff;
  --line: #d5d1c9;
  --text: #23262f;
  --text-weak: #5a5e6b;

  /* 文字サイズ（03_レビューゲートの18px仕様＝正本。数値を直接書かず必ずこの変数を使う） */
  --fs-body: 18px;   /* 本文・説明文・表・リスト */
  --fs-lead: 20px;   /* リード文 */
  --fs-h4: 20px;     /* カード見出しの下限 */
  --fs-h3: 24px;     /* 小見出し */
  --fs-h2: 32px;     /* セクション見出し */
  --fs-label: 15px;  /* キャプション・ラベル・バッジ */
  --fs-note: 14px;   /* 注記（これより小さくしない） */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--text);
  background: var(--base);
}

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

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

.serif { font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif; }

/* ---------- 提案専用注釈 ---------- */
.proposal-note {
  background: var(--ink);
  color: #f2efe9;
  text-align: center;
  padding: 10px 16px;
  font-size: var(--fs-note);
  line-height: 1.6;
}
.proposal-note strong { color: #e9c9a6; font-weight: 700; }
.proposal-note + .proposal-note {
  background: #f2efe9;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* ---------- ヘッダー（上段ロゴ＋電話／下段ナビ全幅） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-top {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .brand-sub { font-size: var(--fs-label); color: var(--text-weak); letter-spacing: 0.04em; }
.brand .brand-name { font-size: 26px; font-weight: 700; letter-spacing: 0.06em; }
.brand .brand-name .bolt { color: var(--copper); }
.header-tel { text-align: right; }
.header-tel .tel-number {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.header-tel .tel-number .tel-mark { color: var(--copper); font-size: var(--fs-body); margin-right: 4px; }
.header-tel .tel-note { font-size: var(--fs-label); color: var(--text-weak); line-height: 1.4; }

.global-nav ul {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 6px;
  list-style: none;
  border-top: 1px solid var(--line);
}
.global-nav a {
  display: block;
  padding: 12px 18px;
  font-size: var(--fs-body);
  text-decoration: none;
  color: var(--ink);
  border-bottom: 3px solid transparent;
}
.global-nav a:hover { border-bottom-color: var(--copper); }
.menu-toggle { display: none; font-size: var(--fs-note); }

/* ---------- ヒーロー（左右非対称エディトリアル） ---------- */
.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 20px 64px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: center;
  min-height: 520px;
}
.hero-text .hero-label {
  display: inline-block;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  color: var(--copper-deep);
  border: 1px solid var(--copper);
  padding: 4px 14px;
  margin-bottom: 22px;
  background: var(--white);
}
.hero-text h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-text .hero-lead { font-size: var(--fs-lead); color: var(--text); margin-bottom: 30px; }
.hero-text .hero-lead .nowrap { display: inline-block; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-tel {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  padding: 14px 26px;
  border-left: 5px solid var(--copper);
  letter-spacing: 0.03em;
}
.btn-tel .btn-tel-small { display: block; font-size: var(--fs-label); font-weight: 400; color: #d8d3ca; }
.btn-works {
  display: inline-block;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: var(--fs-body);
  padding: 15px 24px;
}
.btn-works:hover, .btn-tel:hover { opacity: 0.85; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-photo::after {
  content: "";
  position: absolute;
  left: -14px;
  bottom: -14px;
  width: 60%;
  height: 45%;
  border-left: 3px solid var(--copper);
  border-bottom: 3px solid var(--copper);
  pointer-events: none;
}
.hero-photo .photo-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  background: rgba(26, 32, 53, 0.82);
  color: #f0ede7;
  font-size: var(--fs-label);
  padding: 6px 14px;
}

/* ---------- 数字帯 ---------- */
.fact-strip { background: var(--ink); color: var(--white); }
.fact-strip .fact-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  text-align: center;
}
.fact .fact-num { font-size: 34px; font-weight: 700; color: #e9c9a6; line-height: 1.3; }
.fact .fact-num .fact-unit { font-size: var(--fs-body); color: #e9c9a6; }
.fact .fact-label { font-size: var(--fs-label); color: #c9cbd6; margin-top: 4px; }
.fact .fact-label .nowrap { display: inline-block; }

/* ---------- 共通セクション ---------- */
.section { padding: 72px 20px; }
.section-inner { max-width: 1160px; margin: 0 auto; }
.section-head { margin-bottom: 40px; }
.section-head .section-en {
  display: block;
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  color: var(--copper-deep);
  margin-bottom: 8px;
}
.section-head h2 { font-size: var(--fs-h2); color: var(--ink); font-weight: 600; line-height: 1.4; }
.section-head .section-note { margin-top: 10px; color: var(--text-weak); font-size: var(--fs-body); }
.alt { background: var(--paper); }

/* ---------- ごあいさつ ---------- */
.greeting-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 44px;
  align-items: start;
}
.greeting-text p { margin-bottom: 1.2em; }
.greeting-sign { text-align: right; font-size: var(--fs-lead); color: var(--ink); margin-top: 20px; }
.greeting-sign .sign-title { font-size: var(--fs-label); color: var(--text-weak); margin-right: 10px; }
.greeting-photo figcaption { font-size: var(--fs-label); color: var(--text-weak); margin-top: 10px; text-align: center; }
.greeting-photo img { border: 1px solid var(--line); }

/* ---------- 対応工事 ---------- */
.service-doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 34px;
}
.door {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--copper);
  padding: 30px 28px;
}
.door h3 { font-size: var(--fs-h3); color: var(--ink); margin-bottom: 12px; }
.door p { color: var(--text); }
.door .door-example { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--text-weak); font-size: var(--fs-body); }
.service-items { background: var(--white); border: 1px solid var(--line); padding: 28px; }
.service-items h3 { font-size: var(--fs-h4); color: var(--ink); margin-bottom: 16px; }
.service-items ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 22px;
}
.service-items li {
  padding-left: 20px;
  position: relative;
}
.service-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 3px;
  background: var(--copper);
}
.service-note { margin-top: 18px; font-size: var(--fs-note); color: var(--text-weak); }
.small-work-line {
  margin-top: 26px;
  text-align: center;
  font-size: var(--fs-lead);
  color: var(--ink);
}
.small-work-line .nowrap { display: inline-block; }

/* ---------- 地図ギミック ---------- */
.map-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 36px;
  align-items: start;
}
.map-box { position: relative; }
.map-box svg { width: 100%; height: auto; display: block; }
.pref-shape { fill: var(--white); stroke: var(--ink-2); stroke-width: 2; }
.map-pin { cursor: pointer; }
.map-pin circle {
  fill: var(--copper);
  stroke: var(--white);
  stroke-width: 2.5;
  transition: r 0.15s;
}
.map-pin text {
  font-size: 26px;
  fill: var(--ink);
  paint-order: stroke;
  stroke: #ffffff;
  stroke-width: 6px;
  font-weight: 600;
  pointer-events: none;
}
.map-pin.is-active circle { fill: var(--ink); r: 16; }
.map-pin:hover circle { r: 16; }
.map-note { font-size: var(--fs-note); color: var(--text-weak); margin-top: 12px; }
.map-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  padding: 26px 26px 30px;
  min-height: 300px;
}
.map-panel h3 { font-size: var(--fs-h3); color: var(--ink); margin-bottom: 6px; }
.map-panel .panel-count { font-size: var(--fs-label); color: var(--copper-deep); margin-bottom: 14px; }
.map-panel ul { list-style: none; }
.map-panel li {
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid #eceae4;
  position: relative;
  font-size: var(--fs-body);
}
.map-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 10px;
  height: 3px;
  background: var(--copper);
}
.map-panel li .work-date { color: var(--text-weak); font-size: var(--fs-label); display: block; }
.city-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.city-chip {
  font-size: var(--fs-label);
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  border-radius: 999px;
  font-family: inherit;
}
.city-chip.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- 実績ハイライト ---------- */
.works-highlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}
.work-card { background: var(--white); border: 1px solid var(--line); }
.work-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work-card .work-card-body { padding: 16px 18px 20px; }
.work-card .work-card-date { font-size: var(--fs-label); color: var(--copper-deep); }
.work-card h3 { font-size: var(--fs-h4); color: var(--ink); line-height: 1.5; margin-top: 4px; }
.works-more { text-align: center; }

/* ---------- 信頼・沿革 ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 44px;
  align-items: start;
}
.trust-box { background: var(--white); border: 1px solid var(--line); padding: 28px; }
.trust-box + .trust-box { margin-top: 24px; }
.trust-box h3 { font-size: var(--fs-h4); color: var(--ink); margin-bottom: 14px; }
.trust-box ul { list-style: none; }
.trust-box li { padding: 6px 0; border-bottom: 1px solid #eceae4; }
.trust-box li:last-child { border-bottom: none; }
.iso-figure { display: flex; align-items: center; gap: 18px; }
.iso-figure img { width: 150px; border: 1px solid var(--line); }
.iso-figure p { font-size: var(--fs-body); }
.trust-note { font-size: var(--fs-note); color: var(--text-weak); margin-top: 10px; }

.history-list { list-style: none; border-left: 3px solid var(--copper-pale); padding-left: 0; }
.history-list li {
  position: relative;
  padding: 10px 0 10px 30px;
}
.history-list li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 1.25em;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--copper);
  border: 3px solid var(--paper);
}
.history-list .history-date { display: block; font-size: var(--fs-label); color: var(--copper-deep); font-weight: 700; }

/* ---------- 採用 ---------- */
.recruit-box {
  background: var(--ink);
  color: #eceff8;
  padding: 40px 36px;
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 24px;
  align-items: center;
}
.recruit-box h2 { font-size: var(--fs-h3); color: var(--white); margin-bottom: 10px; }
.recruit-box p { font-size: var(--fs-body); }
.recruit-box .recruit-note { font-size: var(--fs-note); color: #b9bdcc; margin-top: 10px; }
.recruit-box .btn-recruit {
  display: block;
  text-align: center;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-body);
  font-weight: 700;
  padding: 16px 20px;
  border-left: 5px solid var(--copper);
}

/* ---------- 会社概要・お問い合わせ ---------- */
.company-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.company-table th, .company-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #eceae4;
  text-align: left;
  vertical-align: top;
  font-size: var(--fs-body);
  font-weight: 400;
}
.company-table th { width: 30%; background: var(--paper); color: var(--ink); font-weight: 700; white-space: nowrap; }
.contact-lead { text-align: center; font-size: var(--fs-lead); color: var(--ink); margin-bottom: 26px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--copper);
  padding: 30px 26px;
  text-align: center;
}
.contact-card h3 { font-size: var(--fs-h4); color: var(--ink); margin-bottom: 10px; }
.contact-card .contact-big {
  display: inline-block;
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.contact-card .contact-mail { font-size: 22px; overflow-wrap: anywhere; }
.contact-card .contact-sub { font-size: var(--fs-label); color: var(--text-weak); margin-top: 8px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: #d9dbe4; padding: 44px 20px 110px; }
.footer-inner { max-width: 1160px; margin: 0 auto; text-align: center; }
.footer-name { font-size: var(--fs-lead); color: var(--white); font-weight: 700; margin-bottom: 8px; }
.footer-info { font-size: var(--fs-body); margin-bottom: 20px; }
.footer-note {
  font-size: var(--fs-note);
  color: #a9adbd;
  border-top: 1px solid #3a4160;
  padding-top: 18px;
  line-height: 1.9;
  text-align: left;
  max-width: 860px;
  margin: 0 auto;
}
.footer-copy { font-size: var(--fs-note); color: #8b90a3; margin-top: 16px; }

/* ---------- スマホ固定電話バー ---------- */
.mobile-tel-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: var(--ink);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}
.mobile-tel-bar a {
  display: block;
  text-align: center;
  background: var(--copper);
  color: var(--white);
  text-decoration: none;
  font-size: var(--fs-lead);
  font-weight: 700;
  padding: 13px 10px;
  border-radius: 6px;
}

/* ---------- 実績ページ ---------- */
.page-title-band { background: var(--ink); color: var(--white); padding: 48px 20px; }
.page-title-band .section-inner { max-width: 1160px; }
.page-title-band .section-en { color: #e9c9a6; font-size: var(--fs-label); letter-spacing: 0.12em; }
.page-title-band h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 600; margin-top: 6px; }
.page-title-band p { margin-top: 12px; color: #c9cbd6; font-size: var(--fs-body); }
.works-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.works-figure { background: var(--white); border: 1px solid var(--line); }
.works-figure .works-photos { display: grid; grid-template-columns: 1fr; gap: 2px; }
.works-figure .works-photos.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.works-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.works-figure figcaption { padding: 14px 16px; font-size: var(--fs-body); color: var(--ink); line-height: 1.6; }
.history-table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); }
.history-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.history-table th, .history-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #eceae4;
  text-align: left;
  font-size: var(--fs-body);
}
.history-table thead th { background: var(--ink); color: var(--white); font-weight: 700; }
.history-table tbody tr:nth-child(even) { background: var(--paper); }
.history-table .col-date { white-space: nowrap; width: 9em; color: var(--copper-deep); font-weight: 700; }

/* ---------- タブレット以下 ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 36px; }
  .greeting-grid, .map-grid, .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .works-highlight, .works-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recruit-box { grid-template-columns: minmax(0, 1fr); }
  .service-items ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- スマホ ---------- */
@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }

  .header-top { padding: 10px 14px; }
  .brand .brand-name { font-size: 22px; }
  .header-tel { display: none; }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 7px 12px;
    cursor: pointer;
    color: var(--ink);
    font-family: inherit;
  }
  .menu-toggle .menu-bars { display: block; width: 22px; }
  .menu-toggle .menu-bars span { display: block; height: 2px; background: var(--ink); margin: 4px 0; }
  .menu-toggle .menu-label { font-size: var(--fs-note); }

  .global-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--ink);
    box-shadow: 0 12px 20px rgba(26, 32, 53, 0.15);
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; gap: 0; border-top: none; }
  .global-nav a { border-bottom: 1px solid #eceae4; padding: 14px 22px; }

  .section { padding: 52px 16px; }
  .hero { padding: 30px 16px 40px; gap: 26px; }
  .hero-text h1 { font-size: clamp(30px, 8.4vw, 38px); }
  .fact-strip .fact-inner { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 24px 16px; }
  .fact { display: flex; align-items: baseline; justify-content: center; gap: 12px; }
  .works-highlight, .works-gallery { grid-template-columns: minmax(0, 1fr); }
  .service-doors, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .service-items ul { grid-template-columns: minmax(0, 1fr); }
  .company-table th { width: auto; display: block; border-bottom: none; padding-bottom: 2px; }
  .company-table td { display: block; padding-top: 2px; }
  .mobile-tel-bar { display: block; }
  .site-footer { padding-bottom: 130px; }

  /* スマホでは地図のラベルは非表示にし、下の市町ボタンで選ぶ（小さすぎる文字を出さない） */
  .map-pin text { display: none; }
  .city-chip { font-size: var(--fs-body); padding: 10px 16px; }
}
