@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700;900&display=swap');

:root {
    --pochi-color: #FF9800; /* メインカラー：オレンジ */
    --pochi-bg: #FFF3E0;    /* 背景色：薄いオレンジ */
    --pochi-accent: #795548; /* アクセント：ブラウン */
    --text-color: #3E2723;   /* 文字色：こげ茶 */
}

body {
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
    background-color: var(--pochi-bg);
    background-image: repeating-linear-gradient(45deg, #FFE0B2 25%, transparent 25%, transparent 75%, #FFE0B2 75%, #FFE0B2), repeating-linear-gradient(45deg, #FFE0B2 25%, var(--pochi-bg) 25%, var(--pochi-bg) 75%, #FFE0B2 75%, #FFE0B2);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px; /* 元気なチェック柄 */
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.2);
    min-height: 100vh;
    border-radius: 10px; /* 角丸は少し控えめに、スポーティに */
}

/* ヒーローエリア */
.hero { text-align: center; margin-bottom: 60px; padding-top: 40px; }
.hero-image img { 
    width: 220px; height: auto; 
    filter: drop-shadow(5px 5px 0px rgba(255, 152, 0, 0.4)); /* 影をポップに */
    transition: transform 0.3s;
}
.hero-image img:hover { transform: scale(1.1) rotate(-5deg); }

.hero h1 { font-size: 3.5rem; font-weight: 900; color: var(--pochi-color); margin: 0; letter-spacing: 0.05em; text-shadow: 2px 2px 0 #fff; }
.hero p { font-size: 1.1rem; font-weight: 700; color: #8D6E63; margin-top: 10px; }
.hero-voice {
    background: #fff; border: 3px solid var(--pochi-color); color: var(--pochi-color);
    display: inline-block; padding: 10px 30px; border-radius: 10px;
    margin-top: 20px; font-weight: bold; position: relative;
    box-shadow: 3px 3px 0 var(--pochi-accent);
}
.hero-voice::after { /* 吹き出しのしっぽ */
    content: ''; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 10px solid var(--pochi-color);
}

/* 目次 */
.toc {
    background: #fff; padding: 30px; border-radius: 10px;
    border: 2px solid #FFE0B2; margin-bottom: 80px;
}
.toc h2 { margin-top: 0; font-weight: 900; color: var(--pochi-color); text-align: center; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.toc li a {
    display: block; background: #FFF3E0; padding: 10px 15px; border-radius: 5px;
    text-decoration: none; color: #E65100; font-weight: 700; transition: all 0.2s; text-align: center;
    border-bottom: 3px solid #FFCC80;
}
.toc li a:hover { background: var(--pochi-color); color: #fff; border-bottom-color: #E65100; transform: translateY(2px); }
.back-link { text-align: center; margin-top: 20px; }
.back-link a { color: #8D6E63; text-decoration: none; font-size: 0.9rem; font-weight: bold; }

/* 章のデザイン */
.chapter { margin-bottom: 80px; }
.chapter h2 {
    font-size: 2rem; font-weight: 900; color: #fff;
    background: var(--pochi-color);
    padding: 10px 30px; border-radius: 5px;
    display: inline-block; margin-bottom: 30px;
    box-shadow: 4px 4px 0 var(--pochi-accent); /* ブロック感のある影 */
}
.chapter h3 {
    font-size: 1.5rem; font-weight: 700; color: #E65100;
    border-left: 8px solid var(--pochi-color);
    padding-left: 15px; margin-top: 50px;
}

/* プロフィールテーブル */
.profile-table {
    width: 100%; border-collapse: collapse;
    background: #fff; border: 2px solid #FFCC80;
}
.profile-table th, .profile-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid #FFCC80; }
.profile-table th { width: 30%; white-space: nowrap; background: #FFF8E1; color: #BF360C; font-weight: 700; }

/* 詳細ブロック */
.detail-block {
    background: #fff; padding: 20px; margin-bottom: 20px;
    border: 2px solid #FFE0B2; border-radius: 10px;
}
.detail-block h4 { color: var(--pochi-color); margin-top: 0; font-size: 1.2rem; border-bottom: 2px dashed #FFE0B2; display: inline-block; }

/* 関係性リスト */
.relation-box { background: #fff; padding: 20px; border: 3px double #FFCC80; border-radius: 10px; }
.relation-list dt { font-weight: bold; color: #BF360C; margin-top: 20px; font-size: 1.1rem; }
.relation-list dt::before { content: '🐾 '; }
.relation-list dd { margin-left: 0; padding: 10px 15px; background: #FFF8E1; border-radius: 5px; color: #5D4037; }

/* 図鑑 */
.expression-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 25px; }
.expression-item { text-align: center; transition: transform 0.3s; }
.expression-item:hover { transform: scale(1.05); }
.expression-item img {
    width: 100%; height: auto;
    background: #fff; border-radius: 10px;
    border: 3px solid #FFE0B2;
    margin-bottom: 10px;
}
.expression-item p { font-weight: bold; font-size: 0.9rem; color: #E65100; margin: 0; }

/* レスポンシブ */
@media (max-width: 600px) {
    .container { padding: 20px 10px; }
    .hero h1 { font-size: 2.5rem; }
    .profile-table th, .profile-table td { display: block; width: auto; }
    .profile-table th { background: #FFE0B2; }
}