/* 株式会社J.M.Lgroup のサイト(022。聖小の組み立てを写し、色を紺と水色に替えた)
   深い紺 × 水色。防水の「層」を水平の帯で表す。 */
:root {
  --ink: #0b2340;
  --ink-soft: #3f5670;
  --line: #d3e0e8;
  --concrete: #eef5f8;
  --paper: #ffffff;
  --accent: #1290b8;
  --accent-deep: #0c6d8d;
  --accent-light: #dbf1f8;
  --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-family: inherit; font-weight: 700; font-size: 15px; letter-spacing: .06em; text-decoration: none; cursor: pointer;
  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, #123a66 0%, var(--ink) 55%, #081a33 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(18,144,184,.18); border-top-color: rgba(127,214,238,.35); }
.hero-layers span:nth-child(4) { bottom: 0; height: 18%; background: rgba(18,144,184,.28); }
.hero-inner { position: relative; }
.eyebrow { margin: 0 0 20px; font-size: 12px; font-weight: 700; letter-spacing: .28em; color: #7fd6ee; }
.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: #7fd6ee; }
.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: #7fd6ee; }
.contact-label { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: #7fd6ee; }
.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: #081a33; 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); }

/* ---------- JML で足したもの(022) ---------- */
.draft-bar {
  margin: 0; padding: 6px 16px;
  background: #fff4c2; color: #5a4a00;
  font-size: 12px; text-align: center; letter-spacing: .04em;
}

.area {
  margin-top: 40px; padding: 20px 24px;
  background: var(--paper); border-left: 4px solid var(--accent);
}
.area p { margin: 0; }
.area .tag-label { margin-bottom: 4px; }

.contact-form {
  display: grid; gap: 18px;
  max-width: 720px; margin-top: 40px; padding: 28px 20px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.18);
}
@media (min-width: 768px) { .contact-form { padding: 36px 40px; } }
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.form-row .req {
  margin-left: 8px; padding: 1px 6px;
  background: var(--accent); color: #fff; font-size: 11px; border-radius: 2px;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 2px;
  font: inherit; font-size: 16px;
}
.contact-form textarea { resize: vertical; }
.contact-form [aria-invalid="true"] { border-color: #ff8a80; outline: 2px solid #ff8a80; }
.contact-form .btn { justify-self: start; }
.form-error { margin: 0; color: #ffb4ab; font-weight: 700; }
.form-note { margin: 0; font-size: 13px; color: rgba(255,255,255,.75); }

/* ---------- 求人募集のページ(022 追記2・recruit/) ---------- */
.hero.hero-page { min-height: max(420px, 62svh); padding: 64px 0 96px; }
@media (min-width: 768px) { .hero.hero-page { min-height: max(480px, 64vh); } }
.hero.hero-page h1 { font-size: clamp(32px, 7.5vw, 64px); }

.pay-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .pay-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.pay-card {
  padding: 28px 24px; background: var(--paper);
  border-top: 4px solid var(--accent);
}
@media (min-width: 768px) { .pay-card { padding: 36px 40px; } }
.pay-card p { margin: 0; }
.pay-label { font-weight: 700; letter-spacing: .08em; color: var(--ink-soft); }
.pay-value { margin-top: 8px !important; font-size: 20px; font-weight: 700; color: var(--ink); }
.pay-value strong { font-size: 44px; line-height: 1.1; color: var(--accent); margin: 0 .08em; }
@media (min-width: 768px) { .pay-value strong { font-size: 56px; } }
.pay-note { margin-top: 6px !important; font-size: 14px; color: var(--ink-soft); }

.note-text { margin: 20px 0 0; font-size: 14px; color: var(--ink-soft); }

/* トップから求人募集へのつなぎ */
.recruit-band {
  display: grid; gap: 16px; align-items: center;
  padding: 28px 24px; background: var(--paper); border-left: 4px solid var(--accent);
}
@media (min-width: 768px) { .recruit-band { grid-template-columns: 1fr auto; padding: 36px 40px; } }
.recruit-band h3 { margin: 0 0 6px; font-size: 20px; }
.recruit-band p { margin: 0; }

/* ---------- 施工事例の一覧(022 追記3・works/) ---------- */
/* 写真を置かない最初の画面(事例の写真と取り違えないため)。紺の地に、水の層の飾りだけ */
.hero.hero-plain { min-height: max(320px, 40svh); padding: 56px 0 88px; }
@media (min-width: 768px) { .hero.hero-plain { min-height: max(360px, 44vh); } }

.works-empty {
  padding: 48px 24px; text-align: center;
  background: var(--accent-light); border: 1px dashed var(--accent);
}
@media (min-width: 768px) { .works-empty { padding: 72px 40px; } }
.works-empty p { margin: 0; }
.works-empty-title { margin-bottom: 8px !important; font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--ink); }

.works-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.work { background: var(--paper); border: 1px solid var(--line); }
.work-media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--accent-light); }
.work-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-body { padding: 18px 20px 22px; }
.work-body h3 { margin: 0 0 8px; font-size: 17px; }
.work-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 13px; color: var(--ink-soft); }
.work-note { margin: 10px 0 0; font-size: 14px; }
.works-link { margin-top: 32px; }
