/* 株式会社聖小 LP
   コンクリートのグレー × 深い藍。防水の「層」を水平の帯で表す。 */
:root {
  --ink: #1d2b36;
  --ink-soft: #4a5a66;
  --line: #d6dbdf;
  --concrete: #f1f3f4;
  --paper: #ffffff;
  --accent: #2b6f94;
  --accent-deep: #1f5573;
  --accent-light: #d9e8f0;
  --font-head: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 112px; }
@media (min-width: 900px) { html { scroll-padding-top: 72px; } }

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

a { color: inherit; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.pc-only { display: none; }
@media (min-width: 768px) { .pc-only { display: inline; } }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent); border-radius: 2px;
  font-weight: 700; font-size: 15px; letter-spacing: .06em; text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; column-gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-logo { display: block; width: auto; height: 38px; }
@media (min-width: 768px) { .brand-logo { height: 42px; } }
/* スマホ: ナビはヘッダーの2段目に横並び(はみ出す分は横にスクロール)。PC: ロゴの右に並べる */
.global-nav {
  order: 3; display: flex; gap: 20px; width: calc(100% + 32px); margin: 0 -16px;
  padding: 10px 16px; overflow-x: auto; white-space: nowrap;
  border-top: 1px solid var(--line); scrollbar-width: none;
}
.global-nav::-webkit-scrollbar { display: none; }
.global-nav a { text-decoration: none; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.global-nav a:hover { color: var(--accent); }
.header-inner > .btn-small { margin: 12px 0; }
/* スマホではヘッダーの「お問い合わせ」ボタンがあるので、ナビからは外す(4つが1行に収まる) */
.global-nav .nav-contact { display: none; }
@media (min-width: 900px) {
  .global-nav { order: 0; width: auto; margin: 0; padding: 0; gap: 28px; border-top: 0; overflow: visible; }
  .global-nav a { font-size: 14px; }
  .global-nav .nav-contact { display: inline; }
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #24394a 0%, var(--ink) 55%, #141e26 100%);
  color: #fff;
  padding: 72px 0 96px;
}
@media (min-width: 768px) { .hero { padding: 128px 0 152px; } }
.hero-layers { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; pointer-events: none; }
.hero-layers span {
  position: absolute; left: 0; right: 0; display: block;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero-layers span:nth-child(1) { bottom: 0; height: 100%; background: rgba(255,255,255,.025); }
.hero-layers span:nth-child(2) { bottom: 0; height: 72%; background: rgba(255,255,255,.03); }
.hero-layers span:nth-child(3) { bottom: 0; height: 44%; background: rgba(43,111,148,.18); border-top-color: rgba(120,180,214,.35); }
.hero-layers span:nth-child(4) { bottom: 0; height: 18%; background: rgba(43,111,148,.28); }
.hero-inner { position: relative; }
.eyebrow { margin: 0 0 20px; font-size: 12px; font-weight: 700; letter-spacing: .28em; color: #9cc3d9; }
.hero h1 {
  margin: 0 0 24px;
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(32px, 8.4vw, 60px); line-height: 1.35; letter-spacing: .04em;
}
.lead { margin: 0 0 36px; max-width: 40em; color: rgba(255,255,255,.82); font-size: 15px; }
@media (min-width: 768px) { .lead { font-size: 17px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- セクション共通 ---------- */
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section-alt { background: var(--concrete); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { margin-bottom: 28px; }
@media (min-width: 768px) { .section-head { margin-bottom: 56px; } }
.section-en {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .28em; color: var(--accent);
}
.section-en::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-dark .section-en { color: #9cc3d9; }
.section-head h2 {
  margin: 0; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(26px, 5.6vw, 36px); line-height: 1.4; letter-spacing: .06em;
}
.section-lead { margin: 16px 0 0; max-width: 42em; color: var(--ink-soft); }
.section-dark .section-lead { color: rgba(255,255,255,.78); }

/* ---------- 文章(私たちについて・代表挨拶・採用) ---------- */
.prose { max-width: 42em; }
.prose p { margin: 0 0 1.2em; }
.prose p:last-child { margin-bottom: 0; }
.lead-heading {
  font-family: var(--font-head); font-weight: 700; color: var(--ink);
  font-size: clamp(20px, 4.6vw, 26px); line-height: 1.6; letter-spacing: .04em;
  padding-left: 16px; border-left: 4px solid var(--accent);
  margin-bottom: 1.1em !important;
}
.message-card { background: var(--paper); border: 1px solid var(--line); padding: 24px 18px; }
@media (min-width: 768px) { .message-card { padding: 48px 56px; } }
.signature { margin-top: 2em !important; text-align: right; font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: .1em; }
.signature span { margin-right: 1em; font-size: 14px; color: var(--ink-soft); letter-spacing: .06em; }

/* ---------- 大切にしていること ---------- */
.value-grid { display: grid; gap: 12px; }
@media (min-width: 820px) { .value-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.value { border-top: 4px solid var(--accent); background: var(--concrete); padding: 18px 18px 20px; }
.value-no { font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--accent); letter-spacing: .12em; }
.value h3 { margin: 6px 0 10px; font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: .06em; }
.value p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }

/* ---------- 施工の流れ ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 820px) { .flow { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.flow li { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); padding: 14px 14px 16px; }
.flow-no {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 14px;
  border-bottom: 3px solid var(--accent);
}
.flow h3 { margin: 2px 0 4px; font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: .04em; }
.flow p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }

/* ---------- 事業内容 ---------- */
.service-grid { display: grid; gap: 24px; }
@media (min-width: 820px) { .service-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.service {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  padding: 22px 18px 24px;
}
@media (min-width: 768px) { .service { padding: 40px 40px 44px; } }
.service-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.service-no { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--accent); letter-spacing: .1em; }
.service h3 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 24px; letter-spacing: .06em; }
.service p { margin: 0 0 24px; color: var(--ink-soft); }
.service .tag-label { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--ink); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-list li {
  padding: 6px 14px;
  background: var(--accent-light); color: var(--accent-deep);
  font-size: 14px; font-weight: 500; line-height: 1.5;
}

/* ---------- 会社概要 ---------- */
.profile { margin: 0; background: var(--paper); border-top: 2px solid var(--ink); }
.profile > div { display: grid; border-bottom: 1px solid var(--line); padding: 18px 4px; gap: 4px; }
@media (min-width: 640px) {
  .profile > div { grid-template-columns: 180px 1fr; gap: 24px; padding: 22px 24px; }
}
.profile dt { font-weight: 700; color: var(--ink-soft); font-size: 14px; }
@media (min-width: 640px) { .profile dt { font-size: 15px; } }
.profile dd { margin: 0; }
.profile .kana { margin-left: .25em; font-size: .88em; color: var(--ink-soft); }

/* ---------- アクセス ---------- */
.access { display: grid; gap: 24px; }
@media (min-width: 820px) { .access { grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; } }
.map { aspect-ratio: 4 / 3; background: var(--concrete); border: 1px solid var(--line); }
@media (min-width: 820px) { .map { aspect-ratio: 16 / 10; } }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.access-text p { margin: 0 0 12px; }
.access-name { font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: .06em; }
.text-link { color: var(--accent); font-weight: 700; text-underline-offset: 4px; }

/* ---------- お問い合わせ ---------- */
.contact-cards { display: grid; gap: 16px; }
@media (min-width: 768px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-cards:not(:has(> :not([hidden]))) { display: none; }
.contact-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 24px 28px;
  border: 1px solid rgba(255,255,255,.28);
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.contact-card:hover { background: rgba(255,255,255,.06); border-color: #9cc3d9; }
.contact-label { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: #9cc3d9; }
.contact-value { font-family: var(--font-head); font-weight: 700; font-size: 26px; letter-spacing: .06em; }
.contact-pending {
  margin: 16px 0 0; padding: 22px 24px;
  border: 1px dashed rgba(255,255,255,.35);
  color: rgba(255,255,255,.85);
}

/* ---------- フッター ---------- */
.site-footer { background: #141e26; color: rgba(255,255,255,.7); padding: 40px 0; font-size: 13px; }
.footer-inner p { margin: 0 0 4px; }
.footer-logo { display: block; width: auto; height: 44px; margin-bottom: 16px; }
.copyright { margin-top: 16px !important; color: rgba(255,255,255,.5); }
