/* 事例ページ（A 縦1列）  v2 2026-09-24
   kintone 552「セットプラン」から作る在宅事例（カテゴリ home-case / facility-case）の見た目。
   見本＝HP試作v8 の #v-case（ref/layoutA_case11.html の .la-* ）。配色は本番テーマの紺・赤に合わせる。

   投稿本文には style を書かない。本文はクラス名だけを出し、見た目はすべてこのファイルが持つ。
   クラス名は .ngc の中だけで効くように書く（テーマ側の .btn / .next などとぶつからないようにするため）。

   上から 1 見出し＋リード文 → 2 要点帯4マス → 3 ご本人の状況 → 4 整備ごと → 5 ご本人の負担額。
   見取り図の欄はない。 */

/* テーマ本体の配色。.ngc-cta はテンプレート側（本文の外）に出るので、両方に置く */
.ngc,
.ngc-cta {
  --ngc-navy: #01479D;
  --ngc-navy-deep: #0A2048;
  --ngc-navy-tint: #EEF3FA;
  --ngc-navy-line: #C9D5E8;
  --ngc-red: #D80C18;
  --ngc-red-text: #B00A14;
  --ngc-red-tint: #FBEAEB;
  --ngc-ink: #141413;
  --ngc-text: #3F3C36;
  --ngc-muted: #6A655B;
  --ngc-line: #E2E7EF;
  --ngc-soft: #F5F7FA;
  /* 数字用。見本の Outfit は本番では読み込まないので、同系の sans に落とす */
  --ngc-en: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
}

.ngc {
  color: var(--ngc-ink);
  font-size: 16px;
  line-height: 1.85;
  /* 本文まわりが中央寄せのテーマなので、事例の中だけ左寄せに戻す */
  text-align: left;
}
.ngc * { box-sizing: border-box; }
.ngc p { margin: 0; }
.ngc img { max-width: 100%; height: auto; }

/* ---- 1 見出し＋リード文 ---- */
.ngc .la-head { padding-top: 4px; }
.ngc .la-eyebrow {
  display: block;
  font-family: var(--ngc-en);
  font-weight: 800;
  font-size: clamp(54px, 9vw, 110px);
  line-height: .85;
  letter-spacing: .02em;
  color: var(--ngc-navy-tint);
  user-select: none;
}
.ngc .la-h1 {
  margin: clamp(-40px, -3vw, -22px) 0 0;
  padding: 0;
  border: 0;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .04em;
  color: var(--ngc-ink);
}
.ngc .la-lead { margin-top: 8px; color: var(--ngc-text); font-size: 17px; }

/* ---- 2 要点帯（4マス。スマホは2×2） ---- */
.ngc .la-sum {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
  border: 2px solid var(--ngc-navy-line);
  border-radius: 18px;
  overflow: hidden;
}
.ngc .la-sum > div {
  min-width: 0;
  padding: 14px 16px;
  border-left: 1px solid var(--ngc-line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ngc .la-sum > div:first-child { border-left: 0; }
.ngc .la-sum b { font-size: 13px; font-weight: 700; color: var(--ngc-muted); line-height: 1.6; }
.ngc .la-sum span { font-size: 16px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.ngc .la-sum .la-yen {
  font-family: var(--ngc-en);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.2;
  color: var(--ngc-red-text);
}
.ngc .la-sum .la-yen.m { color: var(--ngc-navy); }
.ngc .la-sum .la-yen small {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ngc-ink);
  margin-left: 2px;
}

/* ---- 3 ご本人の状況 ---- */
.ngc .la-st {
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--ngc-soft);
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.9;
}
.ngc .la-st b { display: block; font-size: 13px; font-weight: 700; color: var(--ngc-muted); line-height: 1.6; }

/* ---- 4 整備ごと ---- */
.ngc .la-step { margin-top: 34px; }
.ngc .la-h3 {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ngc-ink);
}
.ngc .la-n {
  flex: none;
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ngc-navy);
  color: #fff;
  font-family: var(--ngc-en);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  align-items: center;
  justify-content: center;
}
.ngc .la-name { overflow-wrap: anywhere; }

