@charset "utf-8";

/* 共通部分 */
html {
    font-size: 100%;
    background-color: #f0f0f0;
    /* HTML全体のフォントサイズと背景色を設定 */
}

body {
    font-family: "游ゴシック体", "YuGothic", "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
    line-height: 1.7;
    color: #333;
    margin: 0;
    padding: 0 10px;
    /* ボディ全体のフォント、行間、文字色、余白を設定 */
}

a {
    text-decoration: none;
    color: #37c;
    font-weight: bold;
    /* リンクのデフォルトスタイル設定 */
}

a:hover {
    color: #999;
    /* リンクにホバー時の色を設定 */
}

img {
    max-width: 100%;
    /* 画像の最大幅を親要素に合わせることで、レスポンシブ対応 */
}

/* フォントサイズ */
h1, h2, h3, h4 {
    color: #222;
    font-weight: bold;
    /* 見出し全体の共通スタイル（色と太字）をまとめて設定 */
}

h1 {
    font-size: 2rem;
    /* h1見出しのフォントサイズを設定 */
}

h2 {
    font-size: 1.875rem;
    /* h2見出しのフォントサイズを設定 */
}

h3 {
    font-size: 1.5rem;
    /* h3見出しのフォントサイズを設定 */
}

h4 {
    font-size: 1.25rem;
    /* h4見出しのフォントサイズを設定 */
}

p {
    font-size: 1.125rem;
    line-height: 1.7;
    text-align: justify;
    /* 段落のフォントサイズ、行間、両端揃えを設定 */
}

section, article, aside, nav, header, main, footer {
    display: block;
    /* HTML5のセマンティックタグをブロック要素として表示 */
}

/* ページの枠組み */
.page {
    margin: 0 auto;
    width: 80%;
    max-width: 1200px;
    /* ページ全体の幅を中央寄せにし、最大幅を設定 */
}

.main__nav {
    display: flex;
    font-size: 1.75rem;
    text-transform: uppercase;
    margin: 35px 50px 0;
    border: 1px solid #999;
    background-color: rgba(35, 35, 35, 0.7);
    justify-content: center;
    /* ナビゲーションバーのレイアウトとスタイルを設定 */
}

.main__nav li {
    margin: 0 10px;
    /* ナビゲーション項目の間隔を設定 */
}

.main__nav a {
    color: #FFF;
    /* ナビゲーションリンクの色を白に設定 */
}

.main__nav a:hover {
    text-decoration: underline;
    color: #ED7D31;
    /* ナビゲーションリンクにホバー時の装飾を追加 */
}

.page__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* ヘッダーのレイアウトを設定 */
}

.header__logo {
    margin: 10px 0 0 20px;
    /* ヘッダーロゴの位置調整 */
}

.header__logo img {
    width: 160px;
    height: 160px;
    padding: 10px;
    /* ロゴ画像のサイズと余白を設定 */
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 3rem;
    background-color: rgba(35, 35, 35, 0.7);
    color: #FFF;
    padding: 15px;
    border: none;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    justify-content: center;
    align-items: center;
    line-height: 1;
    box-sizing: border-box;
    z-index: 200;
    /* ハンバーガーメニューアイコンのスタイルを設定 */
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    background-color: rgba(35, 35, 35, 0.9);
    position: absolute;
    top: 80px;
    right: 0;
    z-index: 100;
    width: 200px;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    /* ハンバーガーメニューの初期状態とトランジションを設定 */
}

.hamburger-menu.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
    /* ハンバーガーメニューがアクティブな状態のスタイル */
}

.hamburger-menu a {
    color: #FFF;
    padding: 10px;
    text-decoration: none;
    border-bottom: 1px solid #444;
    /* ハンバーガーメニューのリンクスタイルを設定 */
}

.hamburger-menu a:hover {
    background-color: #ED7D31;
    /* ハンバーガーメニューのリンクにホバー時の背景色を設定 */
}

