@charset "utf-8";

/* ==========================================================================
   Base Layout (基本設定)
   ========================================================================== */
.top-hero-wrap {
    font-family: "Noto Serif JP", serif; /* 明朝体系に変更されています */
    line-height: 1.5;
    font-size: 15px;
    font-size: clamp(15px, 1.04vw, 20px);
    overflow: hidden;
    box-sizing: border-box;
    background-color: #f9f9f9; /* 背景色（画像がない場合の保険） */
}

.top-hero-wrap * {
    box-sizing: border-box;
}

.top-hero-wrap__row {
    display: flex !important;
    flex-direction: row;
    align-items: stretch; /* 高さを揃える */
    gap: 40px; /* 左サイドバーとメインコンテンツの間隔 */
    /* 背景画像の設定 */
    background: url(../img/top-hero-bg.jpg) left top / auto no-repeat;
    width: 100%;
}

/* 背景画像の調整 */
@media screen and (min-width: 2230px) {
    .top-hero-wrap__row { background-size: 100%; }
}
@media screen and (max-width: 1680px) {
    .top-hero-wrap__row { gap: 30px; }
}
@media screen and (max-width: 1000px) {
    .top-hero-wrap__row {
        flex-direction: column !important;
        gap: 0;
    }
}
@media screen and (max-width: 480px) {
    .top-hero-wrap__row {
        background: url(../img/top-hero-bg_sp.png) center top / auto no-repeat;
    }
}

/* ==========================================================================
   Copy Area (左側コピーエリア - オレンジ背景)
   ========================================================================== */
.top-hero-wrap__copy {
    /* 幅を300pxに固定 */
    flex: 0 0 300px;
    width: 300px;
    
    padding: 40px 0;
    background-color: #ea5718; /* オレンジ */
    writing-mode: vertical-rl; /* 縦書き */
    display: flex;
    align-items: center;     /* 左右中央揃え（縦書きなので上下） */
    justify-content: center; /* 上下中央揃え（縦書きなので左右） */
    position: relative;
}

@media screen and (max-width: 1400px) {
    .top-hero-wrap__copy {
        flex: 0 0 240px;
        width: 240px;
    }
}

@media screen and (max-width: 1000px) {
    .top-hero-wrap__copy {
        writing-mode: horizontal-tb; /* 横書きに戻す */
        display: block;
        text-align: center;
        padding: 20px 0;
        width: 100%;
        flex: none;
    }
}

.top-hero-wrap__copy-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: center;
}

/* メインキャッチコピー */
.top-hero-wrap__copy h2 {
    font-size: clamp(22px, 2.6vw, 50px);
    color: #fff;

}

/* 白いカプセル型のテキスト */
.top-hero-wrap__copy p {
    font-size: clamp(21px, 1.82vw, 35px);
    background-color: #fff;
    padding: 15px 10px 30px;
    border-radius: 100vmax;
    color: #ea5718;


    position: absolute;
    bottom: 0; 
    left: -70px;
}

@media screen and (max-width: 1400px) {
    .top-hero-wrap__copy p {
        left: -40px;
    }
}

@media screen and (max-width: 1000px) {
    .top-hero-wrap__copy p {
        position: static;
        background-color: transparent;
        color: #fdeb6c; /* スマホ時は黄色文字 */
        white-space: normal;
        padding: 0;
        margin-top: 10px;
    }
}

/* ==========================================================================
   Main Content (右側メインエリア)
   ========================================================================== */
.top-hero-wrap__main {
    flex: 1;
    width: 100%;
    padding-right: 20px; 
}
@media screen and (max-width: 1000px) {
    .top-hero-wrap__main { padding-right: 0; }
}

/* タイトルボックス */
    .top-hero-wrap__main-tit-box {
        padding: 20px 3.8%;
        text-align: center;
        position: relative;
        max-width: 1350px;
        margin-top: 15px;

        &::before {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 8%;
            aspect-ratio: 2 / 1.4;
            background-color: #ea5718;
            z-index: 1;

            @media screen and (max-width: 480px) {
                aspect-ratio: 1 / 1;
            }
        }

        &::after {
            content: "";
            position: absolute;
            right: 0;
            top: 0;
            width: 8%;
            aspect-ratio: 2 / 1.4;
            background-color: #ea5718;
            z-index: 1;

            @media screen and (max-width: 480px) {
                aspect-ratio: 1 / 1;
            }
        }

        .top-hero-wrap__main-tit {
            background-color: #fff;
            padding: 18px 32px;
            position: relative;
            z-index: 2;

            @media screen and (max-width: 480px) {
                padding: 10px;
            }

            h3 {
                font-size: clamp(19px, 3.22vw, 40px);
                border-bottom: 1px solid #ea5718;
                padding-bottom: 10px;
            }
            p {
                font-size: clamp(16px, 2.01vw, 25px);
                margin-top: 10px;
            }
        }
    }

    .top-hero-wrap__main-read {
        text-align: center;
        line-height: 1.75;

        @media screen and (max-width: 728px) {
            padding: 0 10px;
            margin-top: 10px;
        }

        @media screen and (max-width: 560px) {
            text-align: left;
        }

        p {
            @media screen and (max-width: 560px) {
                display: inline;
            }
        }
    }


/* ==========================================================================
   Main Row (画像・動画・テキストの3カラム配置)
   ========================================================================== */
.top-hero-wrap__main-row {
    display: flex !important;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    gap: 25px;
    max-width: 1350px;
    margin: 0 auto;
}

@media screen and (max-width: 1000px) {
    .top-hero-wrap__main-row {
        flex-direction: column !important;
        align-items: center;
        padding: 0 15px;
        gap: 40px;
    }
}

