@charset "UTF-8";

/* =========================================================
   ライフ建物管理株式会社 様 ご提案専用サンプル
   様式：信頼感 ＋ 図面の方眼（08_デザイン定義 3-A-6 / 3-D-1）
   配色：現行サイト style.css からの実測色
     紺 #202f55 ／ 青 #006eb0 ／ 黄 #fcc800
   本文 18px 基準（03_レビューゲート B）
   ========================================================= */

:root {
  --navy: #202f55;
  --navy-deep: #16203a;
  --blue: #006eb0;
  --blue-light: #4cb2e3;
  --accent: #fcc800;
  --paper: #eef2f7;
  --paper-deep: #dde5ee;
  --ink: #1d2430;
  --ink-soft: #4a5568;
  --line: #c9d4e2;
  --white: #ffffff;

  --w-page: 1120px;
  --w-prose: 40em;
  --r: 4px;
  --shadow: 0 2px 10px rgba(32, 47, 85, 0.08);
  --shadow-lift: 0 8px 24px rgba(32, 47, 85, 0.14);

  /* 図面の方眼（このサイト共通のモチーフ） */
  --grid-line: rgba(32, 47, 85, 0.06);
  --grid: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);

  /* 文字サイズ（03_レビューゲートの18px仕様＝正本）。小さくしたくなったら仕様違反のサイン */
  --fs-body: 18px; /* 本文・説明文・表・リスト */
  --fs-h3: 24px; /* 小見出し */
  --fs-h4: 20px; /* カード見出しの下限（本文との逆転禁止） */
  --fs-label: 15px; /* キャプション・ラベル・バッジ */
  --fs-note: 14px; /* 注記（これより小さくしない） */

  color-scheme: only light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic", "Meiryo", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.8;
  font-feature-settings: "palt" 1;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: var(--blue);
}

/* 意味のかたまりを折り返しから守る（03 レビューゲート B） */
.nw {
  display: inline-block;
}

/* ---------- 共通レイアウト ---------- */

.wrap {
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 72px;
}

.section--paper {
  background-color: var(--paper);
  background-image: var(--grid);
  background-size: 24px 24px;
}

.section__head {
  margin-bottom: 36px;
}

.section__label {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  border-radius: 2px;
}

h2.section__title {
  margin: 0;
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.section__lead {
  max-width: var(--w-prose);
  margin: 16px 0 0;
  color: var(--ink-soft);
}

/* ---------- 提案専用の注釈（上部） ---------- */

.proposal-bar {
  background: var(--navy-deep);
  color: #dbe3f0;
  font-size: 15px;
  line-height: 1.7;
  padding-block: 10px;
}

.proposal-bar p {
  margin: 0;
  max-width: var(--w-page);
  margin-inline: auto;
  padding-inline: 20px;
}

.proposal-bar--sub {
  background: var(--blue);
  color: var(--white);
}

.proposal-bar--sub a {
  color: var(--white);
  font-weight: bold;
}

/* ---------- ヘッダー ---------- */

.header {
  position: relative;
  z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header__upper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  flex: none;
  width: 44px;
  height: 44px;
}

.brand__name {
  display: block;
  font-size: 21px;
  font-weight: bold;
  line-height: 1.3;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.brand__sub {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.header__contact {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__tel {
  text-decoration: none;
  color: var(--navy);
  text-align: right;
}

.header__tel .lbl {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.header__tel .num {
  display: block;
  font-size: 26px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--r);
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

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

.btn--ghost {
  background: var(--white);
  border-color: var(--navy);
  color: var(--navy);
}

.btn--ghost:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy-deep);
}

.btn--accent:hover {
  background: #e5b500;
  border-color: #e5b500;
}

/* ナビ（PC＝下段・全幅センター） */

.nav {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list a {
  display: block;
  /* 項目が10個あるため、左右の余白を詰めて1段に収める（文字は18px基準を維持） */
  padding: 14px 14px;
  font-size: 18px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 3px solid transparent;
}

@media (min-width: 1300px) {
  .nav__list a {
    padding-inline: 17px;
  }
}

.nav__list a:hover,
.nav__list a[aria-current="page"] {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.nav__toggle {
  display: none;
}

/* ---------- 第一画面 ---------- */

.hero {
  position: relative;
  background: var(--navy);
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--white);
  padding-block: 56px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 40px;
  align-items: center;
}

.hero__eyebrow {
  margin: 0 0 14px;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--accent);
}

.hero__title {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: bold;
}

.hero__copy {
  margin: 20px 0 0;
  max-width: 34em;
  font-size: 19px;
  line-height: 1.9;
  color: #d8e0ee;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__actions .btn--ghost {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.hero__actions .btn--ghost:hover {
  background: var(--white);
  color: var(--navy);
}

.hero__figure {
  margin: 0;
}

.hero__figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero__caption {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: #b9c5da;
}

/* ---------- 業務カード ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

a.card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.card__thumb {
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
  overflow: hidden;
}

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

.card__body {
  flex: 1 1 auto;
  padding: 20px;
}

.card__title {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.45;
  color: var(--navy);
}

.card__text {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink-soft);
}

.card__more {
  display: block;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: bold;
  color: var(--blue);
}

/* ---------- 建物のどこを見ているか ---------- */

.scope {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.scope__figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
}

.scope__figure img {
  display: block;
  margin-inline: auto;
}

.scope__figure figcaption {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
}

.scope__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.scope__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--r);
}

.scope__no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
}

