@charset "utf-8";

/* =========================================================
   株式会社奏陽建設 — 共通スタイルシート
   1. 変数 / Design Tokens
   2. リセット・ベース
   3. レイアウト共通
   4. ヘッダー / ナビゲーション
   5. フッター
   6. パーツ（ボタン・見出し・カード等）
   7. トップページ
   8. 下層ページ
   9. レスポンシブ
  10. 施工事例
  11. 工種ごとの色分け
   ========================================================= */


/* =========================================================
   1. 変数 / Design Tokens
   ========================================================= */
:root {
  /* Color */
  --navy-900: #071a33;
  --navy-800: #0c2646;
  --navy-700: #123159;
  --navy-600: #1b4278;
  --navy-500: #2c5c9e;
  --navy-100: #e8eef6;
  --navy-050: #f4f7fb;

  --accent: #c8a45c;          /* 差し色（ゴールド） */
  --accent-light: #e2caa0;

  --white: #ffffff;
  --gray-050: #f7f8fa;
  --gray-100: #eef0f3;
  --gray-200: #dfe3e9;
  --gray-400: #9aa3b0;
  --gray-600: #5d6673;
  --gray-800: #2c333d;

  --text: #1f2a37;
  --text-muted: #5d6673;
  --line: #e2e6ec;

  /* Typography */
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
             "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Shippori Mincho", "Yu Mincho", "YuMincho",
                "Hiragino Mincho ProN", serif;

  /* Layout */
  --container: 1120px;
  --container-wide: 1320px;
  --gutter: 24px;
  --header-h: 84px;
  --header-h-sp: 64px;

  /* Effect */
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 2px 10px rgba(7, 26, 51, .06);
  --shadow-md: 0 10px 30px rgba(7, 26, 51, .10);
  --shadow-lg: 0 20px 50px rgba(7, 26, 51, .14);
  --ease: cubic-bezier(.22, .61, .36, 1);
}


/* =========================================================
   2. リセット・ベース
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 62.5%;           /* 1rem = 10px */
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--text);
  background: var(--white);
  letter-spacing: .02em;
  overflow-wrap: break-word;
}

body.is-nav-open { overflow: hidden; }

h1, h2, h3, h4, h5,
p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
}

ul, ol { list-style: none; }

img, svg, video {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .3s var(--ease), opacity .3s var(--ease);
}

a:hover { color: var(--navy-500); }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

table { border-collapse: collapse; width: 100%; }

address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--navy-500);
  outline-offset: 3px;
}


/* =========================================================
   3. レイアウト共通
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 880px; }

.section { padding-block: 100px; }
.section--tight { padding-block: 72px; }
.section--gray { background: var(--navy-050); }
.section--navy {
  background: var(--navy-800);
  color: var(--white);
}

.section--navy .section-title__ja { color: var(--white); }
.section--navy .section-title__en { color: var(--accent-light); }
.section--navy .section-lead { color: rgba(255, 255, 255, .78); }

/* 汎用ユーティリティ */
.u-center { text-align: center; }
.u-mt-s { margin-top: 16px; }
.u-mt-m { margin-top: 32px; }
.u-mt-l { margin-top: 56px; }
.u-nowrap { white-space: nowrap; }

/* スマホでのみ改行する（PCでは改行しない） */
.u-br-sp { display: none; }

/* スクロール表示アニメーション（JSで .is-visible を付与） */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up--delay1 { transition-delay: .12s; }
.fade-up--delay2 { transition-delay: .24s; }
.fade-up--delay3 { transition-delay: .36s; }
.fade-up--delay4 { transition-delay: .48s; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* スキップリンク */
.skip-link {
  position: absolute;
  top: 0; left: 50%;
  z-index: 200;
  padding: 10px 20px;
  color: var(--white);
  background: var(--navy-800);
  transform: translate(-50%, -120%);
  transition: transform .25s var(--ease);
}
.skip-link:focus { color: var(--white); transform: translate(-50%, 0); }

/* 画像プレースホルダー（実写に差し替え） */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  color: rgba(255, 255, 255, .72);
  font-family: var(--font-en);
  font-size: 1.2rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  background:
    linear-gradient(135deg, var(--navy-700) 0%, var(--navy-500) 100%);
}

.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, .05) 0 10px,
      rgba(255, 255, 255, 0) 10px 20px);
}

.ph span { position: relative; z-index: 1; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--tall { aspect-ratio: 3 / 4; }


/* =========================================================
   4. ヘッダー / ナビゲーション
   ========================================================= */
.header {
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: height .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}

.header.is-scrolled {
  height: 68px;
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ロゴマーク（画像）。
   元画像は512×512ですが、ロゴ本体は中央の 512×289 部分です。
   上下の透明な余白を切り落として表示しています。
   差し替えるときは images/logo-mark.png を置き換えてください。 */
.logo__mark {
  display: block;
  flex-shrink: 0;
  height: 34px;
  width: auto;
  aspect-ratio: 512 / 289;
  object-fit: cover;
}

.logo__text { line-height: 1.3; }

.logo__name {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: .08em;
}

.logo__en {
  display: block;
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* PCナビ */
.nav { display: flex; align-items: center; gap: 28px; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav__link {
  position: relative;
  display: block;
  padding-block: 8px;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy-800);
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.nav__link:hover::after,
.nav__item.is-current .nav__link::after { transform: scaleX(1); }
.nav__item.is-current .nav__link { color: var(--navy-600); }

/* ヘッダー右側のアクション */
.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__tel { line-height: 1.3; }

.header__tel-label {
  display: block;
  font-size: 1rem;
  color: var(--gray-600);
  letter-spacing: .1em;
}

.header__tel-num {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy-800);
  letter-spacing: .04em;
}

/* ヘッダー右端のお問い合わせボタン */
.btn.header__cta {
  min-width: auto;
  padding: 13px 24px;
  font-size: 1.4rem;
  white-space: nowrap;
}

/* ハンバーガー */
.hamburger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  flex-shrink: 0;
}

.hamburger span {
  position: absolute;
  left: 10px;
  width: 24px; height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}

.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }

.hamburger.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* SPドロワー */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h-sp) + 24px) var(--gutter) 40px;
  overflow-y: auto;
  color: var(--white);
  background: var(--navy-800);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease),
              visibility .3s var(--ease);
}

.drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drawer__list { border-top: 1px solid rgba(255, 255, 255, .16); }

.drawer__item { border-bottom: 1px solid rgba(255, 255, 255, .16); }

.drawer__link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 4px;
  font-size: 1.7rem;
  font-weight: 500;
}

.drawer__link:hover { color: var(--accent-light); }

.drawer__link small {
  font-family: var(--font-en);
  font-size: 1.1rem;
  color: var(--accent-light);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.drawer__foot { margin-top: 32px; }

.drawer__tel {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-en);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .04em;
}

.drawer__note {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, .7);
}


/* =========================================================
   5. フッター
   ========================================================= */
.footer {
  color: rgba(255, 255, 255, .78);
  background: var(--navy-900);
}

.footer__main {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.2fr;
  gap: 56px;
  padding-block: 72px;
}

.footer .logo__name { color: var(--white); }
.footer .logo__en { color: rgba(255, 255, 255, .55); }

.footer__address {
  margin-top: 24px;
  font-size: 1.4rem;
  line-height: 2;
}

.footer__contact { margin-top: 20px; }

.footer__tel {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .04em;
}

.footer__license {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 1.3rem;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer__nav-title {
  margin-bottom: 14px;
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.footer__nav-list li + li { margin-top: 10px; }

.footer__nav-list a {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, .78);
}

.footer__nav-list a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  font-size: 1.2rem;
}

.footer__sub-nav { display: flex; gap: 20px; }

.copyright {
  font-family: var(--font-en);
  color: rgba(255, 255, 255, .55);
  letter-spacing: .06em;
}

/* SP固定フッターCTA */
.fixed-cta {
  position: fixed;
  bottom: 0; left: 0;
  z-index: 80;
  display: none;
  width: 100%;
  box-shadow: 0 -4px 16px rgba(7, 26, 51, .14);
}

.fixed-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding-block: 14px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .06em;
}

.fixed-cta__tel { background: var(--navy-700); }
.fixed-cta__mail { background: var(--accent); }


/* =========================================================
   6. パーツ
   ========================================================= */

/* --- ボタン --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 220px;
  padding: 17px 32px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .08em;
  border: 1px solid var(--navy-800);
  border-radius: 999px;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn__arrow {
  display: inline-block;
  width: 18px; height: 1px;
  position: relative;
  background: currentColor;
  transition: transform .3s var(--ease);
}

.btn__arrow::after {
  content: "";
  position: absolute;
  top: -3px; right: 0;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  color: var(--white);
  background: var(--navy-800);
}
.btn--primary:hover {
  color: var(--white);
  background: var(--navy-600);
  border-color: var(--navy-600);
}

.btn--outline {
  color: var(--navy-800);
  background: transparent;
}
.btn--outline:hover {
  color: var(--white);
  background: var(--navy-800);
}

.btn--light {
  color: var(--navy-800);
  background: var(--white);
  border-color: var(--white);
}
.btn--light:hover { color: var(--navy-800); background: var(--navy-100); }

.btn--accent {
  color: var(--navy-900);
  background: var(--accent);
  border-color: var(--accent);
}
.btn--accent:hover {
  color: var(--navy-900);
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* テキストリンク */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy-600);
  letter-spacing: .06em;
}
.link-arrow:hover { color: var(--navy-500); }
.link-arrow:hover .btn__arrow { transform: translateX(4px); }

/* --- セクション見出し --- */
.section-head { margin-bottom: 56px; }
.section-head--center { text-align: center; }

.section-title { display: block; }

.section-title__en {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy-500);
  letter-spacing: .3em;
  text-transform: uppercase;
}

.section-title__ja {
  display: block;
  font-size: clamp(2.4rem, 3.4vw, 3.4rem);
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: .06em;
  line-height: 1.45;
}

.section-lead {
  max-width: 720px;
  margin-top: 24px;
  font-size: 1.6rem;
  color: var(--text-muted);
}

.section-head--center .section-lead { margin-inline: auto; }

/* 小見出し */
.heading-bar {
  position: relative;
  margin-bottom: 24px;
  padding-left: 16px;
  font-size: 2rem;
  color: var(--navy-800);
}

.heading-bar::before {
  content: "";
  position: absolute;
  top: .3em; left: 0;
  width: 4px; height: 1.1em;
  background: var(--accent);
  border-radius: 2px;
}

/* --- カード --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card__media { overflow: hidden; }

/* カード内の写真（プレースホルダーと同じ 4:3 で切り抜き） */
.card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}


.card__media .ph,
.card__media img { transition: transform .5s var(--ease); }

.card:hover .card__media .ph,
.card:hover .card__media img { transform: scale(1.05); }

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 24px 30px;
}

.card__num {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .2em;
}

.card__title {
  margin-top: 8px;
  font-size: 1.9rem;
  color: var(--navy-800);
}

.card__text {
  margin-top: 14px;
  font-size: 1.45rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.card__foot { margin-top: auto; padding-top: 20px; }

/* --- 強み（番号付きパネル） --- */
.strength-list {
  display: grid;
  gap: 28px;
}

.strength {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  align-items: start;
  padding: 36px 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.strength__num {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-500);
  letter-spacing: .2em;
  text-align: center;
}

.strength__num strong {
  display: block;
  font-size: 4.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--navy-800);
  letter-spacing: 0;
}

