/* ============================================
   有限会社 愛建工業 公式サイト（v2 開発版）
   2026-05-22 木下（クリスチャン）
   ハイブリッド：紺×白基調、採用ページは明るく
============================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* 2026-09-28変更：ロゴの青を基調に。ロゴの赤は差し色（--accent-red）として小さく使う */
  --navy-primary: #0f4c8f;   /* 基調の青（見出し・リンク） */
  --navy-deep: #0b2f59;      /* 濃い紺（見出し・帯） */
  --navy-soft: #3d74b3;      /* やわらかい青 */
  --navy-bg: #eef4fa;        /* 薄い青系の背景 */
  --gold: #0068b0;           /* ロゴの青（ボタン） */
  --gold-light: #1c7fc1;
  --gold-deep: #00507e;
  --warm-orange: #0f4c8f;
  --warm-soft: #3d74b3;
  --accent-red: #d63510;     /* ロゴの赤（差し色：短い線・印だけに使う） */
  --warm-bg: #eef4fa;
  --gray-bg: #f7f7f7;
  --gray-line: #e2e2e2;
  --gray-text: #5a6470;
  --text-dark: #222831;
  --white: #ffffff;
  /* シャドウは最小限 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 2px 8px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text-dark);
  line-height: 1.8;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-primary); text-decoration: none; }
a:hover { opacity: 0.75; }
img { max-width: 100%; height: auto; display: block; }

/* ========== HEADER ========== */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-line);
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #e85d04 0%, #e85d04 48%, #1c7fc1 52%, #1c7fc1 100%);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
  border-radius: 50%;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.logo-text {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}
.logo-text span {
  display: block;
  font-size: 10px;
  color: var(--gray-text);
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-top: 3px;
}
nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}
nav a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  position: relative;
  padding: 8px 0;
}
nav a.current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--gold);
}
/* 右上の公式LINEボタン */
.nav-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #06c755;
  color: white !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav-line:hover { opacity: 0.88; }
.nav-line-icon { width: 18px; height: 18px; fill: white; }
.nav-tel {
  background: var(--navy-primary);
  color: white !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* ========== HERO (TOP page) ========== */
.hero {
  position: relative;
  min-height: 600px;
  background-color: #0d1928;
  display: grid;
  place-items: center;
  color: white;
  padding: 80px 24px;
  overflow: hidden;
}
/* 2026-08-17：表紙スライドショー */
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-slide.is-active {
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  /* 2026-09-24：上は写真を見せ、下にいくほど紺色に沈むグラデーション */
  background: linear-gradient(180deg, rgba(13, 25, 40, 0.28) 0%, rgba(13, 25, 40, 0.42) 40%, rgba(12, 38, 74, 0.80) 78%, rgba(10, 34, 66, 0.96) 100%);
}
.hero-img-mobile {
  display: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: #ffffff; /* 2026-09-24：写真の上で青が読みづらいため白に統一 */
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.hero h1 { text-shadow: 0 2px 12px rgba(0,0,0,0.45); }
.hero p {
  font-size: clamp(14px, 1.8vw, 17px);
  margin-bottom: 36px;
  opacity: 0.95;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary, .btn-outline {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 14.5px;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--gold);
  color: white !important;
  border: 1px solid var(--gold);
  border-radius: 2px;
}
.btn-primary:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}
.btn-outline {
  border: 1px solid white;
  border-radius: 2px;
}
.btn-outline {
  border: 2px solid white;
  color: white !important;
}
.btn-outline:hover {
  background: white;
  color: var(--navy-deep) !important;
}

/* ========== PAGE HERO ========== */
.page-hero {
  /* 2026-09-24：トップの採用バナーと同じ紺→青に統一 */
  background: linear-gradient(135deg, #0c2648 0%, #0f3d73 60%, #0068b0 100%);
  color: white;
  padding: 80px 24px 64px;
  text-align: center;
}
.ph-tag {
  display: inline-block;
  padding: 4px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.page-hero p {
  opacity: 0.9;
}
.breadcrumbs {
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.breadcrumbs a { color: rgba(255, 255, 255, 0.7); }

/* ========== NUMBERS ========== */
.numbers {
  background: var(--navy-bg);
  padding: 60px 24px;
  border-top: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
}
.numbers-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.num-item {
  background: white;
  padding: 32px 20px;
  border: 1px solid var(--gray-line);
  text-align: center;
}
.num-val {
  font-size: 42px;
  font-weight: 900;
  color: var(--navy-primary);
  line-height: 1;
  margin-bottom: 12px;
}
.num-label {
  font-size: 12.5px;
  color: var(--gray-text);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ========== SECTION COMMON ========== */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px;
}
.section-tag {
  display: inline-block;
  color: var(--navy-primary);
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 14px;
  padding-left: 14px;
  position: relative;
}
.section-tag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--navy-primary);
}
.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.section-lead {
  color: var(--gray-text);
  font-size: 15px;
  max-width: 700px;
  margin-bottom: 32px;
}
.section-divider {
  width: 32px;
  height: 2px;
  background: var(--navy-primary);
  margin-bottom: 48px;
}

/* ========== SERVICES (TOP digest) ========== */
.services {
  background: var(--gray-bg);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: white;
  border: 1px solid var(--gray-line);
  overflow: hidden;
  transition: border-color 0.2s;
}
.service-card:hover {
  border-color: var(--navy-primary);
}
.card-top {
  display: none;
}
.service-card .card-body {
  border-top: 3px solid var(--navy-primary);  /* シンプルなアクセント */
}
.card-body {
  padding: 32px 24px;
}
.card-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.card-icon svg {
  width: 44px;
  height: 44px;
  stroke: var(--navy-primary);
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}
.card-text {
  font-size: 13.5px;
  color: var(--gray-text);
  line-height: 1.7;
}
.btn-link {
  display: inline-block;
  padding: 14px 36px;
  background: var(--navy-primary);
  color: white !important;
  border-radius: 2px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.04em;
}

/* ========== SERVICE DETAIL (services.html) ========== */
.service-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
  background: white;
  padding: 28px;
  border: 1px solid var(--gray-line);
  border-left: 3px solid var(--navy-primary);
}
.sd-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #e8e8e8;
  display: block;
}
.sd-icon {
  display: none;
}
.service-detail h3 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 19px;
  margin-bottom: 8px;
  color: var(--navy-deep);
}
.service-detail h3::before {
  content: "■";
  color: var(--navy-primary);
  font-size: 12px;
}
.service-detail p {
  color: var(--gray-text);
  font-size: 14px;
  margin-bottom: 12px;
}
.service-detail ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
.service-detail li {
  background: var(--navy-bg);
  color: var(--navy-primary);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* ========== FEATURES ========== */
.features {
  background: white;
}
.feature-list {
  display: grid;
  /* 4項目を2×2で均等に並べる（3+1の孤立を防ぐ） */
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.feature-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
}
.feat-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}
.feature-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--navy-deep);
}
.feature-item p {
  color: var(--gray-text);
  font-size: 13.5px;
}

/* ========== RECRUIT BANNER (TOP) ========== */
.recruit-banner {
  /* 2026-09-24 夜：表紙のグラデーションと同じ紺→青に */
  background: linear-gradient(135deg, #0c2648 0%, #0f3d73 60%, #0068b0 100%);
  padding: 80px 24px;
  color: white;
  text-align: center;
}
.recruit-banner h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  margin-bottom: 16px;
}
.recruit-banner p {
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}
.recruit-banner .btn-primary {
  background: white;
  color: #0f3d73 !important;
  border-color: white;
}
.recruit-banner .btn-primary:hover {
  background: #e8f1fa;
}

/* ========== CTA ========== */
.cta {
  background: var(--navy-deep);
  color: white;
  text-align: center;
  padding: 80px 24px;
}
.cta h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 16px;
  font-weight: 800;
}
.cta p {
  margin-bottom: 28px;
  opacity: 0.92;
}
.cta-tel {
  display: inline-block;
  font-size: 32px;
  font-weight: 900;
  color: white !important;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.cta-hours {
  font-size: 12.5px;
  opacity: 0.8;
  margin-bottom: 0;
}

/* ========== COMPANY INFO ========== */
.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table th, .info-table td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid var(--gray-line);
  font-size: 14px;
  vertical-align: top;
}
.info-table th {
  width: 32%;
  color: var(--navy-deep);
  font-weight: 700;
  background: var(--navy-bg);
}
.info-table td {
  color: var(--text-dark);
}
.map-placeholder {
  background: var(--gray-bg);
  border: 1px solid var(--gray-line);
  padding: 60px 24px;
  text-align: center;
  color: var(--gray-text);
}
.map-placeholder .pin {
  font-size: 40px;
  margin-bottom: 12px;
}
.map-embed {
  width: 100%;
  height: 360px;
  border: 1px solid var(--gray-line);
  display: block;
}
.map-address-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: var(--gray-bg);
  border: 1px solid var(--gray-line);
  border-top: none;
  font-size: 13.5px;
  color: var(--navy-deep);
}
.map-address-bar a {
  padding: 8px 18px;
  background: var(--gold);
  color: white;
  border-radius: 3px;
  font-size: 12.5px;
  font-weight: 700;
}

/* ========== MOBILE FIXED CTA ========== */
.mobile-fixed-cta { display: none; }
@media (max-width: 768px) {
  .mobile-fixed-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
  }
  .mobile-fixed-cta a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
    color: white !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.02em;
  }
  .mobile-fixed-cta a svg {
    width: 18px;
    height: 18px;
    stroke: white;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-fixed-cta .m-tel { background: var(--text-dark); } /* 2026-09-24：赤→濃いグレー */
  .mobile-fixed-cta .m-form { background: var(--gold); }
  body { padding-bottom: 56px; }
  /* 既存のcontact-cta-blockがフッターと被るのを防ぐ */
  footer { padding-bottom: 24px; }
}

/* ========== CONTACT FORM ========== */
.contact-form {
  background: var(--gray-bg);
}
.form-grid {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 8px;
}
.req {
  background: var(--warm-orange);
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 6px;
  font-weight: 600;
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-line);
  border-radius: 2px;
  font-size: 14px;
  font-family: inherit;
  background: white;
}
.form-row textarea {
  min-height: 140px;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--navy-primary);
}
.form-submit {
  text-align: center;
  margin-top: 12px;
}
.form-submit button {
  padding: 14px 48px;
  background: var(--navy-primary);
  color: white;
  border: none;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
}
.form-submit button:hover {
  background: var(--navy-deep);
}
.form-note {
  font-size: 12px;
  color: var(--gray-text);
  text-align: center;
  margin-top: 12px;
}

/* ========== WORKS GALLERY ========== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.work-card {
  background: white;
  border: 1px solid var(--gray-line);
  overflow: hidden;
  transition: border-color 0.2s;
}
.work-card:hover {
  border-color: var(--navy-primary);
}
.work-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--gray-line);
}
.work-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.work-label {
  position: relative;
}
.work-label::before {
  content: attr(data-label);
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(13, 25, 40, 0.85);
  color: white;
  font-size: 11px;
  padding: 4px 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.work-body {
  padding: 24px;
}
.work-body h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--navy-deep);
}
.work-meta {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 12px;
}
.work-text {
  color: var(--gray-text);
  font-size: 13.5px;
  line-height: 1.7;
}

/* ========== TBD（準備中）プレースホルダー ========== */
.tbd-box {
  background: var(--warm-bg);
  border: 1px solid var(--warm-orange);
  border-left: 4px solid var(--warm-orange);
  padding: 24px;
  color: #b52c0c;
  font-size: 13.5px;
  font-weight: 600;
}
.recruit-page .tbd-box {
  color: var(--warm-orange);
}
.tbd-box::before {
  content: "準備中 ";
  font-weight: 700;
}
.tbd-box small {
  display: block;
  margin-top: 8px;
  font-weight: 500;
  font-size: 12px;
  color: var(--gray-text);
}

/* ========== CONTACT CTA BLOCK (k-daito風・footer直前) ========== */
.contact-cta-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border-top: 1px solid var(--gray-line);
}
.contact-cta-block > a,
.contact-cta-block > div {
  padding: 64px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: opacity 0.2s;
}
.contact-cta-block > a:hover {
  opacity: 0.88;
}
.contact-cta-form {
  background: var(--navy-primary);
  color: white !important;
  text-decoration: none;
}
.contact-cta-phone {
  background: white;
  color: var(--gold); /* 電話番号は青 */
}
.contact-cta-block .cta-icon {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.contact-cta-block .cta-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.contact-cta-block .cta-sub {
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.85;
  margin-top: -4px;
}
.contact-cta-block .cta-phone-num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.contact-cta-block .cta-hours {
  font-size: 12px;
  color: var(--gray-text);
}
/* recruit page: form側はオレンジ */
.recruit-page .contact-cta-form {
  background: var(--warm-orange);
}
.recruit-page .contact-cta-phone {
  color: var(--gold);
}

/* ========== RELATED PAGES BANNER ========== */
.related-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 48px 24px;
  background: var(--gray-bg);
}
.related-banner {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: white;
  text-decoration: none;
  display: block;
  aspect-ratio: 3 / 1;
}
.related-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition: opacity 0.3s, transform 0.6s;
}
.related-banner:hover img {
  opacity: 0.6;
  transform: scale(1.04);
}
.related-banner-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}
.related-banner-text .ja {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: white;
}
.related-banner-text .en {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.85);
  margin-top: 4px;
}

/* ========== TAB NAVIGATION (アンカー) ========== */
.tab-nav {
  background: white;
  border-bottom: 1px solid var(--gray-line);
  position: sticky;
  top: 73px;
  z-index: 50;
}
.tab-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.tab-nav a {
  padding: 20px 28px;
  color: var(--navy-primary);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  position: relative;
}
.tab-nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: var(--gray-line);
}
.tab-nav a:hover {
  background: var(--navy-bg);
  border-bottom-color: var(--navy-primary);
  opacity: 1;
}
.tab-nav a::before {
  content: "▼";
  font-size: 8px;
  margin-right: 6px;
  display: inline-block;
  transform: translateY(-2px);
}
.recruit-page .tab-nav a {
  color: var(--warm-orange);
}
.recruit-page .tab-nav a:hover {
  background: var(--warm-bg);
  border-bottom-color: var(--warm-orange);
}

