/* =========================================
   初期styleリセット
========================================= */
.lout-grid.lout-breadcrumbs {
    display: none !important;
}
.lout-grid h1 {
    display: none;
    border-bottom: none;
}
.lout-grid h1:after{
    content:none;
}
.lout-grid h2,.lout-grid h3{
    border-bottom: none;
}
.lout-grid.lout-breadcrumbs {
    width: 960px;
}
.lout-followmenu {
    display: none;
}

header.lout-header.lout-grid {
    width: 960px;
}
.lout-grid {
    width: 100%;
}
.lout-footer .lout-footer-inner {
    width: 100%;
max-width: 960px;
    margin: auto;
}
.lout-hamburgerbtn{
    display: none;
}
.lout-contents {
    padding-left: 0px;
    padding-right: 0px;
}
.sp-br{
    display: none;
}

.css-1r2yhgy.evf3f5610{
    display: none;
}

@media (min-width: 768px) {
.pc-br{
    display: none;
}
}



/* --------------------------------------------------------------------------
   0. WordPress テーマリセット（追加CSSに貼る場合はこのブロックのみ先頭へ）
   -------------------------------------------------------------------------- */
.lout-grid {
  width: 100%;
}
.lout-contents {
  padding-left: 0px;
  padding-right: 0px;
}
.lout-grid h1 {
  display: none;
  border-bottom: none;
}
.lout-grid h1:after {
  content: none;
}
.lout-grid h2,
.lout-grid h3 {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   1. デザイントークン
   -------------------------------------------------------------------------- */
#custom-lp-wrapper {
  /* 色 */
  --heya: #1779A1;         /* 部屋色: 世界観の全面色 */
  --heya-fukai: #0E5E7E;   /* 部屋色の深: hover・強調 */
  --heya-awai: #E7F3F8;    /* 部屋色の淡: チップ・選択面 */
  --shiro: #FFFFFF;        /* 機能ページの地 */
  --ink: #1A1A1A;          /* 見出し・ナビ */
  --ink-usui: #6A6F7E;     /* サブテキスト */
  --sign: #E0432F;         /* サイン赤: 損失数値・資料請求タブ・追従CTAのみ */
  --lg-rent: #FBE4E4;      /* 凡例: 賃貸のお金 */
  --lg-rent-txt: #B23A2E;
  --lg-own: #DCEFDF;       /* 凡例: 持ち家のお金 */
  --lg-own-txt: #2E7D4F;
  --usuji: #F2F6F8;        /* 白ページ内の薄地 */
  --keisen: #DFE8ED;       /* 罫線 */
  --hairline: rgba(26, 26, 26, 0.14);

  /* 書体: EN大見出し=Jost / JP見出し=ZKGN / 本文=Noto */
  --font-en: "Jost", "Zen Kaku Gothic New", sans-serif;
  --font-head: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --content: 1080px;
  --radius: 16px;
  --nav-h: 54px;

  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--shiro);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* --------------------------------------------------------------------------
   2. wpautop 必須リセット・ベース
   -------------------------------------------------------------------------- */
#custom-lp-wrapper,
#custom-lp-wrapper *,
#custom-lp-wrapper *::before,
#custom-lp-wrapper *::after {
  box-sizing: border-box;
}
#custom-lp-wrapper p:empty {
  display: none !important;
}
#custom-lp-wrapper p {
  margin-top: 0;
  margin-bottom: 0;
}
#custom-lp-wrapper h1,
#custom-lp-wrapper h2,
#custom-lp-wrapper h3,
#custom-lp-wrapper h4 {
  display: block !important;
  visibility: visible !important;
  margin: 0;
  padding: 0;
  font-weight: normal;
  border: none;
  background: none;
}
#custom-lp-wrapper h2::after,
#custom-lp-wrapper h3::after {
  content: none;
}
#custom-lp-wrapper img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  display: block;
  border: none;
}
#custom-lp-wrapper figure {
  margin: 0;
  position: relative;
}
#custom-lp-wrapper ul,
#custom-lp-wrapper dl,
#custom-lp-wrapper dd {
  margin: 0;
  padding: 0;
  list-style: none;
}
#custom-lp-wrapper a {
  text-decoration: none;
  color: inherit;
}
#custom-lp-wrapper em,
#custom-lp-wrapper i {
  font-style: normal;
}
#custom-lp-wrapper button {
  font-family: inherit;
  cursor: pointer;
}
#custom-lp-wrapper a:focus-visible,
#custom-lp-wrapper label:focus-visible,
#custom-lp-wrapper button:focus-visible {
  outline: 3px solid var(--heya);
  outline-offset: 3px;
}
#custom-lp-wrapper .md-form {
  margin: 0;
  padding: 0;
}

/* 見出しの孤立文字回避（対応ブラウザのみ） */
#custom-lp-wrapper .of-primary-title,
#custom-lp-wrapper .of-heading,
#custom-lp-wrapper .sr-set-title,
#custom-lp-wrapper .sr-util-title,
#custom-lp-wrapper .prop-title {
  text-wrap: balance;
}
#custom-lp-wrapper .sp-br {
  display: none;
}
#custom-lp-wrapper .nb {
  display: inline-block;
  white-space: nowrap;
}

/* 写真共通・仮画像ラベル */
#custom-lp-wrapper .fv-photo img,
#custom-lp-wrapper .prop-fig img,
#custom-lp-wrapper .tr-photo img,
#custom-lp-wrapper .of-fig img {
  width: 100%;
  filter: saturate(1.02) contrast(1.02);
}
#custom-lp-wrapper .ph-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--ink-usui);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--keisen);
  border-radius: 6px;
  padding: 3px 8px;
  max-width: calc(100% - 20px);
}

/* radio本体は不可視（labelで操作） */
#custom-lp-wrapper .qz-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  pointer-events: none;
}

/* ==========================================================================
   3. 常設タブナビ（デジタルカタログUI）
   ========================================================================== */
#custom-lp-wrapper .nv {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--shiro);
  border-bottom: 1px solid var(--keisen);
}
#custom-lp-wrapper .nv-inner {
  max-width: var(--content);
  margin: 0 auto;
  min-height: var(--nav-h);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
#custom-lp-wrapper .nv-logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.08em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
#custom-lp-wrapper .nv-logo span {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--ink-usui);
}
#custom-lp-wrapper .nv-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}
#custom-lp-wrapper .nv-tabs a {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}
#custom-lp-wrapper .nv-tabs a:hover {
  background: var(--ink);
  color: #fff;
}
#custom-lp-wrapper .nv-tabs a.nv-cv {
  background: var(--sign);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 7px 16px;
  border-radius: 999px;
  margin-left: 6px;
}
#custom-lp-wrapper .nv-tabs a.nv-cv:hover {
  background: #C33625;
}

/* ==========================================================================
   4. FV — 部屋色の世界観ページ（センター構成）
   ========================================================================== */
