
/* ================================================================
   ライフプランシミュレーター（page-id-299）
   ================================================================ */
.page-id-299 .entry-content > div > p:first-of-type {
  margin: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
}
.page-id-299 .entry-content .sec {
  margin-bottom: 0 !important;
  padding: 2px 8px !important;
}
.page-id-299 .entry-content .sec-t {
  margin-bottom: 2px !important;
  padding-bottom: 2px !important;
  line-height: 1.3 !important;
}
.page-id-299 .entry-content .f {
  gap: 1px !important;
}
.page-id-299 .entry-content .f input,
.page-id-299 .entry-content .f select {
  padding: 5px 8px !important;
  font-size: 14px !important;
}
.page-id-299 .entry-content .hint {
  margin-top: 0 !important;
  line-height: 1.3 !important;
}
.page-id-299 .entry-content .g2 {
  margin-bottom: 4px !important;
  gap: 6px !important;
}
.page-id-299 .entry-content .card {
  margin-bottom: 4px !important;
  padding: 8px !important;
}
.page-id-299 .entry-content .add-btn {
  margin-top: 2px !important;
  padding: 2px 0 !important;
}
.page-id-299 .entry-content p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.page-id-299 .entry-content .g2[style*="grid-template-columns:repeat(3,1fr)"] {
  grid-template-columns: repeat(3, 1fr) !important;
}
.page-id-299 .entry-content div[style*="grid-template-columns:1fr 1fr 1fr"] {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 8px !important;
  margin-bottom: 4px !important;
}
.page-id-299 .entry-content #car-section,
.page-id-299 .entry-content .sec-t {
  margin-top: 6px !important;
}
.page-id-299 #partner-section[style*="display: block"],
.page-id-299 #children-section[style*="display: block"],
.page-id-299 #car-section[style*="display: block"],
.page-id-299 #inv-section[style*="display: block"],
.page-id-299 #ins-calc-section[style*="display: block"],
.page-id-299 #ins-section[style*="display: block"] {
  display: block !important;
}

/* ================================================================
   家計チェック（page-id-484）
   ================================================================ */
.page-id-484 #mc-app {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Hiragino Sans', sans-serif;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 40px;
  color: #1a1a1a;
}

/* ---------- Cocoonの自動<p>挿入対策 ---------- */
.page-id-484 .entry-content p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.page-id-484 .entry-content p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}
.page-id-484 #mc-app br {
  line-height: inherit;
}
.page-id-484 .entry-content #mc-app > div {
  margin-top: 0 !important;
}
.page-id-484 .mc-cta-primary p,
.page-id-484 .mc-summary-item p,
.page-id-484 .mc-panel p,
.page-id-484 .mc-card p {
  margin: 0 !important;
}

/* ---------- ヒーロー ---------- */
.page-id-484 .mc-hero {
  background: linear-gradient(135deg, #16304F 0%, #2E5A8A 100%);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.page-id-484 .mc-hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  letter-spacing: .1em;
  margin-bottom: 14px;
  padding: 5px 14px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px;
}
.page-id-484 .mc-hero-title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.55;
  margin-bottom: 12px;
}
.page-id-484 .mc-hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}

