/* realestate.php ページ固有スタイル */

/* =============================================
   ヘッダー お問い合わせボタン：ゴールドグラデーション
============================================= */
.header__cta {
  background:
    linear-gradient(
      160deg,
      #f5e199 0%,
      #c9a84c 25%,
      #8b6914 50%,
      #c9a84c 72%,
      #f5e199 88%,
      #a07820 100%
    );
  color: #1a1000;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow:
    0 2px 6px rgba(100, 70, 0, 0.5),
    inset 0 1px 1px rgba(255, 245, 180, 0.6),
    inset 0 -1px 2px rgba(80, 50, 0, 0.4);
  border: none;
  text-shadow: 0 1px 1px rgba(255, 240, 160, 0.5);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.header__cta:hover {
  filter: brightness(1.1);
  box-shadow:
    0 4px 12px rgba(100, 70, 0, 0.6),
    inset 0 1px 1px rgba(255, 245, 180, 0.6),
    inset 0 -1px 2px rgba(80, 50, 0, 0.4);
}

/* メインビューの上にヘッダーを重ねる */
.header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  overflow: visible;
}

/* MV上部にヘッダー分の余白なし（MV自体がfull height） */
body#top .smb-mv {
  /* ヘッダーと重ねるため特にパディングなし */
}

/* =============================================
   ヘッダーロゴ：大きくしてヘッダー下にはみ出す
============================================= */
/* ヘッダー内の flex コンテナもはみ出し許可 */
.header-bar .header__inner {
  overflow: visible;
  position: relative;
  padding-left: 160px; /* ロゴ幅（130px）＋余白分 */
}

/* ロゴ：左上に固定配置 */
.header-bar .header__logo {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 110;
  line-height: 0;
  background: #fff;
  border-radius: 0 0 20px 0; /* 右下のみ角丸 */
  padding: 0 10px 10px 0;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.1);
}

.header-bar .header__logo img {
  height: 130px;
  width: 130px;
  object-fit: contain;
  display: block;
}

@media (max-width: 1100px) {
  .header-bar .header__inner {
    padding-left: 110px;
  }

  .header-bar .header__logo img {
    height: 90px;
    width: 90px;
  }
}

@media (max-width: 639px) {
  .header-bar .header__inner {
    padding-left: 85px;
  }

  .header-bar .header__logo img {
    height: 70px;
    width: 70px;
  }
}

/* =============================================
   取り扱い物件セクション
============================================= */
.smb-property-section {
  background: #fff;
  padding: 80px 0;
  overflow: hidden;
}

.smb-property-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 60px;
}

/* --- 左：ラベルエリア --- */
.smb-property-label {
  flex: 0 0 230px;
  color: #1a1a1a;
}

.smb-property-label__deco {
  display: block;
  font-size: 1.4rem;
  letter-spacing: 0.5em;
  margin-bottom: 16px;
  opacity: 0.4;
}

