:root {
    --primary: #00D166;
    --dark: #333333;
    --text-muted: #666666;
    --bg-light: #F8F9FA;
    --border-color: #E2E2E2;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #f0f2f5;
    color: var(--dark);
    line-height: 1.6;
    padding: 20px;
    margin: 0;
}

.container {
    background: #ffffff;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

h1 {
    font-size: 1.5rem;
    text-align: center;
    color: var(--dark);
    margin-bottom: 10px;
}

.description {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 30px;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

textarea {
    width: 100%;
    height: 80px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.char-count {
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
    margin-bottom: 15px;
}

button {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 0;
    width: 100%;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #00b355;
}

.hidden {
    display: none !important;
}

/* --- 結果エリア --- */
.score-container {
    background-color: var(--bg-light);
    border-radius: 12px;
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
}

.score-container h3 {
    margin: 0 0 10px 0;
    color: #4A5568;
    font-size: 1.1rem;
}

.score-display {
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.score-number {
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.score-max {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: bold;
    margin-left: 5px;
}

.chart-container {
    max-width: 500px;
    margin: 0 auto 40px auto;
}

.advice-container h3 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.advice-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary);
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.advice-item.low { border-left-color: #f44336; }
.advice-item.mid { border-left-color: #ff9800; }
.advice-item.high { border-left-color: var(--primary); }

.advice-item h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.advice-status {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.advice-text {
    margin: 0;
    font-size: 1rem;
}

/* --- 広告エリア --- */
.ad-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    margin-bottom: 5px;
}

.ad-banner-top {
    text-align: center;
    margin-bottom: 30px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-height: 90px;
}