
/* ==========================================================
   HERO - Salon
========================================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 720px;
    padding: 30px 0 90px;
    overflow: hidden;
    background: linear-gradient(
        115deg,
        #ffffff 0%,
        #f9fcfa 48%,
        #eaf8f0 100%
    );
}

/* 左右レイアウト */
.hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

/* ==========================================================
   左側：テキスト
========================================================== */

.hero__content {
    flex: 0 0 42%;
    min-width: 0;
    color: #26342c;
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e5f7e9;
    border: 1px solid #d7efde;
    color: #167346;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.hero__title {
    margin: 0 0 28px;
    color: #26332c;
    font-size: clamp(30px, 3.1vw, 48px);
    font-weight: 900;
    line-height: 1.55;
    letter-spacing: -0.045em;
}

.hero__title span {
    color: #20bf62;
}

.hero__description {
    margin: 0 0 25px;
    color: #53645a;
    font-size: 15px;
    font-weight: 500;
    line-height: 2.1;
}

.hero__description__small {
    margin: 0;
    color: #7b8980;
    font-size: 12px;
    line-height: 1.8;
}

.hero__description__small a {
    color: #168a50;
}

/* ==========================================================
   右側：サロン写真＋管理画面
========================================================== */

.hero__visual {
    position: relative;
    flex: 0 0 58%;
    min-width: 0;
    height: 570px;
}

/* 背景：サロン写真 */
.hero__photo {
    position: absolute;
    inset: 0 -8% 10% 24%;
    overflow: hidden;
    border-radius: 36px 36px 36px 100px;
    background: #eef5ef;
    box-shadow: 0 24px 60px rgba(35, 75, 50, .12);
}

.hero__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 写真の上の白いグラデーション */
.hero__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, .38) 0%,
        rgba(255, 255, 255, .06) 65%,
        transparent 100%
    );
    pointer-events: none;
}

/* 前面：PC＋スマホ管理画面 */
.hero__device {
    position: absolute;
    z-index: 2;
    width: 85%;
    left: -18%;
    bottom: -65px;
    animation: heroDeviceFloat 7s ease-in-out infinite;
}

.hero__device img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(
        0 20px 28px rgba(20, 45, 30, .18)
    );
}

/* 浮遊アニメーション */
@keyframes heroDeviceFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@media (max-width: 992px) {
    .hero {
        min-height: 620px;
        padding: 30px 0 70px;
    }

    .hero__container {
        gap: 10px;
    }

    .hero__content {
        flex-basis: 45%;
    }

    .hero__visual {
        flex-basis: 55%;
        height: 440px;
    }

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

    .hero__photo {
        inset: 0 0 0 8%;
    }

    .hero__device {
        width: 112%;
        left: -12%;
        bottom: -35px;
    }
}

/* ==========================================================
   Smartphone
========================================================== */

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

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

    .hero__content {
        flex: none;
        width: 100%;
    }

    .hero__badges {
        gap: 7px;
        margin-bottom: 22px;
    }

    .hero__badge {
        padding: 7px 11px;
        font-size: 11px;
    }

    .hero__title {
        font-size: clamp(28px, 7vw, 36px);
        line-height: 1.5;
        margin-bottom: 22px;
    }

    .hero__description {
        font-size: 14px;
        line-height: 1.9;
    }

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

    .hero__photo {
        inset: 0 0 0 5%;
        border-radius: 28px 28px 28px 65px;
    }

    .hero__device {
        width: 105%;
        left: -5%;
        bottom: -150px;
    }
}

@media (max-width: 420px) {
    .hero {
        padding-top: 95px;
    }

    .hero__title {
        font-size: 27px;
    }

    .hero__visual {
        height: 320px;
    }

    .hero__device {
        width: 110%;
        left: -8%;
        bottom: -25px;
    }
}

/* アニメーション軽減設定 */
@media (prefers-reduced-motion: reduce) {
    .hero__device {
        animation: none;
    }
}