.smb-property-label__title {
  font-family: 'Outfit', 'Cinzel', sans-serif;
  font-size: 5rem;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.smb-property-label__ja {
  font-size: 1.3rem;
  margin-bottom: 32px;
  color: #444;
}

.smb-property-btn {
  display: inline-block;
  border: 1px solid #c9a84c;
  border-radius: 50px;
  padding: 10px 32px;
  color: #c9a84c;
  font-size: 1.3rem;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.smb-property-btn:hover {
  background: #c9a84c;
  color: #fff;
  opacity: 1;
}

/* --- 右：カードエリア --- */
.smb-property-cards {
  flex: 1;
  min-width: 0;
}

/* CMS出力 blog-wrap */
.blog-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-wrap li {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-wrap li:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.blog-wrap li a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.blog-img {
  margin: 0;
  overflow: hidden;
  height: 180px;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-wrap li:hover .blog-img img {
  transform: scale(1.05);
}

.blog-detail {
  padding: 14px 16px 18px;
}

.blog-date {
  display: block;
  font-family: 'Outfit', 'Cinzel', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #2980c4;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.blog-title {
  font-size: 1.3rem;
  color: #1a1a1a;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- レスポンシブ --- */
@media (max-width: 1100px) {
  .blog-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 896px) {
  .smb-property-section {
    padding: 60px 0;
  }

  .smb-property-inner {
    flex-direction: column;
    padding: 0 20px;
    gap: 36px;
  }

  .smb-property-label {
    flex: none;
    text-align: center;
  }

  .smb-property-label__title {
    font-size: 3.5rem;
  }

  .blog-wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .blog-img {
    height: 140px;
  }
}

/* =============================================
   entry_list.php：2カラムレイアウト
============================================= */

/* 外枠：メイン＋サイドバー */
.entry-list-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

/* メイン：記事一覧エリア */
.entry-list-layout__main {
  flex: 1;
  min-width: 0;
}

/* entry_list内のblog-wrapは3カラム */
.entry-list-layout__main .blog-wrap {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* サイドバー */
.entry-list-layout__sidebar {
  flex: 0 0 220px;
  position: sticky;
  top: 100px;
}

/* サイドバーウィジェット */
.sidebar-widget {
  background: #fff;
  border: 1px solid #e8e0d5;
  border-radius: 10px;
  padding: 24px 20px;
}

.sidebar-widget__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #c9a84c;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-widget__title::before {
  content: "≡";
  color: #c9a84c;
  font-size: 1.6rem;
  line-height: 1;
}

/* CMS月別アーカイブ出力スタイル */
.sidebar-widget ul,
#cms-blog-entry-month-1-area ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-widget li,
#cms-blog-entry-month-1-area li {
  margin: 0;
}

.sidebar-widget a,
#cms-blog-entry-month-1-area a {
  display: block;
  background: #c9a84c;
  color: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 1.3rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.sidebar-widget a:hover,
#cms-blog-entry-month-1-area a:hover {
  background: #b8943d;
  color: #fff;
  opacity: 1;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .entry-list-layout__main .blog-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .entry-list-layout {
    flex-direction: column;
    gap: 40px;
  }

  .entry-list-layout__sidebar {
    flex: none;
    width: 100%;
    position: static;
  }

  .entry-list-layout__main .blog-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================
   entry.php：記事詳細カード
============================================= */

.entry-detail-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 40px 40px 32px;
  margin-bottom: 24px;
  border-top: 4px solid #c9a84c;
}

/* タイトル */
.entry-detail__title-wrap {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e0d5;
}

.entry-detail__title-wrap h1,
.entry-detail__title-wrap h2,
#cms-blog-entry-detail-1-area h1,
#cms-blog-entry-detail-1-area h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.5;
  margin: 0;
}

/* 日付 */
.entry-detail__date-wrap {
  margin-bottom: 28px;
  color: #c9a84c;
  font-size: 1.3rem;
  font-family: 'Outfit', 'Cinzel', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.entry-detail__date-wrap::before {
  content: "🕐";
  font-size: 1.2rem;
}

/* 本文 */
.entry-detail__body-wrap {
  font-size: 1.5rem;
  line-height: 1.9;
  color: #333;
  margin-bottom: 36px;
}

.entry-detail__body-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 16px 0;
  display: block;
}

/* ページャ（前後記事） */
.entry-detail__pager-wrap {
  padding-top: 24px;
  border-top: 1px solid #e8e0d5;
  font-size: 1.3rem;
}

.entry-detail__pager-wrap .pages,
.pages {
  text-align: center;
}

.entry-detail__pager-wrap a {
  color: #c9a84c;
  text-decoration: none;
  transition: opacity 0.2s;
}

.entry-detail__pager-wrap a:hover {
  opacity: 0.7;
}

/* 一覧へ戻るボタン */
.entry-detail__back {
  text-align: center;
  margin-top: 8px;
}

.entry-detail__back-btn {
  display: inline-block;
  background: #c9a84c;
  color: #fff;
  border-radius: 50px;
  padding: 14px 48px;
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: background 0.3s;
}

.entry-detail__back-btn:hover {
  background: #b8943d;
  color: #fff;
  opacity: 1;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .entry-detail-card {
    padding: 24px 20px;
  }
}

/* =============================================
   property.php：物件ラップ（カード＋アコーディオン）
============================================= */
.smb-property-wrap {
  margin-bottom: 32px;
}

/* カードをflex-wrapに：詳細エリアが下段に折り返す */
.smb-property-wrap .smb-property-card {
  flex-wrap: wrap;
  align-items: flex-start;
}

/* 詳細を見るボタン */
.smb-property-card__actions {
  margin-top: 16px;
  text-align: center;
}

.smb-detail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #c9a84c 0%, #8b6914 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 40px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: filter 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 8px rgba(139, 105, 20, 0.3);
}

.smb-detail-toggle:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(139, 105, 20, 0.45);
}

.smb-detail-toggle i {
  font-size: 1.1rem;
  transition: transform 0.3s;
}

.smb-detail-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* アコーディオン本体：カード内で横幅100%に広がる */
.smb-property-detail {
  width: 100%;
  flex-basis: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* 詳細情報テーブルエリア */
.smb-property-detail__inner {
  padding: 20px 24px 16px;
  border-top: 1px solid #e8e0d5;
}

.smb-property-detail__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 4px solid #c9a84c;
}

/* 詳細テーブル（ゴールド系ヘッダー・2列） */
.smb-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
}

.smb-detail-table th,
.smb-detail-table td {
  padding: 10px 14px;
  border: 1px solid #e8d9b0;
  vertical-align: middle;
  line-height: 1.5;
}

.smb-detail-table th {
  background: #c9a84c;
  color: #fff;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  width: 130px;
}

.smb-detail-table td {
  background: #fffdf5;
  color: #333;
}

/* スマホ対応 */
@media (max-width: 639px) {
  .smb-property-detail__inner {
    padding: 16px;
  }

  .smb-detail-table,
  .smb-detail-table thead,
  .smb-detail-table tbody,
  .smb-detail-table tr {
    display: block;
    width: 100%;
  }

  .smb-detail-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e8d9b0;
  }

  .smb-detail-table th,
  .smb-detail-table td {
    border: none;
    border-right: 1px solid #e8d9b0;
  }

  .smb-detail-table td:last-child {
    border-right: none;
  }

  .smb-detail-table td[colspan="3"] {
    grid-column: span 2;
    border-right: none;
  }
}