/* --- 1. Slider/Image Component (左: 画像) --- */
.top-hero-wrap__main-img {
    position: relative;
    border: 2px solid #ea5718;
    background-color: #fff;
    padding: 12px;
    
    /* サイズ固定 */
    flex: 0 1 560px;
    width: 560px;
    
    height: auto;
    overflow: hidden;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
}

@media screen and (max-width: 1450px) {
    .top-hero-wrap__main-img {
        flex: 0 1 480px;
        width: 480px;
    }
}

@media screen and (max-width: 1000px) {
    .top-hero-wrap__main-img {
        width: 100%;
        max-width: 600px;
        flex: none;
        aspect-ratio: 4/3; /* SP時の比率固定 */
    }
}

/* Slider Mechanics (JS連携用) */
/* ★HTMLの構造とJS（2枚スライド）に合わせて調整済み */
.js-before-after-slider {
    /* 必要に応じてクラスを追加 */
}

.slider-wrapper {
    position: relative;
    width: 200%; /* スライド2枚分 */
    display: flex;
    transition: transform 0.4s ease-in-out;
}
.slider-item {
    width: 50%; /* 全体の50% = 1枚分 */
    position: relative;
    flex-shrink: 0;
}
.slider-item img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}
.slider-caption {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 16px;
    color: #555;
    font-weight: bold;
    font-family: "Noto Sans JP", sans-serif;
}

/* Slider Buttons */
.slider-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0 15px;
}
.slider-prev-btn, .slider-next-btn {
    pointer-events: auto;
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ea5718;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: background 0.3s, color 0.3s;
}
.slider-prev-btn:hover, .slider-next-btn:hover {
    background: #ea5718;
    color: #fff;
}

/* --- 2. Movie Component (中央: 動画) --- */
.top-hero-wrap__main-movie {
    flex: 0 0 280px;
    width: 280px;
    
    border: 2px solid #ea5718;
    background-color: #fff;
    padding: 12px; 
    
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
}

@media screen and (max-width: 1450px) {
    .top-hero-wrap__main-movie {
        flex: 0 0 240px;
        width: 240px;
        padding: 10px;
    }
}

@media screen and (max-width: 1000px) {
    .top-hero-wrap__main-movie {
        width: 100%;
        max-width: 320px;
        flex: none;
    }
}

.top-hero-wrap__main-movie video {
    width: 100%;
    height: auto;
    display: block;
}

/* --- 3. Comment Component (右: テキスト & ボタン) --- */
.top-hero-wrap__main-comment {
    flex: 0 1 260px;
    width: 260px;
    
    position: relative;
    margin-top: 40px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media screen and (max-width: 1000px) {
    .top-hero-wrap__main-comment {
        width: 100%;
        flex: none;
        margin-top: 60px;
    }
}

.top-hero-wrap__main-comment-inner {
    background: #fff;
    color: #333;
    border: 1px solid #ea5718;
    padding: 20px;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    font-size: clamp(15px, 1.04vw, 20px);
    line-height: 1.8;
    width: 100%;
}

/* 吹き出しの矢印 (左向き) */
.top-hero-wrap__main-comment-inner::before {
    content: "";
    position: absolute;
    top: 25px;
    left: -11px;
    border-style: solid;
    border-width: 8px 11px 8px 0;
    border-color: transparent #ea5718 transparent transparent;
}
.top-hero-wrap__main-comment-inner::after {
    content: "";
    position: absolute;
    top: 26px;
    left: -9px;
    border-style: solid;
    border-width: 7px 10px 7px 0;
    border-color: transparent #fff transparent transparent;
}

@media screen and (max-width: 1000px) {
    /* スマホ用矢印 (上向き) */
    .top-hero-wrap__main-comment-inner::before {
        top: -11px;
        left: 50%;
        margin-left: -8px;
        border-width: 0 8px 11px 8px;
        border-color: transparent transparent #ea5718 transparent;
    }
    .top-hero-wrap__main-comment-inner::after {
        top: -9px;
        left: 50%;
        margin-left: -7px;
        border-width: 0 7px 10px 7px;
        border-color: transparent transparent #fff transparent;
    }
}

/* 指差しアイコン */
.top-hero-wrap__main-comment::after {
    content: "";
    position: absolute;
    /* 画像パスの確認をお願いします */
    background: url(../img/top-hero-hand-icon.png) center / contain no-repeat;
    width: 55px;
    height: 70px;
    top: -50px;
    left: -20px;
    z-index: 5;
    transform: rotate(-10deg);
}

@media screen and (max-width: 1000px) {
    .top-hero-wrap__main-comment::after {
        top: -75px;
        left: 50%;
        margin-left: -25px;
        transform: rotate(-100deg);
    }
}

/* お問い合わせボタン (PC) */
a.top-hero-wrap__btn-pc {
    display: block;
    text-align: center;
    margin-top: 25px;
    width: 100%;
}
a.top-hero-wrap__btn-pc img {
    width: 100%;
    max-width: 200px;
    transition: opacity 0.3s;
    filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.1));
}
a.top-hero-wrap__btn-pc:hover img { opacity: 0.8; }

@media screen and (max-width: 1000px) {
    a.top-hero-wrap__btn-pc { display: none; }
}

/* SP Button */
.top-hero-wrap__btn-sp {
    display: none;
    text-align: center;
    margin-top: 30px;
}
@media screen and (max-width: 1000px) {
    .top-hero-wrap__btn-sp {
        display: block;
        padding-bottom: 60px;
        /* SP用背景画像 */
        background: url(../img/top-hero-bg_sp.png) center bottom / auto no-repeat;
    }
    .top-hero-wrap__btn-sp img {
        width: 80%;
        max-width: 300px;
    }
}
