@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:hover,
details summary:hover{                  /* リンクにカーソルを当てたとき文字を薄くする */
    opacity: 0.7;
    cursor: pointer;
}

details summary::-webkit-details-marker {   /* Safariで表示されるデフォルトの三角形アイコンを消します */
    display: none;
}

.bold{                                  /* 太字クラス */
    font-weight: bold;
}

.link{                                  /* リンククラス */
    text-decoration: underline;
    font-weight: bold;
}




/* ヘッダー */
#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に固定 */
    max-width: 1080px;      /* 最大1080pxまで */
} .short {
    aspect-ratio: 9/16;     /* Youtubeショートのアスペクト比を9：16に固定 */
    max-width: 360px;      /* 最大360pxまで */
} .video-details {
    margin-top: 20px;
}.short-details {
    margin-bottom: 20px;
}

.item {
    margin-top: 40px;       /* 欄の間は40px開ける */
}
.onlysectionfirst {
    margin-bottom: 50px;
}
.close-details {
    margin-top: 40px;       /* 閉じるボタンの上を40px開ける */
    display: block;
} .close-details:hover {
    text-decoration: underline;
} 
.section-title {
    margin: 0;              /* 枠線にフィットするように */
    font-size: 1.2em;       /* section-titleの大きさ調整 */
}
p {
    font-weight: bold;
}
p:hover {
    background-color: #bc9e04;
}

/* 前後リンク */
.onlyafter {
    margin-top: 100px;              /* 次しかない場合 */
    font-weight: bold;
} .onlyafter a:hover {
    text-decoration: underline;
} .before {
    margin-top: 100px;
    margin-bottom: 0;
    font-weight: bold;
} .before a:hover {
    text-decoration: underline;
} .after {
    margin: 0;
    font-weight: bold;
} .after a:hover {
    text-decoration: underline;
}

/* ディスプレイ */
summary h2,
summary h3,
summary h4 {
    display: inline;        /* detailsと横並び */
}

/* 枠線 */
details {
  border: 1px solid black; /* 枠線（1px、黒い実線） */
  padding: 10px; /* 枠線と内容との間隔 */
  margin-bottom: 10px;
  background-color: white;
} section:not(.details-section) {
  border: 1px solid black; /* 枠線（1px、黒い実線） */
  padding: 10px; /* 枠線と内容との間隔 */
}

/* テーブル */
table {
    border-collapse: collapse;     /* 隣接セルは重なる */
    text-align: center;
    width: 100%;
    margin-top: 20px;
    background-color: white;
} th,td {
    padding: 10px;
    border: 1px solid black;
} th {
    text-align: center;
} td a:hover {
    text-decoration: underline;
}









/* 文字 */
h4 {
    font-size: 1.1em;
    font-weight: bold;
    padding-bottom: 10px;
    margin: 40px 0 25px;
} p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px;
    max-width: 750px; /* 横に広がりすぎ防止 */
} .darkcolor h3 {
    text-shadow: 0 0 4px rgba(255,255,255,1),
    1px 1px 4px rgba(255,255,255,1),
    2px 2px 4px rgba(255,255,255,1),
    3px 3px 4px rgba(255,255,255,1),
    -3px -3px 4px rgba(255,255,255,1),
    -2px -2px 4px rgba(255,255,255,1),
    -1px -1px 4px rgba(255,255,255,1);
} .darkcolor p {
    color: white;
} .darkcolor a {
    text-shadow:1px 1px 5px #fcf5f3;
}