.scope__name {
  display: block;
  font-size: 19px;
  font-weight: bold;
  line-height: 1.5;
  color: var(--navy);
}

.scope__desc {
  display: block;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- 判定ツールへの誘導 ---------- */

.checker-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r);
}

.checker-lead h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.4;
}

.checker-lead p {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  color: #d8e0ee;
}

.checker-lead__note {
  margin-top: 12px !important;
  font-size: 15px !important;
  color: #b9c5da !important;
}

/* ---------- ビフォーアフター ---------- */

.ba {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.ba__figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  padding: 12px;
}

.ba__figure img {
  display: block;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

.ba__figure figcaption {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- 許可・資格 ---------- */

.creds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}

.cred {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: var(--r);
  padding: 22px;
}

.cred__title {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.45;
  color: var(--navy);
}

.cred ul {
  margin: 0;
  padding-left: 1.2em;
}

.cred li {
  font-size: var(--fs-body);
  line-height: 1.75;
  margin-bottom: 4px;
}

.cred__note {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.qual-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qual-list li {
  padding: 6px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- お知らせ ---------- */

.news {
  margin: 0;
  border-top: 1px solid var(--line);
}

.news__row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.news__date {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--fs-body);
}

.news__body {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.75;
}

/* ---------- 会社概要 ---------- */

.info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 28px;
}

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

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-body);
  line-height: 1.7;
  text-align: left;
  vertical-align: top;
}

.table th {
  width: 34%;
  background: var(--paper);
  color: var(--navy);
  font-weight: bold;
  white-space: nowrap;
}

/* ---------- 問い合わせ ---------- */

.contact {
  background: var(--navy);
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--white);
  padding-block: 64px;
}

.contact h2 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.35;
}

.contact p {
  margin: 0 0 28px;
  color: #d8e0ee;
}

.contact__ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.way {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r);
  padding: 24px;
  text-align: center;
}

.way__label {
  margin: 0 0 10px;
  font-size: var(--fs-body);
  color: var(--accent);
}

.way__tel {
  display: inline-block;
  font-size: 34px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
}

.way__note {
  margin: 10px 0 0 !important;
  font-size: 15px;
  color: #b9c5da !important;
}

/* ---------- フッター ---------- */

.footer {
  background: var(--navy-deep);
  color: #c7d1e2;
  padding-block: 40px 28px;
  font-size: 16px;
  line-height: 1.8;
}

.footer a {
  color: #c7d1e2;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.footer__name {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: bold;
  color: var(--white);
}

.footer__note {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 15px;
  line-height: 1.75;
  color: #9fadc4;
}

/* ---------- スマホ下部の固定電話バー ---------- */

.callbar {
  display: none;
}

/* =========================================================
   タブレット以下
   ========================================================= */

