/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: system-ui, -apple-system, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    color: #262626;
    background: #fff;
    line-height: 1.5;
    overflow-x: hidden
}

a {
    color: inherit;
    text-decoration: none
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit
}

ul,
ol {
    list-style: none
}

img {
    max-width: 100%;
    display: block
}

/* === CSS VARIABLES === */
:root {
    --blue: #0066CC;
    --yellow: #F9D45B;
    --yellow-hover: #e8c44a;
    --bg-grey: #F2F4F7;
    --bg-light-blue: #F0F9FF;
    --text-dark: #262626;
    --text-grey: #667085;
    --border: #D0D0D0;
    --green: #4CC764;
    --red: #F44336;
    --max-w: 800px;
    --header-h: 60px;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: #fff;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06)
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px
}

.header-logo svg {
    width: 32px;
    height: 32px
}

.header-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2
}

.header-logo-text .jp {
    font-size: 14px;
    font-weight: 700;
    color: var(--blue)
}

.header-logo-text .en {
    font-size: 11px;
    font-weight: 600;
    color: var(--blue)
}

.hamburger {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 4px
}

.hamburger span {
    display: block;
    height: 2px;
    background: #262626;
    border-radius: 2px
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: calc(var(--header-h) + 20px) 24px 40px;
    background: linear-gradient(180deg, rgba(200, 215, 240, .85) 0%, rgba(180, 200, 230, .75) 100%);
    overflow: hidden
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(200, 215, 240, .82) 0%, rgba(180, 200, 230, .7) 50%, rgba(160, 185, 220, .85) 100%);
    z-index: 1
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px
}

.notice-box {
    background: rgba(255, 255, 255, .15);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
    font-size: 14px;
    color: #333;
    line-height: 1.7
}

.notice-box strong {
    display: block;
    margin-bottom: 4px
}

.hero-title {
    font-size: 40px;
    font-weight: 800;
    color: #262626;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: 2px
}

.hero-subtitle {
    font-size: 17px;
    color: #262626;
    margin-bottom: 24px;
    font-weight: 500
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--yellow);
    color: #262626;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 60px;
    border-radius: 9999px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .12), inset 0 -3px 0 rgba(0, 0, 0, .08);
    transition: transform .15s, box-shadow .15s;
    min-width: 280px
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .15), inset 0 -3px 0 rgba(0, 0, 0, .08)
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, .12)
}

.app-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #262626;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    min-width: 170px
}

.app-btn .label {
    text-align: left;
    line-height: 1.3
}

.app-btn .label small {
    font-size: 10px;
    opacity: .8;
    display: block
}

.app-btn .label strong {
    font-size: 14px
}

.app-btn svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0
}

/* === FEATURES === */
.features {
    background: #fff;
    padding: 60px 24px;
    text-align: center
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: var(--max-w);
    margin: 0 auto;
    align-items: center
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px
}

.feature-icon {
    width: 80px;
    height: 80px
}

.feature-icon svg {
    width: 100%;
    height: 100%
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: #262626
}

.feature-desc {
    font-size: 15px;
    color: var(--text-grey)
}

/* === STEPS === */
.steps {
    background: var(--bg-grey);
    padding: 60px 24px;
    text-align: center
}

.steps-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 48px;
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 52px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 16px
}

.step-item {
    text-align: left
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px
}

.step-icon svg {
    width: 100%;
    height: 100%
}

.step-label {
    font-weight: 700;
    margin-bottom: 8px
}

.step-label .num {
    color: var(--blue);
    font-size: 18px;
    margin-right: 8px
}

.step-label .txt {
    font-size: 18px;
    color: #262626
}

.step-desc {
    font-size: 15px;
    color: var(--text-grey);
    line-height: 1.7
}

/* === TRUST === */
.trust {
    background: var(--bg-light-blue);
    padding: 60px 24px;
    text-align: center
}

.trust-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 32px
}

.trust-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto
}

.trust-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center
}

.trust-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 20px
}

.trust-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px
}

.trust-card-icon svg {
    width: 100%;
    height: 100%
}

.trust-card ul {
    text-align: left;
    padding: 0
}

.trust-card li {
    font-size: 15px;
    color: #262626;
    line-height: 1.8;
    padding-left: 16px;
    position: relative
}

.trust-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #262626
}

/* === FAQ === */
.faq {
    background: #fff;
    padding: 60px 24px
}

.faq-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue);
    text-align: center;
    margin-bottom: 40px
}

.faq-list {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px
}

.faq-item .faq-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 4px
}

.faq-item .faq-q {
    font-size: 16px;
    font-weight: 700;
    color: #262626;
    margin-bottom: 6px
}

.faq-item .faq-a {
    font-size: 15px;
    color: var(--text-grey);
    line-height: 1.7
}

