/*
Theme Name: Lightning Child Sample
Template: lightning
*/

/* ========================================
   変数（全ページ共通）
======================================== */
:root {
  --main-blue: #2f6fa3;
  --main-blue-dark: #25597f;
  --main-blue-soft: #eef5fb;
  --text-main: #24313d;
  --text-sub: #5c6b78;
  --line: #e5ebf1;
  --line-soft: #edf2f6;
  --bg-soft: #f8fafc;
  --bg-soft-2: #fafbfd;
  --danger: #f18f0e;
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 24px rgba(0, 0, 0, 0.08);
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
}

/* ========================================
   共通
======================================== */
html { scroll-behavior: smooth; }

body {
  background: #fff;
  color: var(--text-main);
  line-height: 1.7;
  font-family: "Kosugi Maru", sans-serif !important;
}

a {
  color: var(--main-blue);
  text-decoration: none;
  transition: color .25s, background .25s, border-color .25s, box-shadow .25s, transform .25s;
}
a:hover { color: var(--main-blue-dark); }

img { max-width: 100%; height: auto; }

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
  
  /*width: 100% !important;
  max-width: 100% !important;
*/
}

/* ========================================
   Lightning デフォルト上書き（安全版）
======================================== */

/* H2 の左線・上線を完全無効化 */
.top-section h2 {
  border: none !important;
  border-left: none !important;
  border-top: none !important;
  margin: 0 0 28px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding-left: 0;
}

/* Lightning の ::after を無効化 */
.top-section h2::after {
  content: none !important;
}

/* セクション共通余白 */
.top-section {
  padding: 72px 0;
}

/* ========================================
   カード（全ページ共通）
======================================== */
.card,
.property-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.card:hover,
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #d7e2ec;
}

.card a,
.property-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* 画像 */
.property-thumb {
  background: #eef2f6;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.property-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 本文 */
.property-info {
  padding: 14px;
  background: #fff;
}
.property-title {
  margin: 0 0 8px;
  color: var(--text-main);
  font-size: 17px;
  font-weight: 700;
}
.property-info p {
  margin: 0 0 6px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.7;
}
.property-price {
  color: #c0392b;
  font-weight: 700;
}

/* ========================================
   アーカイブ専用：横並びレイアウト
======================================== */
.property-card--archive {
  display: flex;
  gap: 20px;
  padding: 16px;
  margin-bottom: 24px; /* カード同士がくっつかないよう１行くらいあける */
  /* height: 300px;*/  /* ← カードの高さを決める（自由に調整） */
  /*height:auto;*/
}

.property-card--archive a {
  display: flex;
  gap: 20px;
  width: 100%;
}

/* 左：画像 */
.property-card--archive .property-thumb {
  width: 40%;
  aspect-ratio: auto; /* 上書きして縦長対応 */
}

/* 右：情報 */
.property-card--archive .property-info {
  width: 60%;
  padding: 4px 0;
}

/* スマホでは縦に戻す */
@media (max-width: 768px) {
  .property-card--archive,
  .property-card--archive a {
    flex-direction: column;
  }

  .property-card--archive .property-thumb,
  .property-card--archive .property-info {
    width: 100%;
  }
}


/* 一覧だけ Lightning の枠を完全に消す */
.property-thumb--archive {
  aspect-ratio: unset !important;
  background: none !important;
  height: auto !important;
}


/* 画像を元の比率のまま表示（トップページと同じ） */
.property-thumb--archive img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ← これで縦いっぱいに広がる */
}



/* ========================================
   ボタン（全ページ共通）
======================================== */
.more { margin-top: 24px; }
.more a {
  display: inline-block;
  background: var(--main-blue);
  color: #fff;
  padding: 11px 18px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(47, 111, 163, 0.16);
  font-weight: 700;
}
.more a:hover {
  background: var(--main-blue-dark);
  color: #fff;
}

