/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

section {
    max-width: 100%;
}


.flex-column {
    display: flex;
    flex-direction: column;
}

/* ナビゲーションバー */
.site-nav {
    background: #f0f0f0ee;
}

.site-nav__link {
    color: #333;
}




.hero {
    height: 100dvh;
    height: calc(var(--dvh, 1vh) * 100);
    max-width: 100vw;
    overflow: hidden;
    background: url('../img/4.webp');
    padding-block-start: 7rem;
    display: flex;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: auto 100%;
    background-position: var(--bgX, 50%) 50%;
    transition: background-position 1s ease-out;
    touch-action: pan-y pinch-zoom;
}

.hero-content {
    position: absolute;
    z-index: 2;
    color: #fff;
    opacity: 0;
    transform: translateX(100%);
    transition: all 1s ease-out;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-content.active {
    opacity: 1;
    transform: translateX(0);
}

.hero-content.is-leaving {
    opacity: 0;
    transform: translateX(-100%);
}

.hero-bottom {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
}

.hero-content .hero-box {
    flex: 2;
    margin-inline: auto;
}

.hero-content .hero-features {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-inline: auto;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1em;
}

.hero-box {
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 6/4;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-box::before,
.hero-box::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #fff;
}

.hero-box::before {
    top: -7px;
    left: -7px;
    z-index: -1;
}

.hero-box::after {
    top: 7px;
    left: 7px;
    z-index: -2;
}

.hero-box p {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.hero-features {
    flex: 1;
    text-align: left;
    width: 280px;
}

.hero-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-features li {
    font-size: .865rem;
    margin-bottom: .25rem;
    padding-left: 1.5rem;
    position: relative;
    opacity: 0.9;
}

.hero-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
}


.cta-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: 1rem 2.25rem;
    font-size: .875rem;
    font-weight: 700;
    background: #d83333;
    color: #fff;
    border: 1px solid #0a0f20;
    border-radius: .5rem;
    box-shadow: var(--shadow);
    margin-block-start: 2rem;

}


