/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'Meiryo UI', 'メイリオ', Meiryo, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f5f5f5;
}

.page {
    max-width: 1200px;
    margin: 20px auto;
    background-color: #e8e5dc;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* ヘッダーセクション */
.logo {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.logo img {
    height: 50px;
    width: auto;
}

.header {
    position: relative;
    margin-bottom: 10px;
}

.web-badge {
    position: absolute;
    top: -10px;
    right: 0;
    background-color: white;
    border: 2px solid #0070c0;
    padding: 8px 20px;
    font-weight: bold;
    font-size: 14px;
    color: #5c6b7d;
}

.header-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background-color: #0070c0;
    padding: 20px;
    margin-top: 30px;
}

/* コース番号ボックス */
.course-number-box {
    background-color: white;
    padding: 15px;
    text-align: center;
    min-width: 110px;
    flex-shrink: 0;
}

.course-number {
    background-color: #0070c0;
    color: white;
    font-size: 48px;
    font-weight: bold;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.course-label {
    font-size: 12px;
    color: #333;
    margin-bottom: 5px;
}

.course-code {
    background-color: #0070c0;
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 8px;
}

/* タイトルセクション */
.title-section {
    flex: 1;
    color: white;
}

.subtitle {
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.main-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}

.course-info {
    display: flex;
    gap: 30px;
    font-size: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 12px;
}

.info-item strong {
    font-weight: bold;
}

.tax-note {
    font-size: 12px;
}

/* QRコードセクション */
.qr-section {
    background-color: white;
    padding: 15px;
    text-align: center;
    min-width: 140px;
    flex-shrink: 0;
}

.qr-message {
    font-size: 12px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.qr-code {
    width: 100px;
    height: 100px;
    background-color: #ddd;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #999;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 受講対象者 */
.target-audience {
    background-color: #0070c0;
    color: white;
    padding: 10px 20px;
    font-size: 13px;
    margin-bottom: 20px;
}

/* メインコンテンツエリア */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
}

/* 左カラム */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-box,
.features-box {
    background-color: white;
    padding: 0;
    border-left: 4px solid #0070c0;
}

.section-title {
    background-color: #0070c0;
    color: white;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.section-content {
    padding: 20px;
}

.section-content p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.8;
}

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

.feature-item {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.8;
    padding-left: 5px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.diamond {
    color: #0070c0;
    font-weight: bold;
    margin-right: 5px;
}

/* 教材ボックス */
.materials-box {
    background-color: white;
    padding: 0;
}

.section-title-center {
    background-color: #0070c0;
    color: white;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

.materials-table {
    width: 100%;
    border-collapse: collapse;
}

.materials-table td {
    padding: 15px 20px;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

.materials-table tr:last-child td {
    border-bottom: none;
}

.material-name {
    width: 70%;
}

.material-qty {
    text-align: right;
    font-weight: bold;
}

/* 右カラム - カリキュラム */
.right-column {
    background-color: white;
}

.curriculum-table {
    width: 100%;
    border-collapse: collapse;
}

.curriculum-table thead {
    background-color: #0070c0;
    color: white;
}

.curriculum-table th {
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.col-topic {
    width: 30%;
}

.col-content {
    width: 70%;
}

.curriculum-table tbody tr {
    border-bottom: 1px solid #ddd;
}

.curriculum-table tbody tr:nth-child(even) {
    background-color: #e8f0f7;
}

.topic-cell {
    text-align: center;
    padding: 20px 10px;
    vertical-align: middle;
}

.topic-number {
    display: inline-block;
    background-color: #0070c0;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    line-height: 35px;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.topic-title {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
}

.content-cell {
    padding: 15px 20px;
}

.content-cell ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.content-cell li {
    padding: 5px 0;
    padding-left: 18px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
}

.content-cell li:before {
    content: "・";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.curriculum-note {
    padding: 15px 20px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page {
        padding: 20px;
    }

    .header-content {
        flex-direction: column;
    }

    .course-number-box,
    .qr-section {
        width: 100%;
    }

    .main-title {
        font-size: 22px;
    }

    .course-info {
        flex-direction: column;
        gap: 10px;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .curriculum-table {
        font-size: 13px;
    }

    .topic-cell,
    .content-cell {
        display: block;
    }
}

@media print {
    .page {
        box-shadow: none;
        margin: 0;
        max-width: 100%;
    }

    body {
        background-color: white;
    }
}