/* =====================================================
   北海道空調衛生工事業協会 LP
   HTML5 / CSS のみで実装（フレームワーク不使用）
===================================================== */

:root {
  --color-black: #1A2332;
  --color-light-black: #484F5B;
  --color-light-blue: #A2DBF7;
  --color-flow-bg: #F4F4F5;
  --color-flow-dot: #BABDC2;
  --color-white: #FFFFFF;
  --color-soft-blue: #C8E6F5;
  --color-pastel-blue: #EEF6FA;
  --color-navy: #314669;
  --color-top-bg: #1A2332;

  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --container-width: 1152px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font-base);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* スマホ表示専用の改行（PC/タブレットでは非表示） */
br.sp-only { display: none; }

/* PC/タブレット専用の改行（スマホでは非表示） */
br.pc-only { display: inline; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

.section__title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 56px;
}

.section__subtitle {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  margin-top: 16px;
}

.section__lead {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  line-height: 1.9;
  margin-top: 56px;
}

.section__lead-highlight {
  font-size: 30px; /* 「目立たない。でも、欠かせない。」と同じ文字サイズ */
  font-weight: 600; /* 「目立たない。でも、欠かせない。」と同じ太さ */
}

/* =====================================================
   HEADER
===================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(255, 255, 255, 0.85);
  z-index: 10;
}

.header__inner {
  max-width: 1636px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header__logo-sub {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.7px;
}

.header__logo-main {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.7px;
}

.header__nav {
  display: flex;
  gap: 28px;
}

.header__nav a {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-black);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.header__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.header__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================
   HERO
===================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 640px;
  height: 45vw;
  max-height: 870px;
  overflow: hidden;
  background: var(--color-black);
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
  z-index: 0;
}

/* PC/SPで画像を確実に出し分ける（display切替方式） */
.hero__photo--sp { display: none; }
.hero__photo--pc { display: block; }

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: var(--color-white);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
}

.hero__content-inner {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  text-align: left;
}

.hero__title {
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.35;
}

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

.hero__lead {
  margin-top: 32px;
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 600;
}

/* =====================================================
   スマホ表示専用ナビ（PC/タブレットでは非表示）
===================================================== */
.mobile-nav { display: none; }

/* =====================================================
   PAGE BACKGROUND WRAPPER
===================================================== */
.page-bg {
  background: rgba(26, 35, 50, 0.035);
}

/* =====================================================
   RISK CARDS
===================================================== */
.risk-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.risk-card {
  background: var(--color-white);
  border-radius: 10px;
  padding: 32px;
  box-shadow: 6px 2px 10px rgba(26, 35, 50, 0.12);
}

.risk-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.risk-card__icon { width: 36px; height: 36px; }

.risk-card h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 2px;
}

.risk-card p {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-light-black);
  line-height: 1.75;
}

.hokkaido-box {
  margin-top: 56px;
  border-radius: 10px;
  padding: 48px 32px;
  text-align: center;
  color: var(--color-white);
  box-shadow: 5px 5px 10px rgba(26, 35, 50, 0.1);
  background: linear-gradient(161deg,
    #1A2332 0%, #1B2536 8.3%, #1D2839 16.7%, #1E2A3D 25%,
    #1F2C40 33.3%, #212E44 41.7%, #223148 50%, #23334C 58.3%,
    #25354F 66.7%, #263853 75%, #273A57 83.3%, #293D5B 91.7%, #2A3F5F 100%);
}

.hokkaido-box__title {
  font-size: 28px;
  font-weight: 700;
}

.hokkaido-box__subtitle {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-soft-blue);
}

.hokkaido-box__conditions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}

.condition {
  display: flex;
  align-items: center;
  gap: 12px;
}

.condition img { width: 28px; height: 28px; }

.condition span {
  font-size: 18px;
  font-weight: 600;
}

.hokkaido-box__text {
  margin-top: 32px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
}

