/* ========================================
   01. サイト全体の基本設定
   ======================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #283340;
    background: #f4f8fb;
    font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    line-height: 1.85;
}

a {
    color: inherit;
}

.site {
    max-width: 560px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 2px 22px #233f5417;
}

/* 広告表記 */
.pr {
    padding: 8px 17px;
    text-align: right;
    font-size: 11px;
    color: #536778;
}

/* ========================================
   02. ファーストビュー
   ======================================== */
.hero {
    padding: 0;
    margin: 0;
    background: transparent;
}

.hero__top {
    font-size: clamp(23px, 6vw, 34px);
    line-height: 1.4;
    font-weight: 900;
    color: #006fb9;
    margin: 5px 0 16px;
}

.hero__visual {
    background: linear-gradient(145deg, #c4e9fc, #e9f8ff);
    border: 2px dashed #8ac6e8;
    border-radius: 12px;
    text-align: center;
    padding: 65px 14px;
    color: #316b92;
    font-size: 14px;
}

.hero__bottom {
    font-size: clamp(20px, 5.3vw, 28px);
    line-height: 1.55;
    font-weight: 800;
    text-align: center;
    color: #006fb9;
    margin: 15px 0 8px;
}

.hero__deal {
    text-align: center;
    font-weight: 900;
    color: #c50000;
    font-size: 19px;
    margin: 8px 0;
}

.hero__date {
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    color: #9d2a2a;
    margin: 0;
}

/* ========================================
   03. 記事本文・共通パーツ
   ======================================== */
.block {
    padding: 24px 18px 10px;
}

.block h2 {
    font-size: 21px;
    line-height: 1.55;
    border-left: 6px solid #008ed8;
    padding-left: 12px;
    color: #164c76;
    margin: 0 0 18px;
}

.block p {
    font-size: 18px;
    margin: 12px 0 18px;
    font-weight: 500;
}

/* 本文の青文字強調 */
.strong {
    color: #006fb9;
    font-weight: 800;
}

/* 本文の黄色マーカー */
.highlight {
    background: linear-gradient(transparent 68%, #fff2a4 68%);
    font-weight: 700;
}

/* 記事内の一般画像 */
.media {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 16px 0;
}

/* 旧形式のキャンペーン枠（HTMLで使用している場合に備えて維持） */
.campaign {
    padding: 15px;
    background: #eaf6fd;
    border: 1px solid #bfe5fa;
    border-radius: 12px;
}

.campaign h3 {
    color: #006fb9;
    margin: 0 0 8px;
    font-size: 18px;
}

.campaign .line {
    background: #fff;
    border-radius: 9px;
    padding: 11px 13px;
    margin: 10px 0;
    font-weight: 700;
}

.campaign small {
    font-size: 12px;
    color: #546371;
    display: block;
    line-height: 1.7;
}

/* ========================================
   04. キャンペーン画像・見出し
   ======================================== */
.campaign_title {
    margin: 24px 0 10px;
    padding: 0;
    border: none;
    background: none;
    color: #006fb9;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.5;
}

.challenge_img_campaign {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
}

/* ========================================
   05. 学年別受講費一覧表
   ======================================== */
.zemi_price_table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #bfe5fa;
    font-size: 15px;
}

/* 学年・金額ともに中央揃え。背景色は全行白で統一 */
.zemi_price_table th,
.zemi_price_table td {
    padding: 14px 10px;
    border: 1px solid #bfe5fa;
    background-color: #fff;
    text-align: center;
}

.zemi_price_table th {
    width: 48%;
    color: #333;
}

.zemi_price_table td {
    color: #006fb9;
    font-size: 19px;
    font-weight: bold;
    white-space: nowrap;
}

/* .block p の大きな文字設定より優先させる */
.zemi_price .zemi_price_note {
    margin: 10px 0 0;
    font-size: 12px !important;
    line-height: 1.6;
    color: #666;
}

/* ========================================
   06. CTAの配置・光のアニメーション
   ======================================== */
/* CTAリンクの外側の余白 */
.cta {
    display: block;
    margin: 24px 18px 28px;
    text-decoration: none;
}

.cta img {
    display: block;
    width: 100%;
    height: auto;
}

/* CTA画像を包む要素。はみ出す光はここで切り取る */
.zemi_cta_shine {
    position: relative;
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    overflow: hidden;
}

.zemi_cta_shine img {
    display: block;
    width: 100%;
    height: auto;
}

/*
 * CTA画像全体を横切る半透明の光。
 * 上段の「最大3万円お得・締切」から下段の申込ボタンまで対象。
 * 画像本体は動かさず、疑似要素（::after）のみを動かす。
 * 光の強さを調整する場合は rgba の 0.15 / 0.55 を変更。
 */
.zemi_cta_shine::after {
    content: "";
    position: absolute;
    top: -25%;
    bottom: -25%;
    left: 0;
    width: 22%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 25%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 100%
    );
    transform: translateX(-200%) skewX(-20deg);
    animation: zemi_cta_light 3s ease-in-out infinite;
    pointer-events: none;
}

