/* 全体リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body全体 */
body {
    font-family: "Noto Sans JP", "Noto Sans Rounded JP", sans-serif;
    background: #fffdf7; /* 薄い黄色ベース */
    color: #3b2e1c;
    font-size: 1.15rem;
    line-height: 1.8;
    position: relative;
}

header {
    display: flex;
    justify-content: center;
    gap: 16px;
}

header a {
    font-size: 1.4rem;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 999px;          /* ボタン感 */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

/* ホバー演出 */
header a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* 背景用ピカチュウタイル */
.pikachu-bg {
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 238, 170, 0.06) 0px,
        rgba(255, 238, 170, 0.06) 40px,
        rgba(255, 240, 200, 0.04) 40px,
        rgba(255, 240, 200, 0.04) 80px
    );
}


/* メイン記事 */
main {
    max-width: 900px;
    margin: 70px auto;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 15px rgba(255, 200, 0, 0.2);
}

/* 見出し */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fd7676;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.15);
}


h2 {
    font-size: 1.4rem;
    color: #fd7676;
    margin: 20px 0 12px;
}

h3 {
    font-size: 1.2rem;
    color: #080808;
    margin: 20px 0 12px;
}

/* 段落 */
p {
    margin-bottom: 16px;
}

/* 強調 */
b,
span[style*="font-weight: bold"] {
    background: rgba(255, 230, 150, 0.3);
    padding: 2px 4px;
    border-radius: 4px;
}

/* 目次 */
/* 目次全体ボックス */
.toc {
    margin: 25px 0 35px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    box-shadow: 0 0 12px rgba(255, 200, 0, 0.25);
    border-left: 4px solid #f5c542; /* ピカチュウイメージの黄色ライン */
}

/* 目次タイトル */
.toc-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f5c542;
    margin-bottom: 12px;
}

/* リンク一覧 */
.toc a {
    display: block;
    margin: 6px 0;
    padding: 8px 12px;
    text-decoration: none;
    font-weight: bold;
    color: #3b2e1c;
    border-radius: 10px;
    
    /* ピカチュウ黄色の優しいハイライト */
    background: rgba(255, 235, 150, 0.3);
    transition: all 0.25s ease;
}

/* ホバー時（ふわっと光る） */
.toc a:hover {
    background: rgba(255, 235, 150, 0.55);
    color: #fd7676; /* h2 見出しと同じ赤 */
    transform: translateX(4px); /* 少しだけ右に動いて“選んだ感” */
}

/* スクロール位置調整（固定ヘッダー対策） */
h2, h3, h1 {
    scroll-margin-top: 90px;
}

html {
  scroll-behavior: smooth;
}

/* 目次も指で押しやすく */
    .toc a {
        padding: 10px 14px;
        font-size: 1.1rem;
    }

.center {
  display: block;
  margin: 0 auto;
  width: 100%; /* 必要なら調整 */
}

@media (max-width: 600px) {
    body {
        font-size: 18px; /* ★ 普段より大きくして読みやすくする */
        line-height: 1.9;
    }

    main {
        max-width: 25em; /* ★ 横幅を25文字に固定 */
        margin: 40px auto;
        padding: 24px 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }
}