.strength__num::after {
  content: "";
  display: block;
  width: 32px; height: 2px;
  margin: 14px auto 0;
  background: var(--accent);
}

.strength__title {
  font-size: clamp(1.9rem, 2.2vw, 2.2rem);
  color: var(--navy-800);
}

.strength__text {
  margin-top: 12px;
  color: var(--text-muted);
}

/* --- お悩み（課題）カード --- */
.trouble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 20px;
}

/* タブレット幅では3列にして、5項目が 3+2 で収まるようにする
   （4列のままだと5個目が1つだけ次の段に残ります） */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .trouble-grid { grid-template-columns: repeat(3, 1fr); }
}

.trouble {
  position: relative;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.trouble__icon {
  width: 88px; height: 88px;          /* 写真が判別できるよう 52px から拡大 */
  margin-bottom: 20px;
  overflow: hidden;
  background: var(--navy-100);
  border-radius: 50%;
}

.trouble__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.trouble:hover .trouble__icon img { transform: scale(1.08); }

.trouble__text {
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--navy-800);
}

/* --- お知らせリスト --- */
.news-list { border-top: 1px solid var(--line); }

.news-item { border-bottom: 1px solid var(--line); }

.news-item__link {
  display: grid;
  grid-template-columns: 120px 120px 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px 8px;
  transition: background-color .3s var(--ease);
}

/* リンクのある項目だけホバー表示 */
a.news-item__link:hover { background: var(--navy-050); }

.news-item__date {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: .06em;
}

.news-item__cat {
  display: inline-block;
  padding: 4px 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-600);
  text-align: center;
  border: 1px solid var(--navy-100);
  background: var(--navy-050);
  border-radius: 999px;
}

.news-item__title {
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--navy-800);
}

/* お知らせが0件のときの表示 */
.news-empty {
  padding: 56px 24px;
  text-align: center;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.news-empty__text {
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--navy-800);
}

.news-empty__sub {
  margin-top: 8px;
  font-size: 1.35rem;
}

/* --- テーブル（会社概要） --- */
.def-table {
  border-top: 1px solid var(--line);
  font-size: 1.55rem;
}

.def-table tr { border-bottom: 1px solid var(--line); }

.def-table th,
.def-table td {
  padding: 22px 20px;
  text-align: left;
  vertical-align: top;
}

.def-table th {
  width: 240px;
  font-weight: 700;
  color: var(--navy-800);
  background: var(--navy-050);
}

.def-table td { color: var(--text); }

.def-table td ul li {
  position: relative;
  padding-left: 16px;
}

.def-table td ul li::before {
  content: "";
  position: absolute;
  top: .85em; left: 0;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* --- フロー（工事の流れ） --- */
.flow-list { counter-reset: flow; }

.flow-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  padding: 32px 0 44px;
}

.flow-item::before {
  counter-increment: flow;
  content: counter(flow, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(140deg, var(--navy-700), var(--navy-500));
  border-radius: 50%;
}

.flow-item::after {
  content: "";
  position: absolute;
  top: 104px; left: 35px;
  width: 2px; height: calc(100% - 104px);
  background: var(--navy-100);
}

.flow-item:last-child::after { display: none; }

.flow-item__title {
  margin-top: 14px;
  font-size: 2rem;
  color: var(--navy-800);
}

.flow-item__text {
  margin-top: 10px;
  color: var(--text-muted);
}

/* --- FAQ（アコーディオン） --- */
.faq-list { display: grid; gap: 16px; }

.faq {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.faq__q {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 24px 56px 24px 24px;
  position: relative;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: left;
  color: var(--navy-800);
  transition: background-color .3s var(--ease);
}

.faq__q:hover { background: var(--navy-050); }

.faq__mark {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy-500);
}

.faq__icon {
  position: absolute;
  top: 50%; right: 24px;
  width: 14px; height: 14px;
  transform: translateY(-50%);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 14px; height: 2px;
  background: var(--navy-600);
  transition: transform .3s var(--ease);
}

.faq__icon::after { transform: rotate(90deg); }

.faq.is-open .faq__icon::after { transform: rotate(0); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}

.faq.is-open .faq__a { grid-template-rows: 1fr; }

.faq__a-inner { overflow: hidden; }

.faq__a-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 0 24px 26px;
  font-size: 1.5rem;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.faq__a-body .faq__mark { color: var(--accent); }

/* --- CTAバンド --- */
.cta {
  position: relative;
  padding-block: 88px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-600) 100%);
}

.cta::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 60vw; height: 160%;
  background: radial-gradient(circle at center,
              rgba(255, 255, 255, .08) 0%, transparent 60%);
}

.cta__inner { position: relative; text-align: center; }

.cta__en {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: .3em;
  text-transform: uppercase;
}

.cta__title {
  margin-top: 14px;
  font-size: clamp(2.4rem, 3.6vw, 3.6rem);
  line-height: 1.5;
}

.cta__text {
  max-width: 640px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, .8);
}

.cta__box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.cta__tel-label {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, .7);
  letter-spacing: .1em;
}

.cta__tel {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(3.2rem, 5vw, 4.4rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: .04em;
}

.cta__note {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, .7);
}


/* =========================================================
   7. トップページ
   ========================================================= */

/* --- ヒーロー --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88vh;
  padding-top: var(--header-h);
  overflow: hidden;
  color: var(--white);
  background: var(--navy-900);
}

/* 背景スライドショー */
.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--navy-800);
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.6s var(--ease);
  will-change: opacity, transform;
}

.hero__slide.is-active {
  opacity: 1;
  animation: heroZoom 8s linear forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.13); }
}

/* 画像の差し替えはこの3行のURLを変更 */
.hero__slide--1 { background-image: url("../images/hero-01.jpg"); }
.hero__slide--2 { background-image: url("../images/hero-02.jpg"); }
.hero__slide--3 { background-image: url("../images/hero-03.jpg"); }