/* =====================================================
   DESIGN SECTION (空気と水を、デザインする)
===================================================== */
.design-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: start;
}

.design-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 5px 5px 10px rgba(26, 35, 50, 0.1);
}

.design-card__image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.design-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 35, 50, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.design-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.design-card__body {
  background: var(--color-white);
  padding: 32px;
  flex: 1;
}

.design-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.design-card__icon { width: 40px; height: 40px; }

.design-card__head h3 {
  font-size: 24px;
  font-weight: 600;
}

.design-card__text p {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-light-black);
  line-height: 1.75;
  margin-bottom: 16px;
}

.design-card__text p:last-child { margin-bottom: 0; }

.design-card__divider {
  border: none;
  border-top: 1px solid rgba(26, 35, 50, 0.1);
  margin: 24px 0;
}

.tag-list {
  display: grid;
  grid-template-columns: 136px 1fr;
  column-gap: 12px;
  row-gap: 12px;
  align-items: center;
}

.tag-list li {
  display: contents;
}

.tag-list li:last-child { margin-bottom: 0; }

.tag {
  flex-shrink: 0;
  min-width: 136px;
  width: 100%;
  text-align: center;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 5px;
  padding: 5px 14px;
  white-space: nowrap;
  box-sizing: border-box;
}

.tag-desc {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-light-black);
}

.closing-text {
  text-align: center;
  margin-top: 72px;
}

.closing-text h3 {
  font-size: 30px;
  font-weight: 600;
}

.closing-text p {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
}

/* =====================================================
   TIMELINE (建物の未来へ、快適をつなぐ)
===================================================== */
.timeline { position: relative; }

.timeline__line {
  position: absolute;
  top: 78px;    /* フォールバック値。実際の位置はJSでアイコン中心に合わせて調整 */
  bottom: 78px; /* フォールバック値。実際の位置はJSでアイコン中心に合わせて調整 */
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(26, 35, 50, 0.15) 0,
    rgba(26, 35, 50, 0.15) 3px,
    transparent 3px,
    transparent 8px
  );
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 196px 1fr; /* 中央列 = 68px(余白) + 60px(アイコン) + 68px(余白) */
  align-items: start;
  padding: 48px 0;
}

.timeline-item--reverse .timeline-item__image { order: 3; }
.timeline-item--reverse .timeline-item__icon { order: 2; }
.timeline-item--reverse .timeline-item__text { order: 1; }

.timeline-item__image {
  order: 1;
  min-width: 0; /* grid内でのはみ出し防止 */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 5px 5px 10px rgba(26, 35, 50, 0.1);
}

.timeline-item__image img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  object-position: center;
}

/* 施工管理・技能施工：画像内の白枠をクロップで除去 */
.timeline-item__image--sekou img {
  transform: scale(1.1);
  transform-origin: center top;
}

.timeline-item__image--ginou img {
  transform: scale(1.14);
  transform-origin: center center;
}

.timeline-item__icon {
  order: 2;
  position: static;
  justify-self: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-item__icon img { width: 24px; height: 24px; }

/* スマホ表示専用の「アイコン＋見出し」横並びブロック（PC/タブレットでは透過して既存レイアウトのまま） */
.timeline-item__head-mobile { display: contents; }
.timeline-item__icon-mobile { display: none; }

.timeline-item__text { order: 3; min-width: 0; }

.timeline-item__text--right { text-align: right; }
.timeline-item__text--left { text-align: left; }

.timeline-item__text h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.timeline-item__text > p {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-light-black);
  line-height: 1.8;
  margin-bottom: 20px;
}

.role-box {
  background: var(--color-flow-bg);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.role-box--right { align-items: flex-end; }
.role-box--left { align-items: flex-start; }

.role {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.role-box--right .role { text-align: right; }
.role-box--left .role { text-align: left; }

.role__name {
  font-size: 13px;
  font-weight: 600;
}

.role__desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-light-black);
}

