@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+JP:wght@400;600;700&family=Montserrat:ital,wght@0,400;0,600;0,700;1,400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    margin-top: 70px;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

main {
    width: 100%;
    overflow: hidden;
}


.no-scroll {
    overflow: hidden !important;
}

.inner {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.tel a {
    color: #000000 !important;
    text-decoration: none !important;
}

@media only screen and (max-width: 1280px) {
    .inner {
        max-width: 1000px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .inner {
        max-width: 700px;
    }
}

@media only screen and (max-width: 768px) {
    .inner {
        padding-right: 15px;
        padding-left: 15px;
    }
}

.vertical-slider__wrap {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    height: calc(100vh - 70px);
    display: flex;
    flex-wrap: nowrap;
}

.vertical-area {
    position: relative;
    width: 100vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #fff;
}

.vertical-area.footer {
    z-index: 10;
}

.vertical-area h2 span {
    display: block;
}

.proxy {
    position: absolute;
    visibility: hidden;
}

.section_top_trigger:hover {
    color: #036eb8;

}

.page_btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #0154A5;
    border: 3px solid #fff;
    border-radius: 100px;
    -webkit-border-radius: 100px;
    -moz-border-radius: 100px;
    -ms-border-radius: 100px;
    -o-border-radius: 100px;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}

.page_btn:hover {
    background-color: #f8b62d;
}

@-webkit-keyframes infinity-scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@keyframes infinity-scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@media only screen and (max-width: 768px) {

    .section_img_box {
        top: 40%;
    }
}

@media only screen and (max-width: 425px) {

    .section_img_box {
        top: 32%;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .inner {
        max-width: 700px;
    }

    .page_btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

.kosugi-maru-regular {
    font-weight: 400;
    font-style: normal;
}

.c-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #b7cdda;
    color: #fff;
    width: 200px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: background-color 0.2s, opacity 0.2s;
    border-radius: 50px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
    padding: 12px 40px;

}

.c-btn:hover {
    background-color: #8aaec0;
    opacity: 0.9;
}

@media screen and (min-width: 769px) {
    .c-btn {
        width: 200px;
        padding: 12px 0;

    }
}

.company {
    padding-top: 50px;
    padding-bottom: 50px;
}

@media only screen and (max-width: 1024px) {
    .company {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

body {
    font-size: 16px;

    color: #3e3a39;

    line-height: 170%;

    font-family: 'Montserrat', 'IBM Plex Sans JP', sans-serif;

}

p {
    line-height: 170%;

}

.scroll-to-top {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 50px;

    height: 50px;

    background-color: #fff;

    display: none;

    cursor: pointer;
    padding: 0;

    margin: 0;

    border: none;

    z-index: 9999;

}

.scroll-to-top img {
    width: 100%;

    height: 100%;

    -o-object-fit: cover;
    object-fit: cover;

}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);

    }

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

    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);

    }

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

    }
}

.spacer {
    height: 7px;

}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 64px;

        display: flex !important;

        justify-content: center;
        align-items: center;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .scroll-to-top.is-hidden {
        opacity: 0;
        transform: translateY(20px);
        pointer-events: none;
    }

    .scroll-to-top.is-visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.split-image {
    flex: 1;
    min-width: 0;

    max-width: 50%;

}

.split-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    opacity: 0;

    transform: scale(0.8);

    transition: opacity 1s, transform 1s;

}

.split-image img.visible {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 1024px) {
    .split-image {
        max-width: 100%;

    }

    .split-image {
        order: 2;

    }

    .split-image {
        position: absolute;
        width: 100%;
        height: 50vh;
        z-index: -1;
    }

    .split-image img {
        width: 100%;
        height: 100%;
        -o-object-fit: cover;
        object-fit: cover;
        transition: none;

    }
}

@media (max-width: 768px) {
    .split-image {
        position: absolute;
        width: 100%;
        height: 50vh;
        z-index: -1;
    }

    .split-image img {
        width: 100%;
        height: 100%;
        -o-object-fit: cover;
        object-fit: cover;
        transition: none;

    }
}