/* 文字を読みやすくするオーバーレイ */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg,
    rgba(7, 26, 51, .93) 0%,
    rgba(7, 26, 51, .80) 38%,
    rgba(7, 26, 51, .52) 68%,
    rgba(12, 38, 70, .38) 100%);
}

/* スライド切り替えドット */
.hero__dots {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 52px;
}

.hero__dot {
  position: relative;
  width: 52px;
  height: 4px;
  padding: 14px 0;
  background: none;
  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
}

.hero__dot::before {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 4px;
  background: rgba(255, 255, 255, .28);
  border-radius: 2px;
  transform: translateY(-50%);
  transition: background-color .3s var(--ease);
}

.hero__dot::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
}

.hero__dot:hover::before { background: rgba(255, 255, 255, .5); }

.hero__dot.is-active::after { animation: dotProgress 6s linear forwards; }

@keyframes dotProgress {
  from { transform: translateY(-50%) scaleX(0); }
  to   { transform: translateY(-50%) scaleX(1); }
}

/* タブ非表示中・ホバー中は進行を止める */
.hero__slider.is-paused ~ .hero__inner .hero__dot.is-active::after,
.hero.is-paused .hero__dot.is-active::after { animation-play-state: paused; }

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: 80px var(--gutter);
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding: 8px 18px;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: .12em;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
}

.hero__title {
  font-size: clamp(3.2rem, 6.2vw, 6.4rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .04em;
}

.hero__title .accent { color: var(--accent-light); }

.hero__text {
  max-width: 560px;
  margin-top: 28px;
  font-size: clamp(1.5rem, 1.9vw, 1.7rem);
  line-height: 2;
  color: rgba(255, 255, 255, .86);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 1rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  transform: translateX(-50%);
}

.hero__scroll::after {
  content: "";
  width: 1px; height: 46px;
  background: linear-gradient(to bottom,
              rgba(255, 255, 255, .7), transparent);
  animation: scrollLine 2s var(--ease) infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ヒーロー直下の許可番号バー */
.hero-bar { background: var(--navy-050); }

.hero-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 40px;
  padding-block: 20px;
  font-size: 1.4rem;
  color: var(--navy-800);
}

.hero-bar__item {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

/* タグの右側に入る本文。内部で折り返します */
.hero-bar__body { min-width: 0; }

.hero-bar__note {
  margin-left: 8px;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.hero-bar__item strong {
  font-weight: 700;
  letter-spacing: .04em;
}

.hero-bar__tag {
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 88px;
  text-align: center;
  padding: 3px 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy-700);
  border-radius: 999px;
}

/* --- ごあいさつ / 会社紹介 --- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about__media { position: relative; }

.about__media .ph { border-radius: var(--radius-lg); }

/* 会社案内など、about__media に写真を直接置く場合 */
.about__media > img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Before → After スライド */
.about__slider {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-100);
  border-radius: var(--radius-lg);
}

/* 切り替えの動き：右から滑り込む（横スライド）
   フェードに戻す場合は transform の行を消し、transition を opacity だけにします */
.about__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(16%);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}

.about__slide.is-active { opacity: 1; transform: translateX(0); }

.about__slide img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}

.about__badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 18px;
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(7, 26, 51, .8);
  border-radius: 999px;
}

.about__badge--after {
  color: var(--navy-900);
  background: var(--accent);
}

/* 代表者写真（小） */
.about__media-sub img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.about__media-sub {
  position: absolute;
  right: -28px; bottom: -36px;
  width: 44%;
  border: 6px solid var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about__catch {
  margin-bottom: 24px;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 600;
  line-height: 1.7;
  color: var(--navy-800);
  letter-spacing: .06em;
}

.about__text + .about__text { margin-top: 20px; }

.about__text { color: var(--text-muted); }

.about__sign {
  margin-top: 28px;
  font-size: 1.4rem;
  color: var(--navy-800);
}

.about__sign strong {
  display: inline-block;
  margin-left: 10px;
  font-size: 1.9rem;
  font-family: var(--font-serif);
  letter-spacing: .1em;
}

/* --- 事業内容（サービス） --- */
.service-card__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .2em;
}

.service-card .card__title { font-size: 2rem; }

/* --- 数字で見る --- */
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .18);
}

.figure {
  padding: 36px 16px;
  text-align: center;
  background: var(--navy-800);
}

.figure__label {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, .7);
  letter-spacing: .08em;
}

.figure__value {
  margin-top: 8px;
  font-family: var(--font-en);
  font-size: 4rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
}

.figure__value small {
  margin-left: 4px;
  font-family: var(--font-jp);
  font-size: 1.5rem;
  font-weight: 500;
}

.figure__note {
  margin-top: 10px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .55);
}

/* --- 採用バナー --- */
.recruit-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(120deg, var(--navy-800), var(--navy-600));
}

.recruit-banner__body { padding: 56px 48px; }

.recruit-banner__en {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: .3em;
  text-transform: uppercase;
}

.recruit-banner__title {
  margin-top: 12px;
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1.5;
}

.recruit-banner__text {
  margin-top: 18px;
  color: rgba(255, 255, 255, .82);
  font-size: 1.5rem;
}

.recruit-banner__media {
  position: relative;
  overflow: hidden;
}

.recruit-banner__slider {
  position: absolute;
  inset: 0;
}

.recruit-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
}

.recruit-banner__slide.is-active { opacity: 1; }

.recruit-banner__slide img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}


/* =========================================================
   8. 下層ページ
   ========================================================= */

/* --- ページヘッダー --- */
/* --- ページヘッダー（下層ページ） ---
   見出しと英字を横1行に並べ、縦幅を抑えています。 */
