/* ===========================================================
   residential.html  ―  居住空間 / 住まいへの設置 (to-C)
   Page-prefixed components (.rs-*). Loaded AFTER css/style.css.
   =========================================================== */

/* ---- FV : green LINE button ---- */
/* Figma render: 窓コーナー＋室内に張ったネット＋砂利床。ネット面を見せる中段クロップ */
.page-fv .fv-bg{background-position:center 35%}
.btn-fv.rs-fv-line{background:#4cc764;color:#fff;gap:10px}
.btn-fv.rs-fv-line img{width:28px;height:28px}
.btn-fv.rs-fv-line:hover{filter:brightness(1.05)}

/* ---- shared tag pill (used by features + cases) ---- */
.rs-feat-tag{
  display:inline-flex;align-items:center;justify-content:center;
  height:24px;padding:0 8px;border:1px solid var(--line2);border-radius:30px;
  font-family:var(--sans);font-weight:300;font-size:12px;color:var(--text);line-height:1;
}

/* ===========================================================
   Features (Use Cases) ― alternating photo + overlapping card
   =========================================================== */
.rs-features{position:relative;overflow:hidden;background:#fff;padding:96px 0 112px}
.rs-features::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:url(../assets/img/residential/feature_bg.png) center/cover no-repeat;
  opacity:.12;filter:blur(10px);
}
.rs-features .container{position:relative;z-index:1}

.rs-feature-list{display:flex;flex-direction:column;gap:80px}
.rs-feature{display:flex;align-items:center;position:relative}
.rs-feature-list .rs-feature:not(.reverse){justify-content:flex-start}

.rs-feat-photo{position:relative;z-index:1;flex:0 0 732px;width:732px;height:400px;overflow:hidden}
.rs-feat-photo img{width:100%;height:100%;object-fit:cover;transition:.5s}
.rs-feature:hover .rs-feat-photo img{transform:scale(1.04)}

.rs-feat-card{
  position:relative;z-index:2;flex:0 0 560px;width:560px;
  background:#fff;box-shadow:0 0 10px rgba(60,86,52,.1);
  padding:50px 80px;
}
.rs-feature:not(.reverse) .rs-feat-card{margin-right:-92px}
.rs-feature.reverse .rs-feat-card{margin-left:-92px}

.rs-feat-title{
  font-family:var(--serif);font-weight:600;font-size:24px;color:var(--accent);
  line-height:1.6;margin:8px 0 24px;
}
.rs-feat-card p{font-family:var(--sans);font-size:15px;color:var(--text);line-height:2;letter-spacing:.02em}

/* ===========================================================
   Reasons ― numbered list
   =========================================================== */
.rs-reasons{background:#fff;padding:112px 0}
.rs-reason-list{max-width:964px;margin:0 auto}
.rs-reason{
  display:flex;align-items:center;gap:24px;
  padding:28px 0;border-bottom:1px solid var(--line2);
}
.rs-reason:first-child{border-top:1px solid var(--line2)}
.rs-reason-no{
  flex:0 0 auto;font-family:var(--serif);font-weight:500;font-size:64px;
  color:#797776;line-height:1.2;width:44px;text-align:center;
}
.rs-reason-body h3{
  font-family:var(--serif);font-weight:600;font-size:20px;color:var(--accent);
  line-height:1.6;margin-bottom:9px;
}
.rs-reason-body p{font-family:var(--sans);font-weight:500;font-size:15px;color:var(--text);line-height:1.8}

/* ===========================================================
   Case Studies ― card grid
   =========================================================== */
.rs-cases{position:relative;overflow:hidden;background:#fff;padding:120px 0}
.rs-cases::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:url(../assets/img/residential/case_bg.png) center/cover no-repeat;
  opacity:.16;
}
.rs-cases .container{position:relative;z-index:1}

.rs-case-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:60px}
.rs-case-card{background:transparent}
.rs-case-card .thumb{width:100%;height:250px;overflow:hidden}
.rs-case-card .thumb img{width:100%;height:100%;object-fit:cover;transition:.5s}
.rs-case-card:hover .thumb img{transform:scale(1.04)}
.rs-case-body{padding:18px 16px 0}
.rs-case-body h3{
  font-family:var(--serif);font-weight:600;font-size:20px;color:var(--accent);
  line-height:1.6;letter-spacing:-.05em;margin:8px 0 8px;
}
.rs-case-body p{font-family:var(--sans);font-weight:500;font-size:15px;color:var(--text);line-height:1.8;margin-bottom:16px}

.rs-case-action{display:flex;justify-content:center;margin-top:60px}

/* ===========================================================
   CTA ― 2-card variant (Figma: 410px cards so the longer
   heading "LINEで写真を送って相談する" fits on one line)
   =========================================================== */
@media(min-width:769px){.cta .cta-card{width:410px}}

/* ===========================================================
   Responsive  (SP ≤768)
   =========================================================== */
@media(max-width:1024px){
  .rs-feat-photo{flex-basis:60%;width:60%}
  .rs-feat-card{flex-basis:46%;width:46%;padding:36px 40px}
}
@media(max-width:768px){
  .rs-features{padding:64px 0}
  .rs-feature-list{gap:48px}
  .rs-feature,.rs-feature.reverse{flex-direction:column;align-items:stretch}
  .rs-feat-photo{flex:none;width:100%;height:240px}
  .rs-feat-card{
    flex:none;width:auto;padding:28px 24px;
    margin:-40px 20px 0!important;
  }
  .rs-feat-title{font-size:20px;margin:8px 0 16px}

  .rs-reasons{padding:64px 0}
  .rs-reason{gap:16px;padding:22px 0;align-items:flex-start}
  .rs-reason-no{font-size:44px;width:32px}
  .rs-reason-body h3{font-size:18px}

  .rs-cases{padding:64px 0}
  .rs-case-grid{grid-template-columns:1fr;gap:36px}
  .rs-case-card .thumb{height:220px}
  .rs-case-action{margin-top:40px}
}
@media(max-width:768px){
  .fv-actions .btn-fv,.fv-actions .rs-fv-line{width:100%}
}