/* ---------- 入力カード ---------- */
.page-id-484 .mc-card {
  background: #f7f8f7;
  border: 1px solid #e7ebe9;
  border-radius: 14px;
  padding: 1.35rem;
  margin-bottom: 1rem;
}
.page-id-484 .mc-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #16304F;
  margin-bottom: 1.1rem;
  padding-bottom: 11px;
  border-bottom: 1px solid #e7ebe9;
}
.page-id-484 .mc-field { margin-bottom: 1.05rem; }
.page-id-484 .mc-field:last-child { margin-bottom: 0; }
.page-id-484 .mc-label {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  display: block;
}
.page-id-484 .mc-label-hint {
  font-size: 12px;
  color: #8a9490;
  font-weight: 400;
  margin-left: 8px;
}
.page-id-484 .mc-input-wrap { display: flex; align-items: center; gap: 10px; }
.page-id-484 .mc-input {
  flex: 1;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid #dfe5e3;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.page-id-484 .mc-input:focus {
  outline: none;
  border-color: #2E5A8A;
  box-shadow: 0 0 0 4px rgba(46,90,138,0.13);
}
.page-id-484 .mc-input::placeholder { color: #c3ccc9; font-weight: 400; }
.page-id-484 .mc-unit { font-size: 14px; color: #7c8783; white-space: nowrap; font-weight: 600; }
.page-id-484 .mc-hint { font-size: 12px; color: #949e9a; margin-top: 6px; }

@keyframes mcShake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-7px); }
  40%     { transform: translateX(7px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}
.page-id-484 .mc-shake {
  animation: mcShake .4s;
  border-color: #D9534F !important;
}

/* ---------- 計算ボタン ---------- */
.page-id-484 .mc-calc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 17px;
  background: #2E5A8A;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 1.25rem;
  letter-spacing: .04em;
  transition: background .18s, transform .18s;
}
.page-id-484 .mc-calc-btn:hover {
  background: #16304F;
  transform: translateY(-2px);
}
.page-id-484 .mc-btn-arrow { transition: transform .18s; }
.page-id-484 .mc-calc-btn:hover .mc-btn-arrow { transform: translateX(5px); }
.page-id-484 .mc-privacy {
  text-align: center;
  font-size: 12px;
  color: #a8b1ad;
  margin-top: 12px;
}

/* ---------- 計算中 ---------- */
.page-id-484 #mc-loading {
  display: none;
  padding: 3rem 1rem;
  text-align: center;
}
.page-id-484 #mc-loading.show { display: block; }
.page-id-484 .mc-scanner {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 7px;
  height: 44px;
  margin-bottom: 18px;
}
.page-id-484 .mc-scanner span {
  display: block;
  width: 7px;
  border-radius: 4px;
  background: #2E5A8A;
  animation: mcBar 1s ease-in-out infinite;
}
.page-id-484 .mc-scanner span:nth-child(1) { animation-delay: 0s;   height: 22px; }
.page-id-484 .mc-scanner span:nth-child(2) { animation-delay: .15s; height: 38px; }
.page-id-484 .mc-scanner span:nth-child(3) { animation-delay: .3s;  height: 28px; }
@keyframes mcBar {
  0%,100% { transform: scaleY(.45); opacity: .45; }
  50%     { transform: scaleY(1);   opacity: 1; }
}
.page-id-484 .mc-loading-text {
  font-size: 14px;
  color: #5d6b66;
  letter-spacing: .04em;
}

/* ---------- 結果：サマリ ---------- */
#mc-app #mc-result { display: none; }
.page-id-484 .mc-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.page-id-484 .mc-summary-item {
  background: #f7f8f7;
  border: 1px solid #e7ebe9;
  border-radius: 12px;
  padding: 13px 10px;
  text-align: center;
}
.page-id-484 .mc-summary-label {
  font-size: 12px;
  color: #8a9490;
  margin-bottom: 5px;
}
.page-id-484 .mc-summary-value {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}
.page-id-484 .mc-summary-value.grn { color: #1E3A5F; }
.page-id-484 .mc-summary-value.red { color: #d9534f; }

/* ---------- 結果：グラフパネル ---------- */
.page-id-484 .mc-panel {
  background: #fff;
  border: 1px solid #e7ebe9;
  border-radius: 16px;
  padding: 1.1rem 1.1rem 0.9rem;
  margin-bottom: 14px;
}
.page-id-484 .mc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef1f0;
}
.page-id-484 .mc-panel-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}
.page-id-484 .mc-panel-tag {
  font-size: 11px;
  color: #1E3A5F;
  background: #EEF2F8;
  border-radius: 20px;
  padding: 4px 11px;
  white-space: nowrap;
}
.page-id-484 .mc-chart-wrap { position: relative; width: 100%; }
.page-id-484 .mc-panel-note {
  font-size: 12px;
  color: #a8b1ad;
  margin-top: 10px;
  text-align: center;
  line-height: 1.7;
}

