@charset "UTF-8";

.page-beginner {
    --color-primary: #15b28d;
    --color-primary-dark: #179779;
}

/* ========================================== */
/* ページヘッダー */
/* ========================================== */

.beginner-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: var(--space-170);

    @media (width <= 1024px) {
        padding-top: var(--space-120);
    }
    @media (width <= 800px) {
        padding-top: var(--space-100);
    }
    @media (width <= 640px) {
        padding-top: var(--space-120);
    }

    picture,
    img {
        width: 100%;
    }

    &::before {
        background: url(../img/page-header-bg.svg) 50% 0 / contain no-repeat;
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        aspect-ratio: 1920 / 698;
        z-index: -1;
    }
}

/* ========================================== */
/* read02 */
/* ========================================== */

.read02 {
    background-color: #f0f0f0;
    position: relative;
    padding-top: var(--space-64);
    padding-bottom: 0.1px;

    &::after {
        content: '';
        display: block;
        position: absolute;
        left: 50%;
        transform: translate(-50%, 100%);
        bottom: 0;
        width: 100%;
        height: 200px;
        background-color: #f0f0f0;
        border-bottom-left-radius: 1000px 200px;
        border-bottom-right-radius: 1000px 200px;
        height: 130px;
        z-index: -1;
        
        @media (width <= 640px) {
            transform: translate(-50%, 50%);
        }
    }
}
.read02-img {
    margin-bottom: calc(var(--space-150) * -1);

    img {
        width: 960px;
        max-width: 80%;

        @media (width <= 640px) {
            width: 90%;
            max-width: 100%;
        }
        @media (width <= 540px) {
            width: 100%;
        }
    }
}

/* ========================================== */
/* read03 */
/* ========================================== */

.read03 {
    position: relative;
    padding-top: var(--space-170);
}

.read03-balloon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d0f0e8;
    width: 550px;
    max-width: 100%;
    margin-top: var(--space-52);
    margin-inline: auto;
    padding: var(--space-16);
    border-radius: 30px;
    letter-spacing: -0.05em;
    font-size: var(--font-size-28);
    text-align: center;
    font-weight: bold;

    @media (width <= 640px) {
        font-size: var(--font-size-20);
    }
    @media (width <= 480px) {
        font-size: var(--font-size-16);
    }

    &::before {
        content: '';
        /* 下方向の矢印 */
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -24px;
        width: 0;
        height: 0;
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-top: 24px solid #d0f0e8;
        border-bottom: 0;
        background: none;
        z-index: 1;
    }
}

.read03-after01,
.read03-after02,
.read03-after03,
.read03-after04 {
    position: absolute;
    z-index: -1;

    img {
        width: 100%;
    }
}
.read03-after01 {
    top: 660px;
    left: 0;
    width: calc(340 / 1920 * 100%);

    @media (width <= 1680px) {
        top: 180px;
    }
    @media (width <= 1280px) {
        top: 200px;
    }
    @media (width <= 1024px) {
        display: none;
    }
}
.read03-after02 {
    top: 656px;
    right: 0;
    width: calc(424 / 1920 * 100%);

    @media (width <= 1680px) {
        top: 0;
    }
    @media (width <= 1280px) {
        top: 100px;
    }
    @media (width <= 1024px) {
        display: none;
    }
}
.read03-after03 {
    top: 1130px;
    left: 0;
    width: calc(572 / 1920 * 100%);

    @media (width <= 1680px) {
        top: 1260px;
    }
    @media (width <= 1280px) {
        top: 1320px;
    }
    @media (width <= 1024px) {
        top: 1360px;
    }
    @media (width <= 800px) {
        top: 1240px;
    }
    @media (width <= 640px) {
        top: 1010px;
    }
    @media (width <= 480px) {
        top: 880px;
    }
}
.read03-after04 {
    top: 1320px;
    right: 0;
    width: calc(474 / 1920 * 100%);

    @media (width <= 1680px) {
        top: 1370px;
    }
    @media (width <= 1024px) {
        top: 1350px;
    }
    @media (width <= 800px) {
        top: 1270px;
    }
    @media (width <= 640px) {
        top: 1040px;
    }
    @media (width <= 480px) {
        top: 870px;
    }
}

