@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Kosugi+Maru&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Kosugi Maru', sans-serif;
    background: linear-gradient(180deg, #f8fbfd 0%, #eef4f8 100%);
    color: #2d3748;
    line-height: 1.7;
}

a {
    color: #1a7aad;
}

.wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.site-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.site-header img {
    width: 220px;
    height: auto;
}

.site-header p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: #5a6a7a;
}

.hero {
    background: #fff;
    border: 1px solid #d8e6ef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(42, 92, 122, 0.06);
}

.hero h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.35rem;
    color: #1f5f82;
    margin: 0 0 0.75rem;
    line-height: 1.6;
}

.hero p {
    margin: 0;
    color: #4a5d6b;
    font-size: 0.95rem;
}

.progress {
    margin-bottom: 1.25rem;
}

.progress-text {
    font-size: 0.85rem;
    color: #5a6a7a;
    margin-bottom: 0.4rem;
}

.progress-bar {
    height: 8px;
    background: #dce9f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 25%;
    background: #2b8cbe;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.card {
    background: #fff;
    border: 1px solid #d8e6ef;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(42, 92, 122, 0.06);
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.step h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.15rem;
    color: #1f5f82;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #b8d4e6;
}

.question {
    margin-bottom: 1.5rem;
}

.question legend,
.question > label {
    display: block;
    font-weight: bold;
    color: #2d4f63;
    margin-bottom: 0.6rem;
}

.options label {
    display: block;
    margin: 0.35rem 0;
    padding: 0.55rem 0.75rem;
    border: 1px solid #cfe0eb;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.options label:hover {
    background: #f0f7fb;
}

.options input {
    margin-right: 0.5rem;
}

.options input:checked + span,
.options label:has(input:checked) {
    background: #e8f3f9;
    border-color: #2b8cbe;
}

.options label:has(input:checked) {
    background: #e8f3f9;
    border-color: #2b8cbe;
}

.text-input,
.text-area {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #b8d0df;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: #2d3748;
}

.text-area {
    min-height: 5rem;
    resize: vertical;
}

.field {
    margin-bottom: 1rem;
}

.field label {
    display: block;
    font-weight: bold;
    color: #2d4f63;
    margin-bottom: 0.35rem;
}

.field .note {
    font-size: 0.85rem;
    color: #5a6a7a;
    font-weight: normal;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.7rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary {
    background: #2b8cbe;
    color: #fff;
}

.btn-primary:hover {
    background: #1f6f97;
}

.btn-secondary {
    background: #eef4f8;
    color: #2d4f63;
    border: 1px solid #cfe0eb;
}

.btn-secondary:hover {
    background: #e2edf4;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.disclaimer {
    font-size: 0.8rem;
    color: #6a7a88;
    margin-top: 1rem;
    line-height: 1.6;
}

.error-msg {
    color: #c0392b;
    font-size: 0.9rem;
    margin-top: 0.35rem;
    display: none;
}

.error-msg.show {
    display: block;
}

.thank-you {
    display: none;
}

.thank-you.active {
    display: block;
}

.thank-you h2 {
    font-family: 'Noto Serif JP', serif;
    color: #1f5f82;
    margin-top: 0;
}

.summary-box {
    background: #f0f7fb;
    border-left: 4px solid #2b8cbe;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0 6px 6px 0;
}

.summary-box ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}

.summary-box li {
    margin-bottom: 0.35rem;
}

.site-footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    color: #5a6a7a;
}

@media (max-width: 600px) {
    .nav-buttons {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
    }
}
