/*フォントを読み込み*/
@import url("fonts.css");

/*ブラウザ特有のcssを初期化*/
* {
    margin: 0;
    padding: 0;
    font-family: "LINESeedJP", sans-serif;
}

/*html bodyに対するcss ※footerを一番下に表示させるため*/
html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/*ヘッダー全体*/
header {
    position: fixed;
    margin: 0px;
    padding: 0px;
    display: flex;
    width: 100%;
    background-color: #343434;
    align-items: center;
    z-index: 999;
    height: 10vh;
}

main a {
    text-decoration: underline;
}

p {
    line-height: 1.5;
}

/*ヘッダー　タイトル*/
.site_title {
    margin-left: 5%;
    margin-right: auto;
}

/*言語切り替えメニュー*/
select {
    -moz-appearance: menulist;
    -webkit-appearance: menulist;
    appearance: menulist;
    background-color: white;
}
#change-language {
    text-align:center;
    color:black;
}

/*headerタグ内にあるaタグ用*/
.header_a {
    text-decoration: none;
    color: white;
}

/*フッター　全体*/
footer {
    padding: 2%;
    background-color: #343434;
    align-items: center;
    text-align: center;
    color: white;
}

/*footerを除く所を設定する　※footerを常に一番下に表示させるため*/
main {
    flex: 1;
    /*ナビバーと重ならないように調整*/
    margin-top: 10vh;
}

/*ここから下はメインコンテンツのcss*/
#main_pic {
    display: flex;
}

#main_pic iframe {
    width: 100%;
    height: 90vh;
    /* アニメーションに1秒かける */
    transition: opacity 1s, height 1s;
}

/*メインオーバーレイ*/
.overlay {
    position: absolute;
    background-color: #45000069;
    height: 90vh;
    width: 100%;
    backdrop-filter: blur(2px);
    display: table;
    /* 最初は透明にする */
    opacity: 0;
    /* アニメーションに1秒かける */
    transition: opacity 1s, height 1s;

}

.overlay-content p {
    line-height: 7vh;
}

.overlay-content {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    color: white;
}

.overlay-content>a {
    display: inline-block;
}

.main_msg {
    font-size: 3em;
    color: white;
    font-weight: bold;
}

.overlay-content>a>button {
    width: 60vw;
    background-color: #6767675a;
    color: white;
    border-color: white;
}


/*button*/
button {
    text-align: center;
    padding: 20px 0;
    color: #fff;
    background-color: #676767;
    border: 7px solid #313131;
    cursor: pointer;
    font-size: 1.2rem;
    margin: 0.2em;
    display: block;
}

.overlay-content>a>button:hover,
button:hover {
    margin-top: 3px;
    color: #676767;
    background: #ffffff;
    border: 7px solid #313131;
}

/*ここから下はメインコンテンツのcss*/
#about {
    margin: 30px 10% 10px 10%;
    /*text-align: center;*/
    text-decoration: underline;
    background-color: white;
    color: #676767;
}

.info {
    margin-left: 10%;
    margin-right: 10%;
    background-color: white;
    /*text-align: center;*/
}

.info h2 {
    font-size: 1.8em;
}

.info h3 {
    margin: 10px 0;
    font-size: 1.5em;
}

.info_elm {
    margin: 40px 0;
    font-size: 1.3em;
}

.info_elm li {
    font-size: medium;
}

.info_letter {
    margin-bottom: 5%;
}

#info_graph1 {
    width: 100%;
    height: 200px;
    position:relative;
}

#info_graph2 {
    width: 100%;
    height: 400px;
    position:relative;
}

.explanation {
    padding: 25px 0;
}

#google_sagi_pic {
    text-align: center;
}

#table_h3 {
    text-align: center;
}

#info_table1 table,
#info_table2 table {
    border-collapse: collapse;
}

#info_table1 th,
#info_table1 td,
#info_table2 th,
#info_table2 td {
    border: solid 1px #313131;
    text-align: center;
}

