/* 基本的なボディのスタイル */
body {
    font-family: sans-serif;
    /* サンセリフフォントを使用 */
    line-height: 1.6;
    /* 行間を1.6倍に設定 */
    margin: 0;
    /* マージンをリセット */
    background-color: #2c3e50;
    /* 背景色をダークブルーに設定 */
    color: #ecf0f1;
    /* テキスト色を明るい色に設定 */
}

/* ヘッダー部分のスタイル */
header {
    background-color: #34495e;
    /* ヘッダーの背景色を少し明るめのダークブルーに設定 */
    padding: 20px;
    /* 内側の余白を設定 */
    display: flex;
    /* フレックスボックスレイアウトを使用 */
    flex-wrap: wrap;
    /* 要素が収まらない場合は折り返す */
    justify-content: space-between;
    /* 要素を水平方向に均等に配置 */
    align-items: center;
    /* 要素を垂直方向に中央揃え */
    position: relative;
    /* 相対位置を設定（子要素の配置の基準点になる） */
    width: 100%;
    /* 幅を100%に設定 */
    box-sizing: border-box;
    /* ボックスサイズの計算にパディングとボーダーを含める */
}

/* ヘッダー内の見出しスタイル */
header h1 {
    color: #fff;
    /* テキスト色を白に設定 */
    font-size: 2.5em;
    /* フォントサイズを2.5倍に設定 */
    margin: 0;
    /* マージンをリセット */
}

/* ヘッダー内の段落スタイル */
header p {
    color: #bdc3c7;
    /* テキスト色を薄いグレーに設定 */
    font-size: 1.1em;
    /* フォントサイズを1.1倍に設定 */
    margin: 0;
    /* マージンをリセット */
}

/*=============================
ハンバーガーメニューの基本スタイル
=============================*/
.hamburger-menu {
    position: relative;
    /* 相対位置を設定 */
    width: 50px;
    /* 幅を50pxに設定 */
    height: 44px;
    /* 高さを44pxに設定 */
    cursor: pointer;
    /* カーソルをポインタに設定 */
    z-index: 100;
    /* 重なり順を設定（高い値ほど前面に表示） */
}

/* ハンバーガーメニューの横線 */
.hamburger-menu span {
    position: absolute;
    /* 絶対位置を設定 */
    left: 0;
    /* 左端からの位置を0に設定 */
    width: 100%;
    /* 幅を100%に設定 */
    height: 4px;
    /* 高さを4pxに設定 */
    background-color: #fff;
    /* 背景色を白に設定 */
    border-radius: 4px;
    /* 角を丸くする */
}

/* ハンバーガーメニューとその横線の共通スタイル */
.hamburger-menu,
.hamburger-menu span {
    display: inline-block;
    /* インラインブロック要素として表示 */
    transition: all .5s;
    /* すべてのプロパティに0.5秒のトランジションを設定 */
    box-sizing: border-box;
    /* ボックスサイズの計算にパディングとボーダーを含める */
}

/* 1番目の横線の位置 */
.hamburger-menu span:nth-of-type(1) {
    top: 0;
    /* 上端からの位置を0に設定 */
}

/* 2番目の横線の位置 */
.hamburger-menu span:nth-of-type(2) {
    top: 20px;
    /* 上端からの位置を20pxに設定 */
}

/* 3番目の横線の位置 */
.hamburger-menu span:nth-of-type(3) {
    bottom: 0;
    /* 下端からの位置を0に設定 */
}

/* 最後の横線のマージン */
.hamburger-menu span:last-child {
    margin-bottom: 0;
    /* 下側のマージンを0に設定 */
}

/* デフォルト状態 - 初期表示時にアニメーションを実行しない */
#hamburger-btn span:nth-of-type(1) {
    transform: translateY(0) rotate(0);
    /* 移動と回転を初期状態に設定 */
}

#hamburger-btn span:nth-of-type(2) {
    opacity: 1;
    /* 不透明度を1（完全に表示）に設定 */
}

#hamburger-btn span:nth-of-type(3) {
    transform: translateY(0) rotate(0);
    /* 移動と回転を初期状態に設定 */
}

/* 閉じる時 - アクティブから非アクティブに変更する場合のみアニメーションを適用 */
#hamburger-btn.closing span:nth-of-type(1) {
    animation: hamburger-btn-bar01 .5s forwards;
    /* 0.5秒のアニメーションを設定し、最終フレームで停止 */
}

