.p-select-simulation .c-box-1200-25{
    max-width: 900px;
}

/* 質問 */
.p-select-question {
background: white;
border: 1px solid #d9dcea;
border-radius: 1em;
padding: 2.5em;
opacity: 0;
transform: translateY(1.875em);
transition: all 0.6s ease;
}

.p-select-question.fade-in {
opacity: 1;
transform: translateY(0);
}

.p-select-question__header {
text-align: center;
margin-bottom: 2em;
}

.p-select-question__header h2{
    margin-bottom: 0;
}

.p-select-question__header h2 + p{
margin-top: 0.5em;
}

@media only screen and (max-width: 768px) {
.p-select-question {
padding: 1.5em;
}

}

/* 選択肢 */
.p-select-option {
background: white;
border: 2px solid #d9dcea;
border-radius: 0.75em;
padding: 1.5em;
text-align: left;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
display: flex;
align-items: center;
gap: 1em;
}

.p-select-option:hover {
border-color: #314494;
box-shadow: 0 0.5em 1.5625em rgba(102, 126, 234, 0.15);
}

.p-select-option:active {
transform: translateY(0);
}

.p-select-option__text {
display: block;
font-size: 1em;
line-height: 1.25;
font-weight: bold;
}

@media only screen and (max-width: 768px) {
.p-select-option {
padding: 1.25em;
gap: 0.75em;
}

.p-select-option__text {
font-size: 1em;
}
}

/* Q1専用：カード風デザイン */
.p-select-option--card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1.5em 1em;
min-height: 8.75em;
text-align: center;
}

.p-select-option--card i,
.p-select-feature-card i{
font-size: 2.5em;
line-height: 1;
}

.p-select-option--card img,
.p-select-feature-card img{
    width: 3em;
}


.p-select-option--card .p-select-option__text {
font-size: 1.2em;
font-weight: bold;
}

@media only screen and (max-width: 768px) {
.p-select-option--card {
padding: 1.25em 0.75em;
min-height: 7.5em;
}

.p-select-option--card i {
font-size: 2em;
}

.p-select-option--card .p-select-option__text {
font-size: 1.1em;
}
}

/* 機能選択 */
.p-select-features__group {
margin-bottom: 2em;
}

.p-select-features__group:last-child {
margin-bottom: 0;
}

.p-select-features__grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(12em, 1fr));
gap: 1em;
}

/* 機能カード */
.p-select-feature-card {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1em 0.75em;
border: 2px solid #d9dcea;
border-radius: 0.75em;
background: white;
cursor: pointer;
transition: all 0.3s ease;
text-align: center;
gap: 0.5em;
}

.p-select-feature-card:hover {
border-color: #314494;
box-shadow: 0 0.5em 1.5625em rgba(102, 126, 234, 0.15);
}

