/* 
 下層ページ用
 	benefits / number / faq
 */
 
/* benefits */
.list_outer {
	display: grid;
}
.list_item {
	text-align: center;
	background: #e4eff9;
	border-radius: 30px;
	aspect-ratio: 440 / 406;
}
.item__img {
	width: 164px;
	height: 164px;
	margin: 50px auto 0;
}
.item__img img {
  width: 100%;
  height: auto;
}
.item__title {
  font-size: 25px;
  margin:  20px auto;
}
.item__desc {
	font-size: 18px;
	line-height: 32px;
	max-width:285px;
	margin: 0 auto;
}
@media screen  and (min-width: 1280px) {
        .list_outer {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 8rem;
        gap: 24px;
        width:75%;
        max-width:1200px;
        margin:0 auto;
    }
    .list_item {
        max-width: 375px;
        aspect-ratio: 375 / 360;
    }
    .item__img {
        width: 124px;
        height: 124px;
        margin: 30px auto 0;
    }
    .item__title {
        font-size: 20px;
        margin: 20px auto;
    }
    .item__desc {
        font-size: 16px;
        line-height: 1.6em;
        max-width: 250px;
    }
}

@media screen and (min-width: 1025px) and (max-width:1279px) {
    .list_outer {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 8rem;
        gap: 24px;
        width:85%;
    }
    .list_item {
        max-width: 300px;
        aspect-ratio: 300 / 320;
    }
    .item__img {
        width: 124px;
        height: 124px;
        margin: 30px auto 0;
    }
    .item__title {
        font-size: 20px;
        margin: 20px auto;
    }
    .item__desc {
        font-size: 16px;
        line-height: 1.6em;
        max-width: 250px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .list_outer {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 3rem;
        gap: 20px;
        width:85%;
        max-width: 900px;
        margin: 0 auto 40px auto;
    }
    .list_item {
        max-width: 100%;
        aspect-ratio: auto;
    }
    .item__img {
        width: 120px;
        height: 120px;
        margin: 30px auto 0;
    }
    .item__title {
        font-size: 20px;
        margin: 15px auto;
    }
    .item__desc {
        font-size: 14px;
        line-height: 26px;
        max-width: 200px;
        margin-bottom:20px;
    }
}

@media screen and (max-width: 768px) {
    .list_outer {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1.5rem;
        gap: 10px;
    }
    .list_item {
        max-width: 100%;
        aspect-ratio: auto;
    }
    .item__img {
        width: 80px;
        height: 80px;
        margin: 20px auto 0;
    }
    .item__title {
        font-size: 16px;
        margin: 10px auto;
    }
    .item__desc {
        font-size: 12px;
        line-height: 23px;
        max-width: 80%;
        font-weight: 500;
        letter-spacing: -0.03em;
        margin-bottom:20px;
    }
}


/* number */
.list_outer_number {
	display: grid;
    gap: 24px;
    padding: 0 8rem;
    grid-template-columns: repeat(6, 1fr);
    width:75%;
    max-width: 900px;
    margin: 0 auto 20px;
}
.list_outer_number img {
    width: 100%;
}
.w1   { grid-column: span 2; }
.w1_5 { grid-column: span 3; }
.w2   { grid-column: span 4; }
.w3   { grid-column: span 6; }

@media screen and (max-width: 768px) {
    .list_outer_number {
        padding: 0 1.5rem;
        grid-template-columns: repeat(4, 1fr);
    }
	.w1   { grid-column: span 2; }
	.w2   { grid-column: span 4; }
}


/* faq */
.faq_outer {
    padding: 0 8rem;
	display: flex;
	flex-direction: column;
	gap: 16px;
    width:75%;
    max-width: 1200px;
    margin: 0 auto;
}

.faq_item {
	border: 2px solid #297fca;
    padding: 20px 60px 0px 20px;
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    background: #fff;
    transition: all 0.3s ease;
    flex-direction: column;
}
.faq_item::before,
.faq_item::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 25px;
    margin: auto;
    background: #297fca;
    width: 20px;
    height: 3px;
    transition: transform 0.3s ease;
}

.faq_item::after {
    transform: rotate(90deg);
}
.faq_item.active::after {
    transform: rotate(0deg);
}


.faq_question::before, .faq_answer::before {
    content: "";
    display: inline-block;
    width: 30px;           /* テキストと並ぶ時の幅 */
    height: 50px;          /* テキスト行に収まる高さ */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top; /* ← top揃えにして下の透過を無視 */
    flex-shrink: 0;
    align-self: flex-start;    /* 縦方向でテキストと揃える */

}
.faq_question::before {
    background-image: url("./img/contents/page_faq_q.svg");
}
.faq_answer::before {
    background-image: url("./img/contents/page_faq_a.svg");
}


.faq_question p,
.faq_answer p {
    font-size: 16px;
    margin: 0;
    flex: 1;
}
.faq_question {
    display: flex;
    gap: 10px;
    cursor: pointer;
    width: 100%; 
    align-items: flex-start;
}
.faq_answer {
    display: none;
    gap: 12px;
    margin-bottom:20px;
}
.faq_answer p {
    line-height: 1.5;
    margin-top: -2px;
    margin-right: 10vw;
}


@media screen and (max-width: 768px) {
	.faq_outer {
	    padding: 0 1.5rem;
		gap: 12px;
        width:auto;
		margin-top:0px;
		margin-bottom:0px;
	}

	.faq_question p,
	.faq_answer p {
	    font-size: 16px;
        margin-bottom: 24px;
	}
    .faq_answer p {
    margin-right: 0;
}
}