@-webkit-keyframes moveUpDown {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

@keyframes moveUpDown {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

.p-fv {
    position: relative;
    width: 100%;
    height: calc(100vh - 70px);

    overflow: hidden;
}

.p-fv__bg-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.p-fv__bg-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* 1枚目：1.3秒後からフェードイン＋ズーム */
#fv-bg-slide-1 {
    z-index: 1;
    opacity: 0;
    animation: fvSlideIn 1.5s ease-out 1.3s forwards;
}

/* 2枚目：1.5秒後からフェードイン＋ズーム（1枚目の上に重ねる） */
#fv-bg-slide-2 {
    z-index: 2;
    opacity: 0;
    animation: fvSlideIn 1.5s ease-out 1.5s forwards;
}

@keyframes fvSlideIn {
    from {
        opacity: 0;
        transform: scale(1);
    }
    to {
        opacity: 1;
        transform: scale(1.08);
    }
}

.p-fv__bg-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* SP: ビューポートセンター */
    animation: none; /* ズームはスライド側のCSSアニメで制御 */
}

@keyframes kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

.p-fv__screen {
    position: absolute;
    inset: 0;
    background-color: rgba(238, 244, 247, 0.3);
    z-index: 1;
}

.p-fv__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding-bottom: 80px;

}

/* Lottie 丸枠アニメーション（PC・SP共通） */
.p-fv__lottie-wrap {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-fv__lottie-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 0;
    opacity: 0;
    animation: ringDraw 1.2s ease-out 1s forwards;
}

.p-fv__lottie-wrap dotlottie-player {
    position: relative;
    z-index: 1;
}

@keyframes ringDraw {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media screen and (max-width: 768px) {
    .p-fv__lottie-wrap {
        width: 190px;
        height: 190px;
    }

    .p-fv__lottie-wrap dotlottie-player {
        width: 140px !important;
        height: 140px !important;
    }

    .p-fv__scroll-btn {
        bottom: 64px !important;
    }
}

.p-fv__logo-wrap {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 14px;
    transform: translateY(20px);
}

.p-fv__logo-wrap img {
    width: 100%;
    height: auto;
    -o-object-fit: contain;
    object-fit: contain;
}

.p-fv__catch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: translateY(20px);
}

.p-fv__catch-title {
    width: min(460px, 80vw);
    height: auto;
}

.p-fv__scroll-btn {
    position: absolute;
    bottom: 90px;
    left: 50%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    animation: droneRise 1.2s ease-out 1.5s forwards;
}

