
/* ==========================================
   HERO - Premium Fitness Design
========================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 760px;
    padding: 90px 0;
    overflow: hidden;
    isolation: isolate;
    background: #101312;
}

/* ジム背景写真 */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;

    background-image:
        url("../../images/hero_gym.jpeg");
    background-size: cover;
    background-position: center 45%;
    background-repeat: no-repeat;

    transform: scale(1.025);
}

/* 黒いグラデーション */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgba(7, 12, 11, .94) 0%,
        rgba(7, 12, 11, .82) 27%,
        rgba(7, 12, 11, .53) 56%,
        rgba(7, 12, 11, .26) 100%
    );
}

/* スキー場用の背景・雪を無効化 */
.hero .snow,
.hero__background {
    display: none;
}

/* ==========================================
   Layout
========================================== */

.hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    width: 100%;
}

.hero__content {
    flex: 1 1 54%;
    min-width: 0;
    color: #fff;
}

/* ==========================================
   Badges
========================================== */

.hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    margin: 0 5px 28px 0;

    border-radius: 999px;
    background: rgba(12, 255, 154, 0.58);
    border: 1px solid rgba(132, 255, 186, .16);

    color: #f1fff6;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ==========================================
   Title
========================================== */

.hero__title {
    margin: 8px 0 32px;

    color: #fff;
    font-family: "Noto Sans JP", sans-serif;
    font-size: clamp(32px, 3.15vw, 52px);
    font-weight: 900;
    line-height: 1.48;
    letter-spacing: -.045em;

    text-shadow: 0 3px 24px rgba(0, 0, 0, .28);
}

.hero__title span {
    color: #06e66a;
}

/* ==========================================
   Description
========================================== */

.hero__description {
    margin: 0 0 32px;
    color: rgba(255, 255, 255, .94);
    font-size: 15px;
    font-weight: 500;
    line-height: 2.15;
    letter-spacing: -.015em;
}

.hero__description__small {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    line-height: 1.9;
}

.hero__description__small a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==========================================
   Right Visual
========================================== */

.hero__visual {
    position: relative;
    z-index: 3;
    flex: 0 1 45%;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2つの画面を配置 */
.hero__phones {
    position: relative;
    width: min(100%, 520px);
    height: 570px;
}

/* 画面背後の淡い光 */
.hero__phones::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 75%;
    transform: translate(-50%, -50%);
    border-radius: 50%;

    background: rgba(255, 255, 255, .14);
    filter: blur(65px);
    pointer-events: none;
}

/* 画面カード */
.hero__phone-card {
    position: absolute;
    width: 55%;
    max-width: 280px;
    overflow: hidden;

    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .35);

    box-shadow:
        0 35px 85px rgba(0, 0, 0, .48),
        0 8px 22px rgba(0, 0, 0, .22);

    animation: gymPhoneFloat 6s ease-in-out infinite;
    will-change: transform;
}

.hero__phone-card img {
    display: block;
    width: 100%;
    height: auto;
}

/* 奥側 */
.hero__phone-card--back {
    --rotate: -9deg;
    left: 3%;
    bottom: 25px;
    z-index: 1;
    animation-delay: -2s;
}

/* 手前側 */
.hero__phone-card--front {
    --rotate: 8deg;
    right: 2%;
    top: 25px;
    z-index: 2;
}

/* 浮遊アニメーション */
@keyframes gymPhoneFloat {
    0%, 100% {
        transform:
            translateY(0)
            rotate(var(--rotate));
    }

    50% {
        transform:
            translateY(-13px)
            rotate(var(--rotate));
    }
}

/* ==========================================
   Entry Animation
========================================== */

@keyframes gymFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__content > * {
    animation: gymFadeUp .8s ease both;
}

.hero__content > *:nth-child(2) {
    animation-delay: .08s;
}

.hero__content > *:nth-child(3) {
    animation-delay: .16s;
}

.hero__content > *:nth-child(4) {
    animation-delay: .24s;
}

.hero__content > *:nth-child(5) {
    animation-delay: .32s;
}

.hero__visual {
    animation: gymFadeUp 1s ease .25s both;
}

/* ==========================================
   Tablet
========================================== */

@media (max-width: 1100px) {
    .hero {
        min-height: 680px;
        padding: 80px 0;
    }

    .hero__container {
        gap: 20px;
    }

    .hero__title {
        font-size: clamp(29px, 3.5vw, 42px);
    }

    .hero__description {
        font-size: 13px;
    }

    .hero__phones {
        height: 480px;
    }
}

/* ==========================================
   Mobile
========================================== */

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 90px 0 55px;
    }

    .hero::before {
        background-position: 44% center;
    }

    .hero::after {
        background: linear-gradient(
            180deg,
            rgba(7, 12, 11, .88) 0%,
            rgba(7, 12, 11, .82) 45%,
            rgba(7, 12, 11, .73) 100%
        );
    }

    .hero__container {
        flex-direction: column;
        align-items: stretch;
        gap: 25px;
    }

    .hero__content {
        width: 100%;
        flex: none;
        text-align: left;
    }

    .hero__badge {
        padding: 7px 11px;
        margin: 0 3px 17px 0;
        font-size: 10px;
    }

    .hero__title {
        font-size: clamp(26px, 6.4vw, 38px);
        line-height: 1.55;
        margin: 12px 0 25px;
    }

    .hero__description {
        font-size: 12px;
        line-height: 2;
        margin-bottom: 25px;
    }

    .hero__description__small {
        font-size: 10px;
    }

    .hero__visual {
        width: 100%;
        height: auto;
        flex: none;
    }

    .hero__phones {
        width: min(100%, 350px);
        height: 390px;
        margin: 0 auto;
    }

    .hero__phone-card {
        width: 55%;
        border-radius: 20px;
    }

    .hero__phone-card--back {
        left: 5%;
        bottom: 15px;
    }

    .hero__phone-card--front {
        right: 5%;
        top: 20px;
    }
}

@media (max-width: 380px) {
    .hero__title {
        font-size: 25px;
    }

    .hero__phones {
        height: 340px;
    }
}

/* 動きを抑える設定のユーザー向け */
@media (prefers-reduced-motion: reduce) {
    .hero__content > *,
    .hero__visual,
    .hero__phone-card {
        animation: none;
    }

    .hero__phone-card--back {
        transform: rotate(-9deg);
    }

    .hero__phone-card--front {
        transform: rotate(8deg);
    }
}
