@charset "UTF-8";/* 文字コードUTF-8 */

html {
    font-size: 100%;/* ユーザー指定のフォントサイズで表示 */
}

body {
    background-color: #FFFFFF;                              /* サイト全体の背景色 */
    color: #333333;                                         /* サイト全体の文字色 */    
    font-family: '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;
}

details summary::-webkit-details-marker {   /* Safariで表示されるデフォルトの三角形アイコンを消します */
    display: none;
}

.bold{                                  /* 太字クラス */
    font-weight: bold;
} 

.word {
    white-space: nowrap;
}

/* キーボード選択の枠（Tabキーなど） */
a:focus-visible,
details summary:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}




/* ヘッダー */
#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;
    line-height: 1.6;
}

/* 広告 */
.adbox {
    margin-top: 50px;
    margin-bottom: 50px;
} .adslot_1 {
    width: 320px;
    height: 100px;
}

/* フッター */
#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;        /* 下に余白 */
}

/* ヘッダーとフッター以外のメインコンテンツ */
main{
    margin: 0 20px 100px;       /* 左右を20px、フッターと100px開ける */
}

main ul,
main ol {
    padding-left: 1.5em;
    margin: 1em 0;
} main li {
    margin-bottom: 0.5em;
}

summary {
  font-weight: bold;
  padding: 10px 0;
}

.title-frame{
    display:grid;
    grid-template-columns: 1fr 220px; /* ← 日付専用スペース確保 */
    align-items:end;
    gap:20px;
}

/* タイトル */
.article-title{
    margin:0;
    min-width:0; /* ← 超重要（Grid改行バグ防止） */
    font-size: 1.5em;           /* 文字の大きさの調整 */
} .subtitle {
  display: block;      /* 改行させる */
  font-size: 0.7em;    /* 小さくする */
  font-weight: 500;
  color: #555;
  margin-top: 5px;
} 

/* 日付ブロック */
.article-date{
    white-space:nowrap; /* ← 日付改行禁止 */
} .date-row {
    display: grid;
    grid-template-columns: 7em auto;
    justify-content: end; /* ← 行自体を右へ */
} .date-label {
    text-align: right;    /* ← ラベル右揃え */
} .final-date {
    margin-top: 4px;
}











article {
  font-size: 16px;
  line-height: 1.7;
}

#main-title1,#main-title2,#main-title3,#main-title4,
#final1-x,#final2-x,#final3-x,#final4-x,
#final1-zero,#final2-zero,#final3-zero,#final4-zero
{
  scroll-margin-top: 20px;
}


.intro-base {
  margin: 40px 0;
  padding: 20px;
  line-height: 1.8;
  font-size: 0.95rem;
  background-color: #EAF8FF;
  border-left: 6px solid #1E88C8;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
} .intro-base p {
  margin: 0;
}

/* 秘密研究所目次 */
.laboratory-nav {
    margin: 40px 0 50px;
}

.laboratory-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.laboratory-list li {
    margin: 0;
}

.laboratory-list a {
    display: block;
    padding: 14px 18px;
    text-align: center;
    font-weight: bold;
    color: #174f79;
    background: #EAF8FF;
    border: 2px solid #9FD1EB;
    border-radius: 8px;
    transition: .15s;
}