/* 役割ブロックに縦線をあしらう(#A2DBF7) */
.role-box--accent .role {
  position: relative;
}

/* 企画・施工管理・試運転(右揃え) → 線はブロック右側 */
.role-box--right.role-box--accent .role {
  padding-right: 20px;
}

.role-box--right.role-box--accent .role::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 3px;
  background: var(--color-light-blue); /* #A2DBF7 */
}

/* 設備設計・技能施工・維持管理(左揃え) → 線はブロック左側 */
.role-box--left.role-box--accent .role {
  padding-left: 20px;
}

.role-box--left.role-box--accent .role::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--color-light-blue); /* #A2DBF7 */
}

/* =====================================================
   FUTURE SECTION (次世代インフラへ)
===================================================== */
.future-section {
  background: var(--color-flow-bg);
}

.future-section__head { margin-bottom: 56px; }

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

.feature-card {
  background: var(--color-white);
  border: 1px solid rgba(26, 35, 50, 0.1);
  border-radius: 10px;
  box-shadow: 5px 5px 10px rgba(26, 35, 50, 0.1);
  padding: 30px 40px;
}

.feature-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.feature-card__icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--color-soft-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card__icon-wrap img { width: 24px; height: 24px; }

.feature-card__title {
  font-size: 24px;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.feature-card__title small {
  font-size: 13px;
  font-weight: 400;
}

.feature-card p {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-light-black);
  line-height: 1.75;
}

.future-banner {
  position: relative;
  margin-top: 56px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 5px 5px 10px rgba(26, 35, 50, 0.1);
}

.future-banner img {
  width: 100%;
  height: clamp(220px, 30vw, 384px);
  object-fit: cover;
}

.future-banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 30px 40px;
  background: linear-gradient(to top, rgba(26, 35, 50, 0.8), rgba(0, 0, 0, 0));
}

.future-banner__overlay p {
  color: var(--color-white);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.6;
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
  padding: 96px 24px 72px;
  text-align: center;
  color: var(--color-white);
  background: linear-gradient(161deg,
    #1A2332 0%, #1B2536 8.3%, #1D2839 16.7%, #1E2A3D 25%,
    #1F2C40 33.3%, #212E44 41.7%, #223148 50%, #23334C 58.3%,
    #25354F 66.7%, #263853 75%, #273A57 83.3%, #293D5B 91.7%, #2A3F5F 100%);
}

.footer__inner {
  max-width: 847px;
  margin: 0 auto;
}

.footer__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 2px;
}

.footer__lead {
  margin-top: 32px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-soft-blue);
  line-height: 1.9;
}

.footer__divider {
  width: 100%;
  max-width: 396px;
  margin: 56px auto 0;
  border: none;
  border-top: 1px solid rgba(200, 230, 245, 0.5);
  opacity: 0.4;
}

.footer__note {
  margin-top: 40px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(200, 230, 245, 0.8);
}

.footer__assoc {
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.7px;
}

.footer__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px; /* テキストとアイコンの間隔（8〜12pxの範囲） */
  margin-top: 32px;
  padding: 14px 44px;
  background: var(--color-soft-blue);
  color: var(--color-black);
  font-size: 16px;
  font-weight: 500;
  border-radius: 50px;
  transition: opacity 0.2s ease;
}

.footer__btn:hover { opacity: 0.8; }

.footer__btn-icon {
  width: 13px;  /* 文字サイズ(16px)より小さいアイコンサイズ */
  height: 13px;
  flex-shrink: 0;
}

/* =====================================================
   RESPONSIVE
   ブラウザ幅を連続的に縮めても崩れないよう、
   複数のブレークポイントで段階的に調整する
===================================================== */

/* ---- タブレット横〜ヘッダー幅が窮屈になり始める帯（ハンバーガー化前の保険） ---- */
@media (max-width: 1080px) {
  .header__inner { padding: 0 20px; }
  .header__nav { gap: 18px; }
  .header__nav a { font-size: 13px; }
}

