@charset "UTF-8";

/* =========================
   講座ページ共通
========================= */

.lecture-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    line-height: 1.95;
    color: #222;
}

.lecture-container p,
.lecture-container li {
    color: #222;
    font-size: 1.03rem;
}

.lecture-container a {
    color: #2f5fb3;
    text-decoration: none;
    font-weight: 600;
}

.lecture-container a:hover {
    text-decoration: underline;
}

/* =========================
   ヒーロー
========================= */
.lecture-hero {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.lecture-hero__text {
    flex: 1;
    min-width: 300px;
}

.lecture-hero__text h1 {
    font-size: 2.2rem;
    line-height: 1.4;
    margin: 0 0 18px;
    color: #2c3e50;
}

.lecture-hero__text p {
    margin: 0 0 14px;
    font-size: 1.08rem;
}

.lecture-hero__image {
    flex: 0 0 280px;
    text-align: center;
}

.lecture-hero__image img {
    width: 100%;
    max-width: 280px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* =========================
   章の導入ボックス
========================= */
.lecture-intro-box {
    margin: 28px 0 34px;
    padding: 24px;
    background: #f7fbff;
    border: 2px solid #9fbce3;
    border-radius: 16px;
}

.lecture-intro-box p:last-child {
    margin-bottom: 0;
}

/* =========================
   目次
========================= */
.lecture-toc {
    margin: 30px 0 40px;
    padding: 24px;
    background: #fffef9;
    border: 2px solid #d8c979;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.lecture-toc h2 {
    margin-top: 0;
}

.lecture-toc ul {
    margin: 12px 0 0 20px;
    padding: 0;
}

.lecture-toc li {
    margin-bottom: 8px;
}

/* =========================
   セクション共通
========================= */
.lecture-section {
    margin-top: 42px;
    padding: 28px;
    background: #fffef9;
    border: 2px solid #d8c979;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.lecture-section h2,
.lecture-toc h2 {
    position: relative;
    margin: 0 0 20px;
    padding: 8px 0 10px 18px;
    font-size: 1.55rem;
    font-weight: 700;
    color: #274c77;
    border-left: 8px solid #4f7fd6;
    line-height: 1.4;
}

.lecture-section h2::after,
.lecture-toc h2::after {
    content: "";
    display: block;
    width: 90px;
    height: 3px;
    margin-top: 10px;
    background: linear-gradient(to right, #4f7fd6, #d8c979);
    border-radius: 999px;
}

.lecture-section p {
    margin: 0 0 16px;
}

.lecture-section ul {
    margin: 16px 0 18px 22px;
}

.lecture-section li {
    margin-bottom: 8px;
}

/* =========================
   講座ページ h3
========================= */
.lecture-container h3 {
    font-size: 1.15rem;
    margin: 28px 0 10px;
    padding: 6px 12px;
    border-left: 4px solid #5b6dd8;
    background: #f7f9ff;
    color: #2c3e50;
    font-weight: 700;
    border-radius: 4px;
}

.lecture-container h3::after {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(to right, #5b6dd8, transparent);
    margin-top: 6px;
    width: 120px;
}

/* =========================
   画像
========================= */
.lecture-image {
    float: right;
    width: 240px;
    max-width: 38%;
    margin: 0 0 18px 24px;
    text-align: center;
}

.lecture-image img {
    width: 100%;
    max-width: 240px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    display: block;
}

.lecture-section::after {
    content: "";
    display: block;
    clear: both;
}

/* =========================
   補足ボックス
========================= */
.lecture-note,
.lecture-point,
.lecture-caution {
    margin: 22px 0;
    padding: 18px 20px;
    border-radius: 14px;
}

.lecture-note {
    background: #f7fbff;
    border: 2px solid #c8daef;
}

.lecture-point {
    background: #fffdf4;
    border: 2px solid #e3d68d;
}

.lecture-caution {
    background: #fff8f6;
    border: 2px solid #ebc3b8;
}

.lecture-note strong,
.lecture-point strong,
.lecture-caution strong {
    color: #274c77;
}

/* =========================
   ナビゲーション
========================= */
.lecture-nav {
    margin-top: 42px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.lecture-nav a {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 999px;
    background: #356ac3;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lecture-nav a:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    text-decoration: none;
}

.lecture-nav .next {
    margin-left: auto;
}

/* =========================
   講座ページの表
========================= */
.lecture-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 18px 0 22px;
    background: #fff;
    border: 1px solid #cfd8e6;
}

.lecture-table th,
.lecture-table td {
    border: 1px solid #d7dfe9;
    padding: 10px 12px;
    vertical-align: top;
    text-align: left;
    line-height: 1.7;
    word-break: break-word;
}

.lecture-table th {
    background: #f5f8fc;
    color: #274c77;
    font-weight: 700;
}

.lecture-table td {
    background: #fff;
}

.lecture-table td:first-child {
    font-weight: 700;
    color: #2c3e50;
    background: #fbfcfe;
}

.lecture-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 18px 0 22px;
}

/* =========================
   tools メニュー用
========================= */
.tool-grid {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.tool-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px 18px 16px;
    margin-bottom: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    border: 1px solid #e5ebf3;
}

.tool-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.18rem;
}

.tool-card p {
    margin-bottom: 0;
}

.tool-links {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.tool-links .tool-main,
.tool-links .tool-main:link,
.tool-links .tool-main:visited {
    display: inline-block;
    background: #4f46e5;
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid #4338ca;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.18);
    line-height: 1.2;
}

.tool-links .tool-main:hover,
.tool-links .tool-main:focus {
    background: #4338ca;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.tool-links .tool-sub,
.tool-links .tool-sub:link,
.tool-links .tool-sub:visited {
    display: inline-block;
    color: #4f46e5 !important;
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 0;
    line-height: 1.2;
}

.tool-links .tool-sub:hover,
.tool-links .tool-sub:focus {
    text-decoration: underline;
}

.tool-card.paid {
    border-left: 5px solid #f39c12;
}

/* =========================
   レスポンシブ
========================= */
@media (max-width: 768px) {
    .lecture-container {
        padding: 20px 14px 50px;
    }

    .lecture-hero__text h1 {
        font-size: 1.78rem;
    }

    .lecture-section,
    .lecture-toc,
    .lecture-intro-box {
        padding: 20px;
    }

    .lecture-section h2,
    .lecture-toc h2 {
        font-size: 1.28rem;
        padding-left: 14px;
        border-left-width: 6px;
    }

    .lecture-image {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 18px 0 22px;
    }

    .lecture-image img {
        max-width: 100%;
        margin: 0 auto;
    }

    .lecture-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .lecture-nav a,
    .lecture-nav .next {
        margin-left: 0;
        text-align: center;
    }

    .lecture-container h3 {
        font-size: 1.05rem;
        margin: 22px 0 8px;
    }

    .lecture-table {
        min-width: 560px;
    }

    .lecture-table th,
    .lecture-table td {
        padding: 9px 10px;
        font-size: 0.95rem;
    }

    .tool-card {
        padding: 16px 14px 14px;
    }

    .tool-links {
        gap: 10px;
    }

    .tool-links .tool-main,
    .tool-links .tool-main:link,
    .tool-links .tool-main:visited {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .tool-links .tool-sub,
    .tool-links .tool-sub:link,
    .tool-links .tool-sub:visited {
        width: 100%;
    }
}