/* ========================================== */
/* nav-section / nav-list */
/* ========================================== */

.nav-section {
    position: relative;
    margin-top: var(--space-150);

    @media (width <= 800px) {
        margin-top: var(--space-80);
    }
    @media (width <= 640px) {
        margin-top: var(--space-60);
    }
}
.nav-section-heading {
    img {
        @media (width <= 480px) {
            max-width: 70%;
        }
        @media (width <= 400px) {
            max-width: 80%;
        }
    }
}
.nav-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-20);
    margin-top: var(--space-48);

    @media (width <= 1024px) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.nav-list-item {
    display: grid;
    grid-template-rows: auto 1fr;
    align-items: center;
    gap: var(--space-12);
    padding: var(--space-24) var(--space-16);
    min-height: 100%;
    border: 2px solid;
    border-color: inherit;
    box-shadow: var(--space-8) var(--space-8) 0 var(--color-primary);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.nav-list-icon {
    display: flex;
    justify-content: center;

    img {
        width: 58px;
        height: 58px;
        display: block;
        object-fit: contain;
        object-position: 50%;
    }
}

.nav-list-label {
    display: block;
    line-height: 1.4;
    font-size: var(--font-size-20);
    font-weight: bold;
    text-align: center;

    @media (width <= 480px) {
        font-size: var(--font-size-16);
    }
}

/* ========================================== */
/* point-section */
/* ========================================== */

.point-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.point-section-header-num {
    font-size: var(--font-size-68);
    color: var(--color-text-inverted);
    -webkit-text-stroke: 3px var(--color-primary);
    text-stroke: 3px var(--color-primary);
    paint-order: stroke;
    line-height: 1.4;

    @media (width <= 480px) {
        font-size: var(--font-size-48);
    }

    .bg-primary & {
        color: var(--color-primary);
        -webkit-text-stroke: 3px var(--color-text-inverted);
        text-stroke: 3px var(--color-text-inverted);
        paint-order: stroke;
    }
}

.point-section-header-label {
    position: relative;
    background-color: var(--color-primary);
    font-size: var(--font-size-20);
    margin-top: var(--space-28);
    padding: var(--space-8) var(--space-32);
    border-radius: 9999px;
    color: var(--color-text-inverted);
    line-height: 1.4;
    letter-spacing: -0.05em;
    text-align: center;

    &::after {
        position: absolute;
        left: 50%;
        transform: translate(-50%, 100%);
        bottom: 0;
        content: '';
        display: block;
        width: 0;
        height: 0;
        border-style: solid;
        border-right: 10px solid transparent;
        border-left: 10px solid transparent;
        border-top: 10px solid var(--color-primary);
        border-bottom: 0;
    }

    .bg-primary & {
        background-color: var(--color-text-inverted);
        color: var(--color-primary);

        &::after {
            border-top-color: var(--color-text-inverted);
        }
    }
}

.point-section-header-heading {
    display: block;
    margin-top: var(--space-20);
    font-size: var(--font-size-48);
    line-height: 1.4;
    text-align: center;

    @media (width <= 480px) {
        font-size: var(--font-size-40);
    }

    &::after {
        background: url(../img/beginner/wave-line-primary.svg) 50% 50% / contain repeat-x;
        display: block;
        content: '';
        width: 179px;
        height: 11px;
        margin-top: var(--space-12);
        margin-inline: auto;
    }
    &.point-section-header-heading-full {
        width: fit-content;
        max-width: 100%;
        margin-inline: auto;

        &::after {
            width: 100%;
        }
    }

    .bg-primary & {
        color: var(--color-text-inverted);

        &::after {
            background-image: url(../img/beginner/wave-line-inverted.svg);
        }
    }
}

.point-section-btn {
    position: relative;
    background-color: var(--color-accent);
    display: block;
    min-width: 27.5rem;
    width: 63rem;
    max-width: 100%;
    padding: var(--space-32) var(--space-120) var(--space-32) var(--space-120);
    border: 4px solid var(--color-text);
    box-shadow: 0 var(--space-8) 0 var(--color-text);
    color: var(--color-text);
    font-size: var(--font-size-28);
    font-weight: 700;
    text-decoration: none;
    border-radius: 9999px;
    transition: 0.3s;
    object-position: 50% 0;
    line-height: 1.2;
    text-align: center;

    @media (width <= 480px) {
        padding-left: var(--space-32);
    }

    &:hover {
        transform: scale(1.05);
    }
    &::after {
        position: absolute;
        right: var(--space-32);
        top: 50%;
        transform: translateY(-50%);
        background: var(--color-text) url(../img/accent-btn-icon.svg) 50% 50% / 1.1rem 1.1rem no-repeat;
        content: '';
        display: block;
        width: var(--space-52);
        height: var(--space-52);
        border-radius: 50%;
    }
}

/* ========================================== */
/* point-section05 */
/* ========================================== */

.bg-primary-dark {
    background-color: var(--color-primary-dark);
}

.item-modal-btn {
    img {
        transition: 0.3s;
        &:hover {
            transform: scale(1.05);
        }
    }
}

.item-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    z-index: 9999;
    background-color: var(--color-primary);
}
.item-modal.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--space-40);
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}
.item-modal-inner {
    width: 100%;
    max-width: 100%;
    margin-top: auto;
    margin-bottom: auto;
    flex-shrink: 0;
}