.p-select-feature-card.selected {
border-color: #28a745;
background: linear-gradient(135deg, #f8fff9, #f0fff4);
box-shadow: 0 0.25em 1.25em rgba(40, 167, 69, 0.2);
}

.p-select-feature-card.selected::after {
content: '✓';
position: absolute;
top: 0.5em;
right: 0.5em;
width: 1.5em;
height: 1.5em;
background: #28a745;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1em;
font-weight: bold;
}

.p-select-feature-card__price {
font-size: 1.1em;
color: #314494;
font-weight: bold;
line-height: 1.2;
}

.p-select-feature-card__price small{
    font-size: 75%;
}

.p-plan-card__price small{
font-size: 65%;
}

@media only screen and (max-width: 768px) {
.p-select-features__grid {
grid-template-columns: repeat(auto-fit, minmax(10em, 1fr));
gap: 0.75em;
}

.p-select-feature-card {
padding: 1.25em 0.75em;
min-height: 7.5em;
}

.p-select-feature-card__price {
font-size: 0.95em;
}
}

/* アクションボタン */
.p-select-actions {
display: flex;
flex-direction: column;
align-items: stretch;
-webkit-align-items: center;
align-items: center;
gap: 1.5em;
margin-top: 2.5em;
justify-content: space-between;
}

.p-select-btn--back {
color: #333;
line-height: 1.25em;
border-bottom: 1px solid #333;
padding-bottom: 0.5em;
padding: 0 0.1em 0.5em;
display: inline-block;
height: 1.25em;
}

.p-select-btn--back:hover {
color: #314494;
border-bottom-color: #314494;
}

.c-btn-navy {
font-size: 1.2em;
gap: 0.5em;
padding-right: 2em;
padding-left: 1.5em;
font-weight: bold;
text-decoration: none;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
margin: 0;
}

@media only screen and (max-width: 768px) {
.c-btn-navy {
justify-content: center;
padding: 0.875em 1.25em;
}
}

/* 合計金額表示 */
.p-select-total {
background: linear-gradient(135deg, #314494 0%, #764ba2 100%);
color: white;
padding: 1.5em;
border-radius: 0.75em;
text-align: center;
margin-bottom: 2em;
}

.p-select-total__result {
font-size: 2.2em;
font-weight: bold;
margin-bottom: 0.5em;
}

.p-select-total__breakdown {
font-size: 1.2em;
opacity: 0.9;
}

@media only screen and (max-width: 768px) {
.p-select-total__result {
font-size: 1.8em;
}
}

/* 結果表示 */
.p-select-result {
background: white;
border-radius: 1em;
padding: 2.5em;
box-shadow: 0 0.25em 1.25em rgba(0, 0, 0, 0.1);
opacity: 0;
transform: translateY(1.875em);
transition: all 0.6s ease;
}

.p-select-result.fade-in {
opacity: 1;
transform: translateY(0);
}

@media only screen and (max-width: 768px) {
.p-select-result {
padding: 1.5em;
}
}

/* プランカード */
.p-plan-card {
text-align: center;
margin-bottom: 2em;
}

.p-plan-card__name {
font-size: 1.5em;
margin-bottom: 0;
position: relative;
z-index: 1;
}

.p-plan-card__title{
width: fit-content;
margin: 0 auto 1em;
border-radius: 1em;
background: #314494;
color: #fff;
padding: 0.25em 1em;
}

.p-plan-card__price {
font-size: 2.5em;
width: fit-content;
margin: 0 auto 0.25em;
line-height: 1.25em;
font-weight: bold;
position: relative;
z-index: 1;
}

.p-plan-card__description {
line-height: 1.6;
color: #333;
border: 1px solid #333;
width: fit-content;
margin: 0 auto;
padding: 0.25em 0.5em;
}

.p-plan-card__details {
    text-align: left;
    margin-top: 1.5em;
    margin-bottom: 1em;
}

.p-plan-card__details h4{
    color:#314494
}

.p-plan-card__details h4 + ul{
    margin-top: 0;
    font-weight: bold;
}


@media only screen and (max-width: 500px) {
    .p-plan-card__description span{
        display: block;
    }
}

.p-plan-card ul{
list-style: none;
padding-left: 0;
margin-top: 1.5em;
text-align: left;
}

.p-plan-card ul li {
position: relative;
padding-left: 1em;
font-size: 0.8em;
line-height: 1.25;
}

.p-plan-card ul li + li {
    margin-top: 0.5em;
}

.p-plan-card ul li::before {
content: "・";
position: absolute;
left: 0;
top: 0;
font-weight: bold;
}

.p-plan-card ul.annotation li::before {
content: "※";
}

@media only screen and (max-width: 768px) {
.p-plan-card__price {
font-size: 1.6em;
}

.p-plan-card__description {
font-size: 1em;
}
}

/* 追加機能選択ページでは合計金額を非表示 */
#optionForm .p-select-total {
display: none;
}

/* 結果画面での機能選択エリア（アコーディオン） */
.p-select-features-accordion {
margin-top: 2em;
border: 0.125em solid #d9dcea;
border-radius: 0.5em;
padding: 1em 1.5em;
}

.p-accordion-header {
width: 100%;
font-size: 1.15em;
background: transparent;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
font-weight: bold;
color: #314494;
transition: color 0.3s ease;
}

.p-accordion-header:hover {
color: #764ba2;
}

.p-accordion-icon {
position: relative;
width: 1.25em;
height: 1.25em;
transition: transform 0.3s ease;
}

.p-accordion-icon::before,
.p-accordion-icon::after {
content: '';
position: absolute;
background: #314494;
border-radius: 0.125em;
transition: all 0.3s ease;
}

.p-accordion-icon::before {
top: 50%;
left: 0;
width: 100%;
height: 3px;
transform: translateY(-50%);
}

.p-accordion-icon::after {
top: 0;
left: 50%;
width: 3px;
height: 100%;
transform: translateX(-50%);
}

.p-accordion-header.active .p-accordion-icon::after {
transform: translateX(-50%) rotate(90deg);
}

.p-accordion-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.p-accordion-content.active {
max-height: 100vh;
padding: 1em 0 0 0;
}

.p-select-features-result {
padding-top: 0;
font-size: 90%;
}

.p-select-features-result .c-hl03{
    font-size: 1.1em;
}


@media only screen and (max-width: 768px) {
.p-accordion-content.active {
max-height: 150vh;
}
}

/* 非表示用クラス */
.is-hidden {
display: none !important;
}

.p-checkbox-hidden {
display: none !important;
}

/* 現在のプランに該当しない要素を非表示（複数プランの指定にも対応） */
.p-plan-card--enterprise :is(.Plan_enterprise, .Plan_standard, .Plan_entry):not(.Plan_enterprise),
.p-plan-card--standard :is(.Plan_enterprise, .Plan_standard, .Plan_entry):not(.Plan_standard),
.p-plan-card--entry :is(.Plan_enterprise, .Plan_standard, .Plan_entry):not(.Plan_entry) {
display: none;
}

/* フェードトランジション */
.fade-in {
opacity: 1 !important;
transform: translateY(0) !important;
}

.fade-out {
opacity: 0;
transform: translateY(-1.875em);
transition: all 0.4s ease-out;
}