/* ========================================
   フッター
======================================== */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.site-footer a { color: #31475e; }
.site-footer a:hover { color: var(--main-blue); }


/* =========================================================
   トップページ専用レイヤー（HERO・カード・余白調整）
   ※ 他ページに影響しないように .top-page を必ず付ける
========================================================= */

/* --------------------------------
   HERO（スライダー）
-------------------------------- */

/* HEROスライダー：画像比率に合わせて高さを自動調整 */
.top-page .hero-swiper,
.top-page .hero-swiper.swiper {
  height: 31.5vw; /* 1900×600 の比率 */
  max-height: 600px; /* PCで巨大化しすぎないように */
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* スライド背景画像 */
.top-page .hero-swiper .swiper-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* スライド画像 */
.slide-1 {
  background-image: url("https://wp.kamiya-re.com/wp-content/uploads/2026/06/slide1.jpg");
}
.slide-2 {
  background-image: url("https://wp.kamiya-re.com/wp-content/uploads/2026/04/slide2.jpg");
}
.slide-3 {
  background-image: url("https://wp.kamiya-re.com/wp-content/uploads/2026/04/slide3.jpg");
}

/* スマホ調整（高さが大きくなりすぎないように） */
@media (max-width: 768px) {
  .top-page .hero-text {
    padding: 10px 16px;
  }

  .top-page .hero-text h2 {
    font-size: 18px;
    margin-bottom: 4px;
  }

  .top-page .hero-text p {
    font-size: 11px;
  }
}



/* 下帯テキスト */
.top-page .hero-text {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 28px;
  background: linear-gradient(
    to right,
    rgba(47, 63, 77, 0.76),
    rgba(47, 63, 77, 0.55)
  );
  backdrop-filter: blur(4px);
}

.top-page .hero-text h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 25px;
  font-weight: 700;
}

.top-page .hero-text p {
  margin: 0;
  color: #ebf2f8;
  font-size: 13px;
}

/* Swiper UI */
.top-page .hero-swiper .swiper-pagination {
  bottom: 8px !important;
}
.top-page .hero-swiper .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, 0.78);
}
.top-page .hero-swiper .swiper-pagination-bullet-active {
  background: #fff;
}
.top-page .hero-swiper .swiper-button-prev,
.top-page .hero-swiper .swiper-button-next {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}


/* --------------------------------
   トップページ：物件グリッド
-------------------------------- */
.top-page .property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* --------------------------------
   トップページ：カード調整
-------------------------------- */
.top-page .property-card {
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  transition: box-shadow .2s;
}
.top-page .property-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.top-page .property-thumb img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.top-page .property-info {
  padding: 18px 20px;
}

.top-page .property-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.top-page .property-price {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #e67e22 !important;
  margin-bottom: 12px;
  line-height: 1.3;
}

/* --------------------------------
   トップページ：余白調整
-------------------------------- */
.top-page .top-section {
  padding: 30px 0; /* 元の72px → 圧縮 */
}

.top-page .top-section h2 {
  margin-bottom: 10px;
}

/* お知らせの行間調整 */
.top-page .news-list li {
  padding: 5px 0;
  line-height: 1.5;
}
.top-page .news-list a {
  line-height: 1.5;
}

/* 「もっと見る」ボタンの余白 */
.top-page .more {
  margin-top: 10px;
}


/* --------------------------------
   スマホ対応
-------------------------------- */
@media (max-width: 767px) {
  .top-page .hero-swiper { height: 190px; }
  .top-page .hero-text { padding: 10px 14px; }
  .top-page .hero-text h2 { font-size: 16px; }
  .top-page .hero-text p { font-size: 10px; }

  .top-page .property-grid {
    grid-template-columns: 1fr;
  }

  .top-page .top-section {
    padding: 50px 0;
  }
}

/* =========================================================
   トップページ専用：色分け（お知らせ・賃貸・売買）
   ※ 他ページに影響しないように .top-page を必ず付ける
========================================================= */

