:root {
    --bg-color: #fdfaf6;
    --primary: #6daea5;
    --primary-dark: #569189;
    --secondary: #eacfb1;
    --text-main: #4a4a4a;
    --text-sub: #7d7d7d;
    --white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.8);
    --border-radius: 20px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --font-main: 'Noto Sans JP', sans-serif;
    --font-accent: 'Zen Maru Gothic', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(109, 174, 165, 0.05) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(234, 207, 177, 0.1) 0, transparent 50%);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
}

.app-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header & Progress */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.logo span {
    font-weight: 400;
    color: var(--text-sub);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.progress-inner {
    width: 20%;
    height: 100%;
    background: var(--primary);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Content Area */
.content-wrapper {
    position: relative;
    min-height: 500px;
}

.screen {
    display: none;
    animation: fadeIn 0.5s ease-out forwards;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.screen-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.step-label {
    display: inline-block;
    padding: 4px 16px;
    background: var(--secondary);
    color: var(--text-main);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h2 {
    font-family: var(--font-accent);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

/* UI Elements */
.hero-content {
    text-align: center;
    padding: 3rem 1rem;
}

.illustration {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.btn {
    padding: 12px 36px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(109, 174, 165, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-sub);
    border: 1px solid #ddd;
    margin-right: 1rem;
}

.btn-line {
    background-color: #06C755;
    color: white;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 320px;
}

.btn-line:hover {
    background-color: #05b34c;
    transform: translateY(-2px);
    color: white;
}

.nav-btns {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* Grid & List Styles */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.option-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.option-card.selected {
    border-color: var(--primary);
    background-color: rgba(109, 174, 165, 0.05);
}

.trait-inputs .input-group {
    margin-bottom: 2rem;
}

textarea {
    width: 100%;
    height: 120px;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: var(--font-main);
    font-size: 1rem;
    resize: none;
    outline: none;
    transition: border-color 0.3s;
}

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

.checkbox-list {
    display: grid;
    gap: 0.8rem;
}

.checkbox-item {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.checkbox-item input {
    margin-right: 1rem;
    width: 18px;
    height: 18px;
}

/* Summary Card */
.summary-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.summary-section {
    margin-bottom: 2rem;
}

.summary-section h3 {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
    padding-bottom: 4px;
    margin-bottom: 1rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--bg-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid var(--secondary);
}

.summary-text {
    white-space: pre-wrap;
    font-size: 0.95rem;
    color: var(--text-main);
}

.support-list {
    list-style: none;
    padding-left: 1.5rem;
}

.support-list li::before {
    content: "✓";
    color: var(--primary);
    margin-right: 8px;
    font-weight: bold;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 4rem;
    padding-bottom: 2rem;
    color: var(--text-sub);
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a:hover {
    text-decoration: underline !important;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    body {
        background: white;
    }
    .app-container {
        padding: 0;
        max-width: 100%;
    }
    .summary-card {
        box-shadow: none;
        border: 1px solid #eee;
    }
}

@media (max-width: 600px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}
