:root {
    --primary: #2C3E50; /* ディープブルー */
    --accent: #E67E22;  /* 落ち着いたオレンジ */
    --bg-color: #Fdfcf8; /* 生成り色 */
    --text-color: #333333;
    --gray-light: #ecf0f1;
    --border-radius: 12px;
    --transition: 0.3s ease;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

.sound-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.sound-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

#app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 80vh;
}

/* 共通ユーティリティ */
.hidden { display: none !important; }
.btn-primary {
    width: 100%;
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: var(--border-radius);
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.1s;
}
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
    background-color: #95a5a6;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.btn-group .btn-primary { margin-top: 0; flex: 1; }
.btn-group .btn-secondary { flex: 1; }

/* LP Section */
#lp-section { text-align: center; padding-top: 40px; }
.lp-content h1 { font-size: 1.8rem; margin-bottom: 10px; }
.sub-copy { font-size: 1rem; color: #666; margin-bottom: 40px; }
.clock-icon { font-size: 5rem; margin-bottom: 30px; animation: float 3s ease-in-out infinite; }
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Form Section */
.wizard-step { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.progress-bar {
    height: 6px;
    background: var(--gray-light);
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 33%;
    transition: width 0.3s ease;
}

.form-group { margin-bottom: 25px; }
label { display: block; font-weight: bold; margin-bottom: 8px; color: var(--primary); }
input[type="time"] {
    width: 100%;
    padding: 12px;
    font-size: 1.2rem;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    box-sizing: border-box;
    background: #fff;
}
input[type="time"]:focus { border-color: var(--primary); outline: none; }

.input-with-check { display: flex; align-items: center; gap: 15px; }
.input-with-check label { margin: 0; font-weight: normal; font-size: 0.9rem; }

/* Range Slider */
.range-wrapper { display: flex; align-items: center; gap: 10px; }
input[type="range"] { flex: 1; height: 6px; -webkit-appearance: none; background: #ddd; border-radius: 5px; outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; background: var(--accent); border-radius: 50%; cursor: pointer; }

/* Symptom Tags */
.tags-container { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-btn {
    padding: 10px 15px;
    border: 1px solid var(--primary);
    background: #fff;
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}
.tag-btn.selected { background: var(--primary); color: #fff; }

/* Result Section */
.chart-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}
.metric-card {
    background: #fff;
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.metric-card h3 { font-size: 0.9rem; margin: 0 0 5px 0; color: #666; }
.metric-card p { font-size: 1.4rem; font-weight: bold; margin: 0; color: var(--primary); }
.metric-card p.small { font-size: 0.7rem; color: #999; font-weight: normal; }

.advice-box {
    background: #eef2f3;
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--accent);
}
.advice-box h3 { margin-top: 0; color: var(--primary); }