@keyframes droneRise {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.p-fv__scroll-btn__chevron {
    width: 100px;
    height: 60px;
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: chevronBounce 1.8s ease-in-out infinite;
}

.p-fv__scroll-btn__chevron svg,
.p-fv__scroll-btn__chevron img {
    width: auto;
    height: 60px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.p-fv__scroll-btn__label {
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: #000;
}

.p-fv__news {
    position: relative;
    left: 0;
    right: 0;
    z-index: 4;
    height: 56px;
    background-color: #0d1b3e;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    margin-top: -56px;
}

.p-fv__news__label {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.05em;
}

.p-fv__news__list-wrap {
    flex: 1;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.p-fv__news__list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 64px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: max-content;
}

.p-fv__news__list.is-marquee {
    animation: newsMarquee 28s linear infinite;
}

/* マーキーなし時はクローンを非表示 */
.p-fv__news__item[aria-hidden="true"] {
    display: none;
}
.p-fv__news__list.is-marquee .p-fv__news__item[aria-hidden="true"] {
    display: flex;
}

.p-fv__news__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
    white-space: nowrap;
}

.p-fv__news__text {
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
}

.p-fv__news__date {
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.p-fv__news__text a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.p-fv__news__text a:hover {
    color: #fff;
    text-decoration: underline;
}

@-webkit-keyframes fvFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@-webkit-keyframes chevronBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

@keyframes chevronBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* PC: lottie-ring の中心に合わせて背景写真をオフセット */
@media only screen and (min-width: 769px) {
    .p-fv__bg-slide img {
        object-position: center calc(50% - 40px);
    }
}

@media only screen and (max-width: 768px) {
    .p-fv {
        height: calc(100svh - 55px);
    }

    .p-fv__logo-wrap {
        width: 90px;
        height: 90px;
        padding: 10px;
    }

    .p-fv__catch-title {
        width: min(300px, 80vw);
    }

    .p-fv__news {
        background-color: #0d1b3e;
        height: 60px;
        padding: 0 12px;
        gap: 10px;
        margin-top: 0;
    }

    .p-fv__news__label {
        font-size: 13px;
        color: #fff;
    }

    .p-fv__news__item {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.9);
    }

    .p-fv__news__date {
        color: rgba(255, 255, 255, 0.6);
    }

    .p-fv__news__text a {
        color: rgba(255, 255, 255, 0.9);
    }

    .p-fv__news__text {
        color: rgba(255, 255, 255, 0.9);
    }

    .p-fv__news__list {
        gap: 48px;
    }

    .p-fv__news__list.is-marquee {
        animation-duration: 22s;
    }

    .p-fv__scroll-btn {
        bottom: 120px;
    }
}

.section1 {
    width: 100%;
    padding: 50px 0;
}

.c-media-block {
    display: flex;
    align-items: stretch;

    overflow: hidden;
    width: 100%;
    background: #fff;
}

.c-media-block--reverse {
    flex-direction: row-reverse;
}

.c-media-block__img {
    flex: 0 0 42%;

    min-height: 260px;
    position: relative;
    overflow: hidden;
}

.c-media-block__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    display: block;
}

.c-media-block__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 48px;
}

.c-media-block__title {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: bold;
    color: #1a1a2e;
    line-height: 1.3;
    letter-spacing: 0.04em;
}

.c-media-block__sub {
    font-size: clamp(12px, 1.5vw, 20px);
    color: #666;
    letter-spacing: 0.06em;
}

.c-media-block__text {
    font-size: clamp(13px, 1.3vw, 15px);
    color: #444;
    line-height: 1.85;
    text-align: center;
    width: 100%;
    margin-top: 24px;
}

.c-media-block .c-btn {
    margin-top: 24px;
}

@media only screen and (max-width: 768px) {
    .section1 {
        padding-top: 0;
        padding-bottom: 0;
    }

    .c-media-block,
    .c-media-block--reverse {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 80px 20px;
        margin: 0;
    }

    .c-media-block__img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        flex: none;
        z-index: 1;
        min-height: auto;
    }


    .c-media-block__img::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(20, 60, 130, 0.85);

        z-index: 2;
    }

    .c-media-block__img img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        -o-object-fit: cover;
        object-fit: cover;
    }

    .c-media-block__body {
        position: relative;
        z-index: 3;
        padding: 0;
        background: transparent;
        text-align: center;
    }

    .c-media-block__title {
        font-size: 26px;
        color: #fff;
        line-height: 1;
    }

    .c-media-block__sub {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.85);
        margin-top: 4px;
    }

    .c-media-block__text {
        font-size: 14px;
        color: #fff;
        text-align: center;
        width: 100%;
        margin-top: 24px;
    }
}

.section2 {
    width: 100%;
    background: #fff;
    padding: 60px 0;
}

.s2-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 0 16px;
}

.s2-title {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: bold;
    color: #1a1a2e;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.s2-sub {
    font-size: clamp(12px, 1.5vw, 20px);
    color: #666;
    letter-spacing: 0.06em;
}

.s2-splide {
    width: 100%;
}

.s2-splide .splide__track {
    overflow: hidden;
}

.s2-splide__slide {
    overflow: hidden;
    position: relative;
}

.s2-splide__slide::before {
    content: '';
    display: block;
    padding-top: 62.5%; /* 横8:縦5 */
}