.page-head {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: var(--header-h);
  overflow: hidden;
  color: var(--white);
  background: var(--navy-800);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 26, 51, .9), rgba(27, 66, 120, .6)),
    linear-gradient(140deg, var(--navy-700), var(--navy-500));
}

.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, .04) 0 12px,
      rgba(255, 255, 255, 0) 12px 24px);
}

.page-head__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 18px var(--gutter);
}

.page-head__title {
  margin-top: 0;
  font-size: clamp(2rem, 2.6vw, 2.6rem);
  letter-spacing: .08em;
}

.page-head__en {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: .24em;
  text-transform: uppercase;
}

/* 見出しと英字の区切り */
.page-head__en::before {
  content: "／";
  margin-right: 12px;
  color: rgba(255, 255, 255, .45);
  letter-spacing: 0;
}

/* --- パンくず --- */
.breadcrumb { background: var(--navy-050); }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 14px;
  font-size: 1.25rem;
  color: var(--text-muted);
}

.breadcrumb__list li::after {
  content: "/";
  margin-left: 8px;
  color: var(--gray-400);
}

.breadcrumb__list li:last-child::after { content: none; }

.breadcrumb__list a { color: var(--navy-600); }

/* --- 事業案内：詳細ブロック --- */
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.detail + .detail { margin-top: 96px; }

.detail:nth-child(even) .detail__media { order: 2; }

.detail__media .ph { border-radius: var(--radius-lg); }

/* 事業案内ページの写真（16:9で全体を表示） */
.detail__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.detail__en {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .24em;
  text-transform: uppercase;
}

.detail__title {
  margin-top: 10px;
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  color: var(--navy-800);
}

.detail__text {
  margin-top: 20px;
  color: var(--text-muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag-list li {
  padding: 6px 16px;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--navy-700);
  background: var(--navy-050);
  border: 1px solid var(--navy-100);
  border-radius: 999px;
}

/* 対応エリアの囲み枠 */
.area-box {
  padding: 36px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* チェックリスト */
.check-list { display: grid; gap: 12px; margin-top: 24px; }

.check-list li {
  position: relative;
  padding-left: 32px;
  font-size: 1.5rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: .55em; left: 6px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* --- アクセス（地図） --- */
.map {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* --- 採用：募集要項 --- */
.job-card {
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.job-card + .job-card { margin-top: 32px; }

.job-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--navy-100);
}

.job-card__title {
  font-size: 2.2rem;
  color: var(--navy-800);
}

.badge {
  padding: 5px 14px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  background: var(--accent);
  border-radius: 999px;
}

.badge--navy { background: var(--navy-700); }

/* --- お問い合わせフォーム --- */
.form { display: grid; gap: 28px; }

.form-row { display: grid; gap: 10px; }

.form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-800);
}

.form-label label { cursor: pointer; }

.form-label .required {
  padding: 3px 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  background: #c0392b;
  border-radius: 3px;
}

.form-label .optional {
  padding: 3px 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-600);
  background: var(--gray-100);
  border-radius: 3px;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1.55rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(44, 92, 158, .14);
}

.form textarea { min-height: 200px; resize: vertical; }

.form-note {
  font-size: 1.3rem;
  color: var(--text-muted);
}

.form-privacy {
  padding: 24px;
  font-size: 1.4rem;
  background: var(--navy-050);
  border-radius: var(--radius-lg);
}

.form-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.5rem;
}

.form-check input { width: 18px; height: 18px; accent-color: var(--navy-600); }

.form__submit { margin-top: 8px; text-align: center; }

/* 問い合わせ手段カード */
.contact-ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.contact-way {
  padding: 36px 28px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.contact-way__title {
  font-size: 1.8rem;
  color: var(--navy-800);
}

.contact-way__num {
  display: block;
  margin-top: 12px;
  font-family: var(--font-en);
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy-700);
  letter-spacing: .04em;
}

.contact-way__note {
  font-size: 1.3rem;
  color: var(--text-muted);
}

/* --- 文書ページ（プライバシーポリシー等） --- */
.doc h2 {
  margin-top: 48px;
  margin-bottom: 14px;
  font-size: 2rem;
  color: var(--navy-800);
}

.doc h2:first-child { margin-top: 0; }

.doc p { color: var(--text-muted); }

.doc ol {
  margin-top: 12px;
  padding-left: 1.4em;
  list-style: decimal;
  color: var(--text-muted);
}

.doc ol li { margin-bottom: 6px; }

/* --- サイトマップ --- */
.sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.sitemap__title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  font-size: 1.7rem;
  color: var(--navy-800);
  border-bottom: 2px solid var(--navy-100);
}

.sitemap__list li + li { margin-top: 10px; }

.sitemap__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.45rem;
}


/* =========================================================
   9. レスポンシブ
  10. 施工事例
   ========================================================= */

/* --- 〜1200px：PCナビを詰める --- */
@media screen and (max-width: 1200px) {
  .header__inner { gap: 16px; }
  .nav__list { gap: 12px; }
  .nav__link { font-size: 1.4rem; }

  /* 幅が足りないため、電話の説明文を省いて番号だけ表示 */
  .header__tel-label { display: none; }
  .header__tel-num { font-size: 1.7rem; white-space: nowrap; }

  .header__actions { gap: 12px; }
  .btn.header__cta { padding: 12px 16px; }
}

/* --- ヘッダーのメニュー切り替え ---
   ロゴ＋メニュー7項目＋電話＋ボタンを横に並べるには1100px以上必要です。
   それ以下ではハンバーガーメニューに切り替えます。 */
@media screen and (max-width: 1100px) {
  .nav,
  .header__tel { display: none; }

  .hamburger { display: block; }
}

