@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /* 1023px以下：Cocoonのモバイルヘッダーに任せる */
  .header-container-in.hlt-top-menu .logo-header {
      display: none;
  }

  .header-container-in.hlt-top-menu .header-contact {
      display: none !important;
  }

  .header-container-in.hlt-top-menu {
      min-height: 0 !important;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* 物件カードの骨格 */
.property-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    background: #fff;
    display: flex;
    gap: 20px;
}

.property-card__image {
    width: 250px;
    flex-shrink: 0;
    position: relative;
}

.property-card__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.property-card__body > div {
    margin-bottom: 6px;
}

.property-card__title {
    margin: 0 0 4px;
    font-size: 20px;
}

/* 賃料を目立たせる */
.property-card__rent {
    font-size: 18px;
    font-weight: bold;
    color: #d33;
}

.property-card__button {
    display: inline-block;
    padding: 6px 18px;
    background: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    margin-left: auto;
}

.property-card__button:hover {
    background: #fff;
    color: #0066cc;
    border: 1px solid #0066cc;
}

/* 物件概要4項目の収納箱 */
.property-card__summary {
    display: flex;
    gap: 4px;
    margin: 12px 0 8px;
    width: 100%;
}

.property-card__rent,
.property-card__deposit,
.property-card__key-money,
.property-card__room-type {
    flex: 1;
    padding: 2px 8px;
    border: 1px solid #ddd;
    text-align: center;
white-space: nowrap;
}

.property-card__rent .label,
.property-card__rent .value,
.property-card__deposit .label,
.property-card__deposit .value,
.property-card__key-money .label,
.property-card__key-money .value,
.property-card__room-type .label,
.property-card__room-type .value {
    display: block;
}

.property-card__deposit .value,
.property-card__key-money .value,
.property-card__room-type .value {
    font-size: 16px;
}

.property-card__body {
    flex: 1;
}

.property-card__summary .label {
    background: #eaf2f8;
    display: block;
    margin: -8px -8px 4px;
    padding: 2px 8px;
    width: calc(100% + 16px);
    box-sizing: border-box;
    font-size: 14px;
}

.property-card__type {
    position: absolute;
    top: 0;
    background: #0066cc;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.property-card__address {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding-left: 24px;
}