/* マウスオーバー&カラー*/
.rockmanmain {
    background-color: lightblue;
} #opening {
  background-color: #37474f; /* ダークスチールは維持 */
} #opening h4 {
  color: #d1c4e9; /* 明るめラベンダーで可読性確保 */
  border-bottom: 4px solid #7e57c2; /* はっきりしたパープル */
} #opening .mark {
  color: #ede7f6; /* 淡い紫白 */
  background-color: rgba(126, 87, 194, 0.35); /* 紫アクセント */
  padding: 2px 4px;
  border-radius: 3px;
} #weather {
  background-color: #99e49d;
} #weather h4 {
  color: #2e7d32; /* 少し明るくしたリーフグリーン */
  border-bottom: 4px solid #aeea00;
} #weather .mark {
  color: #0d3b12;
  background-color: rgba(174, 234, 0, 0.45);
  padding: 2px 4px;
  border-radius: 3px;
} #dinosaur {
  background-color: #2e7d32; /* 深いグリーン */
} #dinosaur h4 {
  color: #c5e1a5; /* 明るい草色 */
  border-bottom: 4px solid #1565c0; /* しっかりした濃い青 */
} #dinosaur .mark {
  color: #0d3b12; /* 文字をより濃い緑に */
  background-color: rgba(165, 214, 167, 0.65); /* 明るめ緑＋不透明度UP */
  padding: 2px 4px;
  border-radius: 3px;
} #deepocean {
  background-color: #0d47a1; /* 深海ブルー */
} #deepocean h4 {
  color: #bbdefb; /* 水の反射光 */
  border-bottom: 4px solid #00bcd4; /* シアンライン */
} #deepocean .mark {
  color: #082567;
  background-color: rgba(0, 188, 212, 0.35);
  padding: 2px 4px;
  border-radius: 3px;
} #volcano {
  background-color: #ef9a9a; /* 淡い赤 */
} #volcano h4 {
  color: #bf360c; /* 濃い溶岩オレンジ */
  border-bottom: 4px solid #e64a19; /* はっきりしたマグマ色 */
} #volcano .mark {
  color: #2b0000;
  background-color: rgba(230, 74, 25, 0.6);
  padding: 2px 4px;
  border-radius: 3px;
} #robot {
  background-color: #cfd8dc; /* 淡いスチールグレー */
} #robot h4 {
  color: #37474f; /* 濃いメタル */
  border-bottom: 4px solid #00acc1; /* エネルギーシアン */
} #robot .mark {
  color: #263238;
  background-color: rgba(0, 172, 193, 0.45);
  padding: 2px 4px;
  border-radius: 3px;
} #computer {
  background-color: #c5cae9; /* 淡いデジタルブルー */
}

#computer h4 {
  color: #1a237e; /* 濃いネイビー */
  border-bottom: 4px solid #00bfa5;
}

#computer .mark {
  color: #0d1b4c;
  background-color: rgba(0, 191, 165, 0.45);
  padding: 2px 4px;
  border-radius: 3px;
}#crystal {
  background-color: #e1bee7; /* 淡いパープル */
}

#crystal h4 {
  color: #4a148c; /* 深い紫 */
  border-bottom: 4px solid #7e57c2;
}

#crystal .mark {
  color: #311b92;
  background-color: rgba(126, 87, 194, 0.45);
  padding: 2px 4px;
  border-radius: 3px;
}#desert {
  background-color: #f0d9b5; /* 淡いサンドカラー */
}

#desert h4 {
  color: #6d4c41; /* 乾いたブラウン */
  border-bottom: 4px solid #a1887f;
}

#desert .mark {
  color: #4e342e;
  background-color: rgba(161, 136, 127, 0.5);
  padding: 2px 4px;
  border-radius: 3px;
}

 .sigmamain {
    background-color: #ff8c1a;
} .sigmastagedetails[open] {
    background-color: #f0a762;
} .sigmastagedetails[open] h4 {
    color: #45751b;
    border-bottom: 3px solid #3f8f14;
} .sigmamain .mark {
  color: #ffffff;
  background-color: #2f4f1a;  /* 深い装甲グリーン */
  padding: 2px 4px;
  border-radius: 3px;
}












/* フッター */
#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;
  } h4 {
    padding-bottom: 8px;
    margin: 30px 0 20px;
  }
  p {
    font-size: 15px; /* 締まりが良くなる */
    line-height: 1.7;
    margin-bottom: 18px;
  }

} @media screen and (min-width: 561px) {

    summary:hover{
        color: blue;
        text-decoration: underline;
    }

}