#custom-lp-wrapper .fv {
  background: var(--heya);
  color: #fff;
  padding: clamp(52px, 8vw, 84px) 24px clamp(64px, 9vw, 96px);
  overflow: hidden;
}
#custom-lp-wrapper .fv-inner {
  max-width: 1080px;
  margin: 0 auto;
}
#custom-lp-wrapper .fv-doc {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
#custom-lp-wrapper .fv-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
}
#custom-lp-wrapper .fv-brand::before,
#custom-lp-wrapper .fv-brand::after {
  content: "";
  width: 26px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.5);
  flex: 0 0 26px;
}
#custom-lp-wrapper .fv-en {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(14px, 1.8vw, 17px);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
}
#custom-lp-wrapper .fv-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 1.34;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 1;
  color: #fff;
}
#custom-lp-wrapper .fv-title em {
  display: inline-block;
  background: linear-gradient(transparent 80%, rgba(255, 255, 255, 0.38) 80%);
}
#custom-lp-wrapper .prt {
  display: inline-block;
  animation: md-rise 0.7s cubic-bezier(0.22, 0.7, 0.3, 1) both;
}
#custom-lp-wrapper .prt-1 { animation-delay: 0.1s; }
#custom-lp-wrapper .prt-2 { animation-delay: 0.24s; }
@keyframes md-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
#custom-lp-wrapper .fv-lead {
  margin: clamp(16px, 2.6vw, 24px) auto 0;
  font-size: clamp(14.5px, 1.6vw, 16px);
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.92);
  max-width: 36em;
}
#custom-lp-wrapper .fv-lead b {
  font-weight: 700;
  color: #fff;
  background: linear-gradient(transparent 76%, rgba(255, 255, 255, 0.32) 76%);
}
#custom-lp-wrapper .fv-assure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: clamp(18px, 2.8vw, 26px);
}
#custom-lp-wrapper .fv-assure li {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
}
#custom-lp-wrapper .fv-assure li::before {
  content: "✓";
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border-radius: 50%;
  background: #fff;
  color: var(--heya);
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}
#custom-lp-wrapper .fv-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(26px, 4vw, 36px);
  min-height: 64px;
  padding: 14px 52px;
  background: #fff;
  color: var(--heya-fukai);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.12em;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(26, 26, 40, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#custom-lp-wrapper .fv-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(26, 26, 40, 0.34);
}

/* FV: 白フレーム写真 + 引き出しタグ（シグネチャー） */
#custom-lp-wrapper .fv-visual {
  position: relative;
  max-width: 1000px;
  margin: clamp(34px, 5vw, 52px) auto 0;
  padding-bottom: 30px;
}
#custom-lp-wrapper .fv-photo {
  border: 8px solid #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(26, 26, 40, 0.3);
}
#custom-lp-wrapper .fv-photo img {
  aspect-ratio: 21 / 10;
  object-fit: cover;
}
#custom-lp-wrapper .fv-photo-chip {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 5px 14px;
}
#custom-lp-wrapper .fv-photo .ph-label {
  left: auto;
  right: 18px;
  bottom: 18px;
}
/* 引き出しタグ */
#custom-lp-wrapper .fv-tag {
  position: absolute;
  right: clamp(18px, 4vw, 44px);
  bottom: -6px;
  z-index: 3;
  background: #fff;
  border-radius: 12px;
  padding: 10px 18px 11px;
  box-shadow: 0 14px 30px rgba(26, 26, 40, 0.3);
  text-align: left;
  animation: md-pop 0.55s cubic-bezier(0.3, 1.5, 0.4, 1) 0.85s both;
  transform-origin: 30% 120%;
}
#custom-lp-wrapper .fv-tag::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 30px;
  width: 2px;
  height: 18px;
  background: #fff;
}
@keyframes md-pop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
#custom-lp-wrapper .fv-tag-l {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-usui);
  letter-spacing: 0.04em;
  line-height: 1.5;
}
#custom-lp-wrapper .fv-tag-v {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
}
#custom-lp-wrapper .fv-tag-v b {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 24px;
  color: var(--sign);
  margin-left: 4px;
  letter-spacing: 0;
}

/* ==========================================================================
   5. POINTS FOR YOU（要約ストリップ）
   ========================================================================== */
#custom-lp-wrapper .pt {
  background: var(--shiro);
  border-bottom: 1px solid var(--keisen);
  padding: clamp(22px, 3.4vw, 30px) 20px;
}
#custom-lp-wrapper .pt-inner {
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}
#custom-lp-wrapper .pt-head {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.22em;
  flex: 0 0 auto;
}
#custom-lp-wrapper .pt-head span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-usui);
}
#custom-lp-wrapper .pt-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  flex: 1;
}
#custom-lp-wrapper .pt-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
#custom-lp-wrapper .pt-no {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 26px;
  color: var(--heya);
  line-height: 1;
  flex: 0 0 auto;
}
#custom-lp-wrapper .pt-tx {
  font-size: 11.5px;
  color: var(--ink-usui);
  line-height: 1.6;
}
#custom-lp-wrapper .pt-tx b {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   6. 診断パート（白地・機能ページ）
   ========================================================================== */
#custom-lp-wrapper .qz {
  padding: clamp(40px, 6.4vw, 68px) 20px clamp(56px, 8vw, 88px);
  background: var(--usuji);
  scroll-margin-top: calc(var(--nav-h) + 6px);
}
#custom-lp-wrapper .qz-inner {
  max-width: 640px;
  margin: 0 auto;
}

/* 進捗 */
#custom-lp-wrapper .qz-progress {
  position: sticky;
  top: var(--nav-h);
  z-index: 20;
  background: var(--usuji);
  box-shadow: 0 6px 12px -8px rgba(26, 26, 40, 0.16);
  border-radius: 0 0 12px 12px;
  padding: 14px 10px 10px;
  margin-bottom: 6px;
}
#custom-lp-wrapper .qz-progress-bar {
  height: 8px;
  background: var(--keisen);
  border-radius: 999px;
  overflow: hidden;
}
#custom-lp-wrapper .qz-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--heya);
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.22, 0.7, 0.3, 1);
}
#custom-lp-wrapper .qz-progress-txt {
  margin-top: 8px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-usui);
  text-align: right;
}
#custom-lp-wrapper .pg-t { display: none; }
#custom-lp-wrapper .pg-t0 { display: inline; }

#custom-lp-wrapper:has(input[name="sq1"]:checked) .qz-progress-fill { width: 20%; }
#custom-lp-wrapper:has(input[name="sq2"]:checked) .qz-progress-fill { width: 40%; }
#custom-lp-wrapper:has(input[name="sq3"]:checked) .qz-progress-fill { width: 60%; }
#custom-lp-wrapper:has(input[name="sq4"]:checked) .qz-progress-fill { width: 80%; }
#custom-lp-wrapper:has(input[name="sq5"]:checked) .qz-progress-fill { width: 100%; }