.services {
    background: transparent;
    padding: 2rem 0;
    margin-block-end: 3rem;
    height: 30vh;
    position: fixed;
    bottom: 0;
    width: 100vw;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-container {
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-direction: row;
    flex-wrap: nowrap;
}

.services,
.services-container {
    overflow: hidden;
}

.service-card {
    background: #f8f8f8;
    padding: 1rem;
    width: 300px;
    position: absolute;
    opacity: 0;
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 1s ease-out;
    margin-inline: auto;
}

.service-card.active {
    opacity: 1;
    transform: translateX(0px);
}

.service-card.is-leaving {
    opacity: 0;
    transform: translateX(-100%);
}

.service-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.service-description {
    font-size: 0.825rem;
    color: #666;
    margin-bottom: 0.825rem;
    line-height: 1.6;
}


.card-arrow {
    padding-block-start: 0.825rem;
    color: #333;
}


/* サービスアイコン */
.service-icons {
    display: flex;
    justify-content: space-evenly;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.icon {
    width: 36px;
    height: 36px;
    aspect-ratio: 1/1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    transition: transform 0.3s ease;
}


.hero-pagination {
    position: absolute;
    width: 100%;
    z-index: 3;
    bottom: 7vh;
    display: flex;
    pointer-events: auto;
    justify-content: space-evenly;
    padding-inline: 2rem;
}

.hero-dot {
    width: 30px;
    height: 5px;
    border-radius: 12px;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    outline: none;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
    padding: unset;
}

.hero-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}






/* --- PC用 --- */
@media (min-width: 769px) {

    .site-header {
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, 0.255);
        backdrop-filter: blur(10px);
        z-index: 1000;
        padding: 0.25rem 1rem;
        border-radius: 50px;
        margin: 3rem auto;
        width: auto;
        min-width: 768px;
    }

    .site-header__container {
        max-width: 1200px;
        margin: 0 auto;
    }

    .site-nav {
        position: unset;
        display: flex;
        justify-content: center;
        flex-direction: row;
        list-style: none;
        width: 100%;
        height: 100%;
        margin: unset;
        padding: unset;
        background: unset;
        gap: .5rem;
    }

    .site-nav__list {
        gap: .1rem
    }

    .site-nav__item {
        position: relative;
        padding: 0.5rem 1rem;
        margin-bottom: unset;
        border-radius: .5rem;
    }

    .site-nav__link {
        color: #fff;
        text-decoration: none;
        font-weight: 400;
        font-size: 0.825rem;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .site-nav__item:hover {
        background: rgba(255, 255, 255, 0.1);
        scale: unset;
    }

    .site-nav__item.active {
        background: rgba(0, 0, 0, 0.4);
        font-weight: 500;
    }

    /* ヒーローセクション */
    .hero {
        height: 75vh;
        background: url('../img/4.webp');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        position: relative;
        padding-block-start: 4rem;
    }

    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.25);
    }

    .hero-content {
        position: absolute;
        left: 5%;
        z-index: 2;
        color: #fff;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s ease;
        width: 90%;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .hero-bottom {
        display: flex;
        justify-content: space-around;
        align-items: flex-end;
        flex-direction: row;
    }

    .hero-content .hero-box {
        flex: 2;
        margin-right: 2rem;
    }

    .hero-content .hero-features {
        flex: 1;
        background: rgba(0, 0, 0, 0.3);
        padding: 1rem;
        border-radius: 0.5rem;
    }

    .hero-content.active {
        opacity: 1;
        transform: translateY(0);
    }

    .hero-title {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        letter-spacing: 0.1em;
    }

    .hero-content:not([data-section="top"]) .hero-title {
        text-align: start;
        padding-inline-start: 15%;
    }



    .hero-subtitle {
        font-size: 1.25rem;
        font-weight: 300;
        opacity: 0.9;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    .hero-box {
        position: relative;
        text-align: center;
        max-width: 250px;
        aspect-ratio: 5/4;
        background: rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(5px);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-box::before,
    .hero-box::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border: 2px solid #fff;
    }

    .hero-box::before {
        top: -7px;
        left: -7px;
        z-index: -1;
    }

    .hero-box::after {
        top: 7px;
        left: 7px;
        z-index: -2;
    }

    .hero-box p {
        font-size: 1.25rem;
        font-weight: 500;
        line-height: 1.4;
        margin: 0;
    }

    .hero-features {
        flex: 1;
        text-align: left;
        max-width: 280px;
    }

    .hero-features ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .hero-features li {
        font-size: .865rem;
        margin-bottom: .25rem;
        padding-left: 1.5rem;
        position: relative;
        opacity: 0.9;
    }

    .hero-features li::before {
        content: "•";
        position: absolute;
        left: 0;
        color: #fff;
        font-size: 1.5rem;
        line-height: 1;
    }

    /* サービスセクション */
    .services {
        background: #f8f8f8;
        justify-content: center;
        padding: unset;
        height: 25vh;
        margin-block-end: unset;
    }

    .services-container {
        max-width: 1200px;
        height: auto;
        margin: auto;
        padding: 0 1rem;
        display: flex;
        gap: 0.75rem;
        justify-content: space-between;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .service-card {
        background: #f8f8f8;
        padding: 1rem;
        width: calc(100% / 4 - 0.5rem);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-radius: 12px;
        box-shadow: unset;
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        position: relative;
        opacity: 1;
        transform: none;
    }



    .service-card:hover,
    .service-card.active {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }

    .service-title {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: .75rem;
        color: #333;
    }

    .service-description {
        font-size: 0.765rem;
        color: #333;
        margin-bottom: 0.25rem;
        line-height: 1.6;
    }

    /* サービスアイコン */
    .service-icons {
        display: flex;
        justify-content: space-evenly;
        gap: 0.25rem;
        flex-wrap: nowrap;
    }

    .hero-pagination {
        display: none;
    }


    .icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 0.9rem;
        color: #fff;
        transition: transform 0.3s ease;
    }


    /* 近日リリースボタン */
    .coming-soon-btn {
        background: linear-gradient(135deg, #4fc3f7, #29b6f6);
        color: #fff;
        border: none;
        padding: 0.8rem 1.5rem;
        border-radius: 25px;
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(79, 195, 247, 0.3);
    }

    .coming-soon-btn:hover {
        background: linear-gradient(135deg, #29b6f6, #0288d1);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(79, 195, 247, 0.4);
    }


    .cta-row {
        display: none;
    }


}