@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
*/

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

/* NAMIKI PROPERTY: トップページ ファーストビュー（ID30用） */
.np-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}
@media (max-width: 1024px) {
  .np-hero {
    aspect-ratio: 16 / 9;
  }
}
@media (max-width: 640px) {
  .np-hero {
    aspect-ratio: 4 / 3;
  }
}
.np-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
@media (min-width: 1025px) {
  .np-hero__image {
    object-position: center 50%;
  }
}
.np-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.18) 30%, rgba(0,0,0,0) 55%);
}
.np-hero__content {
  position: absolute;
  top: 8%;
  left: 6%;
  max-width: 55%;
  color: #fff;
}
@media (max-width: 640px) {
  .np-hero__content {
    top: 6%;
    left: 5%;
    max-width: 85%;
  }
}
.np-hero__title {
  margin: 0 0 0.3em;
  font-size: clamp(1.5em, 4vw, 2.6em);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.np-hero__copy {
  margin: 0 0 0.5em;
  font-size: clamp(1em, 2.2vw, 1.4em);
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.np-hero__desc {
  margin: 0;
  font-size: clamp(0.8em, 1.4vw, 1em);
  line-height: 1.7;
  text-shadow: 0 1px 5px rgba(0,0,0,0.6);
}
@media (max-width: 640px) {
  .np-hero__title {
    font-size: 1.4em;
  }
  .np-hero__copy {
    font-size: 1em;
  }
  .np-hero__desc {
    font-size: 0.85em;
    line-height: 1.6;
  }
}

/* NAMIKI PROPERTY: ID30（トップページ）のみタイトル・投稿日・SNSシェアボタンを非表示 */
.page-id-30 .entry-title { display: none; }
.page-id-30 .date-tags { display: none; }
.page-id-30 .sns-share { display: none; }

/* NAMIKI PROPERTY: 物件一覧カード（page-properties.php用） */
.np-status-heading {
  margin-top: 2em;
}
.np-property-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 1em 0 2em;
}
@media (max-width: 640px) {
  .np-property-cards {
    grid-template-columns: 1fr;
  }
}
.np-property-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.np-property-card__thumb {
  aspect-ratio: 4 / 3;
  background: #f2f2f2;
  flex-shrink: 0;
}
.np-property-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.np-property-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9em;
}
.np-property-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 16px;
}
.np-property-card__title {
  margin: 0 0 0.4em;
  font-size: 1.05em;
}
.np-property-card__usage {
  margin: 0 0 0.4em;
  font-size: 0.85em;
  color: #666;
}
.np-property-card__excerpt {
  margin: 0 0 0.6em;
  font-size: 0.9em;
  color: #444;
}
.np-property-card__status {
  display: inline-block;
  font-size: 0.8em;
  padding: 2px 10px;
  border: 1px solid #999;
  border-radius: 999px;
  color: #666;
  width: fit-content;
  margin-top: auto;
}
.np-property-card__more {
  margin: 0.6em 0 0;
  font-size: 0.8em;
  color: #888;
}

/* NAMIKI PROPERTY: トップページ セクション装飾（汎用パネル・ミニカード・チップ） */
.panel {
  background: #f8f7f4;
  border: 1px solid #ece9e2;
  border-radius: 4px;
  padding: 32px 36px;
}
.panel--center {
  text-align: center;
}
@media (max-width: 640px) {
  .panel {
    padding: 24px 20px;
  }
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 1.2em 0;
}
@media (max-width: 640px) {
  .mini-cards {
    grid-template-columns: 1fr 1fr;
  }
}
.mini-card {
  border: 1px solid #e5e2dc;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.mini-card__thumb {
  aspect-ratio: 4 / 3;
  background: #f2f2f2;
}
.mini-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mini-card__name {
  padding: 10px 12px;
  font-size: 0.85em;
  color: #333;
}

.redev-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 640px) {
  .redev-panel {
    grid-template-columns: 1fr;
  }
}
.redev-photo {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: #f2f2f2;
}
.redev-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.company-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.2em 0;
}
.company-chip {
  border: 1px solid #d8d4cb;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 0.85em;
  color: #333;
  background: #fff;
}

/* NAMIKI PROPERTY: トップページのみヘッダーのサイト名（ロゴ）を非表示（ヒーロー内タイトルと重複するため） */
.front-top-page .logo-header {
  display: none;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

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

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

/* NAMIKI PROPERTY: トップページのみCocoon自動アイキャッチを非表示（本文内ヒーロー画像と重複するため） */
.front-top-page .eye-catch-wrap {
  display: none;
}

/* NAMIKI PROPERTY: 物件個別ページ（CPT property）をブログ記事UIではなくアーカイブ的な見せ方にする */
.single-property #toc,
.single-property .date-tags,
.single-property .sns-share,
.single-property .sns-follow,
.single-property .footer-meta {
  display: none;
}

/* NAMIKI PROPERTY: 物件個別ページの写真セクション（並木ビルを基準に他物件ページにも展開） */
.property-photo-block {
  max-width: 900px;
  margin: 0 auto 3em;
}
.property-photo-block img {
  width: 100%;
  height: auto;
}
.property-photo-block figcaption {
  text-align: center;
  margin-top: 0.6em;
}

/* NAMIKI PROPERTY: 物件個別ページ（CPT property）を1カラム化し、右サイドバーを非表示にする */
.single-property .sidebar {
  display: none;
}
.single-property .content-in {
  display: block;
}
.single-property .content .main {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}