#custom-lp-wrapper:has(input[name="sq1"]:checked) .pg-t0 { display: none; }
#custom-lp-wrapper:has(input[name="sq1"]:checked) .pg-t1 { display: inline; }
#custom-lp-wrapper:has(input[name="sq2"]:checked) .pg-t1 { display: none; }
#custom-lp-wrapper:has(input[name="sq2"]:checked) .pg-t2 { display: inline; }
#custom-lp-wrapper:has(input[name="sq3"]:checked) .pg-t2 { display: none; }
#custom-lp-wrapper:has(input[name="sq3"]:checked) .pg-t3 { display: inline; }
#custom-lp-wrapper:has(input[name="sq4"]:checked) .pg-t3 { display: none; }
#custom-lp-wrapper:has(input[name="sq4"]:checked) .pg-t4 { display: inline; }
#custom-lp-wrapper:has(input[name="sq5"]:checked) .pg-t4 { display: none; }
#custom-lp-wrapper:has(input[name="sq5"]:checked) .pg-t5 { display: inline; color: var(--heya); }

/* 設問カード */
#custom-lp-wrapper .qb,
#custom-lp-wrapper .sr {
  scroll-margin-top: calc(var(--nav-h) + 84px);
}
#custom-lp-wrapper .qb {
  background: var(--shiro);
  border: 1px solid var(--keisen);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 34px) clamp(20px, 3.4vw, 32px) clamp(26px, 4vw, 34px);
  box-shadow: 0 6px 18px rgba(26, 26, 40, 0.05);
  margin-top: 18px;
}
#custom-lp-wrapper .qb--2,
#custom-lp-wrapper .qb--3,
#custom-lp-wrapper .qb--4,
#custom-lp-wrapper .qb--5 {
  display: none;
}
#custom-lp-wrapper:has(input[name="sq1"]:checked) .qb--2,
#custom-lp-wrapper:has(input[name="sq2"]:checked) .qb--3,
#custom-lp-wrapper:has(input[name="sq3"]:checked) .qb--4,
#custom-lp-wrapper:has(input[name="sq4"]:checked) .qb--5 {
  display: block;
  animation: md-rise 0.45s cubic-bezier(0.22, 0.7, 0.3, 1) both;
}
#custom-lp-wrapper .qb-num {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--heya);
}
#custom-lp-wrapper .qb-num::before {
  content: "▶ ";
  font-size: 10px;
}
#custom-lp-wrapper .qb-num-total {
  color: var(--ink-usui);
  font-size: 11px;
}
#custom-lp-wrapper .qb-q {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(19px, 3vw, 23px);
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-top: 4px;
}
#custom-lp-wrapper .qb-note {
  font-size: 12.5px;
  color: var(--ink-usui);
  margin-top: 4px;
}
#custom-lp-wrapper .qb-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
#custom-lp-wrapper .qb-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 12px 18px;
  background: var(--usuji);
  border: 1.5px solid var(--keisen);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
#custom-lp-wrapper .qb-opt:hover {
  border-color: var(--heya);
  background: var(--heya-awai);
}
#custom-lp-wrapper .qb-opt:active {
  transform: scale(0.985);
}
#custom-lp-wrapper .qb-opt-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 2px solid #C2D2DA;
  border-radius: 50%;
  background: #fff;
  position: relative;
  transition: border-color 0.2s ease;
}
#custom-lp-wrapper .qb-opt-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--heya);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* 選択状態: 圧縮HTMLでは input+label が隣接するため隣接セレクタが最短経路 */
#custom-lp-wrapper .qz-radio:checked + .qb-opt {
  border-color: var(--heya);
  background: var(--heya-awai);
  font-weight: 700;
}
#custom-lp-wrapper .qz-radio:checked + .qb-opt .qb-opt-mark {
  border-color: var(--heya);
}
#custom-lp-wrapper .qz-radio:checked + .qb-opt .qb-opt-mark::after {
  opacity: 1;
  transform: scale(1);
}

/* 選択状態（input と label は for/id 対応・冗長フォールバック） */
#custom-lp-wrapper:has(#sq1-a:checked) .qb-opt[for="sq1-a"],
#custom-lp-wrapper:has(#sq1-b:checked) .qb-opt[for="sq1-b"],
#custom-lp-wrapper:has(#sq1-c:checked) .qb-opt[for="sq1-c"],
#custom-lp-wrapper:has(#sq1-d:checked) .qb-opt[for="sq1-d"],
#custom-lp-wrapper:has(#sq2-a:checked) .qb-opt[for="sq2-a"],
#custom-lp-wrapper:has(#sq2-b:checked) .qb-opt[for="sq2-b"],
#custom-lp-wrapper:has(#sq2-c:checked) .qb-opt[for="sq2-c"],
#custom-lp-wrapper:has(#sq2-d:checked) .qb-opt[for="sq2-d"],
#custom-lp-wrapper:has(#sq3-a:checked) .qb-opt[for="sq3-a"],
#custom-lp-wrapper:has(#sq3-b:checked) .qb-opt[for="sq3-b"],
#custom-lp-wrapper:has(#sq3-c:checked) .qb-opt[for="sq3-c"],
#custom-lp-wrapper:has(#sq3-d:checked) .qb-opt[for="sq3-d"],
#custom-lp-wrapper:has(#sq4-a:checked) .qb-opt[for="sq4-a"],
#custom-lp-wrapper:has(#sq4-b:checked) .qb-opt[for="sq4-b"],
#custom-lp-wrapper:has(#sq4-c:checked) .qb-opt[for="sq4-c"],
#custom-lp-wrapper:has(#sq4-d:checked) .qb-opt[for="sq4-d"],
#custom-lp-wrapper:has(#sq5-a:checked) .qb-opt[for="sq5-a"],
#custom-lp-wrapper:has(#sq5-b:checked) .qb-opt[for="sq5-b"],
#custom-lp-wrapper:has(#sq5-c:checked) .qb-opt[for="sq5-c"] {
  border-color: var(--heya);
  background: var(--heya-awai);
  font-weight: 700;
}
#custom-lp-wrapper:has(#sq1-a:checked) .qb-opt[for="sq1-a"] .qb-opt-mark,
#custom-lp-wrapper:has(#sq1-b:checked) .qb-opt[for="sq1-b"] .qb-opt-mark,
#custom-lp-wrapper:has(#sq1-c:checked) .qb-opt[for="sq1-c"] .qb-opt-mark,
#custom-lp-wrapper:has(#sq1-d:checked) .qb-opt[for="sq1-d"] .qb-opt-mark,
#custom-lp-wrapper:has(#sq2-a:checked) .qb-opt[for="sq2-a"] .qb-opt-mark,
#custom-lp-wrapper:has(#sq2-b:checked) .qb-opt[for="sq2-b"] .qb-opt-mark,
#custom-lp-wrapper:has(#sq2-c:checked) .qb-opt[for="sq2-c"] .qb-opt-mark,
#custom-lp-wrapper:has(#sq2-d:checked) .qb-opt[for="sq2-d"] .qb-opt-mark,
#custom-lp-wrapper:has(#sq3-a:checked) .qb-opt[for="sq3-a"] .qb-opt-mark,
#custom-lp-wrapper:has(#sq3-b:checked) .qb-opt[for="sq3-b"] .qb-opt-mark,
#custom-lp-wrapper:has(#sq3-c:checked) .qb-opt[for="sq3-c"] .qb-opt-mark,
#custom-lp-wrapper:has(#sq3-d:checked) .qb-opt[for="sq3-d"] .qb-opt-mark,
#custom-lp-wrapper:has(#sq4-a:checked) .qb-opt[for="sq4-a"] .qb-opt-mark,
#custom-lp-wrapper:has(#sq4-b:checked) .qb-opt[for="sq4-b"] .qb-opt-mark,
#custom-lp-wrapper:has(#sq4-c:checked) .qb-opt[for="sq4-c"] .qb-opt-mark,
#custom-lp-wrapper:has(#sq4-d:checked) .qb-opt[for="sq4-d"] .qb-opt-mark,
#custom-lp-wrapper:has(#sq5-a:checked) .qb-opt[for="sq5-a"] .qb-opt-mark,
#custom-lp-wrapper:has(#sq5-b:checked) .qb-opt[for="sq5-b"] .qb-opt-mark,
#custom-lp-wrapper:has(#sq5-c:checked) .qb-opt[for="sq5-c"] .qb-opt-mark {
  border-color: var(--heya);
}
#custom-lp-wrapper:has(#sq1-a:checked) .qb-opt[for="sq1-a"] .qb-opt-mark::after,
#custom-lp-wrapper:has(#sq1-b:checked) .qb-opt[for="sq1-b"] .qb-opt-mark::after,
#custom-lp-wrapper:has(#sq1-c:checked) .qb-opt[for="sq1-c"] .qb-opt-mark::after,
#custom-lp-wrapper:has(#sq1-d:checked) .qb-opt[for="sq1-d"] .qb-opt-mark::after,
#custom-lp-wrapper:has(#sq2-a:checked) .qb-opt[for="sq2-a"] .qb-opt-mark::after,
#custom-lp-wrapper:has(#sq2-b:checked) .qb-opt[for="sq2-b"] .qb-opt-mark::after,
#custom-lp-wrapper:has(#sq2-c:checked) .qb-opt[for="sq2-c"] .qb-opt-mark::after,
#custom-lp-wrapper:has(#sq2-d:checked) .qb-opt[for="sq2-d"] .qb-opt-mark::after,
#custom-lp-wrapper:has(#sq3-a:checked) .qb-opt[for="sq3-a"] .qb-opt-mark::after,
#custom-lp-wrapper:has(#sq3-b:checked) .qb-opt[for="sq3-b"] .qb-opt-mark::after,
#custom-lp-wrapper:has(#sq3-c:checked) .qb-opt[for="sq3-c"] .qb-opt-mark::after,
#custom-lp-wrapper:has(#sq3-d:checked) .qb-opt[for="sq3-d"] .qb-opt-mark::after,
#custom-lp-wrapper:has(#sq4-a:checked) .qb-opt[for="sq4-a"] .qb-opt-mark::after,
#custom-lp-wrapper:has(#sq4-b:checked) .qb-opt[for="sq4-b"] .qb-opt-mark::after,
#custom-lp-wrapper:has(#sq4-c:checked) .qb-opt[for="sq4-c"] .qb-opt-mark::after,
#custom-lp-wrapper:has(#sq4-d:checked) .qb-opt[for="sq4-d"] .qb-opt-mark::after,
#custom-lp-wrapper:has(#sq5-a:checked) .qb-opt[for="sq5-a"] .qb-opt-mark::after,
#custom-lp-wrapper:has(#sq5-b:checked) .qb-opt[for="sq5-b"] .qb-opt-mark::after,
#custom-lp-wrapper:has(#sq5-c:checked) .qb-opt[for="sq5-c"] .qb-opt-mark::after {
  opacity: 1;
  transform: scale(1);
}

