/* 全体のスタイル */
body {
    font-family: "Arial", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eef2f7; /* ソフトなブルーグレー */
    color: #333;
    line-height: 1.6;
    font-size: 1rem;
}
@media (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.5em;
    }
}

#content {
    width: 80%;  /* 必要に応じて調整 */
    max-width: 900px;  /* 最大幅の指定 */
    margin: 0 auto;  /* 中央配置 */
    padding-top: 70px; /* ナビゲーションバーの高さを確保 */
}

@media (max-width: 768px) {
    #content {
        width: 95%; /* スマホではほぼ全幅に */
    }
}

/* コンテンツのメインレイアウト */
.container {
    width: 80%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 33, 71, 0.2);
    border-radius: 12px;
    transition: transform 0.3s;
    padding-left: 40px;
    padding-right: 40px;
}

.container:hover {
    transform: translateY(-5px);
}

/* タイトルスタイル */
h1 {
    color: #002147;
    font-weight: 800;
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 4px solid #004080;
    padding-bottom: 15px;
    margin-left: 20px;
    margin-right: 20px;
}

h2 {
    color: #003366;
    font-weight: 700;
    font-size: 2em;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-left: 6px solid #004080;
    padding-left: 12px;
    margin-left: 20px;
    margin-right: 20px;
    padding-bottom: 8px;
}

h3 {
    color: #004080;
    font-weight: 600;
    font-size: 1.75em;
    letter-spacing: 1px;
    text-decoration: underline;
    text-underline-offset: 8px;
    margin-left: 20px;
    margin-right: 20px;
}

h4 {
    font-size: 1.2em;
    margin-left: 20px;
    margin-right: 20px;
}

/* 段落（本文）スタイル */
p {
    margin-left: 20px;
    margin-right: 20px;
}

/* 簡略書きリストのスタイル */
ul, ol {
    margin-left: 40px;
    margin-right: 40px;
    padding-left: 20px;
}

.toc {
    margin: 20px;
    padding: 15px;
    border: 2px solid #003366;
    border-radius: 3px;
}

.toc div {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 10px 0;
    background-color: #003366;
    color: #fff;
    font-weight: 600;
    font-size: 1.1em;
}

.toc div::before {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4H21V6H8V4ZM3 3.5H6V6.5H3V3.5ZM3 10.5H6V13.5H3V10.5ZM3 17.5H6V20.5H3V17.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z' fill='%23fff'%3E%3C/path%3E%3C/svg%3E");
    content: '';
}

.toc ol {
    list-style-type: decimal;
    margin: 0;
    overflow: hidden;
}

.toc > ol {
    padding: 1em 1em 1em 3em;
}

.toc ol ol {
    margin-top: 5px;
    padding-left: 1.1em;
}

.toc li {
    padding: 5px 0;
    font-weight: 600;
}

.toc ol ol li {
    font-weight: 500;
    font-size: .9em;
}

.toc a {
    color: #333;
    text-decoration: none;
}

.image-caption {
    font-size: 10px;
    color: gray;
    text-align: center;
    margin-top: 5px; /* 画像との間隔調整 */
}

.sub-title {
    font-size: 22px; /* 少し大きめの文字サイズ */
    font-weight: bold;
    color: #333;
    text-align: center;
    margin: 20px 0;
}

html {
    scroll-behavior: smooth;
  }


.award-message {
background-color: #ffffff;
border: 1px solid #ccc;
border-left: 4px solid #004080;
padding: 15px 20px;
margin: 20px auto;  /* 横方向は自動余白で中央ぞろえ */
width: calc(100% - 40px);  /* 両側に20pxずつ余白を確保 */
box-shadow: 0 2px 10px rgba(0, 33, 71, 0.1);
border-radius: 8px;
text-align: center;
font-size: 1rem;
line-height: 1.6;
color: #333;
}

.award-message p {
margin: 10px 0;
}

.award-message a {
color: #004080;
text-decoration: none;
font-weight: bold;
}

.award-message a:hover {
text-decoration: underline;
}
