@charset "UTF-8";

:root {
    --primary-color: #0044cc;
    --primary-gradient: linear-gradient(135deg, #002288, #0055ff);
    --accent-color: #e6b800;
    --accent-hover: #ffcc00;
    --text-main: #333333;
    --text-light: #666666;
    --bg-color: #f7f9fc;
    --white: #ffffff;
    --border-color: #e0e6ed;
    --shadow: 0 4px 12px rgba(0, 34, 136, 0.08);
}

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

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

.container {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--white);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.screen {
    display: none; 
    padding: 30px 20px;
    animation: fadeIn 0.3s ease-out forwards;
}

.screen.active {
    display: block; 
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.btn {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

button, a {
    min-height: 44px;
}

.primary-btn {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(230, 184, 0, 0.3);
}

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

.secondary-btn {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background: var(--bg-color);
}

.text-btn {
    background: transparent;
    color: var(--text-light);
    font-weight: normal;
}

.text-btn:hover {
    color: var(--primary-color);
}

.hidden {
    display: none !important;
}

#start-screen {
    text-align: center;
    background: var(--primary-gradient);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.start-content .main-title {
    font-size: 24px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.start-content .main-title span {
    font-size: 32px;
    display: block;
    margin-top: 8px;
}

.start-content .catchcopy {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.start-content .time-estimate {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 40px;
}

.progress-container {
    margin-bottom: 30px;
}

.progress-text {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 18px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.question-text {
    font-size: 20px;
    margin-bottom: 24px;
    line-height: 1.5;
}

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

.option-btn {
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--text-main);
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover, .option-btn:active {
    border-color: var(--primary-color);
    background: rgba(0, 68, 204, 0.05);
}

.option-btn.selected {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.back-btn-container {
    margin-top: 30px;
    text-align: center;
}

.result-header {
    text-align: center;
    margin-bottom: 24px;
}

.result-label {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
}

.result-title {
    font-size: 24px;
    color: var(--primary-color);
    line-height: 1.4;
}

.result-box {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
}

.result-description {
    font-size: 15px;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section h3 {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.target-list {
    list-style-type: none;
}

.target-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.target-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.highlight-box {
    background: #fff8e1;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #ffecb3;
}

.highlight-box h3 {
    border-bottom: none;
    color: #b38600;
    margin-bottom: 8px;
}

.cta-area {
    margin: 30px 0;
    text-align: center;
}

.cta-area img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 10px;
}

.restart-container {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 480px) {
    .screen {
        padding: 20px 15px;
    }
    .result-title {
        font-size: 20px;
    }
}