.s2-splide__slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.s2-splide__slide:hover img {
    transform: scale(1.04);
}

.s2-body {
    text-align: center;
    padding: 40px 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.s2-text {
    font-size: clamp(13px, 1.3vw, 15px);
    color: #444;
    line-height: 1.85;
    max-width: 720px;
}

@media only screen and (max-width: 768px) {
    .section2 {
        padding: 40px 0;
    }

    .s2-header {
        margin-bottom: 24px;
    }

    .s2-title {
        font-size: 26px;
    }



    .s2-body {
        padding: 28px 16px 0;
        gap: 16px;
    }

    /* スマホ：2枚表示用に縦横比を調整 */
    .s2-splide__slide::before {
        padding-top: 62.5%; /* 横8:縦5 */
    }

    .s2-text {
        font-size: 14px;
    }
}

.section3 {
    width: 100%;
    background: #fff;
}

.s3-hero {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.s3-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    display: block;
}

.s3-hero__screen {
    position: absolute;
    inset: 0;
    background: rgba(20, 60, 130, 0.6);
    z-index: 1;
}

.s3-hero__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.s3-hero__title {
    font-size: clamp(24px, 3.2vw, 42px);
    line-height: 1;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.1em;
}

.s3-hero__sub {
    font-size: clamp(12px, 1.5vw, 20px);
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.08em;
}

.s3-hero__content p {
    color: #fff;
}

.s3-hero__content p:not(.s3-hero__title) {
    font-size: clamp(12px, 1.5vw, 20px);
    letter-spacing: 0.06em;
}

.s3-content {
    display: flex;
    align-items: stretch;
    width: 100%;
    padding: 0;
}

.s3-content:nth-of-type(2) {
    padding-top: 0;
}

.s3-content--reverse {
    flex-direction: row-reverse;
}

.s3-content__img {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.s3-content__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    display: block;
}

.s3-content__body {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 40px 60px;
    gap: 24px;
    background: #fff;
    text-align: center;
    position: relative;
    z-index: 2;
}

.s3-catch {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 180px;
    height: auto;
    display: block;
    align-self: center;
}

.s3-content--reverse .s3-catch {
    left: auto;
    right: auto;
    transform: none;
}

.s3-text {
    font-size: clamp(13px, 1.3vw, 15px);
    color: #444;
    line-height: 1.9;
    text-align: left;
}

.s3-content .c-btn {
    margin-top: 4px;
}

@media only screen and (max-width: 768px) {


    .s3-hero {
        height: 140px;
    }

    .s3-hero__title {
        font-size: 26px;
    }


    .s3-content,
    .s3-content--reverse {
        flex-direction: column;
        padding-top: 0px;
        padding-bottom: 40px;
    }

    .s3-content:nth-of-type(2) {
        padding-top: 0px;
    }

    .s3-content__body {
        display: contents;

    }


    .s3-text {
        order: 1;
        font-size: 14px;
        margin: 20px;
        text-align: left;
    }


    .s3-content__img {
        order: 2;
        flex: none;
        width: 75%;
        height: 170px;
        min-height: 170px;
        align-self: flex-start;
    }


    .s3-content--reverse .s3-content__img {
        align-self: flex-end;
    }


    .s3-catch {
        order: 3;
        width: 40vw;
        max-width: 240px;
        align-self: flex-end;
        margin: 0;
        margin-right: 20px;
        margin-top: -20px;

        margin-bottom: calc(20px - min(20vw, 120px));
        z-index: 2;
        position: relative;
        top: auto;
        left: auto;
        right: auto;

        transform: translateY(calc(-65px - 50%));
    }


    .s3-content--reverse .s3-catch {
        align-self: flex-start;
        margin-left: 20px;
        margin-right: 0;
        top: auto;
        left: auto;
        right: auto;
        transform: translateY(calc(-65px - 50%));
    }


    .s3-content .c-btn {
        order: 4;
        align-self: center;
        margin-top: 20px;

    }
}

/* ========== SP Newsマーキーアニメーション ========== */
@keyframes newsMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== Section2 Splide 矢印ボタン ========== */
.s2-splide .splide__arrow {
  background-color: #b7cdda;
  opacity: 1;
  width: 40px;
  height: 40px;
}

.s2-splide .splide__arrow:hover {
  background-color: #8aaec0;
}

.s2-splide .splide__arrow svg {
  fill: #fff;
  width: 16px;
  height: 16px;
}

/* ========== 画像・動画モーダル ========== */
.p-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.p-modal.is-open {
    display: flex;
}
.p-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}
.p-modal__inner {
    position: relative;
    z-index: 1;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    max-width: min(900px, 94vw);
    width: 100%;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}