/* 結果ゲート */
#custom-lp-wrapper .qz-gate {
  display: none;
  text-align: center;
  margin-top: 32px;
}
#custom-lp-wrapper:has(input[name="sq1"]:checked):has(input[name="sq2"]:checked):has(input[name="sq3"]:checked):has(input[name="sq4"]:checked):has(input[name="sq5"]:checked) .qz-gate {
  display: block;
  animation: md-rise 0.5s cubic-bezier(0.22, 0.7, 0.3, 1) both;
}
#custom-lp-wrapper .qz-gate-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: min(100%, 460px);
  min-height: 76px;
  padding: 14px 32px;
  background: var(--heya);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.14em;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(14, 94, 126, 0.32);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
#custom-lp-wrapper .qz-gate-btn:hover {
  background: var(--heya-fukai);
  transform: translateY(-2px);
}
#custom-lp-wrapper .qz-gate-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  opacity: 0.85;
}

/* ==========================================================================
   7. 結果 — カタログのスペック表（凡例色で分からせる）
   ========================================================================== */
#custom-lp-wrapper .sr {
  display: none;
}
#custom-lp-wrapper:has(input[name="sq1"]:checked):has(input[name="sq2"]:checked):has(input[name="sq3"]:checked):has(input[name="sq4"]:checked):has(input[name="sq5"]:checked) .sr {
  display: block;
}
#custom-lp-wrapper .sr {
  background: var(--shiro);
  padding: clamp(44px, 6.6vw, 72px) 20px clamp(56px, 8vw, 88px);
}
#custom-lp-wrapper .sr-inner {
  max-width: 760px;
  margin: 0 auto;
}

/* 出し分けフラグメント: 初期非表示 */
#custom-lp-wrapper .sr-type,
#custom-lp-wrapper .v-q1,
#custom-lp-wrapper .v-q2,
#custom-lp-wrapper .v-loss,
#custom-lp-wrapper .v-ten,
#custom-lp-wrapper .v-loan,
#custom-lp-wrapper .v-band,
#custom-lp-wrapper .v-fit,
#custom-lp-wrapper .v-ans,
#custom-lp-wrapper .v-hojo,
#custom-lp-wrapper .sr-util {
  display: none;
}

/* A. タイプ名（部屋色バンド＋引き出しタグ） */
#custom-lp-wrapper:has(#sq5-a:checked) .v-type-a { display: block; }
#custom-lp-wrapper:has(#sq5-b:checked) .v-type-b { display: block; }
#custom-lp-wrapper:has(#sq5-c:checked) .v-type-c { display: block; }
#custom-lp-wrapper .sr-type {
  position: relative;
  text-align: center;
  background: var(--heya);
  color: #fff;
  border-radius: 20px;
  padding: clamp(34px, 5vw, 46px) 24px clamp(28px, 4.4vw, 38px);
  margin-bottom: clamp(26px, 4vw, 36px);
}
#custom-lp-wrapper .sr-type-eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--ink);
  background: #fff;
  border-radius: 999px;
  padding: 5px 18px;
}
#custom-lp-wrapper .sr-type-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(27px, 5.2vw, 40px);
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin-top: 14px;
  color: #fff;
}
#custom-lp-wrapper .sr-type-name span {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.56em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin-left: 4px;
}
#custom-lp-wrapper .sr-type-sub {
  margin-top: 8px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.92);
}

/* 凡例 */
#custom-lp-wrapper .sr-legend {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}
#custom-lp-wrapper .lg {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 6px;
  padding: 3px 10px;
}
#custom-lp-wrapper .lg-rent {
  background: var(--lg-rent);
  color: var(--lg-rent-txt);
}
#custom-lp-wrapper .lg-own {
  background: var(--lg-own);
  color: var(--lg-own-txt);
}

