/* ベースライン */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
        "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
    background: #0f1115;
    color: #e5e7eb;
    line-height: 1.8;
    font-size: clamp(17px, 1.9vw, 18.5px);
}

input, select, label, p {
    word-break: break-word; 
    overflow-wrap: anywhere; 
}

h1, h2 {
    word-break: keep-all; 
}

section + section {
    border-top: 1px solid rgba(255,255,255,0.04);
}

body, h1, h2, p, li, a {
    word-break: break-word; 
    overflow-wrap: break-word;
}

/* レイアウト */
header {
    padding: 80px 20px;
}

section {
    padding: clamp(64px, 8vw, 120px) 0;
    text-align: center;
}

section:first-of-type {
    padding-top: clamp(56px, 6vw, 80px);
}

section:last-of-type {
    padding-bottom: clamp(100px, 10vw, 120px);
}

section p {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

header a,
#cta a {
    display: inline-block;
    margin: 24px auto 36px;
    max-width: 600px;
    padding: 14px 32px;
    border: 1px solid #9ca3af;
    border-radius: 999px;
    font-size: 1.05em;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

header a:hover,
#cta a:hover {
    background: #9ca3af;
    color: #0f1115;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

header a:active,
#cta a:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

header a:focus-visible,
#cta a:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px #0f1115,
        0 0 0 4px rgba(156,163,175,0.6);
}

main {
    max-width: 960px;
    margin: 0 auto;
}

h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 500;
    margin-bottom: 40px;
}

h1, h2 {
    line-height: 1.4;
}

p {
    font-size: 1rem;
    line-height: 1.8;
    margin-top: 24px;
    margin-bottom: 24px;
}

p + p {
    margin-top: 30px;
}

ul,
ol {
    margin: 0 0 32px 1.2em;
    font-size: 0.95rem;
    text-align: center;
    display: inline-block;
    max-width: 560px;
}

li {
    margin-bottom: 12px;
}

a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

#cta p {
    font-size: 0.95rem;
    max-width: 600px;
}

#cta p:first-of-type {
    color: #f9fafb;
    font-weight: 600;
    font-size: 1.05em;
    line-height: 1.9;
    margin-bottom: 36px;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

header, 
#cta {
    text-align: center;
}

.small,
.note {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.7;
}

/* to-topボタン（ふんわり出現） */
#to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: #9ca3af;
    color: #0f1115;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none; /* 非表示時はクリック不可 */
    
    transition: 
        opacity 0.4s ease,
        transform 0.4s ease,
        box-shadow 0.2s ease;
    
    z-index: 1000;
}

#to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

#to-top:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

@media (prefers-reduced-motion: reduce) {
    #cta a {
        transition: none;
        transform: none;
    }

    #to-top {
        transition: none;
    }
}

/* スマホ対応 */
@media (max-width: 480px) {
    section p,
    ul, ol {
        max-width: 90%; 
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px; 
        line-height: 1.9; 
    }

    section, .container {
        padding-left: 16px; 
        padding-right: 16px;
    }

    p, li {
        word-break: break-word; 
    }
}

#flow {
    line-height: 2.0;
}

#flow ol {
    padding-left: 0;
    list-style-position: inside;
}

#flow strong {
    display: block;
    margin-bottom: 10px;
}

.question label, .container p, section p {
    max-width: 100%;
}

#target {
    text-align: center;
}

.target-list, .safe-list, .first-list {
    list-style: disc;
    display: inline-block;   /* 中央寄せのまま縦揃え */
    text-align: left;        /* 文字は左揃え */
    max-width: 600px;
    margin: 0 auto 24px;
    padding-left: 1.2em;
}

.target-list li {
    margin-bottom: 10px;
    line-height: 1.7;
}






