@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+Antique:wght@400;500;700;900&display=swap');


:root {
    --color-primary: #e95037;
    --color-secondary: #712d08;
    --color-background-main: #f8f4e9;
    --color-background-sub: #ef9c00;
    --color-background-third: #f2c844;
    --font-family-base: "Zen Kaku Gothic Antique", sans-serif;

    --spacing-md: 20px;
    --spacing-lg: 150px;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--color-background-main);
}

html,
body {
    overflow-anchor: none;
}

.--spacing-md {
    padding: 0 var(--spacing-md);
}


p {
    font-size: 20px;
}


/* ヘッダー */

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon img {
    width: 100px;
}

@media (max-width: 768px) {
    .logo-icon img {
        width: 60px;
    }

}

/* オーバーレイ */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.overlay.active {
    display: block;
}


/* PC画面用（768px以上） */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    .nav-menu {
        display: block;
    }

    .side-menu {
        display: none;
    }
}


.precon-fv {
    position: relative;
}

.precon-fv picture {
    position: relative;
}

.scroll-arrow-area {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translate(-50%, 50%);
}

@media (min-width: 769px) {
    .scroll-arrow-area {
        bottom: 35%;
    }
}

.scroll-arrow {
    position: relative;
    height: 65px;
}

.scroll-arrow .scroll-img {
    margin: 0 auto;
    width: 70px;
}


.scroll_down {
    position: absolute;
    right: calc(50% - 15px);
    animation: arrowmove 1s ease-in-out infinite;
}

@keyframes arrowmove {
    0% {
        bottom: 1%;
    }

    50% {
        bottom: 7%;
    }

    100% {
        bottom: 1%;
    }
}

.scroll_down img {
    width: 30px;
}

.bubble-area {
    position: absolute;
    height: 250px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    height: 285px;
    bottom: -210px;
    left: 50%;
    transform: translate(-50%, 0);
}

@media (min-width: 769px) {
    .bubble-area {
        bottom: -25px;
    }
}

.bubble-area .bubble-left {
    width: 200px;
    position: absolute;
    left: 0;
    top: 0;
}

@media (min-width: 769px) {
    .bubble-area .bubble-left {
        width: 250px;
    }
}

.bubble-area .bubble-right {
    width: 200px;
    position: absolute;
    right: 0;
    bottom: 0;
}

@media (min-width: 769px) {
    .bubble-area .bubble-right {
        width: 250px;
        right: 0;
        top: 0;
    }
}

.fadein {
    opacity: 0;
    transform: translate(0, 0);
    transition: all 1.5s;
}

.fadein-left {
    transform: translate(-30px, 0);
}

.fadein-right {
    transform: translate(30px, 0);
}

