@charset "utf-8";

.p-sec {
    padding: .4rem;
    border-radius: .2rem;
    background: #fefedf;
    display: grid;
    gap: .2rem;
}

.p-sec__free{
    width: fit-content;
    border-radius: 9999px;
    padding: .05rem .15rem;
    background: #99b657;
    color: #fff;
}

.p-sec02{
    width: min(100% - 1rem,10rem);
}
.p-sec03{
    display: grid;
    gap: .4rem;
}

.p-sec03__box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.p-sec03__box > div {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: .1rem;
    position: relative;
}

.p-sec03__box_step {
    background: #99b657;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    align-self: stretch;
    padding: .2rem .4rem;
    border-radius: .2rem 0 0 .2rem;
}

.p-sec03__box_txt {
    display: flex;
    align-items: center;
    gap: .2rem;
    padding: .2rem .4rem;
    flex: 1;
    min-height: 1.4rem;
    border-radius: 0 .2rem .2rem 0;
    width: 100%;
}

.p-sec03__box_txt figure{
    min-width: 1rem;
    display: flex;
    justify-content: center;
}

.p-sec03__box > div:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -.7rem;
    left: 0;
    right: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-left: .5rem solid transparent;
    border-right: .5rem solid transparent;
    border-top: .3rem solid #99b657;
    z-index: 1;
}

.p-sec04{
    display: grid;
    gap: .6rem;
}

/* モーダルを開くボタン */
.open-btn {
    color: #0d79b3;
    text-decoration: underline;
    vertical-align: baseline;
}

/* --- モーダルのスタイル --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: .2rem;
    width: min(100% - 1rem,10rem);
    height: 90vh;
    border-radius: .1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    overflow-y: scroll;
    display: grid;
    gap: .1rem;
}

.modal-content__txt{
    display: grid;
    gap: .1rem;
}
.close-btn {
    display: block;
    margin-top: 20px;
    padding: .1rem;
    background: #6c757d;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

.close-btn:hover {
    background-color: #5a6268;
}

@media only screen and (max-width: 1024px) {
    .p-sec03__box{
        grid-template-columns: 1fr;
    }
    .p-sec03__box03 ul a{
        display: block;
        margin-left: 0;
    }
    .p-sec03__box > div{
        flex-direction: column;
    }
    .p-sec03__box_step{
        border-radius: .2rem .2rem 0 0;
    }
    .p-sec03__box_txt{
        border-radius: 0 0 .2rem .2rem;
    }
}