/* --------------------------------
   共通：H2 の帯デザイン
-------------------------------- */
.top-page .top-section h2 {
    border: none !important;
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

/* Lightning の ::after を無効化 */
.top-page .top-section h2::after {
    content: none !important;
}

/* --------------------------------
   お知らせ（淡いピンク × 濃いピンク）
-------------------------------- */
.top-page .top-section.news .container {
    background-color: #fff7f780;
    padding: 30px;
    border-radius: 12px;
}

.top-page .top-section.news h2 {
    background-color: #e28484;
}

.top-page .top-section.news .more a {
    background-color: #e28484;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
}
.top-page .top-section.news .more a:hover {
    background-color: #d06f6f;
}

/* --------------------------------
   賃貸物件（淡い青 × 濃い青）
-------------------------------- */
.top-page .top-section.property.rental .container {
    background-color: #e8f3ff7c;
    padding: 30px;
    border-radius: 12px;
}

.top-page .top-section.property.rental h2 {
    background-color: #0074c8;
}

.top-page .top-section.property.rental .more a {
    background-color: #0074c8;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
}
.top-page .top-section.property.rental .more a:hover {
    background-color: #005fa3;
}

/* --------------------------------
   売買物件（淡い緑 × 濃い緑）
-------------------------------- */
.top-page .top-section.property.sale .container {
    background-color: #dbf5e683;
    padding: 30px;
    border-radius: 12px;
}

.top-page .top-section.property.sale h2 {
    background-color: #2e9e4f;
}

.top-page .top-section.property.sale .more a {
    background-color: #2e9e4f;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
}
.top-page .top-section.property.sale .more a:hover {
    background-color: #248a42;
}

/* NEWバッジ */
.new-badge {
  position: absolute;
  top: 8px;
  left: 0px;
  z-index: 2;
  background: var(--danger);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  padding: 3px 9px;
  /* border-radius: 999px; */
  /* box-shadow: 0 2px 8px rgba(217, 72, 65, 0.18); */
}

/* ジャンルバッジ */
.genre-badge {
  position: absolute;
  top: 8px;
  right: 0px;
  z-index: 2;
  background:rgba(47, 63, 77, 0.76);
  color: white;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  padding: 3px 9px;
  /* border-radius: 999px; 矩形を角丸にする*/
}

/* お知らせ新着用のNEWバッジ */
.new-label {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  padding: 3px 9px;
  /* border-radius: 999px; */
  /* box-shadow: 0 2px 8px rgba(217, 72, 65, 0.18); */
}


/* 一覧ページ（archive）のジャンルバッジ位置調整 */
.property-card--archive .property-thumb--archive {
  position: relative;
}

.property-card--archive .property-thumb--archive .genre-badge {
  position: absolute;
  top: 8px;
  right: 0px;   /* ← ここが一覧ページ用の左端固定 */
  z-index: 10;
  background:rgba(47, 63, 77, 0.76);
  color: #fff;
  padding: 4px 10px;
  font-size: 14px;
}


/* 賃貸一覧ページのタブ表示 */
.chintai-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.chintai-tabs a {
    padding: 10px 15px;
    background: #f5f5f5;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    transition: 0.2s;
}

.chintai-tabs a:hover {
    background: #e0e0e0;
}

.chintai-tabs a.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* 売買一覧ページのタブ表示 */
.baibai-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.baibai-tabs a {
    padding: 10px 15px;
    background: #f5f5f5;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    transition: 0.2s;
}

.baibai-tabs a:hover {
    background: #e0e0e0;
}

.baibai-tabs a.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}



/* --------------------------------
   セクション間の余白を詰める（.top-page は一旦やめる）
-------------------------------- */
/* main（トップページ全体）の余白をゼロにする */
.top-page {
  margin: 5px !important;
  padding: 5px !important;
}

/* セクションの余白もゼロに */
.top-page .top-section {
  margin: 5px !important;
  padding: 5px !important;
}

/* container の余白も詰める */
.top-page .container {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

/* 一覧ページのタブ色づけ */
.chintai-tabs a {
    background: #f0f0f0;
    color: #333;
    padding: 8px 12px;
    display: inline-block;
    margin-right: 4px;
}

.chintai-tabs a.active {
    background: #0073aa;
    color: #fff;
    font-weight: bold;
}


/* ============================
   詳細ページデザイン
============================ */

/* 物件ヘッダー */
.property-header {
    background: #fff;
    padding: 0 25px 25px; /* 上0 / 左右25 / 下25 */
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 25px;
}

.property-header .property-title {
    font-size: 16pt;
    margin: 0;
    background-color: #849eb38f; /* Lightningの青 */
    padding: 8px 12px;
}

.property-summary {
    display: block;
    align-items: center;
    gap: 20px;
}

.property-summary .price {
    font-size: 16pt;
    font-weight: bold;
    color: #d9534f;
}

.summary-items .item {
    margin-right: 15px;
    font-size: 1rem;
    color: #555;
}

/* --- 画像ギャラリー --- */
.gallery-wrapper {
    margin-bottom: 30px;
}

.main-slider img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.thumb-slider {
    margin-top: 10px;
}

.thumb-slider img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
}

