@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;
}

summary {
    cursor: pointer;
}

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;
} .adslot_2 {
  width: 200px;
  height: 200px;
}

/* フッター */
#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開ける */
} article {
  font-size: 16px;
  line-height: 1.7;
}

main ul,
main ol {
    padding-left: 1.5em;
    margin: 1em 0;
} main li {
    margin-bottom: 0.5em;
}

.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;
}











.intro-base {
    margin: 40px 0;
    padding: 20px;
    line-height: 1.8;
    font-size: 0.95rem;
    background-color: #FFF4C2;   /* やや落ち着いたバナナ色 */
    border-left: 6px solid #8B5A2B;  /* 木・樽っぽいブラウン */
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
} .intro-base p {
    margin: 0;
}

/* 目次 */
.toc {
    background: #fffdf4;
    border: 1px solid #e7ddb4;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 30px 0;
} .toc-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 6px;
    border-bottom: 2px solid #d8b74a;
    color: #5b4300;
} .toc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
} .toc-list li {
    margin-bottom: 8px;
} .toc-list a {
    text-decoration: none;
    color: #6b5200;
    font-weight: 500;
    transition: color .2s ease;
} .toc-sub {
    margin-top: 14px;
    font-size: .9rem;
    font-weight: bold;
    color: #8b6a00;
} .toc-links {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px dashed #d8b74a;
    display: flex;
    flex-direction: column;
    gap: 6px;
} .toc-link {
    font-size: .9rem;
    text-decoration: none;
    color: #b66a00;
    font-weight: 500;
}

section {
    margin: 40px 0;
    padding: 0 0 0 18px;
    border-left: 5px solid #8b5a2b;
} .section-title {
    margin: 0 0 20px;
    font-size: 1.2em;
    line-height: 1.4;
    border-bottom: 2px solid #8b5a2b;
    padding-bottom: 6px;
}

#basic-guide ul {
    list-style: disc;
    padding-left: 1.6em;
    margin-top: 16px;
} #basic-guide li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.controls-details {
    margin: 14px 0;
    border: 1px solid #e7ddb4;
    background-color: #fffdf4;
    border-radius: 8px;
    overflow: hidden;
} .controls-details summary {
    padding: 12px 14px;
    background-color: #fff3bf;
    border-left: 4px solid #d8a900;
    color: #5b4300;
    font-weight: bold;
    list-style: none;
} .controls-details summary::before {
    content: "＋ ";
    font-weight: bold;
    color: #8b6a00;
} .controls-details[open] summary::before {
    content: "－ ";
} .controls-details[open] {
    padding-bottom: 10px;
} .controls-details table {
    margin: 10px 0 0;
    border-top: 1px solid #e7ddb4;
}

/* テーブル */
table {
    border-collapse: collapse;
    border: none;
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
} th {
    background-color: #fff3bf;
    color: #5b4300;
    border-bottom: 2px solid #d8b74a;
} td {
    border-bottom: 1px solid #f0e5bf;
}.controls-details th,
.controls-details td {
    padding: 10px 12px;
    vertical-align: middle;
}.controls-details td[colspan="2"] {
    text-align: center;
    font-weight: bold;
    padding: 12px;
}.jump td {
    background-color: #e8f4ff;
}
.jump td[colspan="2"] {
    background-color: #bfe1ff;
}

.attack td {
    background-color: #fff1e6;
}
.attack td[colspan="2"] {
    background-color: #ffd7b8;
}

.weapon-action td {
    background-color: #f3e8ff;
}
.weapon-action td[colspan="2"] {
    background-color: #d9c2ff;
}

.underwater td {
    background-color: #e8fbff;
}
.underwater td[colspan="2"] {
    background-color: #bdefff;
}

.controls-details td[colspan="2"] {
    text-align: center;
    font-weight: bold;
    padding: 12px;
}

/* 通常セクション */
#basic-guide,
#controls,
#tutorial,
#opening,
#k-lumsy,
#entrance,
#stage,
#family,
#kong,
#boss,
#objective {
    background-color: #fffdf4;
    border-radius: 8px;
    padding: 18px 20px 18px 22px;
}

/* 導入・ストーリー */
#introduction,
#story {
    background-color: #fcfaf3;
    border-radius: 8px;
    padding: 18px 20px 18px 22px;
}









/* 幅560px以下の場合 */
@media screen and (max-width: 560px) {
  .title-frame{
    display: block;
  }

  .article-title{
    margin: 10px 0;
  }

    .article-date{
        padding: 0;
        margin: 0 0 20px 0;
        width: 100%;
    }
    
    main {
        margin: 0 10px 50px;
    }

    section {
        margin: 28px 0;
        padding-left: 14px;
    }
    
    p {
        font-size: 15px; /* 締まりが良くなる */
        line-height: 1.7;
        margin-bottom: 18px;
    }

} @media (hover: hover) and (pointer: fine) {

    section {
        transition: 0.15s;
    }

    .controls-details summary:hover {
        text-decoration: underline;
    }

    a:hover {
        text-decoration: underline;
    }

    tr:hover {
        background-color: rgba(255, 230, 120, 0.18);
    }

    .toc-list a:hover {
        color: #d28b00;
    }

    .toc-link:hover {
        color: #d28b00;
    }

} @media (min-width:500px) {
    .adslot_1 {
        width: 468px;
        height: 60px;
    }
} @media (min-width:800px) {
    .adslot_1 {
        width: 728px;
        height: 90px;
    }
}