/* ---- タブレット／ハンバーガーメニューへの切り替え ---- */
@media (max-width: 900px) {
  .header__inner { padding: 0 20px; }

  .header__nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 9;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 16px rgba(26, 35, 50, 0.08);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .header__nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .header__nav a {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(26, 35, 50, 0.08);
    font-size: 15px;
  }

  .header__toggle { display: flex; }

  .section { padding: 64px 0; }
  .section__title { font-size: 30px; }

  .risk-cards { grid-template-columns: 1fr; }

  .hokkaido-box { padding: 40px 24px; }

  .design-cards { grid-template-columns: 1fr; }

  .timeline__line { left: 24px; }

  .timeline-item,
  .timeline-item--reverse {
    display: block;
    position: relative;
    padding: 20px 0 20px 56px;
  }

  .timeline-item__image,
  .timeline-item--reverse .timeline-item__image,
  .timeline-item__text,
  .timeline-item--reverse .timeline-item__text {
    order: initial;
  }

  .timeline-item__image { margin-bottom: 20px; }

  .timeline-item__icon,
  .timeline-item--reverse .timeline-item__icon {
    position: absolute;
    order: initial;
    left: 24px;
    top: 20px;
    transform: translate(-50%, 0);
    width: 44px;
    height: 44px;
    justify-self: unset;
  }

  .timeline-item__icon img { width: 18px; height: 18px; }

  .timeline-item__text,
  .timeline-item__text--right,
  .timeline-item__text--left {
    text-align: left;
    width: 100%;
  }

  .role-box,
  .role-box--right,
  .role-box--left {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
  }

  .role-box--right .role,
  .role-box--left .role { text-align: left; }

  /* role-box--right(企画/施工管理/試運転)のアクセントラインも、
     このタイムライン縦積み表示（900px以下）では左側に統一する */
  .role-box--right.role-box--accent .role {
    padding-right: 0;
    padding-left: 20px;
  }

  .role-box--right.role-box--accent .role::after {
    right: auto;
    left: 0;
  }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 28px 24px; }

  .future-banner__overlay { padding: 20px; }
}