/* スペック表カード */
#custom-lp-wrapper .sheet {
  background: var(--shiro);
  border: 1px solid var(--keisen);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px) clamp(20px, 4vw, 36px) clamp(20px, 3.4vw, 28px);
  box-shadow: 0 10px 28px rgba(26, 26, 40, 0.07);
  position: relative;
}
#custom-lp-wrapper .sheet-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 2px 12px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 4px;
}
#custom-lp-wrapper .sheet-head-en {
  grid-column: 1;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--heya);
}
#custom-lp-wrapper .sheet--future .sheet-head-en {
  color: var(--lg-own-txt);
}
#custom-lp-wrapper .sheet-head-jp {
  grid-column: 1;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(18px, 3vw, 22px);
  letter-spacing: 0.06em;
}
#custom-lp-wrapper .sheet-head-date {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--ink-usui);
}
#custom-lp-wrapper .sheet-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--keisen);
}
#custom-lp-wrapper .sheet-row dt {
  font-size: 13.5px;
  font-weight: 500;
  color: #454A57;
  letter-spacing: 0.05em;
}
#custom-lp-wrapper .sheet-row dd {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  text-align: right;
}
#custom-lp-wrapper .sheet-row-caption {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-usui);
  margin-left: 6px;
}
/* 合計行 = 凡例色（賃貸ピンク） */
#custom-lp-wrapper .sheet-row--total {
  flex-wrap: wrap;
  background: var(--lg-rent);
  border-bottom: none;
  border-radius: 10px;
  margin: 10px -8px 4px;
  padding: 16px 14px;
}
#custom-lp-wrapper .sheet-row--total dt {
  font-weight: 700;
  color: var(--ink);
}
#custom-lp-wrapper .sheet-row dd.sheet-amount {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(42px, 9vw, 62px);
  line-height: 1.05;
  color: var(--sign);
  letter-spacing: 0;
}
#custom-lp-wrapper .sheet-amount i {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.4em;
  margin-left: 3px;
  letter-spacing: 0.06em;
}
#custom-lp-wrapper .sheet-row--zero {
  background: var(--lg-rent);
  border-bottom: none;
  border-radius: 10px;
  margin: 0 -8px;
  padding: 12px 14px;
}
#custom-lp-wrapper .sheet-row--zero dd.sheet-zero {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(24px, 4.6vw, 32px);
  color: var(--sign);
}
#custom-lp-wrapper .sheet-row--future {
  border-bottom: none;
}
#custom-lp-wrapper .sheet-row--future dd {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--sign);
}
/* 未来の表 = 凡例色（持ち家グリーン） */
#custom-lp-wrapper .sheet--future .sheet-row--total {
  background: var(--lg-own);
}
#custom-lp-wrapper .sheet--future .sheet-row dd.sheet-amount--green {
  color: var(--lg-own-txt);
  font-size: clamp(28px, 6vw, 42px);
}
#custom-lp-wrapper .sheet-row--asset {
  border-bottom: none;
}
#custom-lp-wrapper .sheet-row dd.sheet-asset {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(19px, 3.6vw, 24px);
  color: var(--lg-own-txt);
}
#custom-lp-wrapper .sheet-note {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--ink-usui);
}
#custom-lp-wrapper .sheet-band-copy {
  margin-top: 16px;
  border-top: 1px solid var(--keisen);
  padding-top: 16px;
}
#custom-lp-wrapper .sheet-band-copy p {
  font-size: 14.5px;
  line-height: 2.0;
  color: #454A57;
}
#custom-lp-wrapper .sheet-band-ref {
  display: block;
  font-size: 11px;
  color: var(--ink-usui);
  margin-top: 4px;
}

/* B/C/D 値の出し分け */
#custom-lp-wrapper:has(#sq1-a:checked) .v-q1-a,
#custom-lp-wrapper:has(#sq1-b:checked) .v-q1-b,
#custom-lp-wrapper:has(#sq1-c:checked) .v-q1-c,
#custom-lp-wrapper:has(#sq1-d:checked) .v-q1-d,
#custom-lp-wrapper:has(#sq2-a:checked) .v-q2-a,
#custom-lp-wrapper:has(#sq2-b:checked) .v-q2-b,
#custom-lp-wrapper:has(#sq2-c:checked) .v-q2-c,
#custom-lp-wrapper:has(#sq2-d:checked) .v-q2-d,
#custom-lp-wrapper:has(#sq1-a:checked) .v-ten-a,
#custom-lp-wrapper:has(#sq1-b:checked) .v-ten-b,
#custom-lp-wrapper:has(#sq1-c:checked) .v-ten-c,
#custom-lp-wrapper:has(#sq1-d:checked) .v-ten-d,
#custom-lp-wrapper:has(#sq1-a:checked) .v-loan-a,
#custom-lp-wrapper:has(#sq1-b:checked) .v-loan-b,
#custom-lp-wrapper:has(#sq1-c:checked) .v-loan-c,
#custom-lp-wrapper:has(#sq1-d:checked) .v-loan-d {
  display: inline;
}
#custom-lp-wrapper:has(#sq1-a:checked) .v-band-a,
#custom-lp-wrapper:has(#sq1-b:checked) .v-band-b,
#custom-lp-wrapper:has(#sq1-c:checked) .v-band-c,
#custom-lp-wrapper:has(#sq1-d:checked) .v-band-d {
  display: block;
}

/* 損失16通り */
#custom-lp-wrapper:has(#sq1-a:checked):has(#sq2-a:checked) .v-loss-aa,
#custom-lp-wrapper:has(#sq1-a:checked):has(#sq2-b:checked) .v-loss-ab,
#custom-lp-wrapper:has(#sq1-a:checked):has(#sq2-c:checked) .v-loss-ac,
#custom-lp-wrapper:has(#sq1-a:checked):has(#sq2-d:checked) .v-loss-ad,
#custom-lp-wrapper:has(#sq1-b:checked):has(#sq2-a:checked) .v-loss-ba,
#custom-lp-wrapper:has(#sq1-b:checked):has(#sq2-b:checked) .v-loss-bb,
#custom-lp-wrapper:has(#sq1-b:checked):has(#sq2-c:checked) .v-loss-bc,
#custom-lp-wrapper:has(#sq1-b:checked):has(#sq2-d:checked) .v-loss-bd,
#custom-lp-wrapper:has(#sq1-c:checked):has(#sq2-a:checked) .v-loss-ca,
#custom-lp-wrapper:has(#sq1-c:checked):has(#sq2-b:checked) .v-loss-cb,
#custom-lp-wrapper:has(#sq1-c:checked):has(#sq2-c:checked) .v-loss-cc,
#custom-lp-wrapper:has(#sq1-c:checked):has(#sq2-d:checked) .v-loss-cd,
#custom-lp-wrapper:has(#sq1-d:checked):has(#sq2-a:checked) .v-loss-da,
#custom-lp-wrapper:has(#sq1-d:checked):has(#sq2-b:checked) .v-loss-db,
#custom-lp-wrapper:has(#sq1-d:checked):has(#sq2-c:checked) .v-loss-dc,
#custom-lp-wrapper:has(#sq1-d:checked):has(#sq2-d:checked) .v-loss-dd {
  display: inline;
}