.p-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.p-modal__close:hover { background: rgba(0,0,0,0.9); }

/* 画像エリア */
.p-modal__img-wrap {
    width: 100%;
    max-height: 62vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.p-modal__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 動画エリア：16:9 アスペクト比 */
.p-modal__video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    display: none; /* JS で表示切替 */
}
.p-modal__video-wrap iframe,
.p-modal__video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* キャプション */
.p-modal__caption {
    padding: 18px 24px 22px;
    background: #fff;
}
/* modal caption icon */
.p-modal__caption-icon {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  margin-right: 0.3em;
}
.p-modal__caption-title {
    font-size: 16px;
    font-weight: bold;
    color: #222;
    margin-bottom: 6px;
}
.p-modal__caption-text {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

/* ========== 動画スライド（サムネイル＋再生ボタン） ========== */
.s2-splide__slide--video .js-video-trigger {
    position: absolute; /* ::before の高さに合わせて全体を覆う */
    inset: 0;
    display: block;
    cursor: pointer;
}
.s2-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: filter 0.3s;
}
.js-video-trigger:hover .s2-video-thumb {
    filter: brightness(0.75);
}
/* 再生ボタン */
.s2-video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform 0.2s, background 0.2s;
}
.s2-video-play::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #222;
    margin-left: 4px;
}
.js-video-trigger:hover .s2-video-play {
    transform: scale(1.12);
    background: #fff;
}
/* クリック可能カーソル */
.js-modal-trigger { cursor: pointer; }

/* モーダル 前後ナビボタン */
.p-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 44px;
    height: 72px;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.p-modal__nav:hover { background: rgba(0,0,0,0.75); }
.p-modal__nav--prev { left: 0; border-radius: 0 4px 4px 0; }
.p-modal__nav--next { right: 0; border-radius: 4px 0 0 4px; }

@media (max-width: 768px) {
    .p-modal__img-wrap { max-height: 52vh; }
    .p-modal__caption  { padding: 12px 16px 16px; }
    .s2-video-play     { width: 44px; height: 44px; }
    .p-modal__nav      { width: 34px; height: 54px; font-size: 16px; }
}

/* ========== スクロールフェードスライドイン ========== */
.js-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}
.js-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===== s2 Lottie + Side Buttons Layout ===== */
.s2-lottie-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 36px;
  padding: 0 48px;
  box-sizing: border-box;
}

