/* =========================================================
   株式会社伊藤興業 コーポレートサイト
   デザインテーマ：信頼感・堅実（ネイビー系）
   ========================================================= */

:root {
  --navy:        #14294b;   /* メインの濃紺 */
  --navy-dark:   #0d1c34;   /* さらに濃い紺（フッター等） */
  --navy-light:  #26456f;   /* 明るめの紺 */
  --accent:      #c8a34e;   /* 差し色（ゴールド） */
  --accent-dark: #a9863a;
  --ink:         #22303f;   /* 本文の文字色 */
  --gray:        #5c6b7a;   /* 補足テキスト */
  --line:        #e3e8ee;   /* 罫線 */
  --bg:          #ffffff;
  --bg-soft:     #f4f7fa;   /* 薄い背景 */
  --bg-navy-soft:#eef2f7;
  --radius:      10px;
  --shadow:      0 6px 24px rgba(20, 41, 75, .08);
  --shadow-lg:   0 14px 40px rgba(20, 41, 75, .14);
  --max:         1120px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.9;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

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

a { color: var(--navy-light); text-decoration: none; transition: .2s; }
a:hover { color: var(--accent-dark); }

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

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 20px;
  letter-spacing: .02em;
  box-shadow: var(--shadow);
}
.brand-name { line-height: 1.25; }
.brand-name b { display: block; font-size: 19px; color: var(--navy); letter-spacing: .04em; }
.brand-name span { font-size: 11px; color: var(--gray); letter-spacing: .18em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 6px;
}
.nav a:hover { background: var(--bg-soft); color: var(--navy); }
.nav a.active { color: var(--navy); }
.nav a.active::after {
  content: ""; display: block; height: 2px; margin-top: 4px;
  background: var(--accent); border-radius: 2px;
}
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 11px 20px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow);
}
.header-cta:hover { background: var(--accent-dark); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; cursor: pointer;
  flex-direction: column; gap: 5px; justify-content: center; align-items: center;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; transform: translateY(-2px); }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(13,28,52,.92) 0%, rgba(20,41,75,.78) 55%, rgba(38,69,111,.55) 100%),
    url("../assets/hero.jpg") center/cover no-repeat;
  overflow: hidden;
}
.hero-inner { padding: 118px 24px 128px; max-width: var(--max); margin: 0 auto; }
.hero-badge {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.4);
  padding: 6px 16px; border-radius: 999px;
  font-size: 13px; letter-spacing: .1em; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.4; margin: 0 0 20px; font-weight: 700;
  letter-spacing: .02em;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead { font-size: clamp(15px, 2vw, 19px); max-width: 620px; color: #e7edf5; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-facts {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-facts .fact b { display: block; font-size: 30px; color: var(--accent); font-weight: 700; }
.hero-facts .fact span { font-size: 13px; color: #cdd7e4; letter-spacing: .04em; }

/* ---------- セクション共通 ---------- */
.section { padding: 92px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head .eyebrow {
  color: var(--accent-dark); font-weight: 700; font-size: 13px;
  letter-spacing: .22em; text-transform: uppercase; display: block; margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(24px, 3.4vw, 34px); color: var(--navy);
  margin: 0 0 16px; font-weight: 700; letter-spacing: .02em;
}
.section-head p { color: var(--gray); margin: 0; }

.lead-line { display: inline-block; width: 46px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 20px; }

/* ---------- 選ばれる理由 ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; box-shadow: var(--shadow); transition: .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--bg-navy-soft); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 18px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { margin: 0 0 10px; font-size: 19px; color: var(--navy); }
.feature-card p { margin: 0; color: var(--gray); font-size: 15px; }

/* ---------- サービス一覧 ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: .25s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card .thumb {
  height: 100px; position: relative;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: grid; place-items: center; color: rgba(255,255,255,.9);
}
.service-card .thumb svg { width: 34px; height: 34px; opacity: .95; }
.service-card .num {
  position: absolute; top: 10px; left: 12px;
  font-size: 11px; letter-spacing: .16em; color: var(--accent);
}
.service-card .body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--navy); }
.service-card p { margin: 0 0 10px; color: var(--gray); font-size: 13px; flex: 1; }
.service-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-card .tags span {
  font-size: 10.5px; color: var(--navy-light);
  background: var(--bg-navy-soft); padding: 3px 9px; border-radius: 999px;
}

/* ---------- 施工の流れ ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.flow-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 20px 26px; text-align: center; position: relative;
}
.flow-step .step-no {
  width: 46px; height: 46px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 18px;
}
.flow-step h4 { margin: 0 0 8px; color: var(--navy); font-size: 16px; }
.flow-step p { margin: 0; font-size: 13px; color: var(--gray); }
.flow-step:not(:last-child)::after {
  content: "▶"; position: absolute; right: -13px; top: 42px;
  color: var(--accent); font-size: 12px; z-index: 2;
}

/* ---------- 施工事例 ---------- */
.works-group { margin-bottom: 64px; }
.works-group:last-child { margin-bottom: 0; }
.works-group-title { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; }
.works-group-title .n {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
}
.works-group-title h3 { margin: 0; font-size: 21px; color: var(--navy); }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Before/After ペア表示 */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.ba-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  background: var(--accent); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.ba-pair .work-card { border: none; border-radius: 0; box-shadow: none; }
.ba-pair .work-card .photo { border-radius: 0; }
@media (max-width: 760px){
  .ba-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px){
  .ba-pair { grid-template-columns: 1fr; }
}
.work-card {
  border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: .25s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work-card .photo {
  height: 210px; position: relative; overflow: hidden;
  display: grid; place-items: center; color: #fff;
}
.work-card .photo .cat {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: #fff; font-size: 12px;
  padding: 4px 12px; border-radius: 999px; font-weight: 700;
}
.work-card .caption { padding: 18px 20px 20px; }
.work-card .caption h4 { margin: 0 0 6px; font-size: 17px; color: var(--navy); }
.work-card .caption p { margin: 0; font-size: 14px; color: var(--gray); }

/* デコレーション背景（写真プレースホルダ用） */
.ph-1 { background: linear-gradient(135deg,#2b4a74,#16294a); }
.ph-2 { background: linear-gradient(135deg,#3a5a80,#1d3453); }
.ph-3 { background: linear-gradient(135deg,#4a6786,#243f5e); }
.ph-4 { background: linear-gradient(135deg,#5a7a4a,#2c4a2e); }
.ph-5 { background: linear-gradient(135deg,#7a6a4a,#4a3e28); }
.ph-6 { background: linear-gradient(135deg,#4a5a6a,#28323e); }

/* ---------- CTA 帯 ---------- */
.cta-band {
  background:
    linear-gradient(120deg, rgba(13,28,52,.95), rgba(20,41,75,.9)),
    url("../assets/hero.jpg") center/cover;
  color: #fff; text-align: center;
}
.cta-band .container { padding-top: 78px; padding-bottom: 78px; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 14px; }
.cta-band p { color: #d8e0ea; margin: 0 0 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-phone { font-size: 30px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.cta-phone small { display: block; font-size: 13px; color: var(--accent); font-weight: 500; letter-spacing: .1em; }

/* ---------- ページ見出し（下層ページ） ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy-light));
  color: #fff; padding: 66px 0 60px; position: relative;
}
.page-hero h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 38px); letter-spacing: .04em; }
.page-hero p { margin: 0; color: #cdd7e4; letter-spacing: .1em; font-size: 14px; }
.breadcrumb { font-size: 13px; color: #aebccd; margin-bottom: 14px; }
.breadcrumb a { color: #cdd7e4; }
.breadcrumb a:hover { color: #fff; }

/* ---------- 会社概要テーブル ---------- */
.info-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { text-align: left; padding: 18px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th {
  width: 220px; background: var(--bg-soft); color: var(--navy);
  font-weight: 700; white-space: nowrap;
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
@media (max-width: 640px){
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: none; padding-bottom: 4px; }
  .info-table td { padding-top: 4px; }
}

/* ---------- 事業内容ページの詳細ブロック ---------- */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 64px; }
.svc-detail:nth-child(even) .svc-media { order: 2; }
.svc-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); height: 320px; display: grid; place-items: center; color: #fff; }
.svc-media svg { width: 90px; height: 90px; opacity: .95; }
.svc-text .eyebrow { color: var(--accent-dark); font-weight: 700; letter-spacing: .2em; font-size: 12px; }
.svc-text h3 { color: var(--navy); font-size: 26px; margin: 8px 0 14px; }
.svc-text p { color: var(--gray); margin: 0 0 18px; }
.svc-text ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.svc-text li { padding-left: 28px; position: relative; color: var(--ink); }
.svc-text li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #fff; background: var(--accent); width: 20px; height: 20px;
  border-radius: 50%; font-size: 12px; display: grid; place-items: center;
}
@media (max-width: 820px){ .svc-detail { grid-template-columns: 1fr; gap: 24px; } .svc-detail:nth-child(even) .svc-media { order: 0; } .svc-media { height: 220px; } }

/* ---------- 事業内容（コンパクトカード） ---------- */
.svc-compact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-compact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: .25s;
  display: flex; flex-direction: column;
}
.svc-compact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.svc-compact-card .media {
  height: 150px; background-size: cover; background-position: center; position: relative;
}
.svc-compact-card .media.icon-media {
  display: grid; place-items: center; color: rgba(255,255,255,.95);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
}
.svc-compact-card .media.icon-media svg { width: 42px; height: 42px; }
.svc-compact-card .media .num {
  position: absolute; top: 10px; left: 12px;
  font-size: 11px; letter-spacing: .16em; color: #fff;
  background: rgba(13,28,52,.55); padding: 3px 10px; border-radius: 999px;
}
.svc-compact-card .body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.svc-compact-card .eyebrow { color: var(--accent-dark); font-weight: 700; font-size: 11px; letter-spacing: .12em; }
.svc-compact-card h3 { margin: 5px 0 8px; font-size: 17px; color: var(--navy); }
.svc-compact-card p { margin: 0 0 12px; color: var(--gray); font-size: 13.5px; flex: 1; }
.svc-compact-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-compact-card .tags span {
  font-size: 11px; color: var(--navy-light); background: var(--bg-navy-soft);
  padding: 3px 10px; border-radius: 999px;
}
@media (max-width: 960px){ .svc-compact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .svc-compact-grid { grid-template-columns: 1fr; } }

/* ---------- お問い合わせ ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: start; }
.contact-info { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 40px 34px; }
.contact-info h3 { margin: 0 0 20px; font-size: 22px; }
.contact-info .ci-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.contact-info .ci-row:last-child { border-bottom: none; }
.contact-info .ci-ico { color: var(--accent); flex: 0 0 24px; }
.contact-info .ci-row b { display: block; font-size: 12px; color: #b9c6d6; font-weight: 500; letter-spacing: .08em; }
.contact-info .ci-row span { font-size: 17px; }
.contact-info .ci-tel { font-size: 24px; font-weight: 700; letter-spacing: .02em; }

.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 34px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 8px; font-size: 15px; }
.form-row label .req { color: #d14b4b; font-size: 12px; margin-left: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: 8px; font-family: var(--font); font-size: 15px; background: #fbfcfe;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--navy-light); background: #fff;
  box-shadow: 0 0 0 3px rgba(38,69,111,.12);
}
.form-note { font-size: 13px; color: var(--gray); margin: 6px 0 22px; }

/* ---------- お知らせ / ニュース ---------- */
.news-list { max-width: 800px; margin: 0 auto; }
.news-item { display: flex; gap: 24px; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.news-item time { color: var(--gray); font-size: 14px; white-space: nowrap; padding-top: 2px; }
.news-item .tag { background: var(--bg-navy-soft); color: var(--navy-light); font-size: 12px; padding: 2px 12px; border-radius: 999px; height: fit-content; white-space: nowrap; }
.news-item p { margin: 0; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy-dark); color: #c6d0dd; padding: 64px 0 26px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-mark { margin-bottom: 16px; }
.footer-brand p { color: #9fb0c2; margin: 0; line-height: 1.9; }
.footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 16px; letter-spacing: .06em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #c6d0dd; }
.footer-col a:hover { color: var(--accent); }
.footer-contact b { color: #fff; display: block; font-size: 20px; letter-spacing: .02em; }
.footer-contact span { color: #9fb0c2; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8497aa; font-size: 13px; }

/* ---------- フェードイン ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px){
  .features, .services, .works-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step::after { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px){
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.open { display: block; }
  .site-nav.open .nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; gap: 4px; box-shadow: var(--shadow);
  }
  .site-nav.open .nav a { padding: 12px 10px; }
  .hero-inner { padding: 84px 24px 90px; }
  .hero-facts { gap: 26px; }
}
@media (max-width: 560px){
  .features, .services, .works-grid, .flow, .footer-top { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .container { padding: 0 18px; }
}