/* 明細シートの間隔 */
#custom-lp-wrapper .sheet--past {
  margin-bottom: 0;
}

/* 誠実の一文（キャッチ=グレー太字） */
#custom-lp-wrapper .sr-honest {
  padding: clamp(28px, 4.6vw, 40px) 8px;
  text-align: center;
}
#custom-lp-wrapper .sr-honest p {
  font-size: clamp(14.5px, 2vw, 16px);
  line-height: 2.3;
  color: #454A57;
}
#custom-lp-wrapper .sr-honest b {
  color: var(--ink);
  font-weight: 700;
  background: linear-gradient(transparent 75%, var(--heya-awai) 75%);
}

/* E. 光熱費（機能カードユニット: キャッチ→▶名称→本文→[設定]） */
#custom-lp-wrapper:has(#sq4-a:checked) .v-util-hot { display: block; }
#custom-lp-wrapper:has(#sq4-b:checked) .v-util-plain,
#custom-lp-wrapper:has(#sq4-c:checked) .v-util-plain,
#custom-lp-wrapper:has(#sq4-d:checked) .v-util-plain { display: block; }
#custom-lp-wrapper .sr-util {
  margin-top: 20px;
  background: var(--usuji);
  border: 1px solid var(--keisen);
  border-radius: var(--radius);
  padding: clamp(22px, 3.6vw, 30px) clamp(20px, 3.6vw, 32px);
}
#custom-lp-wrapper .sr-util-label {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--heya);
}
#custom-lp-wrapper .sr-util-label::before {
  content: "▶ ";
  font-size: 9px;
}
#custom-lp-wrapper .sr-util-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(17px, 2.8vw, 21px);
  line-height: 1.65;
  letter-spacing: 0.04em;
  margin-top: 8px;
}
#custom-lp-wrapper .sr-util-title em {
  color: var(--heya-fukai);
}
#custom-lp-wrapper .sr-util-body {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 2.0;
  color: #454A57;
}
#custom-lp-wrapper .sr-util-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-usui);
}

/* F/G. あなた向け提案 — 左右交互＋[設定]行でCVへ接続 */
#custom-lp-wrapper .prop {
  margin-top: clamp(40px, 6.4vw, 56px);
}
#custom-lp-wrapper .prop-head-label {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(20px, 3.4vw, 26px);
  letter-spacing: 0.22em;
  color: var(--ink);
}
#custom-lp-wrapper .prop-head-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink-usui);
  margin-top: 2px;
}
#custom-lp-wrapper .prop-head-note {
  font-size: 12px;
  color: var(--ink-usui);
  margin-top: 6px;
}
#custom-lp-wrapper .prop-row {
  grid-template-columns: 4fr 8fr;
  gap: clamp(20px, 3.6vw, 40px);
  align-items: center;
  padding: clamp(24px, 4vw, 34px) 0;
  border-top: 1px solid var(--keisen);
  margin-top: 14px;
}
#custom-lp-wrapper .prop-row--rev {
  grid-template-columns: 8fr 4fr;
}
#custom-lp-wrapper:has(#sq3-a:checked) .v-fit-a,
#custom-lp-wrapper:has(#sq3-b:checked) .v-fit-b,
#custom-lp-wrapper:has(#sq3-c:checked) .v-fit-c,
#custom-lp-wrapper:has(#sq3-d:checked) .v-fit-d,
#custom-lp-wrapper:has(#sq4-a:checked) .v-ans-a,
#custom-lp-wrapper:has(#sq4-b:checked) .v-ans-b,
#custom-lp-wrapper:has(#sq4-c:checked) .v-ans-c,
#custom-lp-wrapper:has(#sq4-d:checked) .v-ans-d {
  display: grid;
}
#custom-lp-wrapper .prop-fig {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(26, 26, 40, 0.1);
}
#custom-lp-wrapper .prop-fig img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 0.7, 0.3, 1);
}
#custom-lp-wrapper .prop-row:hover .prop-fig img {
  transform: scale(1.03);
}
#custom-lp-wrapper .prop-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-usui);
  background: var(--usuji);
  border: 1px solid var(--keisen);
  border-radius: 999px;
  padding: 3px 12px;
}
#custom-lp-wrapper .prop-chip--ans {
  color: var(--heya-fukai);
  background: var(--heya-awai);
  border-color: #C9E0EA;
}
#custom-lp-wrapper .prop-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(18px, 3vw, 22px);
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin-top: 12px;
}
#custom-lp-wrapper .prop-body {
  margin-top: 8px;
  font-size: 14px;
  line-height: 2.0;
  color: #454A57;
}
/* [設定]行: 実例の所在=無料資料（CV接続） */
#custom-lp-wrapper .prop-txt::after {
  content: "[ 実例は無料資料「参考プラン集」に収録 ]";
  display: block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-usui);
}

/* H. スターターセット予告 — 部屋色の色面ページ（診断→資料請求の橋） */
#custom-lp-wrapper:has(#sq3-a:checked) .v-hojo-ippan { display: block; }
#custom-lp-wrapper:has(#sq3-b:checked) .v-hojo-kosodate,
#custom-lp-wrapper:has(#sq3-c:checked) .v-hojo-kosodate,
#custom-lp-wrapper:has(#sq3-d:checked) .v-hojo-kosodate { display: block; }
#custom-lp-wrapper .sr-set {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: clamp(44px, 7vw, 60px);
  background: var(--heya);
  color: #fff;
  padding: clamp(44px, 7vw, 64px) 24px;
}
#custom-lp-wrapper .sr-set-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
#custom-lp-wrapper .sr-set-eyebrow {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: rgba(255, 255, 255, 0.8);
}
#custom-lp-wrapper .sr-set-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(20px, 3.6vw, 26px);
  line-height: 1.7;
  letter-spacing: 0.05em;
  margin-top: 10px;
  color: #fff;
}
#custom-lp-wrapper .sr-set-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(18px, 3vw, 23px);
  margin-top: 12px;
  color: #fff;
}
#custom-lp-wrapper .sr-set-num span {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(56px, 10vw, 84px);
  line-height: 1;
  color: #fff;
  margin: 0 8px;
  letter-spacing: 0;
}
#custom-lp-wrapper .sr-set-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
#custom-lp-wrapper .set-chip {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--heya-fukai);
  background: #fff;
  border-radius: 999px;
  padding: 6px 16px;
}
#custom-lp-wrapper .sr-set-body {
  margin-top: 16px;
  font-size: 13px;
  line-height: 2.0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   8. 信頼（白地・数値ジャンプ）
   ========================================================================== */