.item-modal-box {
    position: relative;
    max-width: 960px;
    margin-inline: auto;
    width: 100%;
    background-color: #fff;
    padding: var(--space-64) var(--space-80);
    border-radius: 30px;
    box-shadow: 0 16px rgba(0, 0, 0, 0.05);

    @media (width <= 800px) {
        padding: var(--space-40);
    }
    @media (width <= 480px) {
        padding: var(--space-32);
    }

    .bg-primary & .point-section-header-heading {
        color: var(--color-text);

        &::after {
            background-image: url(../img/beginner/wave-line-primary.svg);
        }
    }
}

.item-modal-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-32);
    max-width: 100%;
    margin-inline: auto;
    margin-top: var(--space-40);
    
    @media (width <= 1024px) {
        gap: var(--space-20);
    }
    @media (width <= 640px) {
        width: 330px;
        gap: var(--space-16);
        grid-template-columns: repeat(2, 1fr);
    }
}

.item-modal-text {
    margin-top: var(--space-32);
    text-align: center;
    font-size: var(--font-size-24);
    font-weight: bold;
    color: var(--color-primary);

    @media (width <= 640px) {
        font-size: var(--font-size-20);
    }
    @media (width <= 480px) {
        font-size: var(--font-size-20);
    }
}

.item-modal-close {
    position: absolute;
    top: var(--space-32);
    right: var(--space-32);
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
    flex-shrink: 0;

    @media (width <= 480px) {
        top: var(--space-24);
        right: var(--space-24);
        width: 32px;
        height: 32px;
    }

    &::before,
    &::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        width: 100%;
        height: 2px;
        background-color: #333;
        border-radius: 1px;
    }
    &::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    &::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
}

.point05-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: var(--space-48) var(--space-16);

    @media (width <= 1024px) {
        grid-template-columns: 1fr auto 1fr auto;
    }
    @media (width <= 480px) {
        grid-template-columns: 1fr;
        gap: var(--space-16);
    }
}