/* 判定バッジ */
.page-id-484 .mc-verdict {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 13px;
  border-radius: 10px;
  margin-bottom: 12px;
  line-height: 1.7;
}
.page-id-484 .mc-verdict.ok {
  background: #EEF2F8;
  border: 1px solid #D3DEEC;
  color: #1E3A5F;
}
.page-id-484 .mc-verdict.danger {
  background: #fdf0f0;
  border: 1px solid #f2d3d2;
  color: #a5302c;
}
.page-id-484 .mc-verdict strong { color: inherit; }
.page-id-484 .mc-verdict-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
  animation: mcPulse 2s infinite;
}
@keyframes mcPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,0,0,.18); }
  70%  { box-shadow: 0 0 0 8px rgba(0,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

/* ---------- 診断メッセージ ---------- */
.page-id-484 .mc-message {
  border-radius: 0 14px 14px 0;
  padding: 15px 18px;
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 14px;
  border-left: 4px solid;
}
.page-id-484 .mc-message-head {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.page-id-484 .mc-message.ok {
  background: #F2F5FA;
  border-left-color: #2E5A8A;
  color: #33465E;
}
.page-id-484 .mc-message.ok .mc-message-head,
.page-id-484 .mc-message.ok strong { color: #16304F; }
.page-id-484 .mc-message.warn {
  background: #fff8ec;
  border-left-color: #E8952E;
  color: #5a4426;
}
.page-id-484 .mc-message.warn .mc-message-head,
.page-id-484 .mc-message.warn strong { color: #8a5510; }
.page-id-484 .mc-message.danger {
  background: #fdf0f0;
  border-left-color: #D9534F;
  color: #5f3230;
}
.page-id-484 .mc-message.danger .mc-message-head,
.page-id-484 .mc-message.danger strong { color: #a5302c; }

/* ---------- CTA ---------- */
.page-id-484 .mc-cta-block {
  background: #f7f8f7;
  border: 1px solid #e7ebe9;
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
  margin-bottom: 1rem;
}
.page-id-484 .mc-cta-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}
.page-id-484 .mc-cta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.page-id-484 .mc-cta-list span {
  background: #fff;
  border: 1px solid #dfe5e3;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: #5d6b66;
}
.page-id-484 .mc-cta-desc {
  font-size: 14px;
  color: #5d6b66;
  line-height: 1.8;
  margin-bottom: 14px;
}
.page-id-484 .mc-cta-primary {
  display: block;
  width: 100%;
  padding: 15px 18px;
  line-height: 1.4;
  background: #2E5A8A;
  color: #fff !important;
  border-radius: 12px;
  text-align: center;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: background .18s, transform .18s;
}
.page-id-484 .mc-cta-primary:hover {
  background: #16304F;
  transform: translateY(-2px);
  color: #fff !important;
}
.page-id-484 .mc-cta-primary-main {
  display: block;
  font-size: 16px;
  font-weight: 700;
}
.page-id-484 .mc-cta-primary-sub {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: .82;
  margin-top: 3px !important;
  line-height: 1.4;
}

/* ---------- リセット ---------- */
.page-id-484 .mc-reset-wrap { text-align: center; margin-top: 1rem; }
.page-id-484 .mc-reset-btn {
  background: none;
  border: none;
  color: #a8b1ad;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 8px 16px;
}
.page-id-484 .mc-reset-btn:hover { color: #5d6b66; }

/* ---------- モバイル ---------- */
@media (max-width: 600px) {
  .page-id-484 .mc-hero { padding: 2rem 1.25rem; }
  .page-id-484 .mc-hero-title { font-size: 21px; }
  .page-id-484 .mc-summary-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .page-id-484 .mc-summary-value { font-size: 16px; }
  .page-id-484 .mc-panel { padding: 1.25rem 1rem 1rem; }
  .page-id-484 .mc-panel-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .page-id-484 .mc-cta-primary-main { font-size: 15px; }
}

/* ---------- CTAボタン内のCocoon干渉を除去 ---------- */
.page-id-484 .entry-content a.mc-cta-primary {
  padding: 15px 18px !important;
  line-height: 1.4 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
}
.page-id-484 .entry-content a.mc-cta-primary span,
.page-id-484 .entry-content a.mc-cta-primary p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  min-height: 0 !important;
  display: block !important;
}
.page-id-484 .entry-content a.mc-cta-primary .mc-cta-primary-sub {
  margin-top: 3px !important;
}
.page-id-484 .entry-content a.mc-cta-primary br {
  display: none !important;
}

/* ---------- サマリの内訳表示 ---------- */
.page-id-484 .mc-summary-sub {
  font-size: 11px;
  color: #a8b1ad;
  margin-top: 4px;
  line-height: 1.4;
}
.page-id-484 .mc-summary-sub:empty { display: none; }

/* ---------- 診断メッセージ内の補足ブロック ---------- */
.page-id-484 .mc-message-block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 13px;
}

/* ---------- 生活費の目安 ---------- */
.page-id-484 .mc-benchmark {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 9px 11px;
  background: #f0f5f8;
  border-radius: 8px;
}
.page-id-484 .mc-benchmark-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #7a94a8;
  border-radius: 4px;
  padding: 2px 7px;
  line-height: 1.5;
}
.page-id-484 .mc-benchmark-body {
  font-size: 12px;
  color: #5d6b66;
  line-height: 1.6;
}

@media (max-width: 480px) {
}

/* ---------- 目安の出典表記 ---------- */
.page-id-484 .mc-benchmark-src {
  display: inline-block;
  font-size: 11px;
  color: #8a9490;
  margin-top: 2px;
}

/* ---------- 住居形態の選択（div方式） ---------- */
#mc-app .mc-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
}
#mc-app .mc-radio-box {
  display: block;
  box-sizing: border-box;
  background: #fff;
  border: 1.5px solid #dfe5e3;
  border-radius: 10px;
  padding: 13px 6px;
  margin: 0;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, background .18s;
  -webkit-user-select: none;
  user-select: none;
}
#mc-app .mc-radio-box:hover {
  border-color: #B8C4D2;
}
#mc-app .mc-radio-box.is-active {
  border-color: #2E5A8A;
  background: #F2F5FA;
  box-shadow: 0 0 0 3px rgba(46,90,138,0.1);
}
#mc-app .mc-radio-main {
  display: block;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  line-height: 1.35;
}
#mc-app .mc-radio-box.is-active .mc-radio-main {
  color: #16304F;
}
#mc-app .mc-radio-sub {
  display: block;
  margin: 3px 0 0;
  font-size: 11px;
  color: #8a9490;
  line-height: 1.35;
}
#mc-app .mc-radio-box.is-active .mc-radio-sub {
  color: #2E5A8A;
}
@media (max-width: 480px) {
  #mc-app .mc-radio-box { padding: 11px 3px; }
  #mc-app .mc-radio-main { font-size: 13px; }
  #mc-app .mc-radio-sub { font-size: 10px; }
}

