/* --- デザインシステム (水色テーマ) --- */
:root {
    --primary-color: #82c0e4;     /* かわいい水色 */
    --primary-light: #e0f2fa;     /* 明るい水色 */
    --background-color: #f7f9fc;  /* 背景色 (ごく薄い青) */
    --surface-color: #ffffff;     /* カードなどの背景色 */
    --text-color: #34495e;        /* 文字色 (ダークブルーグレー) */
    --text-light-color: #8492a6;  /* 淡い文字色 (ブルーグレー) */
    --border-color: #cce4f2;      /* 境界線 (水色系) */
    --accent-color: #fdd835;      /* アクセント (黄色) */
    --radius: 16px;               /* 角丸の半径 (より丸く) */
    --shadow: 0 4px 10px rgba(130, 192, 228, 0.2); /* 影 (ソフト) */
    /* オクターブ表示用の色は以前のものを維持 */
    --high-octave-color: #d93b3b;
    --low-octave-color: #4a80e2;
}

/* --- 基本設定 --- */
* { box-sizing: border-box; }
body {
    font-family: "M PLUS Rounded 1c", "Noto Sans JP", system-ui, sans-serif;
    margin: 0;
    background: var(--background-color);
    color: var(--text-color);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* --- ヘッダー & ナビゲーション (水色テーマ) --- */
/* --- ヘッダー & ナビゲーション (ロゴバージョン) --- */
header {
    background: #fff;
    padding: 1.5rem 0 1rem 0;
    margin-bottom: 2.5rem;
    border-bottom: 3px dashed var(--border-color);
}

.logo-container {
    text-align: center; /* ロゴを中央に配置 */
    margin-bottom: 1.5rem; /* ナビゲーションとの間に余白 */
}

.site-logo {
    max-height: 80%; /* ロゴの最大の高さを指定（ここで調整してください） */
    max-width: 500px;
    width: auto;      /* 幅は自動調整 */
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05); /* ホバー時に少し拡大 */
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.main-nav a {
    text-decoration: none;
    color: var(--text-light-color);
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 50px; /* 錠剤型 */
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.main-nav a:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
    transform: translateY(-3px) scale(1.05);
}
.main-nav a.current {
    color: #fff;
    background-color: var(--primary-color);
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(130, 192, 228, 0.4);
}

/* アイコンが手を振るアニメーション */
@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.main-nav a {
    text-decoration: none;
    color: var(--text-light-color);
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 50px; /* 錠剤型 */
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.main-nav a:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
    transform: translateY(-3px) scale(1.05);
}
.main-nav a.current {
    color: #fff;
    background-color: var(--primary-color);
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(130, 192, 228, 0.4);
}

main { flex: 1; }
main > p {
    color: var(--text-light-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* --- ボタン (水色テーマ) --- */
.btn {
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: var(--radius);
    background: var(--primary-color);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease-out;
    box-shadow: 0 4px 0 #61a5d1; /* ボタンに厚みを出す (暗い水色) */
    text-decoration: none;
    display: inline-block;
}
.btn:hover {
    background-color: #95cbed;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #61a5d1;
}
.btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #61a5d1;
}


/* --- レスポンシブ (共通) --- */
@media(max-width: 768px) {
    .container { padding: 1rem; }
    header h1 { font-size: 1.5rem; }
    .header-icon { font-size: 1.8rem; }
    .site-logo {
        max-height: 100%; /* ロゴの最大の高さを指定（ここで調整してください） */
        max-width: 100%;
        width: auto;      /* 幅は自動調整 */
        transition: transform 0.3s ease;
    }
    .footer-logo {
        max-height: 100%; /* ロゴの最大の高さを指定（ここで調整してください） */
    }
}


/* --- フッター (水色テーマ) --- */
.site-footer {
    padding: 1.5rem 0;
    margin-top: 1rem;
    background-color: #fff;
    border-top: 3px dashed var(--border-color);
    color: var(--text-light-color);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.site-footer p {
    margin: 0;
}

.footer-logo {
    max-height: 70%; /* ロゴの最大の高さを指定（ここで調整してください） */
    max-width: 300px;
    margin-bottom: 1rem;
    margin: 0 auto;
}

/* --- フッターナビゲーション (追加) --- */
.footer-nav {
    margin: 1rem 0;
}
.footer-nav a {
    color: var(--text-light-color);
    text-decoration: none;
    margin: 0 0.75rem;
    transition: color 0.2s;
}
.footer-nav a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --- 静的ページ用コンテンツスタイル (追加) --- */
.article-content {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    background: #fff;
    padding: 2rem 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.article-content h1 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    color: var(--text-color);
}
.article-content h2 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-left: 5px solid var(--primary-color);
    padding-left: 0.8rem;
    color: var(--text-color);
}
.article-content p, .article-content ul {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-color); /* main > p の薄い色を上書き */
}
.article-content ul {
    padding-left: 1.5rem;
}
.article-content li {
    margin-bottom: 0.5rem;
}
.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
}
.article-content a:hover {
    text-decoration: none;
}
.contact-link {
    text-align: center;
    margin: 2rem 0;
}

@media(max-width: 768px) {
    .article-content {
        padding: 1.5rem;
    }
    .article-content h1 {
        font-size: 1.5rem;
    }
    .article-content h2 {
        font-size: 1.2rem;
    }
}