/* ==================================================
   基本設定
================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background-color: #eff2f2;

    color: #000000;

    font-family:
        "Yu Mincho",
        "Hiragino Mincho ProN",
        "Hiragino Mincho Pro",
        "Noto Serif JP",
        serif;
}


/* ==================================================
   HEADER
================================================== */

header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background-color: #eff2f2;
}


/* ==================================================
   上部の色帯
================================================== */

.header-band {
    width: 900px;
    max-width: 100%;

    height: 20px;

    margin: 0 auto;

    background-color: #990000;
}


/* ==================================================
   ナビゲーション
================================================== */

.nav {
    width: 900px;
    max-width: 100%;

    margin: 0 auto;

    background-color: #cccccc;
}

.nav ul {
    display: flex;

    width: 100%;

    margin: 0;
    padding: 0;

    list-style: none;
}

.nav li {
    flex: 1 1 0;

    margin: 0;
    padding: 0;

    text-align: center;
}

.nav a {
    display: block;

    padding: 7px 4px;

    color: #000000;

    text-decoration: none;

    font-weight: bold;

    line-height: 1.4;

    white-space: nowrap;
}


/* マウスオーバー */

.nav a:hover {
    background-color: #999999;

    color: #ff3300;

    text-decoration: underline;
}


/* ==================================================
   ハンバーガーメニュー
================================================== */

/* チェックボックスは非表示 */

.menu-toggle {
    display: none;
}


/* PCでは非表示 */

.menu-button {
    display: none;
}


/* ==================================================
   MAIN
================================================== */

main {
    width: 900px;
    max-width: 100%;

    min-height: calc(100vh - 105px);

    /*
       固定ヘッダー分の余白
       赤帯20px + ナビ約37px
    */
    margin: 57px auto 0;

    padding: 25px 15px;

    background-color: #dbdbdb;
}


/* ==================================================
   main内の本文
================================================== */

/*
   本文はメイリオを主軸とした
   ゴシック系フォント
*/

main p {
    font-family:
        "Meiryo",
        "メイリオ",
        "Hiragino Kaku Gothic ProN",
        "Hiragino Kaku Gothic Pro",
        "Yu Gothic",
        "YuGothic",
        "Noto Sans JP",
        sans-serif;

    line-height: 1.55;
}


/* ==================================================
   main内の画像
================================================== */

/*
   通常画像

   PC・スマホ共通で、
   mainのコンテンツ領域いっぱいに表示。
*/

main img {
    display: block;

    width: 100%;
    max-width: 100%;

    height: auto;

    margin-top: 20px;
    margin-right: auto;
    margin-bottom: 20px;
    margin-left: auto;
}


/*
   原寸表示する画像

   class="original" を付けた画像は
   原寸を優先。

   ただし、表示領域より大きい場合のみ縮小。
*/

main img.original {
    width: auto;

    max-width: 100%;

    height: auto;

    margin-left: auto;
    margin-right: auto;
}

/* ==================================================
   YouTube動画
================================================== */

/*
   YouTube動画は16:9でレスポンシブ表示
*/

.youtube {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    margin: 20px auto;
}


/*
   iframe
*/

.youtube iframe {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    border: 0;
}


/* ==================================================
   見出し
================================================== */

main h1 {
    margin-top: 0;
    margin-bottom: 20px;

    font-size: 32px;

    line-height: 1.4;
}

main h2 {
    margin-top: 10px;
    margin-bottom: 10px;

    font-size: 26px;

    line-height: 1.4;
}

main h3 {
    margin-top: 10px;
    margin-bottom: 12px;

    font-size: 21px;

    line-height: 1.5;
}


/* ==================================================
   FOOTER
================================================== */

footer {
    width: 900px;
    max-width: 100%;

    height: 90px;

    margin: 0 auto;

    background-color: #660000;

    display: flex;

    justify-content: center;
    align-items: center;

    color: #ffffff;

    text-align: center;
}


.footer-inner {
    color: #ffffff;

    text-align: center;

    font-size: 12px;

    line-height: 1.1;
}


/* ==================================================
   スマートフォン
================================================== */