/* ---------- 住居形態ボックスの行間をCocoonから守る ---------- */
#mc-app .mc-radio-group {
  line-height: 1.35 !important;
}
#mc-app .mc-radio-box {
  line-height: 1.35 !important;
  padding: 12px 6px !important;
}
#mc-app .mc-radio-main {
  line-height: 1.35 !important;
  margin: 0 !important;
  padding: 0 !important;
}
#mc-app .mc-radio-sub {
  line-height: 1.35 !important;
  margin: 3px 0 0 !important;
  padding: 0 !important;
}

/* ================================================================
   Cocoon対策の要点
   Cocoonは body に font-size:18px / line-height:1.8 を設定している。
   倍率での line-height 指定は font-size の継承で値がズレるため、
   このページ内では line-height を px 固定で指定すること。
   ================================================================ */

/* #mc-app 全体の基準を16pxに揃える */
#mc-app {
  font-size: 16px !important;
  line-height: 1.7 !important;
}

/* 住居形態ボックス：line-heightをpx固定 */
#mc-app .mc-radio-group {
  line-height: 20px !important;
}
#mc-app .mc-radio-box {
  padding: 12px 6px !important;
  line-height: 20px !important;
  font-size: 15px !important;
}
#mc-app .mc-radio-main {
  font-size: 15px !important;
  line-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
}
#mc-app .mc-radio-sub {
  font-size: 11px !important;
  line-height: 15px !important;
  margin: 3px 0 0 !important;
  padding: 0 !important;
}

/* ---------- ボックス内の行間を詰める ---------- */
#mc-app .mc-radio-box {
  padding: 10px 6px !important;
}
#mc-app .mc-radio-main {
  line-height: 18px !important;
}
#mc-app .mc-radio-sub {
  line-height: 13px !important;
  margin: 2px 0 0 !important;
}

/* ---------- ボックス内の余白を最終調整 ---------- */
#mc-app .mc-radio-box {
  padding: 11px 6px !important;
  font-size: 0 !important;   /* インライン要素間の空白を消す */
}
#mc-app .mc-radio-main {
  font-size: 15px !important;
  line-height: 19px !important;
  margin: 0 !important;
  padding: 0 !important;
}
#mc-app .mc-radio-sub {
  font-size: 11px !important;
  line-height: 14px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
}
