/* --------------------------------
2026-08-25 kaf-renewal.cssの追加
--------------------------------- */

.home {

    /* ヘッダーの固定化と高さの調整（フロントページのみ・kaf-renewal対応 2026-08-25） */
    @media (min-width: 64rem) {
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 40;

            height: 100px;
            /* ヘッダーの高さを調整 */
            display: grid;
            place-items: center;
            background-color: color-mix(in oklab, var(--color-white) 60%, transparent);
        }

        .header .subtext,
        .header-group-r,
        header #navbar {
            flex: 0 0 auto;
        }

        header #navbar {
            position: static;
        }

        #navbar ul {
            background-color: unset;
            display: flex;
            justify-content: flex-end;
        }

        /* ナビゲーション（共通） */
        #navbar ul>li {
            font-size: 15px;
        }

        /* ヘッダー高さを調整するためpadding-blockを解除 */
        .header-container {
            padding-block: 0;
        }
    }

    /* ===================================================================
    ヘッダー グリッド配置：共通部分（1024px〜1400px）
    （kaf-renewal対応 2026-08-25）
    =================================================================== */
    @media (min-width: 64rem) and (max-width: 87.5rem) {
        .header-container {
            display: grid;
            grid-template-columns: auto 1fr auto;
            grid-template-rows: 1fr 1fr;
            align-items: center;
            column-gap: 1.5rem;
            padding-block: 0;
        }

        /* ロゴ（共通） */
        .header-group-l {
            grid-column: 1;
            grid-row: 1 / 3;
        }

        .header-logo {
            width: 164px;
            margin-top: 0.5rem;
        }

        #navbar ul {
            justify-content: flex-end;
            width: auto;
        }

        #navbar ul>li a {
            padding-inline: calc(var(--spacing) * 6);
            padding-block: calc(var(--spacing) * 3);
            display: inline-block;
        }

        /* 最後のaタグだけ右の余白を削除 */
        #navbar ul>li:last-child a {
            padding-right: 0.5rem;
        }

        .header-group-r {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            margin-top: auto;
        }
    }

    /* ===================================================================
    1200px〜1400px 配置差分（kaf-renewal対応 2026-08-25）
    =================================================================== */
    @media (min-width: 75rem) and (max-width: 87.5rem) {

        /* サブテキスト */
        .header-subtext {
            grid-column: 2;
            grid-row: 1 / 3;
        }

        /* ナビゲーション */
        #navbar {
            grid-column: 3 / 4;
            grid-row: 2;
        }

        .header-group-r {
            grid-column: 3;
            grid-row: 1;
        }
    }

    /* ===================================================================
    1024px〜1199px 配置差分（kaf-renewal対応 2026-08-25）
    =================================================================== */
    @media (min-width: 64rem) and (max-width: 74.9375rem) {

        /* サブテキスト */
        .header-subtext {
            grid-column: 2;
            grid-row: 1;
            margin-top: auto;
        }

        /* ナビゲーション */
        #navbar {
            grid-column: 2 / 4;
            grid-row: 2;
        }

        .header-group-r {
            grid-column: 3;
            grid-row: 1;
        }
    }

    /* 固定した高さ分mainを下へ移動（kaf-renewal対応 2026-08-25） */
    @media (min-width: 64rem) {
        main {
            margin-top: 100px;
            /* ヘッダーの高さに合わせて調整 */
        }
    }
}

/* home以外（kaf-renewal対応 2026-08-25） */
body:not(.home) ul.hidden.lg\:flex.header-services.header-subtext {
    margin-right: auto;
    margin-left: calc(var(--spacing) * 6);
}

/* メインビジュアル スライドショー（日本語版のみ・kaf-renewal対応） */
.main-visual-ja {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    height: 600px;
    margin-inline: 0;
    padding-inline: 0;
    margin-bottom: 1rem;
}

.main-visual-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.main-visual-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, visibility 1.5s;
    z-index: 0;
}

.main-visual-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.main-visual-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center right 30%;
    background-repeat: no-repeat;
}

.main-visual-slide-text {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 1400px;
    height: 100%;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding-top: 2rem;
    padding-bottom: 2.5rem;


    h2 {
        font-family: 'Zen Kaku Gothic New', sans-serif !important;
        font-style: normal;
        font-weight: 900;
        font-size: clamp(2.25rem, 6vw, 5.375rem);
        line-height: 1.4 !important;
    }

    .sub-head-text {
        font-family: 'Zen Kaku Gothic New', sans-serif !important;
        font-weight: 500;
        font-size: clamp(1.125rem, 2.25vw, 1.75rem);
        line-height: 1.4 !important;
        flex: 1;
    }
}

/* メインビジュアル見出しのPC/SP出し分け */
.main-visual-heading-sp {
    display: block;
}

.main-visual-heading-pc {
    display: none;
}

/* メインビジュアルの詳細を見るボタン */
.mv-slide-button {
    font-family: 'Zen Kaku Gothic New', sans-serif !important;
    font-weight: 700;
    font-size: clamp(1.25rem, 2.25vw, 2.125rem);
    /* 文字間 */
    letter-spacing: 0.1em;
    line-height: 1.4 !important;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    width: 270px;
}

@media (min-width: 64rem) {
    .main-visual-heading-sp {
        display: none;
    }

    .main-visual-heading-pc {
        display: block;
    }
}

/* メインビジュアル PC/SP画像出し分け（kaf-renewal対応） */
.main-visual-bg-pc {
    display: none;
}

.main-visual-bg-sp {
    display: block;
}

@media (min-width: 48rem) {

    .main-visual-bg-pc {
        display: block;
    }

    .main-visual-bg-sp {
        display: none;
    }

    .main-visual-slide-text {
        justify-content: center;

        .sub-head-text {
            flex: initial;
        }
    }

    .mv-slide-button {
        width: 470px;
    }
}

/* ドットインジケーター（kaf-renewal対応） */
.main-visual-dots {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.main-visual-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.main-visual-dot.is-active {
    background-color: #fff;
}

/* カードレイアウトのラベルをTour No.から人気NO.に修正（全ページ共通） */
section.section-course .section-course-list .section-course-list-item .badge-course-number:has(.label-popular) {
    top: calc(var(--spacing) * -1);
    right: calc(var(--spacing) * -1);
    height: calc(var(--spacing) * 16);
    width: calc(var(--spacing) * 16);
    background-color: var(--color-secondary);
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    border-radius: 3.40282e38px;
    justify-content: center;
    align-items: center;
    display: flex;
    position: absolute;
    rotate: 0deg;
    display: flex;
    flex-direction: column;

    /* 人気 */
    .label-popular {
        font-size: 1.2rem;
        line-height: 1;
    }

    /* No. */
    .label-number {
        font-size: 1.15rem;
        line-height: 1;
        margin-bottom: 0.1rem;
    }
}