/* --- 〜1024px：タブレット --- */
@media screen and (max-width: 1024px) {
  :root { --gutter: 20px; }

  .nav,
  .header__tel { display: none; }

  .hamburger { display: block; }

  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }

  .about,
  .detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .detail:nth-child(even) .detail__media { order: 0; }

  .about__media-sub {
    right: 0; bottom: -24px;
    width: 38%;
  }

  .recruit-banner { grid-template-columns: 1fr; }

  .recruit-banner__media { order: -1; }

  .recruit-banner__media { aspect-ratio: 16 / 9; }

  .footer__main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- 〜767px：スマートフォン --- */
@media screen and (max-width: 767px) {
  :root {
    --gutter: 18px;
    --header-h: var(--header-h-sp);
  }

  body {
    font-size: 1.5rem;
    line-height: 1.85;
    padding-bottom: 54px;      /* 固定CTA分 */
  }

  .header { height: var(--header-h-sp); }
  .header.is-scrolled { height: var(--header-h-sp); }

  .logo__mark { height: 30px; }
  .logo__name { font-size: 1.6rem; }
  .logo__en { font-size: .9rem; letter-spacing: .16em; }

  /* ヘッダーのCTAボタンは固定CTAと重複するため非表示 */
  .header__actions > .btn { display: none; }

  .fixed-cta { display: flex; }

  .section { padding-block: 52px; }
  .section--tight { padding-block: 40px; }

  .section-head { margin-bottom: 28px; }
  .section-title__en { font-size: 1.1rem; letter-spacing: .24em; }
  .section-lead { margin-top: 18px; font-size: 1.5rem; }

  /* ヒーロー */
  .hero {
    min-height: 0;
    padding-top: calc(var(--header-h-sp) + 56px);
    padding-bottom: 72px;
  }

  .hero__inner { padding-block: 0; }
  .u-br-sp { display: inline; }

  .hero__label { margin-bottom: 20px; font-size: 1.2rem; letter-spacing: .04em; }
  .hero__title { line-height: 1.45; }
  .hero__text { margin-top: 20px; }
  .hero__actions { margin-top: 28px; }
  .hero__actions .btn { width: 100%; }
  /* スマホでも背景写真とスライドを表示する。
     写真は横長のため左右が大きく切れます。重機が画面に残るよう
     表示位置を右寄り（68%）にしています。 */
  .hero__slide { background-position: 68% center; }

  .hero__dots { gap: 10px; margin-top: 32px; }
  .hero__dot { width: 40px; }

  /* 縦長の画面では、上から下へ濃くなるグラデーションのほうが
     文字が読みやすくなります */
  .hero__bg {
    background: linear-gradient(180deg,
      rgba(7, 26, 51, .55) 0%,
      rgba(7, 26, 51, .78) 55%,
      rgba(7, 26, 51, .88) 100%);
  }
  .hero__scroll { display: none; }

  .hero-bar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    font-size: 1.3rem;
  }

  /* 本文が2行になってもタグと上端を揃える */
  .hero-bar__item { align-items: flex-start; }
  .hero-bar__tag { margin-top: 1px; }

  /* ページヘッダー */
  .page-head { margin-top: var(--header-h-sp); }

  .page-head__inner { padding-block: 13px; gap: 4px 10px; }
  .page-head__title { font-size: 1.9rem; }
  .page-head__en { font-size: 1.05rem; letter-spacing: .18em; }
  .page-head__en::before { margin-right: 8px; }

  .breadcrumb__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  /* パーツ */
  .card-grid,
  .card-grid--2,
  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card__body { padding: 22px 20px 24px; }
  .card__title { font-size: 1.75rem; }

  .btn { width: 100%; min-width: 0; padding: 15px 24px; }
  .btn-group { flex-direction: column; }

  .strength {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 22px;
  }

  .strength__num { display: flex; align-items: baseline; gap: 12px; }
  .strength__num strong { font-size: 3.2rem; }
  .strength__num::after { display: none; }

  .about__media-sub {
    right: 0; bottom: -18px;
    width: 44%;
    border-width: 4px;
  }

  .about__badge { top: 12px; left: 12px; padding: 5px 14px; font-size: 1.1rem; }


  /* お困りごと：スマホでは写真の右に文章を置き、縦の長さを抑える */
  .trouble-grid { gap: 12px; }

  .trouble {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
  }

  .trouble__icon {
    flex-shrink: 0;
    width: 72px; height: 72px;
    margin-bottom: 0;
  }

  .trouble__text {
    font-size: 1.45rem;
    line-height: 1.7;
  }

  .figure { padding: 26px 16px; }
  .figure__value { font-size: 3.2rem; }

  .recruit-banner__body { padding: 32px 22px 36px; }

  /* お知らせ */
  .news-item__link {
    grid-template-columns: auto 1fr;
    gap: 8px 14px;
    padding: 18px 4px;
  }

  .news-item__title { grid-column: 1 / -1; }
  .news-item__cat { padding-inline: 12px; }

  /* テーブル */
  .def-table { font-size: 1.45rem; }

  .def-table tr {
    display: block;
    padding-block: 6px;
  }

  .def-table th,
  .def-table td {
    display: block;
    width: 100%;
    padding: 10px 14px;
  }

  .def-table th { margin-bottom: 4px; }

  /* フロー */
  .flow-item {
    grid-template-columns: 56px 1fr;
    gap: 18px;
    padding: 20px 0 32px;
  }

  .flow-item::before { width: 56px; height: 56px; font-size: 1.8rem; }
  .flow-item::after { top: 78px; left: 27px; height: calc(100% - 78px); }

  /* --- 事業案内：スマホでの縦幅を圧縮 --- */
  .detail { gap: 20px; }
  .detail + .detail { margin-top: 44px; }

  .detail__en { font-size: 1.1rem; }
  .detail__title { margin-top: 6px; }
  .detail__text { margin-top: 12px; }

  .check-list { gap: 6px; margin-top: 16px; }
  .check-list li { padding-left: 26px; font-size: 1.42rem; line-height: 1.7; }
  .check-list li::before { left: 4px; }

  .tag-list { gap: 8px; margin-top: 16px; }
  .tag-list li { padding: 5px 12px; font-size: 1.2rem; }

  .area-box { padding: 24px 20px; }

  .flow-item__title { margin-top: 6px; font-size: 1.75rem; }

  /* FAQ */
  .faq__q { padding: 20px 48px 20px 18px; font-size: 1.5rem; }
  .faq__icon { right: 18px; }
  .faq__a-body { padding: 18px 18px 22px; font-size: 1.45rem; }

  /* CTA */
  .cta { padding-block: 44px; }
  .cta__box { gap: 28px; margin-top: 28px; }
  .cta__box > * { width: 100%; }

  /* 採用 */
  .job-card { padding: 26px 20px; }
  .job-card__title { font-size: 1.9rem; }

  /* フォーム */
  .form { gap: 22px; }
  .form-privacy { padding: 18px; }

  /* フッター */
  .footer__main { padding-block: 48px; }

  .footer__nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer__sub-nav { flex-wrap: wrap; gap: 8px 18px; }
}