.thumb-slider .swiper-slide-thumb-active img {
    opacity: 1;
    border: 2px solid #00a0e9;
}

/* 物件情報テーブル */
.property-info-box {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.property-info-box h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.property-table {
    width: 100%;
    border-collapse: collapse;
}

.property-table th {
    width: 30%;
    background: #f7f7f7;
    padding: 10px;
    border: 1px solid #ddd;
    font-weight: bold;
}

.property-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

/* メイン画像の高さを控えめに固定（強制版） */
.main-slider .swiper-slide img {
    width: 100% !important;
    height: 340px !important; /* ← 控えめ */
    object-fit: cover !important;
    border-radius: 6px;
}

/* サムネイルも控えめに */
.thumb-slider .swiper-slide img {
    width: 100% !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: 4px;
}


@media (max-width: 600px) {
    .main-slider .swiper-slide img {
        height: 240px;
    }
}


/* トップページのお知らせ */
.news-list .first-news {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
}
.news-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.news-item .date {
    display: inline-block;
    width: 120px; /* ← 日付の幅を固定 */
    font-size: 12pt;
}
.news-item.first-news .news-content-full {
    margin-left: 100px;
}


/* 賃貸詳細ページデザイン */
.single-chintai .site-body-container.container {
    max-width: 100% !important;
    padding: 0 !important;
}

.single-chintai .main-section {
    width: min(1200px, 92%);
    margin: 0 auto;
    background: #fff; /* ← 背景を main に移す */
    padding: 20px;
    border-radius: 8px;
}

/* 売買詳細ページデザイン */
.single-baibai .site-body-container.container {
    max-width: 100% !important;
    padding: 0 !important;
}

.single-baibai .main-section {
    width: min(1200px, 92%);
    margin: 0 auto;
    background: #fff; /* ← 背景を main に移す */
    padding: 20px;
    border-radius: 8px;
}


/* トップスライダー上の余白を完全に消す */
.home .site-body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 管理者向けウィジェットエリアの注意書きを非表示にする */
.home .vk-mobile-nav-widget-area {
    display: none !important;
}

/* ============================
   会社概要ページ全体を明るく柔らかく
============================ */
/* ============================
   ページ全体を明るく柔らかく
============================ */
.page-id-8 {
  background: #F9FCFF; /* ほぼ白の淡い水色 */
  padding: 0 0 60px; /* 上0 / 左右0 / 下60 */
}

/* ============================
   表のカード化
============================ */
.page-id-8 table {
  width: 100%;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  overflow: hidden;
  border-collapse: collapse;
}

/* セル共通 */
.page-id-8 table td {
  padding: 18px 22px;
  border-bottom: 1px solid #E6EEF5;
}

/* ============================
   1列目（項目タイトル）
============================ */
.page-id-8 table td:nth-child(1) {
  background: #d2e2f18c !important; /* 明るい青 */
  color: #000000;
  font-weight: 600;
  width: 28%;
}

/* ============================
   2列目（内容）
============================ */
.page-id-8 table td:nth-child(2) {
  background: #ffffff93;
}

/* ============================
   行ごとストライプ（2列目に適用）
============================ */
.page-id-8 table tr:nth-child(even) td:nth-child(2) {
  background: #f5faff9f; /* ほんのり青 */
}

/* 最後の行のボーダー消し */
.page-id-8 table tr:last-child td {
  border-bottom: none;
}

/* ============================
   地図のカード化
============================ */
.page-id-8 .map-wrap {
  background: #FFFFFF;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  margin-top: 40px;
}

.page-id-8 .map-wrap iframe {
  border-radius: 10px;
  width: 100%;
  height: 360px;
}

/* ============================
   セクションの余白
============================ */
.page-id-8 section {
  margin-bottom: 70px;
}

/* =============================
    ページネーション
============================== */
.pagination .page-numbers {
    padding: 8px 14px;   /* ← 数字の左右に余白を追加 */
    margin: 0 6px;       /* ← ボタン同士の間隔を広げる */
    display: inline-block;
}
.pagination .page-numbers.current {
    background: #0078d7;
    color: #fff;
    border-radius: 4px;
}