.scrollin {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

.precon-copy {
    line-height: 2;
    text-align: center;
    margin: 225px 0 48px;
}

@media (min-width: 769px) {
    .precon-copy {
        line-height: 1.8;
        max-width: 1000px;
        margin: 0 auto;
    }
}

.precon-copy p {
    font-size: 20px;
    font-weight: 900;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

@media (min-width: 769px) {
    .precon-copy p {
        font-size: 32px;
    }
}

.precon-copy p:nth-child(n+2) {
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 20px;
}

@media (min-width: 769px) {
    .precon-copy p:nth-child(n+2) {
        font-size: 20px;
        line-height: 2.5;

    }
}

.precon-copy p:last-child {
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 20px;
}

@media (min-width: 769px) {
    .precon-copy p:last-child {
        font-size: 20px;
        line-height: 2.5;
        margin-bottom: 100px;
    }
}

.precon-copy p span {
    display: inline-block;
    font-size: 28px;
    color: var(--color-primary);
    background: linear-gradient(transparent 60%, #fff 0%);
    line-height: 1;
}

@media (min-width: 769px) {
    .precon-copy p span {
        font-size: 48px;
    }
}

.precon-copy p:nth-child(n+2) span {
    display: inline;
    font-size: 16.8px;
    color: var(--color-secondary);
    background: none;
}

@media (min-width: 769px) {
    .precon-copy p:nth-child(n+2) span {
        font-size: 24px;
    }
}

.precon-about {
    position: relative;
    background: var(--color-background-sub);
    margin-top: 200px;
}

@media (min-width: 769px) {
    .precon-about {
        margin-top: 250px;
    }
}

.precon-about .illust01 {
    position: absolute;
    z-index: -1;
    width: 200px;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);

}

@media (min-width: 769px) {
    .precon-about .illust01 {
        width: 250px;
        top: -220px;

    }
}


/* プレコンとは */

.precon-about__area {
    position: relative;
    padding: 80px 0;
}

@media (min-width: 769px) {
    .precon-about__area {
        padding: 120px 0 150px;
    }

}

.precon-about__area::after {
    content: "";
    display: block;
    background-image: url(image/nami_top_sp.webp);
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 5px;
    position: absolute;
    left: 0;
    top: -5px;
}

@media (min-width: 769px) {
    .precon-about__area::after {
        background-image: url(image/nami_top_pc.webp);
        height: 30px;
        top: -30px;
    }

}

.precon-about::before {
    content: "";
    display: block;
    background-image: url(image/nami_bottom_sp.webp);
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 15px;
    position: absolute;
    left: 0;
    bottom: -15px;
}

@media (min-width: 769px) {
    .precon-about::before {
        background-image: url(image/nami_bottom_pc.webp);
        height: 30px;
        bottom: -30px;

    }
}

.precon-about__area .precon-about__area-h2 {
    font-size: 24px;
    text-align: center;
    color: #fff;
    font-weight: 900;
    margin-bottom: 48px;
}

@media (min-width: 769px) {
    .precon-about__area .precon-about__area-h2 {
        font-size: 35px;
        line-height: 1.3;
        margin-bottom: 100px;
    }
}

.precon-about__area .precon-about__area-h2 span {
    display: block;
}

@media (min-width: 769px) {
    .precon-about__area .precon-about__area-h2 span {
        font-size: 32px;

    }
}

.precon-about__area .precon-about__area-text {
    text-align: center;
    font-weight: 900;
    line-height: 2;
    color: #fff;
    position: relative;
}

.precon-about__area .precon-about__area-text::after {
    content: "";
    display: block;
    background-image: url(image/answer.webp);
    background-repeat: no-repeat;
    background-size: cover;
    width: 115px;
    height: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@media (min-width: 769px) {
    .precon-about__area .precon-about__area-text::after {
        width: 215px;
        height: 230px;
    }

}

.precon-about__area .precon-about__area-text p {
    font-size: 20px;
}

@media (min-width: 769px) {

    .precon-about__area .precon-about__area-text p {
        font-size: 32px;
        line-height: 2.2;

    }

}

.precon-about__area .precon-about__area-text span {
    position: relative;
}

.precon-about__area .precon-about__area-text span::after {
    content: "";
    display: block;
    background-image: url(image/line.webp);
    background-repeat: no-repeat;
    background-size: contain;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    bottom: -29px;
}

@media (min-width: 769px) {

    .precon-about__area .precon-about__area-text span::after {
        bottom: -40px;

    }
}

.precon-more {
    position: relative;
}

@media (min-width: 769px) {
    .precon-more {
        max-width: 1000px;
        margin: 0 auto;
    }

}

.precon-more::before {
    content: "";
    display: block;
    background-image: url(image/nami_bottom_sp.webp);
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 13px;
    position: absolute;
    left: 0;
    bottom: -13px;
}

.precon-about .precon-more .wrap {
    padding: 80px 0 48px;
}

@media (min-width: 769px) {
    .precon-about .precon-more .wrap {
        padding: 100px 0 70px;
    }

}

.precon-more-text {
    margin-bottom: var(--spacing-md);
}

.precon-more-text p {
    line-height: 1.8;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.precon-more-text p .attention {
    font-size: 12px;
    display: block;
}

.precon-more-text .not-spacial {
    background: #fff;
    border-radius: 10px;
    padding: 20px 0;
}

.precon-more-text .not-spacial ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

}

@media (min-width: 769px) {
    .precon-more-text .not-spacial ul {
        flex-wrap: nowrap;
    }
}

.precon-more-text .not-spacial ul li {
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    margin-left: 25px;
    color: var(--color-background-sub);
}

@media (min-width: 769px) {
    .precon-more-text .not-spacial ul li {
        font-size: 24px;

    }
}

.precon-more-text .not-spacial ul li:nth-child(4) {
    width: 100%;
}

@media (min-width: 769px) {
    .precon-more-text .not-spacial ul li:nth-child(4) {
        width: auto;
    }

}

.more-text {
    font-size: 12px;
    text-align: center;
    color: #fff;
    font-weight: 700;
}

@media (min-width: 769px) {
    .more-text {
        font-size: 24px;
    }
}

.precon-about-arrow-area {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
}

.future-precon p span {
    font-size: 20px;
}

@media (min-width: 769px) {
    .future-precon {
        display: flex;
        justify-content: space-between;
        margin-top: 30px;
    }

    .future-precon p span {
        font-size: 32px;
    }

    .future-precon img {
        width: 500px;
        height: 580px;
    }
}


.precon-start {
    margin: 80px 0;
    position: relative;
}

@media (min-width: 769px) {
    .precon-start {
        margin: 150px 0;
    }

}

.man-img {
    position: absolute;
    bottom: -140px;
    right: 20px;
    width: 60px;
}

.precon-start h2 {
    font-size: 28px;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 48px;
    font-weight: 800;
}

@media (min-width: 769px) {
    .precon-start h2 {
        font-size: 48px;
        line-height: 1.7;
        margin-bottom: 100px;
    }
}

.sp-none {
    display: none;
}

@media (max-width: 768px) {
    .sp-none {
        display: block;
    }
}

.pc-none {
    display: block;
}

@media (max-width: 768px) {
    .pc-none {
        display: none;
    }
}

.accordion-box,
.accordion2-box,
.accordion3-box {
    height: 0;
    overflow: hidden;
    transition: .4s ease;
}

.accordion2-box p {
    color: var(--color-secondary);
    font-size: 18px;
    font-family: var(--font-family-base);
    font-weight: 600;
    max-width: 500px;
    margin: 0 auto 40px;
}

@media (max-width: 768px) {
    .accordion2-box p {
        font-size: 15px;
    }
}

.js-accordion3 {
    margin-bottom: 10px;
}

.js-accordion,
.js-accordion2,
.js-accordion3 {
    position: relative;
}

.js-accordion.is-accordion--open+.accordion-box,
.js-accordion2.is-accordion2--open+.accordion2-box,
.js-accordion3.is-accordion3--open+.accordion3-box {
    height: auto;
    opacity: 1;
}

.js-accordion3.is-accordion3--open+.accordion3-box {
    overflow: visible;
}

.accordion2-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.accordion2-title img {
    margin: 0 !important;
}

@media (max-width: 769px) {
    .accordion2-title img {
        width: 70px !important;
    }

}

.accordion2-title p {
    font-size: 24px;
    color: var(--color-primary);
    font-weight: 800;
    text-align: left;
}
@media (max-width: 769px) {
    .accordion2-title p {
        font-size: 16px;
    }
}

.accordion-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* PC用のレイアウト */
@media (min-width: 769px) {

    .accordion-contents-top,
    .accordion-contents-bottom {
        grid-column: 1 / -1;
    }

    /* 非アクティブ時はグリッドから完全に除外 */
    .accordion-content-wrapper {
        display: none;
    }

    /* アクティブ時のみ表示 */
    .accordion-content-wrapper.active {
        display: block;
    }

    /* 上段：2列 中央寄せ */
    .accordion-grid--top {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 50px;
        margin-bottom: 20px;
    }

    .accordion-grid--top .accordion-item:nth-child(1) {
        grid-column: 2 / 4;
        grid-row: 1;
    }

    .accordion-grid--top .accordion-item:nth-child(2) {
        grid-column: 4 / 6;
        grid-row: 1;
    }

    .accordion-contents-top {
        grid-column: 1 / -1;
    }

    /* 下段：3列 */
    .accordion-grid--bottom {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
        margin-bottom: 50px;
    }

    .accordion-contents-bottom {
        grid-column: 1 / -1;
    }

    /* 既存の .accordion-contents は不要になるため非表示に */
    .accordion-contents {
        display: none;
    }

    .accordion-item {
        position: relative;
        z-index: 1;
        box-shadow: 2px 2px 1px var(--color-primary);
    }

    .accordion-header {
        background-color: #fff;
        border: 3px solid var(--color-primary);
        padding: 20px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        height: 250px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .accordion-header.active {
        background-color: var(--color-background-third);
        border-color: var(--color-primary);
    }

    .accordion-icon {
        position: absolute;
        top: -25px;
    }

    .accordion-title {
        font-size: 40px;
        font-weight: 800;
        color: var(--color-primary);
        margin-bottom: 15px;
        line-height: 1.3;
        text-align: center;
    }

    .accordion-toggle {
        font-size: 24px;
        color: var(--color-secondary);
        display: flex;
        align-items: center;
        font-weight: 700;
        gap: 5px;
        position: absolute;
        bottom: 10px;
    }

    .accordion-toggle-text {
        display: inline;
    }

    .accordion-toggle-arrow {
        display: none;
    }

    .accordion-header.active .accordion-toggle-arrow {
        transform: rotate(180deg);
    }

    /* PCではコンテンツをグリッド内で全幅表示 */
    .accordion-contents {
        display: none;
    }

    /* コンテンツラッパーを常に3行目・全幅に固定 */
    .accordion-content-wrapper {
        grid-column: 1 / -1;
        grid-row: 3;
        width: 100%;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    }

    .accordion-content-wrapper.active {
        grid-column: 1 / -1;
        grid-row: 3;
        max-height: 1500px;
        opacity: 1;
        overflow: visible;
    }

    .accordion-content {
        background-color: #fff;
        border: 3px solid var(--color-primary);
        padding: 40px;
        margin: 20px 0;
        position: relative;
    }

    .content-title {
        font-size: 20px;
        font-weight: 800;
        color: #fff;
        background-color: #ef9c00;
        padding: 10px 20px;
        display: inline-block;
        margin-bottom: 20px;
        text-align: center;
    }

    .content-text {
        font-size: 16px;
        line-height: 1.8;
        color: #333;
        padding-bottom: 20px;
    }

    .content-image {
        display: flex;
        align-items: center;
        gap: 30px;
        margin-top: 20px;
    }


    .content-image img {
        width: 150px;
        height: auto;
    }

    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 30px;
    }

    .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: #ccc;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .dot.active {
        background-color: var(--color-primary);
    }

    /* Splide slider styles */
    .splide {
        padding: 0;
        visibility: visible;
    }

    .splide__track {
        overflow: visible;
    }

    .splide__list {
        display: flex;
        transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1);

    }

    .splide__slide {
        flex-shrink: 0;
        width: 100%;
    }

    .content-slide {
        padding: 20px 0;
        text-align: center;
    }

    .content-slide img {
        margin: 20px auto;
        width: 100px;
    }

    .content-area {
        display: flex;
        align-items: center;
        gap: 30px;
    }

    .content-area img {
        width: 300px;
    }

    .content-text p {
        font-size: 18px;
        color: var(--color-secondary);
        font-weight: 700;
        line-height: 2;
        text-align: left;
        margin-bottom: 20px;
    }

    .content-text p a {
        color: var(--color-primary);
    }

    .content-slide .graph_img {
        width: 600px;
    }

    /* Custom arrow styles */
    .splide__arrow {
        background: transparent;
        width: 60px;
        height: 60px;
        opacity: 1;
        border: none;
    }

    .splide__arrow--prev {
        left: -4.0em !important;
        opacity: 1 !important;
        background: #fff !important;
        width: 60px !important;
        height: 60px !important;
        padding: 8px !important;
        z-index: 2;
        border: 3px solid var(--color-primary) !important;
    }

    .splide__arrow--next {
        right: -4.0em !important;
        opacity: 1 !important;
        background: #fff !important;
        width: 60px !important;
        height: 60px !important;
        padding: 8px !important;
        z-index: 2;
        border: 3px solid var(--color-primary) !important;
    }

    .splide__arrow svg {
        display: none;
    }

    /* 矢印画像のスタイル（画像を指定する場合） */
    .splide__arrow--prev::before,
    .splide__arrow--next::before {
        content: '';
        display: block;
        width: 60px;
        height: 60px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .splide__arrow--prev::before {
        /* 前へボタンの画像 - 実際の画像URLに置き換えてください */
        background-image: url('image/arrow.webp');
        transform: rotate(90deg);
        width: 30px;
    }

    .splide__arrow--next::before {
        /* 次へボタンの画像 - 実際の画像URLに置き換えてください */
        background-image: url('image/arrow.webp');
        transform: rotate(-90deg);
        width: 30px;
    }

    /* Pagination styles */
    .splide__pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 30px;
        position: relative;
        bottom: auto;
    }

    .splide__pagination__page {
        width: 10px !important;
        height: 10px !important;
        border-radius: 50%;
        background-color: var(--color-secondary) !important;
        opacity: 0.7;
        margin: 0 !important;
        border: none;
        padding: 0;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .splide__pagination__page.is-active {
        background-color: var(--color-primary);
        opacity: 1;
    }
}

/* SP用のレイアウト */
@media (max-width: 768px) {
    .accordion-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .accordion-contents {
        display: none;
    }

    .accordion-item {
        width: 100%;
        display: flex;
        z-index: 1;
        flex-direction: column;
        box-shadow: 2px 2px 1px var(--color-primary);
    }

    .accordion-header {
        background-color: #fff;
        border: 2px solid var(--color-primary);
        padding: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .accordion-header.active {
        border-bottom: 0;
    }

    .accordion-icon {
        width: 50px;
    }

    .accordion-icon img {
        height: 50px;
        object-fit: contain;
        margin: 0 auto;
    }

    .accordion-title {
        font-size: 20px;
        font-weight: 800;
        color: var(--color-primary);
        flex-grow: 1;
        text-align: center;
    }

    .accordion-toggle {
        font-size: 14px;
        color: var(--color-primary);
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    .accordion-toggle-text {
        display: none;
    }

    .accordion-toggle-arrow {
        width: 25px;
    }

    .accordion-header.active .accordion-toggle-arrow {
        transform: rotate(180deg);
    }

    /* SPではコンテンツをaccordion-item内のaccordion-headerの直下に表示 */
    .accordion-content-wrapper {
        max-height: 0;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease;
        order: 2;
        z-index: -1;
        overflow: hidden;
    }

    .accordion-header {
        order: 1;
    }

    .accordion-content-wrapper.active {
        max-height: 2000px;
        opacity: 1;
        overflow: visible;
    }

    .accordion-content {
        background-color: #fff;
        border: 2px solid var(--color-primary);
        border-top: none;
        padding: 0 20px 20px;
    }

    .content-title {
        font-size: 16px;
        font-weight: 800;
        color: #fff;
        background-color: #ef9c00;
        padding: 8px 15px;
        display: inline-block;
        margin-bottom: 15px;
        text-align: center;
    }

    .content-area {
        display: contents;
    }

    .content-area img {
        width: 150px;
    }

    .content-text {
        line-height: 1.6;
        color: #333;
        padding-bottom: 20px;
    }

    .content-text p {
        font-size: 15px;
        color: var(--color-secondary);
        font-weight: 700;
        text-align: left;
        margin-bottom: 20px;
    }

    .content-text p a {
        color: var(--color-primary);
    }

    .content-slide .graph_img {
        width: 100%;
    }

    .content-image {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .content-image img {
        width: 100px;
        margin: 0 auto;
    }

    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }

    .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #ccc;
    }

    .dot.active {
        background-color: var(--color-primary);
    }

    /* Splide slider styles for SP */
    .splide {
        padding: 0;
        visibility: visible;
    }

    .splide__track {
        overflow: visible;
    }

    .splide__list {
        display: flex;
        transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .splide__slide {
        flex-shrink: 0;
        width: 100%;
    }

    .content-slide {
        padding: 10px 0;
        text-align: center;
    }

    .content-slide img {
        margin: 0 auto;
        width: 70%;
    }

    /* Custom arrow styles for SP */
    .splide__arrow {
        background: transparent;
        width: 50px;
        height: 50px;
        opacity: 1;
        border: none;
    }

    .splide__arrow--prev {
        left: -3.0em !important;
        opacity: 1 !important;
        background: #fff !important;
        width: 45px !important;
        height: 45px !important;
        padding: 8px !important;
        z-index: 2;
        border: 3px solid var(--color-primary) !important;
    }

    .splide__arrow--next {
        right: -3.0em !important;
        opacity: 1 !important;
        background: #fff !important;
        width: 45px !important;
        height: 45px !important;
        padding: 8px !important;
        z-index: 2;
        border: 3px solid var(--color-primary) !important;
    }

    .splide__arrow svg {
        display: none;
    }

    /* 矢印画像のスタイル（画像を指定する場合） */
    .splide__arrow--prev::before,
    .splide__arrow--next::before {
        content: '';
        display: block;
        width: 50px;
        height: 50px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .splide__arrow--prev::before {
        /* 前へボタンの画像 - 実際の画像URLに置き換えてください */
        background-image: url('image/arrow.webp');
        transform: rotate(90deg);
    }

    .splide__arrow--next::before {
        /* 次へボタンの画像 - 実際の画像URLに置き換えてください */
        background-image: url('image/arrow.webp');
        transform: rotate(-90deg);
    }

    /* Pagination styles for SP */
    .splide__pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 20px;
        position: relative;
        bottom: -0.5em !important;
    }

    .splide__pagination__page {
        width: 10px !important;
        height: 10px !important;
        border-radius: 50%;
        background-color: var(--color-secondary) !important;
        opacity: 0.7;
        margin: 0 !important;
        border: none;
        padding: 0;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .splide__pagination__page.is-active {
        background-color: var(--color-primary);
        opacity: 1;
    }
}

.bmi-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bmi-calculator {
    background: var(--color-background-main);
    border: 1px solid var(--color-secondary);
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    padding: 5px;
}

@media (min-width: 769px) {
    .bmi-calculator {
        width: 50%;
        padding: 20px
    }
}

.bmi-calculator-title {
    color: var(--color-primary);
    font-size: 20px;
    font-weight: 700;
}

.bmi-calculator .bmi-img-r {
    position: absolute;
    top: -15px;
    right: 15px;
    width: 40px;
}

.bmi-calculator .bmi-img-l {
    position: absolute;
    bottom: -80px;
    left: -75px;
    width: 170px;
}

@media (min-width: 769px) {
    .bmi-calculator .bmi-img-l {
        position: absolute;
        bottom: -70px;
        left: -95px;
        width: 170px;
    }

}

.input-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 20px;
}

.input-field {
    flex: 1;
    text-align: center;
}

.input-label {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.input-box-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 0 15px;
    flex: 1;
}

.input-box {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 20px;
    text-align: center;
    outline: none;
    padding: 5px;
}

.input-unit {
    font-size: 16px;
    color: var(--color-secondary);
    font-weight: bold;
    min-width: 30px;
}

.calculate-btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 5px 30px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.result-group {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.result-field {
    flex: 1;
    text-align: center;
}

.result-label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.result-box {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 0 10px;
}

.result-value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-value.empty {
    color: #ccc;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .bmi-calculator {
        padding: 30px 20px;
    }

    .input-label {
        font-size: 16px;
    }

    .input-box {
        font-size: 18px;
    }

    .result-label {
        font-size: 12px;
    }

    .result-value {
        font-size: 18px;
    }
}

/* エラー表示 */
.error-message {
    color: #ff6347;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
    display: none;
}

.error-message.show {
    display: block;
}

/* BMI判定基準テーブル */
.bmi-criteria {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.criteria-title {
    font-size: 16px;
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 15px;
    text-align: center;
}

.criteria-table {
    width: 100%;
    border-collapse: collapse;
}

.criteria-table th,
.criteria-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.criteria-table th {
    background-color: #f9f9f9;
    color: #8b4513;
    font-weight: bold;
    font-size: 14px;
}

.criteria-table td {
    font-size: 14px;
    color: #333;
}

.criteria-table tr:last-child td {
    border-bottom: none;
}

.criteria-bmi {
    font-weight: 600;
}

.game_link {
    margin-top: 40px;
    display: block;
}

@media (min-width: 769px) {
    .game_link {
        margin-top: 0;
    }
}

/* プレコン診断 */

.precon-action {
    padding-top: 80px;
    padding-bottom: 80px;
    background: #fff;
}

@media (min-width: 769px) {
    .precon-action {
        padding-top: 150px;
        padding-bottom: 150px;
    }
}

.precon-action h2 {
    font-size: 28px;
    color: var(--color-primary);
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
}

@media (min-width: 769px) {
    .precon-action h2 {
        font-size: 48px;
        margin-bottom: 100px;
    }
}

.precon-action h2 span {
    display: block;
    font-weight: 800;
    font-size: 20px;
    text-align: center;
    margin-bottom: 5px;
}

@media (min-width: 769px) {
    .precon-action h2 span {
        font-size: 24px;
        margin-bottom: 40px;
    }
}

.precon-action .container {
    position: relative;
}

@media (min-width: 769px) {
    .precon-action .container {
        max-width: 1000px;
        margin: 0 auto;
    }
}

.check-img {
    position: absolute;
    width: 200px;
    top: 160px;
    left: -25px;
    z-index: 1;
}

@media (min-width: 769px) {
    .check-img {
        width: 330px;
        top: 300px;
        left: -25px;
    }
}

.checked-img {
    position: absolute;
    width: 50px;
    right: -10px;
    top: 60px;
    z-index: 1;
}

@media (min-width: 769px) {
    .checked-img {
        width: 65px;
        right: -30px;
        top: 90px;
    }
}

.pen-img {
    position: absolute;
    width: 70px;
    right: -10px;
    top: 120px;
    z-index: 1;
}

@media (min-width: 769px) {
    .pen-img {
        width: 150px;
        right: -50px;
        top: 190px;
    }
}

.tab-container {
    display: flex;
    gap: 10px;
}

.tab {
    flex: 1;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    color: white;
    transition: all 0.3s;
    border: 2px solid var(--color-primary);
}

@media (min-width: 769px) {
    .tab {
        font-size: 32px;
    }
}

.tab.female {
    background-color: var(--color-background-main);
    color: var(--color-primary);
    border-radius: 10px 10px 0 0;
}

.tab.male {
    background-color: var(--color-background-main);
    color: var(--color-primary);
    border-radius: 10px 10px 0 0;
}

.tab.active.female {
    background-color: var(--color-primary);
    color: #fff;
}

.tab.active.male {
    background-color: var(--color-primary);
    color: #fff;
}

.section {
    background-color: white;
    border-radius: 8px;
    padding: 48px 20px;
    margin-bottom: 32px;
    position: relative;
    border: 2px solid var(--color-primary);
}

@media (min-width: 769px) {
    .section {
        padding: 100px 20px;
    }
}

.section-title {
    background-color: #e74c3c;
    color: white;
    padding: 8px 20px;
    text-align: center;
    font-weight: bold;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    font-size: 14px;
    font-weight: 800;
}

@media (min-width: 769px) {

    .section-title p {
        font-size: 32px;
    }
}

.progress-section {
    text-align: center;
    padding: 15px;
    margin-bottom: 130px;
}

@media (min-width: 769px) {
    .progress-section {
        margin-bottom: 200px;
        padding: 30px;
    }
}

.progress-label {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--color-primary);
    font-weight: 800;
}

@media (min-width: 769px) {
    .progress-label {
        font-size: 24px;
    }
}

.progress-bar-container {
    width: 100%;
    height: 30px;
    background-color: #ddd;
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

@media (min-width: 769px) {
    .progress-bar-container {
        height: 45px;
    }
}

.progress-bar {
    height: 100%;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
    border-radius: 5px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
    cursor: pointer;
}

@media (min-width: 769px) {
    .checkbox-item {
        width: 80%;
        margin: 0 auto 30px;
    }

    .checkbox-item:first-child {
        margin-top: 0;
    }
}

.section .checkbox-item:last-child {
    margin: 0;
}

@media (min-width: 769px) {
    .section .checkbox-item:last-child {
        margin: 0 auto 0;
    }
}

.checkbox-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid var(--color-secondary);
    border-radius: 4px;
    position: relative;
    overflow: visible;
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 35%;
    left: 70%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 30px;
    background-image: url('image/check.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 10;
}

.checkbox-item label {
    cursor: pointer;
    line-height: 1.2;
    font-size: 16px;
    color: var(--color-secondary);
    font-weight: 700;
}

@media (min-width: 769px) {
    .checkbox-item label {

        font-size: 24px;

    }

}

.sub-text {
    font-size: 13px;
    text-align: center;
    color: var(--color-primary);
    margin-top: -20px;
    font-weight: 700;
    margin-bottom: 12px;
}

@media (min-width: 769px) {
    .sub-text {
        font-size: 20px;
    }

}

.result-section {
    text-align: center;
}

.arrow-icon {
    width: 50px;
    height: 50px;
    background-color: white;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    font-size: 30px;
    color: #f4c542;
}

@media (min-width: 769px) {
    .arrow-icon {
        width: 60px;
        height: 60px;
        margin: 30px auto;
    }
}

.arrow-icon img {
    width: 20px;
}

@media (min-width: 769px) {
    .arrow-icon img {
        width: 30px;
    }
}

.result-label {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--color-secondary);
}

@media (min-width: 769px) {
    .result-label {
        font-size: 24px;
    }
}

.result-score {
    font-size: 125px;
    font-weight: bold;
    color: #e74c3c;
    line-height: 1;
}

@media (min-width: 769px) {
    .result-score {
        font-size: 250px;
    }
}

.result-total {
    font-size: 56px;
    font-weight: bold;
    color: var(--color-secondary);
}

@media (min-width: 769px) {
    .result-total {
        font-size: 112px;
    }
}

.result-message {
    background-color: var(--color-primary);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.6;
}

@media (min-width: 769px) {
    .result-message {
        font-size: 28px;
    }
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.start-button-container {
    background-color: var(--color-background-third);
    border-radius: 0 0 10px 10px;
    padding: 30px 20px;
    text-align: center;
    border: 2px solid var(--color-secondary);
}

@media (min-width: 769px) {
    .start-button-container {
        padding: 90px 20px;
    }
}

.start-button-container img {
    width: 200px;
    margin: 0 auto;
}

.checklist-content {
    display: none;
    padding-top: 20px;
    padding-bottom: 20px;
}

@media (min-width: 769px) {
    .checklist-content {
        padding: 50px;
    }
}

.checklist-content.active {
    display: block;
    border-radius: 0 0 10px 10px;
    background: var(--color-background-third);
    border: 2px solid var(--color-secondary);
}


/* 相談窓口 */

.precon-consultation {
    margin: 80px 0;
}

@media (min-width: 769px) {
    .precon-consultation {
        margin: 150px 0;
    }
}

.precon-consultation h2 {
    font-size: 28px;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 48px;
    font-weight: 800;
}

@media (min-width: 769px) {
    .precon-consultation h2 {
        margin-bottom: 100px;
        font-size: 48px;
    }
}

.precon-consultation h2 span {
    display: block;
    font-size: 20px;
    text-align: center;
    margin-bottom: 32px;
    font-weight: 800;
}

@media (min-width: 769px) {
    .precon-consultation h2 span {
        font-size: 24px;
        line-height: 2;
        margin-bottom: 40px;
    }
}

.precon-consultation .container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

@media (min-width: 769px) {
    .precon-consultation .container {
        max-width: 1000px;
        margin: 0 auto;
        flex-wrap: wrap;
        justify-content: center;
        flex-direction: row;
        gap: 25px;
    }

    .precon-consultation .container a {
        width: calc(100% / 3 - 25px);
    }

}

.pc-img {
    position: absolute;
    top: -90px;
    right: 0;
    width: 100px;
    z-index: -1;
}

@media (min-width: 769px) {
    .pc-img {
        top: -190px;
        width: 165px;
    }
}

.check_hurt-img {
    position: absolute;
    bottom: -70px;
    left: -20px;
    width: 70px;
}

@media (min-width: 769px) {
    .check_hurt-img {
        width: 120px;
    }
}

/* プレコン取り組み */

.precon-attempt {
    margin: 80px 0;
}

@media (min-width: 769px) {
    .precon-attempt {
        margin: 150px 0;
    }
}

@media (min-width: 769px) {
    .precon-attempt .container {
        max-width: 1300px;
        margin: 0 auto;
        display: flex;
        gap: 20px;
    }
}

.precon-attempt h2 {
    font-size: 28px;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 48px;
}

@media (min-width: 769px) {
    .precon-attempt h2 {
        font-size: 48px;
        margin-bottom: 100px;
        list-style: 2;
    }
}

.card {
    background: white;
    border-radius: 20px;
    padding: 48px 40px 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    margin-top: 48px;
}

@media (min-width: 769px) {
    .card {
        width: calc(100% / 3);
        margin-top: 0;
        padding: 70px 20px 50px;
    }
}

.card-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);

}

.card-number img {
    width: 50px;
}

@media (min-width: 769px) {
    .card-number img {
        width: 70px;
    }
}

.card-subtitle {
    color: var(--color-primary);
    font-size: 16px;
    text-align: center;
    margin-bottom: 32px;
    font-weight: 800;
}

@media (min-width: 769px) {
    .card-subtitle {
        font-size: 20px;
        line-height: 1.7;
        margin-bottom: 30px;
    }
}

.card-title {
    color: var(--color-primary);
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 48px;
    line-height: 1.2;
    font-weight: 800;
}

@media (min-width: 769px) {
    .card-title {
        font-size: 32px;
        line-height: 1.5;
        margin-bottom: 70px;
    }
}

.card-description {
    color: var(--color-secondary);
    font-size: 16px;
    font-weight: 700;
    line-height: 2;
    margin-bottom: 30px;
    flex-grow: 1;
}

@media (min-width: 769px) {
    .card-description {
        margin-bottom: 70px;
    }
}

@media (min-width: 769px) {
    .card-description p {
        line-height: 2;
        font-weight: 800;
    }
}

.image-slider-area {
    position: relative;
}

.image-slider {
    width: 100%;
    margin-bottom: 32px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--color-secondary);
}

@media (min-width: 769px) {
    .image-slider {
        margin-bottom: 50px;
    }
}

.precon-attempt .splide__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    background: #f8f8f8;
}

@media (min-width: 769px) {
    .precon-attempt .splide__slide {
        height: 200px;
    }

}

.precon-attempt .splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Splide customization */
.precon-attempt .splide__pagination {
    bottom: -30px;
}

.precon-attempt .splide__pagination__page {
    background: #ccc;
    opacity: 0.7;
}

.precon-attempt .splide__pagination__page.is-active {
    background: var(--color-primary);
    opacity: 1;
}

.coin-img {
    position: absolute;
    width: 80px;
    bottom: 0;
    right: -35px;
}

.human-arrow-img {
    position: absolute;
    width: 70px;
    bottom: 40px;
    right: -45px;
}

.card a img {
    width: 80%;
    margin: 0 auto;
}

.card-description p span {
    font-size: 30px;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .card-number {
        font-size: 48px;
    }

    .card-title {
        font-size: 32px;
    }

    .card-description {
        font-size: 14px;
    }

}



/* お問い合わせ */

.precon-contact {
    padding-top: 48px;
    padding-bottom: 48px;
    background: #fff;
    text-align: center;
}

@media (min-width: 769px) {
    .precon-contact {
        padding-top: 100px;
        padding-bottom: 100px;
    }

}

.precon-contact h2 {
    position: relative;
    display: inline-block;
    font-size: 16px;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 32px;
}

@media (min-width: 769px) {
    .precon-contact h2 {
        font-size: 24px;
        margin-bottom: 50px;
    }

}

.future-img {
    position: absolute;
    width: 100px;
    top: -70px;
    left: -100px;
}

@media (min-width: 769px) {
    .future-img {
        width: 200px;
        max-width: 300px;
        top: -150px;
        left: -300px;
    }
}

.department-name {
    font-size: 12px;
    font-weight: bold;
    color: var(--color-primary);
    letter-spacing: 2px;
}

@media (min-width: 769px) {
    .department-name {
        font-size: 20px;
    }

}

.contact-info {
    line-height: 1.7;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #333;
    flex-wrap: wrap;
    font-weight: 500;
}

@media (min-width: 769px) {
    .info-item {
        line-height: 2;
        font-size: 20px;
    }
}

.info-item img {
    width: 15px;
}

.info-item.address {
    color: var(--color-primary);
    line-height: 1.6;
}

.info-item.phone {
    color: var(--color-primary);
    letter-spacing: 2px;
}


.info-item.email {
    color: var(--color-primary);
    word-break: break-all;
}

.info-text {
    display: inline-block;
    margin-left: 5px;
}

/* 
@media (max-width: 768px) {
    .contact-container {
        padding: 40px 20px;
    }

    .contact-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .department-name {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .info-item {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .info-item.address {
        font-size: 16px;
    }

    .info-item.phone {
        font-size: 26px;
    }

    .info-item.email {
        font-size: 18px;
    }

    .info-item i {
        font-size: 24px;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .info-item {
        flex-direction: column;
        gap: 10px;
    }

    .info-item i {
        margin-right: 0;
    }

    .info-item.email {
        font-size: 16px;
    }
} */