/**
 * SREC - お客様会員向け機能のスタイル (完成版)
 *
 * ==========================================================================
 * ★★★ フォントサイズと可読性の設定 ★★★
 * ==========================================================================
 */

/* 
 * お客様会員向けコンテンツ全体の基本フォントサイズを定義します。
 * スマートフォンでもPCでも読みやすい 16px を基準にします。
 * もっと大きくしたい場合は 17px や 18px に変更してください。
 */
.srec-page-container,
.srec-form {
  font-size: 16px;
  line-height: 1.75; /* 行間を広めに設定 */
  color: #333; /* 真っ黒より少し柔らかい色に */
}

/* 
 * 各要素のサイズを、上記の基本サイズを基準に `em` で指定します。
 * これにより、基本サイズを変更するだけで、全体のバランスが保たれます。
 */

/* 見出し (h3) */
.srec-form h3,
.srec-mypage-content h3 {
  font-size: 1.5em; /* 16px * 1.5 = 24px */
  margin-bottom: 1.2em;
}

/* パネルタイトル (h4) */
.srec-dashboard-section h4 {
  font-size: 1.25em; /* 16px * 1.25 = 20px */
}

/* フォームのラベル */
.srec-form label {
  font-size: 1em; /* 16px */
}

/* 入力欄の文字 */
.srec-form input[type="text"],
.srec-form input[type="email"],
.srec-form input[type="tel"],
.srec-form input[type="password"] {
  font-size: 1em; /* 16px */
}

/* マイページナビゲーション */
.srec-mypage-nav li a {
  font-size: 0.95em; /* 少しだけ小さく (約15px) */
}

/* ダッシュボードのアクションボタン */
.srec-action-button {
  font-size: 1.05em; /* 少しだけ大きく (約17px) */
}

/* ==========================================================================
   ページコンテナ
   ========================================================================== */
.srec-page-container {
  max-width: 980px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  padding-top: 2em;
  padding-bottom: 2em;
}

/* ==========================================================================
   汎用フォーム
   ========================================================================== */
.srec-form {
  max-width: 500px;
  margin: 2em auto;
  padding: 2em;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f9f9f9;
}
.srec-form h3 {
  margin-top: 0;
  text-align: center;
  margin-bottom: 1.5em;
  font-size: 1.6em;
}
.srec-form p {
  margin-bottom: 1.5em;
  font-size: 15px;
}
.srec-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5em;
  font-size: 16px;
}
.srec-form .required {
  color: #d9534f;
  font-size: 0.9em;
  margin-left: 4px;
}
.srec-form input[type="text"],
.srec-form input[type="email"],
.srec-form input[type="tel"],
.srec-form input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
}
.srec-form input[type="submit"] {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  background-color: #007bff;
  color: white;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.srec-form input[type="submit"]:hover {
  background-color: #0056b3;
}
.srec-form .button-danger {
  background-color: #d9534f;
}
.srec-form .button-danger:hover {
  background-color: #c9302c;
}

/* ==========================================================================
   メッセージ
   ========================================================================== */
.srec-message {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}
.srec-message-info {
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
}
.srec-message-success {
  color: #3c763d;
  background-color: #dff0d8;
  border-color: #d6e9c6;
}
.srec-message-error {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}

/* ==========================================================================
   マイページレイアウト
   ========================================================================== */
.srec-mypage-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.srec-mypage-sidebar {
  flex: 0 0 220px;
}
.srec-mypage-content {
  flex: 1;
  min-width: 0;
}
@media (max-width: 768px) {
  .srec-mypage-sidebar {
    flex-basis: 100%;
  }
}

/* マイページナビゲーション */
.srec-mypage-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}
.srec-mypage-nav li a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #e0e0e0;
  font-size: 15px;
}
.srec-mypage-nav li:last-child a {
  border-bottom: none;
}
.srec-mypage-nav li a:hover {
  background-color: #f5f5f5;
}
.srec-mypage-nav li.current-menu-item a {
  background-color: #007bff;
  color: #fff;
  font-weight: bold;
}

/* ==========================================================================
   ダッシュボードコンテンツ
   ========================================================================== */
.srec-dashboard-welcome {
  padding: 2em;
  margin-bottom: 2em;
  background-color: #f0f8ff;
  border-left: 5px solid #007bff;
  border-radius: 4px;
}
.srec-dashboard-welcome h3 {
  margin-top: 0;
  font-size: 1.5em;
}
.srec-dashboard-section {
  margin-bottom: 2.5em;
}
.srec-dashboard-section h4 {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 1.3em;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5em;
}
.srec-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}
.srec-action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #007bff;
  color: #007bff;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.srec-action-button .dashicons {
  margin-right: 10px;
}
.srec-action-button:hover {
  background-color: #007bff;
  color: #fff;
}
.srec-dashboard-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.srec-dashboard-summary-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.srec-dashboard-summary-list li:last-child {
  border-bottom: none;
}
.srec-dashboard-summary-list .summary-label {
  display: inline-block;
  background-color: #eee;
  font-size: 0.8em;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 8px;
}
.srec-dashboard-more-link {
  text-align: right;
  margin-top: 1em;
}

/* ==========================================================================
   お気に入り・検索条件リスト
   ========================================================================== */
