
@charset "utf-8";
/* CSS Document */


/* =========================================================
   共通
========================================================= */

h1 {
    font-weight: bold !important;
}

.popy-page {
    --blue: #009fe8;
    --blue-dark: #0068b7;
    --navy: #263746;
    --text: #333;
    --muted: #666;

    max-width: 1030px;
    margin: 0 auto;
    padding: 28px 20px 60px;

    color: var(--text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Helvetica Neue",
        "Yu Gothic",
        YuGothic,
        "Hiragino Kaku Gothic ProN",
        Meiryo,
        sans-serif;

    line-height: 1.75;
    box-sizing: border-box;
    background: #fff;
}

.popy-page * {
    box-sizing: border-box;
}

.popy-page a {
    color: var(--blue-dark);
}


/* =========================================================
   ページタイトル
========================================================= */

.popy-page .page-title {
    text-align: center;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--navy);
    margin: 20px 0 8px;
}

.popy-page .title-mark {
    width: 40px;
    height: 9px;
    margin: 20px auto 28px;
    border-top: 2px solid var(--blue);
    border-bottom: 2px solid #ed5a5a;
}

.popy-page .lead {
    margin: 1rem auto;
    max-width: 900px;
}



/* =========================================================
   ページ内リンク
========================================================= */

.popy-page .anchor-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 44px;
}

.popy-page .anchor-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    min-width: 260px;
    padding: 17px 20px 17px 28px;

    background: #333;
    color: #fff;

    border-radius: 40px;
    border: none;

    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;

    transition: background .2s ease;
}


/* 右端の白い丸と下向き矢印 */

.popy-page .anchor-nav a::after {
    content: "›";

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
    width: 19px;
    height: 19px;

    background: #fff;
    color: #333;

    border-radius: 50%;

    font-size: 19px;
    font-weight: 700;
    line-height: 1;

    transform: rotate(90deg);
}

/* ホバー */

.popy-page .anchor-nav a:hover {
    background: #555;
}


/* =========================================================
   スマートフォン
========================================================= */

@media (max-width: 600px) {

    .popy-page .anchor-nav {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 32px;
    }

    .popy-page .anchor-nav a {
        width: 100%;
        max-width: 340px;
        min-width: 0;

        padding: 15px 20px 15px 24px;
        font-size: .9rem;
    }

}



/* =========================================================
   会費一覧
========================================================= */

.popy-page .price-note {
    font-size: .9rem;
    margin: 0 0 14px;
}


/* PC・タブレット用 */

.popy-page .price-table-wrap {
    overflow-x: auto;
    margin: 0 0 18px;
}

.popy-page .price-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
    font-size: .94rem;
}

.popy-page .price-table th {
    background: #f2faff;
    color: var(--navy);
    font-weight: 700;
    text-align: center;
    padding: 12px 10px;
    border-top: 1px solid #c9e8f8;
    border-bottom: 2px solid var(--blue);
}

.popy-page .price-table td {
    padding: 10px 13px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

.popy-page .price-table td:first-child {
    font-weight: 600;
}

.popy-page .price-table td:not(:first-child) {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.popy-page .price-table tr.group-start td {
    border-top: 2px solid #b9dff2;
}


/* スマホ用一覧：初期状態では非表示 */

.popy-page .price-table-mobile {
    display: none;
}


/* スマホ用3列テーブル */

.popy-page .price-table-compact {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: .9rem;
}

.popy-page .price-table-compact th,
.popy-page .price-table-compact td {
    padding: 10px 9px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

/* 教材名 */

.popy-page .price-table-compact td:first-child {
    width: 44%;
    font-weight: 600;
    text-align: left;
}

/* 価格欄 */

.popy-page .price-table-compact td:nth-child(2),
.popy-page .price-table-compact td:nth-child(3) {
    width: 28%;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* 教材グループの見出し */

.popy-page .price-table-compact .compact-heading th {
    background: #f2faff;
    color: var(--navy);
    font-weight: 700;
    text-align: center;
    border-top: 1px solid #c9e8f8;
    border-bottom: 2px solid var(--blue);
    padding: 10px 5px;
}

.popy-page .price-table-compact .compact-heading th:first-child {
    width: 44%;
    font-size: 1rem;
}

.popy-page .price-table-compact .compact-heading th:nth-child(2),
.popy-page .price-table-compact .compact-heading th:nth-child(3) {
    width: 28%;
    font-size: .82rem;
}

/* Kids English年間セット */

.popy-page .price-table-compact .compact-set td {
    background: #f7fbfd;
    font-weight: 700;
}


/* 価格表の注釈 */

.popy-page .price-footnote {
    font-size: .82rem;
    color: var(--muted);
    margin: 12px 0 0;
}


/* =========================================================
   金額シミュレーション
========================================================= */

#popy-sim {
    margin: 0 auto;
}

#popy-sim * {
    box-sizing: border-box;
}

#popy-sim h2 {
    font-size: 1.4rem;
    text-align: center;
    color: var(--navy);
    margin: 2rem 0 0;
}

#popy-sim .intro {
    text-align: center;
    color: var(--muted);
    font-size: .92rem;
    margin: 0 0 25px;
}