.property-card__address::before {
    content: "\f041";
    font-family: "FontAwesome";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.property-card__station {
    font-size: 16px;
    position: relative;
    padding-left: 24px;
}

.property-card__station::before {
    content: "\f238";
    font-family: "FontAwesome";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.property-card__address .label {
    font-weight: bold;
}

.property-card__station .label {
    font-weight: bold;
}

/* ヘッダー右側の連絡先 */
.header-contact {
    position: absolute;
    top: 15px;
    right: 30px;
    text-align: right;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-contact-phone {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
}

.header-contact-hours {
    font-size: 14px;
    margin-top: 0;
}

.header-contact-button {
    display: inline-block;
    margin-top: 6px;
    padding: 9px 16px;
    background: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

/* 邦來舎ヘッダーロゴ */
.site-logo-image.header-site-logo-image {
    width: 280px;
    height: auto !important;
    max-height: none !important;
}

/* ヘッダー全体の高さ */
.header-container-in.hlt-top-menu {
    min-height: 150px;
}

/* ヘッダーを基準位置にする */
.header-container-in.hlt-top-menu {
    position: relative;
}

/* グローバルメニューを右下へ */
.header-container-in.hlt-top-menu #navi {
    position: absolute;
    right: 0;
    bottom: 0;
}

.header-contact-info {
    position: relative;
    top: 4px;
}

/* ヘッダーロゴ親要素の高さ制限を解除 */
.header-container-in.hlt-top-menu .logo-header {
    max-height: none !important;
}

/* ========================================
   TOP おすすめ物件
   ======================================== */

.top-recommended-properties {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.recommended-property {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.recommended-property__image {
    position: relative;
    width: 100%;
}

.recommended-property__image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.recommended-property__type {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #0066cc;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
}

.recommended-property__body {
    padding: 12px;
}

.recommended-property__title {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.4;
}

.recommended-property__title a {
    color: #0066cc;
    text-decoration: none;
}

.recommended-property__title a:hover {
    text-decoration: underline;
}

.recommended-property__summary {
    margin-bottom: 8px;
}

.recommended-property__room,
.recommended-property__rent {
    margin-bottom: 4px;
}

.recommended-property__rent {
    font-size: 18px;
    font-weight: bold;
    color: #d33;
}

.recommended-property__address {
    font-size: 14px;
    line-height: 1.5;
}

.recommended-property__body .label {
    font-weight: bold;
}

/* ========================================
   TOP おすすめ物件 レスポンシブ
   ======================================== */

/* 1023px以下：2列 */
@media screen and (max-width: 1023px) {

    .top-recommended-properties {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* 600px以下：1列 */
@media screen and (max-width: 600px) {

    .top-recommended-properties {
        grid-template-columns: 1fr;
    }

}

/* TOPおすすめ物件：物件名の箱を外す */
.top-recommended-properties .recommended-property__title {
    margin: 10px 0 8px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    font-size: 17px;
    line-height: 1.4;
}

.top-recommended-properties .recommended-property__title a {
    color: #0066cc;
    text-decoration: none;
}

/* おすすめ物件 見出し */
.top-recommended-heading {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #0066cc;
    font-weight: 700;
    padding: 0 !important;
}

.top-recommended-heading-group {
    margin-bottom: 0 !important;
}

.top-recommended-heading-group .wp-block-image {
    margin-bottom: 0 !important;
}

/* おすすめ物件見出し：H2の下余白をリセット */
.top-recommended-heading {
    margin-bottom: 0 !important;
}

/* おすすめ物件見出し：説明文の下余白をリセット */
.top-recommended-heading-group .wp-block-paragraph {
    margin-bottom: 0 !important;
}


/* ========================================
   物件詳細：写真ギャラリー
   ======================================== */

.property-gallery {
    margin: 24px 0 30px;
}

.property-gallery-main {
    width: 100%;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 4px;
}

.property-gallery-main > img {
    display: block;
    width: 100%;
    height: 405px;
    object-fit: contain;
    object-position: center;
    background: #f5f5f5;
}

.property-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.property-gallery-thumb {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.property-gallery-thumb img {
    display: block;
    width: 100%;
    height: 88px;
    object-fit: cover;
}

.property-gallery-thumb:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

@media screen and (max-width: 600px) {
    .property-gallery-main > img {
        height: 280px;
    }

    .property-gallery-thumbnails {
        gap: 5px;
    }

    .property-gallery-thumb img {
        height: 58px;
    }
}

/* ========================================
   360°室内ビュー ボタン
======================================== */
.property-360-view {
    margin: 28px 0 32px;
    padding: 24px;
    text-align: center;
    background: #f5f8fc;
    border: 1px solid #e1e8f0;
    border-radius: 10px;
}

.property-360-view h2 {
    margin: 0 0 10px;
}

.property-360-view p {
    margin: 0;
}

.property-360-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    color: #fff !important;
    background: #1769c2;
    border: 1px solid #1769c2;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    transition: background-color 0.2s ease,
                box-shadow 0.2s ease,
                transform 0.2s ease;
}

.property-360-view-button:hover {
    color: #fff !important;
    background: #0f529c;
    border-color: #0f529c;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.property-360-view-button:focus-visible {
    outline: 3px solid #80b8f5;
    outline-offset: 3px;
}

@media screen and (max-width: 600px) {
    .property-360-view {
        padding: 18px 12px;
    }

    .property-360-view-button {
        width: 100%;
        box-sizing: border-box;
        padding: 14px 12px;
        font-size: 15px;
    }
}

/* 360°室内ビュー：シンプル表示 */
.property-360-view {
    margin: 24px 0 30px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    text-align: center;
}

/* 重複する大きな見出しを非表示 */
.property-360-view h2 {
    display: none;
}

/* ボタン周りの余白をリセット */
.property-360-view p {
    margin: 0;
}


/* 物件一覧：ページ送りの表示調整 */
.property-archive .navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.property-archive .navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    line-height: 1.4;
    white-space: nowrap;
}

.property-archive .navigation.pagination a.prev,
.property-archive .navigation.pagination a.next {
    width: auto;
    min-width: 64px;
}

/* 物件詳細：物件名と種別ラベル */
.property-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.property-title h1 {
    margin: 0;
    padding: 0;
}

/* 物件種別ラベル共通 */
.property-type-label {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

/* 賃貸：ブルー */
.property-type-label--rent {
    background-color: #0875D1;
}

/* 売買：グリーン */
.property-type-label--sale {
    background-color: #27834A;
}

/* 物件写真ギャラリーの案内文 */
.property-gallery-note {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 4px;
  margin-bottom: 12px;
}