.favorite-list,
.saved-searches-list {
  list-style: none;
  padding-left: 0;
}
.favorite-list li,
.saved-searches-list li {
  padding: 15px;
  border-bottom: 1px solid #eee;
}
.favorite-list li:last-child,
.saved-searches-list li:last-child {
  border-bottom: none;
}
.button-link-delete {
  background: none;
  border: none;
  color: #d9534f;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: 0.9em;
}
.button-link-delete:hover {
  color: #a94442;
}

/* ==========================================================================
   お気に入りボタン
   ========================================================================== */
.srec-favorite-button {
  cursor: pointer;
  padding: 8px 16px;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.srec-favorite-button:hover {
  background-color: #e0e0e0;
}
.srec-favorite-button.is-favorited {
  background-color: #ffc0cb;
  border-color: #ff69b4;
  color: #c71585;
}
.srec-favorite-button.is-loading {
  opacity: 0.7;
  cursor: wait;
}
.srec-favorite-button-login {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #007bff;
  color: #007bff;
  text-decoration: none;
  border-radius: 4px;
}
.srec-favorite-button-login:hover {
  background-color: #007bff;
  color: #fff;
}

.srec-form-footer {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  font-size: 0.9em;
}
.srec-form-footer p {
  margin-bottom: 0.5em;
}

/* srec-customer.css に追記 */
/**
 * 家づくりシミュレーションのスタイル
 */
#srec-simulation-wrapper {
  padding: 2em;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}
.simulation-title {
  text-align: center;
}
.simulation-description {
  text-align: center;
  color: #666;
  margin-bottom: 2em;
}
.simulation-step {
  margin-bottom: 2em;
}
.step-title {
  font-size: 1.4em;
  border-left: 5px solid #007bff;
  padding-left: 10px;
}
.step-options label {
  display: block;
  padding: 15px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}
.step-options label:hover {
  background-color: #f5f5f5;
}
.step-options input[type="radio"] {
  margin-right: 10px;
}
.simulation-nav {
  text-align: center;
  margin-top: 2em;
}
.simulation-nav button {
  padding: 10px 30px;
  font-size: 1.1em;
  cursor: pointer;
}
#srec-simulation-results {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 2px solid #007bff;
}
.results-company-card {
  display: flex;
  gap: 20px;
  margin-bottom: 2em;
  padding-bottom: 2em;
  border-bottom: 1px solid #eee;
}
.results-company-thumb img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}
.results-company-info h4 {
  margin-top: 0;
}

/* srec-customer.css に追記 */

/**
 * ----------------------------------------------------------------------------
 * 検索条件保存ボタンのスタイル
 * ----------------------------------------------------------------------------
 */

/* ボタンを囲むコンテナ */
.save-search-container {
  margin: 1.5em 0; /* 上下の余白 */
  text-align: center; /* ★★★ スマホ表示で中央揃えにするためのキー ★★★ */
}

/* 保存ボタン自体のスタイル */
.cBtnSave {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px; /* 上下のパディングを少し増やす */
  border: 1px solid #f0ad4e;
  background-color: #fff;
  color: #f0ad4e;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;

  /* ★★★ 文字サイズを調整 ★★★ */
  font-size: 16px; /* 1rem や 1.1em など、お好みのサイズに */
}

.cBtnSave:hover {
  background-color: #f0ad4e;
  color: #fff;
}

/* アイコンのスタイル */
.cBtnSave .cBtnSave__icon .dashicons {
  font-size: 20px; /* アイコンのサイズも文字に合わせて調整 */
  vertical-align: middle;
  margin-right: 8px; /* 文字との間隔 */
}

/* メッセージ表示エリア */
#srec-save-search-message {
  font-size: 14px; /* 0.9em など、基本フォントより少し小さく */
  margin-top: 8px;
  text-align: center;
}

/* --- スマホ表示の調整 --- */
@media (max-width: 768px) {
  .rForm__btn {
    display: flex;
    flex-direction: column; /* ボタンを縦積みにする */
    gap: 15px; /* ボタン間の隙間 */
  }
}

.srec-simulation-promo {
  background-color: #fff8e1;
  padding: 2em;
  border-radius: 8px;
}
.srec-action-button-primary {
  display: inline-block;
  background-color: #ff9800;
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  width: 60vh;
}
.srec-action-button-primary:hover {
  background-color: #f57c00;
}
.srec-action-button-primary .dashicons {
  margin-right: 8px;
}

/**
 * ----------------------------------------------------------------------------
 * 物件問い合わせフォームのデザイン (視認性改善版)
 * ----------------------------------------------------------------------------
 */

/* 幅広用のコンテナ */
.srec-page-container-fullwidth {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3em 2%;
}