/* ========== BREADCRUMB (page topの簡易ナビ) ========== */
.breadcrumb-bar {
  background: var(--gray-bg);
  padding: 12px 24px;
  font-size: 12px;
  border-bottom: 1px solid var(--gray-line);
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.breadcrumb-inner a {
  color: var(--gray-text);
  text-decoration: underline;
}

/* ========== FOOTER ========== */
footer {
  background: #2a2f37;
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 24px 0;
  font-size: 13px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand-block {
  font-size: 13px;
  line-height: 1.9;
}
.footer-brand-block .logo {
  margin-bottom: 16px;
}
.footer-brand-block .logo-text {
  color: white;
}
.footer-brand-block .logo-text span {
  color: rgba(255,255,255,0.6);
}
.footer-brand-block p {
  margin: 0;
  color: rgba(255,255,255,0.78);
}
.footer-brand-block .footer-contact {
  margin-top: 8px;
  font-size: 12.5px;
}
.footer-brand-block .footer-hours {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col li {
  margin-bottom: 12px;
}
.footer-col a {
  color: rgba(255,255,255,0.82) !important;
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
}
.footer-col a:hover {
  color: white !important;
  opacity: 1;
}
.footer-col a::before {
  content: "—";
  margin-right: 8px;
  opacity: 0.5;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
}
/* 既存の foot-links を非表示（新footer-innerに移行） */
.foot-links { display: none; }

/* ============================================
   採用ページ専用スタイル（明るく・温かく）
   <body class="recruit-page"> で発動
============================================ */
.recruit-page .page-hero {
  background: var(--warm-orange);
}
.recruit-page nav a.current::after {
  background: var(--warm-orange);
}

/* 2026-09-25：採用ページはオレンジ→青ベースに。warm系の変数をこのページだけ青に差し替える */
body.recruit-page {
  --warm-orange: #0f3d73;
  --warm-soft: #0068b0;
  --warm-bg: #eef4fa;
}
.recruit-hero {
  background-image: linear-gradient(180deg, rgba(12, 38, 74, 0.55) 0%, rgba(12, 38, 74, 0.62) 60%, rgba(10, 34, 66, 0.85) 100%), url("img/hero_recruit.jpg");
  background-size: cover;
  background-position: center 20%;
  min-height: 580px;
  display: grid;
  place-items: center;
  text-align: center;
  color: white;
  padding: 100px 24px;
}
.recruit-hero-img-mobile {
  display: none;
}
.recruit-hero h1 {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.recruit-hero p {
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 600;
  margin-bottom: 32px;
}
.recruit-hero .btn-primary {
  background: white;
  color: var(--warm-orange) !important;
  border-color: white;
  padding: 16px 40px;
  font-size: 15px;
}

/* Before/After section */
.compare-section {
  background: var(--warm-bg);
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}
.compare-card {
  background: white;
  padding: 32px 28px;
  border: 1px solid var(--gray-line);
}
.compare-label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.compare-card.now .compare-label {
  background: var(--warm-orange);
  color: white;
}
.compare-card.past .compare-label {
  background: var(--gray-line);
  color: var(--gray-text);
}
.compare-list {
  list-style: none;
}
.compare-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-line);
  font-size: 14px;
}
.compare-list li:last-child { border-bottom: none; }

/* 社員インタビュー */
.interview-section {
  background: white;
}
.interview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.interview-card {
  background: var(--warm-bg);
  border: 1px solid var(--gray-line);
  overflow: hidden;
  transition: border-color 0.2s;
}
.interview-card:hover {
  border-color: var(--warm-orange);
}
.interview-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.interview-body {
  padding: 24px;
}
.interview-role {
  display: inline-block;
  background: var(--warm-orange);
  color: white;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.interview-card h3 {
  font-size: 17px;
  margin-bottom: 12px;
  color: var(--navy-deep);
}
.interview-card .quote {
  color: var(--gray-text);
  font-size: 13.5px;
  line-height: 1.8;
}

/* FAQ */
.faq-section {
  background: var(--gray-bg);
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: white;
  border: 1px solid var(--gray-line);
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-item summary::before {
  content: "Q.";
  color: var(--warm-orange);
  font-weight: 900;
  font-size: 18px;
}
.faq-item summary::after {
  content: "＋";
  margin-left: auto;
  flex-shrink: 0;
  color: var(--warm-orange);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { border-bottom: 1px solid var(--gray-line); }
.faq-answer {
  padding: 20px 24px 24px 56px;
  color: var(--gray-text);
  font-size: 13.5px;
  line-height: 1.8;
}
.faq-answer::before {
  content: "A. ";
  color: var(--navy-primary);
  font-weight: 900;
  margin-left: -28px;
  margin-right: 8px;
}

/* Recruit募集要項 */
.recruit-info {
  background: white;
}
.recruit-info-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 820px;
  margin: 0 auto;
}
.recruit-info-table th, .recruit-info-table td {
  padding: 18px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-line);
  font-size: 14px;
  vertical-align: top;
}
.recruit-info-table th {
  width: 28%;
  background: var(--warm-bg);
  color: var(--warm-orange);
  font-weight: 700;
}

/* 採用ページの強み */
.benefits-section {
  background: white;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.benefit-item {
  background: white;
  padding: 28px 20px;
  border: 1px solid var(--gray-line);
  border-top: 3px solid var(--warm-orange);
  text-align: center;
}
.benefit-icon {
  display: none; /* 絵文字は非表示 */
}
.benefit-title {
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 8px;
  font-size: 15px;
}
.benefit-text {
  font-size: 12.5px;
  color: var(--gray-text);
  line-height: 1.7;
}

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 800px) {
  .nav-inner { padding: 12px 16px; flex-wrap: wrap; }
  nav ul { gap: 0; font-size: 13px; justify-content: space-between; width: 100%; }
  nav ul li { flex: 1 1 auto; text-align: center; }
  nav a { display: block; white-space: nowrap; font-size: 12.5px; letter-spacing: 0; padding: 8px 2px; }
  nav { order: 3; width: 100%; padding-top: 12px; border-top: 1px solid var(--gray-line); }
  .nav-tel, .nav-line { display: none; }
  .section-inner { padding: 64px 20px; }
  .hero {
    min-height: auto;
    padding: 0;
    background-image: none;
    background-color: var(--navy-deep);
    display: block;
  }
  /* スマホでは表紙スライドを上部の帯として表示 */
  .hero-slides {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 10;
  }
  .hero-overlay { display: none; }
  .hero-img-mobile {
    display: block;
    width: 100%;
    height: auto;
  }
  .hero-inner {
    padding: 40px 20px 60px;
    text-align: center;
  }
  /* 赤背景の上では青文字が読みづらいため淡いクリーム色に */
  .hero h1 em { color: #ffffff; }
  .recruit-hero {
    min-height: auto;
    padding: 0;
    background-image: none;
    background-color: var(--warm-orange);
    display: block;
  }
  .recruit-hero-img-mobile {
    display: block;
    width: 100%;
    height: auto;
  }
  .recruit-hero > div {
    padding: 40px 20px 60px;
    text-align: center;
  }
  .feature-list { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; gap: 16px; }
  .company-grid { grid-template-columns: 1fr; gap: 24px; }
  .service-detail { grid-template-columns: 1fr; }
  .sd-icon { text-align: left; }
  .work-images { grid-template-columns: 1fr; }
  .work-images img { height: 220px; }
  .contact-cta-block { grid-template-columns: 1fr; }
  .contact-cta-block > a, .contact-cta-block > div { padding: 40px 20px; }
  .related-banner-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .tab-nav { top: auto; position: relative; }
  .tab-nav a { padding: 14px 16px; font-size: 12.5px; }
}

/* ===== 2026-08-17 ロゴ差し替え（支給ロゴ） ===== */
.logo-img {
  height: 48px;
  width: auto;
  display: block;
}
.footer-logo-img {
  width: 88px;
  height: 88px;
  display: block;
  margin-bottom: 14px;
}
@media (max-width: 768px) {
  .logo-img { height: 38px; }
  .footer-logo-img { width: 72px; height: 72px; }
}

/* ===== 2026-08-17 縦向き写真カード（拡大せず原寸で表示＝画質そのまま） ===== */
.work-card--portrait .work-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  gap: 28px;
}
.work-card--portrait .work-photo {
  position: relative;
  align-self: stretch;
}
.work-card--portrait .work-photo img {
  width: 100%;
  height: auto;      /* 元の比率のまま。引き伸ばさない */
  display: block;
}
.work-card--portrait .work-body {
  padding: 24px 28px 24px 0;
}
@media (max-width: 800px) {
  .work-card--portrait .work-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .work-card--portrait .work-photo {
    max-width: 360px;
    margin: 0 auto;
  }
  .work-card--portrait .work-body {
    padding: 24px;
  }
}

/* ===== 2026-08-17 代表挨拶 ===== */
.message-block {
  max-width: 780px;
  margin: 0 auto;
}
.message-block p {
  color: var(--text-dark);
  font-size: 15px;
  line-height: 2.05;
  margin-bottom: 22px;
}
.message-lead {
  font-size: clamp(19px, 2.4vw, 24px) !important;
  font-weight: 800;
  color: var(--navy-deep);
  letter-spacing: 0.04em;
  line-height: 1.7 !important;
  margin-bottom: 28px !important;
  padding-left: 18px;
  border-left: 3px solid var(--navy-primary);
}
.message-sign {
  text-align: right;
  font-weight: 700;
  color: var(--navy-deep);
  margin-top: 34px;
  margin-bottom: 0 !important;
}
.draft-note {
  max-width: 780px;
  margin: 28px auto 0;
  padding: 14px 18px;
  background: var(--warm-bg);
  border: 1px dashed var(--warm-orange);
  color: var(--warm-orange);
  font-size: 12.5px;
  line-height: 1.8;
}
@media (max-width: 768px) {
  .message-block p { font-size: 14.5px; line-height: 1.95; }
}

/* ===== 2026-08-17 スマホでの文の折り返しを意味のかたまり単位に ===== */
.ph { display: inline-block; }
.page-hero p,
.section-lead,
.card-text,
.work-text,
.hero p {
  text-wrap: pretty;          /* 最終行が1文字だけ残るのを防ぐ */
  word-break: auto-phrase;    /* 対応ブラウザでは文節で折り返す */
}
@media (max-width: 800px) {
  /* PC用に入れた改行はスマホでは無効化（中途半端な位置で折れるため） */
  .section-lead br,
  .hero p br,
  .recruit-banner p br { display: none; }
  .page-hero p { padding: 0 8px; }
}

/* ドットコンPLUS パートナー（2026-09-24） */
.dotcon-visual { max-width: 560px; margin: 0 auto 32px; }
.dotcon-visual img { width: 100%; height: auto; display: block; border: 1px solid var(--gray-line); }

.dotcon-points { max-width: 560px; margin: 0 auto 28px; padding-left: 1.2em; color: var(--text-dark); line-height: 1.9; }
.dotcon-points li { margin-bottom: 6px; }

/* 農業の取り組み（2026-09-24） */
.farm-section { background: white; }
.farm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.farm-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
@media (max-width: 800px) { .farm-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* 写真なしの施工実績カード（2026-09-24） */
.work-card--noimg { border-top: 3px solid var(--navy-primary); align-self: start; }
.dotcon-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 900px; margin: 0 auto; }
.dotcon-photos img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
@media (max-width: 800px) { .dotcon-photos { gap: 8px; } }

/* 採用：数字で見る（2026-09-24 カード風をやめて数字と見出しだけに） */
.stats { list-style: none; margin: 32px auto 0; padding: 0; max-width: 960px; display: flex; flex-wrap: wrap; justify-content: center; }
.stats li { flex: 1 1 160px; padding: 20px 12px; text-align: center; border-left: 1px solid var(--gray-line); }
.stats li:first-child { border-left: none; }
.stats .stat-label { display: block; font-size: 13px; color: var(--gray-text); margin-bottom: 6px; letter-spacing: 0.05em; }
.stats .stat-num { display: block; font-size: 34px; font-weight: 700; color: var(--text-dark); line-height: 1.2; }
.stats .stat-num small { font-size: 14px; font-weight: 600; margin-left: 2px; }
@media (max-width: 800px) {
  .stats li { flex: 1 1 45%; border-left: none; border-top: 1px solid var(--gray-line); }
  .stats li:nth-child(-n+2) { border-top: none; }
  .dotcon-photos { grid-template-columns: repeat(2, 1fr); }
}

/* アンカー移動時に固定ヘッダー＋ページ内ナビの下に見出しが隠れないようにする */
section[id], [id] {
  scroll-margin-top: 150px;
}
@media (max-width: 800px) {
  section[id], [id] {
    scroll-margin-top: 140px;
  }
}

/* スマホだけ改行する<br> */
.sp-br { display: none; }
@media (max-width: 800px) {
  .sp-br { display: inline; }
}

/* 動きを減らす設定のユーザーには表紙スライドショーのアニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  .hero-slides * {
    animation: none !important;
    transition: none !important;
  }
}


/* ============================================
   2026-09-28 配色・レイアウト調整
   青を基調に、赤は「短い線・小さな印」だけの差し色に
============================================ */
.section-tag::before { width: 14px; height: 2px; background: var(--accent-red); }
.section-divider { background: var(--accent-red); }
.service-detail h3::before { color: var(--accent-red); }
.req { background: var(--accent-red); }
.tbd-box, .recruit-page .tbd-box { color: var(--navy-deep); border-color: var(--navy-soft); border-left-color: var(--navy-primary); background: var(--navy-bg); }

/* 働く環境・サポート：番号＋短い赤線で、シンプルに存在感を出す */
.benefits-grid { grid-template-columns: repeat(4, 1fr); gap: 0; background: white; border: 1px solid var(--gray-line); }
.benefit-item { text-align: left; padding: 40px 32px 44px; border: none; border-left: 1px solid var(--gray-line); background: none; }
.benefit-item:first-child { border-left: none; }
.benefit-num { display: block; font-family: "Helvetica Neue", Arial, sans-serif; font-size: 44px; font-weight: 700; line-height: 1; color: var(--navy-primary); letter-spacing: 0.02em; }
.benefit-num::after { content: ""; display: block; width: 28px; height: 3px; background: var(--accent-red); margin: 18px 0 20px; }
.benefit-title { font-size: 19px; color: var(--text-dark); margin-bottom: 10px; letter-spacing: 0.04em; }
.benefit-text { font-size: 14px; line-height: 1.85; }
@media (max-width: 800px) {
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .benefit-item { padding: 28px 20px 30px; border-left: none; border-top: 1px solid var(--gray-line); }
  .benefit-item:nth-child(-n+2) { border-top: none; }
  .benefit-item:nth-child(even) { border-left: 1px solid var(--gray-line); }
  .benefit-num { font-size: 34px; }
  .benefit-num::after { margin: 14px 0 14px; }
  .benefit-title { font-size: 16px; }
  .benefit-text { font-size: 13px; }
}

/* ドットコンPLUS：左に文字、右にチラシを大きく。施工例は下に大きく4枚 */
.dotcon-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.dotcon-text .section-lead { margin-bottom: 28px; }
.dotcon-text .section-divider { margin-bottom: 32px; }
.dotcon-text .dotcon-points { max-width: none; margin: 0 0 32px; padding: 0; list-style: none; }
.dotcon-text .dotcon-points li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--gray-line); margin: 0; font-size: 15px; }
.dotcon-text .dotcon-points li:first-child { border-top: 1px solid var(--gray-line); }
.dotcon-text .dotcon-points li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: var(--navy-primary); }
.dotcon-layout .dotcon-visual { max-width: none; margin: 0; }
.dotcon-layout .dotcon-visual img { box-shadow: var(--shadow-lg); }
.dotcon-photos-wrap { margin-top: 72px; }
.dotcon-photos-ttl { font-size: 16px; font-weight: 800; color: var(--navy-deep); margin-bottom: 16px; letter-spacing: 0.06em; }
.dotcon-photos-wrap .dotcon-photos { max-width: none; gap: 16px; }
.dotcon-photos-wrap .dotcon-photos img { aspect-ratio: 4 / 3; }
@media (max-width: 800px) {
  .dotcon-layout { grid-template-columns: 1fr; gap: 36px; }
  .dotcon-photos-wrap { margin-top: 44px; }
  .dotcon-photos-wrap .dotcon-photos { gap: 8px; }
}

/* 設備紹介：写真と文章を半分ずつ。余白を詰めて密度を上げる */
.equip-card { display: grid; grid-template-columns: 1fr 1fr; background: white; border: 1px solid var(--gray-line); }
.equip-photo { position: relative; min-height: 440px; }
.equip-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.equip-photo .equip-label { position: absolute; left: 0; top: 0; background: var(--navy-deep); color: white; font-size: 12px; padding: 6px 14px; letter-spacing: 0.08em; z-index: 1; }
.equip-body { padding: 56px 56px; display: flex; flex-direction: column; justify-content: center; }
.equip-meta { font-size: 12px; font-weight: 700; color: var(--navy-soft); letter-spacing: 0.12em; margin-bottom: 10px; }
.equip-body h3 { font-size: 26px; font-weight: 800; color: var(--navy-deep); margin-bottom: 18px; letter-spacing: 0.04em; }
.equip-body h3::after { content: ""; display: block; width: 28px; height: 3px; background: var(--accent-red); margin-top: 16px; }
.equip-body p { font-size: 15px; color: var(--gray-text); line-height: 1.95; margin-bottom: 24px; }
.equip-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.equip-points li { background: var(--navy-bg); padding: 12px 16px; font-size: 14px; font-weight: 700; color: var(--navy-deep); border-left: 3px solid var(--navy-primary); }
@media (max-width: 800px) {
  .equip-card { grid-template-columns: 1fr; }
  .equip-photo { min-height: 300px; }
  .equip-body { padding: 32px 22px 36px; }
  .equip-body h3 { font-size: 21px; }
}

