/* -------------------------------------- */
/* 基本設定 */
/* -------------------------------------- */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0; 
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    width:100%;
}

header, nav, main, footer {
    padding: 1rem;
    box-sizing: border-box; /* 崩れ防止 */
}

/* -------------------------------------- */
/* ヘッダー */
/* -------------------------------------- */

/* ヘッダーの黒いフィルター（文字を見やすくする） */
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

header h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin: 0;
    position: relative;
    z-index: 2;
}

/* -------------------------------------- */
/* メインコンテンツ */
/* -------------------------------------- */
/* 記事本文の標準の文字サイズを設定 */
.essay-text {
    font-size: 1.2em; /* 標準より1.2倍大きくする */
    /* あるいは具体的なピクセル値で大きく設定 */
    /* font-size: 20px; */
    
    line-height: 1.8; /* 行間を広げて読みやすくする */
    margin-bottom: 1.5em; /* 段落ごとの下側の余白を広げる */
}

article {
    background-color: #fff;
    padding: 2rem; /* 余白を少し広めに */
    margin-bottom: 1rem;
    border-radius: 5px;
    /* 修正: 文法エラーを直しました */
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1); 
    width:100%;
}

article h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #333; /* 見出しの下線 */
    padding-bottom: 5px;
    font-size: 1.5rem;
}

/* 本文用のスタイル（読みやすく調整） */
.novel-text {
    font-size: 1rem;
    line-height: 1.8; /* 行間を広めに */
    margin-bottom: 1.5rem;
}

/* -------------------------------------- */
/* フッター */
/* -------------------------------------- */
footer{
background-color: #666;
color: #fff;
margin-top: @1rem;
text-align: center;
}

.footer-nav {
    width: 100%;
    color: #fff
    border-bottom: 1px solid #eee; /* 非常に薄い線で区切り */
    padding: 10px 0;
    background-color: #fff;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* 中央に寄せる */
    flex-wrap: wrap; /* スマホで溢れたら改行 */
    gap: 15px; /* 項目間のほどよい距離 */
}

.footer-nav a {
    text-decoration: none;
    color: #666; /* 真っ黒ではなく、少し薄いグレーで主張を抑える */
    font-size: 0.9rem; /* 少し小さめ */
    transition: 0.3s;
}

.footer-nav a:hover {
    color: #000; /* マウスを乗せた時だけ少し濃くなる */
    text-decoration: underline;
}





/* シンプル・ナビゲーションの設定 */
.simple-nav {
    width: 100%;
    border-bottom: 1px solid #eee; /* 非常に薄い線で区切り */
    padding: 10px 0;
    background-color: #fff;
}

.simple-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* 中央に寄せる */
    flex-wrap: wrap; /* スマホで溢れたら改行 */
    gap: 15px; /* 項目間のほどよい距離 */
}

.simple-nav a {
    text-decoration: none;
    color: #666; /* 真っ黒ではなく、少し薄いグレーで主張を抑える */
    font-size: 0.9rem; /* 少し小さめ */
    transition: 0.3s;
}

.simple-nav a:hover {
    color: #000; /* マウスを乗せた時だけ少し濃くなる */
    text-decoration: underline;
}

/* 小説などの本文に集中できるよう、上下の余白を調整 */
main {
    margin-top: 20px;
    width:100%;
}

/* -------------------------------------- */
/* スマホ対応 (レスポンシブ) */
/* -------------------------------------- */
@media screen and (max-width: 600px) {
    header {
        height: 200px; /* スマホでは高さを抑える */
     	padding: 15px !important;
        margin: 0 !important;
        border-radius: 0; /* スマホでは角丸をなくすと端が揃いやすい */
        box-shadow: none;
        width:100%;
    }

    header h1 {
        font-size: 1.8rem; /* 文字サイズを小さく */
        
    }

    main{
      padding: 15px !important;
        margin: 0 !important;
        border-radius: 0; /* スマホでは角丸をなくすと端が揃いやすい */
        box-shadow: none;
        width:100%;
    }
   footer {
      width:100%;
    }
   table { 
      max-width: 100%; 
      display: block; 
      overflow-x: auto; 
    }


    /* メインコンテンツ内の余白も統一 */
    article {
        padding: 15px !important;
        margin: 0 !important;
        border-radius: 0; /* スマホでは角丸をなくすと端が揃いやすい */
        box-shadow: none;  /* 影による微細なズレを防ぐ */
    }

    /* 広告(table)の強制フィット */
    article table {
        display: block;
        width: 100% !important;
        overflow-x: auto;
    }
	article img,
	article table,
	article iframe,
	article div {
		max-width: 100% !important;
		height: auto !important;
		box-sizing: border-box;
	}

    
    .breadcrumb {
        flex-wrap wrap;   
    }
    
    .breadcrumb li {
        font-size 0.8rem;
    }

     
    .footer-nav ul {
        flex-direction column;
    }
   

 
   footer {
      width:100%;
    }

 /* nav ul: 縦並びの親要素 */
    .footer-nav ul{
        flex-direction: column; /* リンクを縦に並べる（これが重要） */
        padding: 0; /* paddingをリセット */
        margin: 0;
    }

    /* nav li: 縦並びになったリストアイテム */
    .footer-nav li {
        width: 100%; /* 幅を画面いっぱいに広げる */
        text-align: center; /* テキストを中央寄せ */
        box-sizing: border-box; /* パディングを含めて幅100%にする */
    }

    /* nav li a: クリック可能なエリアを広げる */
    .footer-nav li a{
        display: block; /* リンクをブロック要素にして li の幅いっぱいに広げる */
        padding: 1rem 0; /* 上下のパディングを維持し、左右は0にする */
        margin-bottom: 0; /* margin-bottomをリセット */
    }

    

}