/* Homepage pricing: native text, plan cards and the existing consultation rail. */
.portal-home-pricing {
    container-type: inline-size;
    background: #fff;
    color: #080b10;
    scroll-margin-top: 88px;
}

.portal-home-pricing-inner {
    padding: clamp(36px, 4cqw, 64px) clamp(22px, 4.6875cqw, 72px);
}

.portal-home-pricing-kicker {
    margin: 0 0 8px;
    color: #657084;
    font-size: clamp(14px, 1.7cqw, 22px);
    font-weight: 800;
    letter-spacing: .03em;
}

.portal-home-pricing-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3.8cqw, 54px);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: 1.3;
}

.portal-home-pricing-heading mark {
    padding: 0 .05em;
    color: inherit;
    background: linear-gradient(transparent 76%, #ffdf2d 76%, #ffdf2d 96%, transparent 96%);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.portal-home-pricing-lead {
    margin: 18px 0 0;
    color: #354259;
    font-size: clamp(16px, 1.9cqw, 27px);
    line-height: 1.65;
}

.portal-home-pricing-common {
    display: flex;
    align-items: center;
    gap: 2.4cqw;
    margin: 24px 0 0;
    padding: 24px 2.4cqw;
    border-radius: 14px;
    background: #f5f7f9;
}

.portal-home-pricing-common h3 {
    flex: 0 0 auto;
    margin: 0;
    padding-right: 2.4cqw;
    border-right: 1px solid #d9e0e9;
    font-size: clamp(16px, 2cqw, 28px);
    font-weight: 800;
    line-height: 1.7;
}

.portal-home-pricing-common ul {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.portal-home-pricing-common li {
    display: flex;
    align-items: center;
    gap: 1.5cqw;
    font-size: clamp(13px, 1.55cqw, 22px);
    font-weight: 600;
    line-height: 1.5;
}

.portal-home-pricing-common strong { font-size: 1.3em; }

.portal-home-pricing-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: clamp(40px, 5.3cqw, 72px);
    height: clamp(40px, 5.3cqw, 72px);
    border-radius: 50%;
    background: #fff7d6;
    color: #0b1118;
}

.portal-home-pricing-icon.is-yen {
    font-size: clamp(30px, 3.3cqw, 48px);
    font-weight: 500;
}

.portal-home-pricing-icon svg {
    width: 60%;
    height: 60%;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portal-home-pricing-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: clamp(34px, 3.8cqw, 52px);
    padding-top: 2px;
}

.portal-home-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px 2.7cqw 24px;
    border: 2px solid #f4f6f8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 18px rgb(29 52 83 / 6%);
}

.portal-home-plan.is-standard {
    border-color: #ffd91b;
    background: linear-gradient(135deg, #fffefa, #fffdf2);
    box-shadow: none;
}

.portal-home-plan-recommend {
    position: absolute;
    top: -18px;
    left: 2.7cqw;
    margin: 0;
    padding: 5px 20px;
    border-radius: 40px;
    background: #ffdf2d;
    font-size: clamp(14px, 1.45cqw, 19px);
    font-weight: 800;
    line-height: 1.5;
}

.portal-home-plan-heading {
    flex: 1;
    padding-bottom: 16px;
    border-bottom: 1px solid #dce1e7;
}

.portal-home-plan-heading h3 {
    margin: 0;
    font-size: clamp(27px, 2.8cqw, 40px);
    font-weight: 850;
    letter-spacing: -.025em;
    line-height: 1.25;
}

.portal-home-plan-heading p {
    margin: 3px 0 0;
    color: #354259;
    font-size: clamp(15px, 1.65cqw, 23px);
    line-height: 1.55;
}

.portal-home-plan-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 5px;
    margin: 6px 0 10px;
    line-height: 1.3;
}

.portal-home-plan-price strong {
    font-size: clamp(40px, 5.2cqw, 76px);
    font-weight: 850;
    letter-spacing: -.04em;
}