/* ログイン案内ボックス */
.srec-login-prompt {
  text-align: center;
  padding: 2.5em 2em; /* 上下の余白を広げる */
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.srec-login-prompt h3 {
  margin-top: 0;
  margin-bottom: 0.8em;
  font-size: 1.4em; /* 見出しの文字を大きく (例: 22px) */
  color: #333;
}

.srec-login-prompt p {
  margin-bottom: 1.8em;
  font-size: 1.1em; /* 説明文の文字を大きく (例: 17px) */
  line-height: 1.8; /* 行間を広げる */
  color: #555;
  max-width: 600px; /* 文章が長くなりすぎないように幅を制限 */
  margin-left: auto;
  margin-right: auto;
}

/* ログイン/新規登録ボタンのスタイルをアクションボタンと統一 */
.srec-login-prompt .srec-action-button {
  display: inline-block;
  padding: 15px 35px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.srec-login-prompt .srec-action-button:hover {
  background-color: #0056b3;
}

/* 問い合わせフォームラッパー */
.srec-inquiry-form-wrapper {
  padding: 2.5em 3em;
  background-color: #f8f9fa; /* ★ ダーク系から、明るいオフホワイト系に変更 */
  color: #212529; /* 文字を濃いグレーに */
  border-radius: 12px;
  border: 1px solid #dee2e6;
}

.srec-inquiry-form-wrapper .srec-form {
  max-width: 100%;
}
/* フォームのクラスを追加して、通常フォームと区別 */
.srec-form.srec-form-wide h3 {
  color: #212529; /* 見出しの色も濃いグレーに */
  text-align: left;
  font-size: 1.8em;
  border-bottom: 2px solid #007bff; /* アクセントカラーの下線を追加 */
  padding-bottom: 0.5em;
  margin-bottom: 1.5em;
}
.srec-form.srec-form-wide label {
  color: #495057; /* ラベルの文字を少し薄いグレーに */
}

/* 2カラムレイアウト用のグリッド (変更なし) */
.srec-form.srec-form-wide .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* 
 * ★★★ 入力欄のスタイルを大幅に修正 ★★★
 */
/* 共通の入力欄スタイル */
.srec-form.srec-form-wide input[type="text"],
.srec-form.srec-form-wide input[type="email"],
.srec-form.srec-form-wide input[type="tel"],
.srec-form.srec-form-wide textarea {
  background-color: #fff; /* 背景を白に */
  border: 1px solid #ced4da; /* 境界線を薄いグレーに */
  color: #495057; /* 入力文字の色 */
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* フォーカス時のスタイル */
.srec-form.srec-form-wide input:focus,
.srec-form.srec-form-wide textarea:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 読み取り専用の入力欄のスタイル */
.srec-form.srec-form-wide input[readonly] {
  background-color: #e9ecef; /* 少しグレーがかった背景 */
  opacity: 1; /* readonlyでも文字が薄くならないように */
  cursor: not-allowed;
}

/* テキストエリアのスタイル */
.srec-form.srec-form-wide textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 4px;
  min-height: 150px;
}

/* 送信ボタンのスタイルを上書き (変更なし) */
.sric-form.srec-form-wide input[type="submit"] {
  background-color: #f0ad4e;
  font-size: 1.2em;
  padding: 15px;
}
.srec-form.srec-form-wide input[type="submit"]:hover {
  background-color: #eea236;
}

/* スマホ表示 (変更なし) */
@media (max-width: 600px) {
  .srec-form.srec-form-wide .form-grid {
    grid-template-columns: 1fr; /* 1カラムにする */
  }
  .srec-inquiry-form-wrapper {
    padding: 1.5em;
  }
}

/* ナビゲーションの未読件数バッジ */
.srec-nav-badge {
  display: inline-block;
  background-color: #d9534f; /* 赤色 */
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
}

/**
 * ----------------------------------------------------------------------------
 * 新着物件のお知らせページ (/enduser-account/notifications/) のスタイル
 * ----------------------------------------------------------------------------
 */

/* お知らせリスト全体 */
.notification-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5em;
}

/* お知らせの各項目 */
.notification-list li {
  padding: 1.2em 1.5em;
  border-bottom: 1px solid #e0e0e0;
  line-height: 1.7;
}
.notification-list li:first-child {
  border-top: 1px solid #e0e0e0;
}
.notification-list li:hover {
  background-color: #f9f9f9;
}

/* 日付 */
.notification-date {
  display: block;
  font-size: 0.85em;
  color: #888;
  margin-bottom: 0.5em;
}

/* 「新着」ラベル */
.notification-label {
  display: inline-block;
  background-color: #f0ad4e; /* オレンジ色 */
  color: #fff;
  font-size: 0.8em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 10px;
  vertical-align: middle;
}

/* 物件へのリンク部分 */
.notification-property {
  margin-top: 0.8em;
  margin-bottom: 0;
  padding-left: 1em;
  border-left: 3px solid #007bff; /* 青色の線で強調 */
}

.notification-property a {
  font-weight: bold;
  text-decoration: none;
  color: #007bff;
}
.notification-property a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------- */
/* キャンペーン一覧のスタイル (デザイン改善版) */
.srec-campaign-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.campaign-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.campaign-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.campaign-card-banner img {
  display: block; /* 画像下の余分なスペースを削除 */
  width: 100%; /* 幅は常に親要素に合わせる */
  height: auto; /* heightは自動計算に任せる */
  aspect-ratio: 16 / 7;
  /* 画像が比率に合わない場合の表示方法を指定 */
  object-fit: cover; /* 画像をトリミングして、エリア全体を覆うように表示 */
  transition: transform 0.4s ease; /* ホバー時のアニメーション */
}

/* カードにホバーしたときに画像を少しだけ拡大するエフェクト */
.campaign-card:hover .campaign-card-banner img {
  transform: scale(1.05);
}
.campaign-card-body {
  padding: 20px;
  flex-grow: 1; /* 内容が少なくても高さを揃える */
}
.campaign-organizer {
  font-size: 0.85em;
  color: #777;
  margin-bottom: 10px;
}
.campaign-title {
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 15px;
}
.campaign-prize {
  font-size: 0.95em;
}
.campaign-period {
  font-size: 0.85em;
  color: #777;
}
.campaign-description {
  font-size: 0.9em;
  color: #555;
  margin-top: 1em;
}
.campaign-card-footer {
  padding: 20px 25px;
  background: #f9f9f9;
  text-align: center; /* ボタンを中央に配置 */
  border-top: 1px solid #e0e0e0;
  margin-top: auto;
}
/* 応募ボタンのスタイル */
.srec-apply-campaign-btn {
  display: inline-flex; /* アイコンとテキストを横並びにする */
  align-items: center; /* 上下中央揃え */
  justify-content: center; /* 左右中央揃え */
  gap: 8px; /* アイコンとテキストの間隔 */
  padding: 12px 24px; /* 内側の余白を少し調整 */
  border: none;
  border-radius: 50px;
  background: linear-gradient(45deg, #f0ad4e, #ff9800);
  color: white;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.srec-apply-campaign-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.2);
}
/* ★★★ Dashicons自体のスタイルを調整 ★★★ */
.srec-apply-campaign-btn .dashicons {
  font-size: 20px; /* アイコンの大きさ */
  height: 20px; /* 高さを揃える */
  width: 20px; /* 幅を揃える */
}
/* 応募済みボタンのスタイル */
.campaign-card-footer button[disabled] {
  background: #ccc;
  color: #777;
  cursor: not-allowed;
  border-radius: 50px;
  padding: 12px 30px;
  border: none;
}
/* 問い合わせ履歴リスト */
.history-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 20px;
}
.history-date {
  font-size: 0.9em;
  color: #777;
  flex-basis: 100%;
}
.history-type-label {
  background: #6c757d;
  color: #fff;
  font-size: 0.8em;
  padding: 3px 8px;
  border-radius: 4px;
}
.history-content {
  flex: 1;
}
.history-content a {
  font-weight: bold;
  text-decoration: none;
  color: #007bff;
}
.history-content a:hover {
  text-decoration: underline;
}
.history-excerpt {
  font-size: 0.9em;
  color: #555;
  margin: 0.5em 0 0 0;
}

