/*
 Theme Name: Arkhe Child
 Template:   arkhe       
 Version:    1.0.0
 Author:     yamada
*/

/* ──────────────────────────────
   LP テンプレート専用レイアウト調整
   body_class → .lp-page が付与されます
──────────────────────────────── */
body.lp-page header,          /* Arkhe のヘッダー */
body.lp-page footer,          /* Arkhe のフッター */
body.lp-page .l-sidebar,      /* 万一サイドバーが出ても非表示 */
body.lp-page .p-floating-btn, /* ページトップなど浮動ボタン */
body.lp-page .c-breadcrumb    /* パンくず */
{ display: none !important; }

body.lp-page main {
	margin: 0;
	padding: 0;
	max-width: 100%;
}

/* ──────────────────────────────
   LP 用CSS
──────────────────────────────── */

/*PC用*/
#body{
	background: url(/wp-content/uploads/2024/10/AdobeStock_210095815-scaled.jpeg);
	width:100%;
	min-height: 100vh;
	background-attachment: fixed;
	background-size: cover;
	background-position: center;
	background-repeat:no-repeat;
}

#body_wrap{
	margin-top:-120px;
	margin-bottom:-140px;
	margin: 0px auto;
}

#body_wrap img{
	display: block;
	margin: 0 auto; 
}

.cta {
	margin-top:-35px;
	transition-property: opacity;
	transition-duration: 0.5s;
}
.cta:hover {
	opacity: 0.7; 
}

/*SP用*/
@media only screen and (max-width: 768px) {
#body {
	background-color:white;
	background-size:contain;
}
.cta {
	margin-top:-10px;
}
}
/*style.css 上書き分*/
#return_top a {
	background: #817176;
	}
#return_top a:hover{
	background: #41383b;
	}
#copyright{color:#41383b;}


/*固定ページタイトル削除*/
.catch{
	 display:none !important;
}

/* パソコンで見たときは"pc"のclassがついた画像が表示される */
.pc { display: block !important; }
.sp { display: none !important; }
 
/* スマートフォンで見たときは"sp"のclassがついた画像が表示される */
@media only screen and (max-width: 750px) {
    .pc { display: none !important; }
    .sp { display: block !important; }
}

/*----------------------------------------
 * 20250808_最終ページ追加分
 *--------------------------------------*/

.lp_head {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
	overflow: visible;
padding-bottom: clamp(80px, 15vw, 240px);
}

/* 背景画像 */
 .lp_bg {
  width: 100%;
  height: auto;
  display: block;
}

/* CTA画像 */
 .lp_cta {
  position: absolute;
  background-color:#ffffff;
 top:70%;
  left: 50%;
  transform: translate(-50%, -50%); 
  max-width: 90%;
  height: auto;
}

@media screen and (max-width: 767px) {
	.lp_head {
		margin-bottom:200px;
	}
	
	.lp_head .lp_cta {
  bottom: -130px;
  max-width:80%!important;
}
	
} 



/*----------------------------------------
 * 間取り一覧用のスタイル
 *--------------------------------------*/

/* 間取り一覧グリッド */
.madori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.madori-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.madori-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.madori-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.madori-card-content {
    padding: 16px;
}

.madori-card h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.madori-card h3 a {
    color: #333;
    text-decoration: none;
}

.madori-card h3 a:hover {
    color: #007cba;
}

.madori-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
    font-size: 14px;
    color: #666;
}

.madori-info span {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.madori-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 12px 0;
}

.madori-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.madori-tag {
    background: #f0f0f0;
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.madori-tag:hover {
    background: #e0e0e0;
    color: #333;
}

/* スマホ対応フィルター */
.madori-filters-mobile {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.filter-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.filter-reset {
    background: none;
    border: none;
    color: #007cba;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.filter-reset:hover {
    background: #f0f0f0;
}

/* アコーディオンスタイル */
.filter-section {
    border-bottom: 1px solid #e0e0e0;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    transition: background-color 0.2s;
    position: relative;
}

.filter-section-header:hover {
    background: #f8f9fa;
}

.filter-section-header.active {
    background: #f0f8ff;
}

.filter-count {
    color: #666;
    font-size: 13px;
    margin-left: auto;
    margin-right: 12px;
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #666;
    display: inline-block;
}

.filter-section-header.active .accordion-icon,
.accordion-icon.rotate {
    transform: rotate(180deg);
}

.filter-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filter-section-content.active {
    max-height: 500px;
    overflow-y: auto;
}

.filter-tags {
    padding: 16px 20px;
    background: #fafafa;
}

/* カスタムチェックボックス */
.filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    position: relative;
    padding-left: 32px;
}

.filter-checkbox:last-child {
    margin-bottom: 0;
}

.filter-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
}

.filter-checkbox:hover .checkmark {
    border-color: #007cba;
}

.filter-checkbox input:checked ~ .checkmark {
    background-color: #007cba;
    border-color: #007cba;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* 検索ボタン */
.filter-actions {
    padding: 16px 20px;
    background: #f8f9fa;
}

.filter-search-btn {
    width: 100%;
    background: #007cba;
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.filter-search-btn:hover {
    background: #005a87;
}

.filter-search-btn:active {
    transform: translateY(1px);
}

/* 選択中の条件表示 */
.selected-filters {
    padding: 12px 20px;
    background: #e3f2fd;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
    color: #1976d2;
}

.selected-filters:empty {
    display: none;
}

/* 旧フィルタースタイル（PC用） */
.madori-filters {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 32px;
    display: none;
}

.madori-filters h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #333;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.filter-tag {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
}

.filter-tag:hover,
.filter-tag.active {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

/* ページネーション */
.madori-pagination {
    text-align: center;
    margin: 40px 0;
}

.madori-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.madori-pagination .page-numbers:hover,
.madori-pagination .page-numbers.current {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

/* 間取り詳細ページ */
.madori-single .entry-header {
    margin-bottom: 32px;
}

.madori-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 16px 0;
    padding: 16px;
    background: #f8f8f8;
    border-radius: 8px;
}

.madori-meta span {
    font-size: 14px;
}

/* 新しい詳細ページのスタイル */
.madori-meta-new {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
    padding: 16px;
    background: #f8f8f8;
    border-radius: 8px;
}

.madori-meta-new span {
    background: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border: 1px solid #e0e0e0;
}


.madori-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0 20px 0;
    padding: 20px 0;
    border-top: 1px solid #ddd;
}

.back-to-archive {
    text-align: center;
    margin: 20px 0;
}

.back-to-archive .btn {
    display: inline-block;
    padding: 12px 24px;
    background: #007cba;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.back-to-archive .btn:hover {
    background: #005a87;
    color: #fff;
}

/* ローディング状態 */
.madori-grid.loading {
    opacity: 0.6;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-madori {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .madori-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .filter-tags {
        gap: 6px;
    }
    
    .filter-tag {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .madori-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .madori-navigation {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .madori-info {
        gap: 8px;
    }
}