.point05-flow-arrow {
    display: flex;
    justify-content: center;
    align-items: center;

    &::before {
        background: url(../img/beginner/point05-flow-arrow.svg) 50% 50% / contain no-repeat;
        display: block;
        width: 30px;
        height: 42px;
        content: '';

        @media (width <= 480px) {
            background-image: url(../img/beginner/point05-flow-arrow-sp.svg);
            width: 32px;
            height: 24px;
        }
    }
}

.point05-flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-inline: var(--space-24);
    padding-bottom: var(--space-24);

    @media (width <= 480px) {
        flex-direction: row;
        padding-block: var(--space-24);
        padding-right: var(--space-24);
        padding-left: 0;
    }
}

.point05-flow-item-num {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.2em;
    height: 2.2em;
    margin-top: -1.1em;
    border-radius: 50%;
    background-color: var(--color-accent);
    font-size: var(--font-size-32);
    line-height: 1;

    @media (width <= 480px) {
        margin-top: 0;
        margin-left: -0.9em;
    }
}

.point05-flow-item-icon {
    margin-top: var(--space-28);

    @media (width <= 480px) {
        margin-top: 0;
        width: 64px;
        margin-left: var(--space-24);
    }
}

.point05-flow-item-label {
    margin-top: var(--space-32);
    text-align: center;
    font-size: var(--font-size-20);
    font-weight: bold;
    line-height: 1.4;

    @media (width <= 480px) {
        margin-top: 0;
        margin-left: var(--space-28);
        text-align: left;
        flex: 1 0 0%;
    }
}

.point05-voice-tab {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-28);
    margin-top: var(--space-88);

    @media (width <= 800px) {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-16);
        margin-top: var(--space-64);
        padding-bottom: var(--space-32);
    }
    @media (width <= 480px) {
        margin-top: var(--space-48);
    }
}

.point05-voice-tab-item {
    background-color: var(--color-primary-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-24) 0;
    border-radius: 20px 20px 0 0;
    color: var(--color-text-inverted);
    border: solid #fff;
    border-width: 1px 1px 0 1px;
    text-align: center;
    text-decoration: none;

    @media (width <= 800px) {
        padding: var(--space-16) 0;
        border-radius: 20px;
        border-width: 1px;
    }

    &.active {
        background-color: var(--color-accent);
        color: var(--color-text);
    }
}

.point05-voice-tab-item-label {
    flex: 1 0 0%;
    display: flex;
    font-size: var(--font-size-18);
    font-weight: bold;
    line-height: 1.4;

    @media (width <= 480px) {
        font-size: var(--font-size-16);
    }
}

.point05-voice-tab-item-author {
    margin-top: var(--space-16);
    font-size: var(--font-size-14);
    line-height: 1.4;

    @media (width <= 800px) {
        margin-top: var(--space-8);
    }
}

.point05-voice-tab-wrapper {
    position: relative;
    overflow: hidden;
}

.point05-voice-tab-content {
    display: none;

    &.active {
        display: block;
    }
}
/* .point05-voice-tab-wrapper {
    position: relative;
    overflow: hidden;
}

.point05-voice-tab-content {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: -1;
    
    &.active {
        position: relative;
        opacity: 1;
        z-index: 1;
    }
} */

.point05-voice-author {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
}

.point05-voice-author-img {
    display: flex;
    align-items: flex-end;

    @media (width <= 640px) {
        width: 25%;
    }
}

.point05-voice-author-body {
    flex: 1 0 0%;
    display: flex;
    max-width: fit-content;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;

    @media (width <= 640px) {
        padding-bottom: var(--space-24);
    }
}

.point05-voice-author-text {
    position: relative;
    background-color: var(--color-primary);
    color: var(--color-text-inverted);
    padding: var(--space-24) var(--space-28);
    border-radius: 30px;
    font-size: var(--font-size-24);
    line-height: 1.4;

    &::before {
        position: absolute;
        left: 0;
        bottom: 0;
        transform: translate(-20%, -5%);
        content: '';
        display: block;
        width: 41px;
        height: 18px;
        background: url(../img/beginner/point05-voice-author-text-before.svg) 50% 50% / contain no-repeat;
    }

    @media (width <= 480px) {
        font-size: var(--font-size-20);
    }
}

