@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-title,
#x,
#zero,
#x-first,
#x-second,
#zero-first,
#zero-second,
#item-list {
  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;
}


/* フレーム */
.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-first,
#x-second,
#zero-first,
#zero-second {
  padding-top: 12px;
}

#x-second,
#zero-second {
  margin-top: 65px;
  padding-top: 38px;
  border-top: 3px double;
}

.x-frame #x-second {
  border-top-color: #8fbaf2;
}

.zero-frame #zero-second {
  border-top-color: #efaaa5;
}

.x-frame h4,
.zero-frame h4 {
  margin: 12px 0 22px;
  padding: 10px 14px;
  font-size: 1.15rem;
  line-height: 1.55;
  border-left: 6px solid;
  border-radius: 5px;
} .x-frame h4 {
  color: #174f9a;
  background-color: rgba(255, 255, 255, 0.7);
  border-left-color: #3d7ddd;
} .zero-frame h4 {
  color: #982c27;
  background-color: rgba(255, 255, 255, 0.7);
  border-left-color: #dc5147;
}

.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 > div > h5,
.zero-frame > div > h5,
.heading-with-btn h5 {
  margin: 40px 0 14px;
  padding: 0 0 7px;
  font-size: 1.05rem;
  line-height: 1.6;
  border-bottom: 2px solid;
}

.x-frame > div > h5,
.x-frame .heading-with-btn h5 {
  color: #1c4e94;
  border-bottom-color: #95bcec;
}

.zero-frame > div > h5,
.zero-frame .heading-with-btn h5 {
  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;
}


.character-list-guide {
  margin: 24px 0 18px;
  padding: 15px 18px;
  background-color: #fffbea;
  border-left: 5px solid #e4b83f;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
} .character-list-guide p {
  margin: 0;
} .character-list-guide a {
  color: #8b6500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.character-jump {
  display: flex;
  gap: 10px;
  margin: 2rem 0 1.5rem;
}

.character-jump a {
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

/* X */
.character-jump a:first-child {
  background: #4f8dff;
  color: white;
}

/* Zero */
.character-jump a:last-child {
  background: #ff5a4f;
  color: white;
}


.route-note {
  margin: 18px 0 26px;
  padding: 15px 18px;
  border-radius: 7px;
}

.route-note p {
  margin: 0;
}

.route-note p + p {
  margin-top: 12px;
}

.x-frame .route-note {
  background-color: rgba(255, 255, 255, 0.72);
  border-left: 5px solid #4f8dff;
}

.zero-frame .route-note {
  background-color: rgba(255, 255, 255, 0.72);
  border-left: 5px solid #ff675b;
}

.route-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}


.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;
}


.stage-info {
  margin: 24px 0 32px;
  padding: 16px 18px;
  border-radius: 14px;
}

.stage-info h5 {
  margin: 0 0 10px;
  padding: 0 0 8px;
  font-size: 1rem;
  border-bottom: 1px solid;
}

.stage-info ul {
  margin-bottom: 0;
}

.stage-info li {
  margin: 6px 0;
  padding-left: 1.1em;
  text-indent: -1.1em;
}

.stage-info li::before {
  content: "✓";
  margin-right: 0.45em;
  font-weight: bold;
}

.x-frame .stage-info {
  background: rgba(255,255,255,0.72);
  border-left: 6px solid #4f8dff;
  box-shadow: 0 3px 10px rgba(60,110,255,0.10);
}

.x-frame .stage-info h5 {
  color: #2450b8;
  border-bottom-color: #bad2f3;
}

.x-frame .stage-info li::before {
  color: #4f8dff;
}

.x-frame a:not(.yt-btn) {
  color: #155fad;
}

.zero-frame .stage-info {
  background: rgba(255,255,255,0.72);
  border-left: 6px solid #ff6b5c;
  box-shadow: 0 3px 10px rgba(255,90,70,0.10);
}

.zero-frame .stage-info h5 {
  color: #b02020;
  border-bottom-color: #efc0bc;
}

.zero-frame .stage-info li::before {
  color: #ff6b5c;
}

.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 h5 {
  flex: 0 1 auto;
  margin: 0;
  padding: 0 0 7px;
  border-bottom: none;
} .heading-with-btn .yt-btn {
  margin: 0 0 7px;
}


.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;
}

#item-list {
  margin-top: 70px;
}

#item-list h3 {
  margin: 45px 0 18px;
  padding: 8px 12px;
  font-size: 1.15rem;
  color: #174f79;
  background-color: #edf8fd;
  border-left: 5px solid #2991c9;
}


/* テーブル */
.collect-table {
  width: 100%;
  max-width: 1000px;
  margin: 20px 0 45px;
  table-layout: auto;
  text-align: left;
  border-collapse: collapse;
}

.collect-table th,
.collect-table td {
  padding: 10px 12px;
  line-height: 1.6;
  border: 1px solid #aeb8c2;
}

.collect-table thead {
  color: #fff;
  background-color: #2878a8;
}

.collect-table th {
  text-align: center;
}

.collect-table td:first-child,
.collect-table td:nth-child(2) {
  text-align: center;
  white-space: nowrap;
}

/* 強化パーツ名 */
.parts-table td:nth-child(3) {
  font-weight: 500;
}

/* 偶数行 */
.collect-table tbody tr:nth-child(even) {
  background-color: #f5f9fc;
}

.collect-table a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-width: 52px;
  padding: 5px 8px;
  line-height: 1.2;

  background-color: #FF0000;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
}

.collect-table .time {
  margin-top: 2px;
  font-size: 0.75rem;
}

.video-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}







/* 幅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 {
    padding: 9px 10px;
    font-size: 1.05rem;
  }

  .x-frame > div > h5,
  .zero-frame > div > h5,
  .heading-with-btn h5 {
    font-size: 1rem;
  }

  .heading-with-btn {
    align-items: flex-start;
  }

  .route-note,
  .stage-info {
    padding: 13px 12px;
  }

  #x-second,
  #zero-second {
    margin-top: 50px;
    padding-top: 30px;
  }

  .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;
  }

  /* テーブルをカード表示に変更 */
  .collect-table,
  .collect-table thead,
  .collect-table tbody,
  .collect-table tr,
  .collect-table th,
  .collect-table td {
    display: block;
    width: 100%;
  }

  .collect-table {
    border: 0;
  }

  .collect-table thead {
    display: none;
  }

  .collect-table tr {
    margin-bottom: 18px;
    overflow: hidden;
    background-color: #fff !important;
    border: 1px solid #b8c1ca;
    border-radius: 7px;
  }

  .collect-table td {
    display: grid;
    grid-template-columns: 7.5em minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    text-align: left !important;
    white-space: normal !important;
    border: 0;
    border-bottom: 1px solid #d8dde3;
  }

  .collect-table td:last-child {
    border-bottom: 0;
  }

  .collect-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #174f79;
  }

  .collect-table td:nth-child(2) a {
    justify-self: start;
  }

  .video-links {
      justify-content: flex-start;
      flex-wrap: nowrap;
      gap: 6px;
  }

} @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);
    }
    

} @media (min-width:500px) {
    .adslot_1 {
      width: 468px;
      height: 60px;
    }
} @media (min-width:800px) {
    .adslot_1 {
      width: 728px;
      height: 90px;
    }
}