.nav__logo {
    display: flex;
    justify-content: space-around;
    padding: 10px 5%;
    /* ナビゲーションロゴのレイアウトを設定 */
}

.nav__logo img {
    width: 220px;
    margin: 10px 0;
    padding: 10px;
    /* ロゴ画像のサイズと余白を設定 */
}

.post__title {
    margin-top: 0.5rem;
    /* ポストタイトルの上余白を設定 */
}

.post__text {
    text-indent: 0rem;
    /* 段落の最初の行のインデントを設定 */
}

.post__cat, .past__info {
    text-align: right;
    /* 投稿カテゴリと過去情報のテキストを右揃えに設定 */
}

.schedule img {
    border: 1px solid;
    /* 画像に枠線を追加 */
}

th {
    text-align: center;
    /* テーブルヘッダーのテキストを中央揃えに設定 */
}

.Registration, .fee, .other {
    margin-top: 20px;
    /* 各セクションの上余白を設定 */
}

table {
    width: 1000px;
    border-collapse: collapse;
    margin: 0 auto;
    text-align: center;
    /* テーブルの幅とレイアウト、中央揃えを設定 */
}

th, td {
    border: 1px solid #222;
    /* テーブルのセルに枠線を追加 */
}

.table-wrapper {
    overflow-x: auto;
    margin: 0 auto;
    /* テーブルの横スクロールを許可し、中央寄せに設定 */
}

/* フッター */
footer {
    background: #999;
    padding: 0;
    margin-top: 20px;
    /* フッターの背景色と余白を設定 */
}

footer p {
    color: #FFF;
    text-align: center;
    font-size: 0.875rem;
    /* フッター内のテキストスタイルを設定 */
}

@media (max-width: 1000px) {
    .nav__logo img {
        width: 200px;
        /* 画面幅1000px以下でのロゴ画像のサイズを縮小 */
    }
    .main__nav {
        font-size: 1.5rem;
        /* ナビゲーションフォントサイズを縮小 */
    }
    .page {
        width: 95%;
        /* ページ幅を少し広げる */
    }
    h1 {
        font-size: 1.75rem;
        /* h1見出しのフォントサイズを縮小 */
    }
    h2 {
        font-size: 1.625rem;
        /* h2見出しのフォントサイズを縮小 */
    }
    h3 {
        font-size: 1.375rem;
        /* h3見出しのフォントサイズを縮小 */
    }
    p {
        font-size: 1.125rem;
        /* 段落のフォントサイズを調整 */
    }
}

@media (max-width: 800px) {
    .hamburger {
        display: block;
        /* 画面幅800px以下でハンバーガーメニューを表示 */
    }
    .header__logo, .main__nav {
        width: 100%;
        /* ヘッダーロゴとナビゲーション幅を100%に設定 */
    }
    .page {
        width: 90%;
        padding: 1%;
        /* ページ幅を狭くし、余白を追加 */
    }
    .main__nav {
        display: none;
        /* 通常のナビゲーションを非表示に設定 */
    }
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        /* ヘッダーのレイアウトを調整 */
    }
    .header__logo {
        flex-direction: column;
        align-items: center;
        /* ヘッダーロゴを縦並びに配置 */
    }
    .nav__logo {
        padding: 0 10%;
        justify-content: space-evenly;
        /* ナビゲーションロゴの位置を調整 */
    }
    .nav__logo img {
        width: 180px;
        /* ロゴ画像のサイズを縮小 */
    }
    article, aside {
        width: 100%;
        margin-top: 10px;
        /* 記事とサイドバーの幅を100%にし、上余白を追加 */
    }
    h1 {
        font-size: 1.5rem;
        /* h1見出しのフォントサイズを縮小 */
    }
    h2 {
        font-size: 1.375rem;
        /* h2見出しのフォントサイズを縮小 */
    }
    h3 {
        font-size: 1.25rem;
        /* h3見出しのフォントサイズを縮小 */
    }
    p {
        font-size: 1rem;
        line-height: 1.6;
        /* 段落のフォントサイズと行間を調整 */
    }
}
