@charset "UTF-8";

html {
    font-size: 62.5%;
}

/* sp */
p {
    font-size: 1.6rem;
}

h2 {
    font-size: 1.9rem;
}

h3 {
    font-size: 1.6rem;
}
/* sec01 */
.container01 {
    width: 100%;
    height: 45vw;
    position: relative;
    background-image: url(../images/common/ir_mv_sp.png);
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}

.text__main {
    & .txt__top1 {
        color: var(--color-black);
    }

    & .txt__top2 {
        color: var(--color-black);
    }
}

/* sec02 */
#sec02 {
    padding-top: min(8vw, 100px);
    /* padding-bottom: min(8vw, 100px); */
    line-height: 2;
}

.bgc-main {
    color: var(--color-white);
    background-color: var(--color-main);
    padding: 10px 20px;
    margin: 30px 0 16px;
}

.accordion-box_wrapper {
    display: none;
}

.qa-1 {
    margin: 0 0 10px;
}

.qa-1 summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    font-size: 16px;
    padding: 1em 1.5em;
    color: var(--color-white);
    background-color: var(--color-main);
    cursor: pointer;
}

.qa-1 summary::-webkit-details-marker {
    display: none;
}

.qa-1 summary {
    position: relative;
    cursor: pointer;
}

/* 矢印の共通装飾 */
.qa-1 summary::before,
.qa-1 summary::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    vertical-align: middle;
}

.qa-1 summary::before {
    right: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
}

/* 初期矢印（右下向き） */
.qa-1 summary::after {
    right: 26px;
    top: -2px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--color-main);
    border-right: 2px solid var(--color-main);
    transform: rotate(135deg);
    transition: transform 0.3s ease;
}

/* 開いたとき（矢印を180°回転） */
.qa-1[open] summary::after {
    transform: rotate(-45deg);
    /* 135° + 180° = -45°相当 */
    top: 4px;
}


.qa-1 p {
    position: relative;
    transform: translateY(-10px);
    opacity: 0;
    margin: 0;
    color: #222222;
    transition: transform .5s, opacity .5s;
}

.qa-1 p>span:nth-of-type(2) {
    display: inline-block;
    margin-top: 2em;
}

.qa-1[open] p {
    transform: none;
    opacity: 1;
}

.period-box {
    border-bottom: 1px solid var(--color-main);
}

.period-box img {
    width: 20px;
    height: auto;
    object-fit: contain;
}

.period-box a {
    display: flex;
    padding: 1.4em;
    gap: 5px;
    justify-content: space-between;
}

.rb-box {
    border: 1px solid;
    padding: 0 1rem;
    border-radius: 9999px;
    min-width: 140px;
    max-height: 30px;
    text-align: center;
    font-size: 1.4rem;
}

.p-box {
    display: flex;
    flex-wrap: wrap;
    width: clamp(240px, 70vw, 600px);
    gap: 1rem;
}

.p-box p {
    box-sizing: border-box;
}

.p-box p:first-of-type {
    color: var(--color-main);
}

/* スマホ時：最後のアイテムだけ1行使う */
@media screen and (max-width: 999.8px) {
    .p-box p:last-child {
        flex-basis: 100%;
    }
}


/* pc */
@media screen and (min-width: 999.8px) {
    h2 {
        font-size: 3.5rem;
    }

    h3 {
        font-size: 2.6rem;
    }

    p {
        font-size: 1.8rem;
    }

    /* sec01 */
    .container01 {
        height: 27vw;
        background-image: url(../images/common/ir_mv_pc.png);
    }

    /* sec02 */
    #sec02 {
        padding-top: 0;
        padding-bottom: 0;
    }

    .bgc-main {
        margin: 80px 0 40px;
        font-size: 18px;
    }

    .bgc-main:first-of-type {
        margin: 0 0 40px;
    }

    .qa-1 summary {
        font-size: 18px;
    }

    .period-box a {
        justify-content: normal;
        line-height: 1.5;
    }

    .period-box img {
        width: 15px;
    }

    .rb-box {
        max-height: 26px;
        font-size: 1.6rem;
    }

    .p-box {
        flex-wrap: nowrap;
        max-width: none;
        gap: 3.4rem;
        width: auto;
    }

    .p-box p {
        flex: 1 1 auto;
    }

    .p-box p:first-of-type {
        color: var(--color-black);
    }

}

.period-box a {
    transition: 0.2s;
}
.period-box a:hover {
    background-color: var(--color-green-light);
    & p {
        color: var(--color-main);
    }
}