#custom-lp-wrapper .tr {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--usuji);
  border-bottom: 1px solid var(--keisen);
  padding: clamp(48px, 7vw, 76px) 24px;
}
#custom-lp-wrapper .tr-inner {
  max-width: 960px;
  margin: 0 auto;
}
#custom-lp-wrapper .tr-head {
  margin-bottom: clamp(24px, 4vw, 34px);
}
#custom-lp-wrapper .tr-eyebrow {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(20px, 3.4vw, 26px);
  letter-spacing: 0.2em;
  color: var(--ink);
}
#custom-lp-wrapper .tr-heading {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(15px, 2.4vw, 18px);
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--ink-usui);
  margin-top: 4px;
}
#custom-lp-wrapper .tr-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}
#custom-lp-wrapper .tr-photo {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(26, 26, 40, 0.12);
}
#custom-lp-wrapper .tr-photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
#custom-lp-wrapper .tr-photo-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 6px 16px;
}
#custom-lp-wrapper .tr-fact {
  padding: 16px 2px;
  border-bottom: 1px solid var(--hairline);
}
#custom-lp-wrapper .tr-fact-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
}
#custom-lp-wrapper .tr-fact-num span {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 34px);
  color: var(--heya-fukai);
  letter-spacing: 0.02em;
  margin-left: 8px;
}
#custom-lp-wrapper .tr-fact-cap {
  font-size: 11.5px;
  color: var(--ink-usui);
  margin-top: 4px;
}
#custom-lp-wrapper .tr-voices {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-top: clamp(24px, 4vw, 36px);
}
#custom-lp-wrapper .tr-voice {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--shiro);
  border: 1px solid var(--keisen);
  border-radius: var(--radius);
  padding: clamp(20px, 3.4vw, 28px);
}
/* 写真なしの声: 引用符を装飾に */
#custom-lp-wrapper .tr-voice--plain {
  position: relative;
  padding-top: clamp(30px, 4.4vw, 38px);
}
#custom-lp-wrapper .tr-voice--plain::before {
  content: "“";
  position: absolute;
  top: 2px;
  left: 18px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 54px;
  line-height: 1;
  color: var(--heya-awai);
}
#custom-lp-wrapper .tr-voice-photo {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(26, 26, 40, 0.14);
  background: var(--usuji);
}
#custom-lp-wrapper .tr-voice-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#custom-lp-wrapper .tr-voice-txt {
  font-size: 14.5px;
  line-height: 2.0;
  font-weight: 500;
}
#custom-lp-wrapper .tr-voice-name {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-usui);
}

/* ==========================================================================
   9. 実例ギャラリー
   ========================================================================== */
#custom-lp-wrapper .gl {
  padding: clamp(48px, 7vw, 76px) 24px;
  background: var(--shiro);
  scroll-margin-top: var(--nav-h);
}
#custom-lp-wrapper .gl-inner {
  max-width: var(--content);
  margin: 0 auto;
}
#custom-lp-wrapper .gl-eyebrow {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(20px, 3.4vw, 26px);
  letter-spacing: 0.2em;
  color: var(--ink);
}
#custom-lp-wrapper .gl-heading {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(15px, 2.4vw, 18px);
  letter-spacing: 0.08em;
  color: var(--ink-usui);
  margin-top: 4px;
}
#custom-lp-wrapper .gl-note {
  font-size: 12px;
  color: var(--ink-usui);
  margin-top: 6px;
}
#custom-lp-wrapper .gl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: clamp(22px, 3.6vw, 32px);
  padding-bottom: 18px;
}
#custom-lp-wrapper .gl-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(26, 26, 40, 0.1);
}
#custom-lp-wrapper .gl-item:nth-of-type(even) {
  transform: translateY(16px);
}
#custom-lp-wrapper .gl-item img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
  filter: saturate(1.02) contrast(1.02);
  transition: transform 0.55s cubic-bezier(0.22, 0.7, 0.3, 1);
}
#custom-lp-wrapper .gl-item:hover img {
  transform: scale(1.03);
}
#custom-lp-wrapper .gl-cap {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--shiro);
  padding: 10px 12px 12px;
}

/* ==========================================================================
   9.5 資料請求のながれ（3ステップ・不安解消）
   ========================================================================== */
#custom-lp-wrapper .fl {
  background: var(--heya-awai);
  border-top: 1px solid var(--keisen);
  padding: clamp(24px, 3.8vw, 34px) 20px;
}
#custom-lp-wrapper .fl-inner {
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}
#custom-lp-wrapper .fl-head {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--heya-fukai);
  flex: 0 0 auto;
}
#custom-lp-wrapper .fl-head span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-usui);
}
#custom-lp-wrapper .fl-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  flex: 1;
}
#custom-lp-wrapper .fl-step {
  display: flex;
  align-items: center;
  gap: 12px;
}
#custom-lp-wrapper .fl-no {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 24px;
  color: var(--heya);
  line-height: 1;
  flex: 0 0 auto;
}
#custom-lp-wrapper .fl-tx {
  font-size: 11.5px;
  color: var(--ink-usui);
  line-height: 1.6;
}
#custom-lp-wrapper .fl-tx b {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   10. オファー（白地・CV）
   ========================================================================== */
#custom-lp-wrapper .of {
  padding: clamp(52px, 8vw, 84px) 20px clamp(40px, 6vw, 56px);
  background: var(--usuji);
  border-top: 1px solid var(--keisen);
}
#custom-lp-wrapper .of-inner {
  max-width: 760px;
  margin: 0 auto;
}
#custom-lp-wrapper .of-set {
  display: none;
}
#custom-lp-wrapper .of-set--default {
  display: block;
}
#custom-lp-wrapper:has(input[name="sq5"]:checked) .of-set--default {
  display: none;
}
#custom-lp-wrapper:has(#sq5-a:checked) .of-set--a,
#custom-lp-wrapper:has(#sq5-b:checked) .of-set--b,
#custom-lp-wrapper:has(#sq5-c:checked) .of-set--c {
  display: block;
}
#custom-lp-wrapper .of-eyebrow {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(20px, 3.4vw, 26px);
  letter-spacing: 0.22em;
  color: var(--ink);
  text-align: center;
}
#custom-lp-wrapper .of-heading {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(21px, 3.8vw, 28px);
  letter-spacing: 0.05em;
  line-height: 1.6;
  text-align: center;
  margin-top: 6px;
  margin-bottom: clamp(22px, 3.6vw, 32px);
}
#custom-lp-wrapper .of-primary {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  background: var(--shiro);
  border: 2px solid var(--heya);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(14, 94, 126, 0.14);
}
#custom-lp-wrapper .of-fig {
  min-height: 100%;
}
#custom-lp-wrapper .of-fig img {
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  aspect-ratio: auto;
}
#custom-lp-wrapper .of-primary-content {
  padding: clamp(24px, 4vw, 34px) clamp(22px, 4vw, 34px);
}
#custom-lp-wrapper .of-primary-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--heya-fukai);
  background: var(--heya-awai);
  border-radius: 999px;
  padding: 4px 16px;
}
#custom-lp-wrapper .of-primary-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(19px, 3.2vw, 23px);
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin-top: 12px;
}
#custom-lp-wrapper .of-primary-body {
  margin-top: 10px;
  font-size: 14px;
  line-height: 2.0;
  color: #454A57;
}
#custom-lp-wrapper .of-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  margin-top: 18px;
  padding: 12px 24px;
  background: var(--heya);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: 0.08em;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(14, 94, 126, 0.26);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
