/**************************************************************
 * 0) ベーススタイル
 **************************************************************/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* --- iOS タップハイライト無効 --- */
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fafafa;
  color: #333;
  position: relative;
  line-height: 1.6;
}
footer {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  margin-bottom: 20px;
}
h1, h2 {
  margin-top: 0;
}

/* iPhone等でのvh対策: " --vh"変数 */
html, body {
  height: 100%;
}

/**************************************************************
 * ヒーローセクション
 **************************************************************/
.hero-section {
  position: relative;
  width: 100%;
  height: calc(var(--vh, 1vh)*100);
  overflow: hidden;
}
/* スライドショー関連 */
.slideshow-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 1;
  transition: opacity 1s ease;
}
.slide.active {
  opacity: 1;
  z-index: 2;
  animation: kenBurns 6s ease forwards;
}
.slide.fade-out {
  opacity: 0;
  z-index: 1;
  transition: opacity 1s ease;
  transform: scale(1.1);
  animation: none;
}
@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 3;
}
.hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  max-width: 700px;
  margin: 0 auto;
  height: 100%;
}
.hero-content .main-catch {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: #fff;
}
.hero-content .sub-catch {
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 2rem;
}

/* ベースボタンスタイル */
.custom-button {
  font-size: 1.2rem;
  padding: 0.8rem 2.5rem;
  background-color: #ff9800;
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.custom-button::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 8px;
  font-size: 1em;
}
.custom-button:hover {
  background-color: #fb8c00;
}

/* CTAボタン */
.custom-button--cta::before {
  content: "\f14e"; /* Font Awesome のコンパスアイコン */
}

/**************************************************************
 * ページ切り替えコンテナ
 **************************************************************/
#page1_30Q,
#page2_sliders {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  display: none; /* 初期状態は非表示 */
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-top: 20px;
}

/**************************************************************
 * Page1: 25問 トレードオフ形式
 **************************************************************/
/* タイトル周り */
.page1-title {
  font-size: 1.6rem;
  text-align: center;
  margin: 16px 0 0.5rem;
}
.page1-subtitle {
  font-size: 1rem;
  text-align: center;
  color: #666;
  margin-bottom: 1.5rem;
}

/* プログレスバー */
#progressBarContainer {
  position: relative;
  background: #e5e7eb;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto 0; /* 上マージンなし */
  max-width: 900px; /* コンテナに合わせる */
}
#progressBar {
  width: 0%;
  height: 100%;
  background: #3b82f6; /* Tailwindブルー */
  transition: width 0.3s;
}

/* 質問コンテナ */
#surveyContainer {
  width: 100%;
  padding: 0 20px 20px; /* 左右に少しパディング */
}

/* --- ▼▼▼ 質問ブロック、回答円のデザインをトレードオフ方式用に調整 ▼▼▼ --- */
.question-block {
  margin-bottom: 45px; /* 質問間のマージン */
  background: #fff;
  padding: 25px 10px; /* 上下のパディング */
  border-radius: 0;
  border-bottom: 1px solid #eee; /* 質問間の区切り線 */
  text-align: center;
  transition: none; /* アニメーションは不要 */
}
.question-block:last-child {
    border-bottom: none; /* 最後の質問の下線は消す */
}
.question-text {
  font-size: 1.2rem; /* 質問文のフォントサイズ */
  font-weight: 500;
  margin-bottom: 30px; /* ラベルとの間隔を確保 */
  color: #555;
  line-height: 1.5;
}