#info_table1 caption,
#info_table2 caption {
    text-align: center;
}

#contents {
    padding: 5px 0px 5px 0px;
    /*text-align: center;*/
    text-decoration: underline;
    background-color: #676767;
    color: white;
}

#contents h1 {
    margin-left: 10%;
    margin-right: 10%;
}

#content1 {
    display: flex;
    background-color: #676767;
}

#content2 {
    display: flex;
    background-color: white;
}


/*contentの位置を決めている*/
.letter {
    margin-top: 10%;
    margin-bottom: 10%;
    margin-left: 10%;
    margin-right: auto;
    color: white;
}

.letter h2,
.letter2 h2 {
    font-size: 30px;
}

.letter p,
#letter2 p {
    font-size: 20px;
}

#shape {
    margin-top: 5%;
    margin-bottom: 5%;
    margin-right: 10%;
    margin-left: auto;
    position: relative;
    width: 390px;
    height: 500px;
    background-color: white;
}

/*ボタンの上にあるイメージ画像位置調整*/
.shape_pic {
    position: absolute;
    top: 5%;
    left: 9%;
    right: 10%;
    bottom: 40%;
}

/*それぞれのコンテンツに飛ぶためのボタン*/
.shape_link,
.shape_link2 {
    text-decoration: none;
}

.shape_link {
    position: absolute;
    top: 75%;
    left: 15%;
    right: 15%;
    text-align: center;
    padding: 20px 0;
    color: #fff;
    background-color: #676767;
    border: 7px solid #313131;

}

.shape_link:hover {
    margin-top: 3px;
    color: #676767;
    background: #ffffff;
    border: 7px solid #313131;
}

/*content2用の逆転させたやつ*/
#shape2 {
    margin-top: 5%;
    margin-bottom: 5%;
    margin-left: 10%;
    margin-right: auto;
    position: relative;
    width: 390px;
    height: 500px;
    background-color: #676767;
    color: black;
}

.letter2 {
    margin-top: 10%;
    margin-bottom: 10%;
    margin-left: 0%;
    margin-right: auto;
    text-align: left;
}

/*contents2用　それぞれのコンテンツに飛ぶためのボタン*/
.shape_link2 {
    position: absolute;
    top: 75%;
    left: 15%;
    right: 15%;

    text-align: center;
    padding: 20px 0;
    color: #676767;
    background-color: #ffffff;
    border: 7px solid #4a4a4a;
}

.shape_link2:hover {
    margin-top: 3px;
    color: #ffffff;
    background: #676767;
    border: 7px solid #4a4a4a;
}

/*参考元を表示している部分*/
.refer_title {
    margin: 20px 0 10px 0;
}

.refer_link {
    margin: 0 0 0 25px;
}

/*画像はみだし防止*/
img {
    max-width: 100%;
}

/*文字はみだし防止*/
* {
    word-break: break-word;
}

/*デフォルトスタイルに戻す*/
main h1 {
    font-size: 2em;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
}

main h2 {
    display: block;
    font-size: 1.5em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
}

.info h2 {
    margin: 25px 0;
}

