/* =========================
   基本設定
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        "Noto Sans JP",
        "Yu Gothic",
        Meiryo,
        sans-serif;

    color: #153b70;

    background:
        radial-gradient(
            circle at 20% 20%,
            #c5eaff 0,
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #e5f6ff,
            #c9eaff 55%,
            #eef9ff
        );

    min-height: 100vh;
}

a {
    color: #2782f5;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* =========================
   ヘッダー
========================= */

.header {
    height: 64px;
    padding: 0 40px;

    display: flex;
    align-items: center;
    gap: 24px;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid #d8ebff;

    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #123b78;

    white-space: nowrap;
}

.logo-icon {
    font-size: 30px;
}

.logo-name {
    font-size: 25px;
    font-weight: bold;
}

.header-description {
    font-size: 13px;
    font-weight: bold;

    margin: 0;
}

.login-link {
    margin-left: auto;
    font-weight: bold;
    white-space: nowrap;
}


/* =========================
   メインレイアウト
========================= */

.main-container {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 38px 24px;

    display: grid;

    grid-template-columns:
        minmax(200px, 0.8fr)
        minmax(420px, 1.4fr)
        minmax(250px, 0.9fr);

    gap: 20px;

    align-items: start;
}


/* =========================
   左側の紹介
========================= */

.intro-section {
    padding: 50px 10px 20px;
}

.intro-section h1 {
    color: #1975d2;

    font-size: clamp(25px, 3vw, 38px);

    line-height: 1.6;

    margin: 0 0 25px;

    font-weight: 800;
}

.intro-description {
    font-size: 15px;
    line-height: 2;

    color: #16477f;
}

.handwriting {
    margin-top: 55px;

    color: #2385fa;

    font-size: 22px;
    font-weight: bold;

    line-height: 1.8;

    transform: rotate(-5deg);
}


/* =========================
   登録フォームのカード
========================= */

.signup-card {
    background: rgba(255, 255, 255, 0.97);

    border-radius: 12px;

    padding: 28px 30px;

    box-shadow:
        0 8px 30px rgba(39, 103, 163, 0.12);
}

.signup-card h2 {
    font-size: 29px;
    color: #123d79;

    margin: 0 0 8px;
}

.signup-description {
    font-size: 14px;
    line-height: 1.8;

    margin: 0 0 22px;
}


/* =========================
   入力フォーム
========================= */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: bold;

    color: #173d70;
}

.required {
    color: #ef7777;

    font-size: 11px;

    margin-left: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 42px;

    padding: 0 13px;

    border: 1px solid #cbdff7;

    border-radius: 7px;

    background-color: #fff;

    font-size: 14px;
    color: #23466f;

    outline: none;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.form-group input::placeholder {
    color: #9aafca;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #3689f8;

    box-shadow:
        0 0 0 3px rgba(54, 137, 248, 0.12);
}


/* =========================
   パスワード
========================= */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;

    right: 10px;
    top: 50%;

    transform: translateY(-50%);

    border: none;
    background: transparent;

    cursor: pointer;

    font-size: 16px;
}

.input-help {
    color: #8298b4;
    font-size: 11px;

    margin: 5px 0 0;
}


/* =========================
   基本情報
========================= */

.section-title {
    font-size: 17px;

    color: #173d70;

    margin: 28px 0 18px;

    padding-top: 3px;
}


/* =========================
   生年月日
========================= */

.birthday-select {
    display: grid;

    grid-template-columns:
        1fr 0.8fr 0.8fr;

    gap: 8px;
}


/* =========================
   利用規約
========================= */

.terms-group {
    display: flex;
    align-items: center;

    gap: 10px;

    margin: 24px 0 18px;

    font-size: 12px;
}

.terms-group input[type="checkbox"] {
    width: 19px;
    height: 19px;

    flex-shrink: 0;

    accent-color: #3287f8;
}

.terms-group label {
    line-height: 1.8;
}


/* =========================
   登録ボタン
========================= */

.submit-button {
    width: 100%;
    height: 46px;

    border: none;
    border-radius: 12px;

    background: linear-gradient(
        90deg,
        #3286fa,
        #3985f5
    );

    color: white;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    transition:
        opacity 0.2s,
        transform 0.2s;
}

.submit-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}


/* =========================
   ログイン案内
========================= */

.login-bottom {
    margin-top: 20px;
    padding-top: 15px;

    border-top: 1px solid #dbe8f7;

    text-align: center;

    font-size: 12px;
    line-height: 1.8;
}

.login-bottom a {
    font-weight: bold;
}


/* =========================
   右側の機能紹介
========================= */

.features-card {
    background: rgba(255, 255, 255, 0.72);

    border-radius: 12px;

    padding: 28px 22px;
}

.features-card h2 {
    font-size: 20px;

    margin: 0 0 30px;

    color: #153b70;
}

.feature-item {
    display: flex;
    align-items: flex-start;

    gap: 15px;

    margin-bottom: 35px;
}

.feature-icon {
    width: 60px;
    height: 60px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 25px;

    flex-shrink: 0;
}

.blue-icon {
    background: #d7e8ff;
}

.green-icon {
    background: #c9f4e7;
}

.purple-icon {
    background: #e2dcff;
}

.feature-text h3 {
    font-size: 16px;

    margin: 8px 0;
}

.feature-text p {
    font-size: 12px;
    line-height: 1.9;

    margin: 0;

    color: #42658f;
}

.feature-message {
    margin-top: 55px;

    text-align: center;

    color: #2584f6;

    font-size: 19px;
    font-weight: bold;

    line-height: 1.8;

    transform: rotate(-4deg);
}


/* =========================
   エラー表示
========================= */

.field-error {
    color: #dc4545;

    font-size: 12px;

    margin: 6px 0 0;
}

.error-box {
    padding: 10px 14px;

    background: #fff0f0;

    border: 1px solid #ffcaca;

    border-radius: 7px;

    color: #c93636;

    font-size: 13px;

    margin-bottom: 18px;
}

.error-box p {
    margin: 4px 0;
}

.messages {
    margin-bottom: 15px;
}

.message {
    padding: 10px;

    border-radius: 7px;

    font-size: 13px;
}

.message.success {
    background: #e4f8ed;
    color: #187347;
}


/* =========================
   スマートフォン対応
========================= */

@media (max-width: 1100px) {

    .main-container {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(420px, 1.5fr);

        max-width: 950px;
    }

    .intro-section {
        padding-top: 30px;
    }

    .features-card {
        grid-column: 1 / -1;
    }

    .features-card .feature-item {
        display: inline-flex;

        width: 31%;

        vertical-align: top;
    }

    .feature-message {
        margin-top: 20px;
    }
}


@media (max-width: 700px) {

    .header {
        height: 60px;
        padding: 0 15px;
    }

    .logo-name {
        font-size: 21px;
    }

    .logo-icon {
        font-size: 24px;
    }

    .header-description {
        display: none;
    }

    .main-container {
        display: flex;
        flex-direction: column;

        padding: 18px 12px;

        gap: 20px;
    }

    .intro-section {
        padding: 15px 10px 5px;
    }

    .intro-section h1 {
        font-size: 27px;
    }

    .intro-description {
        font-size: 13px;
    }

    .handwriting {
        display: none;
    }

    .signup-card {
        width: 100%;

        padding: 23px 18px;
    }

    .signup-card h2 {
        font-size: 25px;
    }

    .features-card {
        width: 100%;

        padding: 22px 18px;
    }

    .features-card .feature-item {
        display: flex;
        width: 100%;
    }

    .feature-message {
        margin-top: 25px;
    }

}