/* フレーム */
.x-frame,
.zero-frame {
  margin: 2rem 0;
  padding: 0 1rem 1.5rem;
  border-radius: 14px;
} .x-frame {
  background: linear-gradient(180deg, #eef6ff 0%, #dbeafe 100%);
  border: 2px solid #6ea8ff;
} .zero-frame {
  background: linear-gradient(180deg, #fff1f1 0%, #ffe0e0 100%);
  border: 2px solid #ff8a8a;
}

.character-title {
  font-size: 1.25rem;
} .x-frame .character-title {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 1rem;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(90deg, #2e63d3 0%, #5aa7ff 100%);
} .zero-frame .character-title {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 1rem;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(90deg, #c62828 0%, #ff7b47 100%);
}

.x-frame .mark {
  color: #1b3f9c;
  background-color: rgba(80, 140, 255, 0.25);
  padding: 2px 4px;
  border-radius: 3px;
} .zero-frame .mark {
  color: #8f1b1b;
  background-color: rgba(255, 90, 60, 0.28);
  padding: 2px 4px;
  border-radius: 3px;
} 

.x-frame > h4,
.zero-frame > h4,
.heading-with-btn h4 {
  margin: 40px 0 14px;
  padding: 0 0 7px;
  font-size: 1.05rem;
  line-height: 1.6;
  border-bottom: 2px solid;
}

.x-frame > h4,
.x-frame .heading-with-btn h4 {
  color: #1c4e94;
  border-bottom-color: #95bcec;
}

.zero-frame > h4,
.zero-frame .heading-with-btn h4 {
  color: #952e28;
  border-bottom-color: #eba6a0;
}


.section-title {
  margin: 60px 0 28px;
  padding: 12px 16px;
  font-size: 1.35rem;
  line-height: 1.5;
  color: #174f79;
  background-color: #eaf8ff;
  border-left: 7px solid #1e88c8;
  border-bottom: 2px solid #9fd1eb;
  border-radius: 5px;
}

/* エックス・ゼロ攻略の折りたたみ */
.x-details,
.zero-details {
    margin: 20px 0;
}

.x-details > summary,
.zero-details > summary {
    position: relative;
    display: block;
    padding: 14px 48px 14px 18px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
    list-style: none;
    border: 2px solid;
    border-radius: 10px;
    transition:
        background-color 0.15s,
        transform 0.15s;
}

/* エックス */
.x-details > summary {
    color: #1c4e94;
    background-color: #eef6ff;
    border-color: #6ea8ff;
}

/* ゼロ */
.zero-details > summary {
    color: #952e28;
    background-color: #fff1f1;
    border-color: #ff8a8a;
}

/* 右側の開閉アイコン */
.x-details > summary::after,
.zero-details > summary::after {
    content: "＋";
    position: absolute;
    top: 50%;
    right: 18px;
    font-size: 1.35rem;
    line-height: 1;
    transform: translateY(-50%);
}

/* 開いたとき */
.x-details[open] > summary::after,
.zero-details[open] > summary::after {
    content: "－";
}

/* 開いたときのsummary */
.x-details[open] > summary {
    color: #fff;
    background: linear-gradient(90deg, #2e63d3 0%, #5aa7ff 100%);
}

.zero-details[open] > summary {
    color: #fff;
    background: linear-gradient(90deg, #c62828 0%, #ff7b47 100%);
}

/* summaryと攻略フレームをつなげる */
.x-details[open] > summary,
.zero-details[open] > summary {
    margin-bottom: 0;
    border-radius: 10px 10px 0 0;
}

.x-details[open] > .x-frame,
.zero-details[open] > .zero-frame {
    margin-top: 0;
    border-top: 0;
    border-radius: 0 0 14px 14px;
}


.video-details {
  margin: 22px 0 30px;
  padding: 0 12px 0;
  border-radius: 8px;
} .video-details summary {
  position: relative;
  padding-left: 1.4em !important;
  list-style: none;
} .video-details summary::before {
  content: "▶";
  position: absolute;
  left: 0;
  transition: transform 0.15s;
}

.video-details[open] summary::before {
  transform: rotate(90deg);
} iframe {
  aspect-ratio: 16/9;     /* Youtubeのアスペクト比を16：9に固定 */
  max-width: 1080px;      /* 最大1080pxまで */
  width: 100%;
  height: auto;
} .video-details iframe {
  display: block;
  border: 0;
  border-radius: 8px;
  background-color: #000;
} 
.x-frame .video-details {
  border: 1px solid #9bc2ff;
  background-color: rgba(255, 255, 255, 0.55);
} .zero-frame .video-details {
  border: 1px solid #ffb0b0;
  background-color: rgba(255, 255, 255, 0.55);
} .x-frame .video-details summary,
.zero-frame .video-details summary {
  padding: 0.75rem 0.25rem;
  font-weight: bold;
} .x-frame .video-details summary {
  color: #2450b8;
} .zero-frame .video-details summary {
  color: #b22a2a;
}

.x-frame a:not(.yt-btn) {
  color: #155fad;
}

.zero-frame a:not(.yt-btn) {
  color: #b9342c;
}


/* 動画ボタン */
.heading-with-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  margin-bottom: 14px;
  border-bottom: 2px solid;
} .x-frame .heading-with-btn {
  border-bottom-color: #95bcec;
} .zero-frame .heading-with-btn {
  border-bottom-color: #eba6a0;
} .yt-btn {
  display: inline-flex;
  padding: 5px 8px;
  background-color: #FF0000; /* YouTubeレッド */
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.75rem;
  border-radius: 6px;
  transition: 0.15s;
  white-space: nowrap;
  align-items: center;
  gap: 3px;
  margin-bottom: 10px;
} .heading-with-btn h4 {
  flex: 0 1 auto;
  margin: 0;
  padding: 0 0 7px;
  border-bottom: none;
} .heading-with-btn .yt-btn {
  margin: 0 0 7px;
}


/* ボスラッシュ表 */
#bossrush {
  width: 100%;
  margin: 24px 0 32px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 0.95rem;
  background-color: rgba(255, 255, 255, 0.78);
  border: 1px solid #8fb8ea;
  border-radius: 8px;
}

#bossrush th,
#bossrush td {
  padding: 12px 14px;
  line-height: 1.6;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #c8dcf3;
}

#bossrush th {
  color: #fff;
  font-weight: 700;
  background-color: #2e63d3;
}

#bossrush th:first-child,
#bossrush td:first-child {
  width: 48%;
}

#bossrush tbody tr:nth-child(even) {
  background-color: rgba(219, 234, 254, 0.55);
}