.s2-lottie-center {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

/* ボタン列（左右共通） */
.s2-side-btns {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  flex: 0 0 auto;
}

/* ================================================
   s2-side-btn — 吹き出し横線デザイン
   ① ::before  = 横延長線（width アニメ）
   ② ::after   = 折れ線（left/right アニメ）
   ③ __label::after = ドット（left/right アニメ）
   すべて position:absolute のため layout に影響しない
   → 中央ロッティーは動かず、ボタンは1つずつ独立反応
================================================ */

/* ── ボタン本体（共通） ── */
.s2-side-btn {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  border-bottom: 2px solid #383a3a;
  border-radius: 0;
  padding: 8px 10px 10px 4px;
  cursor: pointer;
  white-space: nowrap;
  overflow: visible;
  color: #383a3a;
}

.s2-side-btn__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* position:relative を付けない → ::after が .s2-side-btn 基準になる */
.s2-side-btn__label {
  font-size: 0.9rem;
  color: #383a3a;
  font-family: 'IBM Plex Sans JP', sans-serif;
  letter-spacing: 0.04em;
}

/* ────────────────────────────────
   左側ボタン群：右方向へ伸びる
──────────────────────────────── */

/* ① 横延長線 */
.s2-side-btns--left .s2-side-btn::before {
  content: '';
  position: absolute;
  left: 100%;
  bottom: -2px;
  width: 0;
  height: 0;
  border-bottom: 2px solid #383a3a;
  transition: width 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.s2-side-btns--left .s2-side-btn:hover::before {
  width: 35px;
}

/* ② 折れ線（横線の先端に追随） */
.s2-side-btns--left .s2-side-btn::after {
  content: '';
  position: absolute;
  left: 100%;
  bottom: -2px;
  width: 20px;
  height: 2px;
  background: #383a3a;
  transform-origin: left center;
  rotate: 42deg;
  transition: left 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.s2-side-btns--left .s2-side-btn:hover::after {
  left: calc(100% + 35px);
}

/* ③ ドット（折れ線先端に追随） */
/* pivot y=1px下, 20px×sin42°=13.4px→合計14.4px、ドット半径3.5px → bottom:-18px */
.s2-side-btns--left .s2-side-btn .s2-side-btn__label::after {
  content: '';
  position: absolute;
  left: calc(100% + 11px);
  bottom: -18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #383a3a;
  transition: left 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.s2-side-btns--left .s2-side-btn:hover .s2-side-btn__label::after {
  left: calc(100% + 46px); /* 11 + 35 */
}

/* ────────────────────────────────
   右側ボタン群：左方向へ伸びる（鏡像）
──────────────────────────────── */
.s2-side-btns--right .s2-side-btn {
  padding: 8px 4px 10px 10px;
}

/* ① 横延長線 */
.s2-side-btns--right .s2-side-btn::before {
  content: '';
  position: absolute;
  right: 100%;
  bottom: -2px;
  width: 0;
  height: 0;
  border-bottom: 2px solid #383a3a;
  transition: width 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.s2-side-btns--right .s2-side-btn:hover::before {
  width: 35px;
}

/* ② 折れ線 */
.s2-side-btns--right .s2-side-btn::after {
  content: '';
  position: absolute;
  right: 100%;
  bottom: -2px;
  width: 20px;
  height: 2px;
  background: #383a3a;
  transform-origin: right center;
  rotate: -42deg;
  transition: right 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.s2-side-btns--right .s2-side-btn:hover::after {
  right: calc(100% + 35px);
}

/* ③ ドット */
.s2-side-btns--right .s2-side-btn .s2-side-btn__label::after {
  content: '';
  position: absolute;
  right: calc(100% + 11px);
  bottom: -18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #383a3a;
  transition: right 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.s2-side-btns--right .s2-side-btn:hover .s2-side-btn__label::after {
  right: calc(100% + 46px); /* 11 + 35 */
}

/* 縦向き（スマホ・タブレット縦）では非表示 */
@media (orientation: portrait) {
  .s2-side-btns {
    display: none;
  }
  .s2-lottie-layout {
    justify-content: center;
    padding: 0;
  }
}

/* タブレット横向き（iPad等）：ボタンを一回り縮小 */
@media (orientation: landscape) and (max-width: 1200px) {
  .s2-lottie-layout {
    padding: 0 24px;
  }
  .s2-side-btns {
    gap: 12px;
  }
  .s2-side-btn {
    gap: 8px;
    padding: 6px 8px 8px 4px;
  }
  .s2-side-btns--right .s2-side-btn {
    padding: 6px 4px 8px 8px;
  }
  .s2-side-btn__icon {
    width: 28px;
    height: 28px;
  }
  .s2-side-btn__label {
    font-size: 0.78rem;
  }
}
