/* URICO 共通デザインファイル（マンション詳細の全ページが読み込む）。
   2026-11-17 乾代表が確認した版：紺×金、絵文字アイコンなし、角丸小、カード全体で選択（赤）、「URICOの強み」（本番で表示される .buyer-info-explainer）を作り直し。
   ここを書き換えて、このファイル1つを上げ直すと、全国のページの見た目が変わる。 */
:root {
  --u-main: #203354;
  --u-main2: #203354;
  --u-sub: #b79755;
  --u-sub-bg: color-mix(in srgb, #b79755 10%, #ffffff);
  --u-tint: color-mix(in srgb, #203354 6%, #ffffff);
  --u-select: #d6342c;
}

/* 運営者・監修者の欄 */
.urico-operator { max-width: 1200px; margin: 2rem auto; padding: 1.25rem 1rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-sizing: border-box; }
.urico-operator__title { font-size: 1.15rem; font-weight: 700; color: #1a1a2e; margin: 0 0 1rem; }
.urico-operator__person { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.urico-operator__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.urico-operator__name { margin: 0; font-weight: 700; color: #333; }
.urico-operator__role { margin: 0.25rem 0 0; color: #555; font-size: 0.9rem; }
.urico-operator__table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.urico-operator__table th { text-align: left; padding: 0.5rem 0.75rem; background: var(--u-tint); color: #555; width: 110px; border-bottom: 1px solid #f0f0f0; font-weight: 600; }
.urico-operator__table td { padding: 0.5rem 0.75rem; color: #333; border-bottom: 1px solid #f0f0f0; }
.urico-operator__table tr:last-child th, .urico-operator__table tr:last-child td { border-bottom: none; }

/* 新テンプレート：ヘッダー直後の物件概要に上の余白を入れる */
.header + .overview-section { margin-top: 1.5rem; }

/* 配色の上書き */
.header { background: linear-gradient(135deg, var(--u-main) 0%, var(--u-main2) 100%) }
.info-banner h2 { color: var(--u-main) }
.buyer-header h3 { color: var(--u-main) }
.badge-new { background: var(--u-sub) }
.contact-btn { background: linear-gradient(135deg, var(--u-main) 0%, var(--u-main2) 100%) }
.buyer-info-explainer { border: 2px solid var(--u-sub) }
.diagram-title { border-bottom: 2px solid var(--u-sub) }
.flow-box { border: 2px solid var(--u-sub) }
.flow-box.urico { background: linear-gradient(135deg, var(--u-sub-bg) 0%, var(--u-sub-bg) 100%); border-color: var(--u-sub) }
.merit-section { background: linear-gradient(135deg, var(--u-sub-bg) 0%, var(--u-sub-bg) 100%); border-left: 4px solid var(--u-sub) }
.merit-list li:before { color: var(--u-sub) }
.buyer-supplement-modern { background: linear-gradient(135deg, color-mix(in srgb, var(--u-main) 8%, transparent) 0%, color-mix(in srgb, var(--u-main2) 8%, transparent) 100%) }
.highlight-text { color: var(--u-main) }
.highlight-text::after { background: linear-gradient(90deg, var(--u-main), var(--u-main2)) }
.supplement-subtitle strong { color: var(--u-main) }
.info-card.featured::before { background: linear-gradient(90deg, var(--u-main), var(--u-main2)) }
.flow-visual .flow-box.result { background: linear-gradient(135deg, var(--u-main) 0%, var(--u-main2) 100%) }
.flow-plus { color: var(--u-main) }
.flow-visual > .flow-arrow { color: var(--u-main) }
.overview-title { border-bottom: 3px solid var(--u-main) }
.overview-card--highlight { border-left: 4px solid var(--u-main) }
.overview-table th { background: var(--u-tint) }
.overview-section h2 { border-bottom: 2px solid var(--u-main) }
.buyers-heading { border-bottom: 2px solid var(--u-main) }
.cta-eyebrow { color: var(--u-main) }
.reviews-section h2 { border-bottom: 2px solid var(--u-main) }
.sales-section h2 { border-bottom: 2px solid var(--u-main) }
.sales-stat { background: linear-gradient(135deg,var(--u-tint) 0%,var(--u-tint) 100%) }
.sales-chart-wrap { border: 1px solid var(--u-tint) }
.sales-chart-svg circle:hover { fill: var(--u-main2) }
.sales-table th { background: linear-gradient(135deg,var(--u-tint),var(--u-tint)); border-bottom: 2px solid var(--u-main) }
.sales-table tr:hover { background: var(--u-tint) }
.faq-section h2 { border-bottom: 2px solid var(--u-main) }
.related-mansions h2 { border-bottom: 2px solid var(--u-main) }
.area-link { color: var(--u-main) }
.cg-inner h2 { border-bottom: 2px solid var(--u-sub) }
.cg-section h3 { color: var(--u-main) }
.cg-detail-item { background: var(--u-tint) }
.cg-detail-item h4 { color: var(--u-main) }
.cg-detail-item li::before { color: var(--u-main) }
.cg-source a { color: var(--u-main) }
.property-content h2 { border-bottom: 2px solid var(--u-main) }
.property-content h3 { color: var(--u-main) }
.property-content li::before { background: var(--u-main) }
.env-section { background: var(--u-tint) }

/* 購入希望者カード：カード全体がボタン。選択すると枠が変わる */
body .buyer-card { position: relative; cursor: pointer; border: 2px solid #dfe3e8; background: #fff; padding: 1.25rem 1.25rem 1.25rem 3.5rem; margin-bottom: 0; box-shadow: 0 1px 3px rgba(16,24,40,.08); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease; -webkit-tap-highlight-color: transparent; }
body .buyer-card:hover { transform: translateY(-3px); border-color: var(--u-select); box-shadow: 0 8px 22px rgba(16,24,40,.14); }
body .buyer-card:active { transform: translateY(0); }
body .buyer-card.selected, body .buyer-card:has(.buyer-checkbox:checked) { border: 2px solid var(--u-select); background: color-mix(in srgb, var(--u-select) 5%, #ffffff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--u-select) 22%, transparent); }
body .buyer-card .buyer-checkbox { -webkit-appearance: none; appearance: none; position: absolute; top: 1.2rem; left: 1rem; width: 28px; height: 28px; margin: 0; border: 2px solid #7b8794; border-radius: 6px; background: #fff center / 18px 18px no-repeat; cursor: pointer; }
body .buyer-card:hover .buyer-checkbox { border-color: var(--u-select); }
body .buyer-card .buyer-checkbox:checked { border-color: var(--u-select); background-color: var(--u-select); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
body .buyer-card .buyer-checkbox:focus-visible { outline: 3px solid color-mix(in srgb, var(--u-select) 45%, transparent); outline-offset: 2px; }
body .buyer-card::after { content: "この購入希望者を選択する"; display: block; margin-top: 1rem; padding: .7rem 1rem; text-align: center; font-size: .92rem; font-weight: 700; color: var(--u-select); border: 1.5px solid var(--u-select); border-radius: 6px; background: #fff; }
body .buyer-card.selected::after, body .buyer-card:has(.buyer-checkbox:checked)::after { content: "✓ 選択中（もう一度押すと解除）"; color: #fff; background: var(--u-select); }
@media (max-width: 768px) { body .buyer-card { padding: 1.1rem 1rem 1.1rem 3.4rem; } body .buyer-card .buyer-checkbox { width: 30px; height: 30px; top: 1.05rem; left: .9rem; } }
@media (prefers-reduced-motion: reduce) { body .buyer-card { transition: none; } body .buyer-card:hover { transform: none; } }

/* 「掲載情報だけではない」の説明は、購入希望者の一覧のあとに置く */
.buyer-grid .buyer-info-explainer { order: 99; grid-column: 1 / -1; }

/* 「サイト掲載情報だけではない、URICOの強み」の作り直し（本番で表示される説明） */
body .buyer-info-explainer { background: #fff; border: 1px solid #e3e6ea; border-radius: 6px; padding: 2.75rem 2.25rem 2.25rem; margin: 1rem 0 0; box-shadow: none; text-align: left; max-width: none; width: auto; }
body .buyer-info-explainer .explainer-header { text-align: left; margin: 0 0 2rem; padding: 0 0 1.5rem; border: 0; border-bottom: 1px solid #e3e6ea; border-radius: 0; background: none; color: #18212d; box-shadow: none; }
body .buyer-info-explainer .explainer-title { font-size: 1.6rem; font-weight: 700; line-height: 1.5; color: #18212d; margin: 0 0 .6rem; }
body .buyer-info-explainer .explainer-title br { display: none; }
body .buyer-info-explainer .explainer-title .highlight { color: var(--u-main); background: linear-gradient(transparent 68%, color-mix(in srgb, var(--u-sub) 38%, transparent) 68%); margin-right: .25em; font-size: inherit; }
body .buyer-info-explainer .explainer-subtitle { font-size: 1rem; color: #4a5562; line-height: 1.9; margin: 0; }
body .buyer-info-explainer .explainer-subtitle strong { color: #18212d; }
body .buyer-info-explainer .diagram-container { background: var(--u-tint); border: 0; border-radius: 6px; padding: 1.75rem 1.5rem; margin: 0 0 2rem; box-shadow: none; }
body .buyer-info-explainer .diagram-title { font-size: 0; border: 0; padding: 0; margin: 0 0 1.25rem; text-align: center; }
body .buyer-info-explainer .diagram-title::before { content: "URICOのマッチング体制"; font-size: .85rem; font-weight: 700; letter-spacing: .12em; color: var(--u-sub); }
body .buyer-info-explainer .flow-diagram { display: flex; flex-direction: column; align-items: center; gap: .35rem; max-width: 720px; margin: 0 auto; background: none; padding: 0; border-radius: 0; }
body .buyer-info-explainer .flow-row { display: flex; align-items: stretch; justify-content: center; gap: .75rem; width: 100%; margin: 0; }
body .buyer-info-explainer .flow-box, body .buyer-info-explainer .flow-box.highlight { flex: 1 1 0; min-width: 0; background: #fff; border: 1px solid #d5dbe2; border-radius: 4px; padding: .9rem 1rem; box-shadow: none; text-align: center; }
body .buyer-info-explainer .flow-box-label { font-size: .78rem; font-weight: 700; color: #5b6673; margin: 0 0 .25rem; letter-spacing: .04em; }
body .buyer-info-explainer .flow-box-text { font-size: 1rem; font-weight: 700; color: #18212d; line-height: 1.6; }
body .buyer-info-explainer .flow-box-subtext { font-size: .8rem; color: #5b6673; margin-top: .3rem; }
body .buyer-info-explainer .flow-box.urico { background: #fff; border: 2px solid var(--u-main); }
body .buyer-info-explainer .flow-row:last-child .flow-box { background: var(--u-main); border-color: var(--u-main); }
body .buyer-info-explainer .flow-row:last-child .flow-box-text { color: #fff; }
body .buyer-info-explainer .flow-row:last-child .flow-box-label { font-size: 0; }
body .buyer-info-explainer .flow-row:last-child .flow-box-label::before { content: "結果"; font-size: .78rem; color: color-mix(in srgb, var(--u-sub) 70%, #ffffff); letter-spacing: .12em; }
body .buyer-info-explainer .arrow-down { display: flex; justify-content: center; margin: 0; padding: 0; }
body .buyer-info-explainer .arrow-down svg { width: 26px; height: 26px; }
body .buyer-info-explainer .arrow-down svg path { stroke: var(--u-sub); stroke-width: 2.5; }
body .buyer-info-explainer .flow-arrow { display: flex; align-items: center; justify-content: center; align-self: center; flex: none; }
body .buyer-info-explainer .flow-arrow svg { width: 22px; height: 22px; }
body .buyer-info-explainer .flow-arrow svg text { fill: var(--u-sub); font-weight: 700; }
body .buyer-info-explainer .explainer-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 2rem; padding: 0; }
body .buyer-info-explainer .explainer-section { background: none; border: 0; border-radius: 0; box-shadow: none; margin: 0; padding: 0 1.5rem 0 0; }
body .buyer-info-explainer .explainer-section + .explainer-section { border-left: 1px solid #e3e6ea; padding: 0 0 0 1.5rem; }
body .buyer-info-explainer .section-label { display: block; font-size: 0; background: none; padding: 0; margin: 0 0 .6rem; }
body .buyer-info-explainer .section-label::before { font-size: 1.1rem; font-weight: 700; color: #18212d; }
body .buyer-info-explainer .explainer-section:nth-child(1) .section-label::before { content: "業界の現状"; }
body .buyer-info-explainer .explainer-section:nth-child(2) .section-label::before { content: "URICOの取り組み"; }
body .buyer-info-explainer .section-text { font-size: .93rem; color: #4a5562; line-height: 1.95; margin: 0; padding: 0; }
body .buyer-info-explainer .merit-section { background: none; border: 0; border-top: 1px solid #e3e6ea; border-radius: 0; padding: 1.5rem 0 0; margin: 0; }
body .buyer-info-explainer .merit-title { font-size: 1.1rem; font-weight: 700; color: #18212d; margin: 0 0 .75rem; }
body .buyer-info-explainer .merit-icon { display: none; }
body .buyer-info-explainer .merit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
body .buyer-info-explainer .merit-list li { position: relative; padding: 0 0 0 1.6rem; font-size: .95rem; color: #2b3542; line-height: 1.8; }
body .buyer-info-explainer .merit-list li::before { content: ""; position: absolute; left: .2rem; top: .55em; width: .85rem; height: .45rem; border-left: 2.5px solid var(--u-sub); border-bottom: 2.5px solid var(--u-sub); transform: rotate(-45deg); background: none; }
@media (max-width: 768px) {
  body .buyer-info-explainer { padding: 1.75rem 1.1rem 1.5rem; }
  body .buyer-info-explainer .explainer-title { font-size: 1.3rem; }
  body .buyer-info-explainer .diagram-container { padding: 1.25rem .9rem; }
  body .buyer-info-explainer .flow-row { gap: .4rem; }
  body .buyer-info-explainer .flow-box, body .buyer-info-explainer .flow-box.highlight { padding: .75rem .5rem; }
  body .buyer-info-explainer .flow-box-text { font-size: .9rem; }
  body .buyer-info-explainer .explainer-body { grid-template-columns: 1fr; }
  body .buyer-info-explainer .explainer-section, body .buyer-info-explainer .explainer-section + .explainer-section { border-left: 0; padding: 0; }
  body .buyer-info-explainer .explainer-section + .explainer-section { border-top: 1px solid #e3e6ea; margin-top: 1.1rem; padding-top: 1.1rem; }
}

/* JSが動かないときの保険：新しい説明が残っている場合は古い図解と重ねて出さない */
.buyer-grid:has(~ .buyer-supplement-modern) .buyer-info-explainer { display: none; }

/* 選択後に出る下のバーと、問い合わせ画面の色 */
body .urico-floating-bar, body #floating-bar, body #buyer-selection-bar { background: var(--u-main); }
body .btn-inquiry { background: var(--u-select); }
body .modal-title, body .form-section h3 { color: var(--u-main); }
body .form-group input:focus, body .form-group select:focus, body .form-group textarea:focus { border-color: var(--u-main); }
body .submit-btn { background: var(--u-main); }
body .submit-btn:hover { background: color-mix(in srgb, var(--u-main) 85%, #ffffff); }
body .submit-btn:disabled { background: #ccc; }

/* 絵文字アイコンを消す */
.overview-card__icon { display: none }

/* 角の丸みを小さく */
[class*="card"], .info-banner, .urico-operator, .overview-table, .cta-section, .contact-btn { border-radius: 4px !important }
