/*
 * Bucket Miles トップページ
 */

/* ========================================
   トップページだけSWELLの余白を消す
======================================== */

/*
 * トップページ内に .bucket-home がある場合だけ、
 * WordPressテーマ側の余白を詰めます。
 */
body:has(.bucket-home) .l-content,
body:has(.bucket-home) .l-mainContent,
body:has(.bucket-home) .l-mainContent__inner,
body:has(.bucket-home) .post_content,
body:has(.bucket-home) #content,
body:has(.bucket-home) #main_content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/*
 * パンくずやページタイトルが残る場合に非表示にします。
 */
body:has(.bucket-home) #breadcrumb,
body:has(.bucket-home) .p-breadcrumb,
body:has(.bucket-home) .c-pageTitle,
body:has(.bucket-home) .p-pageTitle {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ========================================
   トップページ全体
======================================== */

.bucket-home {
    width: 100vw;
    margin-left: calc(50% - 50vw);

    color: #ffffff;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans JP",
        "Yu Gothic",
        sans-serif;
}

/* ========================================
   ヒーロー画像
======================================== */

.bucket-home-hero {
    position: relative;

    width: 100%;
    min-height: 700px;

    background:
        url("/wp-content/uploads/2026/08/hero.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*
 * 左側を暗くして、
 * 白文字が読みやすいようにします。
 */
.bucket-home-hero__overlay {
    width: 100%;
    min-height: 700px;

    background:
        linear-gradient(90deg,
            rgba(5, 24, 54, 0.58) 0%,
            rgba(5, 24, 54, 0.32) 38%,
            rgba(5, 24, 54, 0.08) 72%,
            rgba(5, 24, 54, 0) 100%);
}

/* ========================================
   中身の位置
======================================== */

.bucket-home-hero__inner {
    display: flex;
    align-items: center;

    width: min(1320px, calc(100% - 64px));
    min-height: 700px;

    margin: 0 auto;
}

/* ========================================
   キャッチコピー
======================================== */

.bucket-home-hero__copy {
    width: 100%;
    max-width: 980px;

    color: #ffffff;

    transform: translateX(-80px);

    text-shadow:
        0 4px 24px rgba(0, 0, 0, 0.35);
}

.bucket-home-hero__copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(46px, 5vw, 76px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: 0.02em;
    white-space: normal;

    /*
     * PCでは1行表示に固定します。
     */
    white-space: nowrap;
}

.bucket-home-hero__copy p {
    margin: 24px 0 0;

    color: rgba(255, 255, 255, 0.95);

    font-size: clamp(17px, 1.8vw, 23px);
    font-weight: 600;
    line-height: 1.7;
}

/* ========================================
   検索ボタン
======================================== */

.bucket-home-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 320px;
    min-height: 64px;

    margin-top: 38px;
    padding: 0 34px;

    color: #ffffff;

    background:
        linear-gradient(135deg,
            #1769e0 0%,
            #0d58cc 100%);

    border-radius: 999px;

    box-shadow:
        0 12px 30px rgba(7, 63, 150, 0.34);

    font-size: 18px;
    font-weight: 700;
    text-decoration: none;

    transition:
        transform 0.2s,
        box-shadow 0.2s,
        filter 0.2s;
}

.bucket-home-hero__button:hover {
    color: #ffffff;

    filter: brightness(1.08);
    transform: translateY(-2px);

    box-shadow:
        0 16px 36px rgba(7, 63, 150, 0.42);
}

/* ========================================
   タブレット
======================================== */

@media (max-width: 1000px) {

    .bucket-home-hero,
    .bucket-home-hero__overlay,
    .bucket-home-hero__inner {
        min-height: 620px;
    }

    .bucket-home-hero {
        background-position: 62% center;
    }

    .bucket-home-hero__inner {
        width: min(100% - 36px, 900px);
    }

    .bucket-home-hero__copy h1 {
        font-size: 48px;
    }
}

/* ========================================
   スマートフォン
======================================== */

@media (max-width: 700px) {

    .bucket-home {
        overflow-x: hidden;
    }

    .bucket-home-hero,
    .bucket-home-hero__overlay,
    .bucket-home-hero__inner {
        min-height: 650px;
    }

    .bucket-home-hero {
        background-position: 68% center;
    }

    .bucket-home-hero__overlay {
        background:
            linear-gradient(90deg,
                rgba(5, 24, 54, 0.62) 0%,
                rgba(5, 24, 54, 0.34) 58%,
                rgba(5, 24, 54, 0.12) 100%);
    }

    .bucket-home-hero__inner {
        align-items: center;
        justify-content: center;

        width: 100%;
        padding: 0 24px;
        box-sizing: border-box;
    }

    .bucket-home-hero__copy {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        transform: none;
        text-align: left;
    }

    .bucket-home-hero__copy h1 {
        margin: 0;

        /* 少しだけ小さく */
        font-size: clamp(30px, 8vw, 40px);

        /* 行間を少し詰める */
        line-height: 1.12;

        /* 日本語は少し詰めた方が綺麗 */
        letter-spacing: -0.03em;

        /* 2行で収める */
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: normal;
    }

    .bucket-home-hero__copy h1 br {
        display: block;
    }

    .bucket-home-hero__copy p {
        margin-top: 22px;

        font-size: 16px;
        line-height: 1.65;

        white-space: normal;
    }

    .bucket-home-hero__button {
        display: flex;

        width: 86%;
        min-width: 0;
        min-height: 58px;

        margin: 30px auto 0;
        padding: 0 20px;

        box-sizing: border-box;

        font-size: 17px;
    }
}