#custom-lp-wrapper .of-btn:hover {
  background: var(--heya-fukai);
  transform: translateY(-2px);
}
#custom-lp-wrapper .of-micro {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ink-usui);
}
#custom-lp-wrapper .of-second {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--shiro);
  border: 1px solid var(--keisen);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 24px) clamp(20px, 3.6vw, 28px);
  margin-top: 16px;
}
#custom-lp-wrapper .of-second-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
}
#custom-lp-wrapper .of-second-body {
  margin-top: 4px;
  font-size: 12.5px;
  color: #454A57;
}
#custom-lp-wrapper .of-btn--ghost {
  background: transparent;
  color: var(--heya-fukai);
  border: 2px solid var(--heya);
  box-shadow: none;
  width: auto;
  min-width: 170px;
  min-height: 52px;
  font-size: 14.5px;
  margin-top: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}
#custom-lp-wrapper .of-btn--ghost:hover {
  background: var(--heya-awai);
  color: var(--heya-fukai);
  transform: none;
  box-shadow: none;
}
#custom-lp-wrapper .of-reset {
  text-align: center;
  margin-top: clamp(30px, 5vw, 42px);
}
#custom-lp-wrapper .of-reset-btn {
  background: none;
  border: none;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-usui);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px 12px;
}
#custom-lp-wrapper .of-reset-btn:hover {
  color: var(--ink);
}

/* ==========================================================================
   11. 免責・追従CTA
   ========================================================================== */
#custom-lp-wrapper .ft {
  border-top: 1px solid var(--keisen);
  padding: 26px 24px 40px;
  background: var(--shiro);
}
#custom-lp-wrapper .ft-inner {
  max-width: 880px;
  margin: 0 auto;
}
#custom-lp-wrapper .ft-note {
  font-size: 11px;
  line-height: 2.0;
  color: var(--ink-usui);
}

/* 追従CTA: 全問回答後のみ・Q5連動（ボタンはサイン赤=唯一の赤CTA） */
#custom-lp-wrapper .sb {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--keisen);
  box-shadow: 0 -8px 24px rgba(26, 26, 40, 0.12);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  align-items: center;
  justify-content: center;
  gap: 16px;
}
#custom-lp-wrapper:has(#sq5-a:checked) .sb--a,
#custom-lp-wrapper:has(#sq5-b:checked) .sb--b,
#custom-lp-wrapper:has(#sq5-c:checked) .sb--c {
  display: flex;
  animation: md-rise 0.45s cubic-bezier(0.22, 0.7, 0.3, 1) both;
}
#custom-lp-wrapper:has(input[name="sq5"]:checked) {
  padding-bottom: 92px;
}
#custom-lp-wrapper .sb-txt {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #454A57;
}
#custom-lp-wrapper .sb-txt b {
  font-weight: 700;
  color: var(--ink);
}
#custom-lp-wrapper .sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 26px;
  background: var(--sign);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.08em;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(224, 67, 47, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
#custom-lp-wrapper .sb-btn:hover {
  background: #C33625;
  transform: translateY(-1px);
}

/* ==========================================================================
   12. レスポンシブ
   ========================================================================== */
@media (max-width: 1023px) {
  #custom-lp-wrapper .fv-photo img {
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 767px) {
  #custom-lp-wrapper .pc-br {
    display: none;
  }
  #custom-lp-wrapper .sp-br {
    display: inline;
  }
  #custom-lp-wrapper {
    --nav-h: 46px;
  }
  #custom-lp-wrapper .nv-inner {
    padding: 6px 10px;
    gap: 6px;
    justify-content: center;
    min-height: var(--nav-h);
  }
  #custom-lp-wrapper .nv-logo {
    display: none;
  }
  #custom-lp-wrapper .nv-tabs a {
    font-size: 11px;
    padding: 5px 10px;
    letter-spacing: 0.1em;
  }
  #custom-lp-wrapper .fv-brand {
    font-size: 11.5px;
    letter-spacing: 0.1em;
    gap: 8px;
  }
  #custom-lp-wrapper .fv-brand::before,
  #custom-lp-wrapper .fv-brand::after {
    width: 14px;
    flex: 0 0 14px;
  }
  #custom-lp-wrapper .fv-photo {
    border-width: 5px;
    border-radius: 14px;
  }
  #custom-lp-wrapper .fv-photo img {
    aspect-ratio: 16 / 11;
  }
  #custom-lp-wrapper .fv-visual {
    padding-bottom: 34px;
  }
  #custom-lp-wrapper .fv-tag {
    right: 12px;
  }
  #custom-lp-wrapper .pt-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  #custom-lp-wrapper .pt-items {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  #custom-lp-wrapper .sheet-head {
    display: block;
  }
  #custom-lp-wrapper .sheet-head-date {
    text-align: right;
    margin-top: 6px;
  }
  #custom-lp-wrapper .sheet-row--total {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  #custom-lp-wrapper .sheet-row--total dd {
    align-self: flex-end;
  }
  #custom-lp-wrapper .prop-row,
  #custom-lp-wrapper .prop-row--rev {
    grid-template-columns: 1fr;
  }
  #custom-lp-wrapper .prop-row--rev .prop-fig {
    order: -1;
  }
  #custom-lp-wrapper .tr-grid {
    grid-template-columns: 1fr;
  }
  #custom-lp-wrapper .tr-fact-num {
    font-size: 13px;
    line-height: 1.7;
  }
  #custom-lp-wrapper .tr-fact-num span {
    font-size: 21px;
    margin-left: 5px;
    margin-right: 3px;
  }
  #custom-lp-wrapper .tr-voices {
    grid-template-columns: 1fr;
  }
  #custom-lp-wrapper .tr-voice {
    flex-direction: column;
    align-items: flex-start;
  }
  #custom-lp-wrapper .fl-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  #custom-lp-wrapper .fl-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  #custom-lp-wrapper .gl-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  #custom-lp-wrapper .gl-item:nth-of-type(even) {
    transform: translateY(12px);
  }
  #custom-lp-wrapper .of-primary {
    grid-template-columns: 1fr;
  }
  #custom-lp-wrapper .of-fig img {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  #custom-lp-wrapper .of-btn {
    font-size: 15px;
    letter-spacing: 0.04em;
    padding-left: 14px;
    padding-right: 14px;
  }
  #custom-lp-wrapper .of-second {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  #custom-lp-wrapper .of-btn--ghost {
    width: 100%;
  }
  #custom-lp-wrapper .sb {
    gap: 10px;
  }
  #custom-lp-wrapper .sb-txt {
    font-size: 11.5px;
    line-height: 1.5;
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  #custom-lp-wrapper .prt,
  #custom-lp-wrapper .fv-tag,
  #custom-lp-wrapper .qb,
  #custom-lp-wrapper .qz-gate,
  #custom-lp-wrapper .sb {
    animation: none !important;
  }
  #custom-lp-wrapper .qz-progress-fill {
    transition: none;
  }
}