/* ---- スマホ表示（添付デザイン準拠） ---- */
@media (max-width: 767px) {
  html { scroll-padding-top: 52px; }

  body { padding-bottom: 56px; }

  .container { padding: 0 20px; }

  /* スマホ専用の改行を表示、PC専用の改行を非表示にする */
  br.sp-only { display: inline; }
  br.pc-only { display: none; }

  /* ヘッダー：上部固定 */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    background: var(--color-white);
    height: auto;
    padding: 14px 0;
    box-shadow: 0 1px 0 rgba(26, 35, 50, 0.08);
  }

  .header__inner { padding: 0 20px; }

  .header__logo { gap: 6px; flex-wrap: nowrap; }
  .header__logo-sub { font-size: 10px; white-space: nowrap; }
  .header__logo-main { font-size: 13px; white-space: nowrap; }

  .header__nav,
  .header__toggle { display: none !important; }

  /* 画面下部固定ナビ */
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    justify-content: space-around;
    align-items: center;
    background: var(--color-white);
    padding: 14px 10px;
    border-top: 1px solid rgba(26, 35, 50, 0.08);
    box-shadow: 0 -2px 8px rgba(26, 35, 50, 0.06);
  }

  .mobile-nav a {
    font-size: 13px;
    font-weight: 500;
  }

  /* ヒーロー：スマホ用画像(391×700)の縦横比にぴったり合わせ、上下が見切れないようにする */
  .hero {
    position: relative;
    aspect-ratio: 391 / 700;
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .hero__content { padding: 0 20px; }

  .hero__title {
    font-size: 50px;
    line-height: 1.4;
  }

  .hero__lead {
    margin-top: 24px;
    font-size: 20px;
    font-weight: 600;
  }

  /* スマホ表示ではSP用画像を表示し、PC用画像は非表示にする */
  .hero__photo--pc { display: none; }
  .hero__photo--sp { display: block; }

  .section { padding: 56px 0; }
  .section__title { font-size: 26px; font-weight: 900; margin-bottom: 40px; }

  .design-section .section__title,
  .flow-section .section__title,
  .future-section .section__title {
    font-size: 32px;
  }

  /* ④「もし、空調衛生が止まったら。」 */
  .risk-section .section__title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
  }

  .section__lead { font-size: 16px; margin-top: 40px; }

  .section__lead-highlight {
    font-size: 24px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
  }

  .risk-card { padding: 24px; }
  .risk-card h3 { font-size: 26px; }

  .hokkaido-box__title { font-size: 24px; text-align: center; }

  /* タイトルは中央揃え、本文は左揃え、サブタイトル・条件は中央揃え */
  .hokkaido-box { text-align: left; }
  .hokkaido-box__subtitle { text-align: center; }
  .hokkaido-box__text { text-align: left; }

  /* 北海道条件：3項目のアイコン位置を頭（左端）で揃え、ブロック全体を上下左右中央に配置 */
  .hokkaido-box__conditions {
    flex-direction: column;
    align-items: flex-start; /* アイコンの左端を3項目共通で揃える（頭揃え） */
    width: fit-content;      /* ブロックの幅をコンテンツに合わせて縮める */
    margin: 32px auto 0;     /* ブロックごと左右中央に配置し、上のサブタイトルとの余白を32pxに */
    gap: 14px;
  }

  .design-card__body { padding: 24px; }

  /* ⑤ 空調・衛生設備画像のSPトリミング（高さ234px） */
  .design-card__image {
    width: 100%;
    height: 234px;
    margin-left: auto;
    margin-right: auto;
  }

  .design-card__image::after {
    background: linear-gradient(to top, rgba(26, 35, 50, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  }

  .design-card__image--kuuchou img {
    /* 元画像は人物が左寄りのため、左側を基準に表示＋拡大を抑えて人物を中央へ */
    object-position: 0% 36%;
    transform: none;
  }

  .design-card__image--eisei img {
    transform: scale(1.04);
    transform-origin: center center;
    object-position: 65% center;
  }

  /* 空調設備/衛生設備の見出しは中央揃え */
  .design-card__head { justify-content: center; }
  .design-card__head h3 { font-size: 20px; }
  .design-card__text p { text-align: left; }

  /* タグ：空調・衛生の8ブロックすべてを、長い方の横幅に揃える */
  .design-section .tag-list {
    display: grid;
    grid-template-columns: 1fr;
    width: 15em; /* 説明文最長（14文字）に合わせた共通幅 */
    max-width: 100%;
    margin-inline: auto;
    gap: 16px;
    font-size: 14px;
  }

  .design-section .tag-list li {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 6px;
    margin-bottom: 0;
  }

  .tag {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    white-space: nowrap;
  }

  .closing-text { margin-top: 32px; }
  .closing-text h3 { font-size: 24px; font-weight: 700; }
  .closing-text p { font-size: 16px; margin-top: 12px; }

  /* タイムライン：中央の点線・PC用アイコン列を非表示にし、単純な縦積みへ */
  .timeline__line { display: none; }

  .timeline-item,
  .timeline-item--reverse {
    display: block;
    padding: 0 0 48px 0;
  }

  .timeline-item:last-child { padding-bottom: 0; }

  .timeline-item__image,
  .timeline-item--reverse .timeline-item__image {
    order: initial;
    margin-bottom: 20px;
  }

  .timeline-item__image img { height: 220px; }

  .timeline-item__image--sekou img,
  .timeline-item__image--ginou img {
    transform: none;
  }

  .timeline-item__icon { display: none; } /* PC用の中央アイコン列は非表示 */

  .timeline-item__text,
  .timeline-item--reverse .timeline-item__text,
  .timeline-item__text--right,
  .timeline-item__text--left {
    order: initial;
    text-align: left;
    width: 100%;
  }

  /* スマホ専用：アイコン＋見出しの横並び */
  .timeline-item__head-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }

  .timeline-item__icon-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-black);
  }

  .timeline-item__icon-mobile img { width: 20px; height: 20px; }

  .timeline-item__text h3 { font-size: 20px; margin-bottom: 0; }

  /* role-box：常に左側にアクセントラインを表示 */
  .role-box,
  .role-box--right,
  .role-box--left {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
  }

  .role-box--right .role,
  .role-box--left .role { text-align: left; }

  .role-box--right.role-box--accent .role {
    padding-right: 0;
    padding-left: 20px;
  }

  .role-box--right.role-box--accent .role::after {
    right: auto;
    left: 0;
  }

  .flow-section .role__name,
  .flow-section .role__desc {
    font-size: 14px;
  }

  .flow-section .role__name {
    font-weight: 700;
  }

  .flow-section .role__desc {
    font-weight: 600;
  }

  /* 次世代インフラセクションはグレー背景に */
  .future-section { background: var(--color-flow-bg); }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 28px 24px; }
  .feature-card__title { font-size: 20px; flex-wrap: wrap; }

  /* ⑩ 次世代バナー：SPサイズ調整・テキスト上下中央 */
  .future-banner {
    max-width: 350px;
    margin: 56px auto 0;
  }

  .future-banner img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
  }

  .future-banner__overlay {
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 16px 24px;
    background: linear-gradient(to top, rgba(26, 35, 50, 0.75), rgba(26, 35, 50, 0.45));
  }

  .future-banner__overlay p { font-size: 16px; line-height: 1.6; }

  .footer { padding: 72px 20px 56px; }
  .section__subtitle { font-size: 17px; }

  .footer__title { font-size: 28px; }
  .footer__lead { font-size: 16px; }
}