@media (max-width: 1000px) {
  .hero__inner,
  .scope,
  .ba,
  .checker-lead {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__figure {
    max-width: 420px;
  }

  .scope__figure {
    max-width: 380px;
  }
}

/* =========================================================
   スマホ
   ========================================================= */

@media (max-width: 820px) {
  body {
    padding-bottom: 76px; /* 下部固定バーの逃げ */
  }

  .section {
    padding-block: 48px;
  }

  h2.section__title {
    font-size: 26px;
  }

  .header__upper {
    padding-block: 12px;
  }

  .header__contact {
    display: none;
  }

  .brand__name {
    font-size: 19px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  /* ハンバーガー（「メニュー」の文字ラベル必須） */
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--navy);
    border: none;
    border-radius: var(--r);
    color: var(--white);
    font-size: var(--fs-body);
    font-weight: bold;
    line-height: 1.3;
    font-family: inherit;
    cursor: pointer;
  }

  .nav__toggle .bars {
    display: block;
    width: 20px;
    height: 14px;
    position: relative;
  }

  .nav__toggle .bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
  }

  .nav__toggle .bars span:nth-child(1) {
    top: 0;
  }

  .nav__toggle .bars span:nth-child(2) {
    top: 6px;
  }

  .nav__toggle .bars span:nth-child(3) {
    top: 12px;
  }

  .nav {
    position: absolute; /* fixed は禁止（05 デプロイ前チェックリスト） */
    top: 100%;
    left: 0;
    width: 100%;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    display: none;
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav__list li {
    border-bottom: 1px solid var(--line);
  }

  .nav__list a {
    padding: 15px 20px;
    border-bottom: none;
  }

  .hero {
    padding-block: 40px;
  }

  .hero__copy {
    font-size: 18px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .checker-lead {
    padding: 24px 20px;
  }

  .news__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .table th {
    width: 38%;
    white-space: normal;
  }

  .way__tel {
    font-size: 30px;
  }

  /* 下部固定の電話・相談バー */
  .callbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1px;
    background: var(--line);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
  }

  .callbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 8px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
    text-decoration: none;
  }

  .callbar__tel {
    background: var(--blue);
    color: var(--white);
  }

  .callbar__form {
    background: var(--accent);
    color: var(--navy-deep);
  }
}

@media (max-width: 400px) {
  .brand__name {
    font-size: var(--fs-body);
  }

  .brand__sub {
    font-size: var(--fs-note);
  }

  .way__tel {
    font-size: 26px;
  }
}

/* =========================================================
   下層ページ共通
   ========================================================= */

.pagehead {
  background: var(--navy);
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--white);
  padding-block: 44px;
}

.pagehead h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.3;
}

.pagehead p {
  margin: 14px 0 0;
  max-width: var(--w-prose);
  color: #d8e0ee;
}

.prose {
  max-width: var(--w-prose);
}

.prose p {
  margin: 0 0 1.2em;
}

h3.sub {
  margin: 32px 0 12px;
  padding-left: 14px;
  border-left: 5px solid var(--blue);
  font-size: 24px;
  line-height: 1.45;
  color: var(--navy);
}

h4.subsub {
  margin: 24px 0 8px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--navy);
}

.note {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: var(--paper);
  border-left: 4px solid var(--accent);
  border-radius: 2px;
  font-size: 16px;
  line-height: 1.75;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin: 24px 0 0;
}

.photo-grid figure {
  /* 写真の縦横比がまちまちなので、画像の枠の高さを揃えて説明文の位置を合わせる */
  display: grid;
  grid-template-rows: 230px auto;
  gap: 8px;
  margin: 0;
}

.photo-grid img {
  /* 元の写真が小さいため、原寸を超えて引き伸ばさない */
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 230px;
  align-self: center;
  justify-self: center;
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.photo-grid figcaption {
  margin-top: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.table--bordered th,
.table--bordered td {
  border: 1px solid var(--line);
  font-size: 16px;
}

.table--bordered th {
  width: auto;
  white-space: nowrap;
  text-align: center;
}

.table--bordered td.use {
  min-width: 18em;
}

.table--bordered td.size {
  min-width: 22em;
}

.qualbox {
  margin: 20px 0 0;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.qualbox h3,
.qualbox h4 {
  margin: 0 0 8px;
  font-size: var(--fs-h4);
  line-height: 1.5;
  color: var(--navy);
}

.qualbox ul {
  margin: 0;
  padding-left: 1.2em;
}

/* ---------- 定期報告の流れ ---------- */

.flow {
  counter-reset: flow;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.flow li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.flow li::after {
  content: "";
  position: absolute;
  left: 40px;
  bottom: -12px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 10px solid var(--blue-light);
  z-index: 1;
}

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

.flow__step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--r);
  font-size: 19px;
  font-weight: bold;
  line-height: 1.4;
}

.flow__step::before {
  counter-increment: flow;
  content: counter(flow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  background: var(--white);
  color: var(--blue);
  border-radius: 50%;
  font-size: 16px;
}

.flow__desc {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.8;
}

.flow__desc ol {
  margin: 8px 0 0;
  padding-left: 1.4em;
}

/* ---------- 判定ツール ---------- */

.checker {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--r);
  overflow: hidden;
}

.checker__head {
  padding: 20px 24px;
  background: var(--navy);
  color: var(--white);
}

.checker__head h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.4;
}

.checker__head p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: #d8e0ee;
}

