/* =========================================================
   古川組 サンプルサイト 共通CSS
   建設業メイン / 残土処分ページ で共用
   テーマカラー：ネイビー × セーフティオレンジ
   ========================================================= */

:root {
  --navy: #14233f;
  --navy-light: #20355c;
  --orange: #f08300;
  --orange-dark: #d46f00;
  --gray-bg: #f4f6f9;
  --text: #222b3a;
  --text-muted: #5c6779;
  --line: #e2e7ee;
  --white: #ffffff;
  --maxw: 1100px;
  --radius: 8px;
  font-size: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--text);
  line-height: 1.8;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 共通：セクション見出し ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--gray-bg); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .en {
  display: block;
  color: var(--orange);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 6px;
}
.section-head h2 {
  font-size: 1.9rem;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 48px; height: 4px;
  background: var(--orange);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 6px 16px rgba(240,131,0,.35); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-ghost { border: 2px solid var(--white); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20,35,63,.96);
  backdrop-filter: blur(4px);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: baseline; gap: 8px; color: var(--white); }
.logo .mark { font-size: 1.35rem; font-weight: 900; letter-spacing: 0.06em; }
.logo .sub { font-size: 0.7rem; color: #aab6c8; letter-spacing: 0.1em; }
.gnav ul { display: flex; gap: 26px; }
.gnav a { color: #e6ebf2; font-size: 0.92rem; font-weight: 600; transition: color .15s; }
.gnav a:hover { color: var(--orange); }
.gnav .tel { color: var(--orange); font-weight: 800; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex; align-items: center;
  color: var(--white);
  background:
    linear-gradient(rgba(12,22,42,.62), rgba(12,22,42,.72)),
    url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1600&q=70") center/cover;
}
.hero.zando {
  background:
    linear-gradient(rgba(12,22,42,.62), rgba(12,22,42,.72)),
    url("https://images.unsplash.com/photo-1581094794329-c8112a89af12?auto=format&fit=crop&w=1600&q=70") center/cover;
}
.hero-inner { max-width: 760px; }
.hero .badge {
  display: inline-block;
  background: var(--orange);
  color: #fff; font-weight: 700; font-size: 0.8rem;
  padding: 5px 16px; border-radius: 4px; letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.hero h1 { font-size: 2.7rem; font-weight: 900; line-height: 1.4; letter-spacing: 0.04em; }
.hero h1 .accent { color: var(--orange); }
.hero p { margin: 20px 0 32px; font-size: 1.05rem; color: #e3e9f1; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 強み（3カラム） ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform .15s, box-shadow .15s;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(20,35,63,.1); }
.feature .ico {
  width: 60px; height: 60px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-bg); color: var(--orange);
  border-radius: 50%; font-size: 1.6rem; font-weight: 900;
}
.feature h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 10px; }
.feature p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- 事業内容 ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  display: flex; flex-direction: column;
}
.service-card .thumb { height: 200px; background-size: cover; background-position: center; }
.service-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; flex: 1; }
.service-card .more { margin-top: 16px; color: var(--orange); font-weight: 700; }
.service-card .more::after { content: " →"; }

/* ---------- 会社概要テーブル ---------- */
.company-table { width: 100%; border-collapse: collapse; max-width: 760px; margin: 0 auto; }
.company-table th, .company-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.company-table th { width: 30%; color: var(--navy); background: var(--gray-bg); font-weight: 700; white-space: nowrap; }

/* ---------- 施工実績ギャラリー ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery .item { aspect-ratio: 4/3; background-size: cover; background-position: center; border-radius: var(--radius); }

/* ---------- ストックヤード紹介ギャラリー ---------- */
.yard-lead {
  text-align: center; color: var(--text-muted);
  max-width: 720px; margin: 0 auto 40px; font-size: 1rem;
}
.yard-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.yard-gallery figure {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--white);
  transition: transform .15s, box-shadow .15s;
}
.yard-gallery figure:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(20,35,63,.12); }
.yard-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.yard-gallery figcaption {
  padding: 14px 16px; font-size: 0.9rem; color: var(--text);
  font-weight: 600; line-height: 1.6;
}
.yard-gallery figcaption span { display: block; color: var(--text-muted); font-weight: 400; font-size: 0.82rem; margin-top: 2px; }

/* ---------- 登録ストックヤード（信頼の証） ---------- */
.reg-block {
  display: grid; grid-template-columns: 380px 1fr; gap: 32px;
  align-items: center; max-width: 920px; margin: 8px auto 0;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.reg-block .reg-photo {
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.reg-block .reg-photo img { width: 100%; height: auto; }
.reg-block .reg-cap { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }
.reg-badge {
  display: inline-block; background: var(--orange); color: #fff;
  font-weight: 700; font-size: 0.78rem; padding: 5px 14px;
  border-radius: 4px; letter-spacing: 0.06em; margin-bottom: 14px;
}
.reg-info h3 { color: var(--navy); font-size: 1.35rem; margin-bottom: 14px; }
.reg-table { width: 100%; border-collapse: collapse; }
.reg-table th, .reg-table td {
  text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line);
  font-size: 0.92rem; vertical-align: top;
}
.reg-table th { width: 38%; color: var(--navy); background: var(--gray-bg); font-weight: 700; white-space: nowrap; }

/* ---------- 残土ページ：流れ ---------- */
.flow { counter-reset: step; max-width: 760px; margin: 0 auto; display: grid; gap: 18px; }
.flow .step {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
}
.flow .step::before {
  counter-increment: step; content: counter(step);
  flex: 0 0 40px; width: 40px; height: 40px;
  background: var(--navy); color: #fff; font-weight: 800;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.flow .step h4 { color: var(--navy); margin-bottom: 4px; }
.flow .step p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- 残土ページ：料金 ---------- */
.price-note { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 16px; }

/* ---------- CTA帯 ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff; text-align: center; padding: 56px 20px;
}
.cta-band h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 10px; }
.cta-band p { color: #cdd6e3; margin-bottom: 26px; }
.cta-band .tel-big { font-size: 2.2rem; font-weight: 900; letter-spacing: 0.04em; }
.cta-band .tel-big span { font-size: 0.9rem; font-weight: 600; display: block; color: #aab6c8; }

/* ---------- お問い合わせ ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 880px; margin: 0 auto; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { color: var(--navy); margin-bottom: 14px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 5px; color: var(--navy); }
.form-row input, .form-row textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 0.95rem; font-family: inherit;
}
.form-row textarea { min-height: 110px; resize: vertical; }

/* ---------- フッター ---------- */
.footer { background: var(--navy); color: #c2cbd9; padding: 44px 0 24px; }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer .f-logo { color: #fff; font-size: 1.2rem; font-weight: 900; margin-bottom: 8px; }
.footer ul { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { font-size: 0.9rem; }
.footer a:hover { color: var(--orange); }
.copyright { text-align: center; color: #8493a8; font-size: 0.8rem; margin-top: 28px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 880px) {
  .features, .services, .gallery, .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .yard-gallery { grid-template-columns: 1fr 1fr; }
  .reg-block { grid-template-columns: 1fr; gap: 22px; }
  .hero h1 { font-size: 2rem; }
  .nav-toggle { display: block; }
  .gnav {
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy); display: none; padding: 16px 20px;
  }
  .gnav.open { display: block; }
  .gnav ul { flex-direction: column; gap: 14px; }
  .footer .container { flex-direction: column; }
}
