:root {
  --navy: #0d2b52;
  --navy-deep: #081d38;
  --sky: #2f9bd6;
  --sky-dark: #1e7fb6;
  --sky-pale: #e9f5fc;
  --sky-line: #cfe6f4;
  --text: #1d2a38;
  --muted: #5d6b7a;
  --line: #e1e8ef;
  --bg: #ffffff;
  --max: 1160px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: "Noto Sans JP", sans-serif; color: var(--text); background: var(--bg); line-height: 1.85; font-size: 16px; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.en { font-family: "Montserrat", sans-serif; letter-spacing: .12em; }

/* 仮の写真枠（実際の写真に差し替える） */
.photo {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 2px, transparent 2px 16px),
    linear-gradient(135deg, #9fcde9, #5a9cc7);
  color: rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; letter-spacing: .1em; text-align: center; padding: 8px;
  overflow: hidden;
}
.photo:has(img), .photo:has(iframe) { padding: 0; background: var(--sky-pale); }
.photo img, .photo iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 14px;
  padding: 13px 26px; border-radius: 2px; transition: background .2s;
}
.btn:hover { background: var(--sky); }
.btn.sky { background: var(--sky); }
.btn.sky:hover { background: var(--sky-dark); }
.btn.white { background: #fff; color: var(--navy); }
.btn.white:hover { background: var(--sky-pale); }
.btn::after { content: "›"; font-size: 18px; line-height: 1; }


/* セクション共通 */
section.block { padding: 96px 0; }
section.pale { background: var(--sky-pale); }
.sec-head { margin-bottom: 48px; }
.sec-head .en { display: block; font-size: 13px; color: var(--sky); font-weight: 700; margin-bottom: 6px; }
.sec-head h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; color: var(--navy); line-height: 1.45; }
.sec-head h2::after { content: ""; display: block; width: 48px; height: 3px; background: var(--sky); margin-top: 16px; }
.sec-head p { color: var(--muted); margin-top: 16px; max-width: 720px; }
.sec-head.center { text-align: center; }
.sec-head.center h2::after { margin-left: auto; margin-right: auto; }
.sec-head.center p { margin-left: auto; margin-right: auto; }
.more { margin-top: 40px; text-align: center; }

/* 代表メッセージ */
.message { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.message h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 900; color: var(--navy); line-height: 1.6; margin-bottom: 22px; }
.message p { color: var(--muted); margin-bottom: 14px; }
.message .sign { color: var(--text); font-weight: 700; margin-top: 20px; }
.message .sign small { font-weight: 400; color: var(--muted); margin-right: 10px; }
.message .photo { aspect-ratio: 4 / 5; border-radius: 4px; }