/* ---- 小型スマホ ---- */
@media (max-width: 480px) {
  .header__logo-sub { font-size: 9px; }
  .header__logo-main { font-size: 11px; }

  /* heroの高さは767px側のaspect-ratio指定を維持（画像が見切れないように上書きしない） */
  .hero__title { font-size: 50px; line-height: 1.4; }
  .hero__lead { font-size: 20px; }

  .section { padding: 48px 0; }
  .section__title { font-size: 22px; letter-spacing: 1px; }

  .design-section .section__title,
  .flow-section .section__title,
  .future-section .section__title {
    font-size: 32px;
  }

  .risk-section .section__title { font-size: 28px; }

  .risk-card { padding: 20px; }
  .risk-card__icon { width: 30px; height: 30px; }

  .hokkaido-box { padding: 32px 20px; }
  .condition span { font-size: 15px; }

  .design-card__body { padding: 20px; }

  .timeline-item__image img { height: 180px; }

  .timeline-item__icon-mobile { width: 42px; height: 42px; }
  .timeline-item__icon-mobile img { width: 18px; height: 18px; }

  .role-box { padding: 16px 18px; }

  .feature-card { padding: 24px 20px; }

  .footer__btn { padding: 12px 36px; font-size: 15px; gap: 8px; }
  .footer__btn-icon { width: 12px; height: 12px; }
}

/* ---- 極小幅（iPhone SEなど） ---- */
@media (max-width: 360px) {
  .container { padding: 0 16px; }
  .section__title { font-size: 20px; }

  .design-section .section__title,
  .flow-section .section__title,
  .future-section .section__title {
    font-size: 32px;
  }

  .hero__content { padding: 0 16px; }
  .header__logo-sub { display: none; } /* 極小幅のみロゴ副題を省略 */
}
