:root {
    --primary-gold: #D4AF37;
    --dark-red: #8B0000;
    --brush-black: #1a1a1a;
    --paper-white: #fcfaf2;
    --text-dark: #2c2c2c;
    --text-light: #f1e4d1;
    --accent-red: #da2431;
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --bg-soft: rgba(212, 175, 55, 0.05);
}

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

body {
    font-family: 'Noto Serif JP', serif;
    background-color: var(--brush-black);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('hero.png');
    background-size: cover;
    background-position: center;
    padding: 20px;
}

.hero-content {
    max-width: 800px;
    animation: fadeInScale 1.5s ease-out;
}

.subtitle {
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--primary-gold);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.title {
    font-family: 'Yuji Mai', serif;
    font-size: 4rem;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
}

.desc {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Buttons */
.btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 4px;
    letter-spacing: 0.1em;
}

.primary-btn {
    background-color: var(--primary-gold);
    color: var(--brush-black);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.primary-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.6);
}

.secondary-btn {
    background-color: var(--accent-red);
    color: white;
}

.secondary-btn:hover {
    background-color: var(--brush-black);
    color: var(--primary-gold);
    box-shadow: 0 0 0 2px var(--primary-gold) inset;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.step {
    width: 100%;
    max-width: 700px;
    background: var(--paper-white);
    color: var(--text-dark);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    animation: slideUp 0.6s ease-out;
}

.hidden {
    display: none !important;
}

/* Questions */
.question-item h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--dark-red);
}

.q-label {
    font-size: 0.8rem;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.opt-alpha {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--dark-red);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 10px;
}

.options-list {
    display: grid;
    gap: 8px;
}

.option-btn {
    text-align: left;
    padding: 20px 25px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

@media (hover: hover) {
    .option-btn:hover {
        background: #f0f0f0;
        border-color: var(--primary-gold);
        transform: translateX(10px);
    }
}

.option-btn:focus {
    outline: none;
}

.option-btn:active {
    background: #fff;
}

.option-btn.is-selected {
    background-color: var(--primary-gold) !important;
    color: var(--brush-black) !important;
    border-color: var(--primary-gold);
    transform: none;
}

.progress-bar {
    margin-top: 40px;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--accent-red);
    width: 0%;
    transition: width 0.3s;
}

/* Loading */
.loading-content {
    text-align: center;
    padding: 60px 0;
}

.ink-circle {
    width: 80px;
    height: 80px;
    border: 4px solid var(--primary-gold);
    border-top: 4px solid var(--dark-red);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1.5s linear infinite;
}

.loading-text {
    font-family: 'Yuji Mai', serif;
    font-size: 1.2rem;
}

/* Result */
.type-header {
    text-align: center;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.type-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--accent-red);
    letter-spacing: 0.3em;
    margin-bottom: 5px;
}

#result-type-name {
    font-family: 'Yuji Mai', serif;
    font-size: 2rem;
    color: var(--dark-red);
    line-height: 1.3;
}

.result-message {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.result-story {
    display: grid;
    gap: 25px;
}

.story-block {
    padding: 20px;
    border-radius: 8px;
    background: var(--bg-soft);
}

.simple-block p {
    text-align: center;
    margin-bottom: 1.5em;
    font-size: 1.1rem;
    line-height: 1.8;
}

.simple-block p:last-child {
    margin-bottom: 0;
}

.intro-block p {
    font-weight: 700;
    text-align: center;
}

.cta-container {
    text-align: center;
    margin-top: 10px;
}

.cta-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    width: auto;
}

/* Roadmap UI */
.roadmap-section h3 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--accent-red);
}

.roadmap-desc {
    text-align: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.roadmap-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.roadmap-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    text-align: center;
    position: relative;
    transition: 0.3s;
}

.step-badge {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--primary-gold);
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.step-theme {
    font-family: 'Yuji Mai', serif;
    font-size: 1.8rem !important;
    margin-bottom: 15px;
    color: var(--brush-black);
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.priority-card {
    border: 2px solid var(--primary-gold);
    background: #fffdf5;
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
    z-index: 2;
    transform: scale(1.02);
}

.priority-card .step-theme {
    color: var(--dark-red);
}

.priority-card .step-badge {
    color: var(--dark-red);
    font-size: 0.9rem;
}

.subtle-card {
    opacity: 0.8;
    background: #fbfbfb;
}

.subtle-card .step-theme {
    font-size: 1.4rem !important;
    opacity: 0.8;
}

.sm-btn {
    padding: 10px 30px;
    font-size: 0.95rem;
}

.outline-btn {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
}

.outline-btn:hover {
    background: var(--primary-gold);
    color: var(--brush-black);
}

.roadmap-footer-note {
    font-size: 0.8rem;
    text-align: center;
    opacity: 0.7;
    margin-top: 15px;
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeInScale 0.8s ease-out;
}

/* Responsive */
@media (max-width: 600px) {
    .title {
        font-size: 2.5rem;
    }

    .step {
        padding: 25px;
    }

    #result-type-name {
        font-size: 1.5rem;
    }

    .step-theme {
        font-size: 1.5rem !important;
    }
}

.nav-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.line-btn {
    background-color: #06C755;
    color: white;
}

/* --- 新しいロードマップUI（可変表示用） --- */
.roadmap-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.roadmap-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
}

.roadmap-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.roadmap-left .step-badge {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #7a0000;
    color: #fff;
    font-weight: 700;
    margin: 0;
}

.roadmap-card.is-first {
    border: 2px solid #7a0000;
}

.roadmap-right {
    color: #666;
    font-size: 14px;
}

.roadmap-card .theme-name {
    font-size: 1.1rem;
    margin: 0;
}