:root {
    --primary: #FF5A5F;
    --primary-dark: #FF385C;
    --bg-color: #F7F7F9;
    --card-bg: #FFFFFF;
    --text-main: #222222;
    --text-sub: #717171;
    --border: #DDDDDD;
    --radius: 16px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    min-height: 100vh;
    box-shadow: var(--shadow);
    position: relative;
    overflow-x: hidden;
}

.hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -0.05em;
}

.hero p {
    font-size: 0.95rem;
    opacity: 0.9;
}

main {
    padding: 2rem 1.5rem;
}

.form-group {
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.form-group > label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

/* Location */
.location-display {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="datetime-local"] {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

input[type="text"]:focus,
input[type="datetime-local"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.1);
}

.hint {
    color: var(--text-sub);
    font-size: 0.8rem;
}

/* Mood Options */
.mood-category {
    margin-bottom: 1.5rem;
}

.category-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-sub);
    margin-bottom: 0.5rem;
}

.mood-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mood-btn {
    position: relative;
    cursor: pointer;
}

.mood-btn input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mood-btn span {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.mood-btn input:checked + span {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(255, 90, 95, 0.3);
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 1rem;
}

.btn-primary:active {
    transform: translateY(2px);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(255, 90, 95, 0.4);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--bg-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 200px;
    height: 6px;
    background: var(--bg-color);
    border-radius: 10px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    animation: loadProgress 10s ease-out forwards;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes loadProgress { 
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 95%; } 
}

/* Result cards */
.plan-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.plan-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.plan-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.plan-card p {
    color: var(--text-sub);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.plan-card a {
    display: inline-block;
    color: white;
    background: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}
