body {
    background: #F0FDF4;
    color: #0F172A;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid #D1FAE5;
    padding: 16px;
}

.main-nav a {
    margin-right: 12px;
    color: #065F46;
    text-decoration: none;
}

.hero-section {
    padding: 80px 24px;
    background: linear-gradient(135deg, #ECFDF5, #E0F2FE);
    text-align: center;
}

.hero-image-placeholder {
    width: 100%;
    height: 240px;
    background: #D1FAE5;
    margin-top: 24px;
    border-radius: 16px;
}

.footer {
    background: #022C22;
    color: #ECFDF5;
    padding: 24px;
    text-align: center;
}
/* Footer links */
.footer a { color: #ECFDF5; text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.text-center {
    text-align: center;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* Components */
.section {
    padding: 60px 0;
}

.card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

.character-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.character-name {
    color: #065F46;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.character-desc {
    font-size: 0.95rem;
    color: #64748B;
}

/* キャラクターセクション */
.character-section {
    padding: 64px 24px;
}

.character-section-title {
    text-align: center;
    font-size: 1.8rem;
    color: #065F46;
    margin-bottom: 8px;
}

.character-section-lead {
    text-align: center;
    color: #64748B;
    max-width: 640px;
    margin: 0 auto 32px auto;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.character-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.08);
    border: 1px solid #E5E7EB;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
}

.character-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(15, 118, 110, 0.15);
}

.character-thumb {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 999px;
    margin-bottom: 12px;
}

.character-card h3 {
    margin: 8px 0;
    font-size: 1.1rem;
    color: #065F46;
}

.character-short {
    font-size: 0.9rem;
    color: #64748B;
}

/* モーダル全体（背景 / 黒幕） */
.character-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.2);
    /* ← 透過率を約20%に調整 */
    display: none;
    align-items: center;
    justify-content: center;
    /* ← 右側に寄せる */
    z-index: 1000;
}

/* モーダル表示時（backdrop を表示） */
.character-modal-backdrop.is-open {
    display: flex;
}

/* モーダル本体（スライドイン前の初期状態） */
.character-modal {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    max-width: none;
    /* スライドパネルっぽく少し細めでもOK。好みで調整してね */
    width: 70vw;
    height: 70vh;
    padding: 24px;
    position: relative;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.3);
    border-top: 6px solid #10B981;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    /* スライドイン用の初期位置（画面の右外） */
    transform: translateY(-100%);
    opacity: 0;
    transition:
        transform 0.18s ease-out,
        opacity 0.18s ease-out;
}

/* is-open 時に「横からスッ」と入ってくる */
.character-modal-backdrop.is-open .character-modal {
    transform: translateY(0);
    opacity: 1;
}

/* 閉じるボタン */
.character-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    color: #64748B;
}

.character-modal-close:hover {
    color: #0F172A;
}

/* モーダル内部レイアウトはそのままでOK（以前のままでも可） */
.character-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .character-modal-body {
        flex-direction: row;
    }
}

.character-modal-image-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-modal-image-wrap img {
    max-width: 100%;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
    background: #F0FDF4;
}

.character-modal-content {
    flex: 1;
    padding: 8px 0 0 0;
}

.character-modal-content h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #065F46;
}

.character-modal-content p {
    font-size: 0.95rem;
    color: #0F172A;
}

.character-modal-bgm {
    margin-top: 16px;
    font-size: 0.9rem;
}

.character-modal-bgm a {
    display: inline-block;
    margin-top: 4px;
    color: #0EA5E9;
    text-decoration: none;
    font-weight: 500;
}

.character-modal-bgm a:hover {
    text-decoration: underline;
}

/* --- テーマごとの色指定 --- */

/* ベースは共通（すでにあるやつ） */
.character-modal {
    border-top: 6px solid #10B981;
    /* デフォルト：サイトのグリーン */
}

/* 🌸 マリア：やわらかいピンク系 */
.character-modal.theme-maria {
    border-top-color: #DB2777;
    background: linear-gradient(135deg, rgba(255, 241, 242, 0.6), rgba(255, 255, 255, 0.6));
}

.character-modal.theme-maria .character-modal-content h3 {
    color: #BE185D;
}

/* 🔷 エリカ：落ち着いたブルー系 */
.character-modal.theme-erika {
    border-top-color: #2563EB;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.6), rgba(255, 255, 255, 0.6));
}

.character-modal.theme-erika .character-modal-content h3 {
    color: #1D4ED8;
}

/* 🍀 ナオミ：明るいグリーン系（少しポップ寄せ） */
.character-modal.theme-naomi {
    border-top-color: #16A34A;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.6), rgba(255, 255, 255, 0.6));
}

.character-modal.theme-naomi .character-modal-content h3 {
    color: #15803D;
}

/* 💛 ユリカ：やさしいイエロー系 */
.character-modal.theme-yurika {
    border-top-color: #EAB308;
    background: linear-gradient(135deg, rgba(254, 249, 195, 0.6), rgba(255, 255, 255, 0.6));
}

.character-modal.theme-yurika .character-modal-content h3 {
    color: #CA8A04;
}

.bgm-list {
    margin-top: 6px;
    padding-left: 16px;
}

.bgm-list li {
    margin-bottom: 4px;
}

.bgm-list a {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.08);
    border: 1px solid #E5E7EB;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
}

.bgm-list a:hover {
    text-decoration: underline;
}

.hero-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin-top: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Forest background + Leaves (shared with top page) */
.forest-bg {  min-height: 100vh;  background: radial-gradient(circle at top, #d1fae5 0, #064e3b 60%, #022c22 100%);  position: relative;  overflow: hidden; }
.page-content {  position: relative;  z-index: 10; }
.leaf-layer {  position: fixed;  inset: 0;  pointer-events: none;  z-index: 5; }
.leaf {  position: absolute;  top: -40px;  width: 16px;  height: 16px;  border-radius: 999px;  background: #bbf7d0;  opacity: 0.9;  box-shadow: 0 0 6px rgba(22, 163, 74, 0.5);  animation-name: leaf-fall;  animation-timing-function: linear;  animation-iteration-count: infinite; }
@keyframes leaf-fall {  0% {    transform: translate3d(0, 0, 0) rotate(0deg);    opacity: 0;  }  10% {    opacity: 1;  }  100% {    transform: translate3d(-40px, 110vh, 0) rotate(180deg);    opacity: 0;  } }

/* About page (user‑specified styles) */
.about-section {  padding: 80px 24px;  background: #F0FDF4;  border-radius: 12px; }
.about-title {  text-align: center;  font-size: 2rem;  color: #065F46;  margin-bottom: 32px; }
.about-inner {  max-width: 760px;  margin: 0 auto;  line-height: 1.85;  color: #334155;  font-size: 1.05rem; }
.about-inner p { margin: 0 0 1rem; }
/* About inline picture */
.about-picture {  margin: 32px 0;  text-align: center; }
.about-picture img {  width: 100%;  max-width: 580px;  border-radius: 16px;  box-shadow: 0 8px 22px rgba(0,0,0,0.15); }
.about-picture figcaption {  margin-top: 8px;  font-size: 0.9rem;  color: #475569; }
/* About actions */
.about-actions {  margin-top: 40px;  display: flex;  gap: 16px;  justify-content: center;  flex-wrap: wrap; }
.about-button {  padding: 14px 24px;  background: linear-gradient(135deg, #10B981, #065F46);  color: #fff;  border-radius: 12px;  text-decoration: none;  font-size: 1rem;  transition: 0.2s; }
.about-button:hover {  opacity: 0.85;  transform: translateY(-2px); }
