/**
 * More Green LMS — メインスタイル
 * ブランドカラー: #DB7093
 * モバイルファースト設計
 */

/* === CSS Variables === */
:root {
    --brand: #DB7093;
    --brand-light: #FCE4EC;
    --brand-dark: #C4607E;
    --brand-bg: #FFF5F8;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --bg-white: #fff;
    --bg-light: #f9f9f9;
    --bg-page: #f5f5f5;
    --border: #eee;
    --border-strong: #ddd;
    --success: #4CAF50;
    --warning: #FFA726;
    --info: #42A5F5;
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand);
    text-decoration: none;
}
a:hover {
    color: var(--brand-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* === Layout === */
.mg-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

/* === Header === */
.mg-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.mg-header__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}
.mg-header__logo {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
}
.mg-header__nav {
    display: flex;
    gap: 16px;
    margin-left: auto;
    font-size: 13px;
}
.mg-header__nav a {
    color: var(--text-muted);
    padding: 4px 0;
}
.mg-header__nav a:hover,
.mg-header__nav a.active {
    color: var(--brand);
    font-weight: 600;
}

/* === Buttons === */
.mg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.mg-btn:active {
    transform: scale(0.98);
}
.mg-btn--primary {
    background: var(--brand);
    color: #fff;
    width: 100%;
}
.mg-btn--primary:hover {
    background: var(--brand-dark);
}
.mg-btn--primary:disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
}

/* === Cards === */
.mg-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* === Footer === */
.mg-footer {
    text-align: center;
    padding: 32px 16px;
    font-size: 12px;
    color: var(--text-muted);
}

/* === Responsive === */

/* タブレット (max-width: 768px) */
@media (max-width: 768px) {
    .mg-container {
        max-width: 100%;
    }
    .mg-header__inner {
        max-width: 100%;
    }
}

/* スマートフォン (max-width: 600px) */
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }
    .mg-header__logo {
        font-size: 14px;
    }
    .mg-header__nav {
        gap: 10px;
        font-size: 12px;
    }
    .mg-header__nav a {
        padding: 8px 4px; /* タッチ領域拡大 */
    }
    .mg-container {
        padding: 0 12px;
    }
    .mg-btn {
        padding: 14px 24px; /* タップしやすい高さ */
        min-height: 48px;
    }
}

/* タッチデバイス最適化 */
@media (hover: none) and (pointer: coarse) {
    .mg-btn:active {
        transform: scale(0.96);
    }
    a, button {
        -webkit-tap-highlight-color: rgba(219, 112, 147, 0.1);
    }
}
