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

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

body {
    min-height: 100vh;
    font-family:
        "Noto Sans JP",
        "Yu Gothic",
        "Meiryo",
        sans-serif;

    color: #1749bd;

    background:
        linear-gradient(
            135deg,
            #e6f4ff 0%,
            #b9ddff 45%,
            #edf7ff 100%
        );
}


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

.header {
    width: 100%;
    min-height: 90px;
    padding: 25px 4%;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

    color: #1762f5;
    font-size: 30px;
    font-weight: bold;

    text-decoration: none;
}

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

.header-message {
    color: #1749bd;
    font-size: 14px;
    font-weight: bold;
}


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

.main-container {
    width: 100%;
    max-width: 1500px;
    min-height: calc(100vh - 90px);

    margin: 0 auto;
    padding: 30px 5% 50px;

    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    align-items: center;
    gap: 50px;
}


/* =========================
   左側：紹介エリア
========================= */

.intro-section {
    padding: 20px 0;
}

.intro-subtitle {
    margin-bottom: 10px;

    font-size: 25px;
    line-height: 1.7;
    font-weight: bold;
}

.intro-title {
    margin-bottom: 25px;

    color: #104bd5;
    font-size: clamp(42px, 5vw, 76px);
    font-weight: bold;
    letter-spacing: -2px;
}

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


/* =========================
   サービス紹介
========================= */

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;

    margin-top: 100px;
}

.feature-item {
    min-width: 130px;
}

.feature-icon {
    display: inline-block;

    margin-bottom: 8px;

    color: #ffffff;
    font-size: 30px;
}

.feature-item h2 {
    display: inline-block;

    margin-left: 8px;

    color: #ffffff;
    font-size: 19px;
}

.feature-item p {
    margin-top: 8px;

    color: #ffffff;
    font-size: 12px;
}


/* =========================
   右側：ログインエリア
========================= */

.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 100%;
    max-width: 550px;

    padding: 45px 40px;

    text-align: center;

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

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;

    box-shadow: 0 15px 40px rgba(55, 105, 180, 0.12);
}


/* =========================
   ロゴ・タイトル
========================= */

.login-logo-icon {
    margin-bottom: 5px;

    font-size: 55px;
}

.login-title {
    margin-bottom: 15px;

    color: #1045bd;
    font-size: 34px;
    font-weight: bold;
}

.login-description {
    margin-bottom: 30px;

    color: #47659c;
    font-size: 14px;
    line-height: 1.8;
}


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

.login-form {
    width: 100%;
}

.input-group {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    height: 54px;

    margin-bottom: 14px;

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

    border: 1px solid #d1e2ff;
    border-radius: 12px;

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

.input-group:focus-within {
    border-color: #3777ff;

    box-shadow: 0 0 0 3px rgba(55, 119, 255, 0.12);
}

.input-icon {
    width: 48px;
    flex-shrink: 0;

    color: #7691bd;
    font-size: 21px;
}

.input-group input {
    width: 100%;
    height: 100%;

    padding: 0 10px 0 0;

    color: #244675;
    font-size: 14px;

    background: transparent;

    border: none;
    outline: none;
}

.input-group input::placeholder {
    color: #91a7cc;
}

.password-toggle {
    height: 100%;
    padding: 0 15px;

    color: #7691bd;
    font-size: 19px;

    background: transparent;

    border: none;
    cursor: pointer;
}


/* =========================
   ログインボタン
========================= */

.login-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    width: 100%;
    height: 55px;

    margin-top: 28px;

    color: #ffffff;
    font-size: 17px;
    font-weight: bold;

    background: linear-gradient(
        100deg,
        #2676ff,
        #6570ff
    );

    border: none;
    border-radius: 30px;

    box-shadow: 0 5px 12px rgba(57, 105, 255, 0.15);

    cursor: pointer;

    transition: transform 0.2s, box-shadow 0.2s;
}

.login-button:hover {
    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(57, 105, 255, 0.25);
}

.login-button span {
    font-size: 27px;
}


/* =========================
   パスワード再設定
========================= */

.forgot-password {
    display: inline-block;

    margin-top: 25px;

    color: #1762f5;
    font-size: 13px;
    font-weight: bold;

    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}


/* =========================
   区切り線
========================= */

.divider {
    display: flex;
    align-items: center;
    gap: 20px;

    margin: 35px 0 25px;
}

.divider span {
    height: 1px;
    flex: 1;

    background: #d3e1f7;
}

.divider p {
    color: #8197bd;
    font-size: 13px;
}


/* =========================
   SNSログインボタン
========================= */

.social-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;

    width: 100%;
    height: 49px;

    margin-bottom: 12px;

    color: #36517e;
    font-size: 14px;
    font-weight: bold;

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

    border: 1px solid #c8dcff;
    border-radius: 30px;

    cursor: pointer;

    transition: background-color 0.2s;
}

.social-button:hover {
    background: #ffffff;
}

.google-icon {
    color: #4285f4;
    font-size: 23px;
    font-weight: bold;
}

.line-icon {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 26px;
    height: 26px;

    color: #ffffff;
    font-size: 14px;
    font-weight: bold;

    background: #06c755;
    border-radius: 50%;
}


/* =========================
   新規登録リンク
========================= */

.signup-text {
    margin-top: 35px;

    color: #8197bd;
    font-size: 12px;
}

.signup-text a {
    color: #1762f5;
    font-weight: bold;

    text-decoration: none;
}

.signup-text a:hover {
    text-decoration: underline;
}


/* =========================
   エラーメッセージ
========================= */

.error-message,
.message {
    margin-bottom: 15px;
    padding: 12px;

    color: #c62828;
    font-size: 13px;
    line-height: 1.6;

    background: #fff0f0;

    border: 1px solid #ffd2d2;
    border-radius: 8px;
}


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

@media (max-width: 900px) {

    .header {
        padding: 20px 5%;
    }

    .logo {
        font-size: 24px;
    }

    .header-message {
        display: none;
    }

    .main-container {
        grid-template-columns: 1fr;
        gap: 30px;

        padding: 20px 5% 40px;
    }

    .intro-section {
        text-align: center;
    }

    .intro-subtitle {
        font-size: 20px;
    }

    .intro-title {
        font-size: 48px;
    }

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

    .feature-list {
        justify-content: center;
        gap: 20px;

        margin-top: 35px;
    }

    .feature-item {
        min-width: 100px;
    }

    .feature-item p {
        font-size: 11px;
    }

    .login-card {
        max-width: 550px;
        padding: 35px 25px;
    }
}


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

@media (max-width: 480px) {

    .intro-title {
        font-size: 38px;
    }

    .intro-description br {
        display: none;
    }

    .feature-list {
        gap: 12px;
    }

    .feature-item {
        min-width: 90px;
    }

    .feature-item h2 {
        font-size: 15px;
    }

    .login-card {
        padding: 30px 20px;
        border-radius: 18px;
    }

    .login-title {
        font-size: 29px;
    }

    .login-description {
        font-size: 12px;
    }

    .input-group input {
        font-size: 12px;
    }
}