@charset "UTF-8";

/* ==========================================
   リセットCSS・基本設定
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f5f7fa;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    color: #004499;
    opacity: 0.8;
}

/* ==========================================
   コンテナ
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   サイトタイトル
   ========================================== */
.site-title {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.site-title .container {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ==========================================
   ヘッダー画像
   ========================================== */
.header-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.header-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.8) 0%, rgba(42, 82, 152, 0.8) 100%);
    z-index: 1;
    display: none;  /* この行を追加 */
}

.header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

/* ==========================================
   コンテンツラッパー
   ========================================== */
.content-wrapper {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

/* ==========================================
   メインカラム
   ========================================== */
.main-column {
    flex: 7;
    background: #ffffff;
    padding: 50px 45px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ==========================================
   見出しスタイル
   ========================================== */
h1 {
    font-size: 2rem;
    line-height: 1.5;
    color: #1a1a1a;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #2a5298;
    font-weight: 700;
}

h2 {
    font-size: 1.75rem;
    line-height: 1.5;
    color: #1a1a1a;
    margin-top: 50px;
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 5px solid #2a5298;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.5;
    color: #2a2a2a;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e6ed;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    line-height: 1.5;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 3px solid #667eea;
    font-weight: 600;
}

h5 {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #444;
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 600;
}

/* ==========================================
   段落・テキスト
   ========================================== */
p {
    margin-bottom: 20px;
    line-height: 1.9;
}

.intro-text {
    background: #f8f9fb;
    padding: 25px 30px;
    border-radius: 6px;
    margin-bottom: 40px;
    border-left: 4px solid #2a5298;
}

.intro-text p {
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 2;
}

section {
    margin-bottom: 45px;
}

/* ==========================================
   リスト
   ========================================== */
ul {
    margin: 20px 0 25px 0;
    padding-left: 0;
    list-style: none;
}

ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.8;
}

ul li::before {
    content: "\2022";
    position: absolute;
    left: 10px;
    top: -0.3em;
    color: #2a5298;
    font-weight: bold;
    font-size: 1.2em;
}

/* 番号付きリスト */
ol {
  margin: 20px 0 25px 0;
  padding-left: 0;
  list-style: none;
}

ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.8;
}

/* 番号の装飾（ulの●の代わりに番号を表示） */
ol li::before {
  counter-increment: item;
  content: counter(item) ".";
  position: absolute;
  left: 10px;
  top: -0.3em;
  color: #2a5298;      /* ulと同系色 */
  font-weight: bold;
  font-size: 1.2em;
}

/* 各olごとに番号をリセット */
ol {
  counter-reset: item;
}

/* ==========================================
   テーブル
   ========================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
}

th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

td {
    padding: 18px 15px;
    border-bottom: 1px solid #e0e6ed;
    font-size: 0.95rem;
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: #f8f9fb;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ==========================================
   画像エリア
   ========================================== */
.content-image {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    background: #f8f9fb;
    border-radius: 8px;
}

.content-image img {
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   関連リンク
   ========================================== */
.related-links {
    margin-top: 60px;
    padding: 35px;
    background: linear-gradient(135deg, #f8f9fb 0%, #e8ecf3 100%);
    border-radius: 8px;
    border: 1px solid #d0d7e2;
}

.related-links h3 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2a5298;
}

.related-links ul {
    margin: 0;
}

.related-links li {
    margin-bottom: 10px;
}

.related-links li::before {
    content: "\203A";
    color: #2a5298;
    font-size: 1.4em;
    font-weight: bold;
    left: 5px;
}

.related-links a {
    font-weight: 500;
    color: #0066cc;
}

.related-links a:hover {
    text-decoration: underline;
}

/* ==========================================
   サイドバー
   ========================================== */
.sidebar {
    flex: 3;
}

.side-menu {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
}

.side-menu h2 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 25px;
    padding-left: 0;
    padding-bottom: 15px;
    border-left: none;
    border-bottom: 2px solid #2a5298;
    text-align: center;
}

.side-menu ul {
    margin: 0;
    padding: 0;
}

.side-menu li {
    padding-left: 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e0e6ed;
}

.side-menu li::before {
    content: none;
}

.side-menu li:last-child {
    border-bottom: none;
}

.side-menu a {
    display: block;
    padding: 14px 18px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.side-menu a:hover {
    background: #f0f4f8;
    color: #2a5298;
    transform: translateX(5px);
}

/* ==========================================
   フッター
   ========================================== */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 40px 0 30px;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #ffffff;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
    color: #b0b8c4;
}

/* ==========================================
   レスポンシブデザイン（タブレット）
   ========================================== */
@media screen and (max-width: 968px) {
    .site-title .container {
        font-size: 1.5rem;
    }
    
    .header-image {
        height: 250px;
    }
    
    .content-wrapper {
        gap: 30px;
    }
    
    .main-column {
        padding: 40px 30px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-top: 40px;
    }
    
    h3 {
        font-size: 1.3rem;
    }
}

/* ==========================================
   レスポンシブデザイン（スマートフォン）
   ========================================== */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .site-title {
        padding: 15px 0;
    }
    
    .site-title .container {
        font-size: 1.3rem;
    }
    
    .header-image {
        height: 200px;
        margin-bottom: 30px;
    }
    
    .content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .main-column {
        flex: none;
        width: 100%;
        padding: 30px 20px;
    }
    
    .sidebar {
        flex: none;
        width: 100%;
        order: 2;
    }
    
    .side-menu {
        position: static;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    h2 {
        font-size: 1.3rem;
        margin-top: 35px;
        margin-bottom: 20px;
        padding-left: 15px;
    }
    
    h3 {
        font-size: 1.15rem;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    
    h4 {
        font-size: 1.1rem;
        margin-top: 25px;
        padding-left: 12px;
    }
    
    h5 {
        font-size: 1.05rem;
        margin-top: 20px;
    }
    
    .intro-text {
        padding: 20px;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
    
    table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    th,
    td {
        padding: 12px 10px;
    }
    
    .related-links {
        padding: 25px 20px;
    }
    
    .related-links h3 {
        font-size: 1.15rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links a {
        display: inline-block;
    }
}

/* ==========================================
   印刷用スタイル
   ========================================== */
@media print {
    .site-title,
    .header-image,
    .sidebar,
    .footer {
        display: none;
    }
    
    .main-column {
        box-shadow: none;
        padding: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}