.mypage-description {
  font-size: 0.95em;
  color: #555;
  background-color: #f5f5f5;
  padding: 1em;
  border-radius: 5px;
  margin-bottom: 1.5em;
}

/* ページ案内文のスタイル */
.mypage-description {
  font-size: 0.95em;
  color: #555;
  background-color: #f5f5f5;
  padding: 1em 1.5em;
  border-radius: 5px;
  margin-top: -0.5em; /* 見出しとの間隔を調整 */
  margin-bottom: 2em;
  border-left: 4px solid #007bff;
}

/* ダッシュボードのセカンダリボタン */
.srec-action-button-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background-color: #6c757d;
  color: #fff;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.srec-action-button-secondary .dashicons {
  margin-right: 10px;
}
.srec-action-button-secondary:hover {
  background-color: #5a6268;
  color: #fff;
}

/**
 * ----------------------------------------------------------------------------
 * トップページ 特集キャンペーンのスタイル
 * ----------------------------------------------------------------------------
 */
.featured-campaigns h2 {
  font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.5rem); /* レスポンシブフォント */
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5em;
  position: relative;
  padding-bottom: 0.6em;
}

/* タイトルの下線デザイン (装飾) */
.featured-campaigns h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #f0ad4e); /* 青からオレンジへのグラデーション */
  border-radius: 2px;
}

/* srec-customer.css に追記 */

/**
 * ----------------------------------------------------------------------------
 * キャンペーン一覧ページのタイトルスタイル
 * ----------------------------------------------------------------------------
 */

/* 
 * page-template-page-campaigns-php というクラスは、
 * 「キャンペーン一覧」テンプレートを使っているページの<body>タグに自動で付与されます。
 * これで、このページだけに限定してスタイルを適用できます。
 */
.page-template-page-campaigns-php .page-title {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem); /* レスポンシブフォント */
  font-weight: 800; /* 少し太め */
  text-align: center;
  margin-bottom: 1.5em;
  position: relative;
  padding-bottom: 0.5em;
  color: #333;

  /* 文字に少しだけ影をつける */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* タイトルの下線デザイン (トップページと共通のデザイン) */
.page-template-page-campaigns-php .page-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100px; /* 少し長めに */
  height: 5px;
  background: linear-gradient(90deg, #007bff, #f0ad4e); /* 青からオレンジへのグラデーション */
  border-radius: 3px;
}

/* （任意）サブタイトルを追加する場合のスタイル */
.page-template-page-campaigns-php .page-header .page-subtitle {
  text-align: center;
  margin-top: -1em;
  margin-bottom: 2em;
  font-size: 1.1em;
  color: #777;
}

