/* 全体のスタイル */
body {
    font-family: Arial, sans-serif;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: url(../img/bg_pc.jpg) no-repeat center/cover;
}

ul li {
    font-weight: normal; /* リスト項目の太字を解除 */
        margin-left: 10px;
}
.section p {
    margin-left: 50px; /* 余白を調整（他の要素と統一する場合、h2のmargin-leftと揃える） */
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

th {
    width: 18%;
    background-color: #eaeaea; /* ヘッダー行の背景色 */
    color: black;
}

td {
    background-color: #f9f9f9;
}

tr:nth-child(odd) td {
    background-color: #ffffff;
}

.history .indent {
  display: block;      /* ←これを追加 */
  padding-left: 4.3em; /* 年号分の字下げ量。お好みで調整 */
  text-indent: 0;
  margin: 0;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid black;
}

.container {
    max-width: 750px;
    width: 80%;
    margin: 0 auto; /* 水平中央揃え */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
    /* フェードインアニメーション */
    opacity: 0;
    animation: fadeIn 1.5s ease-in forwards;
}

/* h1 の統一されたスタイル */
h1 {
    font-size: 2.5em;
    color: #808080;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 5px;
}

h2 {
    margin-left: 30px; /* 余白の調整（数値を大きくするとより左側にスペースが増えます） */    
            margin-top: 30px;
            margin-bottom: 10px;
            }

/* h3 のスタイル */
h3 {
    font-size: 1.2em;
    color: #808080;
    margin-bottom: 5px;
    margin-left: 30px;
}

/* h4 のスタイル */
h4 {
    font-size: 1.2em;
    color: #808080;
    margin-bottom: 5px;
    font-style: italic;
    text-align: center;
}


/* h5 のスタイル */
h5 {
    font-size: 1.0em;
    color: #000;
        margin-top: 3px;
    margin-bottom: 10px;
    margin-left: 55px;
        font-weight: normal; /* リスト項目の太字を解除 */
}

/* h6 のスタイル */
h6 {
    font-size: 1.0em;
    color: #000;
        margin-top: 3px;
    margin-bottom: 10px;
    margin-left: 30px;
        font-weight: normal; /* リスト項目の太字を解除 */
}


/* h7 のスタイル */
h7 {
    font-size: 0.9em;
    color: #000;
        margin-top: 3px;
    margin-bottom: 10px;
    margin-left: 30px;
        font-weight: normal; /* リスト項目の太字を解除 */
}


p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.note {
    font-size: 0.9em;
    color: #666;
}

.center2-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.custom-hr {
    border: 1px solid #ccc;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

/* フェードインアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* 戻るボタンのスタイル */
.button-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    text-align: center;
    z-index: 1000;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}
.back-button {
    background-color: #0078D7 !important; /* 強制適用 */
    color: white !important; /* 強制適用 */
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    display: inline-block !important; /* 必ず表示 */
    transition: background-color 0.3s ease;
    border: none; /* Windowsで表示されない場合の対策 */
}

.back-button:hover {
    background-color: #005A9E !important; /* 強制適用 */
}

a {
    text-decoration: none !important;
    display: inline-block !important;
}

/* 戻るボタンのスタイル */
.back-button-container {
    text-align: center;
    margin-top: 20px;
    opacity: 0; /* 初期状態を透明にする */
    animation: fadeIn 1.5s ease-in forwards;
    animation-delay: 1s; /* ボタンは少し遅れてフェードイン */
}

.back-button {
    background-color: #0078D7;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    display: inline-block;
    transition: background-color 0.3s ease;
    text-align: center;
    margin-top: 20px;
    opacity: 0; /* 初期状態を透明にする */
    animation: fadeIn 1.5s ease-in forwards;
    animation-delay: 1.2s; /* ボタンのフェードインをさらに少し遅らせる */
}

.back-button:hover {
    background-color: #005A9E;
}

/* フェードインアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sdgs-icons {
  text-align: center;
  margin-top: 40px;
}

.sdgs-icons img {
  width: 100%;
  max-width: 600px; /* ←画像の最大幅を指定して拡大しすぎ防止 */
  height: auto;
  display: inline-block;
  object-fit: contain; /* Safari対策：比率を維持して収める */
}





/* 戻るボタンのコンテナ 
.button-container {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}　　　　　*/

/* 戻るボタンのスタイル 
.back-button {
    background-color: #0078D7;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    display: inline-block;
    transition: background-color 0.3s ease;
}*/

/* 戻るボタンのホバースタイル
.back-button:hover {
    background-color: #005A9E;
}*/

/* フェードイン効果 
.button-container {
    opacity: 0;
    animation: fadeIn 2s ease-in forwards;
}*/


/* --- スマートフォン対応のためのメディアクエリ --- */
/* 画面幅が750px以下の場合に適用するスタイル */
@media screen and (max-width: 750px) {

    /* 1. コンテンツの幅を調整（画面いっぱいに広げる） */
    .container {
        max-width: 95%;
        width: 100%;
        padding: 10px; /* パディングを小さくしてスペースを確保 */
        border-radius: 0;
        box-shadow: none;
    }

    /* 2. 背景画像をスマホ用に変更（もしあれば） */
    body {
        /* ここでスマホ用の背景画像に切り替えたい場合、画像ファイルを準備してパスを変更 */
        background: url(../img/bg_sp.jpg) no-repeat center/cover;
    }

    /* 3. フォントサイズを小さくする（具体的な調整） */
    
    /* 基本の本文（pタグなど） */
    body {
        font-size: 14px; /* 16px から 14px へ小さく */
    }

    /* メインタイトル */
    h1 {
        font-size: 1.8em; /* 2.5em から 1.8em へ小さく */
        margin-bottom: 15px;
    }
    
    /* 中見出し（h2） */
    h2 {
        font-size: 1.2em; /* デフォルトより小さく */
        margin-left: 10px; /* 左側の余白も小さくする */
        margin-top: 20px;
    }

    /* h3 */
    h3 {
        font-size: 1.0em; /* 1.2em から 1.0em へ小さく */
        margin-left: 10px; /* 左側の余白も小さくする */
    }
    
    /* h4 (中央揃えのイタリック体) */
    h4 {
        font-size: 1.0em;
    }
    
    /* h5, h6, h7 (リスト系のテキスト) */
    h5, h6, h7 {
        margin-left: 15px; /* 左側の余白も小さくする */
    }
    
    /* 通常の段落 */
    p {
        line-height: 1.5;
        margin-bottom: 8px;
    }
    
    /* .section p の余白調整 */
    .section p {
        margin-left: 20px; /* 50px から 20px へ小さく */
    }
    
    /* テーブル */
    table, th, td {
        display: block; /* スマホでテーブルが横に長くなりすぎないよう、要素を縦に並べる */
        width: 100%;
        box-sizing: border-box;
    }
    
    th {
        width: 100%; /* ヘッダーを1行全体に表示 */
        text-align: left;
    }

    /* 戻るボタンの調整 */
    .back-button-container {
        margin-top: 10px;
    }
    .back-button {
        padding: 8px 16px;
        font-size: 14px;
    }
}