#hamburger-btn.closing span:nth-of-type(2) {
    transition: all .25s .25s;
    /* 0.25秒のトランジションを0.25秒遅延させて適用 */
    opacity: 1;
    /* 不透明度を1に設定 */
}

#hamburger-btn.closing span:nth-of-type(3) {
    animation: hamburger-btn-bar03 .5s forwards;
    /* 0.5秒のアニメーションを設定し、最終フレームで停止 */
}

/* 開く時 - アクティブ状態のスタイル */
#hamburger-btn.active span:nth-of-type(1) {
    animation: active-hamburger-btn-bar01 .5s forwards;
    /* 0.5秒のアニメーションを設定し、最終フレームで停止 */
}

#hamburger-btn.active span:nth-of-type(2) {
    opacity: 0;
    /* 不透明度を0（完全に透明）に設定 */
}

#hamburger-btn.active span:nth-of-type(3) {
    animation: active-hamburger-btn-bar03 .5s forwards;
    /* 0.5秒のアニメーションを設定し、最終フレームで停止 */
}

/* 非アクティブ時の1番目の横線のアニメーション */
@keyframes hamburger-btn-bar01 {
    0% {
        transform: translateY(20px) rotate(45deg);
        /* 開始時：20px下に移動し45度回転 */
    }

    50% {
        transform: translateY(20px) rotate(0);
        /* 中間：20px下に移動し回転なし */
    }

    100% {
        transform: translateY(0) rotate(0);
        /* 終了時：元の位置に戻る */
    }
}

/* 非アクティブ時の3番目の横線のアニメーション */
@keyframes hamburger-btn-bar03 {
    0% {
        transform: translateY(-20px) rotate(-45deg);
        /* 開始時：20px上に移動し-45度回転 */
    }

    50% {
        transform: translateY(-20px) rotate(0);
        /* 中間：20px上に移動し回転なし */
    }

    100% {
        transform: translateY(0) rotate(0);
        /* 終了時：元の位置に戻る */
    }
}

/* アクティブ時の1番目の横線のアニメーション */
@keyframes active-hamburger-btn-bar01 {
    0% {
        transform: translateY(0) rotate(0);
        /* 開始時：初期位置 */
    }

    50% {
        transform: translateY(20px) rotate(0);
        /* 中間：20px下に移動 */
    }

    100% {
        transform: translateY(20px) rotate(45deg);
        /* 終了時：20px下に移動し45度回転（×印の一部になる） */
    }
}

/* アクティブ時の3番目の横線のアニメーション */
@keyframes active-hamburger-btn-bar03 {
    0% {
        transform: translateY(0) rotate(0);
        /* 開始時：初期位置 */
    }

    50% {
        transform: translateY(-20px) rotate(0);
        /* 中間：20px上に移動 */
    }

    100% {
        transform: translateY(-20px) rotate(-45deg);
        /* 終了時：20px上に移動し-45度回転（×印の一部になる） */
    }
}

/* メニューコンテンツ（ナビゲーション）のスタイル */
.menu-content {
    display: none;
    /* デフォルトでは非表示 */
    width: 100%;
    /* 幅を100%に設定 */
    order: 3;
    /* フレックスボックス内での表示順序を3に設定（ヘッダーコンテンツの後に表示） */
}

/* ハンバーガーボタンがアクティブなときのメニュー表示 */
#hamburger-btn.active+.menu-content {
    display: block;
    /* ブロック要素として表示 */
}

/* 水平メニューのスタイル */
.menu-content ul {
    display: flex;
    /* フレックスボックスレイアウトを使用 */
    justify-content: center;
    /* 要素を水平方向に中央揃え */
    padding: 0;
    /* パディングをリセット */
    margin: 0.5rem 0 0 0;
    /* 上側に0.5remのマージンを設定 */
    list-style: none;
    /* リストマーカーを非表示 */
}

/* メニュー項目のスタイル */
.menu-content ul li {
    margin: 0 1rem;
    /* 左右に1remのマージンを設定 */
}

/* メニューリンクのスタイル */
.menu-content ul li a {
    text-decoration: none;
    /* テキストの下線を非表示 */
    color: #ecf0f1;
    /* テキスト色を明るい色に設定 */
    font-weight: bold;
    /* フォントを太字に設定 */
    padding: 0.5rem;
    /* 内側の余白を設定 */
    display: block;
    /* ブロック要素として表示 */
}

/* メニューリンクのホバー時のスタイル */
.menu-content ul li a:hover {
    color: #3498db;
    /* テキスト色を明るい青に設定 */
    text-decoration: none;
    /* テキストの下線を非表示のままにする */
}

