/* ==========================================================================
   Plan Card Component
   依存: main.css の CSS変数・テーマクラス
   ========================================================================== */

/* --- カード --- */
.plan-card {
    width: 100%;
    max-width: 360px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
    background-color: #fff;
}

.plan-card--accordion {
    height: fit-content;
}

/* --- ヘッダー帯 --- */
.plan-card__header {
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    padding: 0.75rem 0 0.625rem;
}

/* --- ボディ --- */
.plan-card__body {
    padding: 1.5rem;
}

/* --- タイトル --- */
.plan-card__title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin: 0 auto 1rem;
}

.plan-card__title-no {
    font-size: 14px;
}

/* --- 画像 --- */
.plan-card__image img {
    width: 100%;
    height: auto;
}

/* --- 料金 --- */
.plan-card__pricing {
    margin-top: 0.75rem;
}

.plan-card__badge {
    font-size: 10px;
    color: #fff;
    height: 22px;
    background-color: var(--color-text-accent);
    border-radius: 8px;
    margin-bottom: 0.9375rem;
    text-align: center;
    position: relative;
}

.plan-card__badge::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 65%;
    border-style: solid;
    border-width: 7px 0 0 7px;
    border-color: var(--color-text-accent) transparent transparent;
    translate: -50% 100%;
    text-shadow: 0px 0px 1px var(--color-text-accent);
}

.plan-card__badge-num {
    font-size: 1.8em;
    margin-left: -3px;
    text-shadow: 0 0 1px #a40035;
    font-weight: bold;
    font-style: italic;
}

.plan-card__badge-em {
    font-size: 1.2em;
    font-weight: bold;
}

.plan-card__prices {
    display: flex;
    align-items: flex-end;
    gap: 0.2rem;
}

.plan-card__price-label {
    font-size: 8px;
    line-height: 1;
    padding: 1px;
    font-weight: bold;
}

.plan-card__price-label--avg {
    align-self: center;
    color: var(--color-text-accent);
    border: .9px solid var(--color-text-accent);
    padding: 0.2rem;
}

.plan-card__price--ref {
    font-size: 14px;
    line-height: 1;
    position: relative;
}

.plan-card__price--ref.plan-card__price--million {
    font-size: 12px;
}

.plan-card__price--ref span {
    font-size: 0.8em;
}

.plan-card__price--ref::after {
    position: absolute;
    content: "";
    display: block;
    transform: rotate(-8deg);
    background-color: var(--color-text-accent);
    width: 100%;
    height: 1px;
    top: 38%;
    left: 0;
}

.plan-card__price-arrow {
    flex-grow: 1;
    font-size: 6px;
    line-height: 14px;
}

.plan-card__price--avg {
    color: var(--color-text-accent);
    font-weight: bold;
    font-stretch: condensed;
    font-size: 26px;
    line-height: 1;
}

.plan-card__price--avg.plan-card__price--million {
    font-size: 23px;
}

.plan-card__price--avg span {
    font-size: 0.5em;
}

/* --- こんな方に... --- */
.plan-card__points {
    margin: 0 0 1rem;
}


.plan-card__points-head {
    width: 100%;
    padding: 0.5rem 0;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.plan-card__points-list {
    padding: 0 0.5rem;
}

.plan-card__point {
    width: 100%;
    display: flex;
    padding: 1rem 0;
    min-height: 4rem;
    box-sizing: border-box;
}

.plan-card__point-check {
    width: 10%;
}

.plan-card__point-check img {
    width: 50%;
    margin: 10% auto;
}

.plan-card__point-text {
    width: 90%;
    line-height: 1rem;
}

/* --- トグル高さ揃え --- */
.plan-card__toggle-wrap {
    height: 32px;
    display: grid;
    place-content: center;
}

/* --- アコーディオン --- */
.plan-card__toggle-summary {
    list-style: none;
    cursor: pointer;
}

.plan-card__toggle-summary::-webkit-details-marker {
    display: none;
}

.plan-card__toggle-icon {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.plan-card__toggle[open] .plan-card__toggle-icon {
    transform: rotate(-135deg);
}

/* --- ボタン --- */
.plan-card__btn {
    height: 48px;
    width: 100%;
    max-width: 216px;
    border-radius: 8px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
    margin: 0 auto;
    position: relative;
}

.plan-card__btn-link {
    height: 100%;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-card__btn-link::after {
    content: '>';
    transform: scaleX(0.5) translateY(-50%);
    font-size: 18px;
    color: #fff;
    position: absolute;
    right: 10px;
    top: 50%;
}
