/* === 中ページ専用スタイル === */

/* 1. ページタイトルヘッダー */
.page-header {
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    padding: 3rem 0;
    text-align: center;
    color: white;
    animation: fade-in-up 1s ease-out forwards; /* style.cssのアニメーションを再利用 */
}
.page-header h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
}
.page-header p {
    margin: 0.5rem 0 0;
    font-size: 1rem;
    opacity: 0.8;
}

/* 2. メインコンテンツエリア */
.page-container {
    padding: 3rem 0;
}
.content-body {
    background-color: var(--card-bg);
    max-width: 850px; /* 読みやすい幅に設定 */
    margin: 0 auto;
    padding: 2.5rem 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    animation: fade-in-up 1s ease-out 0.2s forwards; /* 少し遅れてアニメーション */
    opacity: 0;
}

/* 3. コンテンツ内のタイポグラフィ */
.content-body h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    margin: 0 0 1.5rem 0;
}
.content-body h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    padding-left: 1rem;
    border-left: 4px solid var(--secondary-color);
    margin: 2.5rem 0 1rem 0;
}
.content-body p, .content-body ul {
    font-size: 1rem;
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
}
.content-body ul {
    padding-left: 1.5rem;
}
.content-body li {
    margin-bottom: 0.5rem;
}

/* 4. 引用（Blockquote） */
.content-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-left: 5px solid var(--primary-color);
}
.content-body blockquote p {
    font-style: italic;
    font-size: 1.1rem;
    margin: 0;
}
.content-body blockquote footer {
    text-align: right;
    margin-top: 1rem;
    font-style: normal;
    color: var(--light-text-color);
}

/* 5. テーブル */
.table-container {
    overflow-x: auto; /* スマホで表がはみ出た場合にスクロールさせる */
    margin: 2rem 0;
}
.content-body table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
}
.content-body th, .content-body td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.content-body table th:first-child,
.content-body table td:first-child {
    white-space: nowrap;
    
}

.content-body thead th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
}
.content-body tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* 6. アクションボタン */
.cta-button {
    display: inline-block;
    background: linear-gradient(to right, #e3720fde, #ff8d39);
    color: white;
    font-weight: 700;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(227, 114, 15, 0.4);
}
.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(227, 114, 15, 0.5);
}

/* 7. レスポンシブ対応 */
@media (max-width: 768px) {
    .page-header h1 { font-size: 1.8rem; }
    .content-body { padding: 1.5rem; }
    .content-body h2 { font-size: 1.5rem; }
    .content-body h3 { font-size: 1.2rem; }
}

/* 8. TOPへ戻るボタン */
.back {
    display: flex;
    justify-content: center;
    position: relative;
    width: 200px;
    margin: 0 auto;
    padding: .9em 2em;
    border: none;
    border-bottom: 2px solid #e6edf3;
    background-color: transparent;
    color: #333;
    font-weight: 600;
    font-size: 1em;
}

.back::after {
    position: absolute;
    bottom: -3px;
    left: 0;
    transform: scaleX(0);
    transform-origin: center left;
    width: 100%;
    height: 2px;
    background-color: #2589d0;
    content: '';
    transition: transform .3s ease;
}

.back:hover::after {
    transform: scaleX(1);
}

