@charset "UTF-8";
/* base.css - 基本スタイルとリセット */

/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

ol {
    padding-left: 2rem !important;
}

ol li {
    list-style-type: decimal !important;
    margin-bottom: 0.8rem !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: #005BAC;
    color: white;
}

.btn-primary:hover {
    background-color: #004a8c;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 91, 172, 0.2);
}

.btn-secondary {
    background-color: #FF8C00;
    color: white;
}

.btn-secondary:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.2);
}

.btn-outline {
    border: 2px solid #005BAC;
    color: #005BAC;
    background-color: transparent;
}

.btn-outline:hover {
    background-color: #005BAC;
    color: white;
}

/* セクションタイトル */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    color: #333;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #005BAC;
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #666;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2025年5月 - リンクスタイルの改善 */

/* 1. 画像キャプション内のリンクスタイル */
.image-caption a {
    color: #005BAC;
    transition: color 0.3s ease;
}

.image-caption a:hover {
    color: #FF8C00;
    text-decoration: underline;
}

/* 2. おさらいセクション内のリンクスタイル */
.chapter-highlight-box a {
    color: #ff8a14;
    font-weight: 500;
    transition: color 0.3s ease;
}

.chapter-highlight-box a:hover {
    color: #FF8C00;
    text-decoration: underline;
}

/* 3. 引用ボックス内のリンクスタイル */
.quote-box a {
    color: #005BAC;
    font-weight: 500;
    transition: color 0.3s ease;
}

.quote-box a:hover {
    color: #FF8C00;
    text-decoration: underline;
}

.chapter-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.chapter-card-link:hover {
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

/* カードリンクの中のボタンがクリックされたときのスタイル保持 */
.chapter-card-link .btn:hover {
    cursor: pointer;
}

/* 本文内のリンクだけにスタイル適用 */
.section-text a.link-style {
    color: #005BAC;
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.section-text a.link-style:hover {
    color: #FF8C00;
}