@media screen and (max-width: 767px) {


    /* ------------------------------------------------
       上部の色帯
    ------------------------------------------------ */

    .header-band {
        width: 100%;

        height: 12px;
    }


    /* ------------------------------------------------
       ハンバーガーボタン
    ------------------------------------------------ */

    .menu-button {
        display: flex;

        position: relative;

        width: 100%;
        height: 50px;

        padding: 0 15px;

        align-items: center;
        justify-content: space-between;

        background-color: #cccccc;

        cursor: pointer;
    }


    /* ------------------------------------------------
       スマホ時のサイト名
    ------------------------------------------------ */

    .menu-title {
        color: #000000;

        font-family:
            "Meiryo",
            "メイリオ",
            "Hiragino Kaku Gothic ProN",
            "Hiragino Kaku Gothic Pro",
            "Yu Gothic",
            "YuGothic",
            "Noto Sans JP",
            sans-serif;

        font-size: 16px;

        font-weight: bold;

        line-height: 1;
    }


    /* ------------------------------------------------
       ハンバーガーの三本線
    ------------------------------------------------ */

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        display: block;

        width: 28px;
        height: 3px;

        background-color: #000000;

        transition: all 0.3s ease;
    }


    .hamburger {
        position: relative;
    }


    .hamburger::before,
    .hamburger::after {
        position: absolute;

        left: 0;

        content: "";
    }


    .hamburger::before {
        top: -9px;
    }


    .hamburger::after {
        top: 9px;
    }


    /* ------------------------------------------------
       スマホ用ナビゲーション
    ------------------------------------------------ */

    .nav {
        width: 100%;

        max-height: 0;

        overflow: hidden;

        background-color: #cccccc;

        transition: max-height 0.3s ease;
    }


    .nav ul {
        display: block;
    }


    .nav li {
        border-top: 1px solid #aaaaaa;
    }


    .nav a {
        padding: 13px 15px;

        text-align: left;

        white-space: normal;
    }


    /* スマホのリンクホバー */

    .nav a:hover {
        background-color: #999999;

        color: #ff3300;

        text-decoration: underline;
    }


    /* ------------------------------------------------
       メニューOPEN
    ------------------------------------------------ */

    .menu-toggle:checked ~ .nav {
        max-height: 500px;
    }


    /* ------------------------------------------------
       ハンバーガー → ×
    ------------------------------------------------ */

    .menu-toggle:checked + .menu-button .hamburger {
        background-color: transparent;
    }


    .menu-toggle:checked + .menu-button .hamburger::before {
        top: 0;

        transform: rotate(45deg);
    }


    .menu-toggle:checked + .menu-button .hamburger::after {
        top: 0;

        transform: rotate(-45deg);
    }


    /* ------------------------------------------------
       MAIN
    ------------------------------------------------ */

    main {
        width: 100%;

        min-height: calc(100vh - 97px);

        /*
           12pxの赤帯
           + 50pxのハンバーガー
        */
        margin: 62px auto 0;

        padding: 20px 15px;

        background-color: #dbdbdb;
    }


    /* ------------------------------------------------
       スマホ本文
    ------------------------------------------------ */

    main p {
        line-height: 1.5;
    }


    /* ------------------------------------------------
       スマホ用 見出し
    ------------------------------------------------ */

    main h1 {
        margin-top: 0;
        margin-bottom: 15px;

        font-size: 24px;

        line-height: 1.4;
    }


    main h2 {
        margin-top: 25px;
        margin-bottom: 12px;

        font-size: 20px;

        line-height: 1.45;
    }


    main h3 {
        margin-top: 20px;
        margin-bottom: 10px;

        font-size: 17px;

        line-height: 1.5;
    }


    /* ------------------------------------------------
       スマホ画像
    ------------------------------------------------ */

    /*
       通常画像はmainのコンテンツ領域いっぱい。
       画像独自の左右クリアランスは設けない。
    */

    main img {
        width: 100%;

        max-width: 100%;

        height: auto;

        margin-top: 20px;
        margin-right: auto;
        margin-bottom: 20px;
        margin-left: auto;
    }


    /*
       原寸画像は原寸優先。
       画面に入り切らない場合のみ縮小。
    */

    main img.original {
        width: auto;

        max-width: 100%;

        height: auto;

        margin-left: auto;
        margin-right: auto;
    }


    /* ------------------------------------------------
       FOOTER
    ------------------------------------------------ */

    footer {
        width: 100%;

        height: 85px;
    }


    .footer-inner {
        font-size: 12px;

        line-height: 1.1;
    }

}


/* ==================================================
   小さいスマートフォン
================================================== */

@media screen and (max-width: 768px) {

    main {
        padding: 15px 10px;
    }


    .menu-button {
        height: 48px;
    }


    /*
       通常画像もmainのコンテンツ領域いっぱい
    */

    main img {
        width: 100%;

        max-width: 100%;
    }


    /*
       原寸画像
    */

    main img.original {
        width: auto;

        max-width: 100%;
    }

  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-scroll table {
    min-width: 600px;
  }

}