/* ====================== 物件詳細（prop-detail） ====================== */

/* S1: アイキャッチ フルサイズ */
.prop-s1{width:100%;overflow:hidden;height:500px;}
.prop-s1 img{width:100%;height:100%;object-fit:cover;display:block;}

/* タイトル / 価格ブロック */
.prop-head-block{background:#f5f5f5;padding:56px 0 48px;}
.prop-head-block__title{font-family:var(--font-mincho);font-size:32px;font-weight:500;color:#000;margin:0 0 20px;letter-spacing:.04em;line-height:1.4;}
.prop-head-block__meta{font-family:var(--font-gothic);font-size:20px;color:#707070;padding-bottom:16px;border-bottom:1px solid #707070;margin-bottom:20px;letter-spacing:.04em;}
.prop-head-block__price{display:flex;align-items:baseline;gap:8px;}
.prop-head-block__price-label{font-family:var(--font-mincho);font-size:18px;color:#000;}
.prop-head-block__price-num{font-family:var(--font-mincho);font-size:32px;color:var(--color-brown-soft);letter-spacing:.04em;}
.prop-head-block__price-unit{font-family:var(--font-mincho);font-size:18px;color:#000;}

/* セクション見出し */
.prop-sec-h{font-family:var(--font-gothic);font-size:20px;font-weight:700;color:#000;margin:0 0 24px;letter-spacing:.04em;}

/* セクション区切り線 */
.prop-divider{border:none;border-top:1px solid #e0e0e0;margin:0;}

/* S2: ギャラリー */
.prop-s2{padding:56px 0;}
.prop-gallery__top{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin-bottom:18px;}
.prop-gallery__top-item{display:flex;flex-direction:column;}
.prop-gallery__top-item a{display:block;overflow:hidden;}
.prop-gallery__top-item img{width:100%;aspect-ratio:380/220;object-fit:cover;display:block;transition:transform .4s ease;}
.prop-gallery__top-item a:hover img{transform:scale(1.04);}
.prop-gallery__cap{font-family:var(--font-gothic);font-size:13px;color:var(--color-text-gray);margin:8px 0 0;text-align:center;}
.prop-gallery__bottom{display:grid;grid-template-columns:repeat(6,1fr);gap:18px;}
.prop-gallery__bottom a{display:block;overflow:hidden;}
.prop-gallery__bottom img{width:100%;aspect-ratio:185/120;object-fit:cover;display:block;transition:transform .4s ease;}
.prop-gallery__bottom a:hover img{transform:scale(1.06);}

/* ライトボックス */
.prop-lightbox{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;}
.prop-lightbox__bg{position:absolute;inset:0;background:rgba(0,0,0,.85);}
.prop-lightbox__inner{position:relative;z-index:1;max-width:90vw;max-height:90vh;display:flex;flex-direction:column;align-items:center;gap:12px;}
.prop-lightbox__img{max-width:90vw;max-height:80vh;object-fit:contain;display:block;}
.prop-lightbox__cap{color:#fff;font-family:var(--font-gothic);font-size:14px;margin:0;}
.prop-lightbox__close{position:fixed;top:20px;right:24px;background:rgba(255,255,255,.15);border:none;color:#fff;font-size:28px;width:44px;height:44px;border-radius:50%;cursor:pointer;line-height:1;display:flex;align-items:center;justify-content:center;}
.prop-lightbox__close:hover{background:rgba(255,255,255,.3);}
.prop-lightbox__prev,.prop-lightbox__next{position:fixed;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.15);border:none;color:#fff;font-size:36px;width:52px;height:52px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;}
.prop-lightbox__prev{left:16px;}
.prop-lightbox__next{right:16px;}
.prop-lightbox__prev:hover,.prop-lightbox__next:hover{background:rgba(255,255,255,.3);}

/* S3: 物件概要 */
.prop-s3{padding:56px 0;}
.prop-overview{display:grid;grid-template-columns:580px 1fr;gap:40px;align-items:start;}
.prop-tbl-flex{width:100%;}
.prop-tbl-row{display:flex;align-items:flex-start;border-bottom:1px solid #d9d9d9;padding:16px 0;font-family:var(--font-gothic);font-size:16px;color:#000;line-height:1.6;}
.prop-tbl-label{width:160px;font-weight:700;flex-shrink:0;}
.prop-tbl-val{flex:1;}
.prop-overview__right img{width:100%;display:block;}
.prop-floorplan-placeholder{background:#c8c8c8;height:400px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;font-family:var(--font-gothic);}

/* S4: 設備・条件 / Point / アクセス */
.prop-s4{padding:56px 0;}
.prop-equip-tags{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:48px;}
.prop-equip-tag{background:#a2956f;color:#fff;font-family:var(--font-gothic);font-size:16px;font-weight:700;width:220px;height:64px;display:flex;align-items:center;justify-content:center;text-align:center;padding:8px 12px;line-height:1.4;}
.prop-point{font-family:var(--font-gothic);font-size:16px;line-height:30px;color:#000;margin-bottom:48px;}
.prop-map{margin-bottom:12px;}
.prop-map iframe{width:100%;height:400px;border:0;display:block;}
.prop-address{font-family:var(--font-gothic);font-size:15px;color:#707070;margin:8px 0 0;}

/* S5: 担当者おすすめポイント */
.prop-s5{padding:56px 0;}
.prop-staff{background:#f5f5f5;display:flex;align-items:flex-start;gap:48px;padding:40px;}
.prop-staff__person{display:flex;flex-direction:column;align-items:center;gap:12px;flex-shrink:0;width:140px;}
.prop-staff__person img{width:140px;height:140px;border-radius:50%;object-fit:cover;display:block;}
.prop-staff__photo-placeholder{width:140px;height:140px;border-radius:50%;background:#d9d9d9;flex-shrink:0;}
.prop-staff__name{font-family:var(--font-gothic);font-size:16px;font-weight:700;text-align:center;margin:0;white-space:nowrap;}
.prop-staff__comment{font-family:var(--font-gothic);font-size:16px;line-height:30px;color:#000;flex:1;}

/* ====================== ケーススタディ詳細（cs-detail） ====================== */

/* ヒーロー上書き */
.cs-hero{height:600px;background:transparent;}
/* ヘッダーと重ならず隙間もなし: 画像は var(--header-h) 下から開始 */
.cs-hero .page-hero__img{top:var(--header-h);right:0;bottom:0;left:10%;opacity:1;background:url("../assets/case-hero-bg.jpg") center/cover no-repeat;}
/* 管理バー(32px)分オフセット補正: is_admin_bar_showing() でクラスを付与 */
.cs-hero--adminbar{height:calc(600px - 32px);}
.cs-hero--adminbar .page-hero__img{top:calc(var(--header-h) - 32px);}
.cs-hero .page-hero__plate{
    background:linear-gradient(71.82deg,#010e28 0%,#0b2753 100%);
    width:600px;height:220px;padding:0 64px 0 100px;
    bottom:0;display:flex;flex-direction:column;justify-content:center;gap:10px;
}
.cs-hero__eyebrow{font-family:'Cinzel',serif;font-size:24px;color:#a2956f;font-weight:400;letter-spacing:.08em;}
.cs-hero__label{font-family:var(--font-mincho);font-size:56px;color:#fff;font-weight:500;margin:0;letter-spacing:.04em;line-height:1.2;}

/* タイトル・カテゴリブロック */
.cs-intro{padding:56px 0;text-align:center;}
.cs-intro__tag{display:inline-flex;align-items:center;justify-content:center;border:1px solid #a2956f;color:#a2956f;padding:10px 32px;font-family:var(--font-gothic);font-size:20px;margin-bottom:24px;}
.cs-intro__title{font-family:var(--font-mincho);font-size:28px;color:#000;font-weight:500;margin:0 0 12px;letter-spacing:.04em;}
.cs-intro__loc{font-family:var(--font-gothic);font-size:16px;color:#707070;margin:0;}

.cs-detail{padding-bottom:56px;}

/* スライダー */
.cs-slider{position:relative;margin-bottom:48px;}
.cs-slider__wrap{overflow:hidden;}
.cs-slider__track{display:flex;transition:transform .4s ease;}
/* flex:0 0 100% + min-width:0 でスライド幅をラッパー幅に固定、グリッドが画像固有サイズで膨張しない */
.cs-slide{flex:0 0 100%;min-width:0;display:grid;grid-template-columns:1fr 1fr;gap:40px;}
.cs-slide img{min-width:0;width:100%;aspect-ratio:580/350;object-fit:cover;display:block;}
.cs-single-img{margin-bottom:48px;}
.cs-single-img img{width:100%;aspect-ratio:580/350;object-fit:cover;display:block;}
.cs-slider__btn{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.9);border:none;color:var(--color-brown);font-size:36px;width:49px;height:49px;border-radius:50%;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.15);display:flex;align-items:center;justify-content:center;z-index:2;}
.cs-slider__btn--prev{left:-60px;}
.cs-slider__btn--next{right:-60px;}
.cs-slider__btn:hover{background:var(--color-brown);color:#fff;}

/* テキスト */
.cs-text{font-family:var(--font-gothic);font-size:16px;line-height:30px;margin-bottom:56px;color:#000;}

/* フロー（課題→解決策→結果） */
.cs-flow{margin-bottom:56px;}
.cs-flow__row{display:flex;align-items:stretch;}
.cs-flow__label{width:300px;min-height:100px;display:flex;align-items:center;justify-content:center;font-family:var(--font-gothic);font-size:20px;font-weight:700;color:#fff;text-align:center;padding:10px;flex-shrink:0;line-height:1.4;}
.cs-flow__content{flex:1;min-height:100px;display:flex;align-items:center;padding:10px 24px;font-family:var(--font-gothic);font-size:18px;line-height:1.6;}
.cs-flow__label--gray{background:#afafaf;}
.cs-flow__label--border-b{border-bottom:1px solid #fff;}
.cs-flow__content--gray{border:1px solid #afafaf;color:#000;}
.cs-flow__label--red{background:#d00000;}
.cs-flow__content--red{border:1px solid #d00000;color:#d00000;font-weight:700;}
.cs-flow__arrow{display:flex;justify-content:center;padding:16px 0;}
.cs-flow__arrow-shape{display:block;width:0;height:0;border-left:70px solid transparent;border-right:70px solid transparent;border-top:40px solid #c8c8c8;}

/* BACKリンク */
.cs-back-row{text-align:center;padding:48px 0 0;}
.cs-back-row a{font-family:var(--font-gothic);font-size:20px;color:#000;text-decoration:none;display:inline-flex;align-items:center;gap:8px;line-height:40px;}

/* ====================== レスポンシブ ====================== */
@media(max-width:1024px){
    .prop-overview{grid-template-columns:1fr 1fr;}
    .prop-equip-tags{gap:12px;}
    .prop-equip-tag{width:200px;}
    .prop-gallery__bottom{grid-template-columns:repeat(4,1fr);}
    /* CS: スライダーボタン内側に */
    .cs-slider__btn--prev{left:8px;}
    .cs-slider__btn--next{right:8px;}
}
@media(max-width:781px){
    /* ===== 物件詳細 ===== */
    .prop-s1{height:260px;}
    .prop-head-block{padding:28px 0 24px;}
    .prop-head-block__title{font-size:20px;margin-bottom:14px;}
    .prop-head-block__meta{font-size:13px;margin-bottom:14px;}
    .prop-head-block__price-label{font-size:15px;}
    .prop-head-block__price-num{font-size:22px;}
    .prop-head-block__price-unit{font-size:15px;}
    .prop-s2,.prop-s3,.prop-s4,.prop-s5{padding:32px 0;}
    .prop-sec-h{font-size:17px;margin-bottom:16px;}
    .prop-gallery__top{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px;}
    .prop-gallery__bottom{grid-template-columns:repeat(3,1fr);gap:6px;}
    .prop-overview{grid-template-columns:1fr;}
    .prop-tbl-row{font-size:14px;padding:12px 0;}
    .prop-tbl-label{width:120px;}
    .prop-equip-tags{gap:8px;margin-bottom:32px;}
    .prop-equip-tag{width:calc(50% - 4px);height:52px;font-size:14px;}
    .prop-point{font-size:14px;line-height:1.9;margin-bottom:32px;}
    .prop-map iframe{height:260px;}
    .prop-staff{flex-direction:column;align-items:center;gap:20px;padding:20px;}
    .prop-staff__person{flex-direction:row;width:auto;}
    .prop-staff__comment{font-size:14px;line-height:1.9;}

    /* ===== CS ヒーロー ===== */
    .cs-hero{height:280px;}
    .cs-hero--adminbar{height:calc(280px - 32px);}
    /* 画像: 左オフセットなし・フル幅 */
    .cs-hero .page-hero__img{left:0;}
    /* プレート: 全幅・高さauto・小さめフォント */
    .cs-hero .page-hero__plate{width:100%;height:auto;padding:16px 20px 16px 24px;gap:10px;bottom:0;}
    .cs-hero__eyebrow{font-size:14px;}
    .cs-hero__label{font-size:28px;}

    /* ===== CS イントロ ===== */
    .cs-intro{padding:32px 0;}
    .cs-intro__tag{font-size:15px;padding:8px 20px;margin-bottom:14px;}
    .cs-intro__title{font-size:20px;}
    .cs-intro__loc{font-size:14px;}

    /* ===== CS スライダー ===== */
    .cs-detail{padding-bottom:40px;}
    .cs-slider{margin-bottom:32px;}
    /* 1スライド内を縦1列 */
    .cs-slide{grid-template-columns:1fr;gap:8px;}
    .cs-slider__btn{width:40px;height:40px;font-size:28px;}

    /* ===== CS テキスト ===== */
    .cs-text{font-size:15px;line-height:1.9;margin-bottom:32px;}

    /* ===== CS フロー ===== */
    .cs-flow{margin-bottom:32px;}
    /* 縦積み: ラベルが上・コンテンツが下 */
    .cs-flow__row{flex-direction:column;}
    .cs-flow__label{width:100%;min-height:auto;height:auto;font-size:16px;padding:12px 16px;}
    .cs-flow__label--border-b{border-bottom:none;}
    .cs-flow__content{min-height:auto;padding:14px 16px;font-size:15px;}
    .cs-flow__arrow{padding:12px 0;}
    .cs-flow__arrow-shape{border-left-width:50px;border-right-width:50px;border-top-width:32px;}

    /* ===== CS BACK ===== */
    .cs-back-row{padding:24px 0 0;}
    .cs-back-row a{font-size:17px;}
}
@media(max-width:480px){
    /* ===== 物件詳細 ===== */
    .prop-s1{height:220px;}
    .prop-s2,.prop-s3,.prop-s4,.prop-s5{padding:24px 0;}
    .prop-gallery__top{grid-template-columns:1fr;gap:8px;}
    .prop-gallery__bottom{grid-template-columns:repeat(2,1fr);gap:6px;}
    .prop-equip-tag{width:100%;height:48px;}
    .prop-map iframe{height:220px;}
    .cs-tbl1 th,.cs-tbl1 td{width:auto;}
    .cs-tbl thead tr{display:none;}
    .cs-tbl1 tbody tr{display:grid;grid-template-columns:1fr;}

    /* ===== CS ヒーロー ===== */
    .cs-hero{height:220px;}
    .cs-hero--adminbar{height:calc(220px - 32px);}
    .cs-hero__eyebrow{font-size:12px;}
    .cs-hero__label{font-size:22px;}
    .cs-hero .page-hero__plate{padding:12px 16px;gap:8px;}

    /* ===== CS フロー ===== */
    .cs-flow__label{font-size:15px;}
    .cs-flow__content{font-size:14px;}
}