/* 1回横切った後に少し間を空ける（3秒で1周） */
@keyframes zemi_cta_light {
    0%, 45% {
        transform: translateX(-200%) skewX(-20deg);
    }

    80%, 100% {
        transform: translateX(600%) skewX(-20deg);
    }
}

/* 動きを減らす設定のユーザーには光の演出を表示しない */
@media (prefers-reduced-motion: reduce) {
    .zemi_cta_shine::after {
        animation: none;
        display: none;
    }
}

/* ========================================
   07. Q&A
   ======================================== */
.faq {
    margin: 11px 0;
    border: 1px solid #bfe5fa;
    border-radius: 8px;
    overflow: hidden;
}

.faq summary {
    cursor: pointer;
    background: #eaf6fd;
    padding: 13px 15px;
    color: #006fb9;
    font-weight: 700;
    list-style: none;
}

.faq summary:after {
    content: '+';
    float: right;
}

.faq[open] summary:after {
    content: '−';
}

.faq .answer {
    padding: 14px 15px;
    font-size: 16px;
}

.faq .answer p {
    font-size: 16px;
    margin: 0 0 9px;
}

/* ========================================
   08. フッター・補足表示
   ======================================== */
.foot {
    background: #f0f7fc;
    color: #526677;
    font-size: 12px;
    padding: 18px;
    text-align: center;
}

.foot a {
    margin: 0 9px;
}

.note {
    font-size: 12px;
    color: #536777;
}

.todo {
    color: #824700;
    background: #fff8e4;
    padding: 8px 10px;
    font-size: 12px;
}

.inline-asset {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
    border-radius: 8px;
}

/* ========================================
   09. 画面幅に応じた調整
   ======================================== */
@media (min-width: 620px) {
    .site {
        margin: 22px auto;
    }
}

/* ========================================
   10. 進研ゼミ・スマイルゼミ比較表
   ======================================== */
.service-compare__scroll {
    width: 100%;
    overflow-x: visible;
}
.service-compare__table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 16px;
    line-height: 1.65;
}
.service-compare__table th,
.service-compare__table td {
    padding: 10px 4px;
    border: 1px solid #cad9e5;
    text-align: center;
    vertical-align: middle;
    overflow-wrap: normal;
    word-break: normal;
    line-break: strict;
}
.service-compare__table thead th {
    background: #f7fafc;
    font-weight: 700;
}
.service-compare__table th:first-child {
    width: 27%;
    background: #f7fafc;
    padding-left: 2px;
    padding-right: 2px;
    letter-spacing: -0.03em;
}
.service-compare__table thead th:nth-child(2) {
    background: #eaf6ff;
}
.service-compare__table tbody td:nth-child(2) {
    background: #f5fbff;
}
.service-compare__table thead th:nth-child(n+2) {
    width: 36.5%;
}
.service-compare__table thead a {
    display: inline-block;
    width: 100%;
    padding: 5px 0;
}
.service-compare__table thead img {
    display: block;
    width: 100%;
    max-width: 150px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}
.service-compare__old-price {
    color: #777;
    text-decoration: line-through;
}
.service-compare__discount {
    color: #c50000;
    font-weight: 800;
}

/* 狭い画面でも比較項目を不自然に分断しない */
@media (max-width: 420px) {
    .service-compare__table { line-height: 1.55; }
    .service-compare__table th,
    .service-compare__table td { padding-top: 10px; padding-bottom: 10px; }
    .service-compare__table tbody td { padding-left: 3px; padding-right: 3px; }
}