.point05-voice-author-name {
    font-size: var(--font-size-16);
    line-height: 1.4;
    margin-top: var(--space-8);
}

.point05-voice-heading {
    background-color: var(--color-primary);
    color: var(--color-text-inverted);
    padding: var(--space-16) var(--space-24);
    border-radius: 9999px;
    font-size: var(--font-size-36);
    font-weight: bold;
    line-height: 1.4;
    text-align: center;

    @media (width <= 1024px) {
        font-size: var(--font-size-32);
    }
    @media (width <= 480px) {
        font-size: var(--font-size-24);
    }
}

.point05-slider {
    margin-top: var(--space-24);

    .splide__slide {
        padding-top: var(--space-64);
        padding-bottom: var(--space-12);
    }
    .splide__arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        width: var(--space-76);
        height: var(--space-76);
        background: 50% 50% / contain no-repeat;
        border: none;
        z-index: 1;
        cursor: pointer;
        transition: opacity 0.2s;

        &[disabled] {
            opacity: 0;
        }

        svg {
            display: none;
        }
    }
    .splide__arrow--prev {
        left: 2svw;
        background-image: url(../img/front/top-facility-slider-arrow-prev.svg);
    }
    .splide__arrow--next {
        right: 2svw;
        background-image: url(../img/front/top-facility-slider-arrow-next.svg);
    }
}

.point05-slider-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 var(--space-52) var(--space-52);
    min-height: 100%;
    background-color: #fff;
    border-radius: 40px;
    box-shadow: 7px 7px 6px rgba(0, 0, 0, 0.1);

    @media (width <= 800px) {
        padding: 0 var(--space-32) var(--space-48);
    }
}
.point05-slider-num {
    width: 80px;
    margin-top: calc(var(--font-size-48) * -1);
    line-height: 1;

    @media (width <= 480px) {
        width: 60px;
    }
}
.point05-slider-label {
    margin-top: var(--space-24);
    color: var(--color-primary);
    font-size: var(--font-size-24);
    font-weight: bold;
    line-height: 1.4;
    text-align: center;

    @media (width <= 480px) {
        font-size: var(--font-size-20);
    }
}
.point05-slider-text {
    flex: 1 0 0%;
    margin-top: var(--space-16);
    font-size: var(--font-size-16);
    line-height: 1.4;
    text-align: center;
}
.point05-slider-img {
    width: 100%;
    margin-top: var(--space-24);

    img {
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: 50% 50%;
        aspect-ratio: 619 / 357;
        border-radius: 20px;
    }
}

/* ========================================== */
/* trial-section */
/* ========================================== */

.trial-item-list {
    margin-top: var(--space-24);
    max-width: 34.7rem;
    margin-inline: auto;
    width: fit-content;
}
.trial-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    width: 16.4rem;
    height: 16.4rem;
    padding-block: var(--space-24);
    border: 2px solid;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    color: var(--color-text-inverted);
    line-height: 1.4;
    @media (width <= 480px) {
        width: 12.7rem;
        height: 12.7rem;
    }

    p {
        display: flex;
        align-items: center;
        flex: 1 0 0%;
    }
}

/* ========================================== */
/* faq-section */
/* ========================================== */

.faq-item-summary {
    background-color: #fff;
    color: var(--color-text);

    &::after {
        color: var(--color-primary);
    }
    .faq-item[open] & {
        background-color: var(--color-primary);
        color: var(--color-text-inverted);

        &::after {
            color: var(--color-text-inverted);
        }
    }
}

.faq-item-content {
    .faq-item[open] & {
        background-color: #fff;
    }
}
