/* about_membership.css */

/* ===== Layout ===== */
.membershipWrap{
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 16px;
}

.membershipGrid{
    display: grid;
	/* デバッグ 後で復元 */
    /* grid-template-columns: repeat(4, 1fr); */
	grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    align-items: stretch;
}

@media (max-width: 1100px){
    .membershipGrid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px){
    .membershipGrid{
        grid-template-columns: 1fr;
    }
}

/* ===== Card ===== */
.planCard{
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(0, 0, 0, 0.10);
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

/* ===== Header ===== */
.planHead{
    color: #ffffff;
    text-align: center;
    padding: 18px 18px 12px 18px;
    position: relative;
}

.planLabel{
    font-size: 44px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.planSub{
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.20);
    font-weight: 800;
    font-size: 14px;
}

/* ===== Body ===== */
.planBody{
    padding: 14px 18px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.planSection{
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 12px;
}

.planSection:first-child{
    border-top: none;
    padding-top: 0;
}

.planSectionTitle{
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.55);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.planList{
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.planItem{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.35;
    color: rgba(0, 0, 0, 0.80);
}

.planItem::before{
    content: "✓";
    font-weight: 900;
    margin-top: 1px;
    opacity: 0.95;
}

.planItem.isSub{
    padding-left: 18px;
    opacity: 0.78;
    font-size: 13px;
}

.planItem.isSub::before{
    content: "–";
    font-weight: 900;
    margin-top: 1px;
}

/* ===== Footer ===== */
.planFoot{
    padding: 14px 18px 18px 18px;
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	box-sizing: border-box;
}


.planFee{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 900;
    margin-bottom: 12px;
    text-align: center;
}


.feeMonth{
    font-size: 26px;
	line-height: 1.1;
    color: rgba(0, 0, 0, 0.82);
}

.feeYear{
    font-size: 18px;
	line-height: 1.1;
    opacity: 0.78;
}

@media (max-width: 900px){

    .feeMonth{
        font-size: 24px;
    }

    .feeYear{
        font-size: 16px;
        opacity: 0.75;
    }
}

@media (max-width: 620px){
    .planFee{
        gap: 2px;
    }

    .feeMonth{
        font-size: 22px;
    }

    .feeYear{
        font-size: 15px;
    }
}

/* ===== Button ===== */
.planButton{
    display: block;
    width: 100%;
    text-align: center;
    border: none;
    border-radius: 12px;
    padding: 12px 12px;
    font-weight: 900;
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.18);
    user-select: none;
    transition: transform 0.08s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.planButton:hover{
    filter: brightness(1.03);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.22);
}

.planButton:active{
    transform: translateY(1px);
}

/* ===== Themes ===== */
/* Free */
.theme-free .planHead{
    background: linear-gradient(135deg, #8ad3ff, #1e7fd6);
}
.theme-free .planButton{
    background: linear-gradient(180deg, #2a88df, #0a5db4);
}

/* Basic */
.theme-basic .planHead{
    background: linear-gradient(135deg, #77d35a, #1f8a19);
}
.theme-basic .planButton{
    background: linear-gradient(180deg, #2b9c21, #167212);
}

/* Plus */
.theme-plus .planHead{
    background: linear-gradient(135deg, #4aa0ff, #0a55c9);
}
.theme-plus .planButton{
    background: linear-gradient(180deg, #0f63d6, #083e9a);
}

/* Premium */
.theme-premium .planHead{
    background: linear-gradient(135deg, #ffd26a, #c88c0b);
}
.theme-premium .planButton{
    background: linear-gradient(180deg, #c7890c, #946507);
}

/* ==========================
   membership apply page
   ========================== */

.membershipApply{
    max-width: 720px;
    margin: 40px auto 3rem;
    padding: 2.6rem 2rem 2rem;
    background-color: #f9fafe;
    border-left: 4px solid var(--main-color-3);
    border-radius: 14px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

/* タイトル：accountSection の「浮いた見出し」風に寄せる */
.membershipApply h2{
    margin: 0 0 1.4rem 0;
    font-size: 2.0rem;
    font-weight: 800;
    color: #34495e;
    background-color: #ffffff;
    padding: 0.55rem 1.2rem;
    border-radius: 10px;
    border: 1px solid #e1e5ef;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* pending の本文 */
.membershipApply p{
    margin: 0 0 1.2rem 0;
    font-size: 1.4rem;
    color: #555;
    line-height: 1.7;
}

/* ---------- Error ---------- */
.membershipApplyError{
    margin: 0 0 1.4rem 0;
    padding: 1.1rem 1.2rem;
    background-color: #fff5f5;
    border-left: 4px solid #e74c3c;
    border-radius: 10px;
}

.membershipApplyError p{
    margin: 0 0 0.4rem 0;
    font-size: 1.4rem;
    color: #c0392b;
}

.membershipApplyError p:last-child{
    margin-bottom: 0;
}

/* ---------- Terms ---------- */
.membershipApplySection{
    margin: 1.2rem 0 1.2rem 0;
    padding: 1.2rem 1.2rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
}

.membershipApplySection p{
    margin: 0 0 0.8rem 0;
    font-weight: 700;
    color: #34495e;
}

.membershipApplySection ul{
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.membershipApplySection li{
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 1.4rem;
    color: rgba(0, 0, 0, 0.78);
    line-height: 1.5;
}

.membershipApplySection li::before{
    content: "✓";
    font-weight: 900;
    opacity: 0.9;
    margin-top: 1px;
}

/* ---------- Agree ---------- */
.membershipApplyAgree{
    margin: 1.2rem 0 1.4rem 0;
    padding: 1.0rem 1.1rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
}

.membershipApplyAgree label{
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 1.4rem;
    color: #34495e;
}

.membershipApplyAgree input[type="checkbox"]{
    margin-top: 0.25rem;
}

/* ---------- Fields ---------- */
.membershipApplyField{
    margin: 0 0 1.4rem 0;
}

.membershipApplyField label{
    display: block;
    margin: 0 0 0.45rem 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #34495e;
}

.membershipApplyField select,
.membershipApplyField textarea{
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1.0rem;
    border-radius: 10px;
    border: 1px solid #d0d7e2;
    background-color: #ffffff;
    font-size: 1.4rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.membershipApplyField textarea{
    min-height: 140px;
    resize: vertical;
}

.membershipApplyField select:focus,
.membershipApplyField textarea:focus{
    outline: none;
    border-color: var(--main-color-3);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.18);
}

/* ---------- Submit button spacing ---------- */
.submitButton{
    display: block;
    width: 100%;
    text-align: center;
    border: none;
    border-radius: 12px;
    padding: 12px 12px;
    font-weight: 900;
	background-color: var(--main-color-3);
    color: #000000;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.18);
    user-select: none;
    transition: transform 0.08s ease, filter 0.12s ease, box-shadow 0.12s ease;
	margin-top: 0.4rem;
}

.submitButton:hover{
    filter: brightness(1.03);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.22);
}

.submitButton:active{
    transform: translateY(1px);
}

/* ---------- Pending status link ---------- */
a.submitButton{
    max-width: 360px;
    margin: 0.8rem auto 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 620px){
    .membershipApply{
        margin: 28px 16px 2.5rem;
        padding: 2.2rem 1.4rem 1.6rem;
    }

    .membershipApply h2{
        font-size: 1.8rem;
        padding: 0.5rem 1.1rem;
        border-radius: 9px;
    }
}

/* ==========================
   membership status page
   ========================== */

.membershipStatus{
    max-width: 720px;
    margin: 40px auto 3rem;
    padding: 2.6rem 2rem 2rem;
    background-color: #f9fafe;
    border-left: 4px solid var(--main-color-3);
    border-radius: 14px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

/* タイトル：apply と統一感 */
.membershipStatus h2{
    margin: 0 0 1.4rem 0;
    font-size: 2.0rem;
    font-weight: 800;
    color: #34495e;
    background-color: #ffffff;
    padding: 0.55rem 1.2rem;
    border-radius: 10px;
    border: 1px solid #e1e5ef;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ---------- Message / Error ---------- */
.membershipStatusError{
    margin: 0 0 1.4rem 0;
    padding: 1.1rem 1.2rem;
    background-color: #fff5f5;
    border-left: 4px solid #e74c3c;
    border-radius: 10px;
}

.membershipStatusError p{
    margin: 0 0 0.4rem 0;
    font-size: 1.4rem;
    color: #c0392b;
}

.membershipStatusError p:last-child{
    margin-bottom: 0;
}

.membershipStatusMessage{
    margin: 0 0 1.4rem 0;
    padding: 1.1rem 1.2rem;
    background-color: rgba(46, 204, 113, 0.10);
    border-left: 4px solid rgba(39, 174, 96, 0.95);
    border-radius: 10px;
}

.membershipStatusMessage p{
    margin: 0;
    font-size: 1.4rem;
    color: rgba(20, 90, 50, 0.95);
    font-weight: 700;
}

/* ---------- Cards ---------- */
.membershipStatusCard{
    margin: 1.2rem 0 1.2rem 0;
    padding: 1.2rem 1.2rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
}

.membershipStatusCard h3{
    margin: 0 0 0.8rem 0;
    font-size: 1.4rem;
    font-weight: 900;
    color: #34495e;
}

.membershipStatusPlan{
    margin: 0 0 0.8rem 0;
    font-size: 1.8rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.82);
}

/* ---------- Rows ---------- */
.membershipStatusRow{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 0.7rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.membershipStatusRow:first-of-type{
    border-top: none;
}

.membershipStatusLabel{
    font-size: 1.3rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.55);
    white-space: nowrap;
}

.membershipStatusValue{
    font-size: 1.4rem;
    color: rgba(0, 0, 0, 0.78);
    line-height: 1.5;
    text-align: right;
    word-break: break-word;
}

/* ---------- Badge ---------- */
.membershipStatusBadge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 900;
    font-size: 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(0, 0, 0, 0.03);
}

/* 状態別（必要なら後で色調整可能） */
.membershipStatusBadge--pending{
    background: rgba(241, 196, 15, 0.16);
    border-color: rgba(241, 196, 15, 0.35);
}

.membershipStatusBadge--approved{
    background: rgba(46, 204, 113, 0.16);
    border-color: rgba(46, 204, 113, 0.35);
}

.membershipStatusBadge--rejected{
    background: rgba(231, 76, 60, 0.14);
    border-color: rgba(231, 76, 60, 0.30);
}

.membershipStatusBadge--cancelled{
    background: rgba(149, 165, 166, 0.18);
    border-color: rgba(149, 165, 166, 0.40);
}

/* ---------- Cancel form ---------- */
.membershipStatusCancelForm{
    margin-top: 1.1rem;
}

/* submitButton の danger 変種（既存submitButtonを拡張） */
.submitButton--danger{
    background-color: #e74c3c;
    color: #ffffff;
}

.submitButton--danger:hover{
    filter: brightness(1.02);
}

/* ---------- Responsive ---------- */
@media (max-width: 620px){

    .membershipStatus{
        margin: 28px 16px 2.5rem;
        padding: 2.2rem 1.4rem 1.6rem;
    }

    .membershipStatus h2{
        font-size: 1.8rem;
        padding: 0.5rem 1.1rem;
        border-radius: 9px;
    }

    .membershipStatusPlan{
        font-size: 1.6rem;
    }

    .membershipStatusRow{
        align-items: flex-start;
    }

    .membershipStatusLabel{
        font-size: 1.2rem;
    }

    .membershipStatusValue{
        font-size: 1.3rem;
    }
}