.checker__body {
  padding: 24px;
}

.checker__q {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: bold;
  color: var(--navy);
}

.checker select {
  width: 100%;
  max-width: 640px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 18px;
  line-height: 1.5;
}

.checker__conds {
  margin: 24px 0 0;
  padding: 0;
  border: none;
}

.checker__conds legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: bold;
  color: var(--navy);
}

.checker__conds ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.checker__conds .field {
  display: block;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.field__name {
  display: block;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.6;
  color: var(--navy);
}

.field__hint {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.field__row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.checker__conds input[type="number"] {
  width: 9em;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 18px;
  line-height: 1.5;
  text-align: right;
}

.field__unit {
  font-size: var(--fs-body);
  color: var(--ink-soft);
}

.checker__conds .field--check {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 18px;
  line-height: 1.7;
  cursor: pointer;
}

.checker__conds input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 4px 0 0;
  accent-color: var(--blue);
}

/* 判定の内訳 */

.judge-list {
  margin: 12px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.judge-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: var(--fs-body);
  line-height: 1.7;
}

.judge-list li span {
  font-weight: bold;
  text-align: center;
}

.judge-list li.ok {
  border-color: var(--blue);
}

.judge-list li.ok span {
  color: var(--blue);
}

.judge-list li.ng {
  color: var(--ink-soft);
}

.judge-list li.ng span {
  color: var(--line);
}

.checker__result {
  margin: 24px 0 0;
  padding: 20px 22px;
  border-radius: var(--r);
  border: 2px solid var(--line);
  background: var(--paper);
}

.checker__result[data-state="hit"] {
  border-color: var(--blue);
  background: #eaf4fb;
}

.checker__result[data-state="miss"] {
  border-color: var(--line);
}

.checker__verdict {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.45;
  color: var(--navy);
}

.checker__detail {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.8;
}

.checker__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.checker__caution {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: #fff8e0;
  border: 1px solid #f0d98a;
  border-radius: var(--r);
  font-size: 16px;
  line-height: 1.75;
}

@media (max-width: 820px) {
  .flow li {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .flow li::after {
    left: 50%;
    transform: translateX(-50%);
  }

  h3.sub {
    font-size: 21px;
  }

  .checker__head,
  .checker__body {
    padding: 18px 16px;
  }

  .checker__head h2 {
    font-size: 22px;
  }
}

/* 対象建築物の表：スマホでは横スクロールをやめて縦積みにする */

@media (max-width: 820px) {
  .table-scroll {
    overflow-x: visible;
    border: none;
    border-radius: 0;
  }

  .table--bordered {
    display: block;
  }

  .table--bordered thead {
    display: none;
  }

  .table--bordered tbody,
  .table--bordered tr {
    display: block;
  }

  .table--bordered tr {
    margin-bottom: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--navy);
    border-radius: var(--r);
    overflow: hidden;
  }

  .table--bordered tr > th[scope="row"] {
    display: block;
    width: auto;
    border: none;
    border-bottom: 1px solid var(--line);
    background: var(--navy);
    color: var(--white);
    text-align: left;
    font-size: 18px;
  }

  .table--bordered tr > th[scope="row"]::before {
    content: "番号 ";
  }

  .table--bordered td,
  .table--bordered td.use,
  .table--bordered td.size {
    display: block;
    width: auto;
    min-width: 0;
    border: none;
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-body);
  }

  .table--bordered tr td:last-child {
    border-bottom: none;
  }

  .table--bordered td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: bold;
    color: var(--blue);
  }
}

/* 「案です」の一文を、注釈の中でも読み落とされないようにする */

.proposal-bar strong {
  color: var(--white);
}

.footer__note strong {
  color: #e4ebf6;
}

