/* 株式会社 京葉整管 ホームページ */
:root {
  --orange: #EE5A28;
  --navy: #17283A;
  --ink: #1F2328;
  --muted: #56606B;
  --line: #D9DEE3;
  --tint: #F4F6F8;
  --white: #FFFFFF;
  --header-h: 72px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: "Noto Sans JP", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  color: var(--ink); background: var(--white);
  font-size: 16px; line-height: 1.9;
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.serif { font-family: "Noto Serif JP", "Yu Mincho", serif; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 42px; height: 42px; }
.brand span { font-size: 20px; font-weight: 900; letter-spacing: .18em; line-height: 1.15; }
.brand small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .3em; color: var(--muted); }
.brand-light { color: #fff; }
.brand-light small { color: rgba(255,255,255,.75); }
.gnav { display: flex; align-items: center; gap: 4px; }
.gnav a { text-decoration: none; font-size: 15px; font-weight: 700; color: var(--navy); padding: 8px 12px; border-radius: 4px; }
.gnav a:hover { color: var(--orange); }
.gnav .nav-tel { background: var(--orange); color: #fff; margin-left: 8px; padding: 9px 18px; }
.gnav .nav-tel:hover { background: #d84c1d; color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--navy); transition: .25s; }
.menu-btn span:nth-child(1) { top: 14px; } .menu-btn span:nth-child(2) { top: 21px; } .menu-btn span:nth-child(3) { top: 28px; }
.nav-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
.nav-open .menu-btn span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- メインビジュアル ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; background: var(--navy); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,40,58,.75) 0%, rgba(23,40,58,.35) 60%, rgba(23,40,58,.1) 100%), linear-gradient(180deg, rgba(23,40,58,0) 50%, rgba(23,40,58,.9) 100%); }
.hero-text { position: relative; padding-top: 120px; padding-bottom: 72px; }
.hero .en { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .35em; color: #fff; background: var(--orange); padding: 4px 12px; }
.hero h1 { margin-top: 12px; font-size: clamp(28px, 4.6vw, 52px); line-height: 1.5; letter-spacing: .06em; font-weight: 900; }
.hero h1 em { font-style: normal; color: #FF8A5C; }
.hero .lead { margin-top: 18px; max-width: 720px; font-size: clamp(15px, 1.6vw, 17px); color: rgba(255,255,255,.9); }
.hero-btns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 14px 28px; border-radius: 4px; letter-spacing: .05em; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #d84c1d; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.85); color: #fff; }
.btn-ghost::before { content: "TEL "; font-size: 12px; color: var(--orange); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- 強み ---------- */
.strengths { background: var(--navy); color: #fff; padding: 0 0 56px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.st { border-top: 3px solid var(--orange); padding-top: 18px; }
.st-no { font-size: 13px; font-weight: 900; color: var(--orange); letter-spacing: .2em; }
.st h3 { font-size: 19px; line-height: 1.5; margin: 4px 0 6px; }
.st p { font-size: 15px; color: rgba(255,255,255,.82); line-height: 1.8; }

/* ---------- 共通セクション ---------- */
.sec { padding: 96px 0; }
.sec-tint { background: var(--tint); }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.sec-head .en { font-size: 13px; font-weight: 700; letter-spacing: .3em; color: var(--orange); }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 900; letter-spacing: .08em; color: var(--navy); }
.sec-head::after { content: ""; flex: 1; height: 1px; background: var(--line); align-self: center; }
.sec-head-light h2 { color: #fff; }
.sec-head-light::after { background: rgba(255,255,255,.25); }
.sec-lead { margin: -8px 0 32px; max-width: 860px; }
.sub-head { display: flex; align-items: baseline; gap: 14px; font-size: 24px; font-weight: 900; color: var(--navy); margin: 72px 0 24px; }
.sub-head .en { font-size: 12px; letter-spacing: .3em; color: var(--orange); }
.no { font-size: 13px; font-weight: 900; color: var(--orange); letter-spacing: .2em; }

/* ---------- ごあいさつ ---------- */
.message { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.message-ph { position: relative; }
.message-ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 56%; }
.message-ph::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 38%; height: 8px; background: var(--orange); }
.message-text h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.6; color: var(--navy); margin-bottom: 18px; }
.message-text p + p { margin-top: 12px; }
.sign { text-align: right; margin-top: 24px !important; }
.sign b { font-size: 22px; letter-spacing: .3em; margin-left: 12px; }

/* ---------- 事業内容 ---------- */
.card { background: #fff; overflow: hidden; }
.card-body { padding: 22px 26px 26px; }
.card h3 { font-size: 21px; color: var(--navy); font-weight: 900; line-height: 1.5; margin: 2px 0 8px; }
.card p { font-size: 15.5px; line-height: 1.85; }
.biz-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ph2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.ph2 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ph2-tv { grid-template-columns: 2fr 3fr; background: #333; }
.ph2-tv img { aspect-ratio: auto; height: 100%; }
.biz-mini { margin: 48px 0; }
.mini { border-top: 3px solid var(--navy); padding-top: 16px; }
.mini h3 { font-size: 19px; color: var(--navy); font-weight: 900; line-height: 1.45; margin: 2px 0 8px; }
.mini h3 small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.mini p { font-size: 15px; line-height: 1.85; }
.card-wide { margin-bottom: 24px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.steps figure { position: relative; }
.steps img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.steps figcaption, .case-grid figcaption { position: absolute; left: 0; bottom: 0; background: rgba(23,40,58,.85); color: #fff; font-size: 14px; font-weight: 700; padding: 5px 14px 5px 8px; display: flex; align-items: center; gap: 8px; }
.steps figcaption b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); font-size: 12px; }
.biz-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card-text, .card-dark { padding: 26px 28px; }
.card-dark { background: var(--navy); color: #fff; }
.card-dark h3 { color: #fff; }
.card-dark p { color: rgba(255,255,255,.88); }
.areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.areas span { border: 1px solid var(--orange); font-weight: 700; padding: 4px 14px; letter-spacing: .08em; }

/* ---------- 施工実績 ---------- */
.case-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 14px; }
.badge { background: var(--orange); color: #fff; font-weight: 900; font-size: 14px; padding: 3px 14px; letter-spacing: .1em; }
.case-head h3 { font-size: 24px; color: var(--navy); font-weight: 900; }
.case-grid { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 520px; }
.case-grid figure { position: relative; overflow: hidden; }
.case-grid .cg-main { grid-row: 1 / 3; }
.case-grid img { width: 100%; height: 100%; object-fit: cover; }
.flow { margin-top: 24px; display: grid; grid-template-columns: 140px 1fr; background: var(--tint); }
.flow-title { background: var(--navy); color: #fff; font-weight: 900; font-size: 18px; display: grid; place-items: center; text-align: center; padding: 12px; }
.flow ol { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: f; }
.flow li { counter-increment: f; padding: 16px 18px; font-size: 14.5px; line-height: 1.7; }
.flow li + li { border-left: 1px dashed #B8C0C8; }
.flow li b { display: block; color: var(--navy); font-size: 17px; margin-bottom: 2px; }
.flow li b::before { content: counter(f); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 13px; margin-right: 8px; vertical-align: 2px; }
.safety { display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: center; margin-top: 56px; }
.safety > img { border: 1px solid var(--line); background: #fff; }
.safety .sub-head { margin: 0 0 18px; }
.safety ul { list-style: none; display: grid; gap: 14px; counter-reset: s; }
.safety li { counter-increment: s; position: relative; padding-left: 40px; font-size: 15.5px; }
.safety li b { display: block; color: var(--navy); font-size: 18px; }
.safety li::before { content: counter(s); position: absolute; left: 0; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 14px; font-weight: 900; display: grid; place-items: center; }

/* ---------- 保有車両 ---------- */
.fleet-ph { margin-bottom: 28px; }
.fleet-ph img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; background: #3d3d3d; }
.fleet-ph figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; }
table { border-collapse: collapse; width: 100%; }
.fleet { font-size: 14.5px; line-height: 1.6; min-width: 860px; }
.fleet th, .fleet td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fleet thead th { background: var(--navy); color: #fff; font-weight: 700; white-space: nowrap; }
.fleet td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
.fleet td:nth-child(2), .fleet td:nth-child(3) { white-space: nowrap; }
.fleet .num { text-align: right; white-space: nowrap; }
.fleet tbody tr:nth-child(even) td { background: #FAFBFC; }
.note-sp { display: none; font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- 会社概要 ---------- */
.outline, .hist { font-size: 15.5px; }
.outline th, .outline td, .hist th, .hist td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.outline tr:first-child th, .outline tr:first-child td, .hist tr:first-child th, .hist tr:first-child td { border-top: 2px solid var(--navy); }
.outline th, .hist th { width: 200px; background: var(--tint); color: var(--navy); font-weight: 700; }
.hist th { width: 150px; white-space: nowrap; }
.outline .sub { color: var(--muted); font-size: 14px; }
.outline ul { list-style: none; }
.outline li { position: relative; padding-left: 16px; }
.outline li::before { content: ""; position: absolute; left: 0; top: .8em; width: 7px; height: 7px; background: var(--orange); }

/* ---------- お問い合わせ ---------- */
.contact { background: var(--navy); color: #fff; padding: 96px 0; }
.contact-lead { margin: -8px 0 32px; color: rgba(255,255,255,.88); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.office { border: 1px solid rgba(255,255,255,.2); padding: 28px 30px; }
.office h3 { color: var(--orange); font-size: 17px; letter-spacing: .15em; margin-bottom: 8px; }
.office p { color: rgba(255,255,255,.9); }
.office .tel { display: block; width: fit-content; margin-top: 10px; font-size: 30px; font-weight: 900; letter-spacing: .04em; text-decoration: none; line-height: 1.3; }
.office .tel small { font-size: 14px; color: var(--orange); margin-right: 8px; }
.office .fax { font-size: 16px; color: rgba(255,255,255,.8); }
.office .map { display: block; width: fit-content; margin-top: 14px; font-size: 14px; color: #fff; text-underline-offset: 4px; }

/* ---------- フッター ---------- */
.site-footer { background: #0F1C29; color: #fff; padding: 32px 0; border-bottom: 6px solid var(--orange); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .brand img { width: 36px; height: 36px; }
.copy { font-size: 13px; color: rgba(255,255,255,.65); }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: #fff; text-decoration: none; display: grid; place-items: center; font-size: 14px; box-shadow: 0 4px 12px rgba(0,0,0,.2); z-index: 40; }

/* ---------- タブレット ---------- */
@media (max-width: 960px) {
  .gnav a { padding: 8px 8px; font-size: 14px; }
  .message { grid-template-columns: 1fr; gap: 40px; }
  .safety { grid-template-columns: 1fr; gap: 24px; }
  .safety > img { max-width: 420px; }
  .flow { grid-template-columns: 1fr; }
  .flow ol { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(3) { border-left: 0; }
  .flow li:nth-child(n+3) { border-top: 1px dashed #B8C0C8; }
}

/* ---------- スマートフォン ---------- */
@media (max-width: 760px) {
  :root { --header-h: 62px; }
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .brand img { width: 36px; height: 36px; }
  .brand span { font-size: 17px; }
  .menu-btn { display: block; }
  .gnav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.08); padding: 8px 16px 16px; transform: translateY(-120%); visibility: hidden; transition: transform .25s, visibility .25s; }
  .nav-open .gnav { transform: none; visibility: visible; }
  .gnav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; border-radius: 0; }
  .gnav .nav-tel { margin: 12px 0 0; text-align: center; border-radius: 4px; border-bottom: 0; }
  .hero { min-height: min(78vh, 640px); }
  .hero-text { padding-bottom: 44px; }
  .grid3, .biz-feature, .biz-pair, .contact-grid { grid-template-columns: 1fr; }
  .strengths .grid3 { gap: 20px; }
  .sec, .contact { padding: 64px 0; }
  .sec-head { margin-bottom: 24px; gap: 12px; }
  .biz-mini { margin: 36px 0; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .ph2-tv { grid-template-columns: 1fr 1.4fr; }
  .case-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
  .case-grid .cg-main { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 4 / 3; }
  .case-grid figure:not(.cg-main) { aspect-ratio: 4 / 3; }
  .case-grid figcaption, .steps figcaption { font-size: 12.5px; }
  .flow ol { grid-template-columns: 1fr; }
  .flow li + li { border-left: 0; border-top: 1px dashed #B8C0C8; }
  .note-sp { display: block; }
  .outline th, .outline td, .hist th, .hist td { display: block; width: auto; padding: 10px 12px; }
  .outline th, .hist th { border-bottom: 0; padding-bottom: 4px; }
  .outline tr:first-child td, .hist tr:first-child td { border-top: 0; }
  .sub-head { font-size: 21px; margin-top: 56px; }
  .office { padding: 22px 20px; }
  .office .tel { font-size: 26px; }
  .sign b { font-size: 19px; }
}
.footer-recruit { color: #fff; font-size: 14px; font-weight: 700; text-underline-offset: 4px; }

/* ---------- トピックス ---------- */
.topics { padding-bottom: 40px; }
.topic { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; background: var(--tint); padding: 28px; }
.topic-ph { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.topic-ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.topic-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); font-weight: 700; }
.topic-body h3 { font-size: 21px; color: var(--navy); font-weight: 900; line-height: 1.55; margin: 8px 0 12px; }
.topic-body p + p { margin-top: 10px; }
.topic-body p:not(.topic-meta) { font-size: 15.5px; }
@media (max-width: 760px) {
  .topic { grid-template-columns: 1fr; gap: 18px; padding: 18px 16px; }
  .topic-body h3 { font-size: 18px; }
}
