* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #1a0a1a, #2d0a2d, #1f0a28);
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.7;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* ===== ヘッダー ===== */
header { text-align: center; padding: 24px 0 16px; }

h1 {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(90deg, #e91e63, #ff4081);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 0.9rem;
    color: #aaa;
}

/* ===== スタート画面 ===== */
.start-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
}

.start-desc {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 24px;
    line-height: 1.8;
}

.start-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    font-size: 1.5rem;
}

.start-btn {
    background: linear-gradient(90deg, #e91e63, #ff4081);
    color: #fff;
    border: none;
    padding: 16px 48px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Noto Sans JP', sans-serif;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.4);
}

.start-note {
    font-size: 0.75rem;
    color: #888;
    margin-top: 12px;
}

/* ===== プログレスバー ===== */
.progress-bar {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    background: linear-gradient(90deg, #e91e63, #ff4081);
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.4s ease;
}

.progress-text {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 20px;
}

/* ===== 質問カード ===== */
.question-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    animation: fadeInUp 0.4s ease;
}

.question-text {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 28px;
    line-height: 1.6;
}

.choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.choice-btn {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 18px 20px;
    color: #e0e0e0;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Noto Sans JP', sans-serif;
    text-align: left;
}

.choice-btn:hover {
    border-color: #e91e63;
    background: rgba(233, 30, 99, 0.1);
    transform: translateX(4px);
}

.choice-btn:active {
    transform: scale(0.98);
}

/* ===== 分析中アニメーション ===== */
.analyzing-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 48px 24px;
    text-align: center;
}

.heart-animation {
    font-size: 4rem;
    animation: heartbeat 1.2s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}

.analyzing-text {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #e91e63, #ff4081);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.analyzing-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.analyzing-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e91e63;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.analyzing-dots span:nth-child(2) { animation-delay: 0.2s; }
.analyzing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

.analyzing-sub {
    font-size: 0.85rem;
    color: #888;
}

/* ===== 結果セクション ===== */
.result-section {
    animation: fadeInUp 0.5s ease;
}

.result-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
}

.result-label {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 16px;
}

/* スコア表示 */
.score-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
}

.score-number {
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(90deg, #e91e63, #ff4081);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.score-unit {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff4081;
}

/* ランクバッジ */
.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(233, 30, 99, 0.12);
    border: 2px solid rgba(233, 30, 99, 0.3);
    border-radius: 50px;
    padding: 10px 24px;
    margin-bottom: 24px;
}

.rank-grade {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ff4081;
}

.rank-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e0e0e0;
}

.result-description {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 24px;
    text-align: left;
}

/* モテポイント */
.charm-points-box {
    background: rgba(233, 30, 99, 0.08);
    border: 1px solid rgba(233, 30, 99, 0.2);
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    margin-bottom: 12px;
}

.charm-points-box h3 {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.charm-points-box ul {
    list-style: none;
    font-size: 0.85rem;
    color: #ccc;
}

.charm-points-box ul li {
    padding: 3px 0;
}

.charm-points-box ul li::before {
    content: "♥ ";
    color: #e91e63;
}

/* アドバイス */
.advice-box {
    background: rgba(255, 64, 129, 0.08);
    border: 1px solid rgba(255, 64, 129, 0.2);
    border-radius: 12px;
    padding: 16px;
    text-align: left;
}

.advice-box h3 {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.advice-box p {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.7;
}

/* ===== アクションボタン ===== */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.action-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 12px 8px;
    color: #e0e0e0;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Noto Sans JP', sans-serif;
}

.action-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.btn-x {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-line {
    background: rgba(6, 199, 85, 0.15);
    border-color: rgba(6, 199, 85, 0.4);
    color: #06c755;
}

.btn-line:hover {
    background: rgba(6, 199, 85, 0.25);
}

.btn-copy {
    background: rgba(233, 30, 99, 0.15);
    border-color: rgba(233, 30, 99, 0.3);
}

.btn-retry {
    width: 100%;
}

.share-buttons {
    margin-bottom: 8px;
}

/* ===== 履歴セクション ===== */
.history-section {
    margin-top: 24px;
}

.history-title {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 12px;
    text-align: center;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.history-date {
    font-size: 0.7rem;
    color: #777;
}

.history-score {
    font-size: 1.2rem;
    font-weight: 900;
    color: #ff4081;
}

.history-rank {
    font-size: 0.8rem;
    color: #ccc;
}

/* ===== トースト ===== */
.toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(233, 30, 99, 0.95);
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.85rem;
    transition: bottom 0.3s ease;
    z-index: 100;
    white-space: nowrap;
}

.toast.show {
    bottom: 30px;
}

/* ===== フッター ===== */
footer {
    text-align: center;
    padding: 24px 0;
    font-size: 0.75rem;
    color: #666;
}

.copyright {
    margin-top: 4px;
}

/* ===== アニメーション ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scoreCount {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== レスポンシブ ===== */
@media (max-width: 400px) {
    h1 { font-size: 1.5rem; }
    .score-number { font-size: 3.5rem; }
    .action-buttons { grid-template-columns: 1fr; }
    .question-text { font-size: 1rem; }
}