.checker__caution strong {
  color: var(--navy);
}

/* ---------- 注意を促す囲み ---------- */

.alert {
  margin: 28px 0 0;
  padding: 22px 24px;
  background: #fff8e0;
  border: 1px solid #f0d98a;
  border-left: 6px solid var(--accent);
  border-radius: var(--r);
}

.alert__title {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: bold;
  line-height: 1.5;
  color: var(--navy);
}

.alert p:last-child {
  margin: 0;
}

/* ---------- 2つを並べて比べる ---------- */

.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 20px;
}

.compare__col {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--navy);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.compare__title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.4;
  color: var(--navy);
}

.compare__desc {
  margin: 0 0 20px;
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--ink-soft);
}

.compare__label {
  margin: 18px 0 8px;
  padding: 5px 14px;
  display: inline-block;
  border-radius: 2px;
  font-size: var(--fs-h4);
  font-weight: bold;
  line-height: 1.5;
}

.compare__label--good {
  background: #e3f1fa;
  color: #0b5a89;
}

.compare__label--bad {
  background: #f2f2f2;
  color: #5a5a5a;
}

.compare__list {
  margin: 0;
  padding-left: 1.3em;
}

.compare__list li {
  font-size: var(--fs-body);
  line-height: 1.75;
  margin-bottom: 6px;
}

@media (max-width: 820px) {
  .compare__col {
    padding: 20px 18px;
  }

  .compare__title {
    font-size: 21px;
  }

  .alert {
    padding: 18px 16px;
  }

  .alert__title {
    font-size: 19px;
  }
}

/* ---------- 前と後を並べる ---------- */

.ba-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  align-items: start;
  justify-items: center;
}

.ba-pair figure {
  width: 100%;
  max-width: 340px;
  margin: 0;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.ba-pair img {
  display: block;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 2px;
}

.ba-pair figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-soft);
}

.ba-tag {
  flex: none;
  padding: 4px 12px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.5;
}

.ba-tag--before {
  background: #f2f2f2;
  color: #5a5a5a;
}

.ba-tag--after {
  background: var(--blue);
  color: var(--white);
}

/* ---------- 導入事例 ---------- */

.caselist {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}

.case {
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: var(--r);
}

.case img {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.case__title {
  margin: 0 0 4px;
  font-size: 21px;
  line-height: 1.5;
  color: var(--navy);
}

.case__spec {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.case__desc {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.8;
}

/* ---------- 横長の図 ---------- */

.wide-figure {
  margin: 0;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-align: center;
}

.wide-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

.wide-figure figcaption {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

@media (max-width: 820px) {
  .case {
    padding: 18px 16px;
  }

  .case__title {
    font-size: var(--fs-h4);
  }
}

/* ---------- 規約ページの見出し ---------- */

h2.sub2 {
  margin: 36px 0 12px;
  padding-left: 14px;
  border-left: 5px solid var(--blue);
  font-size: 22px;
  line-height: 1.5;
  color: var(--navy);
}

.policy-date {
  margin-top: 36px;
  font-size: var(--fs-body);
  color: var(--ink-soft);
}

/* ---------- 地図 ---------- */

.mapbox {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

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

/* ---------- 白地の問い合わせカード ---------- */

.contact__ways--light {
  margin-top: 8px;
}

.way--light {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}

.way--light .way__label {
  color: var(--blue);
  font-weight: bold;
}

.way--light .way__tel {
  color: var(--navy);
}

.way--light .way__note {
  color: var(--ink-soft) !important;
}

.way__addr {
  margin: 0;
  font-size: 19px;
  font-weight: bold;
  line-height: 1.7;
  color: var(--navy);
}

/* ---------- フォーム ---------- */

.form {
  max-width: 760px;
}

.form__row {
  margin-bottom: 22px;
}

.form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.6;
  color: var(--navy);
}

.form__req {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  background: #c0392b;
  color: var(--white);
  border-radius: 2px;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.5;
}

.form__input {
  display: block;
  width: 100%;
  padding: 13px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  font-family: inherit;
  font-size: 18px;
  line-height: 1.6;
}

.form__input:focus {
  outline: 3px solid rgba(0, 110, 176, 0.35);
  outline-offset: 1px;
  border-color: var(--blue);
}

.form__input--short {
  max-width: 12em;
}

.form__input--mid {
  max-width: 18em;
}

.form__privacy {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- シンボルマークのページ ---------- */

.marks {
  display: grid;
  gap: 24px;
}

.mark-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--navy);
  border-radius: var(--r);
}

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

.mark-card__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.4;
  color: var(--navy);
}

.mark-card__badge {
  padding: 5px 14px;
  background: var(--accent);
  border-radius: 999px;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.5;
  color: var(--navy-deep);
}

.mark-states {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 16px;
}

.mark-state {
  margin: 0;
}

.mark-state__box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 150px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.mark-state__box--white {
  background: var(--white);
}

.mark-state__box--navy {
  background: var(--navy);
  border-color: var(--navy);
}

.mark-state__box--small {
  gap: 8px;
}

.mark-state__sname {
  font-size: 15px;
  font-weight: bold;
  line-height: 1.4;
  color: var(--navy);
}

.mark-state figcaption {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
}

.mark-desc {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.mark-desc dt {
  margin-bottom: 4px;
  font-size: var(--fs-body);
  font-weight: bold;
  color: var(--blue);
}

.mark-desc dd {
  margin: 0 0 16px;
  font-size: var(--fs-body);
  line-height: 1.85;
}

.mark-desc dd:last-child {
  margin-bottom: 0;
}

.swatch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-family: inherit;
  white-space: nowrap;
}

.swatch span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

@media (max-width: 820px) {
  .mark-card {
    padding: 20px 16px;
  }

  .mark-card__title {
    font-size: 21px;
  }
}

/* ---------- ページの先頭へ戻るボタン ---------- */

.totop {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--navy);
  border: 2px solid var(--white);
  border-radius: 999px;
  color: var(--white);
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: bold;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: background-color 0.2s, opacity 0.2s, transform 0.2s;
}

