@charset "utf-8";

/* =========================================================
   中部綜合開発株式会社 様 ご提案専用サンプル
   様式：⑥信頼感 × C-13コーポレート／構図：D-6ヒーロー → D-1グリッド → D-2カード
   配色：現行ロゴの緑（実測 #16902d）を軸に、アスファルトの墨とコンクリートの白
   ========================================================= */

:root {
  color-scheme: only light;

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

  /* 配色 */
  --green: #16902d;      /* 現行ロゴの緑（実測）＝アクセント */
  --green-d: #0f7a25;    /* 白文字を載せる緑（コントラスト5.48） */
  --green-dd: #0b5c1c;   /* さらに濃い緑 */
  --green-pale: #eef5ec; /* 薄い緑の下地 */
  --ink: #22282a;        /* アスファルトの墨 */
  --ink-2: #4a5356;      /* 補助文字 */
  --paper: #f4f5f2;      /* コンクリートの白 */
  --line: #dde0d9;
  --white: #fff;
  --yellow: #e8b100;     /* 路面のセンターライン（差し色・面には使わない） */

  --wrap: 1120px;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(34, 40, 42, .08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
               "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.9;
  font-feature-settings: "palt";
}

img { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: var(--green-dd); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.kata { display: inline-block; }

/* ---------- 提案専用の注釈（濃色ベタにせず「注釈」の見た目にする） ---------- */
.proposal-note {
  background: var(--green-pale);
  border-bottom: 1px solid #cfe0cb;
  font-size: var(--fs-note);
  line-height: 1.75;
  color: #33482f;
}
.proposal-note .wrap { padding: 12px 0 12px 16px; border-left: 4px solid var(--green); }
.proposal-note p { margin: 0; }
.proposal-note p + p { margin-top: 4px; }
.proposal-note strong { font-weight: 700; }

/* ---------- ヘッダー ---------- */
.header {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 0;
}
.header__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.header__logo img { width: 176px; }
.header__logo span { font-size: var(--fs-note); color: var(--ink-2); line-height: 1.5; }

.header__contact { display: flex; align-items: center; gap: 16px; }
.header__tel { text-decoration: none; color: var(--ink); line-height: 1.3; }
.header__tel b { display: block; font-size: 26px; letter-spacing: .02em; }
.header__tel small { font-size: var(--fs-note); color: var(--ink-2); }
.btn-head {
  display: inline-block; background: var(--green-d); color: var(--white);
  text-decoration: none; font-size: var(--fs-body); font-weight: 700;
  padding: 12px 22px; border-radius: var(--radius);
}
.btn-head:hover { background: var(--green-dd); }

.gnav { border-top: 1px solid var(--line); }
.gnav ul { display: flex; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.gnav a {
  display: block; padding: 15px 22px; text-decoration: none;
  color: var(--ink); font-size: var(--fs-body); font-weight: 500;
  border-bottom: 3px solid transparent;
}
.gnav a:hover, .gnav a[aria-current="page"] { color: var(--green-dd); border-bottom-color: var(--green); }

.menu-btn { display: none; font: inherit; font-size: var(--fs-body); font-weight: 700; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; min-height: 560px; display: grid; align-items: end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34,40,42,.10) 0%, rgba(34,40,42,.30) 45%, rgba(34,40,42,.78) 100%);
}
.hero__body { position: relative; padding: 90px 0 56px; color: var(--white); }
.hero__label {
  display: inline-block; background: var(--green-d); color: var(--white);
  font-size: var(--fs-label); font-weight: 700; padding: 6px 14px; border-radius: 3px; margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 18px; font-size: clamp(30px, 5vw, 52px); line-height: 1.35;
  letter-spacing: .02em; text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.hero p { margin: 0; max-width: 40em; font-size: clamp(18px, 2.1vw, 21px); text-shadow: 0 1px 10px rgba(0,0,0,.4); }

/* ---------- セクション共通 ---------- */
.sec { padding: 78px 0; }
.sec--paper { background: var(--paper); }
.sec--green { background: var(--green-dd); color: var(--white); }

.sec-head { margin: 0 0 34px; scroll-margin-top: 120px; text-align: center; }
.sec-head h2 {
  margin: 0; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.45; letter-spacing: .02em;
}
.sec-head h2::after {
  content: ""; display: block; width: 54px; height: 4px;
  background: var(--green); margin: 14px auto 0; border-radius: 2px;
}
.sec--green .sec-head h2::after { background: var(--yellow); }
.sec-head p { margin: 16px auto 0; max-width: 46em; color: var(--ink-2); }

.sec--green .sec-head p { color: #d6e6d2; }

/* ---------- 3本柱 ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.pillar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.pillar img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pillar__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.pillar h3 { margin: 0 0 10px; font-size: var(--fs-h3); line-height: 1.5; }
.pillar p { margin: 0 0 18px; }
.pillar__link { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--green-dd); }
.pillar__link:hover { text-decoration: underline; }

/* ---------- 工程ギミック（防草シート工事） ---------- */
.steps__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.steps__tab {
  font: inherit; font-size: var(--fs-label); font-weight: 700;
  background: var(--white); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 18px; cursor: pointer; line-height: 1.4;
}
.steps__tab[aria-selected="true"] { background: var(--green-d); border-color: var(--green-d); color: var(--white); }
.steps__tab:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.steps__stage { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.steps__photo { position: relative; background: var(--white); display: flex; align-items: center; }
/* 写真は常に同じ大きさ（4:3）。文章の量でカードの高さが変わっても写真は伸び縮みしない */
.steps__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: none; }
.steps__photo img.is-on { display: block; }
.steps__text { justify-content: center; }
.steps__no {
  position: absolute; left: 0; top: 0; background: var(--green-d); color: var(--white);
  font-size: var(--fs-label); font-weight: 700; padding: 7px 16px;
}
.steps__text { padding: 30px 30px 34px; display: flex; flex-direction: column; }
.steps__text h3 { margin: 0 0 12px; font-size: var(--fs-h3); line-height: 1.5; }
.steps__text p { margin: 0; }
.steps__nav { margin-top: auto; padding-top: 22px; display: flex; gap: 10px; }
.steps__nav button {
  font: inherit; font-size: var(--fs-label); font-weight: 700; cursor: pointer;
  background: var(--white); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 11px 18px;
}
.steps__nav button:hover:not(:disabled) { border-color: var(--green); color: var(--green-dd); }
.steps__nav button:disabled { opacity: .4; cursor: default; }
.steps__cap { margin-top: 14px; font-size: var(--fs-note); color: var(--ink-2); text-align: center; }

/* ---------- ビフォー・アフター（トップの入口） ---------- */
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ba figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ba img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ba figcaption { padding: 14px 18px 16px; font-size: var(--fs-h4); font-weight: 700; }
.ba figcaption span { display: block; font-size: var(--fs-label); font-weight: 500; color: var(--ink-2); margin-top: 4px; }
.ba .mark { display: inline-block; font-size: var(--fs-label); font-weight: 700; color: var(--white); background: var(--ink-2); border-radius: 3px; padding: 3px 12px; margin-bottom: 8px; }
.ba .mark--after { background: var(--green-d); }
.ba-lead { margin: 26px 0 0; text-align: center; }
.ba-lead a {
  display: inline-block; background: var(--green-d); color: var(--white); text-decoration: none;
  font-weight: 700; padding: 15px 34px; border-radius: var(--radius);
}
.ba-lead a:hover { background: var(--green-dd); }

/* ---------- 実績グリッド ---------- */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; }
.works li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.works img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.works h3 { margin: 0; padding: 16px 18px 18px; font-size: var(--fs-h4); line-height: 1.55; }
.works .tag {
  display: inline-block; font-size: var(--fs-label); font-weight: 700; color: var(--green-dd);
  background: var(--green-pale); border-radius: 3px; padding: 3px 10px; margin-bottom: 8px;
}

/* ---------- 信頼の帯 ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fact { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 24px 20px; }
.fact b { display: block; font-size: 34px; line-height: 1.25; letter-spacing: .02em; }
.fact span { display: block; font-size: var(--fs-label); color: #d6e6d2; margin-top: 6px; }
.fact p { margin: 10px 0 0; font-size: var(--fs-body); }

/* ---------- 2カラム（写真＋文章） ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; align-items: start; }
.split img { border-radius: var(--radius); width: 100%; }
.split h3 { margin: 0 0 14px; font-size: var(--fs-h3); line-height: 1.55; }
.split p { margin: 0 0 16px; }

/* ---------- 表 ---------- */
.table { width: auto; max-width: 100%; border-collapse: collapse; margin-inline: auto; text-align: left; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 16px 10px; text-align: left; vertical-align: top; font-size: var(--fs-body); }
.table th { font-weight: 700; color: var(--ink); background: transparent; white-space: nowrap; padding-right: 32px; }

/* 中央に置く箱 */
.box-center { max-width: 520px; margin-inline: auto; }

/* 地図と表を横に並べる */
.place { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.place__map { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.place__map img, .place__map iframe { width: 100%; display: block; border: 0; }
.place__map iframe { aspect-ratio: 4 / 3; height: auto; }
.place__map figcaption { padding: 12px 16px; font-size: var(--fs-label); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; }
.place__map figcaption a { font-weight: 700; }

/* ---------- 箇条書き ---------- */
.list { margin: 0 auto; padding: 0; list-style: none; width: fit-content; max-width: 100%; text-align: left; }
.list li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px dashed var(--line); }
.list li::before {
  content: ""; position: absolute; left: 6px; top: 19px;
  width: 12px; height: 12px; background: var(--green); border-radius: 2px; transform: rotate(45deg);
}

/* ---------- 問い合わせ ---------- */
.cta { background: var(--green-pale); border-top: 1px solid #cfe0cb; padding: 62px 0; }
.cta__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.cta h2 { margin: 0 0 12px; font-size: clamp(23px, 3vw, 31px); line-height: 1.5; }
.cta p { margin: 0; }
.cta__box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.cta__box a.tel { display: block; text-decoration: none; color: var(--ink); }
.cta__box a.tel b { display: block; font-size: 38px; line-height: 1.25; letter-spacing: .02em; }
.cta__box small { display: block; font-size: var(--fs-label); color: var(--ink-2); margin-top: 4px; }
.btn-main {
  display: block; margin-top: 18px; background: var(--green-d); color: var(--white);
  text-decoration: none; font-weight: 700; padding: 16px; border-radius: var(--radius); font-size: var(--fs-body);
}
.btn-main:hover { background: var(--green-dd); }

/* ---------- フォーム ---------- */
.form { display: grid; gap: 22px; max-width: 760px; margin-inline: auto; }
.form__demo { max-width: 760px; margin-inline: auto; }
.form > div:last-of-type { text-align: center; }
.form label { display: block; font-weight: 700; margin-bottom: 8px; }
.form .req { font-size: var(--fs-label); color: #b3341f; margin-left: 8px; font-weight: 700; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: var(--fs-body); padding: 13px 14px;
  border: 1px solid #c6cbc2; border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.form textarea { min-height: 180px; resize: vertical; }
.form button {
  font: inherit; font-size: var(--fs-body); font-weight: 700; cursor: pointer;
  background: var(--green-d); color: var(--white); border: 0; border-radius: var(--radius); padding: 17px 40px;
}
.form button:hover { background: var(--green-dd); }
.form__note { font-size: var(--fs-note); color: var(--ink-2); }
.form__demo { max-width: 760px;
  background: #fff8e6; border: 1px solid #e6d49a; border-radius: var(--radius);
  padding: 16px 18px; font-size: var(--fs-note); line-height: 1.8;
}

/* ---------- フッター ---------- */
.footer { background: var(--ink); color: #dfe3e0; padding: 52px 0 120px; font-size: var(--fs-body); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 34px; }
.footer a { color: #cfe9c9; }
.footer__name { font-size: var(--fs-h3); margin: 0 0 12px; color: var(--white); }
.footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px 18px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }
.footer__note {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid #3a4245;
  font-size: var(--fs-note); line-height: 1.85; color: #b9c0bc;
}
.footer__copy { margin: 14px 0 0; font-size: var(--fs-note); color: #b9c0bc; }

/* ---------- スマホ下部固定バー ---------- */
.callbar { display: none; }

/* =========================================================
   タブレット
   ========================================================= */
@media (max-width: 980px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header__logo span { display: none; }
  .gnav a { padding: 15px 14px; }
}

/* =========================================================
   スマートフォン
   ========================================================= */
@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }

  .header__top { padding: 12px 0; }
  .header__logo img { width: 142px; }
  .header__contact { display: none; }

  .menu-btn {
    display: flex; align-items: center; gap: 9px;
    background: var(--white); color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 10px 15px; cursor: pointer;
  }
  .menu-btn i { display: block; width: 20px; height: 14px; position: relative; }
  .menu-btn i::before, .menu-btn i::after, .menu-btn i b {
    content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink);
  }
  .menu-btn i::before { top: 0; }
  .menu-btn i b { top: 6px; }
  .menu-btn i::after { bottom: 0; }

  /* 固定パネルにしない＝ヘッダー直下の全幅ドロップダウン */
  .gnav {
    display: none; position: absolute; top: 100%; left: 0; width: 100%;
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: var(--shadow); z-index: 50;
  }
  .gnav.is-open { display: block; }
  .gnav ul { display: block; }
  .gnav a { padding: 16px 20px; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; }
  .gnav a[aria-current="page"] { border-bottom-color: var(--line); border-left-color: var(--green); background: var(--green-pale); }

  .hero { min-height: 460px; }
  .hero__body { padding: 70px 0 44px; }

  .sec { padding: 54px 0; }
  .sec-head { margin-bottom: 26px; scroll-margin-top: 86px; }

  .pillars, .works, .facts { grid-template-columns: minmax(0, 1fr); }
  .steps__stage { grid-template-columns: minmax(0, 1fr); }
  .steps__text { padding: 24px 22px 26px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .place { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ba { grid-template-columns: minmax(0, 1fr); }
  .cta__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: minmax(0, 1fr); }

  .table { width: 100%; }
  .table th, .table td { display: block; width: auto; padding-right: 10px; }
  .table th { border-bottom: 0; padding-bottom: 0; color: var(--green-dd); }
  .table td { padding-top: 4px; }

  .fact b { font-size: 30px; }

  /* 下部固定の電話ボタン */
  .callbar {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    border-top: 1px solid rgba(255,255,255,.25);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 8px; text-decoration: none; color: var(--white);
    font-size: var(--fs-body); font-weight: 700; line-height: 1.3;
  }
  .callbar a.tel { background: var(--green-d); }
  .callbar a.mail { background: var(--ink); }
}

@media (max-width: 380px) {
  .callbar a { font-size: 16px; }
  .header__logo img { width: 126px; }
}