/* --- 〜374px：小型端末 --- */
@media screen and (max-width: 374px) {
  .logo__name { font-size: 1.45rem; }
  .footer__nav { grid-template-columns: 1fr; }
}

/* --- 印刷 --- */
@media print {
  .header, .drawer, .fixed-cta, .hero__scroll, .cta { display: none !important; }
  body { padding-bottom: 0; color: #000; }
}

/* --- モーション低減 --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}


/* =========================================================
   10. 施工事例
   ========================================================= */

/* --- 一覧：カード上のタグ --- */
.works-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.works-card__meta li {
  padding: 4px 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-700);
  background: var(--navy-050);
  border: 1px solid var(--navy-100);
  border-radius: 999px;
}

/* エリア名は色を変えて目立たせる */
.works-card__meta li.is-area {
  color: var(--white);
  background: var(--navy-700);
  border-color: var(--navy-700);
}

.works-card .card__title { font-size: 1.8rem; line-height: 1.6; }

/* --- 個別ページ：Before / After --- */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ba-item { position: relative; }

.ba-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.ba-item__label {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 16px;
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(7, 26, 51, .8);
  border-radius: 999px;
}

.ba-item__label--after {
  color: var(--navy-900);
  background: var(--accent);
}

/* --- 個別ページ：前後の事例へのリンク --- */
.works-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.works-pager a {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy-600);
}

/* --- スマホ --- */
@media screen and (max-width: 767px) {
  .ba-grid { grid-template-columns: 1fr; gap: 16px; }
  .ba-item__label { top: 10px; left: 10px; padding: 4px 12px; font-size: 1.1rem; }
  .works-card .card__title { font-size: 1.65rem; }
  .works-pager { margin-top: 40px; padding-top: 24px; }
}


/* =========================================================
   11. 工種ごとの色分け
       舗装＝水色／土木＝茶（オレンジ）／解体＝緑
       色を変えるときは下の3ブロックの値だけを触ってください。
   ========================================================= */
.svc-paving {
  --svc-bg:   #e9f2f8;   /* 薄い水色 */
  --svc-line: #cadfee;
  --svc-ink:  #2c6a92;   /* 見出し・チェックなどの濃い色 */
}

.svc-civil {
  --svc-bg:   #f8f1e6;   /* 薄い茶（オレンジ） */
  --svc-line: #ebd9bf;
  --svc-ink:  #94652b;
}

.svc-demolition {
  --svc-bg:   #eaf2ea;   /* 薄い緑 */
  --svc-line: #cee0cd;
  --svc-ink:  #3d7743;
}

/* --- トップページのカード --- */
.card.service-card[class*="svc-"] {
  background: var(--svc-bg);
  border-color: var(--svc-line);
}

.service-card[class*="svc-"] .service-card__label { color: var(--svc-ink); }
.service-card[class*="svc-"] .link-arrow { color: var(--svc-ink); }

/* --- 事業案内ページの各工種 ---
   画像と説明をひとつの色付きパネルにまとめています。 */
.detail[class*="svc-"] {
  align-items: stretch;
  gap: 32px;
  padding: 28px;
  background: var(--svc-bg);
  border: 1px solid var(--svc-line);
  border-radius: var(--radius-lg);
}

/* 工種の間隔（色で区切りが分かるため詰めています） */
.detail[class*="svc-"] + .detail[class*="svc-"] { margin-top: 20px; }

/* 画像はパネルの高さいっぱいに */
.detail[class*="svc-"] .detail__media { display: flex; }

.detail[class*="svc-"] .detail__media img {
  height: 100%;
  min-height: 260px;
  aspect-ratio: auto;
}

/* 説明側は背景を持たせず、余白を詰める */
.detail[class*="svc-"] .detail__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail[class*="svc-"] .detail__title { margin-top: 6px; }
.detail[class*="svc-"] .detail__text { margin-top: 12px; }
.detail[class*="svc-"] .check-list { gap: 8px; margin-top: 16px; }
.detail[class*="svc-"] .tag-list { margin-top: 16px; }

.detail[class*="svc-"] .detail__en { color: var(--svc-ink); }

.detail[class*="svc-"] .check-list li::before {
  border-left-color: var(--svc-ink);
  border-bottom-color: var(--svc-ink);
}

.detail[class*="svc-"] .tag-list li {
  color: var(--svc-ink);
  background: rgba(255, 255, 255, .7);
  border-color: var(--svc-line);
}

@media screen and (max-width: 767px) {
  .detail[class*="svc-"] {
    gap: 16px;
    padding: 16px;
  }

  .detail[class*="svc-"] + .detail[class*="svc-"] { margin-top: 14px; }
  .detail[class*="svc-"] .detail__media img { min-height: 0; aspect-ratio: 16 / 9; }
}