#popy-sim .field {
    margin: 0 0 18px;
}

#popy-sim label {
    display: block;
    font-weight: 700;
    margin: 0 0 7px;
    color: var(--navy);
}

#popy-sim select {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 10px 40px 10px 12px;
    border: 1px solid #b9cbd6;
    border-radius: 3px;
    background: #fff;
    color: #333;
    font-size: 16px;
}

#popy-sim select:focus {
    outline: 2px solid #80cfff;
    outline-offset: 1px;
}

#popy-sim .date {
    margin: 24px 0 12px;
    font-weight: 700;
    color: var(--navy);
}


/* シミュレーション結果 */

#popy-sim .result {
    padding: 22px 24px;
    background: #f4fbff;
    border: 1px solid #c9e8f8;
    border-radius: 2px;
}

#popy-sim .result-label {
    font-size: .92rem;
    color: #555;
    margin: 0 0 3px;
    text-align: center;
}

#popy-sim .amount {
    font-size: clamp(2rem, 7vw, 2.7rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--blue-dark);
    text-align: center;
    margin: 0 0 18px;
    font-variant-numeric: tabular-nums;
}

#popy-sim .subrow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-top: 1px solid #cfe2ed;
}

#popy-sim .subrow strong {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

#popy-sim .saving {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0 5px;
    text-align: center;
    margin: 16px 0 0;
    color: #e45656;
    font-weight: 800;
}

#popy-sim .saving-label {
    width: 100%;
    font-size: .9rem;
    margin-bottom: 4px;
}

#popy-sim .saving-amount {
    font-size: clamp(2rem, 7vw, 2.7rem);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

#popy-sim .saving-unit {
    font-size: 1.2rem;
}

#popy-sim .note {
    font-size: .8rem;
    color: #666;
    margin: 14px 0 0;
}

#popy-sim .message {
    padding: 14px;
    background: #f5f8fa;
    color: #555;
    font-size: .9rem;
    margin: 0;
}


/* =========================================================
   スマートフォン対応
========================================================= */

@media (max-width: 600px) {

    /* 全体 */

    .popy-page {
        padding: 18px 14px 40px;
    }

    .popy-page .page-title {
        margin-top: 12px;
    }

    .popy-page .lead {
        font-size: .92rem;
    }


    /* ページ内リンク */

    .popy-page .anchor-nav {
        gap: 8px;
        margin-bottom: 32px;
    }

    .popy-page .anchor-nav a {
        padding: 8px 15px;
        font-size: .85rem;
    }

    /* 価格一覧：PC用を非表示 */

    .popy-page .price-table-desktop {
        display: none;
    }


    /* 価格一覧：スマホ用を表示 */

    .popy-page .price-table-mobile {
        display: block;
        margin: 0 0 18px;
    }

    .popy-page .price-table-compact {
        font-size: clamp(10px, 3.1vw, 12px);
    }

    .popy-page .price-table-compact th,
    .popy-page .price-table-compact td {
        padding: 8px 4px;
    }

    .popy-page .price-table-compact td:first-child {
        overflow-wrap: anywhere;
        line-height: 1.45;
    }

    .popy-page .price-table-compact td:nth-child(2),
    .popy-page .price-table-compact td:nth-child(3) {
        letter-spacing: -.04em;
    }

    .popy-page .price-table-compact .compact-heading th {
        padding: 9px 3px;
    }

    .popy-page .price-table-compact .compact-heading th:first-child {
        font-size: .88rem;
    }

    .popy-page .price-table-compact .compact-heading th:nth-child(2),
    .popy-page .price-table-compact .compact-heading th:nth-child(3) {
        font-size: clamp(9px, 2.7vw, 11px);
    }


    /* 金額シミュレーション */

    #popy-sim h2 {
        font-size: 1.2rem;
    }

    #popy-sim .result {
        padding: 18px 14px;
    }

    #popy-sim .subrow {
        font-size: .9rem;
    }

}