/* 通常のヘッダーナビゲーションのスタイル（大画面用） */
.header-nav ul {
    list-style: none;
    /* リストマーカーを非表示 */
    display: flex;
    /* フレックスボックスレイアウトを使用 */
    margin-left: 20px;
    /* 左側に20pxのマージンを設定 */
}

/* 通常のヘッダーナビゲーション項目のスタイル */
.header-nav li {
    margin-right: 15px;
    /* 右側に15pxのマージンを設定 */
}

/* メインコンテンツのスタイル */
main {
    padding: 20px;
    /* 内側の余白を設定 */
    max-width: 960px;
    /* 最大幅を960pxに設定 */
    margin: 0 auto;
    /* 左右のマージンを自動で均等に設定（中央揃え） */
}

/* ヒーローセクションのスタイル */
.hero {
    background-color: #34495e;
    /* 背景色を設定 */
    padding: 50px 0;
    /* 上下に50pxのパディングを設定 */
    text-align: center;
    /* テキストを中央揃え */
    margin-bottom: 30px;
    /* 下側に30pxのマージンを設定 */
}

/* ヒーローセクション内の見出しスタイル */
.hero h2 {
    color: #fff;
    /* テキスト色を白に設定 */
    font-size: 2em;
    /* フォントサイズを2倍に設定 */
    margin-bottom: 15px;
    /* 下側に15pxのマージンを設定 */
}

/* ヒーローセクション内の画像スタイル */
.hero img {
    max-width: 150px;
    /* 最大幅を150pxに設定 */
    height: auto;
    /* 高さを自動調整 */
    padding: 5px;
    /* 内側の余白を設定 */
    border: 5px solid #3498db;
    /* 青色の5pxの枠線を設定 */
}

/* 一般セクションのスタイル */
.section {
    margin-bottom: 40px;
    /* 下側に40pxのマージンを設定 */
    padding: 30px;
    /* 内側の余白を設定 */
    background-color: #34495e;
    /* 背景色を設定 */
    border-radius: 8px;
    /* 角を8px丸くする */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* 影を設定 */
}

/* セクション内の見出しスタイル */
.section h3 {
    color: #fff;
    /* テキスト色を白に設定 */
    border-bottom: 3px solid #3498db;
    /* 下側に青色の3pxの枠線を設定 */
    padding-bottom: 12px;
    /* 下側に12pxのパディングを設定 */
    margin-bottom: 20px;
    /* 下側に20pxのマージンを設定 */
    font-size: 1.8em;
    /* フォントサイズを1.8倍に設定 */
}

/* セクション内の段落スタイル */
.section p {
    color: #bdc3c7;
    /* テキスト色を薄いグレーに設定 */
    margin-bottom: 10px;
    /* 下側に10pxのマージンを設定 */
}

/* リンクのスタイル */
a {
    color: #3498db;
    /* テキスト色を青に設定 */
    text-decoration: none;
    /* テキストの下線を非表示 */
}

/* リンクのホバー時のスタイル */
a:hover {
    text-decoration: underline;
    /* テキストに下線を表示 */
    color: #2980b9;
    /* テキスト色を少し暗い青に設定 */
}

/* ボタンのスタイル */
.button {
    display: inline-block;
    /* インラインブロック要素として表示 */
    background-color: #3498db;
    /* 背景色を青に設定 */
    color: #fff;
    /* テキスト色を白に設定 */
    padding: 10px 20px;
    /* 内側の余白を設定 */
    border-radius: 5px;
    /* 角を5px丸くする */
    text-decoration: none;
    /* テキストの下線を非表示 */
    transition: background-color 0.3s ease;
    /* 背景色に0.3秒のトランジションを設定 */
}

/* ボタンのホバー時のスタイル */
.button:hover {
    background-color: #2980b9;
    /* 背景色を少し暗い青に設定 */
}

/* フッターのスタイル */
footer {
    background-color: #2c3e50;
    /* 背景色を設定 */
    color: #bdc3c7;
    /* テキスト色を薄いグレーに設定 */
    text-align: center;
    /* テキストを中央揃え */
    padding: 15px 0;
    /* 上下に15pxのパディングを設定 */
    font-size: 0.9em;
    /* フォントサイズを0.9倍に設定 */
    border-top: 1px solid #34495e;
    /* 上側に枠線を設定 */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background-color: #2a445e;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

th, td {
    border: 1px solid #555;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #34495e;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

tr:nth-child(even) {
    background-color: #34495e;
}