/* 社員紹介 */
.members { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
.member .photo { aspect-ratio: 15 / 16; border-radius: 4px; margin-bottom: 10px; background: linear-gradient(180deg, #fff, var(--sky-line)); }
.member .photo img { object-fit: cover; object-position: center top; }
.member b { display: block; font-size: 14px; color: var(--navy); }
.member small { color: var(--muted); font-size: 12px; }


/* 安心・安全 */
.safety { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.safety-card .photo { aspect-ratio: 16 / 10; border-radius: 4px 4px 0 0; }
.safety-card .body { border: 1px solid var(--line); border-top: 0; padding: 26px 26px 28px; }
.safety-card .no { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--sky); font-size: 13px; letter-spacing: .1em; }
.safety-card h3 { font-size: 19px; color: var(--navy); margin: 4px 0 10px; }
.safety-card p { font-size: 14.5px; color: var(--muted); }

/* 数字 */
.stats { background: var(--navy); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 12px; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat .cap { font-size: 13px; color: #b9cde0; margin-bottom: 4px; }
.stat .num { font-family: "Montserrat", sans-serif; font-size: 40px; font-weight: 700; color: #fff; line-height: 1.2; }
.stat .num small { font-size: 16px; color: #8fd0f3; margin-left: 4px; }

/* 事業内容 */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 10px rgba(13,43,82,.06); transition: transform .2s, box-shadow .2s; }
.service:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(13,43,82,.14); }
.service .photo { aspect-ratio: 4 / 3; }
.service .body { padding: 16px 18px 20px; }
.service h3 { font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.service p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* 施工実績 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filters button { border: 1px solid var(--sky-line); background: #fff; padding: 8px 18px; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; color: var(--navy); }
.filters button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.work .photo { aspect-ratio: 16 / 10; }
.work .body { padding: 18px 20px 22px; }
.work .tag { display: inline-block; background: var(--sky-pale); color: var(--sky-dark); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 2px; margin-bottom: 8px; }
.work h3 { font-size: 16px; color: var(--navy); margin-bottom: 8px; }
.work dl { display: grid; grid-template-columns: 5em 1fr; font-size: 13px; row-gap: 2px; }
.work dt { color: var(--muted); }
.work.hide { display: none; }

/* 採用バナー */
.recruit { background: linear-gradient(110deg, var(--navy) 0%, var(--navy) 55%, var(--sky) 100%); color: #fff; }
.recruit .wrap { display: grid; grid-template-columns: 6fr 5fr; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.recruit .en { color: #8fd0f3; font-size: 13px; font-weight: 700; }
.recruit h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; margin: 8px 0 16px; line-height: 1.5; }
.recruit p { color: #d3e3f1; margin-bottom: 28px; }
.recruit .photo { aspect-ratio: 16 / 10; border-radius: 4px; }

/* お知らせ */
.news { list-style: none; border-top: 1px solid var(--line); }
.news li a { display: grid; grid-template-columns: 7em 7em 1fr; gap: 16px; align-items: center; padding: 20px 8px; border-bottom: 1px solid var(--line); transition: background .2s; }
.news li a:hover { background: var(--sky-pale); }
.news time { font-family: "Montserrat", sans-serif; font-size: 14px; color: var(--muted); }
.news .cat { font-size: 12px; text-align: center; border: 1px solid var(--sky); color: var(--sky-dark); padding: 1px 6px; border-radius: 2px; }

/* お問い合わせ */
.contact { background: var(--sky-pale); padding: 88px 0; }
.contact-box { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.contact-card { background: #fff; border-top: 4px solid var(--navy); padding: 34px 24px; text-align: center; box-shadow: 0 2px 10px rgba(13,43,82,.06); }
.contact-card h3 { font-size: 15px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.contact-card .tel { font-family: "Montserrat", sans-serif; font-size: 38px; color: var(--navy); font-weight: 700; line-height: 1.25; display: inline-block; }
.contact-card small { display: block; color: var(--muted); font-size: 13px; margin-top: 8px; }
.contact-card .btn { margin-top: 10px; padding: 16px 36px; font-size: 15px; }

/* フッター */
footer { background: var(--navy-deep); color: #a8b8c9; font-size: 13px; padding: 56px 0 24px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer .logo b { color: #fff; }
footer .logo span { color: #a8b8c9; }
footer address { font-style: normal; margin-top: 16px; line-height: 2; }
footer h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
footer ul { list-style: none; line-height: 2.2; }
footer a:hover { color: #8fd0f3; }
footer .copy { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: 12px; }

.sp-cta { display: none; }

/* レスポンシブ */
@media (max-width: 1024px) {
  .members { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  section.block { padding: 64px 0; }
  .message, .safety, .works, .recruit .wrap, .contact-box, footer .cols { grid-template-columns: 1fr; }
  .message { gap: 28px; }
  .message .photo { aspect-ratio: 16 / 10; order: -1; }
  .members { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .services { gap: 12px; }
  .service p { display: none; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 24px 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat .num { font-size: 32px; }
  .news li a { grid-template-columns: auto auto 1fr; gap: 6px 12px; }
  .news li a span:last-child { grid-column: 1 / -1; }
  .contact-card .tel { font-size: 30px; }
  footer { padding-bottom: 90px; }
  .sp-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; }
  .sp-cta a { padding: 15px; text-align: center; font-weight: 700; color: #fff; font-size: 15px; }
  .sp-cta a:first-child { background: var(--navy); }
  .sp-cta a:last-child { background: var(--sky); }
}

/* 会社概要 */
      .company { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; }
      table.outline { width: 100%; border-collapse: collapse; font-size: 15px; }
      table.outline th, table.outline td { border-bottom: 1px solid var(--line); padding: 15px 18px; text-align: left; vertical-align: top; }
      table.outline tr:first-child th, table.outline tr:first-child td { border-top: 2px solid var(--navy); }
      table.outline th { width: 9em; background: var(--sky-pale); color: var(--navy); font-weight: 700; }
      .map { min-height: 360px; border-radius: 4px; }
      @media (max-width: 768px) {
        .company { grid-template-columns: 1fr; }
        table.outline th { width: 7em; padding: 12px; }
        table.outline td { padding: 12px; }
        .map { min-height: 240px; }
      }

/* 代表メッセージ */
.message .photo.president { aspect-ratio: 4 / 5; background: linear-gradient(180deg, #fff, var(--sky-line)); }
.member small { display: block; }

/* 施工実績：クリックで拡大 */
.work .photo { cursor: zoom-in; position: relative; }
.work .photo img { transition: transform .4s; }
.work .photo:hover img { transform: scale(1.05); }
.work .photo::after {
  content: "＋ 拡大"; position: absolute; right: 10px; bottom: 10px;
  background: rgba(13,43,82,.8); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 2px; letter-spacing: .05em;
}
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,29,56,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lb-inner { position: relative; width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 4px; overflow: hidden; }
.lb-photo { position: relative; background: #000; display: flex; align-items: center; justify-content: center; }
.lb-photo img { max-width: 100%; max-height: 72vh; object-fit: contain; display: block; }
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--navy); font-size: 30px; line-height: 1;
}
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; font-size: 24px; line-height: 1;
}
.lb-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 18px 24px 20px; }
.lb-body .tag { display: inline-block; background: var(--sky-pale); color: var(--sky-dark); font-size: 12px; font-weight: 700; padding: 2px 10px; margin-bottom: 6px; }
.lb-body h3 { font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.lb-body dl { display: grid; grid-template-columns: 5em 1fr; font-size: 14px; }
.lb-body dt { color: var(--muted); }
.lb-count { font-family: "Montserrat", sans-serif; color: var(--muted); font-size: 13px; white-space: nowrap; }
@media (max-width: 768px) {
  .lightbox { padding: 12px; }
  .lb-photo img { max-height: 60vh; }
  .lb-prev, .lb-next { width: 38px; height: 38px; font-size: 24px; }
  .lb-body { padding: 14px 16px; }
}


/* 採用情報ページ */
.tbd { display: inline-block; background: #fff4d6; color: #8a5a00; border: 1px solid #f0d58c; font-size: 11px; font-weight: 700; padding: 0 8px; border-radius: 2px; vertical-align: middle; }
.recruit-hero { position: relative; color: #fff; overflow: hidden; }
.recruit-hero > .photo { position: absolute; inset: 0; }
.recruit-hero > .photo img { object-position: center 35%; }
.recruit-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,29,56,.88) 0%, rgba(13,43,82,.6) 60%, rgba(13,43,82,.25) 100%); }
.recruit-hero .wrap { position: relative; z-index: 2; padding-top: 28px; padding-bottom: 96px; }
.recruit-hero .breadcrumb { color: #b9cde0; margin-bottom: 64px; }
.recruit-hero .breadcrumb a { color: #fff; }
.recruit-hero .en { color: #8fd0f3; font-weight: 700; font-size: 14px; }
.recruit-hero h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 900; line-height: 1.45; margin: 10px 0 18px; }
.recruit-hero p { color: #dbe7f2; margin-bottom: 32px; }
.recruit-hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.page-nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 76px; z-index: 40; }
.page-nav .wrap { display: flex; justify-content: center; gap: 4px; overflow-x: auto; }
.page-nav a { padding: 14px 18px; font-size: 14px; font-weight: 700; color: var(--navy); white-space: nowrap; border-bottom: 3px solid transparent; }
.page-nav a:hover { color: var(--sky); border-bottom-color: var(--sky); }
.merits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.merit { background: #fff; border-top: 4px solid var(--sky); padding: 30px 28px; box-shadow: 0 2px 10px rgba(13,43,82,.06); }
.merit .no { font-size: 32px; font-weight: 700; color: var(--sky); line-height: 1; }
.merit h3 { font-size: 18px; color: var(--navy); margin: 12px 0 10px; }
.merit p { font-size: 14.5px; color: var(--muted); }
.voice { display: grid; grid-template-columns: 3fr 8fr; gap: 48px; align-items: start; }
.voice-person { position: sticky; top: 200px; }
.voice-person .photo { aspect-ratio: 15 / 16; border-radius: 4px; background: linear-gradient(180deg, #fff, var(--sky-line)); margin-bottom: 10px; }
.voice-person .photo img { object-fit: cover; object-position: center top; }
.voice-person b { display: block; font-size: 18px; color: var(--navy); }
.voice-person small { color: var(--muted); }
.voice-body .qa { padding: 0 0 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.voice-body .qa:last-child { margin-bottom: 0; border-bottom: 0; }
.voice-body .q { display: flex; gap: 12px; align-items: baseline; font-size: 14px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.voice-body .q b { font-family: "Montserrat", sans-serif; color: #fff; background: var(--sky); font-size: 13px; padding: 1px 9px; border-radius: 2px; }
.voice-body h3 { font-size: 21px; color: var(--navy); margin-bottom: 10px; line-height: 1.5; }
.voice-body p { color: var(--text); }
table.outline.req { background: #fff; }
table.outline.req small { color: var(--muted); }
.selection { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.selection li { position: relative; background: var(--sky-pale); border-radius: 4px; padding: 26px 22px; text-align: center; }
.selection li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -15px; transform: translateY(-50%); border: 8px solid transparent; border-left: 10px solid var(--sky); }
.selection .en { font-size: 12px; font-weight: 700; color: var(--sky); }
.selection b { display: block; font-size: 18px; color: var(--navy); margin: 6px 0 8px; }
.selection p { font-size: 13.5px; color: var(--muted); text-align: left; }
.entry { display: grid; grid-template-columns: 8fr 4fr; gap: 28px; align-items: start; }
.entry-form { background: #fff; padding: 36px; border-radius: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; box-shadow: 0 2px 10px rgba(13,43,82,.06); }
.entry-form label, .entry-form fieldset { display: flex; flex-direction: column; gap: 6px; font-size: 14px; border: 0; }
.entry-form label > span, .entry-form fieldset > span { font-weight: 700; color: var(--navy); }
.entry-form em { font-style: normal; font-size: 11px; color: #fff; background: var(--sky); padding: 0 6px; border-radius: 2px; margin-left: 8px; vertical-align: 1px; }
.entry-form input[type=text], .entry-form input[type=number], .entry-form input[type=tel], .entry-form input[type=email], .entry-form textarea {
  font: inherit; font-size: 15px; padding: 11px 12px; border: 1px solid #c9d6e2; border-radius: 3px; background: #fbfdff; width: 100%;
}
.entry-form input:focus, .entry-form textarea:focus { outline: 2px solid var(--sky); border-color: var(--sky); }
.entry-form .choices { display: flex; gap: 20px; flex-wrap: wrap; padding: 6px 0; }
.entry-form .choices label { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
.entry-form .full { grid-column: 1 / -1; }
.entry-form .agree { flex-direction: row; align-items: center; gap: 8px; justify-content: center; }
.entry-form .agree a { color: var(--sky-dark); text-decoration: underline; }
.entry-form .submit { text-align: center; }
.entry-form .submit .btn { padding: 16px 56px; font-size: 16px; border: 0; cursor: pointer; font-family: inherit; }
.entry-tel { background: #fff; border-top: 4px solid var(--navy); padding: 32px 24px; text-align: center; box-shadow: 0 2px 10px rgba(13,43,82,.06); }
.entry-tel h3 { font-size: 15px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.entry-tel .tel { font-family: "Montserrat", sans-serif; font-size: 30px; color: var(--navy); font-weight: 700; }
.entry-tel small { display: block; color: var(--muted); font-size: 13px; margin-top: 8px; }
@media (max-width: 1024px) {
  .page-nav { top: 64px; }
  .merits { grid-template-columns: repeat(2, 1fr); }
  .selection { grid-template-columns: repeat(2, 1fr); }
  .selection li:nth-child(2)::after { display: none; }
  .entry { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .page-nav { top: 64px; }
  .page-nav .wrap { justify-content: flex-start; }
  .page-nav a { padding: 12px 12px; font-size: 13px; }
  .recruit-hero .wrap { padding-bottom: 64px; }
  .recruit-hero .breadcrumb { margin-bottom: 40px; }
  .recruit-hero .btn { width: 100%; }
  .merits, .voice, .selection { grid-template-columns: 1fr; }
  .voice { gap: 24px; }
  .voice-person { position: static; display: grid; grid-template-columns: 120px 1fr; gap: 0 16px; align-items: end; }
  .voice-person .photo { grid-row: span 2; margin: 0; }
  .selection li::after { display: none; }
  .entry-form { grid-template-columns: 1fr; padding: 24px 18px; }
}

/* ===== ヘッダー（紺色の1段メニュー） ===== */
.topline { background: #fff; font-size: 12px; color: var(--muted); }
.topline .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.topline p { margin: 0; }
.topline .tl-tel b { font-family: "Montserrat", sans-serif; font-size: 15px; color: var(--navy); margin: 0 4px; }
header.site { position: sticky; top: 0; z-index: 50; background: var(--navy); box-shadow: 0 2px 10px rgba(8,29,56,.25); }
.head-bar { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: flex; flex-direction: column; line-height: 1.25; }
.logo-row { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-row img { height: 44px; width: auto; }
.logo b { font-family: "Montserrat", sans-serif; font-size: 24px; font-weight: 700; color: #fff; letter-spacing: .08em; }
.logo span { font-size: 11px; color: #b9cde0; }
.gnav ul { display: flex; align-items: center; list-style: none; gap: 2px; }
.gnav a { display: block; color: #fff; font-size: 14px; font-weight: 500; letter-spacing: .05em; padding: 10px 11px; transition: color .2s, background .2s; }
.gnav a:hover { color: #8fd0f3; }
.gnav li.cta a { background: var(--sky); border-radius: 2px; padding: 10px 18px; margin-left: 8px; font-weight: 700; }
.gnav li.cta a:hover { background: var(--sky-dark); color: #fff; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: #fff; margin: 8px 8px; }

/* ===== メインビジュアル（写真全面＋中央の大きなコピー） ===== */
.hero { position: relative; height: calc(100vh - 106px); min-height: 560px; max-height: 920px; overflow: hidden; color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s; }
.hero-slides img.on { opacity: 1; animation: zoomout 7s ease-out forwards; }
@keyframes zoomout { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,29,56,.25) 0%, rgba(8,29,56,.5) 55%, rgba(8,29,56,.65) 100%); }
.hero-copy { position: relative; z-index: 2; padding: 0 16px; }
.hero-copy .pre, .hero-copy .catch, .hero-copy .sub { font-family: "Noto Serif JP", serif; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.hero-copy .pre { font-size: clamp(16px, 2vw, 28px); font-weight: 700; letter-spacing: .3em; margin-bottom: 8px; }
.hero-copy .catch { font-size: clamp(30px, 4.9vw, 74px); font-weight: 900; letter-spacing: .08em; line-height: 1.3; margin-bottom: 22px; }
.hero-copy .catch span { color: #8fd0f3; }
.hero-copy .sub { font-size: clamp(15px, 1.9vw, 26px); font-weight: 700; letter-spacing: .1em; line-height: 1.8; }
.hero-copy .sub small { display: block; font-size: .78em; font-weight: 500; opacity: .92; }
.hero-copy .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.scroll-down { position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; font-size: 12px; line-height: 1; }
.scroll-down i { font-style: normal; animation: blink 1.8s infinite; opacity: 0; }
.scroll-down i:nth-child(2) { animation-delay: .2s; }
.scroll-down i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: 0; } 40% { opacity: 1; } }

/* ===== 施工までの流れ（紺色の背景＋縦書きタイトル＋表形式） ===== */
.flow-sec {
  position: relative; overflow: hidden; color: #fff; padding: 96px 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cg fill='%23fff'%3E%3Cpolygon points='0,0 120,0 40,90' opacity='.05'/%3E%3Cpolygon points='120,0 260,0 180,110' opacity='.03'/%3E%3Cpolygon points='40,90 180,110 90,220' opacity='.06'/%3E%3Cpolygon points='180,110 320,60 300,230' opacity='.04'/%3E%3Cpolygon points='0,160 90,220 0,320' opacity='.04'/%3E%3Cpolygon points='90,220 300,230 200,320' opacity='.03'/%3E%3Cpolygon points='260,0 320,0 320,60' opacity='.06'/%3E%3C/g%3E%3Cg fill='%23000'%3E%3Cpolygon points='120,0 40,90 180,110' opacity='.06'/%3E%3Cpolygon points='180,110 300,230 90,220' opacity='.05'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(160deg, #24507f 0%, #173a63 45%, #0d2b52 100%);
}
.flow-sec::before { content: "One-stop Works"; position: absolute; left: 4%; bottom: -36px; font-family: "Noto Serif JP", serif; font-weight: 900; font-size: clamp(64px, 11vw, 170px); color: rgba(255,255,255,.05); white-space: nowrap; pointer-events: none; }
.flow-wrap { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 40px; align-items: center; }
.flow-title { writing-mode: vertical-rl; justify-self: center; font-size: clamp(30px, 3.2vw, 42px); font-weight: 900; letter-spacing: .14em; line-height: 1.3; }
.flow-title small { display: block; font-family: "Montserrat", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .2em; color: #8fd0f3; margin-left: 10px; }
.flow-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.flow-row { display: grid; grid-template-columns: 32% 1fr; min-height: 118px; }
.flow-row .name { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: rgba(255,255,255,.12); border-right: 2px solid rgba(13,43,82,.6); padding: 16px; }
.flow-row .name small { font-family: "Montserrat", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .15em; color: rgba(255,255,255,.75); }
.flow-row .name b { font-size: clamp(20px, 2vw, 28px); white-space: nowrap; font-weight: 900; color: #8fd0f3; letter-spacing: .06em; }
.flow-row:not(:last-child) .name::after { content: "▼\A▼\A▼"; white-space: pre; position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); font-size: 11px; line-height: 1.05; color: #fff; z-index: 2; }
.flow-row .desc { display: flex; align-items: center; justify-content: center; text-align: center; background: rgba(255,255,255,.2); padding: 20px 32px; font-size: clamp(15px, 1.5vw, 19px); font-weight: 700; letter-spacing: .03em; }

@media (max-width: 1024px) {
  .topline .tl-tel { display: none; }
  .menu-btn { display: block; }
  .head-bar { height: 64px; }
  .gnav { display: none; }
  .gnav.open { display: block; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy-deep); }
  .gnav.open ul { flex-direction: column; align-items: stretch; gap: 0; }
  .gnav.open a { padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .gnav.open li.cta a { margin: 12px 24px; text-align: center; }
}
@media (max-width: 768px) {
  .topline { display: none; }
  .logo b { font-size: 20px; }
  .logo-row img { height: 38px; }
  .hero { height: 82vh; min-height: 480px; }
  .hero-copy .pre { letter-spacing: .2em; }
  .hero-copy .btn { width: 100%; }
  .flow-sec { padding: 64px 0; }
  .flow-wrap { grid-template-columns: 1fr; gap: 28px; }
  .flow-title { writing-mode: horizontal-tb; font-size: 26px; text-align: center; }
  .flow-title small { margin: 6px 0 0; }
  .flow-row { grid-template-columns: 1fr; min-height: 0; }
  .flow-row .name { border-right: 0; padding: 14px; }
  .flow-row .desc { padding: 16px 18px; font-size: 15px; }
  .flow-row:not(:last-child) .name::after { display: none; }
}
.sp-only { display: none; }
@media (max-width: 768px) { .sp-only { display: inline; } }

/* Instagram */
.tl-right { display: flex; align-items: center; gap: 14px; }
.tl-ig { display: inline-flex; color: var(--navy); }
.tl-ig svg { width: 20px; height: 20px; }
.tl-ig:hover { color: #d6249f; }
.insta-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.insta-btn { background: linear-gradient(45deg, #f09433, #dc2743 45%, #bc1888); }
.insta-btn:hover { background: linear-gradient(45deg, #e0802a, #c81f3a 45%, #a3157a); }
.insta-btn svg, .ft-ig svg { width: 20px; height: 20px; }
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.insta-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: opacity .2s; }
.insta-grid:hover img { opacity: .85; }
.ft-ig { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: #fff; border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 2px; }
.ft-ig:hover { background: rgba(255,255,255,.08); color: #fff; }
footer .ft-ig + address { margin-top: 14px; }
@media (max-width: 1024px) { .tl-right .tl-tel { display: none; } }
@media (max-width: 768px) {
  .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .insta-btn { width: 100%; }
}
section.block.insta { padding-top: 24px; }
@media (max-width: 768px) {
  .hero-copy .sub { letter-spacing: .04em; }
  .hero-copy .sub small { letter-spacing: .02em; margin-top: 6px; }
  .recruit-hero h1 { font-size: 25px; }
}
/* スマホ：代表写真を小さく、先輩の声の写真を大きく */
.voice { grid-template-columns: 4fr 8fr; }
@media (max-width: 768px) {
  .message .photo.president { width: 62%; max-width: 260px; aspect-ratio: 4 / 5; margin: 0 auto; }
  .voice { grid-template-columns: 1fr; }
  .message h3 { font-size: 19px; }
  .voice-body h3 { font-size: 18px; }
  .voice-person { grid-template-columns: 1fr; text-align: center; }
  .voice-person .photo { width: 78%; max-width: 300px; margin: 0 auto 10px; grid-row: auto; }
}
/* 代表写真：背景は白、スマホでは画面幅に合わせる */
.message .photo.president { background: #fff; }
@media (max-width: 768px) {
  .message .photo.president { width: 100%; max-width: none; aspect-ratio: 1 / 1; margin: 0; }
}
/* 採用ページのメニュー：スマホでは横スライドをやめて3列×2段で全部見せる */
.page-nav a.on { color: var(--sky); border-bottom-color: var(--sky); }
@media (max-width: 768px) {
  .page-nav { box-shadow: 0 2px 8px rgba(13,43,82,.08); }
  .page-nav .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-top: 8px; padding-bottom: 8px; overflow: visible; }
  .page-nav a { padding: 7px 4px; font-size: 12.5px; text-align: center; border: 1px solid var(--sky-line); border-radius: 3px; background: #fff; }
  .page-nav a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
}
/* スマホ下の固定ボタン：電話ボタンを白にして背景と区別する */
@media (max-width: 768px) {
  .sp-cta { box-shadow: 0 -3px 12px rgba(8,29,56,.25); }
  .sp-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; }
  .sp-cta a:first-child { background: #fff; color: var(--navy); border-top: 3px solid var(--sky); }
  .sp-cta a:first-child::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.2 15.2 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.2 15.2 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat; }
  .sp-cta a:last-child { border-top: 3px solid var(--sky); }
}

/* 日本語の改行：言葉の途中で切らず、<wbr>（言葉の区切り）の位置で改行する */
body { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
h1, h2, h3, .lead, .flow-row .desc, .hero-copy .sub { text-wrap: balance; }
p, dd, td, li { text-wrap: pretty; }
/* 採用ページ：メニューを押したとき、見出しが固定メニューの下に隠れないようにする */
html:has(.page-nav) { scroll-padding-top: 140px; }
@media (max-width: 768px) { html:has(.page-nav) { scroll-padding-top: 175px; } }

/* 代表メッセージ → 会社概要 を1つのまとまりに */
#message + #company { padding-top: 0; }
table.outline td small { color: var(--muted); font-size: 12px; }
.dot-list { list-style: none; margin: 4px 0 0; padding: 0; }
.dot-list li { position: relative; padding-left: 1em; }
.dot-list li::before { content: "・"; position: absolute; left: 0; }
.company .map { align-self: start; height: 420px; position: sticky; top: 110px; }
@media (max-width: 768px) {
  .company .map { position: static; height: 260px; }
  table.outline th { width: auto; white-space: nowrap; font-size: 13px; padding: 12px 10px; }
}

/* 検索対策で追加した部分 */
.hero-copy h1.pre { line-height: 1.5; }
.about { padding-bottom: 0; }
.about-lead { max-width: 820px; margin: 0 auto; font-size: 16px; line-height: 2; color: var(--text); }
.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.faq-item summary { cursor: pointer; list-style: none; position: relative; padding: 18px 52px 18px 56px; font-weight: 700; color: var(--navy); line-height: 1.6; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; position: absolute; left: 20px; top: 15px; font-family: Montserrat, sans-serif; font-size: 20px; color: var(--sky); }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 22px; color: var(--navy); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 24px 20px 56px; color: var(--muted); line-height: 1.9; }
.map-link { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--sky); font-weight: 700; }
.recruit-kw { font-size: 14px; font-weight: 700; letter-spacing: .05em; margin: 6px 0 10px; opacity: .95; }
@media (max-width: 768px) {
  .about-lead { font-size: 15px; }
  .faq-item summary { padding: 16px 44px 16px 46px; font-size: 15px; }
  .faq-item summary::before { left: 16px; }
  .faq-item summary::after { right: 16px; }
  .faq-item p { padding: 0 18px 18px 46px; font-size: 14px; }
}
.company .map-wrap { align-self: start; position: sticky; top: 110px; }
.company .map-wrap .map { position: static; }
@media (max-width: 768px) { .company .map-wrap { position: static; } }

/* ブログ（ブログ） */
.blog-cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-cards > li > a { display: block; background: #fff; border: 1px solid var(--line); height: 100%; transition: box-shadow .2s, transform .2s; }
.blog-cards > li > a:hover { box-shadow: 0 8px 24px rgba(13, 43, 82, .12); transform: translateY(-2px); }
.blog-cards .bc-photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky-pale); }
.blog-cards .bc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-cards .bc-body { padding: 18px 20px 22px; }
.blog-cards h3 { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.6; margin-top: 8px; }
.blog-empty { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 32px 0; }
.bc-meta { display: flex; align-items: center; gap: 12px; }
.bc-meta time { font-family: "Montserrat", sans-serif; font-size: 13px; color: var(--muted); }
.bc-meta .cat { font-size: 12px; border: 1px solid var(--sky); color: var(--sky-dark); padding: 0 8px; border-radius: 2px; }
.blog-list .sec-head h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; color: var(--navy); line-height: 1.45; }
.blog-list .sec-head h1::after { content: ""; display: block; width: 48px; height: 3px; background: var(--sky); margin-top: 16px; }
.blog-list .breadcrumb, .post .breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.wrap.narrow { max-width: 820px; }
.post { padding: 56px 0 96px; }
.post h1 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; color: var(--navy); line-height: 1.5; margin: 12px 0 28px; }
.post-photo { aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 36px; }
.post-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-toc { background: var(--sky-pale); border: 1px solid var(--sky-line); padding: 20px 28px; margin-bottom: 40px; }
.post-toc p { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.post-toc ol { padding-left: 1.4em; }
.post-toc a { color: var(--sky-dark); }
.post-toc a:hover { text-decoration: underline; }
.post-body h2 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 900; color: var(--navy); line-height: 1.5; margin: 56px 0 20px; padding: 12px 16px; border-left: 5px solid var(--sky); background: var(--sky-pale); }
.post-body h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 36px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--sky-line); }
.post-body p { margin-bottom: 1.4em; }
.post-body ul, .post-body ol { margin: 0 0 1.6em 1.5em; }
.post-body li { margin-bottom: .4em; }
.post-body strong { color: var(--navy); background: linear-gradient(transparent 62%, #d6ecf9 62%); }
.post-body a { color: var(--sky-dark); text-decoration: underline; }
.post-note { border: 2px solid var(--sky-line); padding: 18px 22px; margin: 0 0 1.6em; }
.post-note p:last-child { margin-bottom: 0; }
.post-cta { margin-top: 64px; background: var(--navy); color: #fff; padding: 40px; text-align: center; }
.post-cta .en { font-size: 13px; color: var(--sky); }
.post-cta h2 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 900; margin: 6px 0 12px; line-height: 1.5; }
.post-cta p { font-size: 15px; color: #cfdbe8; }
.post-cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 1024px) { .blog-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .blog-cards { grid-template-columns: 1fr; gap: 18px; }
  .post { padding: 32px 0 64px; }
  .post-toc { padding: 16px 20px; }
  .post-cta { padding: 32px 20px; }
}

/* 取り組み：ドラゴンラダー */
.dragon { padding: 0 0 80px; }
.dragon-box { display: grid; grid-template-columns: 5fr 7fr; background: #fff; border: 1px solid var(--sky-line); border-top: 4px solid var(--sky); border-radius: 4px; overflow: hidden; box-shadow: 0 6px 20px rgba(13, 43, 82, .06); }
.dragon-photo { min-height: 100%; }
.dragon-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; display: block; }
.dragon-text { padding: 32px 36px; }
.dl-head { display: flex; align-items: center; gap: 12px; }
.dl-label { font-size: 12px; font-weight: 700; color: #fff; background: var(--sky-dark); padding: 2px 10px; border-radius: 2px; }
.dl-head .en { font-size: 12px; font-weight: 700; color: var(--sky-dark); }
.dragon-text h2 { font-size: clamp(19px, 2vw, 22px); font-weight: 900; color: var(--navy); line-height: 1.5; margin: 10px 0 18px; }
.dl-points dt { font-size: 14px; font-weight: 700; color: var(--navy); padding-left: 10px; border-left: 3px solid var(--sky); line-height: 1.4; }
.dl-points dd { font-size: 14px; line-height: 1.85; margin: 6px 0 16px; }
.dl-events { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.dragon-text .btn { padding: 11px 22px; font-size: 13px; }
@media (max-width: 900px) {
  .dragon-box { grid-template-columns: 1fr; }
  .dragon-photo { aspect-ratio: 16 / 9; }
  .dragon-text { padding: 24px 20px; }
}

/* 施工実績：写真が複数ある実績（「＋ 拡大」の代わりに枚数を出す） */
.work.has-gallery .photo::after { content: "＋ 写真4枚を見る"; }
.lb-prev[hidden], .lb-next[hidden] { display: none; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dragon-text .btn.dl-ig svg { width: 16px; height: 16px; }
.dragon-text .btn.dl-ig::after { content: none; }

/* 業者向けの相談の帯（事業内容・施工実績の下） */
.consult-bar { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: 24px 32px; background: var(--navy); color: #fff; border-radius: 4px; }
.consult-bar p { font-size: 15px; color: #cfdbe8; line-height: 1.8; }
.consult-bar p b { display: block; font-size: 17px; color: #fff; }
.cb-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 768px) {
  .consult-bar { padding: 20px; }
  .cb-actions, .cb-actions .btn { width: 100%; }
}
/* お見積り・ご相談フォーム（トップ）と送信後の表示 */
.contact-form { max-width: 900px; margin: 32px auto 0; scroll-margin-top: 90px; }
.form-done { text-align: center; color: var(--navy); font-weight: 700; line-height: 2; padding: 24px 0; }
.form-done small { font-weight: 400; color: var(--muted); }
.form-err { color: #c0392b; font-size: 14px; text-align: center; }
.contact-card small a, footer address a { color: inherit; text-decoration: underline; }