/* 区分バッジ。レンタル＝紺、住宅改修＝赤、購入＝濃紺 */
.ngc .la-k {
  display: inline-block;
  flex: none;
  padding: 2px 12px;
  border-radius: 20px;
  background: var(--ngc-navy-tint);
  color: var(--ngc-navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
}
.ngc .la-k.r { background: var(--ngc-red-tint); color: var(--ngc-red-text); }
.ngc .la-k.p { background: #E4EAF3; color: var(--ngc-navy-deep); }

/* 施工前 → 施工後。PCは横2枚＋矢印、スマホは縦・矢印は下向き */
.ngc .la-ba {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
/* 片側しか写真が無い行。全幅まで伸ばすと1枚だけ巨大になるので、2枚並びの1枚ぶんに揃える */
.ngc .la-ba.la-one { grid-template-columns: minmax(0, 1fr); max-width: 540px; }
.ngc .la-side { display: grid; gap: 8px; min-width: 0; }
.ngc .la-fig { margin: 0; position: relative; }
.ngc .la-fig img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: var(--ngc-soft);
}
.ngc .la-fig figcaption {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 2px 12px;
  border-radius: 20px;
  background: rgba(10, 32, 72, .85);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}
.ngc .la-fig.la-af figcaption { background: var(--ngc-red); }
/* 矢印は画像を使わず枠線で作る（投稿本文にSVGを入れないため） */
.ngc .la-ar {
  justify-self: center;
  width: 22px;
  height: 22px;
  border-top: 3px solid var(--ngc-navy);
  border-right: 3px solid var(--ngc-navy);
  transform: rotate(45deg);
}
.ngc .la-cm { margin-top: 10px; font-size: 16px; color: var(--ngc-text); }

/* ---- 5 ご本人の負担額 ---- */
.ngc .la-cost { margin-top: 40px; }
.ngc .la-h2 {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ngc-ink);
}
.ngc .la-h2::before {
  content: "";
  flex: none;
  width: 6px;
  height: 1.1em;
  border-radius: 3px;
  background: var(--ngc-navy);
}
/* 表がこれ以上細くなれない幅まで来たら、表だけ横スクロールさせる（周りは崩さない） */
.ngc .la-tblwrap { max-width: 100%; overflow-x: auto; }
.ngc .la-tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; margin-top: 10px; }
.ngc .la-tbl th,
.ngc .la-tbl td {
  padding: 11px 10px;
  border: 0;
  border-bottom: 1px solid var(--ngc-line);
  text-align: left;
  vertical-align: middle;
}
.ngc .la-tbl th { background: var(--ngc-soft); font-size: 13px; font-weight: 700; color: var(--ngc-muted); white-space: nowrap; }
.ngc .la-tbl td.la-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ngc .la-tbl td.la-me { font-weight: 700; color: var(--ngc-ink); }
.ngc .la-note { margin-top: 10px; font-size: 13px; color: var(--ngc-muted); line-height: 1.8; }

@media (max-width: 900px) {
  .ngc .la-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ngc .la-sum > div:nth-child(3) { border-left: 0; }
  .ngc .la-sum > div:nth-child(n+3) { border-top: 1px solid var(--ngc-line); }
  .ngc .la-ba { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ngc .la-ar { width: 18px; height: 18px; transform: rotate(135deg); }
  /* 通常の価格はスマホでは出さない（ご本人の負担だけ見せる） */
  .ngc .la-tbl .la-sp { display: none; }
  .ngc .la-tbl { font-size: 15px; }
}

/* ---- 下半分（テーマ側の共通パーツ：あわせて見る・LINE・お問い合わせ・注記） ---- */
.ngc-cta { margin-top: 44px; text-align: left; }
.ngc-cta .ngc-cta-h {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ngc-ink);
}
.ngc-cta .ngc-cta-h::before {
  content: "";
  flex: none;
  width: 6px;
  height: 1.1em;
  border-radius: 3px;
  background: var(--ngc-navy);
}
.ngc-cta .ngc-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.ngc-cta .ngc-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 26px;
  border: 2px solid var(--ngc-navy);
  border-radius: 30px;
  background: #fff;
  color: var(--ngc-navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}
.ngc-cta .ngc-cta-btn:hover { background: var(--ngc-navy-tint); }

.ngc-cta .ngc-cta-line {
  background: #eaf4e6;
  border: 2px solid #3aa63a;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.ngc-cta .ngc-cta-line p { margin: 0 0 6px; }
.ngc-cta .ngc-cta-line strong { color: #1f7a1f; font-size: 20px; }
.ngc-cta .ngc-cta-consent { font-size: 13px; color: var(--ngc-muted); margin-top: 20px; line-height: 1.8; }
