/* --- ヒーローセクション (Split Layout) --- */
.hero-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    /* body margin 0前提 */
}

.hero-panel {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    color: #fff;
    overflow: hidden;
    cursor: pointer;
}

.panel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s;
    z-index: -1;
}

/* 背景色・画像設定 */
.panel-install .panel-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)), #2c3e50;
}

.panel-sales .panel-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)), #5d4037;
}

.hero-panel:hover {
    flex: 1.3;
}

.hero-panel:hover .panel-bg {
    transform: scale(1.05);
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 20px;
    /* 左右のパネルでテキスト量が違っても高さの基準を揃えるための追加 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.hero-title {
    font-family: var(--font-en-serif);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 10px;
    min-height: 65px; /* 高さのばらつきを防止 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-jp-sub {
    font-family: var(--font-jp);
    font-size: 1rem;
    letter-spacing: 0.2em;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 5px 20px;
    display: inline-block;
    margin-bottom: 30px;
}

/* --- Service (Installation) --- */
/* --- Catch Band --- */
.catch-band {
    background: #111; /* ダークに変更 */
    color: #e0e0e0;
    text-align: center;
    padding: 20px 20px;
    font-size: 0.95rem;
    font-family: var(--font-jp);
    letter-spacing: 0.1em;
    border-top: 1px solid rgba(191, 163, 120, 0.3); /* ゴールドの細い線 */
    border-bottom: 1px solid rgba(191, 163, 120, 0.3);
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}
.catch-band p { margin: 0; }
.catch-text strong {
    font-size: 1.25rem;
    color: var(--accent-gold);
    margin: 0 4px;
    font-weight: 500;
}

/* --- Why CAPPAセクション --- */
.why-section {
    background: #fdfdfd;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 30px;
}
.why-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px; /* 丸み */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); /* フワッとした上品な影 */
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid #f0f0f0;
    text-align: center;
}
.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); /* ホバーで浮かび上がる */
    border-color: rgba(191, 163, 120, 0.5); /* ホバーでうっすらゴールド枠 */
}
.why-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px auto;
    background: rgba(191, 163, 120, 0.1); /* ゴールドの薄い背景 */
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* 丸いアイコン背景 */
    transition: all 0.3s ease;
}
.why-card:hover .why-icon {
    background: var(--accent-gold);
    color: #fff;
    transform: scale(1.1);
}
.why-title {
    font-family: var(--font-jp);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-main);
    font-weight: 500;
}
.why-title em {
    font-style: normal;
    color: var(--accent-gold); /* 強調はゴールド */
    font-size: 1.4rem;
}
.why-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
}

.welcome-msg {
    text-align: center;
    margin-bottom: 60px;
    padding: 30px;
    border: 1px solid #ddd;
    background: #fafafa;
    border-left: 5px solid var(--accent-gold);
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.img-placeholder {
    width: 100%;
    height: 400px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-family: var(--font-en-sans);
    letter-spacing: 0.1em;
}

.stat-row {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.stat-item span {
    display: block;
    font-family: var(--font-en-serif);
    font-size: 2.5rem;
    color: var(--accent-gold);
    line-height: 1;
}

.stat-item small {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 0.1em;
}

/* --- Product (Sales) --- */
.product-section {
    background-color: #f7f7f7;
    padding-bottom: 100px;
}

.search-area {
    background: #fff;
    padding: 50px;
    text-align: center;
    max-width: 800px;
    margin: -100px auto 80px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.category-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background: #fff;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-img {
    height: 250px;
    background: #eaeaea;
    position: relative;
}

.product-info {
    padding: 25px 0;
    text-align: center;
}

.product-category {
    font-size: 0.7rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.product-name {
    font-family: var(--font-en-serif);
    font-size: 1.4rem;
    color: var(--text-main);
}

/* --- セクション背景（body.homeのダーク背景が透けないよう明示指定） --- */
.flow-section,
.gallery-section,
.reviews-section,
.faq-section {
    background: var(--bg-body);
}

/* --- Flow Section --- */
.flow-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}
.flow-tab {
    padding: 12px 40px;
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.flow-tab.active {
    background: var(--text-main);
    color: #fff;
}
.flow-steps {
    max-width: 600px;
    margin: 0 auto;
}
.flow-step {
    display: flex;
    align-items: flex-start;
    background: #fff;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 15px;
}
.flow-num {
    font-family: var(--font-en-sans);
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-right: 25px;
    line-height: 1;
}
.flow-body h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}
.flow-body p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}
.flow-arrow {
    text-align: center;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

/* --- Gallery & Reviews (Swiper adjustment) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.gallery-img-placeholder {
    height: 200px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    text-align: center;
    line-height: 1.5;
}

.pro-banner {
    background: var(--bg-dark);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}
.pro-banner-inner {
    max-width: 800px;
    margin: 0 auto;
}
.pro-banner-label {
    display: block;
    color: var(--accent-gold);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    margin-bottom: 15px;
}
.pro-banner-heading {
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 25px;
}
.pro-banner-sub {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 40px;
}
.pro-banner-cta {
    text-align: center;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.review-card {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    height: 100%;
}
.review-stars {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.review-body {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 20px;
}
.review-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 10px;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: #333;
    -webkit-text-fill-color: #333;
    -webkit-appearance: none;
}
.faq-answer {
    padding: 20px;
    background: #fafafa;
    border: 1px solid #eee;
    border-top: none;
    font-size: 0.9rem;
    display: none;
}
.faq-answer p { margin: 0; }
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

.cta-section {
    background: #fff;
    padding: 100px 20px;
    border-top: 1px solid #eee;
}
.cta-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.cta-heading {
    font-size: 2rem;
    margin-bottom: 20px;
}
.cta-sub {
    font-size: 0.95rem;
    margin-bottom: 40px;
    line-height: 1.8;
}
.cta-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-weight: 600;
    min-width: 220px;
    border-radius: 4px;
}
.cta-btn-contact { background: var(--bg-dark); color: #fff; border: 1px solid var(--bg-dark); }
.cta-btn-tel { background: #555; color: #fff; border: 1px solid #555; }
.cta-btn-reserve { border: 1px solid var(--text-main); color: var(--text-main); }
.cta-note {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .hero-wrapper {
        flex-direction: column;
        height: auto;
        padding-top: 90px; /* fix header overlap */
    }

    .hero-panel {
        min-height: 400px;
        height: auto;
        width: 100%;
        padding: 40px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .service-text { text-align: center; }
    .service-text > div { justify-content: center; } /* btn center */
    .stat-row { justify-content: center; }

    .search-area {
        margin-top: 0;
        padding: 30px 20px;
        width: auto;
    }

    .flow-step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .flow-num { margin: 0 0 15px 0; }
    
    .cta-btns {
        flex-direction: column;
        align-items: center;
    }
}