@charset "UTF-8";/* 文字コードUTF-8 */

html {
    font-size: 100%;/* ユーザー指定のフォントサイズで表示 */
}

body {
    background-color: #FFFFFF;                              /* サイト全体の背景色 */
    color: #333333;                                         /* サイト全体の文字色 */    
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;     /* サイト全体のフォント */   
}

.container{                             /* フッターをデバイスの一番下に表示させるための4行 */
    display:grid;                           
	grid-template-columns: 1fr;
	grid-template-rows: auto 1fr auto;
	min-height: 100vh;
}

ul {                                    /* リストの点を無くして、余白もなくす */
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

a {                                     /* リンクの下線を無くす */
    text-decoration: none;
}

a:not(.image):hover {                               /* リンクにカーソルを当てたとき文字を薄くする */
    opacity: 0.7;
}

.bold{                                  /* 太字クラス */
    font-weight: bold;
}

.link{                                  /* リンククラス */
    text-decoration: underline;
    font-weight: bold;
}

p:hover{
    background-color: #ffcc33;
}




/* ヘッダー */
#header{
    margin-top: 20px;   /* ヘッダーの上を20px開ける */
}

.site-title{
    font-weight: bold;
    padding: 10px;                              /* タイトルの余白10px */
    display: inline-block;                      /* 無駄な余白を無くす */
    margin: 0 10px;                             /* h3の余白を調整 */
    border: solid 2px rgb(172, 228, 241);     /* 青の線で囲む */
    border-radius: 10%;                         /* 四角を丸くする */
    background-color: rgb(203, 218, 238);     /* 背景に薄い水色 */
}

/* ナビゲーションバー */
#navi {
    background-color: #333;     /* バーの色は黒 */
}

#navi a {
    color: #fff;                /* バーの文字は白 */
}

.navi_frame{
    display: flex;                  /* 横に並べる */
    justify-content: flex-start;    /* 左から並べる */
    padding-left: 20px;             /* 画面左端の余白 */
}

.navi_text {
    font-size: 0.875rem;            /* 文字サイズを調整 */
    padding: 10px 60px 10px 0;      /* 余白を調整 */
}

.title-return{
    margin-left: 20px;              /* 左を20px開ける */
    font-size: 0.8rem;              /* 文字を小さめに表示 */
    margin-bottom: 20px;
}




/* ヘッダーとフッター以外のメインコンテンツ */
main{
    margin: 0 20px 100px;   /* 左右を20px、フッターと100px開ける */
}

.title-frame{
    display: flex;              /* タイトルと日付を横並べする */
}

.article-title{
    font-size: 1.5em;           /* 文字の大きさの調整 */
}

.article-date{                  /* 日付の位置調整 */
    margin: 0px;         
    padding-top: 30px;
    font-size: 0.875rem;        /* 日付のフォントを小さく */
    margin-left: 20px;          /* タイトルと日付の間を開ける */
}




/* ビデオ */
iframe {
    aspect-ratio: 16/9;     /* Youtubeのアスペクト比を16：9に固定 */
} 




/* テーブル */
th,td {
    padding: 10px;
    border: 1px solid black;
} th {
    text-align: center;
} .normal-table {
    text-align: center;
    background-color: white;
} .normal-table .group,
.timeattackTable th {
    background-color: pink;
} .timeattackTable {
    margin-top: 10px;
    margin-bottom: 40px;
} .timeattackTable tr td:nth-child(2) {
    text-align: center;
}




/* 文字 */
.section-title {
    font-size: 1.2em;       /* h2をh3相当の大きさに */
} .video-title {
    font-size: 1.0em;
} #matome ul,
.point {
    list-style-type: disc;
} .before,
.after,
.onlyafter,
.point li {
    font-weight: bold;
} .megaclass {
    color: blue;
}




/* 余白 */
.section-title,
.after {
    margin: 0;
} #video details:first-of-type {
    margin-top: 20px;
} .walkthrough-list {
    padding-left: 20px;
} #matome,
.closelink,
.navigate-frame {
    margin-top: 50px;
} #matome ul {
    margin-left: 20px;
} #matome li,
ol li details,
.point li {
    margin-bottom: 10px;
} #matome h3:not(:first-of-type) {
    margin-top: 40px;
} .before {
    margin-top:100px;
    margin-bottom: 0;
} .onlyafter {
    margin-top: 100px;
} .point {
    padding-left: 20px;
    margin-top: 20px;
} .in-details {
    margin-left: -20px;
    margin-top: 20px;
} .in-details .in-details {
    margin-left: 0px;
}




/* ディスプレイ */
.video-title,
summary h2 {
    display: inline;
} .closelink {
    display: block;
}




/* 枠線 */
section:not(#matome) {
  border: 1px solid black; /* 枠線（1px、黒い実線） */
  padding: 10px; /* 枠線と内容との間隔 */
  margin-bottom: 20px;
} details {
  border: 1px solid black; /* 枠線（1px、黒い実線） */
  padding: 10px; /* 枠線と内容との間隔 */
  margin-bottom: 10px;
  background-color: white;
}




/* マウスオーバー */
.prev-link:hover,
.next-link:hover,
.onlyafter a:hover,
.before a:hover,
.after a:hover,
.closelink:hover {
    text-decoration: underline;
} details[open]:not(#matome details):not(.in-details),
#matome h3:hover,
#matome p:hover,
#matome li:hover,
tr:hover {
    background-color: #bc9e04;
} section:hover,
#matome details[open] {
    background-color: rgba(255,237,179,0.7);
} .point li:hover,
.in-details[open],
.normal-table tr:hover {
    background-color: #ffcc33;
} 









/* フッター */
#footer{
    width: 100%;                                        /* 余白なし */
    border-top: 2px solid rgb(172, 228, 241);         /* ヘッダーと同じ色で上と下に線をつける */
    border-bottom: 2px solid rgb(172, 228, 241);
    background-color: rgb(203, 218, 238);             /* ヘッダーと同じ背景色 */
}

.footer-list{
    display: flex;              /* フッターのコンテンツを横並べ */
    flex-wrap: wrap;            
    justify-content: center;    /* 中央に揃える */
    font-weight: bold;          /* 太字 */
}

.footer-text:not(:last-child)::after {     /* 文字の最後（最後の要素以外）に／をつけて区切る */
    content: "／";
}

.footer-title{
    width: 100%;                /* 100%の幅 */
    text-align: center;         /* 中央揃え */
    margin-bottom: 10px;        /* 下に余白 */
}




/* 幅560px以下の場合 */
@media screen and (max-width: 560px) {
  .title-frame{
    display: block;
  }

  .article-title{
    margin: 10px 0;
  }

  .article-date{
    padding: 0;
    margin: 0 0 50px 0;
  }

    table, thead, tbody, th, td, tr {
        display: block;
    } thead {
        display: none; /* 見出しは非表示にして、ラベル化する */
    }

    tr {
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
        padding: 10px;
        background: #fafafa;
    }

    .normal-table {
    display: table;
}
    .normal-table thead {
        display: table-header-group;
    }
    .normal-table tbody {
        display: table-row-group;
    }
    .normal-table tr {
        display: table-row;
    }
    .normal-table th {
        display: table-cell;
    }
    .normal-table td {
        display: table-cell;
    }

}@media screen and (min-width: 561px) {

    table {
        background-color: white;
    }

    summary:hover {
        color: blue;
        text-decoration: underline;
    }

}