/* ===== 2026-09-30 修正2 ===== */
/* 愛建工業の歩み */
.history-block .history-sub { font-size: 17px; font-weight: 800; color: var(--navy-deep); margin: 40px 0 14px; padding-left: 14px; border-left: 3px solid var(--accent-red); letter-spacing: 0.04em; }
.history-philosophy { background: var(--gray-bg); padding: 22px 26px; margin: 8px 0 28px; }
.history-philosophy-ttl { font-size: 13px !important; font-weight: 800; color: var(--navy-primary) !important; letter-spacing: 0.1em; margin-bottom: 10px !important; line-height: 1.6 !important; }
.history-philosophy ul { list-style: none; margin: 0; padding: 0; }
.history-philosophy li { position: relative; padding-left: 18px; font-weight: 700; color: var(--navy-deep); line-height: 1.9; margin-bottom: 6px; }
.history-philosophy li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 2px; background: var(--accent-red); }
/* 月給（未経験者／経験者の2段） */
.stats .stat-num--split { font-size: 26px; line-height: 1.35; }
.stats .stat-sub { font-size: 12px; font-weight: 700; color: var(--gray-text); margin-right: 6px; letter-spacing: 0.04em; }
/* ドットコン施工例：写真＋名前 */
.dotcon-photos-wrap .dotcon-photos { grid-template-columns: repeat(3, 1fr); }
.dotcon-photos figure { margin: 0; }
.dotcon-photos figcaption { font-size: 13px; font-weight: 700; color: var(--navy-deep); margin-top: 8px; letter-spacing: 0.04em; }
@media (max-width: 800px) {
  .dotcon-photos-wrap .dotcon-photos { grid-template-columns: repeat(2, 1fr); }
  .stats .stat-num--split { font-size: 22px; }
}
/* 採用ページのトップ写真：PCでも顔が隠れないよう、写真と文字を上下に分ける（スマホと同じ形） */
.recruit-hero { min-height: auto; padding: 0; background-image: none; background-color: var(--warm-orange); display: block; }
.recruit-hero-img-mobile { display: block; width: 100%; height: clamp(320px, 46vw, 680px); object-fit: cover; object-position: center 35%; }
.recruit-hero > div { padding: 56px 24px 64px; text-align: center; }
@media (max-width: 800px) {
  .recruit-hero-img-mobile { height: auto; }
  .recruit-hero > div { padding: 40px 20px 60px; }
}
/* トップの「施工実績を見る」「採用情報を見る」：文字を枠の下半分に置く（2026-09-30） */
.related-banner-text { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 3.5%; }
/* 採用「数字で知る」：カード＋アイコンで見やすく（2026-09-30） */
.stats.stats-cards { max-width: 1080px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stats.stats-cards li { border: none; border-top: 4px solid var(--navy-primary); background: #fff; box-shadow: 0 2px 14px rgba(15, 61, 115, 0.08); padding: 28px 14px 26px; display: flex; flex-direction: column; align-items: center; }
.stats-cards .stat-icon { width: 56px; height: 56px; border-radius: 50%; background: #eaf2fb; color: var(--navy-primary); display: grid; place-items: center; margin-bottom: 12px; }
.stats-cards .stat-icon svg { width: 28px; height: 28px; }
.stats-cards .stat-label { font-size: 14px; font-weight: 700; color: var(--navy-deep); margin-bottom: 10px; }
.stats-cards .stat-num { color: var(--navy-primary); font-size: 40px; font-weight: 800; }
.stats-cards .stat-num small { color: var(--navy-deep); }
.stats-cards .pay-row { display: flex; align-items: baseline; justify-content: center; gap: 8px; width: 100%; }
.stats-cards .pay-row + .pay-row { border-top: 1px dashed var(--gray-line); margin-top: 6px; padding-top: 6px; }
.stats-cards .stat-pay .stat-num { font-size: 30px; }
.stats-cards .pay-tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #eaf2fb; color: var(--navy-primary); white-space: nowrap; }
.stats-cards .pay-tag--exp { background: var(--navy-primary); color: #fff; }
@media (max-width: 800px) {
  .stats.stats-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats.stats-cards li { border-top: 4px solid var(--navy-primary); padding: 22px 10px; }
  .stats-cards .stat-pay { grid-column: 1 / -1; order: -1; }
  .stats-cards .stat-num { font-size: 32px; }
  .stats-cards .stat-icon { width: 48px; height: 48px; }
}
/* 数字で知る：文字の強弱を整える（見出し＞数字＞ラベル） */
.stats-cards .stat-label { font-size: 13px; font-weight: 600; color: var(--gray-text); letter-spacing: 0.06em; margin-bottom: 12px; }
.stats-cards .stat-num { font-size: 30px; line-height: 1.1; letter-spacing: 0.02em; }
.stats-cards .stat-num small { font-size: 13px; margin-left: 3px; }
.stats-cards .stat-pay .stat-num { font-size: 24px; }
.stats-cards .stat-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--navy-primary); background: #eaf2fb; padding: 6px 16px 6px 12px; border-radius: 999px; margin-top: 2px; }
.stats-cards .stat-badge svg { width: 16px; height: 16px; }
.stats-cards .stat-icon { width: 48px; height: 48px; margin-bottom: 10px; }
.stats-cards .stat-icon svg { width: 24px; height: 24px; }
@media (max-width: 800px) {
  .stats-cards .stat-num { font-size: 26px; }
  .stats-cards .stat-pay .stat-num { font-size: 24px; }
  .stats-cards .stat-icon { width: 44px; height: 44px; }
}
.stats-cards .stat-label { font-size: 14px; color: var(--text-dark); }

/* ===== 2026-10-01 スマホ表示の調整 ===== */
/* 見出し上の小さなラベル（—私たちについて 等）：左の線と文字が重ならないように全ページ共通で間隔をあける */
.section-tag { padding-left: 24px; }
.section-tag::before { width: 16px; }

/* フォーム下の注意書き：1行ずつ区切りのいい所で折り返す */
.form-note-line { display: block; line-height: 1.8; }
.form-note-line + .form-note-line { margin-top: 4px; }
@media (max-width: 800px) {
  .form-note { text-align: left; max-width: 340px; margin-left: auto; margin-right: auto; }
  .form-note-line { padding-left: 1em; text-indent: -1em; }
}

@media (max-width: 800px) {
  /* 事業内容・施工実績などのページ上部：高さを約1/6つめる */
  .page-hero { padding: 50px 20px 40px; }

  /* 採用「数字で知る」：画面いっぱいのカードをやめ、1枚の表にまとめる */
  .stats.stats-cards { display: block; max-width: 420px; margin: 24px auto 0; background: #fff; border-top: 4px solid var(--navy-primary); box-shadow: 0 2px 14px rgba(15, 61, 115, 0.08); }
  .stats.stats-cards li { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; column-gap: 12px; padding: 14px 18px; border: none; border-top: 1px solid var(--gray-line); box-shadow: none; background: none; }
  .stats.stats-cards li:first-child { border-top: none; }
  .stats-cards .stat-pay { order: 0; }
  .stats-cards .stat-icon { width: 36px; height: 36px; margin: 0; }
  .stats-cards .stat-icon svg { width: 20px; height: 20px; }
  .stats-cards .stat-label { margin: 0; text-align: left; font-size: 14px; }
  .stats-cards .stat-num { font-size: 22px; text-align: right; }
  .stats-cards .stat-num small { font-size: 12px; }
  .stats-cards .stat-badge { font-size: 13px; padding: 4px 12px 4px 9px; margin: 0; justify-self: end; }
  .stats-cards .stat-badge svg { width: 13px; height: 13px; }
  .stats-cards .stat-pay { grid-template-rows: auto auto; }
  .stats-cards .stat-pay .stat-icon { grid-row: 1 / span 2; }
  .stats-cards .stat-pay .stat-label { grid-row: 1 / span 2; }
  .stats-cards .pay-row { grid-column: 3; justify-content: flex-end; width: auto; gap: 6px; }
  .stats-cards .pay-row + .pay-row { border-top: none; margin-top: 2px; padding-top: 0; }
  .stats-cards .stat-pay .stat-num { font-size: 20px; }
  .stats-cards .pay-tag { font-size: 10px; padding: 2px 7px; }

  /* 採用「働く環境」：箱で囲まず、縦に1列・横書きの行で並べる */
  .benefits-grid { display: block; background: none; border: none; }
  .benefit-item, .benefit-item:nth-child(even), .benefit-item:nth-child(-n+2) { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: start; padding: 18px 4px; border: none; border-top: 1px solid var(--gray-line); background: none; }
  .benefit-item:first-child { border-top: none; }
  .benefit-item:last-child { border-bottom: 1px solid var(--gray-line); }
  .benefit-num { grid-row: 1 / span 2; font-size: 26px; }
  .benefit-num::after { width: 18px; margin: 8px 0 0; }
  .benefit-title { font-size: 16px; margin-bottom: 4px; }
  .benefit-text { font-size: 13.5px; line-height: 1.7; }
}
.form-note strong { margin: 0 0.3em; }
.form-note-line .ph { text-indent: 0; }

/* 準備中のため非表示にしたもの（hidden）を確実に隠す */
[hidden] { display: none !important; }
/* ヘッダー「代表挨拶・沿革」：スマホは「代表挨拶」だけ表示 */
@media (max-width: 800px) { header nav .nav-sub { display: none; } }
/* ヘッダー6項目：PCでも折り返さないように（幅が狭いPCでは間隔と文字を少し詰める） */
nav a { white-space: nowrap; }
@media (min-width: 801px) and (max-width: 1240px) {
  nav ul { gap: 18px; }
  nav a { font-size: 13.5px; }
  .nav-inner { gap: 16px; }
  .nav-line { padding-left: 14px; padding-right: 14px; font-size: 12.5px; }
}
@media (min-width: 801px) and (max-width: 1000px) {
  header nav .nav-sub { display: none; }
  nav ul { gap: 14px; }
}

/* ===== 2026-10-01 採用「数字で知る」：建設会社の採用サイトでよくあるタイル型 ===== */
.num-tiles { list-style: none; padding: 0; margin: 36px auto 0; max-width: 1080px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.num-tile { grid-column: span 2; background: var(--navy-primary); color: #fff; padding: 26px 16px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.num-tile:nth-child(even) { background: #0b3a6e; }
.num-tile--pay { grid-column: span 2; }
/* PC：上段3つ（休日・残業・月給）、下段2つ（資格・有給）を中央に */
.num-tile:nth-child(4) { grid-column: 2 / span 2; }
.num-tile:nth-child(5) { grid-column: 4 / span 2; }
.num-tile .stat-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff; display: grid; place-items: center; margin-bottom: 10px; }
.num-tile .stat-icon svg { width: 24px; height: 24px; }
.num-label { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.3); min-width: 6em; }
.num-value { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: 0.01em; }
.num-value small { font-family: inherit; font-size: 15px; font-weight: 700; margin-left: 3px; }
.num-value--yes { font-size: 26px; display: inline-flex; align-items: center; gap: 8px; font-family: inherit; }
.num-check { width: 26px; height: 26px; }
.num-check circle { fill: #fff; }
.num-check path { stroke: var(--navy-primary); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.num-pay { display: flex; flex-direction: column; gap: 8px; }
.num-pay-item { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.num-pay-item .num-value { font-size: 34px; }
.num-pay-tag { font-size: 11px; font-weight: 700; background: #fff; color: var(--navy-primary); padding: 3px 8px; border-radius: 2px; white-space: nowrap; position: relative; top: -4px; }
@media (max-width: 800px) {
  .num-tiles { grid-template-columns: 1fr 1fr; gap: 8px; max-width: 420px; margin-top: 24px; }
  .num-tile, .num-tile:nth-child(4), .num-tile:nth-child(5) { grid-column: auto; padding: 16px 8px 18px; }
  .num-tile--pay { grid-column: 1 / -1 !important; order: -1; }
  .num-tile:nth-child(even) { background: var(--navy-primary); }
  .num-tile:nth-child(1), .num-tile:nth-child(4) { background: #0b3a6e; }
  .num-tile .stat-icon { width: 34px; height: 34px; margin-bottom: 6px; }
  .num-tile .stat-icon svg { width: 18px; height: 18px; }
  .num-label { font-size: 12.5px; padding-bottom: 7px; margin-bottom: 9px; }
  .num-value { font-size: 32px; }
  .num-value small { font-size: 12px; }
  .num-value--yes { font-size: 20px; gap: 6px; }
  .num-check { width: 20px; height: 20px; }
  .num-pay { flex-direction: row; gap: 18px; justify-content: center; flex-wrap: wrap; }
  .num-pay-item .num-value { font-size: 28px; }
}
.num-tile .num-label, .num-tile .num-value { color: #fff; }
.num-tile .stat-icon svg { color: #fff; }
/* 2026-10-01 再調整：白い背景になじむ淡い色／PCは5つ横並び／スマホは小さめボックス */
.num-tiles { grid-template-columns: repeat(5, 1fr); gap: 12px; }
.num-tile, .num-tile--pay, .num-tile:nth-child(4), .num-tile:nth-child(5) { grid-column: auto; }
.num-tile, .num-tile:nth-child(even) { background: #eef4fa; color: var(--navy-deep); border-top: 3px solid var(--navy-primary); padding: 22px 10px 22px; }
.num-tile .num-label { color: var(--navy-deep); border-bottom-color: rgba(15, 76, 143, 0.2); }
.num-tile .num-value { color: var(--navy-primary); font-size: 38px; }
.num-tile .num-value small { color: var(--navy-deep); }
.num-tile .stat-icon { background: #fff; }
.num-tile .stat-icon svg { color: var(--navy-primary); }
.num-tile .num-value--yes { font-size: 22px; }
.num-check circle { fill: var(--navy-primary); }
.num-check path { stroke: #fff; }
.num-pay-item .num-value { font-size: 28px !important; }
.num-pay-tag { background: var(--navy-primary); color: #fff; }
@media (max-width: 800px) {
  .num-tiles { grid-template-columns: 1fr 1fr; gap: 8px; max-width: 360px; }
  .num-tile, .num-tile:nth-child(even), .num-tile:nth-child(1), .num-tile:nth-child(4) { background: #eef4fa; padding: 12px 8px 14px; }
  .num-tile--pay { grid-column: 1 / -1 !important; }
  .num-tile .stat-icon { display: none; }
  .num-tile .num-label { font-size: 12px; padding-bottom: 6px; margin-bottom: 8px; }
  .num-tile .num-value { font-size: 26px; }
  .num-tile .num-value--yes { font-size: 17px; }
  .num-check { width: 17px; height: 17px; }
  .num-pay-item .num-value { font-size: 24px !important; }
}

/* ===== 2026-10-07 全体を明るく・清潔感のある印象に（やまのこさん依頼） ===== */
:root {
  --gray-bg: #f2f7fc;      /* グレー → ごく薄い青 */
  --gray-line: #dce7f3;    /* 区切り線も青みに */
}
/* 濃い紺のグラデーション → いまの青に合わせた明るめの青 */
.page-hero,
.recruit-banner { background: linear-gradient(135deg, #1659a3 0%, #1e6fbf 55%, #3a8fd6 100%); }
.recruit-page .page-hero { background: linear-gradient(135deg, #1659a3 0%, #1e6fbf 55%, #3a8fd6 100%); }
/* トップの写真：下を紺で沈ませず、明るい青で軽く */
.hero-overlay { background: linear-gradient(180deg, rgba(10, 40, 80, 0.10) 0%, rgba(10, 40, 80, 0.22) 40%, rgba(16, 76, 143, 0.62) 78%, rgba(18, 84, 156, 0.85) 100%); }
/* フッター：濃いグレー → 明るめの青 */
footer { background: #1a5a9e; color: rgba(255, 255, 255, 0.92); }
.footer-bottom { border-top-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.75); }
/* スマホ下の「電話する」：濃いグレー → 濃いめの青 */
.mobile-fixed-cta .m-tel { background: #0f4c8f; }
/* 関連ページバナー：写真を暗く沈めない */
.related-banner { background: #1659a3; }
.related-banner img { opacity: 0.6; }
.related-banner:hover img { opacity: 0.75; }
/* 働く環境：8項目（4×2段）。上の段に会社の雰囲気が伝わる4つ */
.benefits-grid--8 .benefit-item:nth-child(n+5) { border-top: 1px solid var(--gray-line); }
.benefits-grid--8 .benefit-item:nth-child(5) { border-left: none; }
.recruit-message { background: #fff; padding: 40px 44px; box-shadow: 0 2px 14px rgba(15, 61, 115, 0.06); }
.recruit-message-more { text-align: center; margin: 28px 0 0 !important; }
@media (max-width: 800px) { .recruit-message { padding: 28px 20px; } }
/* トップ写真：明るさは保ちつつ、文字の後ろだけ少し青く落として読みやすく */
.hero-overlay { background:
  radial-gradient(ellipse 60% 45% at 50% 52%, rgba(8, 40, 82, 0.45) 0%, rgba(8, 40, 82, 0) 100%),
  linear-gradient(180deg, rgba(10, 40, 80, 0.12) 0%, rgba(10, 40, 80, 0.22) 40%, rgba(16, 76, 143, 0.6) 80%, rgba(18, 84, 156, 0.85) 100%); }
.hero p { text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 2px 14px rgba(0,0,0,0.45); }
/* 採用ページ：写真下の帯・エントリー帯も明るめの青に */
.recruit-hero { background-color: #1a5fa8; }
.recruit-page .contact-cta-form, .contact-cta-form { background: #1a5fa8; }

/* ===== 2026-10-09 ページ下部の区切りを分かりやすく・フッターに写真（大塗さま参考） ===== */
/* 表紙スライドの切り替えを速く（約3秒ごと・切り替え0.9秒） */
.hero-slide { transition: opacity 0.9s ease; }
/* 会社案内タイル：写真の上に文字を置いた4つのボタン */
.info-tiles { display: grid; grid-template-columns: repeat(4, 1fr); }
.info-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 4 / 3; background-size: cover; background-position: center; color: #fff !important; text-decoration: none; overflow: hidden; }
.info-tile::before { content: ""; position: absolute; inset: 0; background: rgba(10, 45, 90, 0.45); transition: background 0.3s; }
.info-tile:hover::before { background: rgba(10, 45, 90, 0.25); }
.info-tile > span { position: relative; text-shadow: 0 1px 6px rgba(0,0,0,0.45); }
.info-tile .ja { font-size: 24px; font-weight: 800; letter-spacing: 0.12em; }
.info-tile .en { font-size: 14px; letter-spacing: 0.08em; }
.info-tile .arrow { font-size: 22px; margin-top: 4px; transition: transform 0.3s; }
.info-tile:hover .arrow { transform: translateX(6px); }
/* お問合せ枠：フッターと同じ青だったので、薄い青＋青文字にして区切る */
.contact-cta-form, .recruit-page .contact-cta-form { background: #e3eefa; color: var(--navy-primary) !important; }
.contact-cta-block .cta-title { font-size: 24px; letter-spacing: 0.12em; }
.contact-cta-block { border-top: none; border-bottom: 1px solid var(--gray-line); }
/* フッター：青一色 → ぼかした現場写真＋青の膜で奥行きを */
footer { position: relative; background: #1a5a9e url('img/footer_bg.jpg') center / cover no-repeat; overflow: hidden; }
footer::before { content: ""; position: absolute; inset: 0; background: rgba(16, 70, 130, 0.78); }
footer > * { position: relative; }
/* フッターの目次：見出しを消して、太めの文字でギュッと */
.footer-col h4 { display: none; }
.footer-col li { margin-bottom: 18px; }
.footer-col a { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; color: #fff !important; }
.footer-col a::before { content: none; }
.footer-col a:hover { opacity: 0.7; }
.footer-brand-block p, .footer-brand-block .footer-hours { color: rgba(255,255,255,0.92); }
.footer-brand-block .footer-contact { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.footer-inner { align-items: start; }
.footer-brand-block { border-right: 1px solid rgba(255,255,255,0.4); padding-right: 40px; }
@media (max-width: 800px) {
  .info-tiles { grid-template-columns: 1fr 1fr; }
  .info-tile .ja { font-size: 17px; letter-spacing: 0.06em; }
  .info-tile .en { font-size: 11px; }
  .contact-cta-block .cta-title { font-size: 19px; letter-spacing: 0.06em; }
  .footer-brand-block { border-right: none; padding-right: 0; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand-block { grid-column: 1 / -1; }
  .footer-col li { margin-bottom: 14px; }
  .footer-col a { font-size: 14px; }
}

/* ===== 2026-10-09(2) 事業内容を大きく・施工実績を2列＋詳細表示・工事の流れ（大塗さま参考） ===== */
/* 共通の緑ボタン風 → 愛建の青ボタン */
.sd-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--navy-primary); color: #fff !important; font-weight: 700; font-size: 15px; letter-spacing: 0.08em; padding: 16px 28px; text-decoration: none; transition: opacity 0.2s; }
.sd-btn span { font-size: 22px; line-height: 1; }
.sd-btn:hover { opacity: 0.85; }

/* 事業の目次タブ */
.svc-tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-bottom: 1px solid var(--gray-line); }
.svc-tabs a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 22px 8px 14px; font-size: 16px; font-weight: 700; letter-spacing: 0.08em; color: var(--navy-deep); text-decoration: none; }
.svc-tabs a + a::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--gray-line); }
.svc-tabs a span { color: var(--navy-primary); font-size: 18px; line-height: 1; }
.svc-tabs a:hover { background: var(--navy-bg); }

/* 事業内容：写真を大きく（左に写真＋白い太字、右に薄い青の枠） */
.service-detail { grid-template-columns: 42% 1fr; gap: 0; padding: 0; border: none; background: var(--navy-bg); align-items: stretch; scroll-margin-top: 90px; }
.service-detail + .service-detail { margin-top: 48px; }
.sd-photo { position: relative; min-height: 460px; overflow: hidden; }
.sd-photo .sd-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sd-photo::after { content: ""; position: absolute; inset: 0; background: rgba(8, 40, 82, 0.28); }
.sd-photo-ttl { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 0 16px; text-shadow: 0 2px 10px rgba(0,0,0,0.45); }
.sd-photo-ttl .ja { font-size: 34px; font-weight: 800; letter-spacing: 0.08em; line-height: 1.35; }
.sd-photo-ttl .en { font-size: 16px; letter-spacing: 0.1em; margin-top: 6px; }
.service-detail .sd-body { padding: 56px 56px; display: flex; flex-direction: column; justify-content: center; }
.service-detail h3 { display: block; font-size: 26px; font-weight: 800; line-height: 1.5; color: var(--navy-primary); margin-bottom: 18px; letter-spacing: 0.06em; }
.service-detail h3::before { content: none; }
.service-detail p { font-size: 16px; line-height: 2; color: #2b3440; margin-bottom: 18px; }
.service-detail li { background: #fff; font-size: 13px; }
.service-detail .sd-btn { align-self: flex-start; margin-top: 26px; }

/* 工事の流れ */
.flow-section { background: #fff; }
.flow-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; counter-reset: none; }
.flow-step { position: relative; background: var(--navy-bg); border-top: 4px solid var(--navy-primary); padding: 26px 22px 24px; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; right: -20px; top: 50%; margin-top: -8px; border: 8px solid transparent; border-left: 10px solid var(--navy-soft); }
.flow-step:nth-child(4)::after { display: none; }
.flow-num { display: inline-block; font-family: "Helvetica Neue", Arial, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: #fff; background: var(--navy-primary); padding: 3px 10px; }
.flow-step h3 { font-size: 19px; font-weight: 800; color: var(--navy-deep); margin: 14px 0 10px; letter-spacing: 0.04em; }
.flow-step p { font-size: 14px; line-height: 1.85; color: #3a4552; margin: 0; }
.flow-cta { text-align: center; margin-top: 48px; }

/* 施工実績：大きめの写真で2つ横並び */
.wk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 40px; }
.wk-card { display: block; background: #fff; color: inherit !important; text-decoration: none; box-shadow: 0 2px 16px rgba(15, 61, 115, 0.08); transition: transform 0.25s, box-shadow 0.25s; scroll-margin-top: 90px; }
.wk-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(15, 61, 115, 0.16); }
.wk-cover { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.wk-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.wk-card:hover .wk-cover img { transform: scale(1.04); }
.wk-count { position: absolute; right: 12px; bottom: 12px; background: rgba(8, 40, 82, 0.75); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; letter-spacing: 0.06em; }
.wk-body { padding: 22px 26px 24px; }
.wk-cat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--navy-primary); border: 1px solid var(--navy-primary); padding: 2px 10px; letter-spacing: 0.06em; }
.wk-year { display: inline-block; font-size: 12px; color: var(--gray-text); margin-left: 10px; }
.wk-body h3 { font-size: 22px; font-weight: 800; color: var(--navy-deep); margin: 12px 0 10px; letter-spacing: 0.04em; }
.wk-more { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--navy-primary); }
.wk-more span { font-size: 20px; line-height: 1; transition: transform 0.25s; }
.wk-card:hover .wk-more span { transform: translateX(4px); }

/* 施工実績：詳細（大きい写真で見る） */
.wk-modal { width: min(1040px, 94vw); max-height: 92vh; padding: 0; border: none; background: #fff; overflow: auto; }
.wk-modal::backdrop { background: rgba(6, 24, 48, 0.78); }
.wk-close { position: sticky; top: 0; float: right; z-index: 3; width: 52px; height: 52px; border: none; background: var(--navy-primary); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.wk-main { position: relative; background: #0d2340; }
.wk-main img { display: block; width: 100%; max-height: 62vh; object-fit: contain; margin: 0 auto; }
.wk-main-label { position: absolute; left: 0; top: 0; background: var(--navy-primary); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 14px; letter-spacing: 0.08em; }
.wk-thumbs { display: flex; gap: 8px; padding: 10px; background: #0d2340; overflow-x: auto; }
.wk-thumb { flex: 0 0 auto; width: 110px; height: 74px; padding: 0; border: 3px solid transparent; background: none; cursor: pointer; opacity: 0.6; }
.wk-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wk-thumb.is-on, .wk-thumb:hover { border-color: #fff; opacity: 1; }
.wk-modal-body { padding: 32px 40px 40px; }
.wk-modal-body h3 { font-size: 26px; font-weight: 800; color: var(--navy-deep); margin: 12px 0 14px; }
.wk-modal-body .work-text { font-size: 16px; line-height: 2; color: #2b3440; }
.wk-ba { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 26px 0 30px; }
.wk-ba figure { margin: 0; position: relative; }
.wk-ba img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.wk-ba figcaption { position: absolute; left: 0; top: 0; background: var(--navy-primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; }
.wk-ba-arrow { color: var(--navy-soft); font-size: 22px; }

@media (max-width: 800px) {
  .svc-tabs { grid-template-columns: 1fr 1fr; }
  .svc-tabs a { font-size: 14px; padding: 14px 6px 10px; border-bottom: 1px solid var(--gray-line); }
  .svc-tabs a:nth-child(3)::before { display: none; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail + .service-detail { margin-top: 32px; }
  .sd-photo { min-height: 260px; }
  .sd-photo-ttl .ja { font-size: 26px; }
  .sd-photo-ttl .en { font-size: 13px; }
  .service-detail .sd-body { padding: 30px 22px 34px; }
  .service-detail h3 { font-size: 20px; }
  .service-detail p { font-size: 15px; }
  .service-detail .sd-btn { align-self: stretch; }
  .flow-list { grid-template-columns: 1fr; gap: 26px; }
  .flow-step:not(:last-child)::after, .flow-step:nth-child(4)::after { display: block; right: auto; left: 50%; top: auto; bottom: -24px; margin: 0 0 0 -9px; border: 9px solid transparent; border-top: 10px solid var(--navy-soft); }
  .wk-grid { grid-template-columns: 1fr; gap: 28px; }
  .wk-body h3 { font-size: 19px; }
  .wk-modal { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100%; margin: 0; }
  .wk-main img { max-height: 46vh; }
  .wk-thumb { width: 84px; height: 58px; }
  .wk-modal-body { padding: 22px 20px 32px; }
  .wk-modal-body h3 { font-size: 21px; }
  .wk-ba { grid-template-columns: 1fr; }
  .wk-ba-arrow { transform: rotate(90deg); justify-self: center; }
}

/* ===== 2026-10-09(3) 事業内容：写真を左右交互・背景を画面の端まで／工事の流れを丸のステップに ===== */
.service-detail { clip-path: inset(0 -100vmax); box-shadow: 0 0 0 100vmax var(--navy-bg); }
.service-detail:nth-child(even) .sd-photo { order: 2; }
.service-detail + .service-detail { margin-top: 0; }
.service-detail { margin-top: 0 !important; border-top: 56px solid var(--navy-bg); border-bottom: 56px solid var(--navy-bg); }
.service-detail:nth-child(even) { background: #fff; box-shadow: 0 0 0 100vmax #fff; border-color: #fff; }

/* 工事の流れ：左に丸のステップ、線でつなぐ（四角の枠はなし） */
.flow-list { display: block; max-width: 760px; margin: 0 auto; }
.flow-step { display: grid; grid-template-columns: 92px 1fr; column-gap: 32px; align-items: center; background: none; border: none; padding: 0 0 36px; }
.flow-step:last-child { padding-bottom: 0; }
.flow-step::after, .flow-step:not(:last-child)::after, .flow-step:nth-child(4)::after { content: none; display: none; }
.flow-step:not(:last-child)::before { content: ""; position: absolute; left: 45px; top: 92px; bottom: 0; width: 3px; background: linear-gradient(var(--navy-soft) 50%, transparent 50%) 0 0 / 3px 10px; }
.flow-num { grid-row: 1 / span 2; width: 92px; height: 92px; border-radius: 50%; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--navy-primary); color: #fff; font-size: 30px; line-height: 1; letter-spacing: 0.02em; box-shadow: 0 0 0 6px var(--navy-bg); }
.flow-num small { font-size: 11px; letter-spacing: 0.16em; margin-bottom: 4px; }
.flow-step h3 { margin: 0 0 6px; font-size: 21px; align-self: end; }
.flow-step p { align-self: start; font-size: 15px; }
@media (max-width: 800px) {
  .service-detail:nth-child(even) .sd-photo { order: 0; }
  .service-detail { border-top-width: 0; border-bottom-width: 36px; }
  .flow-step { grid-template-columns: 68px 1fr; column-gap: 18px; padding-bottom: 28px; }
  .flow-step:not(:last-child)::before { left: 33px; top: 68px; }
  .flow-num { width: 68px; height: 68px; font-size: 22px; box-shadow: 0 0 0 4px var(--navy-bg); }
  .flow-num small { font-size: 9px; }
  .flow-step h3 { font-size: 18px; }
  .flow-step p { font-size: 14px; }
}
.service-detail:nth-child(even) { grid-template-columns: 1fr 42%; }
.service-detail:nth-child(even) li { background: var(--navy-bg); }
@media (max-width: 800px) { .service-detail:nth-child(even) { grid-template-columns: 1fr; } }

/* ===== 2026-10-09(4) 事業内容：大塗さまと同じく左右に余白をとった枠に戻す ===== */
.service-detail, .service-detail:nth-child(even) { clip-path: none; box-shadow: none; border: none; background: var(--navy-bg); }
.service-detail + .service-detail { margin-top: 64px !important; }
.service-detail:nth-child(even) li { background: #fff; }
@media (max-width: 800px) { .service-detail + .service-detail { margin-top: 36px !important; } }

/* ===== 2026-10-09(4) トップページ（大塗さま参考） ===== */
.sec-head { text-align: center; max-width: 820px; margin: 0 auto 48px; padding: 0 20px; }
.sec-head h2, .top-recruit-body h2 { font-size: 34px; font-weight: 800; color: var(--navy-deep); letter-spacing: 0.1em; margin: 0; }
.sec-en { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 17px; font-weight: 600; color: var(--navy-primary); letter-spacing: 0.08em; margin: 6px 0 22px; }
.sec-lead { font-size: 16px; line-height: 2; color: #2b3440; margin: 0; }
.sec-lead .ph { display: inline-block; }

/* 工事サービス：大きな写真の組み合わせ（画面いっぱい） */
.top-svc { padding: 96px 0 0; background: #fff; }
.top-svc-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 380px 300px; }
.top-svc-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background-size: cover; background-position: center; color: #fff !important; text-decoration: none; text-align: center; overflow: hidden; }
.top-svc-tile.t-big { grid-column: 1 / span 2; }
.top-svc-tile.t-tall { grid-column: 3; grid-row: 1 / span 2; }
.top-svc-tile::before { content: ""; position: absolute; inset: 0; background: rgba(8, 40, 82, 0.38); transition: background 0.3s; }
.top-svc-tile:hover::before { background: rgba(8, 40, 82, 0.18); }
.top-svc-tile > span { position: relative; text-shadow: 0 2px 10px rgba(0,0,0,0.45); }
.top-svc-tile .ja { font-size: 30px; font-weight: 800; letter-spacing: 0.1em; line-height: 1.4; }
.top-svc-tile .en { font-size: 15px; letter-spacing: 0.08em; }
.top-svc-tile .arrow { font-size: 24px; margin-top: 6px; transition: transform 0.3s; }
.top-svc-tile:hover .arrow { transform: translateX(6px); }

/* 施工事例：写真カード3枚 */
.top-works { padding: 96px 24px; background: #fff; }
.top-works-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.top-work { display: block; background: var(--navy-bg); color: inherit !important; text-decoration: none; transition: transform 0.25s, box-shadow 0.25s; }
.top-work:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(15, 61, 115, 0.15); }
.tw-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.tw-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.top-work:hover .tw-img img { transform: scale(1.05); }
.tw-cat { position: absolute; right: 0; top: 0; background: var(--navy-primary); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; letter-spacing: 0.06em; }
.tw-body { padding: 18px 22px 20px; }
.tw-body h3 { font-size: 19px; font-weight: 800; color: var(--navy-deep); margin: 0 0 4px; }
.tw-body p { font-size: 13px; color: var(--navy-primary); margin: 0; }
.top-more { text-align: center; margin-top: 52px; }

/* 採用情報：写真＋文章 */
.top-recruit { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy-bg); }
.top-recruit-photo img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; display: block; }
.top-recruit-body { padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.top-recruit-catch { font-size: 24px; font-weight: 800; line-height: 1.7; color: var(--navy-primary); margin: 0 0 16px; }
.top-recruit-body .sec-lead { margin-bottom: 32px; }

/* 企業情報の見出し（下の4つの写真ボタンの上） */
.top-company-head { padding: 96px 0 0; background: #fff; }
.top-company-head .sec-head { margin-bottom: 48px; }

@media (max-width: 800px) {
  .sec-head { margin-bottom: 32px; }
  .sec-head h2, .top-recruit-body h2 { font-size: 24px; }
  .sec-en { font-size: 14px; margin-bottom: 16px; }
  .sec-lead { font-size: 14px; }
  .top-svc { padding-top: 64px; }
  .top-svc-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 260px 180px; }
  .top-svc-tile.t-big { grid-column: 1 / span 2; }
  .top-svc-tile.t-tall { grid-column: 2; grid-row: 2; }
  .top-svc-tile:nth-child(3) { grid-column: 1; grid-row: 2; }
  .top-svc-tile:nth-child(4) { grid-column: 1 / span 2; grid-row: 3; }
  .top-svc-tile .ja { font-size: 20px; letter-spacing: 0.04em; }
  .top-svc-tile .en { font-size: 12px; }
  .top-works { padding: 64px 20px; }
  .top-works-grid { grid-template-columns: 1fr; gap: 22px; }
  .top-recruit { grid-template-columns: 1fr; }
  .top-recruit-photo img { min-height: 240px; height: 240px; }
  .top-recruit-body { padding: 40px 22px 48px; }
  .top-recruit-catch { font-size: 19px; }
  .top-recruit-body .sd-btn { align-self: stretch; }
  .top-company-head { padding-top: 64px; }
}
@media (max-width: 800px) { .top-svc-tile:nth-child(3) .ja { font-size: 16px; } }

/* ===== 2026-10-09(5) トップ：コンセプト＋インパクトのある採用ボタン（渡辺土木さま参考） ===== */
.top-concept { position: relative; overflow: hidden; background: #fff; padding: 110px 24px 100px; text-align: center; }
.tc-bg { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); font-family: "Times New Roman", "Hiragino Mincho ProN", serif; font-size: clamp(90px, 15vw, 230px); line-height: 1; letter-spacing: 0.06em; color: #eef3f9; white-space: nowrap; pointer-events: none; }
.tc-lead { position: relative; font-size: 17px; letter-spacing: 0.14em; color: var(--navy-deep); margin: 40px 0 34px; }
.tc-catch { position: relative; display: inline-block; font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif; font-size: clamp(28px, 3.4vw, 46px); font-weight: 700; line-height: 1.6; letter-spacing: 0.14em; color: #1d2a38; padding: 0 24px 26px; margin: 0 0 64px; border-bottom: 2px solid var(--navy-deep); }
.tc-row { position: relative; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; text-align: left; }
.tc-text p { font-size: 16px; line-height: 2.2; letter-spacing: 0.06em; color: #2b3440; margin: 0 0 18px; }
.tc-text .sd-btn { margin-top: 18px; }
.tc-photo img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; display: block; }

.top-recruit-band { background: #fff; padding: 110px 24px; }
.recruit-big { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 1200px; height: 300px; margin: 0 auto; overflow: hidden; background-size: cover; background-position: center 35%; color: #1d2a38 !important; text-decoration: none; border: 1px solid #d5dde6; }
.recruit-big::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.62); transition: background 0.35s; }
.recruit-big:hover::before { background: rgba(255, 255, 255, 0.45); }
.recruit-big > span { position: relative; }
.rb-bg { position: absolute !important; left: 50%; top: 50%; transform: translate(-50%, -58%); font-family: "Helvetica Neue", Arial, sans-serif; font-size: clamp(80px, 13vw, 190px); font-weight: 300; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.85); white-space: nowrap; line-height: 1; pointer-events: none; }
.rb-ttl { font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: clamp(34px, 4.4vw, 62px); font-weight: 700; letter-spacing: 0.1em; line-height: 1.2; }
.rb-mark { background: linear-gradient(transparent 58%, #ffe100 58%, #ffe100 90%, transparent 90%); padding: 0 18px; }
.rb-en { font-family: "Times New Roman", serif; font-size: 22px; letter-spacing: 0.24em; margin-top: 12px; }
.rb-copy { font-size: 17px; font-weight: 600; letter-spacing: 0.2em; margin-top: 14px; }
.rb-arrow { position: absolute !important; right: 36px; bottom: 26px; font-size: 30px; color: var(--navy-primary); transition: transform 0.3s; }
.recruit-big:hover .rb-arrow { transform: translateX(8px); }
.top-company-head { padding-top: 0; }

@media (max-width: 800px) {
  .top-concept { padding: 64px 20px 64px; }
  .tc-bg { top: 28px; }
  .tc-lead { font-size: 14px; margin: 18px 0 22px; }
  .tc-catch { padding: 0 6px 18px; margin-bottom: 36px; letter-spacing: 0.08em; }
  .tc-row { grid-template-columns: 1fr; gap: 28px; }
  .tc-photo { order: -1; }
  .tc-text p { font-size: 15px; line-height: 2; }
  .tc-text .sd-btn { display: flex; }
  .top-recruit-band { padding: 64px 16px; }
  .recruit-big { height: 230px; }
  .rb-en { font-size: 16px; }
  .rb-copy { font-size: 13px; letter-spacing: 0.08em; padding: 0 12px; text-align: center; }
  .rb-arrow { right: 16px; bottom: 12px; font-size: 24px; }
}

/* ==========================================================================
   2026-10-09 デザイン統一（HP制作のプロ＋デザイン担当の点検をもとに）
   ルール：青5段階／赤は短い線と印だけ／英字はHelvetica1種類／明朝はトップのキャッチ1か所
           見出しは中央の1形式／ボタンは1種類（＋写真の上の白枠）／写真の膜は1つの値
           セクション余白 PC96px・スマホ64px／背景は白と薄い青の交互
   ========================================================================== */
:root {
  --blue-900: #0b2f59; --blue-700: #0f4c8f; --blue-500: #1e6fbf; --blue-100: #e3eefa; --blue-50: #f2f7fc;
  --gold: #0f4c8f; --gold-light: #1e6fbf; --gold-deep: #0b2f59;   /* 名前は旧来のまま、中身を基調の青にそろえる */
  --navy-bg: #f2f7fc; --gray-bg: #f2f7fc;
  --text-dark: #0b2f59;
  --font-en: "Helvetica Neue", Arial, sans-serif;
  --veil: rgba(11, 47, 89, 0.40); --veil-hover: rgba(11, 47, 89, 0.20);
  --shadow: 0 2px 12px rgba(15, 76, 143, 0.08); --shadow-hover: 0 8px 24px rgba(15, 76, 143, 0.14);
}

/* --- 見出し：全ページ中央の1形式（小ラベル→大見出し→赤い短線→リード） --- */
.section-tag { display: block; text-align: center; padding-left: 0; font-size: 13px; letter-spacing: 0.16em; color: var(--blue-500); margin-bottom: 10px; }
.section-tag::before { display: none; }
.section-title { text-align: center; font-size: clamp(24px, 2.6vw, 32px); color: var(--blue-900); letter-spacing: 0.08em; line-height: 1.4; margin-bottom: 0; }
.section-divider { width: 32px; height: 3px; background: var(--accent-red); margin: 18px auto 22px; }
.section-lead { text-align: center; max-width: 720px; margin: 0 auto 48px; font-size: 16px; line-height: 2; color: #2b3440; }
.section-title + .section-lead { margin-top: 22px; }
.section-lead + .section-divider { margin-top: -26px; margin-bottom: 48px; }
/* 左右2段のレイアウトの中の見出しは左寄せのまま */
.dotcon-text .section-tag, .dotcon-text .section-title, .dotcon-text .section-lead { text-align: left; margin-left: 0; }
.dotcon-text .section-divider { margin-left: 0; }
.sec-head h2, .top-recruit-body h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: 0.08em; color: var(--blue-900); }
.sec-en { font-family: var(--font-en); font-size: 14px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-500); margin: 8px 0 0; }
.sec-en::after { content: ""; display: block; width: 32px; height: 3px; background: var(--accent-red); margin: 18px auto 22px; }
.sec-head { margin-bottom: 48px; }

/* --- ページ上部の帯：写真＋青い膜（トップの写真ボタンと同じ考え方） --- */
.page-hero { background: linear-gradient(135deg, #0f4c8f 0%, #1e6fbf 100%); padding: 88px 24px 72px; display: flex; flex-direction: column; align-items: center; }
.page-hero--photo { position: relative; background-size: cover; background-position: center; }
.page-hero--photo::before { content: ""; position: absolute; inset: 0; background: rgba(11, 47, 89, 0.55); }
.page-hero > * { position: relative; }
.page-hero h1 { order: 1; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: 0.08em; margin-bottom: 6px; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.ph-tag { order: 2; border: none; padding: 0; margin: 0 0 18px; font-family: var(--font-en); font-size: 14px; font-weight: 600; letter-spacing: 0.2em; }
.ph-tag::after { content: ""; display: block; width: 32px; height: 3px; background: var(--accent-red); margin: 16px auto 0; }
.page-hero > p:not(.ph-tag) { order: 3; }
.page-hero .breadcrumbs { order: 4; }

/* --- ボタン：1種類（青・角2px・右端に›）＋写真の上の白枠 --- */
.sd-btn, .btn-primary, .btn-link, .form-submit button, .map-address-bar a { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 240px; padding: 16px 28px; background: var(--blue-700); color: #fff !important; border: 1px solid var(--blue-700); border-radius: 2px; font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; transition: background 0.2s; cursor: pointer; }
.sd-btn:hover, .btn-primary:hover, .btn-link:hover, .form-submit button:hover, .map-address-bar a:hover { background: var(--blue-900); border-color: var(--blue-900); opacity: 1; }
.sd-btn span { font-size: 20px; line-height: 1; transition: transform 0.2s; }
.btn-primary::after, .btn-link::after, .btn-outline::after, .map-address-bar a::after { content: "›"; font-size: 20px; line-height: 1; transition: transform 0.2s; }
.sd-btn:hover span, .btn-primary:hover::after, .btn-link:hover::after, .btn-outline:hover::after { transform: translateX(4px); }
.form-submit button { justify-content: center; }
.map-address-bar a { min-width: 0; padding: 10px 18px; font-size: 13px; }
.btn-outline { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 240px; padding: 16px 28px; border: 1px solid #fff; border-radius: 2px; font-size: 15px; font-weight: 700; letter-spacing: 0.08em; }
.recruit-hero .btn-primary, .recruit-banner .btn-primary { background: #fff; color: var(--blue-700) !important; border-color: #fff; }

/* --- 写真の上に文字を置くもの：膜・文字・矢印を1つの値に --- */
.info-tile::before, .top-svc-tile::before, .sd-photo::after { background: var(--veil); }
.info-tile:hover::before, .top-svc-tile:hover::before { background: var(--veil-hover); }
.info-tile > span, .top-svc-tile > span, .sd-photo-ttl { text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.info-tile .ja, .top-svc-tile .ja, .sd-photo-ttl .ja { font-weight: 800; letter-spacing: 0.1em; }
.info-tile .ja { font-size: 22px; }
.top-svc-tile .ja, .sd-photo-ttl .ja { font-size: 28px; }
.info-tile .en, .top-svc-tile .en, .sd-photo-ttl .en { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.12em; opacity: 0.9; margin-top: 4px; }
.info-tile .arrow, .top-svc-tile .arrow { font-family: var(--font-en); font-size: 20px; margin-top: 8px; }
footer::before { background: rgba(11, 47, 89, 0.82); }

/* --- カード：影は1種類、カテゴリ表示は「青地に白文字」1種類 --- */
.wk-card, .top-work { box-shadow: var(--shadow); }
.wk-card:hover, .top-work:hover { box-shadow: var(--shadow-hover); }
.wk-cat, .tw-cat { background: var(--blue-700); color: #fff; border: none; font-size: 12px; font-weight: 700; padding: 4px 12px; letter-spacing: 0.06em; }
.top-work { background: #fff; }
.wk-grid > .wk-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.wk-grid > .wk-card:last-child:nth-child(odd) .wk-cover { aspect-ratio: 3 / 1; }

/* --- 余白：セクション上下 PC96px / スマホ64px、背景は白と薄い青の交互 --- */
.top-concept { padding: 96px 24px; }
.top-svc { padding-top: 96px; }
.top-works { padding: 96px 24px; background: var(--blue-50); }
.top-recruit-band { padding: 96px 24px; }
.top-company-head { padding-top: 96px; background: var(--blue-50); }
.top-company-head + .info-tiles { background: var(--blue-50); }

/* --- 書体：英字はHelvetica1種類、明朝はトップのキャッチだけ --- */
.tc-bg, .rb-bg, .rb-en, .benefit-num, .flow-num { font-family: var(--font-en); }
.tc-bg { font-weight: 300; letter-spacing: 0.08em; }
.rb-ttl { font-family: inherit; font-weight: 800; }
.rb-en { font-size: 16px; font-weight: 600; letter-spacing: 0.24em; }

/* --- ページ内の目次：事業内容の目次と同じ形に --- */
.tab-nav { background: #fff; border-bottom: 1px solid var(--gray-line); }
.tab-nav-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; }
.tab-nav a { flex: 1; max-width: 300px; display: flex; flex-direction: column; align-items: center; padding: 22px 8px 14px; font-size: 16px; font-weight: 700; letter-spacing: 0.08em; color: var(--blue-900); }
.tab-nav a::before { display: none; }
.tab-nav a::after { content: "⌄" !important; position: static !important; width: auto !important; height: auto !important; background: none !important; color: var(--blue-700); font-size: 18px; line-height: 1; }
.tab-nav a:hover { background: var(--blue-50); }

@media (max-width: 800px) {
  .section-inner { padding: 64px 20px; }
  .section-lead { font-size: 15px; margin-bottom: 32px; }
  .sec-head { margin-bottom: 32px; }
  .page-hero { padding: 56px 20px 44px; }
  .page-hero h1 { font-size: 26px; }
  .ph-tag { font-size: 12px; }
  .sd-btn, .btn-primary, .btn-link, .btn-outline { min-width: 0; }
  .top-concept, .top-works, .top-recruit-band { padding: 64px 20px; }
  .top-svc, .top-company-head { padding-top: 64px; }
  .top-svc-tile .ja, .sd-photo-ttl .ja { font-size: 20px; }
  .top-svc-tile:nth-child(3) .ja { font-size: 16px; }
  .info-tile .ja { font-size: 17px; }
  .wk-grid > .wk-card:last-child:nth-child(odd) .wk-cover { aspect-ratio: 3 / 2; }
  .tab-nav a { font-size: 13px; padding: 14px 4px 10px; letter-spacing: 0.02em; }
  /* 採用バナー：背景の大きな英字を消し、文字を読みやすく */
  .rb-bg { display: none; }
  .recruit-big::before { background: rgba(255, 255, 255, 0.72); }
  /* トップ写真の下の帯：濃い紺 → 明るめの青（10/7「明るく」） */
  .hero { background-color: #1a5fa8; }
}
.tab-nav a::after { transform: none !important; }
.recruit-page .tab-nav a { color: var(--blue-900); }
/* 小見出しの左の縦線は紺1種類 */
.history-sub, .message-lead { border-left-color: var(--blue-700) !important; }

/* ===== 2026-10-09(7) ページ下部を大塗さまと同じ寸法に ===== */
/* お問い合わせ（フォーム｜電話）：上下40px・文字24px・高さ約180px */
.contact-cta-block > a, .contact-cta-block > div { padding: 40px 16px; gap: 6px; }
.contact-cta-block .cta-icon { width: 24px; height: 24px; }
.contact-cta-block .cta-title { font-size: 24px; letter-spacing: 0.1em; }
.contact-cta-block .cta-sub { font-family: var(--font-en); font-size: 14px; letter-spacing: 0.12em; margin-top: 0; }
.contact-cta-block .cta-phone-num { font-family: var(--font-en); font-size: 26px; font-weight: 700; letter-spacing: 0.06em; }
.contact-cta-block .cta-hours { font-size: 13px; }
/* お問い合わせの下の写真リンク2つ：薄い青の帯の中に横並び */
.related-banner-grid { max-width: none; padding: 40px max(24px, calc((100% - 1000px) / 2)); gap: 64px; background: var(--blue-50); }
.related-banner { aspect-ratio: auto; height: 136px; background: var(--blue-900); }
.related-banner img { opacity: 1; position: absolute; inset: 0; }
.related-banner::after { content: ""; position: absolute; inset: 0; background: var(--veil); transition: background 0.3s; }
.related-banner:hover::after { background: var(--veil-hover); }
.related-banner:hover img { opacity: 1; }
.related-banner-text { z-index: 1; align-content: center; gap: 2px; }
.related-banner-text .ja { font-size: 24px; letter-spacing: 0.12em; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.related-banner-text .en { font-family: var(--font-en); font-size: 14px; letter-spacing: 0.12em; margin-top: 0; }
@media (max-width: 800px) {
  .contact-cta-block > a, .contact-cta-block > div { padding: 28px 16px; }
  .contact-cta-block .cta-title { font-size: 18px; }
  .contact-cta-block .cta-phone-num { font-size: 24px; }
  .related-banner-grid { grid-template-columns: 1fr; gap: 16px; padding: 32px 20px; }
  .related-banner { height: 110px; }
  .related-banner-text .ja { font-size: 20px; }
}

/* ===== 2026-10-09(8) 施工実績：最後の1件も他と同じ大きさ／地域貢献を事業内容と同じ見せ方に ===== */
.wk-grid > .wk-card:last-child:nth-child(odd) { grid-column: auto; }
.wk-grid > .wk-card:last-child:nth-child(odd) .wk-cover { aspect-ratio: 3 / 2; }
.community-detail { max-width: 1200px; margin: 0 auto; }
.community-detail .sd-photo .sd-img { object-position: center 30%; }
.community-detail.service-detail { grid-template-columns: 42% 1fr; background: #fff; box-shadow: var(--shadow); }
.community-detail.service-detail .sd-photo { order: 0; }
@media (max-width: 800px) { .community-detail.service-detail { grid-template-columns: 1fr; } }

/* ===== 2026-10-09(9) トップのボタンを外し、動線を整理 ===== */
/* ヘッダーの「お問い合わせ」ボタン（全ページ、スクロールしても常に上に表示） */
.nav-contact { display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; padding: 10px 18px; background: var(--blue-700); color: #fff !important; border-radius: 2px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; transition: background 0.2s; }
.nav-contact:hover { background: var(--blue-900); opacity: 1; }
.nav-contact svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.nav-contact + .nav-line { margin-left: 8px; }
/* トップ写真の下：コンセプトへ導く「SCROLL」 */
.hero-scroll { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; }
.hero-scroll span { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.24em; }
.hero-scroll::after { content: ""; width: 1px; height: 64px; background: linear-gradient(#fff 50%, rgba(255,255,255,0.3) 50%); background-size: 1px 128px; animation: heroScroll 2s ease-in-out infinite; }
@keyframes heroScroll { 0% { background-position: 0 -64px; } 100% { background-position: 0 64px; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll::after { animation: none; } }
.top-more--svc { margin-top: 48px; padding: 0 24px; }
@media (max-width: 1200px) { .nav-contact { padding: 9px 12px; font-size: 12.5px; } .nav-contact svg { display: none; } }
@media (max-width: 800px) { .nav-contact { display: none; } .hero-scroll { display: none; } .top-more--svc { margin-top: 32px; } }
.nav-line, .nav-contact { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 1320px) { .nav-line .nl-sub { display: none; } }

/* ===== 2026-10-09(10) 採用ページ：写真で温かみを（今ある写真で。個人写真が届いたら差し替え） ===== */
/* 上部：左に文字・右に写真を1つの帯に（9/30「顔が見えるように」→写真に文字は重ねない） */
@media (min-width: 801px) {
  .recruit-hero.rh-split { display: grid; grid-template-columns: 44% 1fr; min-height: 560px; background: linear-gradient(135deg, #0f4c8f 0%, #1e6fbf 100%); }
  .rh-split .recruit-hero-img-mobile { grid-column: 2; grid-row: 1; width: 100%; height: 100%; min-height: 560px; object-position: center 40%; }
  .rh-split .rh-text { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; padding: 64px 56px 56px max(32px, calc((100vw - 1200px) / 2)); }
  .rh-split h1 { text-align: left; font-size: clamp(30px, 2.8vw, 42px); line-height: 1.5; }
  .rh-split p { text-align: left; }
  .rh-split .breadcrumbs { margin-top: 36px; }
}
.rh-en { font-family: var(--font-en); font-size: 14px; font-weight: 600; letter-spacing: 0.24em; color: rgba(255,255,255,0.85) !important; margin: 0 0 14px !important; }
.rh-en::after { content: ""; display: block; width: 32px; height: 3px; background: var(--accent-red); margin-top: 14px; }

/* 写真で見る愛建工業の毎日 */
.rc-gallery { background: #fff; padding: 96px 24px; }
.rc-gallery-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 12px; }
.rc-gallery-grid figure { position: relative; margin: 0; overflow: hidden; }
.rc-gallery-grid .g-big { grid-row: 1 / span 2; }
.rc-gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s; }
.rc-gallery-grid figure:hover img { transform: scale(1.04); }
.rc-gallery-grid figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 28px 16px 12px; background: linear-gradient(transparent, rgba(11,47,89,0.75)); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; }

/* 代表メッセージ：左に写真、右に文章 */
.rc-msg-row { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 42% 1fr; gap: 0; align-items: stretch; background: #fff; box-shadow: var(--shadow); }
.rc-msg-photo img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }
.rc-msg-row .recruit-message { box-shadow: none; margin: 0; padding: 48px 48px; }

/* 働く環境：左に写真2枚、右に8項目 */
.rc-benefit-row { display: grid; grid-template-columns: 38% 1fr; gap: 40px; align-items: start; }
.rc-benefit-photos { display: grid; gap: 12px; position: sticky; top: 100px; }
.rc-benefit-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.rc-benefit-row .benefits-grid--8 { grid-template-columns: 1fr 1fr; }

@media (max-width: 800px) {
  .rh-en { text-align: center; }
  .rh-en::after { margin: 12px auto 0; }
  .rc-gallery { padding: 64px 16px; }
  .rc-gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 150px 150px; gap: 8px; }
  .rc-gallery-grid .g-big { grid-column: 1 / span 2; grid-row: auto; }
  .rc-gallery-grid figcaption { font-size: 12px; padding: 20px 10px 8px; }
  .rc-msg-row { grid-template-columns: 1fr; }
  .rc-msg-photo img { min-height: 0; height: 220px; }
  .rc-msg-row .recruit-message { padding: 28px 20px; }
  .rc-benefit-row { grid-template-columns: 1fr; gap: 24px; }
  .rc-benefit-photos { position: static; grid-template-columns: 1fr 1fr; gap: 8px; }
}
/* 見出し下の赤い線：ページ内の個別指定（style="margin:0 …"）より優先して位置をそろえる */
.section-title + .section-divider { margin-top: 18px !important; }
/* 働く環境（2列）：区切り線を均一に */
.rc-benefit-row .benefits-grid--8 { gap: 1px; background: var(--gray-line); border: 1px solid var(--gray-line); }
.rc-benefit-row .benefit-item { border: none !important; background: #fff; }

/* ===== 2026-10-09(11) トップの会社情報：見出しと4つのボタンを1つの枠に・説明つき ===== */
.top-company { background: var(--blue-50); padding: 96px 24px; }
.info-tiles--boxed { max-width: 1200px; margin: 0 auto; gap: 12px; background: none !important; }
.info-tiles--boxed .info-tile { aspect-ratio: 4 / 3; }
.info-tile .desc { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; margin-top: 8px; padding: 0 12px; text-align: center; line-height: 1.6; }
@media (max-width: 800px) {
  .top-company { padding: 64px 16px; }
  .info-tiles--boxed { gap: 8px; }
  .info-tile .desc { font-size: 11px; margin-top: 4px; }
  .info-tiles--boxed .info-tile .arrow { display: none; }
}

/* ===== 2026-10-09(12) 代表挨拶・沿革：長い文章を章ごとのカードに（写真・番号・色付けで読みやすく） ===== */
#history { background: var(--blue-50); }
.history-intro { background: #fff; padding: 40px 48px; box-shadow: var(--shadow); max-width: 1000px; margin: 0 auto 40px; }
.history-card { max-width: 1000px; margin: 0 auto 40px; display: grid; grid-template-columns: 36% 1fr; background: #fff; box-shadow: var(--shadow); }
.history-card.is-rev { grid-template-columns: 1fr 36%; }
.history-card.is-rev .hc-photo { order: 2; }
.hc-photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.hc-body { padding: 40px 44px; }
.hc-num { font-family: var(--font-en); font-size: 40px; font-weight: 700; line-height: 1; color: var(--blue-700); margin: 0 0 6px !important; }
.hc-num::after { content: ""; display: block; width: 28px; height: 3px; background: var(--accent-red); margin-top: 12px; }
.hc-ttl { font-size: 22px; font-weight: 800; color: var(--blue-900); letter-spacing: 0.06em; line-height: 1.5; margin: 14px 0 18px; }
.hc-body p { font-size: 15.5px; line-height: 2.05; color: #2b3440; margin: 0 0 14px; }
.hc-body p:last-child { margin-bottom: 0; }
.hl { font-weight: 800; color: var(--blue-700); background: linear-gradient(transparent 62%, var(--blue-100) 62%); padding: 0 2px; }
.history-closing { max-width: 1000px; margin: 56px auto 0; text-align: center; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; line-height: 1.8; letter-spacing: 0.08em; color: var(--blue-900); }
.history-closing::before { content: ""; display: block; width: 32px; height: 3px; background: var(--accent-red); margin: 0 auto 22px; }
@media (max-width: 800px) {
  .history-intro { padding: 28px 20px; margin-bottom: 28px; }
  .history-card, .history-card.is-rev { grid-template-columns: 1fr; margin-bottom: 28px; }
  .history-card.is-rev .hc-photo { order: 0; }
  .hc-photo img { min-height: 0; height: 200px; }
  .hc-body { padding: 28px 20px 32px; }
  .hc-num { font-size: 32px; }
  .hc-ttl { font-size: 19px; }
  .hc-body p { font-size: 15px; }
  .history-closing { margin-top: 40px; font-size: 19px; }
}
.hc-body .hc-num { font-size: 40px; line-height: 1; } @media (max-width: 800px) { .hc-body .hc-num { font-size: 32px; } }
@media (max-width: 800px) {
  .info-tiles--boxed { grid-template-columns: 1fr; gap: 10px; }
  .info-tiles--boxed .info-tile { aspect-ratio: auto; height: 120px; }
  .info-tiles--boxed .info-tile .ja { font-size: 19px; }
  .info-tiles--boxed .info-tile .en { display: none; }
  .info-tiles--boxed .info-tile .desc { font-size: 12.5px; margin-top: 6px; }
}

/* ===== 2026-10-09(13) ヘッダー：ロゴの横伸び感を抑える／公式LINEに一本化 ===== */
/* 支給の横長ロゴは文字が横に広い（丸型ロゴ比で約2割）→ヘッダーでは横幅を1割詰めて表示（画像ファイルは元のまま） */
header .logo-img { height: 48px; width: 186px; object-fit: fill; }
@media (max-width: 768px) { header .logo-img { height: 38px; width: 147px; } }
/* 右上は公式LINEだけ（「お問い合わせ」ボタンは外した）。文字は省略せず表示 */
@media (max-width: 1320px) { .nav-line .nl-sub { display: inline; } }
@media (max-width: 1100px) { .nav-line .nl-sub { display: none; } }

/* ===== 2026-10-09(14) 愛建工業の歩み：資料っぽさをなくす（箱をやめ、写真は切らずに大きく、メリハリのある色） ===== */
#history { background: #fff; }
.history-intro { background: none; box-shadow: none; padding: 0; max-width: 880px; margin: 0 auto 72px; }
.history-intro > p { font-size: 16px; line-height: 2.1; }
.history-philosophy { background: linear-gradient(135deg, #0f4c8f 0%, #1e6fbf 100%); color: #fff; padding: 36px 40px; margin: 32px 0; }
.history-philosophy-ttl { color: #fff !important; font-size: 14px !important; letter-spacing: 0.2em; }
.history-philosophy-ttl::after { content: ""; display: block; width: 28px; height: 3px; background: var(--accent-red); margin-top: 12px; }
.history-philosophy li { color: #fff; font-size: 17px; line-height: 1.9; padding-left: 22px; margin-bottom: 10px; }
.history-philosophy li::before { background: #fff; width: 10px; }
.history-card, .history-card.is-rev { max-width: 1100px; margin: 0 auto 96px; background: none; box-shadow: none; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.history-card.is-rev .hc-photo { order: 2; }
/* 写真は切らない：元の縦横比のまま。後ろに薄い青の板をずらして置いて奥行きを出す */
.hc-photo { position: relative; }
.hc-photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; background: var(--blue-100); z-index: 0; }
.history-card.is-rev .hc-photo::before { inset: 24px 24px -24px -24px; }
.hc-photo img { position: relative; z-index: 1; width: 100%; height: auto; min-height: 0; object-fit: initial; }
.hc-body { padding: 0; position: relative; }
.hc-body .hc-num { font-size: 88px; font-weight: 800; line-height: 0.9; color: transparent; -webkit-text-stroke: 1.5px var(--blue-500); margin: 0 0 4px !important; letter-spacing: 0.02em; }
.hc-num::after { margin-top: 18px; }
.hc-ttl { font-size: 26px; margin: 18px 0 22px; }
.hc-body p { font-size: 16px; line-height: 2.1; }
.history-closing { max-width: 1100px; margin: 0 auto; padding: 56px 24px; background: linear-gradient(135deg, #0f4c8f 0%, #1e6fbf 100%); color: #fff; font-size: clamp(20px, 2.4vw, 28px); }
.history-closing::before { background: #fff; }
@media (max-width: 800px) {
  .history-intro { margin-bottom: 48px; }
  .history-philosophy { padding: 26px 22px; }
  .history-philosophy li { font-size: 15.5px; }
  .history-card, .history-card.is-rev { grid-template-columns: 1fr; gap: 36px; margin-bottom: 64px; }
  .history-card.is-rev .hc-photo { order: 0; }
  .hc-photo { margin-right: 14px; }
  .hc-photo::before, .history-card.is-rev .hc-photo::before { inset: 14px -14px -14px 14px; }
  .hc-body .hc-num { font-size: 64px; }
  .hc-ttl { font-size: 21px; }
  .hc-body p { font-size: 15px; }
  .history-closing { padding: 40px 20px; font-size: 19px; }
}

/* ===== 2026-10-09(15) 採用ページ：写真を切らない（元の縦横比のまま見せる配置に） ===== */
@media (min-width: 801px) {
  .recruit-hero.rh-split { min-height: 0; align-items: center; grid-template-columns: 40% 1fr; }
  .rh-split .recruit-hero-img-mobile { height: auto; min-height: 0; object-fit: initial; align-self: stretch; object-position: center; }
}
@media (max-width: 800px) { .rh-split .recruit-hero-img-mobile { height: auto; object-fit: initial; } }
/* 写真ギャラリー：高さをそろえず、写真ごとの形のまま3列に積む（縦長の写真も切れない） */
.rc-gallery-grid { display: block; columns: 3; column-gap: 14px; grid-template-rows: none; }
.rc-gallery-grid figure { break-inside: avoid; margin: 0 0 14px; }
.rc-gallery-grid img { height: auto; }
@media (max-width: 800px) { .rc-gallery-grid { columns: 2; column-gap: 8px; } .rc-gallery-grid figure { margin-bottom: 8px; } }
/* 代表メッセージ・働く環境の写真も切らない */
.rc-msg-row { align-items: center; }
.rc-msg-photo { padding: 24px; }
.rc-msg-photo img { height: auto; min-height: 0; object-fit: initial; }
.rc-benefit-photos img { aspect-ratio: auto; height: auto; }
@media (max-width: 800px) { .rc-msg-photo { padding: 0; } .rc-msg-photo img { height: auto; } .rc-benefit-photos { grid-template-columns: 1fr; } }
/* ギャラリー：1段ごとに高さをそろえ、写真は元の形のまま（切らない） */
.rc-gallery-grid.rc-justify { columns: auto; display: flex; flex-direction: column; gap: 14px; }
.rc-row { display: flex; gap: 14px; }
.rc-row figure { flex: var(--ar) 1 0; margin: 0; }
.rc-row img { width: 100%; height: auto; }
@media (max-width: 800px) { .rc-gallery-grid.rc-justify, .rc-row { gap: 6px; } .rc-row figcaption { font-size: 10.5px; padding: 16px 6px 6px; } }
.rc-msg-row { grid-template-columns: 46% 1fr; }
.rc-msg-photo { padding: 32px 0 32px 32px; }
@media (max-width: 800px) { .rc-msg-row { grid-template-columns: 1fr; } .rc-msg-photo { padding: 0; } }

/* ===== 2026-10-09(16) 仕上げ ===== */
/* 採用ページ上部：写真が縦に伸びないように（写真は元の形のまま中央に） */
@media (min-width: 801px) {
  .rh-split .recruit-hero-img-mobile { align-self: center; height: auto !important; object-fit: contain !important; }
}
.rh-split .recruit-hero-img-mobile { object-fit: contain; }

/* 愛建工業の歩み：代表挨拶（白）と区別できる背景に。やわらかい青のグラデーション＋大きな薄い英字 */
#history { position: relative; overflow: hidden; background: linear-gradient(180deg, #e6eff9 0%, #f4f8fc 55%, #e9f1fa 100%); }
#history::before { content: "HISTORY"; position: absolute; left: 50%; top: 24px; transform: translateX(-50%); font-family: var(--font-en); font-size: clamp(80px, 13vw, 200px); font-weight: 300; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.85); white-space: nowrap; pointer-events: none; }
#history .section-inner { position: relative; }
#history .hc-photo::before { background: #fff; }
#history .history-intro { background: rgba(255, 255, 255, 0.75); padding: 40px 48px; }

/* 締めの言葉：うっすら現場写真の背景＋青の膜＋英字の一言 */
.history-closing { position: relative; overflow: hidden; max-width: 1100px; margin: 24px auto 0; padding: 88px 24px; text-align: center; color: #fff; background: #0b2f59 url('img/svc_zousei.jpg') center 60% / cover no-repeat; }
.history-closing::before { content: ""; position: absolute; inset: 0; width: auto; height: auto; margin: 0; background: linear-gradient(120deg, rgba(11, 47, 89, 0.88) 0%, rgba(15, 76, 143, 0.72) 55%, rgba(30, 111, 191, 0.55) 100%); }
.history-closing > * { position: relative; }
.hcl-en { font-family: var(--font-en); font-size: 14px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.85) !important; margin: 0 0 18px !important; }
.hcl-en::after { content: ""; display: block; width: 32px; height: 3px; background: var(--accent-red); margin: 16px auto 0; }
.hcl-ja { font-size: clamp(22px, 2.6vw, 32px) !important; font-weight: 800; line-height: 1.8 !important; letter-spacing: 0.1em; color: #fff !important; margin: 0 !important; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
@media (max-width: 800px) {
  #history .history-intro { padding: 26px 20px; }
  .history-closing { padding: 56px 18px; }
  .hcl-en { font-size: 12px; }
  .hcl-ja { font-size: 19px !important; letter-spacing: 0.04em; }
}

/* ===== 2026-10-09(17) 働く環境：遊び心のあるカード（アイコン＋一部写真）／締めの背景を飯田の山並みと町に ===== */
.bcards { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.bcard { position: relative; background: #fff; border-radius: 14px; padding: 26px 22px 26px; box-shadow: 0 4px 18px rgba(15, 76, 143, 0.08); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.bcard:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 14px 30px rgba(15, 76, 143, 0.16); }
.bcard:nth-child(even):hover { transform: translateY(-6px) rotate(0.6deg); }
/* 上に色の帯（4色を順番に）。青の段階＋差し色の赤はほんの少し */
.bcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--blue-700); }
.bcard--2::before { background: var(--blue-500); }
.bcard--3::before { background: #5fa3e0; }
.bcard--0::before { background: var(--blue-900); }
.bc-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-700); margin: 6px 0 16px; }
.bcard--2 .bc-icon { background: #e5f1fb; color: var(--blue-500); }
.bcard--3 .bc-icon { background: #eaf4fd; color: #3b86cc; }
.bcard--0 .bc-icon { background: #e1e9f3; color: var(--blue-900); }
.bc-icon svg { width: 40px; height: 40px; }
.bc-photo { margin: -26px -22px 16px; aspect-ratio: 16 / 9; overflow: hidden; }
.bc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s; }
.bcard:hover .bc-photo img { transform: scale(1.06); }
/* 右上に大きな白抜き番号 */
.bc-num { position: absolute; right: 16px; top: 14px; font-family: var(--font-en); font-size: 46px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(15, 76, 143, 0.35); }
.bc-photo ~ .bc-num { color: transparent; -webkit-text-stroke: 1.5px #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.bc-tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--blue-700); background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 999px; padding: 3px 12px; }
.bc-ttl { font-size: 18px; font-weight: 800; color: var(--blue-900); letter-spacing: 0.04em; line-height: 1.5; margin: 12px 0 8px; }
.bc-text { font-size: 14px; line-height: 1.85; color: #3a4552; margin: 0; }
@media (max-width: 1000px) { .bcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) {
  .bcards { gap: 12px; }
  .bcard { padding: 18px 14px 20px; border-radius: 12px; }
  .bc-photo { margin: -18px -14px 12px; }
  .bc-icon { width: 56px; height: 56px; margin: 2px 0 12px; }
  .bc-icon svg { width: 30px; height: 30px; }
  .bc-num { font-size: 34px; right: 10px; top: 10px; }
  .bc-tag { font-size: 10.5px; padding: 2px 9px; }
  .bc-ttl { font-size: 15px; }
  .bc-text { font-size: 12.5px; }
}
/* 締めの言葉：飯田の山並み・田畑・町並みが見える写真に */
.history-closing { background-image: url('img/svc_hoso.jpg'); background-position: center 30%; }
.history-closing::before { background: linear-gradient(120deg, rgba(11, 47, 89, 0.82) 0%, rgba(15, 76, 143, 0.6) 55%, rgba(30, 111, 191, 0.4) 100%); }
.history-closing { background-image: url('img/iida_landscape.jpg'); background-position: center bottom; }

/* ===== 2026-10-09(18) 採用ページ：LPの流れに整理／働く魅力を「ひと目でわかる」形に ===== */
/* 背景は白と薄い青の交互（上から：魅力 白 → 数字 青 → 写真 白 → 代表 青 → 募集要項 白 → FAQ 青 → エントリー 白） */
.recruit-page #benefits, .recruit-page #photos, .recruit-page #info, .recruit-page #entry { background: #fff !important; }
.recruit-page #numbers, .recruit-page #message, .recruit-page #faq { background: var(--blue-50) !important; }
.strength-section { padding: 96px 24px; }
/* 大きな4つの魅力：写真の上に白い文字（2×2） */
.sp-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sp-tile { position: relative; min-height: 300px; padding: 36px 40px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background-size: cover; background-position: center; overflow: hidden; border-radius: 4px; }
.sp-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,47,89,0.05) 0%, rgba(11,47,89,0.45) 45%, rgba(11,47,89,0.88) 100%); transition: opacity 0.3s; }
.sp-tile > * { position: relative; }
.sp-tile--plain { background: linear-gradient(135deg, #0f4c8f 0%, #1e6fbf 100%); }
.sp-tile--plain::before { background: none; }
.sp-icon { position: absolute !important; right: 32px; top: 28px; width: 92px; height: 92px; color: rgba(255,255,255,0.9); }
.sp-icon svg { width: 100%; height: 100%; }
.sp-en { font-family: var(--font-en); font-size: 13px; font-weight: 700; letter-spacing: 0.18em; color: rgba(255,255,255,0.85); }
.sp-en::after { content: ""; display: block; width: 28px; height: 3px; background: var(--accent-red); margin: 10px 0 0; }
.sp-ttl { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: 0.06em; line-height: 1.4; margin: 14px 0 8px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.sp-text { font-size: 15px; line-height: 1.8; margin: 0; color: rgba(255,255,255,0.95); text-shadow: 0 1px 6px rgba(0,0,0,0.3); }
/* さらに、こんなサポートも：枠なしで4つ横並び */
.sp-more { max-width: 1200px; margin: 48px auto 0; }
.sp-more-ttl { text-align: center; font-size: 18px; font-weight: 800; color: var(--blue-900); letter-spacing: 0.08em; margin: 0 0 28px; }
.sp-more-ttl::before, .sp-more-ttl::after { content: "—"; color: var(--blue-500); margin: 0 14px; }
.sp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.sp-list li { display: flex; gap: 14px; align-items: flex-start; }
.sl-icon { flex: 0 0 56px; height: 56px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; }
.sl-icon svg { width: 30px; height: 30px; }
.sl-body strong { display: block; font-size: 16px; font-weight: 800; color: var(--blue-900); margin: 4px 0 4px; }
.sl-body span { font-size: 13.5px; line-height: 1.7; color: #3a4552; }
@media (max-width: 1000px) { .sp-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) {
  .strength-section { padding: 64px 16px; }
  .sp-grid { grid-template-columns: 1fr; gap: 10px; }
  .sp-tile { min-height: 210px; padding: 24px 22px; }
  .sp-icon { width: 64px; height: 64px; right: 20px; top: 20px; }
  .sp-text { font-size: 14px; }
  .sp-more { margin-top: 36px; }
  .sp-more-ttl { font-size: 16px; }
  .sp-list { grid-template-columns: 1fr; gap: 18px; }
}

/* ===== 2026-10-09(19) 採用：写真が流れるギャラリー／焼肉イラスト／公式LINEでエントリー ===== */
/* 焼肉のパネル：イラストを上に寄せて、文字は下に */
.sp-tile--illust { background-size: cover; background-position: center top; }
.sp-tile--illust::before { background: linear-gradient(180deg, rgba(11,47,89,0) 40%, rgba(11,47,89,0.75) 78%, rgba(11,47,89,0.92) 100%); }
.sp-note { position: absolute !important; right: 14px; top: 12px; font-size: 11px; color: rgba(255,255,255,0.85); letter-spacing: 0.06em; }

/* 写真で見る毎日：横に自動で流れる（マウスを乗せると止まる・写真は切らない） */
.rc-marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
.rc-track { display: flex; gap: 14px; width: max-content; animation: rcFlow 45s linear infinite; }
.rc-marquee:hover .rc-track { animation-play-state: paused; }
.rc-track figure { position: relative; margin: 0; flex: 0 0 auto; border-radius: 6px; overflow: hidden; }
.rc-track img { height: 300px; width: auto; display: block; }
.rc-track figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(11,47,89,0.75)); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; }
@keyframes rcFlow { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) { .rc-track { animation: none; } .rc-marquee { overflow-x: auto; } }
@media (max-width: 800px) { .rc-track { gap: 8px; animation-duration: 35s; } .rc-track img { height: 200px; } .rc-track figcaption { font-size: 12px; padding: 22px 10px 8px; } @keyframes rcFlow { to { transform: translateX(calc(-50% - 4px)); } } }

/* エントリー：公式LINEの大きなボタン */
.line-entry { background: #fff; padding: 96px 24px; }
.le-box { max-width: 760px; margin: 0 auto; text-align: center; background: var(--blue-50); border-radius: 16px; padding: 48px 40px 40px; position: relative; }
.le-catch { display: inline-block; font-size: 22px; font-weight: 800; color: var(--blue-900); letter-spacing: 0.06em; margin: 0 0 26px; background: linear-gradient(transparent 62%, #c9f2d6 62%); padding: 0 6px; }
.le-steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.le-steps li { background: #fff; border-radius: 12px; padding: 20px 12px 16px; font-size: 14.5px; font-weight: 700; color: var(--blue-900); line-height: 1.6; position: relative; }
.le-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #06c755; color: #fff; font-family: var(--font-en); font-weight: 800; margin: 0 auto 10px; }
.le-btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; width: 100%; max-width: 520px; padding: 22px 24px; background: #06c755; color: #fff !important; border-radius: 999px; font-size: 20px; font-weight: 800; letter-spacing: 0.06em; text-decoration: none; box-shadow: 0 6px 0 #04a045, 0 12px 24px rgba(6,199,85,0.28); transition: transform 0.15s, box-shadow 0.15s; }
.le-btn:hover { transform: translateY(3px); box-shadow: 0 3px 0 #04a045, 0 8px 16px rgba(6,199,85,0.25); opacity: 1; }
.le-btn svg { width: 34px; height: 34px; fill: #fff; flex-shrink: 0; }
.le-sub { margin: 26px 0 0; font-size: 14px; color: #3a4552; }
.le-sub a { font-weight: 800; color: var(--blue-700); }
/* 下の帯の「公式LINEでエントリー」も緑に */
.contact-cta-block .cta-line { background: #e9f9ef !important; color: #04a045 !important; }
.contact-cta-block .cta-line .cta-icon { width: 30px; height: 30px; fill: #06c755; stroke: none; }
@media (max-width: 800px) {
  .line-entry { padding: 64px 16px; }
  .le-box { padding: 32px 16px 28px; }
  .le-catch { font-size: 18px; }
  .le-steps { grid-template-columns: 1fr; gap: 8px; }
  .le-steps li { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; }
  .le-num { margin: 0; flex: 0 0 30px; width: 30px; height: 30px; }
  .le-btn { font-size: 16px; padding: 18px 16px; }
  .le-btn svg { width: 28px; height: 28px; }
}
.mobile-fixed-cta .m-line { background: #06c755 !important; } .mobile-fixed-cta .m-line svg { fill: #fff; stroke: none; }
/* 焼肉のパネル：イラストは右側に、文字は左下に（重ならないように） */
.sp-tile--illust { background-color: #1a62b0; background-size: auto 100%; background-position: right center; background-repeat: no-repeat; }
.sp-tile--illust::before { background: linear-gradient(90deg, rgba(15,76,143,0.96) 0%, rgba(15,76,143,0.85) 38%, rgba(15,76,143,0) 62%); }
.sp-tile--illust .sp-ttl, .sp-tile--illust .sp-text, .sp-tile--illust .sp-en { max-width: 58%; }
.sp-note { top: auto; bottom: 10px; right: 14px; }
@media (max-width: 800px) {
  .sp-tile--illust { background-size: auto 78%; background-position: right top; }
  .sp-tile--illust::before { background: linear-gradient(180deg, rgba(15,76,143,0) 30%, rgba(15,76,143,0.9) 70%); }
  .sp-tile--illust .sp-ttl, .sp-tile--illust .sp-text, .sp-tile--illust .sp-en { max-width: none; }
}
@media (min-width: 801px) { .sp-tile--illust { background-size: auto 82%; background-position: right 8px bottom 6px; } }
@media (min-width: 801px) { .sp-tile--illust .sp-ttl, .sp-tile--illust .sp-text { max-width: 46%; } }
.le-catch { background: none; line-height: 1.8; }
.le-catch .ph { background: linear-gradient(transparent 62%, #c9f2d6 62%); }
@media (max-width: 800px) { .le-btn { font-size: 15px; letter-spacing: 0.02em; gap: 10px; padding: 18px 12px; } .le-btn svg { width: 26px; height: 26px; } }

/* ===== 2026-10-09(20) 採用：人間関係の写真を寄せて顔に文字がかからないように／代表メッセージは文章だけ ===== */
.sp-tile--team { background-position: center top; }
.sp-tile--team::before { background: linear-gradient(180deg, rgba(11,47,89,0) 0%, rgba(11,47,89,0) 48%, rgba(11,47,89,0.7) 70%, rgba(11,47,89,0.92) 100%); }
.rc-msg-row--text { grid-template-columns: 1fr; max-width: 880px; }
.rc-msg-row--text .recruit-message { padding: 56px 64px; }
@media (max-width: 800px) { .rc-msg-row--text .recruit-message { padding: 32px 22px; } }

/* ===== 2026-10-09(21) 焼肉：ChatGPTで作ったイメージ写真（人物なし・※イメージ表記） ===== */
.sp-tile--yakiniku { background-size: cover; background-position: right center; }
.sp-tile--yakiniku::before { background: linear-gradient(90deg, rgba(11,47,89,0.55) 0%, rgba(11,47,89,0.25) 45%, rgba(11,47,89,0) 70%), linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(11,47,89,0.6) 100%); }
@media (max-width: 800px) { .sp-tile--yakiniku::before { background: linear-gradient(180deg, rgba(11,47,89,0.05) 30%, rgba(11,47,89,0.85) 100%); } }

/* 2026-10-09 あや依頼：スマホのトップも事業内容・施工実績と同じく「写真の上に文字」 */
@media (max-width: 800px) {
  .hero { position: relative; display: grid; place-items: center; min-height: 520px; padding: 64px 20px 56px; overflow: hidden; }
  .hero-slides { position: absolute; inset: 0; width: auto; aspect-ratio: auto; }
  .hero-overlay { display: block; background: rgba(11, 47, 89, 0.55); }
  .hero-inner { position: relative; z-index: 1; padding: 0; }
  .hero h1 { font-size: 28px; }
  .hero p { margin-bottom: 0; }
}

/* 2026-10-09 あや依頼：写真で見る毎日はタップ不要で常に流れる（止める・横スワイプの仕組みは外す） */
.rc-marquee:hover .rc-track { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) { .rc-track { animation: rcFlow 45s linear infinite; } .rc-marquee { overflow: hidden; } }
@media (max-width: 800px) and (prefers-reduced-motion: reduce) { .rc-track { animation-duration: 35s; } }

/* 2026-10-09 あや依頼：スマホのトップ写真は縦に伸ばさず、写真の形（4:3）に合わせた高さに */
@media (max-width: 800px) {
  .hero { min-height: 0; aspect-ratio: 4 / 3; padding: 20px 16px; }
  .hero-tag { margin-bottom: 10px; padding: 4px 14px; font-size: 11px; }
  .hero h1 { font-size: 22px; margin-bottom: 10px; line-height: 1.4; }
  .hero p { font-size: 12.5px; line-height: 1.7; }
}

/* 2026-10-12：本番公開までの「メールで問い合わせる」ボタン（フォームの代わり） */
.mail-contact { max-width: 640px; margin: 0 auto; text-align: center; background: #fff; padding: 48px 32px 36px; border-radius: 8px; box-shadow: 0 2px 14px rgba(15, 61, 115, 0.06); }
.mail-contact-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 320px; padding: 20px 32px; background: var(--blue-700, #1659a3); color: #fff !important; font-size: 18px; font-weight: 700; letter-spacing: 0.06em; text-decoration: none; border-radius: 4px; transition: opacity 0.2s; }
.mail-contact-btn:hover { opacity: 0.85; }
.mail-contact-btn svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.8; }
.mail-contact-addr { margin: 16px 0 0; font-size: 17px; font-weight: 700; letter-spacing: 0.04em; color: var(--blue-900, #0f3d73); }
.mail-contact-text { margin: 12px 0 24px; font-size: 14.5px; line-height: 1.9; }
.mail-contact .form-note { text-align: left; display: inline-block; }
@media (max-width: 800px) {
  .mail-contact { padding: 32px 18px 26px; }
  .mail-contact-btn { min-width: 0; width: 100%; font-size: 16px; padding: 18px 12px; }
  .mail-contact-addr { font-size: 15px; }
}

/* ===== 2026-10-22 代表の写真（代表挨拶）・新しい重機の写真と動画（設備紹介） ===== */
.message-photo { float: right; width: 250px; margin: 4px 0 18px 32px; }
.message-photo img { display: block; width: 100%; height: auto; }
.message-photo figcaption { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--navy-deep); text-align: center; letter-spacing: 0.04em; }
.message-sign { clear: both; }
@media (max-width: 768px) {
  .message-photo { float: none; width: 100%; max-width: 420px; margin: 8px auto 24px; }
}
.equip-photo img { object-position: 22% center; }

/* ===== 2026-10-22 設備：クリックで開く／トップの動画 ===== */
.equip-open { cursor: pointer; transition: box-shadow 0.25s; }
.equip-open:hover { box-shadow: var(--shadow-hover, 0 10px 28px rgba(15,61,115,0.16)); }
.equip-photo .wk-count { position: absolute; right: 0; bottom: 0; z-index: 1; background: rgba(11,47,89,0.85); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 14px; }
.equip-more { margin-top: 22px; font-weight: 800; color: var(--navy-primary); font-size: 15px; }
.equip-more span { margin-left: 6px; }
.wk-main video { display: block; width: 100%; max-height: 62vh; background: #000; }
.wk-thumb-video { position: relative; }
.wk-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; background: rgba(0,0,0,0.35); }
@media (max-width: 768px) { .wk-main video { max-height: 46vh; } }
.top-equip { padding: 72px 24px 64px; background: #fff; }
.top-equip .sec-head { text-align: center; margin-bottom: 32px; }
.top-equip-movie { position: relative; display: block; max-width: 1000px; margin: 0 auto; background: #000; }
.top-equip-movie video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.top-equip-label { position: absolute; left: 0; bottom: 0; background: rgba(11,47,89,0.85); color: #fff; font-weight: 800; letter-spacing: 0.06em; padding: 10px 20px; font-size: 15px; }
@media (max-width: 768px) { .top-equip { padding: 48px 16px 44px; } .top-equip-movie video { aspect-ratio: 4 / 3; } }

/* 2026-10-22 代表の写真：文章の後ろ・署名の上に小さく右寄せ（文章の間には置かない） */
.message-photo { float: none !important; width: 200px !important; max-width: none !important; margin: 36px 0 0 auto !important; }
.message-photo + .message-sign { margin-top: 12px; }
@media (max-width: 768px) { .message-photo { width: 160px !important; margin: 28px 0 0 auto !important; } }

/* ===== 2026-10-22 代表挨拶：最後の2段落の右に大きめの写真・文章は文節で折り返し ===== */
.message-block p { text-wrap: pretty; }
.message-end { display: grid; grid-template-columns: 1fr 300px; grid-template-areas: "text photo" "sign photo"; column-gap: 32px; align-items: start; margin-top: 8px; }
.message-end-text { grid-area: text; }
.message-end .message-photo { grid-area: photo; float: none !important; width: 100% !important; margin: 4px 0 0 !important; }
.message-end .message-sign { grid-area: sign; text-align: left; margin-top: 6px; align-self: end; }
@media (max-width: 768px) {
  .message-end { grid-template-columns: 1fr; grid-template-areas: "text" "photo" "sign"; }
  .message-end .message-photo { width: 78% !important; margin: 8px 0 0 auto !important; }
  .message-end .message-sign { text-align: right; margin-top: 12px; }
}

/* ===== 2026-10-22 設備：「開いて見られる」ことが一目でわかる表示 ===== */
.equip-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; display: inline-flex; align-items: center; gap: 10px; background: rgba(11,47,89,0.88); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: 0.06em; padding: 12px 22px; border-radius: 999px; box-shadow: 0 4px 18px rgba(0,0,0,0.3); white-space: nowrap; transition: background 0.2s; }
.equip-play span { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--navy-primary); font-size: 11px; padding-left: 2px; }
.equip-open:hover .equip-play { background: var(--navy-primary); }
.equip-btn { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 24px; background: var(--navy-primary); color: #fff; font-weight: 800; font-size: 16px; padding: 16px 22px; letter-spacing: 0.04em; }
.equip-btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--navy-primary); font-size: 11px; padding-left: 2px; }
.equip-btn-note { flex-basis: 100%; font-size: 12px; font-weight: 500; opacity: 0.85; padding-left: 40px; }
.equip-open:hover .equip-btn { filter: brightness(1.12); }
@media (max-width: 768px) { .equip-play { font-size: 14px; padding: 10px 18px; } .equip-btn { font-size: 15px; } }
.equip-play { left: 16px; top: auto; bottom: 16px; transform: none; }
.equip-photo .wk-count { display: none; }

/* ===== 2026-10-22 代表挨拶 A案：名前は右下（写真は右・名前は写真の下の右端） ===== */
.message-end { grid-template-areas: "text photo" "sign sign"; }
.message-end .message-sign { text-align: right; margin-top: 18px; align-self: auto; }
/* B案：写真を左下に（about-left.html） */
.message-end.is-left { grid-template-columns: 300px 1fr; grid-template-areas: "photo text" "photo sign"; }
.message-end.is-left .message-sign { text-align: right; align-self: end; margin-top: 10px; }
@media (max-width: 768px) {
  .message-end, .message-end.is-left { grid-template-columns: 1fr; grid-template-areas: "text" "photo" "sign"; }
  .message-end.is-left .message-photo { margin: 8px auto 0 0 !important; }
  .message-end .message-sign { margin-top: 12px; }
}

/* ===== 2026-10-26 右上：公式LINE（スマホでも右上に表示。リンク先は仮） ===== */
.nav-sns { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
@media (max-width: 800px) {
  .nav-sns { order: 2; }
  .nav-sns .nav-line { display: inline-flex; padding: 7px 12px; font-size: 12px; gap: 4px; }
  .nav-sns .nav-line .nl-sub { display: none; }
  .nav-sns .nav-line .nav-line-icon { width: 16px; height: 16px; }
}

/* ===== 2026-10-26 Instagram：採用の近くにお知らせ＋フッターにアイコン（リンク先は仮） ===== */
.ig-note { display: flex; align-items: center; gap: 18px; max-width: 1200px; margin: 24px auto 0; padding: 18px 24px; background: #fff; border: 1px solid #d5dde6; color: #1d2a38 !important; text-decoration: none; transition: border-color 0.2s; }
.ig-note:hover { border-color: var(--blue-700); opacity: 1; }
.ig-note-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(45deg, #f9a03f 0%, #e1306c 50%, #833ab4 100%); display: flex; align-items: center; justify-content: center; }
.ig-note-icon svg, .footer-ig svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; }
.ig-note-icon svg .dot, .footer-ig svg .dot { fill: #fff; stroke: none; }
.ig-note-txt { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ig-note-ttl { font-weight: 700; font-size: 16px; letter-spacing: 0.04em; }
.ig-note-sub { font-size: 14px; color: #4a5866; line-height: 1.7; }
.ig-note-go { flex-shrink: 0; font-size: 13.5px; font-weight: 700; color: var(--blue-700); white-space: nowrap; }
.line-entry .ig-note { max-width: 760px; margin-top: 32px; }
@media (max-width: 800px) {
  .ig-note { gap: 14px; padding: 16px; }
  .ig-note-icon { width: 42px; height: 42px; border-radius: 12px; }
  .ig-note-ttl { font-size: 15px; }
  .ig-note-sub { font-size: 13px; }
  .ig-note-go { display: none; }
}
.footer-ig { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-top: 14px; border: 1.5px solid rgba(255,255,255,0.85); border-radius: 50%; transition: background 0.2s; }
.footer-ig:hover { background: rgba(255,255,255,0.15); opacity: 1; }
.footer-ig svg { width: 20px; height: 20px; }

/* ===== 2026-10-26(3) 右上＝電話番号＋LINEの2つ並び／フッターのInstagramは文字つき（あや：B案） ===== */
.nav-sns { gap: 14px; }
.nav-tel2 { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; color: #0b2f59 !important; text-decoration: none; white-space: nowrap; }
.nav-tel2 .nt-num { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-en); font-size: 19px; font-weight: 700; letter-spacing: 0.03em; }
.nav-tel2 svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.nav-tel2 .nt-hours { font-size: 11px; color: #4a5866; letter-spacing: 0.02em; margin-top: 2px; }
.nav-sns .nav-line { border-radius: 4px; padding: 7px 14px; font-size: 13px; line-height: 1.25; text-align: center; }
.nav-line .nl-sp { display: none; }
@media (max-width: 1240px) { .nav-tel2 .nt-num { font-size: 16px; } .nav-tel2 .nt-hours { font-size: 10.5px; } .nav-sns { gap: 10px; } }
@media (max-width: 1100px) { .nav-tel2 { display: none; } }
@media (max-width: 800px) {
  .nav-line .nl-pc { display: none; }
  .nav-line .nl-sp { display: inline; }
  .nav-sns .nav-line { padding: 7px 12px; font-size: 12px; }
}
.footer-ig { width: auto; height: auto; gap: 7px; padding: 7px 14px; border: 1px solid rgba(255,255,255,0.75); border-radius: 4px; color: #fff !important; font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; }
.footer-ig svg { width: 18px; height: 18px; }

/* ===== 2026-10-27 Instagramの案内枠：PCで大きすぎたので小さく中央に（あや） ===== */
@media (min-width: 801px) {
  .ig-note, .line-entry .ig-note { max-width: 560px; margin-top: 28px; padding: 14px 20px; gap: 14px; }
  .ig-note-icon { width: 38px; height: 38px; border-radius: 11px; }
  .ig-note-icon svg { width: 21px; height: 21px; }
  .ig-note-ttl { font-size: 14.5px; }
  .ig-note-sub { font-size: 12.5px; }
  .ig-note-go { font-size: 12.5px; }
}

/* 2026-11-06 フッターのInstagramを明るく（インスタの色で目立たせる） */
.footer-ig { background: linear-gradient(45deg, #f9a03f 0%, #e1306c 50%, #833ab4 100%); border: none; padding: 8px 16px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.footer-ig:hover { background: linear-gradient(45deg, #f9a03f 0%, #e1306c 50%, #833ab4 100%); filter: brightness(1.08); opacity: 1; }

/* 2026-11-06 焼肉の実写真（POINT 03 の背景＋下に4枚） */
.sp-tile--yakiniku { background-position: center 40%; order: 4; }
.yk-gallery { max-width: 1200px; margin: 16px auto 0; }
.yk-ttl { font-size: 14px; font-weight: 700; color: var(--blue-900); letter-spacing: 0.08em; margin: 24px 0 10px; }
.yk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.yk-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }
.yk-grid img:nth-child(3) { object-position: center 65%; }
@media (max-width: 800px) {
  .yk-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .yk-ttl { font-size: 13px; margin-top: 18px; }
}
/* 2026-11-07 焼肉写真6枚に → PCは3列 */
.yk-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .yk-grid { grid-template-columns: 1fr 1fr; } }
/* 2026-11-07 焼肉：代表の乾杯動画（左に縦長で2段分） */
.yk-grid { grid-template-columns: 0.9fr repeat(3, 1fr); }
.yk-movie { grid-row: span 2; position: relative; margin: 0; border-radius: 4px; overflow: hidden; background: #000; cursor: pointer; }
.yk-movie video { width: 100%; height: 100%; object-fit: cover; display: block; }
.yk-movie figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 10px 10px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.5; pointer-events: none; }
.yk-sound { display: block; font-size: 11px; font-weight: 400; opacity: 0.9; }
.yk-movie.is-sound .yk-sound { display: none; }
@media (max-width: 800px) { .yk-grid { grid-template-columns: 1fr 1fr; } }
.yk-movie video { position: absolute; inset: 0; }
/* 2026-11-07 動画は一旦外す（代表の乾杯動画が届いたら .yk-grid を 0.9fr repeat(3,1fr) に戻して入れる。音なし固定） */
.yk-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .yk-grid { grid-template-columns: 1fr 1fr; } }
/* 2026-11-07 採用ページ写真整理：焼肉＝代表の乾杯動画（音なし）＋写真4枚 */
.yk-grid { grid-template-columns: 0.75fr 1fr 1fr; }
.yk-sound { display: none; }
.yk-movie { cursor: default; }
@media (max-width: 800px) { .yk-grid { grid-template-columns: 1fr 1fr; } }
/* 2026-11-07 焼肉の日の様子：動画＋3枚を1列に（PC）／2×2（スマホ）。人間関係のパネルは焼肉の乾杯写真、焼肉パネルは肉の大皿 */
.yk-grid { grid-template-columns: 0.5625fr 0.75fr 1.333fr 1.333fr; align-items: stretch; }
.yk-movie { grid-row: auto; }
.yk-grid img.yk-tall { aspect-ratio: auto; height: 100%; }
@media (max-width: 800px) {
  .yk-grid { grid-template-columns: 1fr 1fr; }
  .yk-movie, .yk-grid img.yk-tall { aspect-ratio: 3 / 4; height: auto; }
}
.sp-tile--toast { background-position: center 62%; }
.sp-tile--yakiniku { background-position: center 60%; }

/* 2026-11-07 焼肉パネル：押すと写真・動画（ポップアップ） */
.yk-open { cursor: pointer; transition: transform 0.2s, box-shadow 0.25s; }
.yk-open:hover { box-shadow: 0 10px 28px rgba(15,61,115,0.22); }
.sp-tile--yakiniku { background-position: center 55%; }
.sp-tile--toast { background-position: center 45%; }
.yk-play { position: absolute !important; right: 18px; top: 18px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.95); color: var(--blue-900); font-weight: 800; font-size: 13.5px; letter-spacing: 0.04em; padding: 8px 16px 8px 8px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,0.25); white-space: nowrap; }
.yk-play span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #06c755; color: #fff; font-size: 10px; padding-left: 2px; }
.yk-open:hover .yk-play { background: #fff; }
#dlg-yakiniku .wk-main video { max-height: 70vh; width: auto; margin: 0 auto; }
@media (max-width: 800px) { .yk-play { right: 12px; top: 12px; font-size: 12.5px; } }

/* 2026-11-07 エントリー周りのメリハリ：青い帯＋白いカード、下の帯はLINEの緑 */
.line-entry { background: linear-gradient(135deg, #0f4c8f 0%, #1e6fbf 100%); }
.line-entry .sec-head h2 { color: #fff; }
.line-entry .sec-en { color: rgba(255,255,255,0.75); }
.line-entry .sec-lead { color: rgba(255,255,255,0.92); }
.line-entry .le-box { background: #fff; box-shadow: 0 16px 40px rgba(4,30,64,0.28); }
.line-entry .le-steps li { background: var(--blue-50); }
.line-entry .ig-note { border: none; box-shadow: 0 8px 24px rgba(4,30,64,0.22); }
.cta-recruit .cta-line { background: #06c755 !important; color: #fff !important; }
.cta-recruit .cta-line .cta-icon { fill: #fff; }
.cta-recruit .cta-line .cta-sub { color: rgba(255,255,255,0.85); }
.cta-recruit .cta-line:hover { background: #05b34c !important; }
.cta-recruit .contact-cta-phone { background: #fff; }
.sp-tile--toast { background-position: center 85%; }
.recruit-page #entry.line-entry { background: linear-gradient(135deg, #0f4c8f 0%, #1e6fbf 100%) !important; }
@media (max-width: 800px) { .sp-tile--yakiniku { min-height: 270px; } }
/* 2026-11-07 人間関係＝現場で3人が作業する写真、新しい重機＝青空の新重機 */
.sp-tile--site { background-position: center 45%; }
.sp-tile--machine { background-position: center 62%; }
.sp-tile--site { background-position: center 70%; }
.sp-tile--site { background-position: center 55%; }
.sp-tile--site::before, .sp-tile--machine::before { background: linear-gradient(180deg, rgba(11,47,89,0) 0%, rgba(11,47,89,0.2) 45%, rgba(11,47,89,0.85) 100%); }
/* 2026-11-07 人間関係＝現場の4人（明るい写真）。焼肉パネルのボタンに枚数 */
.sp-tile--site { background-position: center 40%; }
.yk-count { font-style: normal; font-weight: 600; font-size: 11.5px; color: #4a5866; margin-left: 4px; }
@media (max-width: 800px) { .yk-count { display: none; } }

/* 2026-11-07 全ページのメリハリ（あや依頼）
   ・下のお問い合わせ帯：薄い青→明るい青に白文字（フッターの紺とは明るさで区別）
   ・白いブロックが3つ続くページは、間のブロックを薄い青にして交互に */
.contact-cta-form, .recruit-page .contact-cta-form { background: linear-gradient(135deg, #1e6fbf 0%, #2f8ae0 100%); color: #fff !important; }
.contact-cta-form .cta-icon { color: #fff; stroke: #fff; }
.contact-cta-form .cta-title, .contact-cta-form .cta-sub { color: #fff !important; }
.contact-cta-form .cta-sub { opacity: 0.85; }
.contact-cta-form:hover { background: linear-gradient(135deg, #1a62aa 0%, #2779c8 100%); }
.top-svc { background: var(--blue-50); }
.services.flow-section { background: var(--blue-50); }
.contact-cta-block .contact-cta-form .cta-icon, .contact-cta-block .contact-cta-form .cta-icon * { stroke: #fff !important; color: #fff !important; }
/* 2026-11-07 最終チェック：施工実績が奇数枚のとき、最後の1枚を中央に（右が空いて見えるため） */
@media (min-width: 769px) { .wk-grid > .wk-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - 40px) / 2); } }