/* === SUPPORT === */
.support {
    background: var(--bg-grey);
    padding: 60px 24px;
    text-align: left;
    max-width: var(--max-w);
    margin: 0 auto
}

.support-label {
    font-size: 20px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 8px
}

.support-desc {
    font-size: 15px;
    color: var(--text-grey);
    margin-bottom: 24px;
    line-height: 1.7
}

.support-img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden
}

.support-img svg {
    width: 100%;
    height: auto
}

/* === FOOTER CTA === */
.footer-cta {
    background: var(--blue);
    padding: 60px 24px;
    text-align: center;
    color: #fff
}

.footer-cta .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px
}

.footer-cta .logo svg {
    width: 40px;
    height: 40px
}

.footer-cta .logo-text {
    text-align: left
}

.footer-cta .logo-text .jp {
    font-size: 18px;
    font-weight: 700
}

.footer-cta .logo-text .en {
    font-size: 12px;
    font-weight: 600;
    opacity: .9
}

.footer-cta h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px
}

.footer-cta .sub {
    font-size: 15px;
    opacity: .9;
    margin-bottom: 24px
}

.footer-cta .btn-primary {
    position: relative
}

.footer-cta .btn-primary .hand {
    position: absolute;
    bottom: -8px;
    right: -24px;
    font-size: 28px;
    animation: wave 1.5s infinite
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0)
    }

    25% {
        transform: rotate(20deg)
    }

    50% {
        transform: rotate(-10deg)
    }

    75% {
        transform: rotate(15deg)
    }
}

/* === FOOTER === */
.footer {
    background: #262626;
    color: #fff;
    padding: 24px;
    text-align: center;
    font-size: 13px
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 12px
}

.footer-links a {
    color: #fff;
    opacity: .8;
    font-size: 13px
}

.footer-links a:hover {
    opacity: 1
}

.footer-copy {
    opacity: .6
}

/* === LINE FLOATING BUTTON === */
.line-float {
    position: fixed;
    bottom: 24px;
    right: 16px;
    z-index: 40;
    width: 56px;
    height: 56px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    transition: transform .2s
}

.line-float:hover {
    transform: scale(1.1)
}

.line-float svg {
    width: 32px;
    height: 32px
}

/* === MODAL === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px
}

.modal-overlay.active {
    display: flex
}

.modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    position: relative;
    padding: 24px
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    z-index: 5
}

.modal h3 {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px
}

/* Progress bar */
.progress-bar {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px
}

.progress-bar .step {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #E5E7EB
}

.progress-bar .step.active {
    background: var(--blue)
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600
}

/* Form */
.form-group {
    margin-bottom: 16px
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #262626
}

.form-group label .req {
    color: var(--red);
    margin-right: 2px
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color .2s
}

.form-group input:focus {
    border-color: var(--blue)
}

.consent-box {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.7;
    color: #666
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 15px
}

.checkbox-row input[type=checkbox] {
    width: 20px;
    height: 20px;
    accent-color: var(--blue)
}

.modal-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid #eee
}

.modal-actions .btn-cancel {
    font-size: 16px;
    font-weight: 700;
    color: #262626;
    padding: 12px 24px
}

.modal-actions .btn-submit {
    background: var(--yellow);
    color: #262626;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 48px;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1)
}

/* === MOBILE NAV === */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 90;
    display: none
}

.nav-overlay.active {
    display: block
}

.nav-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: #fff;
    z-index: 91;
    transform: translateX(100%);
    transition: transform .3s;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 0
}

.nav-sidebar.active {
    transform: translateX(0)
}

.nav-sidebar .nav-close {
    align-self: flex-end;
    font-size: 28px;
    margin-bottom: 16px;
    color: #666
}

.nav-sidebar a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    border-bottom: 1px solid #eee
}

/* === POLICY MODAL === */
.policy-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 110;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px
}

.policy-modal.active {
    display: flex
}

.policy-content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px 24px;
    position: relative
}

.policy-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--blue)
}

.policy-content p,
.policy-content li {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 8px
}

.policy-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 24px;
    color: #666;
    cursor: pointer
}

/* === DESKTOP RESPONSIVE === */
@media(min-width:800px) {
    .hero-title {
        font-size: 60px
    }

    .hero-subtitle {
        font-size: 22px
    }

    .features-grid {
        flex-direction: row;
        justify-content: center;
        gap: 60px
    }

    .steps-heading {
        font-size: 32px
    }

    .steps-list {
        flex-direction: row;
        gap: 40px;
        text-align: center
    }

    .step-item {
        flex: 1
    }

    .trust-cards {
        flex-direction: row
    }

    .trust-card {
        flex: 1
    }

    .footer-cta h2 {
        font-size: 36px
    }
}