/* スマホの場合 */
@media screen and (max-width: 1024px) {

    .site_title {
        font-size: medium;
    }

    /*ハンバーガーメニュー用*/
    /* ハンバーガーのマーク */
    .nav_toggle {
        display: block;
        position: relative;
        width: 1.75rem;
        height: 1.5rem;
        margin-right: 6%;
        z-index: 2;
    }

    .nav_toggle i {
        display: block;
        width: 100%;
        height: 2px;
        background-color: white;
        position: absolute;
        transition: transform 0.5s, opacity 0.5s;
    }

    .nav_toggle i:nth-child(1) {
        top: 0;
    }

    .nav_toggle i:nth-child(2) {
        top: 0;
        bottom: 0;
        margin: auto;
    }

    .nav_toggle i:nth-child(3) {
        bottom: 0;
    }

    /* クリックされた後のハンバーガーのマーク */
    .nav_toggle.show i:nth-child(1) {
        transform: translateY(10px) rotate(-45deg);
    }

    .nav_toggle.show i:nth-child(2) {
        opacity: 0;
    }

    .nav_toggle.show i:nth-child(3) {
        transform: translateY(-12px) rotate(45deg);
    }

    /* クリックで表示されるメニュー：クリックされる前 */
    .nav {
        display: flex;
        position: fixed;
        padding: 20% 0 0 0;
        justify-content: center;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s, visibility 0.5s;
        background-color: #343434;
        z-index: 1;
    }

    .menu-group {
        margin-bottom: 40px;
        list-style: none;
        text-align: center;
        font-size: 25px;
    }

    .menu-group a {
        color: white;
        text-decoration: underline;
    }

    .menu-group a:hover {
        opacity: 0.5;
    }

    /* クリックで表示されるメニュー：クリックされた後 */
    .nav.show {
        opacity: 0.9;
        visibility: visible;
    }

    /*メインメッセージ*/
    .main_msg {
        font-size: 5vw;
        color: white;
        font-weight: bold;
    }

    /*ここから下はメインコンテンツのcss*/
    #contents {
        padding: 5px 0px 5px 0px;
        /*text-align: center;*/
        background-color: #676767;
        color: white;
    }

    #content1,
    #content2 {
        flex-wrap: wrap;
        background-color: #676767;
    }

    #shape,
    #shape2 {
        margin: 0;
        width: 100%;
        height: 100vw;
    }

    #shape2 {
        background-color: white;
    }

    .shape_link2 {
        color: white;
        background-color: #676767;
        border: 7px solid #313131;
    }

    .shape_link2:hover {
        color: #676767;
        background: #ffffff;
        border: 7px solid #313131;
    }

    .shape_pic img {
        width: 100%;
    }

    .letter,
    .letter2 {
        margin-right: 10%;
        margin-left: 10%;
    }

    /*テーブルスクロール*/
    .scroll-table {
        overflow-x: auto;
        white-space: nowrap;
    }

    /*テーブル見やすく*/
    th {
        padding: 0.5em;
    }

    table {
        width: 100%;
    }

    /*グラフ見やすく*/
    canvas {
        width: 100%;
    }

    #pc_ver {
        display: none;
    }

    /*mainのコンテンツ*/
    .flex-on-pc p {
        padding: 25px 0 0 0;
    }
}

/* PCの場合 */
@media screen and (min-width: 1025px) {

    /*ハンバーガーメニュー非表示*/
    .nav_toggle .nav {
        display: none;
    }

    .header_a {
        position: relative;
        left: -4px;
    }

    /*ヘッダー ナビゲーション全体*/
    .nav {
        margin-right: 5%;
    }

    /*ヘッダー　ナビゲーション li*/
    .menu-item {
        list-style: none;
        display: inline-block;
        padding: 5px 10px 5px 10px;
        border-left: 1px solid white;
        border-right: 1px solid white;
    }

    .menu-item :before {
        height: 1px;
    }

    .menu-item a:hover {
        opacity: 0.5;
    }

    /*線が重ならないように隣接するときにはこっちの指定で行くようにする*/
    .menu-item+li {
        border-left: 0;
        border-right: 1px solid white;
    }


    .tables {
        margin: 0 10%;
        display: flex;
        align-items: baseline;
    }

    #info_table1 {
        margin-right: 5%;
    }

    #smartphone_ver {
        display: none;
    }

    /*mainのコンテンツ*/
    .flex-on-pc {
        display: flex;
    }

    .flex-on-pc>img {
        width: 30vw;
    }

    .flex-on-pc p {
        padding: 0 0 0 25px;
    }

    .center-text {
        margin: auto;
    }
}