/**
 * ============================================================================
 * シーン別検索ページ (/scene-search/) の専用スタイル
 * ============================================================================
 */

/* --- タブナビゲーション --- */
.scene-tabs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin-bottom: 2em;
  border-bottom: 2px solid #e0e0e0;
}
.scene-tabs li a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #555;
  font-weight: bold;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.scene-tabs li.active a,
.scene-tabs li a:hover {
  color: #007bff;
  border-bottom-color: #007bff;
}

/* --- 絞り込みフォーム --- */
#srec-scene-filter-form {
  background-color: #f8f9fa;
  padding: 2em;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}
.filter-group-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* PCでは2カラム */
  gap: 30px;
  margin-bottom: 1.5em;
}
.filter-group h4 {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 1.1em;
}
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* チェックボックスのタグ風デザイン */
.cTag-label {
  display: inline-block;
  cursor: pointer;
}
.cTag-label input[type="checkbox"] {
  display: none; /* 元のチェックボックスは隠す */
}
.cTag-label span {
  display: block;
  padding: 8px 15px;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 20px;
  transition: all 0.2s ease;
}
.cTag-label:hover span {
  background-color: #f0f8ff;
}
/* チェックされた時のスタイル */
.cTag-label input[type="checkbox"]:checked + span {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

.filter-actions {
  text-align: center;
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 1px solid #e0e0e0;
}
.filter-actions .button-secondary {
  margin-left: 10px;
}

/* --- 結果表示エリア --- */
#srec-scene-search-results .initial-message {
  text-align: center;
  padding: 3em;
  background-color: #f5f5f5;
  border-radius: 8px;
  color: #777;
}

/* --- スマホ表示の調整 --- */
@media (max-width: 768px) {
  .filter-group-container {
    grid-template-columns: 1fr; /* スマホでは1カラムに */
  }
}

/* srec-style.css または style.css に追記 */

/* --- シーン検索フィルターのアクションボタン スタイル --- */
.srec-page-container .filter-actions {
  display: flex;
  justify-content: center; /* ボタンを中央揃え */
  gap: 20px; /* ボタン間の隙間 */
  margin-top: 30px;
  padding: 20px;
  border-top: 1px solid #eee;
}

/* ボタンの基本スタイルをリセット */
.srec-page-container .filter-actions .button {
  border: none;
  border-radius: 50px; /* 角を丸くして柔らかい印象に */
  padding: 12px 28px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex; /* アイコンとテキストを横並びにする */
  align-items: center;
  gap: 8px; /* アイコンとテキストの隙間 */
  text-decoration: none;
  line-height: 1.2;
}

/* 「この条件で検索」ボタンのスタイル */
.srec-page-container .filter-actions button[type="submit"] {
  background: linear-gradient(135deg, #ff8d29, #ff6f61); /* オレンジ系のグラデーション */
  color: white;
  box-shadow: 0 4px 15px rgba(255, 120, 80, 0.4);
}

.srec-page-container .filter-actions button[type="submit"]:hover {
  transform: translateY(-2px); /* 少し浮き上がる効果 */
  box-shadow: 0 6px 20px rgba(255, 120, 80, 0.5);
}

/* 「条件をクリア」ボタンのスタイル */
.srec-page-container .filter-actions button[type="reset"] {
  background-color: #f0f2f5; /* 明るいグレー */
  color: #555;
  border: 1px solid #ddd;
}

.srec-page-container .filter-actions button[type="reset"]:hover {
  background-color: #e2e6ea;
  border-color: #ccc;
}

/* FontAwesomeなどのアイコンフォントを使う場合の例 (擬似要素でアイコンを追加) */
.srec-page-container .filter-actions button[type="submit"]::before {
  font-family: "Font Awesome 5 Free"; /* Font Awesome 5 の場合 */
  content: "\f002"; /* 虫眼鏡アイコン */
  font-weight: 900;
}

.srec-page-container .filter-actions button[type="reset"]::before {
  font-family: "Font Awesome 5 Free"; /* Font Awesome 5 の場合 */
  content: "\f021"; /* 更新アイコン */
  font-weight: 900;
}

/* ★★★ 件数表示用のスタイル ★★★ */
.srec-page-container .filter-actions .result-count {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 14px;
  margin-left: 8px;
  font-weight: normal;
  transition: all 0.3s ease;
}

/* 件数が0の時は非表示にする */
.srec-page-container .filter-actions .result-count.is-zero {
  display: none;
}

/* srec-style.css などに追記 */

/* --- セクションタイトル (シンプル＆モダン) --- */
.srec-section-title {
  text-align: center;
  margin-bottom: 40px;
}

.srec-section-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  letter-spacing: 2px;
  margin: 0;
  padding-bottom: 10px;
  position: relative;
  display: inline-block; /* 下線の長さをテキスト幅に合わせる */
}

/* 下線の装飾 */
.srec-section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px; /* 下線の長さ */
  height: 3px; /* 下線の太さ */
  background: linear-gradient(135deg, #ff8d29, #ff6f61); /* 検索ボタンと色を合わせる */
}

.srec-section-title p {
  margin: 5px 0 0 0;
  font-size: 14px;
  color: #999;
  font-family: "Montserrat", sans-serif; /* おしゃれな英字フォント推奨 */
  letter-spacing: 1px;
}

