/* ===========================================
   まるはち 住まいの整理便 — LP専用スタイル
   page-sumainoseiri-LP.php のみで使用
   2026-04-27 修正: ヒーロースライダー復活＋モバイル縦線対策(::before display:none)再投入
   =========================================== */

/* ---- Hero Slider (横スライド・無限ループ) ---- */
.hero-slider-wrap {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
}
.hero-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    overflow: hidden;
    background: #054427; /* 画像読込前のフォールバック */
    color: var(--white);
    padding: 100px 0 120px;
    text-align: center;
}
.hero::before {
    /* 写真の色を活かしつつテキスト可読性のための薄黒オーバーレイ */
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.30), rgba(0,0,0,0.45));
    z-index: 1;
}
.hero .sumai-container { position: relative; z-index: 2; }
.hero h1, .hero p, .hero .hero-tagline, .hero .hero-catchcopy { text-shadow: 0 2px 6px rgba(0,0,0,0.55); }
.hero-tagline { background: var(--accent-color); color: var(--text-dark); display: inline-block; padding: 5px 20px; font-weight: bold; border-radius: 4px; margin-bottom: 20px; }
.hero h1 { font-size: 2.8rem; line-height: 1.3; margin-bottom: 20px; }
.hero h1 .hero-h1-line { display: block; }
.hero-catchcopy { font-size: 1.3rem; line-height: 1.5; margin-bottom: 20px; opacity: 0.95; font-weight: 500; letter-spacing: 0.03em; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

/* 認証一覧 */
.auth-list {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
    flex-wrap: wrap;
    color: #fff;
}
.auth-item {
    font-size: 0.95rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
    line-height: 1.4;
}
.auth-item:hover { opacity: 0.7; }
.auth-item i { font-size: 1.1em; color: var(--accent-color); }
.auth-item.no-link { cursor: default; }
.auth-item.no-link:hover { opacity: 1; }

/* ヒーロー内CTAボタン */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.hero-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.15rem;
    line-height: 1.3;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}
