/* ===================================
   リフォームページ専用スタイル
   アクセントカラー: #df8218 (オレンジ)
   =================================== */

:root {
    --rf-orange: #df8218;
    --rf-orange-bg: rgba(223, 130, 24, 0.6);
}

/* ===== セクション共通 ===== */
.rf-section-en {
    color: var(--rf-orange) !important;
}

/* ===== MV / ヒーロー ===== */
.rf-mv {
    position: relative;
    height: 369px;
    overflow: hidden;
}

.rf-mv-bg {
    position: absolute;
    top: -17px;
    left: -114px;
    width: 544px;
    height: 408px;
}

.rf-mv-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rf-mv-title-box {
    position: absolute;
    left: 0;
    top: 206px;
    background: var(--rf-orange-bg);
    padding: 10px 40px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.12);
}

.rf-mv-title {
    font-size: 32px;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 0.1em;
    line-height: 1.6;
    white-space: nowrap;
}

.rf-mv-subtitle {
    position: absolute;
    left: 40px;
    top: 297px;
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-dark);
    letter-spacing: 1.5px;
    line-height: 1.6;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
}

/* ===== STRENGTHS ===== */
.rf-strengths {
    background: var(--color-bg-gray);
}

.rf-strengths-header {
    padding: 40px 30px 30px;
}

.rf-features {
    display: flex;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.rf-feature {
    position: relative;
    height: 200px;
    width: 50%;
    overflow: hidden;
}

.rf-feature-image {
    width: 100%;
    height: 100%;
}

.rf-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rf-feature-overlay {
    position: absolute;
    inset: 0;
}

.rf-feature-text {
    position: absolute;
    bottom: 20px;
}

.rf-feature-text--left {
    left: 40px;
}

.rf-feature-text--right {
    right: 40px;
    text-align: right;
}

.rf-feature-text p {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 1.8px;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.rf-feature:last-child {
    margin-bottom: 0;
    clip-path: none;
}

/* ===== リフォーム事例 (Before/After) ===== */
.rf-cases {
    background: var(--color-white);
    padding: 40px 0;
}

.rf-cases-header {
    padding: 0 30px 30px;
    text-align: center;
}

.rf-case-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 auto;
    max-width: 900px;
}

.rf-before-after {
    gap: 20px;
    position: relative;
    height: 260px;
    display: flex;
    overflow: hidden;
}

.rf-ba-before,
.rf-ba-after {
    position: relative;
    flex: 1;
    overflow: hidden;
}

/* 対角クリップで before/after を分割 */
.rf-ba-before {
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
    margin-right: -20px;
    z-index: 1;
}

.rf-ba-after {
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
    margin-left: -20px;
}

.rf-ba-before img,
.rf-ba-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rf-ba-overlay {
    position: absolute;
    inset: 0;
}

.rf-ba-badge {
    position: absolute;
    bottom: 20px;
    padding: 5px 20px;
    font-size: 14px;
    font-weight: 400;
    color: white;
    letter-spacing: 1.4px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.12);
    line-height: 1.8;
    z-index: 2;
}

.rf-ba-badge--before {
    left: 20px;
    background: rgba(0, 0, 0, 0.3);
}

.rf-ba-badge--after {
    right: 20px;
    background: rgba(223, 130, 24, 0.6);
}

/* ===== Instagram ===== */
.rf-instagram {
    background: var(--color-bg-gray);
    padding: 40px 30px;
}

/* ===== お客様の声 ===== */
.rf-feedback {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
}

.rf-feedback-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    min-height: 620px;
    z-index: 0;
}

.rf-feedback-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rf-feedback-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(225, 108, 0, 0.4) 0%,
        rgba(169, 81, 0, 0.4) 100%
    ),
    linear-gradient(
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.7) 100%
    );
}

.rf-feedback-content {
    position: relative;
    z-index: 1;
    padding: 0 30px;
}

.rf-feedback-header {
    margin-bottom: 20px;
}

.rf-feedback-en {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 8px;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 0.9px;
    line-height: normal;
    margin-bottom: 2px;
}

.rf-feedback-title {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 1.8px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.rf-feedback-divider {
    height: 1px;
    width: 24px;
    background: var(--color-white);
}

.rf-feedback-card {
    border-radius: 5px;
}

.rf-avatar-orange {
    border-color: var(--rf-orange) !important;
}

.rf-rating {
    color: var(--color-dark-brown) !important;
}

.rf-feedback-text {
    color: var(--color-dark-brown) !important;
}

/* ===== FAQ ===== */
.rf-faq {
    padding: 40px 30px;
}

.rf-faq .section-title-wrapper {
    margin-bottom: 30px;
}

.rf-faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rf-faq-item {
    display: flex;
    flex-direction: column;
}

.rf-faq-q,
.rf-faq-a {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
}

.rf-faq-q {
    border: 1px solid var(--rf-orange);
}

.rf-faq-mark {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.6px;
    color: var(--rf-orange);
    line-height: 1.5;
    flex-shrink: 0;
    white-space: nowrap;
}

.rf-faq-q p {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.6px;
    line-height: 1.5;
    color: var(--color-text-dark);
    flex: 1;
}

.rf-faq-a p {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1.4px;
    line-height: 1.8;
    color: var(--color-text-dark);
    flex: 1;
}

/* ===== PC レスポンシブ ===== */
@media (min-width: 431px) {
    .rf-mv-bg {
        left: 0;
        width: 100%;
        height: 100%;
        top: 0;
    }

    .rf-mv {
        height: 50vw;
        max-height: 600px;
    }

    .rf-mv-title-box {
        top: auto;
        bottom: 30%;
    }

    .rf-mv-subtitle {
        top: auto;
        bottom: 15%;
        left: 40px;
    }

    .rf-feature{
        width:100%;
    }

    .rf-before-after {
        height: 350px;
    }

    .rf-faq-list {
        max-width: 700px;
        margin: 0 auto;
    }
}

/* スマホ: before/after 対角の白い隙間を縮小 */
@media (max-width: 430px) {
    .rf-before-after {
        height: 220px;
    }
    .rf-ba-before {
        clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%);
        margin-right: -8px;
    }
    .rf-ba-after {
        clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%);
        margin-left: -8px;
    }
}