.mv {
    position: relative;
    top: -100px;
}

.mv img {
    width: 100%;
}

.mv__catch {
    position: absolute;
    bottom: 10%;
    left: 5%;
    color: #fff;
}

.card-item {
    width: 100%;
    max-width: calc(50% - 15px);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #1B69BF;
    border-radius: 18px;
    aspect-ratio: 5 / 3;
    background-color: rgba(255, 255, 255, 0.3);
    background-blend-mode: lighten;
}

@media (min-width: 768.1px) and (max-width: 915px) {
    .card-item.card2 {
        aspect-ratio: 5 / 4;
    }
}

@media (max-width: 480px) {
    .card-item.card2 {
        aspect-ratio: 5 / 4;
    }
}

/* ぼかし */
.card-item {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.card-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--card-bg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    filter: blur(1px);
    transform: scale(1.1);
    z-index: 0;
}

/* 各カードで画像をCSS変数に入れる */
.card1 {
    --card-bg: url(../img/top-bg01.webp);
    background-image: var(--card-bg);
}

.card2 {
    --card-bg: url(../img/top-bg02.webp);
    background-image: var(--card-bg);
}

.card3 {
    --card-bg: url(../img/top-bg03.webp);
    background-image: var(--card-bg);
}

.card4 {
    --card-bg: url(../img/top-bg04.webp);
    background-image: var(--card-bg);
}

.card-item>* {
    position: relative;
    z-index: 1;
}

.intro__wrap h3 {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
    text-shadow: 0 0 8px rgb(255, 255, 255);
}


.intro__wrap {
    width: 100%;
}

.intro {
    text-align: center;
    padding: 50px 20px 0;
}

.intro h2 {
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.top-other {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 30px auto 100px auto;
    gap: 30px;
    padding: 0 20px;
    max-width: 1250px;
}

.visit__left {
    color: #fff;
    max-width: 450px;
    margin-right: 100px;
}

.visit__left h3 {
    font-size: 40px;
    line-height: 1.4;
}

.visit__right {
    max-width: 350px;
    width: 100%;
}

.visit__right .card-btn {
    max-width: 350px;
}

.hospitality,
.environment {
    border: 1px solid #1B69BF;
    border-radius: 18px;
    width: 100%;
    max-width: calc(50% - 15px);
}

.hospitality h4,
.environment h4 {
    background-color: #1B69BF;
    border-radius: 17px 17px 0 0;
    height: 70px;
    display: flex;
    align-items: center;
    padding-left: 20px;
    color: #fff;
    font-size: 26px;
    letter-spacing: 0.2em;
}

.hospitality__wrap {
    display: flex;
    justify-content: center;
    margin: 40px auto;
    padding: 0 20px;
}

.hospitality__wrap div {
    max-width: 280px;
}

.hospitality__wrap div:first-child {
    border-right: 1px solid #aaa;
    margin-right: 20px;
    padding-right: 20px;
}

.hospitality p,
.environment__text p {
    line-height: 1.5;
    margin-bottom: 0.8em;
    padding-left: 1em;
    text-indent: -1em;
    font-size: 16px;
    font-weight: 500;
}

.top-other img {
    display: block;
    margin: 30px auto 10px;
    width: 94%;
    max-width: 500px;
}

.environment__text {
    margin: 50px 20px 0 20px;
}

@media (min-width: 1024.1px) {
    .environment__text {
        margin: 50px 20px 0 50px;
    }
}

.top-other p::before {
    content: "●";
}

.visit {
    background-image: url(../img/top-bg05.webp);
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    padding: 150px 20px;
    justify-content: center;
    align-items: center;
}

.visit__left p {
    font-size: 16px;
    margin-top: 20px;
    padding-bottom: 1em;
}

/*---------------------------------------
  SP用スタイル（768px以下）
----------------------------------------*/
@media (max-width: 768px) {
    .hospitality__wrap div {
        max-width: inherit;
        width: 90%;
    }

    .hospitality__wrap {
        flex-direction: column;
        padding: 0;
        margin: 20px auto;
    }

    .hospitality__wrap div:first-child {
        border-bottom: 1px solid #aaa;
        margin: 0 auto;
        padding-right: inherit;
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-right: inherit;
    }

    .hospitality__wrap div:last-child {
        margin: 0 auto;
    }

    .hospitality,
    .environment {
        margin: 0 auto;
    }

    .intro__wrap {
        height: auto;
        padding: inherit;
    }

    .intro h2 {
        font-size: 18px;
    }

    .header.scrolled {
        background-color: inherit;
    }

    .card-area,
    .top-other,
    .visit {
        flex-direction: column;
    }

    .card-item,
    .hospitality,
    .environment {
        max-width: none;
    }

    .visit {
        flex-direction: column;
    }

    .visit__left h3 {
        font-size: 24px;
    }

    .visit {
        text-align: center;
        padding: 50px 20px;
    }

    .visit__left {
        margin: 0 auto;
    }

    .top-other {
        width: 100%;
        margin: 0 auto 80px auto;
    }

    .environment__text {
        margin: 30px auto 30px auto;
        width: 90%;
    }
}

@media (max-width: 768px) {
    .visit__right {
        margin: auto;
    }
}

@media (max-width: 480px) {

    .card1,
    .card2,
    .card3,
    .card4 {
        border-radius: 17px;
        border: 1px solid #1B69BF;
        background-size: cover;
    }

    .card-area .card1 {
        max-height: 220px;
    }

    .card-area .card2 {
        max-height: 320px;
    }

    .card-area .card3 {
        max-height: 270px;
    }

    .intro__wrap h3 {
        font-size: 18px;
        padding-top: 10px;
    }

    .card-btn {
        font-size: 14px;
    }
}





.top-page main {
    padding-top: 0;
}

/* ===== hero背景スライダー（PC）===== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 100svh;
    /* SafariのUI込みで安定（iOS16+） */
    /* height: 100dvh; */
    /* 表示領域に追従（iOS16+） */
    min-height: 100vh;
    /* 古い端末保険 */
    min-height: 100svh;
    /* iPhone安定 */
}