.portal-home-plan-price > span {
    font-size: clamp(17px, 1.9cqw, 27px);
    font-weight: 800;
    white-space: nowrap;
}

.portal-home-plan-quota {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    padding: 10px 14px;
    border-radius: 11px;
    background: #f5f7f9;
    font-size: clamp(16px, 1.8cqw, 25px);
    line-height: 1.4;
}

.portal-home-plan-quota strong {
    font-size: 1.25em;
    font-weight: 850;
    white-space: nowrap;
}

.portal-home-plan-quota .portal-home-pricing-icon {
    width: clamp(34px, 3.7cqw, 50px);
    height: clamp(34px, 3.7cqw, 50px);
    background: #ffeb76;
}

.portal-home-plan-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 60px;
    padding: 12px;
    border: 1px solid #b9c6da;
    border-radius: 8px;
    color: #080b10;
    background: #fff;
    font-size: clamp(18px, 1.95cqw, 27px);
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
}

.is-standard .portal-home-plan-cta {
    border-color: #ffdd20;
    background: linear-gradient(110deg, #ffe443, #ffdc1d);
}

.portal-home-plan-cta:hover { filter: brightness(.97); }
.portal-home-plan-cta:focus-visible { outline: 3px solid #203044; outline-offset: 4px; }

.portal-home-plan-signup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 10px;
    padding: 6px 0;
    color: #182333;
    font-size: clamp(14px, 1.45cqw, 20px);
    font-weight: 750;
    line-height: 1.6;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.portal-home-plan-signup:hover { color: #705900; }
.portal-home-plan-signup:focus-visible { outline: 3px solid #a58200; outline-offset: 3px; border-radius: 4px; }

.portal-home-pricing-notes {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    color: #717e93;
    font-size: clamp(12px, 1.1cqw, 16px);
    line-height: 1.65;
}

.portal-home-pricing-notes li { padding-left: 1.3em; text-indent: -1.3em; }
.portal-home-pricing-notes li::before { content: "※ "; }

@media (max-width: 900px) {
    .portal-home-pricing-common { align-items: flex-start; gap: 14px; padding: 20px; }
    .portal-home-pricing-common h3 { padding-right: 14px; }
    .portal-home-pricing-common ul { flex-wrap: wrap; gap: 16px; }
    .portal-home-pricing-common li { flex: 1 1 40%; }
    .portal-home-pricing-common li:last-child { flex-basis: 100%; }
    .portal-home-pricing-plans { gap: 20px; }
    .portal-home-plan-quota { gap: 8px; padding: 10px; }
}

@media (max-width: 700px) {
    .portal-home-pricing-heading h2 { font-size: clamp(26px, 6.5cqw, 36px); }
    .portal-home-pricing-lead br { display: none; }
    .portal-home-pricing-common { display: block; margin: 24px 0 0; }
    .portal-home-pricing-common h3 { margin-bottom: 16px; padding: 0 0 12px; border-right: 0; border-bottom: 1px solid #d9e0e9; font-size: 19px; }
    .portal-home-pricing-common ul { display: grid; gap: 14px; }
    .portal-home-pricing-common li { gap: 14px; font-size: 16px; }
    .portal-home-pricing-plans { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .portal-home-plan { padding: 28px 20px 22px; }
    .portal-home-plan-recommend { left: 20px; }
    .portal-home-plan-heading h3 { font-size: 30px; }
    .portal-home-plan-heading p { font-size: 16px; }
    .portal-home-plan-price strong { font-size: clamp(44px, 12cqw, 62px); }
    .portal-home-plan-price > span { font-size: 20px; }
    .portal-home-plan-quota { gap: 12px; padding: 12px 10px; font-size: 16px; }
    .portal-home-plan-cta { font-size: 20px; }
}

@media (max-width: 360px) {
    .portal-home-plan-price strong { font-size: 38px; }
    .portal-home-plan-price > span { font-size: 18px; }
    .portal-home-plan-quota { gap: 8px; font-size: 14px; }
}