/* ラベル表示行 (トレードオフ用) */
.labels-row {
  display: flex;
  justify-content: space-between; /* 左右に配置 */
  align-items: flex-start; /* 上揃え (複数行対応) */
  max-width: 480px; /* スマホでの最大幅 */
  margin: 0 auto 15px; /* 回答円との間隔 */
  padding: 0 10px; /* 左右に少し余白 */
  font-size: 0.9em; /* ラベルのフォントサイズ */
  font-weight: bold;
  color: #555; /* 基本色 */
  gap: 15px; /* 左右ラベル間の最小間隔 */
}
.labels-row .left-label,
.labels-row .right-label {
  flex: 1; /* スペースを均等に分割 */
  line-height: 1.4; /* 複数行になっても読みやすく */
  text-align: center; /* 中央揃え */
}
.labels-row .left-label { color: #25ae63; text-align: left; } /* 左ラベルは緑色、左寄せ */
.labels-row .right-label { color: #8964aa; text-align: right; } /* 右ラベルは紫色、右寄せ */

/* 回答選択行 (円のデザインは基本的に維持) */
.answers-row {
  display: flex;
  justify-content: center; /* 中央揃え */
  align-items: center; /* 垂直中央揃え */
  gap: 8px; /* 円と円の間隔 */
  margin-bottom: 8px; /* 下のマージン */
  max-width: 340px; /* 従来の回答円全体の幅 */
  margin-left: auto;
  margin-right: auto; /* 水平中央揃え */
}
.answer-option {
   position: relative; /* inputを隠すため */
   -webkit-tap-highlight-color: transparent; /* タップハイライト無効 */
}
.answer-option input[type="radio"] {
  position: absolute;
  opacity: 0; /* 見えなくする */
  width: 0;
  height: 0;
}
.answer-option .circle {
  display: flex; /* 中のテキスト用 (今回は使わない) */
  justify-content: center;
  align-items: center;
  border-radius: 50%; /* 円形 */
  background: #fff; /* 背景白 */
  border: 2px solid #e0e0e0; /* デフォルトの境界線 */
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease; /* アニメーション */
  user-select: none; /* テキスト選択不可 */
}
/* 円のサイズと色 (従来のものを流用、左から右へ) */
.answers-row .answer-option:nth-child(1) .circle { width: 42px; height: 42px; --circleColor: #25ae63; } /* 左端 (強く左優先) */
.answers-row .answer-option:nth-child(2) .circle { width: 36px; height: 36px; --circleColor: #86d9a1; }
.answers-row .answer-option:nth-child(3) .circle { width: 30px; height: 30px; --circleColor: #b8e9c1; }
.answers-row .answer-option:nth-child(4) .circle { width: 26px; height: 26px; --circleColor: #ddd; } /* 中央 (どちらとも言えない) */
.answers-row .answer-option:nth-child(5) .circle { width: 30px; height: 30px; --circleColor: #d0bce1; }
.answers-row .answer-option:nth-child(6) .circle { width: 36px; height: 36px; --circleColor: #ac92c7; }
.answers-row .answer-option:nth-child(7) .circle { width: 42px; height: 42px; --circleColor: #8964aa; } /* 右端 (強く右優先) */

/* ホバー時の効果 */
.answer-option:hover .circle {
   transform: scale(1.1); /* 少し拡大 */
}
/* 選択された円のスタイル */
.answer-option input[type="radio"]:checked + .circle {
  background-color: var(--circleColor, #bbb); /* 各円の色に変える */
  border-color: var(--circleColor, #bbb); /* 境界線も同色に */
  transform: scale(1.1); /* 選択時に少し拡大 */
  box-shadow: 0 0 8px rgba(0,0,0,0.1); /* 影をつける */
}
/* 選択時に他の選択肢を少し薄くする効果は維持 */
.answers-row:has(input:checked) .circle {
   opacity: 0.6;
   border-color: #eee;
}
.answers-row:has(input:checked) input:checked + .circle {
   opacity: 1; /* 選択されたものは不透明に戻す */
}
/* --- ▲▲▲ 質問ブロック、回答円のデザイン調整ここまで ▲▲▲ --- */


/* バブルメッセージ (変更なし) */
.bubble-message {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  color: #333;
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-size: 0.9rem;
  z-index: 9999;
  animation: fade-in 0.4s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* 結果表示セクション (変更なし) */
#result-section {
  background: #f9fafb; /* 背景色 */
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 4px rgba(0,0,0,0.1); /* 影 */
  display: none; /* 初期非表示 */
  margin-top: 20px; /* 質問リストとの間隔 */
}
.result-title-main {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: bold;
}
/* タイプ別イラスト用スタイル (変更なし) */
.result-type-image {
  display: block; /* 中央寄せのため */
  margin: 0 auto 1rem; /* 上下左右のマージン */
  max-width: 90%; /* コンテナ幅に対する最大幅 */
  width: 300px; /* 横幅の基本値 */
  height: auto; /* 縦横比を保持 */
  border-radius: 4px; /* 角丸 */
  object-fit: contain; /* はみ出さずに収める */
}
.result-type-name {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}
.result-type-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: left;
}
/* チャートコンテナ (変更なし) */
.chart-container {
  width: 100%;
  max-width: 400px; /* 最大幅 */
  margin: 0 auto 20px; /* 中央寄せ、下マージン */
  position: relative;
  height: 300px; /* 高さを指定 */
}
#hcRadarChart {
  display: block;
  width: 100%;
  height: 100%; /* 親要素の高さに合わせる */
}
.btn-wrapper {
  text-align: center;
  margin-top: 20px;
}

/* Page1 次のステップボタン (矢印付き - 変更なし) */
.next-step-button {
  background-color: #ff9800;
  color: #fff;
  font-size: 1.1rem;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.next-step-button::after {
  content: "→"; /* 右向き矢印 */
  margin-left: 8px; /* テキストと矢印の間隔 */
  font-weight: bold;
}
.next-step-button:hover {
  background-color: #fb8c00;
}

/**************************************************************
 * Page2: 特殊質問 + 5問 + 予算 + 街リスト (変更なし)
 **************************************************************/
/* Page2 タイトル周り */
.page2-main-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}
.page2-subphrase {
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* --- Page2 特殊質問ボタン --- */
#specialQuestionsContainer { /* コンテナ全体のマージン調整などが必要なら追加 */
    margin-bottom: 25px;
}
.p2-special-question h2 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  text-align: center;
  color: #444;
}
.p2-button-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 15px; /* 質問タイトルとの間隔 */
}
.special-btn {
  padding: 8px 16px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
  border-radius: 20px; /* 角丸 */
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.special-btn:hover {
  background-color: #f0f0f0;
}
.special-btn.active {
  background-color: #3b82f6; /* Tailwindブルー */
  color: #fff;
  border-color: #3b82f6;
  font-weight: bold;
}

/* Page2 感性質問カード */
.p2-question-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 3px rgba(0,0,0,0.1);
  margin-bottom: 15px; /* カード間のマージン */
  padding: 12px;
}
.p2-question-title {
  font-weight: bold;
  margin-bottom: 6px;
}
.p2-question-desc {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #666;
}
.p2-labels-row {
  display: flex;
  justify-content: space-between;
  width: 260px; /* ラベル行の幅 */
  margin: 0 auto 10px; /* 中央寄せ、下マージン */
  font-size: 0.85rem;
  color: #666;
}
.p2-answers-row {
  display: flex;
  justify-content: center;
  gap: 12px; /* 回答円の間隔 */
  margin-bottom: 8px;
}
.p2-answer-option input[type="radio"] { display: none; } /* ラジオボタン本体は隠す */
.p2-answer-option .circle {
  display: inline-flex;
  width: 34px; height: 34px; /* 円のサイズ */
  border-radius: 50%;
  background: #ddd; /* デフォルトの背景色 */
  border: 2px solid #fff; /* 境界線 */
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.p2-answer-option:hover .circle { transform: scale(1.1); }
/* 各円の選択時の色 */
.p2-answers-row .p2-answer-option:nth-child(1) .circle { --circleColor: #34d399; } /* 左端 */
.p2-answers-row .p2-answer-option:nth-child(2) .circle { --circleColor: #86efac; }
.p2-answers-row .p2-answer-option:nth-child(3) .circle { --circleColor: #bbf7d0; }
.p2-answers-row .p2-answer-option:nth-child(4) .circle { --circleColor: #ddd; } /* 中央 */
.p2-answers-row .p2-answer-option:nth-child(5) .circle { --circleColor: #e9d5ff; }
.p2-answers-row .p2-answer-option:nth-child(6) .circle { --circleColor: #c084fc; }
.p2-answers-row .p2-answer-option:nth-child(7) .circle { --circleColor: #a26ff9; } /* 右端 */
/* 選択された円のスタイル */
.p2-answer-option input[type="radio"]:checked + .circle {
  background: var(--circleColor);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08); /* 選択時の縁取り */
}

/* 予算ボタン */
#budgetWrapper {
  display: flex;
  flex-wrap: wrap; /* 折り返し */
  gap: 10px; /* ボタン間の隙間 */
  margin-bottom: 20px; /* 下のマージン */
}
.budget-btn {
  border-radius: 16px; /* 角丸 */
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9em;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
}
.budget-btn.active {
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  color: #fff; /* アクティブ時の文字色 */
  border: none; /* 境界線は不要に */
  /* 背景色はJSで設定 */
}

/* メールアドレス入力フィールド */
.mail-input-wrapper {
  text-align: center;
  margin: 60px 0 30px;
}
.mail-input {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  outline: none;
  display: block;
  width: 100%;
  font-size: 1.2rem;
  max-width: 400px;
  margin: 0 auto 10px;
  text-align: center;
}
/* メール登録ボタン */
.custom-button--mail {
  padding: 0.8rem 1.5rem;
}
.custom-button--mail::before {
  content: "\f0e0"; /* Font Awesome のメールアイコン */
}

/* 推奨カテゴリ・ギャップメッセージ */
#topCategoryDiv { margin-bottom: 10px; }
.recommend-note { font-size: 0.9em; color: #4b5563; }
.recommend-prompt { font-size: 0.9em; color: #666; margin-top: 10px; }
.gap-message {
    font-size: 0.9em;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    border-left-width: 4px;
    border-style: solid;
}
.gap-positive { background-color: #f0fdf4; border-color: #22c55e; color: #166534; }
.gap-neutral { background-color: #eff6ff; border-color: #3b82f6; color: #1e40af; }
.gap-alert { background-color: #fffbeb; border-color: #f59e0b; color: #78350f; }

/* --- 街カード --- */
.city-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 2px rgba(0,0,0,0.1);
  margin-bottom: 12px;
  padding: 12px;
  border-left: 4px solid #ccc; /* 左の帯 */
  cursor: pointer;
  transition: all 0.3s ease;
  /* ▼▼▼ 街サムネイル用にレイアウト調整 ▼▼▼ */
  display: flex; /* 横並び */
  gap: 15px; /* 画像とテキストの間の隙間 */
}
.city-card-image {
    width: 100px; /* 画像の幅を固定 */
    height: 100px; /* 画像の高さを固定 */
    object-fit: cover; /* 画像をコンテナに合わせてトリミング */
    border-radius: 4px; /* 角丸 */
    flex-shrink: 0; /* 画像が縮まないように */
}
.city-card-content {
    flex-grow: 1; /* テキスト部分が残りの幅を取るように */
}
/* ▲▲▲ 街サムネイル用にレイアウト調整 ▲▲▲ */

.city-card.expanded {
  /* max-height: none; は不要 */
  width: 100%;
  margin-bottom: 25px; /* 展開時の下マージンを広げる */
  box-shadow: 0 3px 10px rgba(0,0,0,0.1); /* 影を濃くする */
  /* ▼▼▼ 展開時はFlexレイアウトを解除して縦並びに ▼▼▼ */
  display: block; /* 通常のブロック要素に戻す */
  cursor: default; /* 展開時はポインターを変える */
}
.city-card.expanded .city-card-image {
    /* 展開時の画像スタイル (任意で調整) */
    width: 100%; /* 横幅いっぱいに */
    max-width: 400px; /* 最大幅を設定 */
    height: auto; /* 高さは自動 */
    margin-bottom: 10px; /* 画像とテキストの間のマージン */
    display: block; /* 中央寄せのため */
    margin-left: auto;
    margin-right: auto;
}
.city-card.expanded .city-card-content {
    /* 展開時のテキストコンテナ調整 (特に不要かも) */
}

.city-chips {
  display: flex;
  gap: 6px;
  margin: 6px 0;
  flex-wrap: wrap;
}
.tag-chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75em;
  color: #fff;
}
.city-comment {
  margin: 6px 0;
  font-size: 0.9em;
  line-height: 1.4;
}
.city-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.tag-hash {
  background: #ddd;
  color: #333;
  font-size: 0.75em;
  padding: 4px 8px;
  border-radius: 12px;
}

/* レビュー関連 */
.rating-stars { color: #ffd700; font-size: 0.9em; margin-top: 3px; }
.review-count { font-size: 0.75em; color: #666; margin-left: 5px; }
.review-section {
  display: none; /* 通常は非表示 */
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid #eee; /* 区切り線 */
}
.city-card.expanded .review-section { display: block; } /* 展開時に表示 */

.review-list { /* レビューリスト全体 */
    margin-top: 10px;
}

.review-item {
  margin-bottom: 15px;
  padding: 10px;
  background: #f9f9f9; /* 背景色 */
  border-radius: 8px;
}
.review-header { display: flex; align-items: center; margin-bottom: 5px; }
.reviewer-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  overflow: hidden;
  background-color: #e0e0e0; /* フォールバック背景 */
  flex-shrink: 0;
  display: flex; /* イニシャル表示用 */
  align-items: center; /* イニシャル表示用 */
  justify-content: center; /* イニシャル表示用 */
}
.reviewer-icon img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.reviewer-icon .initials-fallback {
  /* display: flex; は .reviewer-icon に設定済み */
  width: 100%; height: 100%;
  font-size: 16px; color: #999; font-weight: bold;
}
.reviewer-info { flex: 1; }
.reviewer-name { font-weight: bold; font-size: 0.9em; }
.reviewer-meta { font-size: 0.75em; color: #666; }
.review-stars { color: #ffd700; font-size: 0.9em; margin-left: auto; /* 右寄せ */ padding-left: 10px; }
.review-content { font-size: 0.85em; line-height: 1.5; }
.review-date { font-size: 0.75em; color: #999; text-align: right; margin-top: 5px; }
.review-keywords { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; margin-bottom: 10px; }
.keyword-label { font-weight: bold; font-size: 0.8em; color: #555; margin-right: 5px;}
.keyword-tag { background: #eee; padding: 3px 8px; border-radius: 12px; font-size: 0.7em; color: #333; }

/* レビューもっと見るボタン */
.load-more-btn {
  display: block;
  width: calc(100% - 20px); /* 左右に少し余白 */
  margin: 15px auto 5px;
  padding: 8px 15px;
  font-size: 0.85em;
  color: #3b82f6;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s;
}
.load-more-btn:hover {
  background-color: #dbeafe;
}

/* 物件カルーセルセクション */
.property-carousel-section {
    display: none; /* 通常は非表示 */
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee; /* 区切り線 */
}
.city-card.expanded .property-carousel-section { display: block; } /* 展開時に表示 */

.property-carousel-section h4 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #333;
}

.property-carousel-container {
    overflow-x: auto; /* 横スクロールを有効に */
    -webkit-overflow-scrolling: touch; /* iOSでの慣性スクロール */
    padding-bottom: 10px; /* スクロールバーのための余白 */
    min-height: 160px; /* ローディング表示が見えるように最低限の高さを確保 */
    position: relative; /* ローディング表示のため */
}

.property-carousel-wrapper {
    display: flex; /* アイテムを横並びに */
    flex-wrap: nowrap; /* 折り返さない */
    gap: 10px; /* アイテム間の隙間 */
    padding-left: 5px; /* 最初のア イテムの左余白 */
    padding-right: 5px; /* 最後のアイテムの右余白 */
}

.property-carousel-item {
    flex: 0 0 auto; /* アイテムが縮まないように */
    width: 180px; /* スマホ向けアイテム幅 (調整可) */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
.property-carousel-item:hover {
    transform: translateY(-2px); /* 少し浮き上がる効果 */
}

.property-carousel-item a {
    display: block;
    text-decoration: none;
    color: #333;
}

.property-carousel-item img {
    width: 100%;
    height: 100px; /* 画像の高さを固定 (調整可) */
    object-fit: cover;
    display: block;
    background-color: #eee; /* 画像読み込み中の背景 */
}

.property-carousel-item .prop-item-price {
    font-weight: bold;
    color: #e44d26; /* 目立つ色 */
    font-size: 0.95em;
    padding: 5px 8px 0;
}

.property-carousel-item .prop-item-info,
.property-carousel-item .prop-item-access {
    font-size: 0.75em;
    color: #555;
    padding: 2px 8px;
    line-height: 1.3;
    white-space: nowrap; /* 1行に収める */
    overflow: hidden;
    text-overflow: ellipsis; /* はみ出したテキストを...で表示 */
}
.property-carousel-item .prop-item-access {
    padding-bottom: 5px;
}

/* 物件カルーセルの状態表示 */
.loading-placeholder,
.error-message,
.no-properties-message {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    width: 100%; /* コンテナ幅に合わせる */
    position: absolute; /* コンテナの中央に配置 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.error-message {
    color: #dc3545; /* エラーは赤系 */
    font-style: normal;
}
.no-properties-message {
    font-style: normal;
}

/* 物件もっと見るリンク */
.more-properties-link {
    text-align: right;
    margin-top: 10px;
    font-size: 0.9em;
    display: none; /* 通常は非表示 */
}
.city-card.expanded .more-properties-link { display: block; } /* JSで制御するが念のため */

.more-properties-link a {
    color: #0d6efd; /* リンク色 */
    text-decoration: none;
}
.more-properties-link a:hover {
    text-decoration: underline;
}

/**************************************************************
 * メディアクエリ
 **************************************************************/
@media (min-width: 768px) {
  /* Page1 */
  .question-block { margin-bottom: 40px; }
  .labels-row { max-width: 550px; } /* PCではラベル表示幅を広げる */
  .answers-row { max-width: 400px; } /* PCでは回答円の幅も少し広げる */
  .result-type-image { width: 350px; } /* PCでは画像を少し大きく */

  /* Page2 (必要なら調整) */
  .p2-labels-row { width: 300px; }
  .p2-answers-row { gap: 15px; }
  .p2-answer-option .circle { width: 38px; height: 38px; }

  .custom-button--mail { padding: 0.8rem 2.5rem; }
}

/* メール送信フォーム */
.mail-input.success {
  border-color: #4ade80;
  color: #166534;
}

.mail-input.error {
  border-color: #ef4444;
  color: #991b1b;
}

.mail-input.success::placeholder {
  color: #166534;
}

.mail-input.error::placeholder {
  color: #991b1b;
} 

.thank-you-message {
  text-align: center;
  color: #4CAF50;
  font-size: 1.2rem;
  margin-top: 15px;
  font-weight: bold;
  padding: 10px;
  background-color: #f0fdf4;
  border-radius: 8px;
  border: 1px solid #4CAF50;
  animation: fadeIn 0.5s ease-in;
  display: none; /* Hidden by default */
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}