.totop:hover {
  background: var(--blue);
}

.totop:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.totop[hidden] {
  display: none;
}

.totop__arrow {
  display: block;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 10px solid var(--accent);
}

@media (max-width: 820px) {
  .totop {
    right: 14px;
    /* 下部固定バー（電話する／相談する）の上に置く */
    bottom: 90px;
    padding: 12px 16px;
    font-size: 16px;
  }
}

/* ---------- 第一画面のキャッチ（現行サイトのメインバナーの言葉） ---------- */

.hero__catch {
  margin: 22px 0 0;
  padding-left: 18px;
  border-left: 5px solid var(--accent);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: bold;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--white);
}

@media (max-width: 820px) {
  .hero__catch {
    padding-left: 14px;
    font-size: 20px;
  }
}

/* ---------- 断面図の数字（押せる） ---------- */

.hero-no {
  cursor: pointer;
}

.hero-no__bg {
  transition: r 0.15s, fill 0.15s;
}

.hero-no:hover .hero-no__bg,
.hero-no:focus-visible .hero-no__bg {
  r: 18;
  fill: #ffdb4d;
}

.hero-no:focus-visible {
  outline: none;
}

.hero-no:focus-visible .hero-no__bg {
  stroke: #ffffff;
  stroke-width: 3;
}

.hero-no.is-active .hero-no__bg {
  r: 18;
  stroke: #ffffff;
  stroke-width: 3;
}

.hero__figlink {
  margin: 12px 0 0;
  text-align: center;
}

.figlink {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #e2e9f5;
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
}

.figlink:hover,
.figlink:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* ---------- 対応する場所（押せる番号・選択中の見せ方） ---------- */

.scope__no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.scope__no:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy-deep);
}

.scope__no:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.scope__item {
  transition: border-color 0.15s, background-color 0.15s;
}

.scope__item.is-active {
  border-left-color: var(--accent);
  background: #fffdf3;
}

.scope__item.is-active .scope__no {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy-deep);
}

.scope__figno {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  vertical-align: middle;
}

.scope__figure img {
  max-height: 300px;
}

/* 写真の丸数字を押すと断面図へ戻れる */

button.scope__figno {
  padding: 0;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

button.scope__figno:hover {
  background: var(--blue);
}

button.scope__figno:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.scope__back {
  margin: 10px 0 0;
  text-align: center;
}

.figlink--dark {
  border-color: var(--line);
  color: var(--blue);
}

.figlink--dark:hover,
.figlink--dark:focus-visible {
  background: var(--paper);
  color: var(--navy);
}