.hero {
    /* ★保険用背景 */
    background-image: url("../img/mv1.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
/* SP時は保険用背景もSP画像に差し替え */
@media (max-width: 768px) {
    .hero {
        background-image: url("../img/mv1_sp.webp");
    }
}

/* 共通 */
.hero__bg1,
.hero__bg2,
.hero__bg3 {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0;
    animation: heroFade 15s infinite;
    will-change: opacity;
    backface-visibility: hidden;
}

/* PC画像＋delay */
@media (min-width: 768.1px) {
    .hero__bg1 { background-image: url("../img/mv1.webp"); animation-delay: -2s; }
    .hero__bg2 { background-image: url("../img/mv2.webp"); animation-delay: 5s; }
    .hero__bg3 { background-image: url("../img/mv3.webp"); animation-delay: 10s; }
}

/* SP画像 */
@media (max-width: 768px) {
    .hero__bg1 { background-image: url("../img/mv1_sp.webp"); animation-delay: -2s; }
    .hero__bg2 { background-image: url("../img/mv2_sp.webp"); animation-delay: 5s; }
    .hero__bg3 { background-image: url("../img/mv3_sp.webp"); animation-delay: 10s; }
}

/* h1を前面に */
.hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 200px 20px 20px;
}

.hero__inner img.pc {
    width: 100% !important;
}

.hero__inner img.sp {
    width: 100% !important;
    margin: auto;
}

.hero__inner img {
    -webkit-filter: drop-shadow(0px 3px 8px rgba(0, 0, 0, 0.5));
    /* SafariなどのWebkitブラウザ用 */
    filter: drop-shadow(0px 3px 8px rgba(0, 0, 0, 0.3));
}


/* 画像をフェードで入れ替え */
@keyframes heroFade {
    0% {
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    41% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* ===== SP時：SP用画像3枚に差し替え ===== */
@media (max-width: 768px) {
    .hero__inner {
        padding: 80px 20px 20px;
    }
}

.hero__inner img.pc {
    display: block;
}

.hero__inner img.sp {
    display: none;
}

@media (max-width:768px) {
    .hero__inner img.pc {
        display: none;
    }

    .hero__inner img.sp {
        display: block;
    }
}