#bossrush tbody tr:last-child td {
  border-bottom: none;
}

#bossrush td:last-child {
  color: #1c4e94;
  font-weight: 700;
}


.link-frame {
  margin-top: 50px;
  padding: 16px;
  background-color: rgba(255, 255, 255, 0.72);
  border: 1px solid #ccd5df;
  border-radius: 8px;
}

.link-frame > div {
  padding: 9px 11px;
  background-color: #fff;
  border-radius: 5px;
}

.link-frame a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}


.close-details {
  display: block;
  width: fit-content;
  margin: 35px 0 0 0;
  padding: 6px 10px;
  font-size: 0.85rem;
  color: #555 !important;
  background-color: rgba(255, 255, 255, 0.75);
  border: 1px solid #ccd4dc;
  border-radius: 5px;
}







/* 幅560px以下の場合 */
@media screen and (max-width: 560px) {

  .title-frame{
    display: block;
  }

  .article-date{
    padding: 0;
    margin: 0 0 20px 0;
    width: 100%;
  }

  main {
    margin: 0 10px 50px;
  }

  article {
    font-size: 15px;
  }

  .section-title {
    margin-top: 45px;
    padding: 10px 12px;
    font-size: 1.2rem;
  }

  .x-frame,
  .zero-frame {
    margin: 1.5rem 0;
    padding: 0 10px 18px;
    border-radius: 10px;
  }

  .character-title {
    font-size: 1.15rem;
  }

  .x-frame > h4,
  .zero-frame > h4,
  .heading-with-btn h4 {
    font-size: 1rem;
  }

  .heading-with-btn {
    align-items: flex-start;
  }

  .link-frame {
    display: block;
    padding: 12px;
  }

  .link-frame > div {
    margin-bottom: 8px;
    text-align: left !important;
  }

  .link-frame .reference {
    margin-bottom: 0;
    padding-top: 12px;
  }

  .laboratory-list {
    grid-template-columns: 1fr;
  }

  .x-details > summary,
  .zero-details > summary {
    padding: 12px 42px 12px 14px;
    font-size: 0.95rem;
  }

  .x-details > summary::after,
  .zero-details > summary::after {
    right: 14px;
  }

  #bossrush {
    margin: 20px 0 28px;
    font-size: 0.88rem;
  }

  #bossrush th,
  #bossrush td {
    padding: 10px 8px;
  }

  #bossrush th:first-child,
  #bossrush td:first-child {
    width: 54%;
  }
    

} @media (hover: hover) and (pointer: fine) {

    summary:hover {
      cursor: pointer;
    }

    a:hover {
      text-decoration: underline;
    }

    .yt-btn:hover {
      background-color: #cc0000;
      transform: translateY(-1px);
    }

    .yt-btn:active {
      transform: translateY(0);
    }

    .laboratory-list a:hover {
      background: #D8F0FC;
      text-decoration: none;
    }

    .x-details > summary:hover {
        background-color: #dcecff;
        transform: translateY(-1px);
    }

    .zero-details > summary:hover {
        background-color: #ffe1e1;
        transform: translateY(-1px);
    }

    .x-details[open] > summary:hover {
        background: linear-gradient(90deg, #2759c1 0%, #4898ef 100%);
    }

    .zero-details[open] > summary:hover {
        background: linear-gradient(90deg, #b52222 0%, #ef693b 100%);
    }

    #bossrush tbody tr:hover {
      background-color: #d8eaff;
    }
    

} @media (min-width:500px) {
    .adslot_1 {
      width: 468px;
      height: 60px;
    }
} @media (min-width:800px) {
    .adslot_1 {
      width: 728px;
      height: 90px;
    }
}