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

:root {
    --mini-color: #FF80AB; /* メインカラー：濃いピンク */
    --mini-bg: #FFF0F5;    /* 背景色：薄いピンク */
    --mini-accent: #FFD700; /* アクセント：黄色 */
    --text-color: #5D4037;  /* 文字色：少し茶色っぽく優しく */
}

body {
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
    background-color: var(--mini-bg);
    background-image: radial-gradient(#F8BBD0 2px, transparent 2px); /* 水玉模様 */
    background-size: 30px 30px;
    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, 128, 171, 0.2);
    min-height: 100vh;
    border-radius: 30px; /* 全体的に丸く */
}

/* ヒーローエリア */
.hero { text-align: center; margin-bottom: 60px; padding-top: 40px; }
.hero-image img { 
    width: 200px; height: auto; 
    filter: drop-shadow(0 5px 10px rgba(255, 128, 171, 0.3));
    animation: floating 3s ease-in-out infinite;
}
@keyframes floating { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

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

/* 目次 */
.toc {
    background: #fff; padding: 30px; border-radius: 20px;
    border: 3px solid #FCE4EC; margin-bottom: 80px;
}
.toc h2 { margin-top: 0; font-weight: 900; color: var(--mini-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: #FFF0F5; padding: 10px 15px; border-radius: 15px;
    text-decoration: none; color: #880E4F; font-weight: 700; transition: all 0.3s; text-align: center;
}
.toc li a:hover { background: var(--mini-color); color: #fff; transform: scale(1.05); }
.back-link { text-align: center; margin-top: 20px; }
.back-link a { color: #888; text-decoration: none; font-size: 0.9rem; }

/* 章のデザイン */
.chapter { margin-bottom: 80px; }
.chapter h2 {
    font-size: 2rem; font-weight: 900; color: #fff;
    background: var(--mini-color);
    padding: 10px 30px; border-radius: 50px;
    display: inline-block; margin-bottom: 30px;
    box-shadow: 0 4px 0 #F06292; /* 立体的なボタン風 */
}
.chapter h3 {
    font-size: 1.5rem; font-weight: 700; color: #EC407A;
    border-bottom: 3px dotted var(--mini-color);
    padding-bottom: 5px; margin-top: 50px;
}

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

/* 詳細ブロック */
.detail-block {
    background: #fff; padding: 20px; border-radius: 15px; margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); border-left: 5px solid var(--mini-color);
}
.detail-block h4 { color: var(--mini-color); margin-top: 0; font-size: 1.2rem; }

/* 関係性リスト */
.relation-box { background: #fff; padding: 20px; border-radius: 15px; border: 2px dashed #F8BBD0; }
.relation-list dt { font-weight: bold; color: #EC407A; margin-top: 15px; }
.relation-list dt::before { content: '♥ '; color: var(--mini-color); }
.relation-list dd { margin-left: 0; padding-left: 1.5em; color: #666; }

/* 図鑑 */
.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: translateY(-5px) rotate(5deg); }
.expression-item img {
    width: 100%; height: auto;
    background: #fff; border-radius: 20px;
    border: 3px solid #FFF0F5;
    box-shadow: 0 5px 15px rgba(255, 128, 171, 0.15);
    margin-bottom: 10px;
}
.expression-item p { font-weight: bold; font-size: 0.9rem; color: #EC407A; margin: 0; }

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