/* --- シーン選択タブのラベル --- */
.scene-tabs-label {
  text-align: center;
  font-size: 16px;
  color: #555;
  font-weight: 600;
  margin-bottom: 20px;
}

/* 星評価 */
/* --- 星評価 (srec-star-rating) 修正版 --- */
.srec-star-rating {
  display: inline-flex;
  /* 星を右から左へ並べるためのトリック */
  flex-direction: row-reverse;
  justify-content: flex-end; /* 左詰めにする */
  font-size: 2em; /* 星の大きさ */
  line-height: 1;
  vertical-align: middle;
}

/* ラジオボタン本体は非表示にする */
.srec-star-rating input[type="radio"] {
  display: none;
}

/* 星（ラベル）の基本スタイル */
.srec-star-rating label {
  color: #ccc; /* デフォルトの星の色 */
  cursor: pointer;
  transition: color 0.2s;
  padding: 0 0.1em; /* 星同士の間隔 */
}

/*
 * ★★★ここが重要★★★
 * 1. チェックされたラジオボタンの後ろにある兄弟要素(~)、つまり左側の星すべてを色付け
 * 2. チェックされたラジオボタン自身のラベルも色付け
 */
.srec-star-rating input[type="radio"]:checked ~ label,
.srec-star-rating input[type="radio"]:checked + label {
  color: #f8d347; /* 選択された星の色 */
}

/*
 * ★★★ここも重要★★★
 * 1. マウスオーバーしたラベルを色付け
 * 2. マウスオーバーしたラベルの後ろにある兄弟要素(~)、つまり左側の星すべてを色付け
 */
.srec-star-rating label:hover,
.srec-star-rating label:hover ~ label {
  color: #f8d347; /* マウスオーバー時の星の色 */
}

/*
 * 選択済みの状態で、より低い評価にマウスオーバーした場合の考慮
 * チェックされた星より右側（高い評価）の星にマウスオーバーしても、
 * チェック済みの状態を維持するように見せるためのトリック
 */
.srec-star-rating input[type="radio"]:checked ~ label:hover,
.srec-star-rating input[type="radio"]:checked ~ label:hover ~ label {
  color: #f8d347;
}

/* --- 口コミ投稿履歴 --- */
.srec-review-history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.srec-review-history-list li {
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 4px;
}
.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.history-item-header .history-date {
  font-size: 0.9em;
  color: #666;
}
.history-item-header .history-status {
  font-size: 0.9em;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 3px;
  color: #fff;
}
.history-status.status-pending {
  background-color: #f0ad4e;
} /* オレンジ */
.history-status.status-approved {
  background-color: #5cb85c;
} /* 緑 */
.history-status.status-rejected {
  background-color: #d9534f;
} /* 赤 */

.history-item-body .srec-review-rating {
  font-size: 1.2em;
  color: #f8d347;
  margin-bottom: 5px;
}
.history-item-body .review-title {
  margin: 0 0 10px 0;
  font-size: 1.1em;
}
.history-item-body .review-body {
  margin: 0;
  line-height: 1.6;
  color: #333;
}

/* --- 口コミ投稿フォームのセレクトボックスのデザイン改善 --- */
.srec-form select#srec_company_id {
  /* --- 基本的な見た目の設定 --- */
  display: block; /* 横幅いっぱいに広がるようにする */
  width: 100%;
  max-width: 400px; /* 横幅が広がりすぎないように最大幅を指定 */
  padding: 10px 15px;
  font-size: 16px; /* 文字サイズを少し大きくして見やすく */
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;

  /* --- 右側の▼（矢印）の見た目をカスタマイズ --- */
  appearance: none; /* ブラウザ標準の矢印を消す (Chrome, Safari, Firefox) */
  -webkit-appearance: none;
  -moz-appearance: none;

  /* 
     * 独自の矢印を背景画像として追加
     * SVGをURLエンコードして埋め込んでいるため、画像ファイルは不要です
     */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px 12px;

  /* IE用の矢印を消す処理 */
  &::-ms-expand {
    display: none;
  }
}

/* --- フォーカス（クリック）されたときのスタイル --- */
.srec-form select#srec_company_id:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* --- フォーム項目ごとのグルーピング（推奨） --- */
.srec-form .srec-form-group {
  margin-bottom: 20px;
}
.srec-form .srec-form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}
.srec-form .srec-form-group small {
  display: block;
  font-size: 0.9em;
  color: #666;
  margin-top: 8px;
}

/* --- シミュレーションページ共通スタイル --- */
.simulation-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.simulation-title {
  text-align: center;
  margin-bottom: 15px;
}
.simulation-description {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
}

/* --- フォームのfieldsetスタイル --- */
.srec-form fieldset {
  border: 1px solid #ddd;
  padding: 20px 30px;
  margin-bottom: 30px;
  border-radius: 8px;
}
.srec-form legend {
  font-size: 1.2em;
  font-weight: bold;
  padding: 0 10px;
}
.radio-label,
.checkbox-label {
  margin-right: 20px;
}