.hero-btn:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
.hero-btn i { font-size: 1.4rem; margin-bottom: 4px; }
.hero-btn .btn-sub { font-size: 0.75rem; font-weight: normal; margin-top: 4px; opacity: 0.9; }
.hero-btn-tel { background: #fff; color: var(--primary-color); border: 3px solid var(--accent-color); }
.hero-btn-line {
    background: var(--line-color);
    color: #fff;
    position: relative;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.45);
    animation: line-pulse 2.4s ease-in-out infinite;
}
.hero-btn-line:hover { animation: none; }
.hero-btn-line::before {
    content: "最速回答";
    position: absolute;
    top: -12px;
    right: -8px;
    background: #dc3545;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    letter-spacing: 0.05em;
}
@keyframes line-pulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(6, 199, 85, 0.45); }
    50% { box-shadow: 0 8px 28px rgba(6, 199, 85, 0.8); }
}
.hero-btn-form { background: var(--accent-color); color: #fff; }

/* ---- Campaign Banner ---- */
.campaign-banner-area {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}
.campaign-banner-wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border: 2px solid #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 900px;
    margin: 0 auto;
}
.campaign-banner-wide:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
    color: #fff;
}
.banner-icon { font-size: 2.5rem; color: #fff; }
.banner-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.banner-tag {
    background: #fff;
    color: #2E7D32;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 4px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.banner-text {
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.05em;
}
.banner-arrow { font-size: 2rem; color: #fff; }

/* ---- Trust Section (USP) ---- */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.trust-item { background: var(--white); padding: 40px 20px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); text-align: center; }
.trust-item i { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }
.trust-item h3 {
    margin-bottom: 18px;
    padding-bottom: 14px;
    color: var(--primary-color);
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    line-height: 1.5;
    /* 長文タイトル（例: 「住まいの『これから』をトータル支援」）がタブレット2カラムで飛び出すのを防ぐため、折り返し許可 */
    white-space: normal;
    overflow-wrap: break-word;
    position: relative;
    border-bottom: none; /* Lightning デフォルトの灰色下線をリセット */
}
.trust-item h3::after {
    /* Lightning の青ドット線をブランドカラーの中央アクセント線に上書き */
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-bottom: none;
}

/* ---- Service Section ---- */
.service-box { background: var(--white); margin-bottom: 40px; border-radius: 12px; overflow: hidden; display: flex; flex-wrap: wrap; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.service-img { flex: 1; min-width: 300px; background: #ddd center/cover; min-height: 350px; }
.service-content { flex: 1.2; min-width: 300px; padding: 50px; }
.service-content h3 { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 20px; border-left: 6px solid var(--accent-color); padding-left: 15px; }
.service-content ul { padding-left: 20px; margin-bottom: 25px; }
.service-content li { margin-bottom: 12px; }

/* ---- Steps Section ---- */
.step-list {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 60px;
}
.step-item {
    flex: 1;
    min-width: 200px;
    background: transparent;
    padding: 40px 10px 10px;
    position: relative;
    text-align: center;
}
.step-item::before {
    content: '';
    position: absolute;
    top: 20px; left: 0;
    width: 100%; height: 4px;
    background: var(--primary-color);
    border-radius: 4px;
    z-index: 1;
}
.step-num {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--white);
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    font-family: 'Arial', sans-serif;
    z-index: 2;
    box-shadow: 0 0 0 6px var(--bg-light);
    line-height: 1;
    padding-bottom: 2px;
}

/* ---- Case Studies Section ---- */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.case-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.case-badge {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 18px;
    font-weight: bold;
    font-size: 0.85rem;
    text-align: center;
    letter-spacing: 0.05em;
}
.case-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: #f5f5f5;
}
.case-images.single { grid-template-columns: 1fr; }
.case-img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eee;
}
.case-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.case-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.72);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    letter-spacing: 0.05em;
    z-index: 2;
}
.case-label-after { background: var(--accent-color); color: var(--text-dark); }
.case-card h4 {
    margin: 18px 22px 10px;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: bold;
    line-height: 1.45;
}
.case-card p {
    margin: 0 22px 22px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #555;
    flex-grow: 1;
}

/* ---- CTA & Form Area ---- */
.cta-area {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}
.cta-area h2 { font-size: 2.2rem; margin-bottom: 20px; color: var(--white); }
.cta-tel { font-size: 2.5rem; font-weight: bold; margin: 20px 0; display: block; color: var(--white); text-decoration: none; }
.cta-tel i { color: var(--accent-color); }

/* ---- Mobile (LP) ---- */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-catchcopy { font-size: 1.05rem; margin-bottom: 15px; }
    .hero-cta { gap: 12px; }
    .hero-btn { min-width: 140px; padding: 14px 18px; font-size: 1rem; }
    .service-box { flex-direction: column; }
    .service-content { padding: 30px 20px; }
    .cta-tel { font-size: 1.8rem; }
    /* 4ステップは縦積みで表示（PCの flex 4カラムを上書き） */
    .step-list { gap: 28px; flex-direction: column; align-items: center; }
    .step-item { flex: 0 0 auto; min-width: 0; width: 100%; max-width: 420px; padding: 50px 16px 16px; }
    .step-item::before { display: none !important; }
    .step-num { top: 0; }
    .step-item h4 { margin-top: 8px; font-size: 1.15rem; }
    .step-item p { font-size: 0.95rem; line-height: 1.7; }
    .auth-list { flex-direction: column; align-items: center; gap: 15px; }
    .trust-item h3 { font-size: 1.2rem; }
    .campaign-banner-wide { padding: 15px; flex-direction: column; gap: 10px; text-align: center; }
    .banner-arrow { display: none; }
    .banner-text { font-size: 1.1rem; line-height: 1.4; }
    /* Case Studies モバイル */
    .case-grid { grid-template-columns: 1fr; gap: 22px; }
    .case-card h4 { font-size: 1.05rem; margin: 14px 18px 8px; }
    .case-card p { margin: 0 18px 18px; font-size: 0.88rem; }
}
