@charset "UTF-8";

/* === 共通変数 === */
:root {
    --bg-main: #f4f4f4;
    --bg-card: #ffffff;
    --border: #e0e0e0;
    --text-pri: #333333;
    --text-sec: #666666;
    --input-bg: #f9f9f9;

    --brand-green: #2ba640;
    --accent-red: #cc0000;
    --link-blue: #3ea6ff;
}

body.dark-theme {
    --bg-main: #0f0f0f;
    --bg-card: #1f1f1f;
    --border: #333;
    --text-pri: #ffffff;
    --text-sec: #aaaaaa;
    --input-bg: #121212;
}

body {
    margin: 0;
    font-family: 'Roboto Condensed', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-pri);
    display: flex; flex-direction: column; min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body.enable-transition {
    transition: background-color 0.3s, color 0.3s;
}

/* === ヘッダー周り === */
header {
    padding: 15px 20px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: var(--bg-main);
    position: sticky; top: 0; z-index: 200;
    transition: background 0.3s, border-color 0.3s;
}

/* ロゴリンクのスタイル除去用 */
.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-right { display: flex; align-items: center; gap: 15px; }

.menu-btn, .theme-btn {
    background: none; border: none; color: var(--text-pri);
    cursor: pointer; padding: 5px; display: flex; align-items: center; justify-content: center;
    transition: color 0.3s;
}

.material-icons-round { font-size: 28px; }

/* アイコンサイズ調整用 (style="font-size:14px..." の代替) */
.icon-sm {
    font-size: 14px !important;
    vertical-align: middle;
}

/* ハンバーガーアニメーション */
.menu-btn .material-icons-round { transition: transform 0.2s; font-size: 32px; }
.menu-btn.active .material-icons-round { transform: rotate(90deg); }

/* === メニュー === */
.mobile-menu {
    position: fixed; top: 0; right: -100%; width: 250px; height: 100vh;
    background: var(--bg-card); box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    transition: right 0.3s ease; z-index: 150; padding-top: 80px;
    border-left: 1px solid var(--border);
}
.mobile-menu.active { right: 0; }
.menu-list { list-style: none; padding: 0; margin: 0; }

.menu-item a {
    display: block; padding: 15px 25px; color: var(--text-pri);
    text-decoration: none; border-bottom: 1px solid var(--border); font-size: 16px; font-weight: bold;
}

.menu-spacer { margin-top: 30px; border-top: 1px solid var(--border); }

.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 100;
    opacity: 0; visibility: hidden; transition: opacity 0.3s;
}
.menu-overlay.active { opacity: 1; visibility: visible; }

/* === メインレイアウト (style="flex:1..." の代替) === */
.main-container {
    flex: 1;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* === フッター === */
footer {
    background: var(--bg-card); border-top: 1px solid var(--border);
    padding: 20px; text-align: center; font-size: 12px; color: var(--text-sec); margin-top: auto;
}
footer a { color: var(--text-sec); text-decoration: none; }
footer p { margin: 5px 0; }

/* === Infoカード === */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--brand-green);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
}
.info-title {
    color: var(--brand-green);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
}
.info-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-pri);
}
.info-body a { color: var(--link-blue); text-decoration: underline; }