/* --- 非会員向けシミュレーション結果 --- */
.simulation-result {
  border: 2px solid #008000;
  background: #f0fff0;
  padding: 20px;
  margin-top: 30px;
  text-align: center;
}
.result-item .result-label {
  display: block;
  font-size: 1em;
  color: #333;
}
.result-item .result-value {
  display: block;
  font-size: 2em;
  font-weight: bold;
  color: #008000;
}

/* --- 会員登録へのCTA --- */
.simulation-cta {
  margin-top: 50px;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 8px;
  text-align: center;
}
.srec-submit-button-large {
  padding: 15px 30px;
  font-size: 1.2em;
}

/* =================================================
// 資金計画シミュレーション デザイン改善
// ================================================= */

/* --- フォーム全体のコンテナスタイル --- */
.simulation-for-guests .srec-form-wide {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

/* --- フォームの各入力グループ --- */
.simulation-for-guests .srec-form-group {
  margin-bottom: 25px;
}
.simulation-for-guests .srec-form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 1em;
}

/* --- 入力欄（input, select）のスタイル --- */
.simulation-for-guests input[type="number"],
.simulation-for-guests select {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* 入力欄フォーカス時のスタイル */
.simulation-for-guests input[type="number"]:focus,
.simulation-for-guests select:focus {
  border-color: #008000;
  box-shadow: 0 0 0 3px rgba(0, 128, 0, 0.15);
  outline: none;
}

/* --- 「計算する」ボタンのデザイン --- */
#guest-sim-calc-btn {
  display: block;
  width: 100%;
  background-color: #008000; /* サイトのキーカラー（緑） */
  color: #fff;
  padding: 15px 20px;
  font-size: 1.2em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 128, 0, 0.2);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.1s ease;
  will-change: transform;
}

/* 計算ボタンにマウスオーバーした時のスタイル */
#guest-sim-calc-btn:hover {
  background-color: #006400; /* 少し濃い緑色 */
  transform: translateY(-2px); /* 少し浮き上がるエフェクト */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* 計算ボタンをクリックした時のスタイル */
#guest-sim-calc-btn:active {
  transform: translateY(1px); /* 少し沈むエフェクト */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- 結果表示エリアのデザイン --- */