/* =========================================================
   12. 施工事例：工種での絞り込み
       ボタンはJavaScriptが自動生成します。
       事例を追加しても、HTMLのボタンを足す必要はありません。
       （article に data-type / data-type-label を付けるだけ）
       ========================================================= */

/* JSが動かない環境ではボタン自体を出さない（全件表示のまま） */
.works-filter { display: none; }

.works-filter.is-ready {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.works-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color .25s var(--ease), background-color .25s var(--ease),
              border-color .25s var(--ease);
}

.works-filter__btn:hover {
  color: var(--svc-ink, var(--navy-700));
  background: var(--svc-bg, var(--navy-050));
  border-color: var(--svc-line, var(--navy-100));
}

.works-filter__btn[aria-pressed="true"] {
  font-weight: 700;
  color: var(--svc-ink, var(--navy-700));
  background: var(--svc-bg, var(--navy-050));
  border-color: var(--svc-ink, var(--navy-700));
}

/* 件数（(2) の部分） */
.works-filter__count {
  font-family: var(--font-en);
  font-size: 1.2rem;
  color: var(--gray-400);
}

.works-filter__btn[aria-pressed="true"] .works-filter__count {
  color: inherit;
  opacity: .75;
}

/* 絞り込みで0件になったとき */
.works-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  background: var(--navy-050);
  border-radius: var(--radius-lg);
}

/* 絞り込みで非表示になったカード */
.works-card.is-hidden { display: none; }

/* --- 一覧カードの工種バッジを工種の色に --- */
.works-card__meta li.is-type {
  color: var(--svc-ink, var(--navy-700));
  background: var(--svc-bg, var(--navy-050));
  border-color: var(--svc-line, var(--navy-100));
}

@media screen and (max-width: 767px) {
  .works-filter.is-ready { gap: 8px; margin-bottom: 26px; }

  .works-filter__btn {
    padding: 8px 14px;
    font-size: 1.25rem;
  }

  .works-empty { padding: 36px 20px; font-size: 1.45rem; }
}


/* =========================================================
   13. 施工事例：施工の様子（写真ギャラリー）
       Before / After に加えて、工程の写真を並べるときに使います。
       枚数は何枚でも可（PC3列・スマホ2列で自動的に折り返します）。
   ========================================================= */
.works-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.works-gallery__item { margin: 0; }

.works-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.works-gallery__item figcaption {
  margin-top: 10px;
  font-size: 1.35rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* 工程の番号（01、02…） */
.works-gallery__step {
  display: block;
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--svc-ink, var(--navy-600));
}

@media screen and (max-width: 767px) {
  .works-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
    margin-top: 18px;
  }

  .works-gallery__item figcaption {
    margin-top: 7px;
    font-size: 1.25rem;
  }
}

/* 工程写真が1〜2枚のときは大きく見せます（PC・スマホ共通）
   例）<div class="works-gallery works-gallery--1 fade-up"> */
.works-gallery.works-gallery--1 { grid-template-columns: 1fr; }
.works-gallery.works-gallery--2 { grid-template-columns: repeat(2, 1fr); }

.works-gallery--1 .works-gallery__item figcaption { font-size: 1.45rem; }

@media screen and (max-width: 767px) {
  .works-gallery--1 .works-gallery__item figcaption { font-size: 1.4rem; }
}


/* =========================================================
   14. 施工事例：一覧カードの Before / After 切り替え
       カード上の写真が、施工前 → 施工後 と交互に切り替わります。
       全カードが同じタイミングで切り替わります（JS側で制御）。
   ========================================================= */
.works-card__ba {
  position: relative;
  aspect-ratio: 4 / 3;
}

.works-card__shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s var(--ease);
}

.works-card__shot.is-active { opacity: 1; }

/* 2枚ともカード枠いっぱいに */
.works-card__ba img {
  width: 100%;
  height: 100%;
}

/* カード上のバッジは事例ページより小さめに */
.works-card__ba .ba-item__label {
  top: 10px; left: 10px;
  padding: 4px 12px;
  font-size: 1.1rem;
  letter-spacing: .14em;
}

/* 切り替え中もホバーの拡大を効かせる */
.card:hover .works-card__ba img { transform: scale(1.05); }

/* 動きを減らす設定のときは施工後の1枚だけを表示 */
@media (prefers-reduced-motion: reduce) {
  .works-card__shot { transition: none; }
}

@media screen and (max-width: 767px) {
  .works-card__ba .ba-item__label {
    top: 8px; left: 8px;
    padding: 3px 10px;
    font-size: 1.05rem;
  }
}


/* =========================================================
   15. 採用ページ：写真の帯（スライド）
       トップページの採用バナーと同じ写真を、
       採用情報ページでも見てもらうための横長の帯です。
       写真の増減は HTML の .recruit-photos__slide を足し引きするだけです。
   ========================================================= */
.recruit-photos {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy-100);
}

.recruit-photos__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
}

.recruit-photos__slide.is-active { opacity: 1; }

.recruit-photos__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 人物が中央よりやや上に写るため、上寄りで切り取ります */
  object-position: center 40%;
}

@media screen and (max-width: 767px) {
  /* スマホでは縦長写真も見えるよう、やや正方形に近づけます */
  .recruit-photos { aspect-ratio: 4 / 3; }
}

/* アクセス：地図の下の経路リンク */
.map-link {
  margin-top: 14px;
  text-align: right;
}

@media screen and (max-width: 767px) {
  .map-link { margin-top: 10px; text-align: left; }
}

/* トップページ：小さい写真のスライド切り替え */
.about__sub-slider {
  position: relative;
  aspect-ratio: 1 / 1;
}

.about__sub-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(16%);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}

.about__sub-slide.is-active { opacity: 1; transform: translateX(0); }

.about__sub-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