.simulation-result {
  border: none;
  background: #f7f6f2; /* 画像に近い薄い背景色 */
  padding: 30px;
  margin-top: 40px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.simulation-result h2 {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
}

.result-item .result-label {
  display: block;
  font-size: 1.1em;
  color: #555;
  margin-bottom: 5px;
}

.result-item .result-value {
  display: block;
  font-size: 2.8em; /* 結果を大きく表示 */
  font-weight: bold;
  color: #008000;
  line-height: 1.2;
}

/* --- 会員登録へのCTAエリアのデザイン --- */
.simulation-cta {
  margin-top: 60px;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #eee;
}

.simulation-cta h3 {
  font-size: 1.4em;
  margin-top: 0;
}

/* 会員登録ボタンのスタイル */
.simulation-cta .button-accent {
  display: inline-block;
  background-color: #ff8c00; /* 目立つオレンジ色 */
  color: #fff;
  padding: 15px 40px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.simulation-cta .button-accent:hover {
  background-color: #e67e00; /* 少し濃いオレンジ色 */
  transform: scale(1.05);
}

/* レスポンシブ対応 */
@media screen and (max-width: 600px) {
  .simulation-for-guests .srec-form-wide {
    padding: 20px;
  }
  .result-item .result-value {
    font-size: 2.2em;
  }
  .simulation-cta {
    padding: 30px 20px;
  }
}

/* =================================================
// 家づくりシミュレーション デザイン改善
// ================================================= */

/* --- フォーム全体のコンテナスタイル --- */
.simulation-for-members .srec-form-wide {
  background-color: #fff;
  border: 1px solid #e9e9e9;
  padding: 20px 30px 30px 30px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

/* --- 各ステップ（fieldset）のデザイン --- */
.simulation-for-members fieldset {
  border: none; /* 元の枠線を消す */
  border-top: 1px solid #ddd; /* 上に区切り線を入れる */
  padding: 30px 10px;
  margin: 0 0 20px 0;
}
.simulation-for-members fieldset:first-of-type {
  border-top: none; /* 最初のステップの線は消す */
  padding-top: 10px;
}

.simulation-for-members legend {
  font-size: 1.4em;
  font-weight: bold;
  padding: 0 15px 0 0; /* 右側に余白 */
  margin-left: -10px; /* 位置調整 */
  color: #008000; /* キーカラー */
}

/* --- 入力欄のスタイル（非会員向けと共通化） --- */
.simulation-for-members input[type="text"],
.simulation-for-members input[type="number"],
.simulation-for-members select,
.simulation-for-members textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.simulation-for-members input[type="text"]:focus,
.simulation-for-members input[type="number"]:focus,
.simulation-for-members select:focus,
.simulation-for-members textarea:focus {
  border-color: #008000;
  box-shadow: 0 0 0 3px rgba(0, 128, 0, 0.15);
  outline: none;
}

/* ラジオボタンとチェックボックスのラベル */
.simulation-for-members .radio-label,
.simulation-for-members .checkbox-label {
  display: inline-block;
  margin-right: 20px;
  margin-bottom: 10px;
  cursor: pointer;
}
.simulation-for-members .radio-label input,
.simulation-for-members .checkbox-label input {
  margin-right: 8px;
  vertical-align: middle;
}

/* --- 送信ボタンエリアのデザイン --- */
.submit-container {
  margin-top: 30px;
  padding: 30px;
  background-color: #f0fff0; /* 薄い緑の背景 */
  border-radius: 8px;
  text-align: center;
}

.submit-container p {
  color: #555;
  margin-top: 0;
  margin-bottom: 20px;
}

/* --- 「専門家に相談する」ボタンのデザイン --- */
.srec-submit-button-large {
  display: inline-block;
  width: auto;
  max-width: 400px;
  background-color: #ff8c00; /* 目立つオレンジ色（CTAカラー） */
  color: #fff;
  padding: 18px 40px;
  font-size: 1.3em;
  font-weight: bold;
  border: none;
  border-radius: 50px; /* 角丸を強くする */
  cursor: pointer;
  text-align: center;
  box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.1s ease;
  will-change: transform;
}

/* ボタンにマウスオーバーした時のスタイル */
.srec-submit-button-large:hover {
  background-color: #e67e00; /* 少し濃いオレンジ色 */
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* ボタンをクリックした時のスタイル */
.srec-submit-button-large:active {
  transform: translateY(1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* レスポンシブ対応 */
@media screen and (max-width: 600px) {
  .simulation-for-members .srec-form-wide {
    padding: 10px 15px 20px 15px;
  }
  .simulation-for-members fieldset {
    padding: 20px 5px;
  }
  .simulation-for-members legend {
    font-size: 1.2em;
  }
  .srec-submit-button-large {
    width: 100%;
    font-size: 1.1em;
    padding: 15px 20px;
  }
}

.simulation-result .result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.simulation-result .result-item {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
}
@media (max-width: 800px) {
  .simulation-result .result-grid {
    grid-template-columns: 1fr; /* スマホでは1列に */
  }
}

.simulation-result .result-summary {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 25px;
}
.simulation-result .result-summary span {
  font-weight: bold;
  font-size: 1.2em;
  color: #008000;
}

/* --- ★★★ 予算内訳エリア (3列) ★★★ --- */
.result-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 常に3列 */
  gap: 20px;
}
.breakdown-item {
  padding: 20px;
  border-radius: 8px;
  background: #fff; /* 各項目を白のカードに */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.breakdown-item .label {
  display: block;
  font-size: 1em;
  font-weight: 500;
  color: #555;
  margin-bottom: 10px;
}
.breakdown-item .value {
  display: block;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}
.breakdown-item small {
  color: #888;
}
/* 各項目の色分け */
.breakdown-item.item-building .value {
  color: #008000;
}
.breakdown-item.item-land .value {
  color: #428bca;
}
.breakdown-item.item-other .value {
  color: #777;
}
/* --- ★★★ 区切り線 ★★★ --- */
.result-divider {
  border: none;
  border-top: 1px dashed #ccc;
  margin: 30px auto;
}
/* 各項目の色分け */
.breakdown-item.item-land {
  background-color: #e9f5ff;
}
.breakdown-item.item-building {
  background-color: #e6ffe6;
}
.breakdown-item.item-other {
  background-color: #f5f5f5;
}

/* --- ★★★ ローン情報エリア (2列) ★★★ --- */
.result-loan-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 常に2列 */
  gap: 20px;
}
.loan-item {
  padding: 25px;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.loan-item .label {
  display: block;
  font-size: 1em;
  font-weight: 500;
  color: #555;
  margin-bottom: 10px;
}
.loan-item .value {
  display: block;
  font-size: 2.4em; /* ローン情報はより大きく */
  font-weight: bold;
  color: #008000;
}
.loan-item .value small {
  font-size: 0.6em;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 800px) {
  .result-breakdown {
    /* SPでは1列に変更 */
    grid-template-columns: 1fr;
  }
  .result-loan-info {
    /* SPでは1列に変更 */
    grid-template-columns: 1fr;
  }
}

/* =============================================================
// シミュレーション結果 レイアウト崩れ修正用CSS (追加分)
// ============================================================= */

/* --- 親コンテナのGrid設定を Flexbox で上書き --- */
#guest-sim-result .result-breakdown,
#guest-sim-result .result-loan-info {
  display: flex !important; /* ★ Flexboxを強制適用 */
  flex-wrap: nowrap !important; /* ★ 折り返しを禁止 */
  justify-content: space-between !important; /* 均等配置 */

  /* 念のためGrid関連のプロパティをリセット */
  grid-template-columns: none !important;
}

/* --- 子アイテムのスタイルを再定義 --- */
#guest-sim-result .result-breakdown > .breakdown-item,
#guest-sim-result .result-loan-info > .loan-item {
  flex: 1; /* ★ 均等な幅を確保 */
  width: auto !important; /* 他のスタイルによるwidth指定をリセット */
  float: none !important; /* float指定を無効化 */
  margin: 0 !important; /* 不要なマージンをリセット */
}

/* --- レスポンシブ対応の上書き --- */
@media (max-width: 800px) {
  #guest-sim-result .result-breakdown,
  #guest-sim-result .result-loan-info {
    flex-direction: column !important; /* SPでは縦並びを強制 */
  }
}
