.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 40px;
    box-sizing: border-box;
}

/* LOG IN タイトル */
.login-title {
    text-align: center;
    font-family: "Shippori Mincho B1", serif;
    margin-bottom: 20px;
}
.login-title h2 {
    font-size: 40px;
    margin-bottom: 5px;
}
.login-title .sub {
    margin-top: 5px;
    font-size: 14px;
}


/* =========================
   Grid レイアウト
   ========================= */

.login-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-items: center;
    margin: 0 auto 80px;
    max-width: 1200px;
    padding: 0 40px;
}

/* 左右のセルを個別にずらす */
.left-img {
    justify-self: start;
    align-self: start;
    margin-left: -40px;
    margin-top: -20px;
}

.right-img {
    justify-self: end;
    align-self: end;
    margin-right: -60px;
    margin-top: 150px;
}

/* 左下画像 */
.left-bottom-img {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    align-self: end;
    margin-top: 40px;
    margin-left: 0;
}

/* 小さめのフレーム */
.img-frame.small {
    width: 220px;
}

/* 画像フレーム */
.img-frame {
    background-color: #FFF;
    padding: 20px;
    max-width: 200px;
    border: solid 4px #2f2f2f;
    box-shadow: inset -10px 10px 20px -10px #777, -10px 10px 20px -10px #777;
}
.img-frame .imgBox { background:#000; }
.img-frame .imgBox img {
    width: 100%;
    aspect-ratio: 340 / 480;
    object-fit: cover;
}

/* 中央フォーム */
.center-form {
    z-index: 2;
}
.login-box {
    width: 500px;
    padding: 2rem;
    background: rgba(0,0,0,0.15);
    border-radius: 6px;
}

.img-frame .imgBox {
    width: 100%;
    background: #000;
}
.img-frame .imgBox img {
    aspect-ratio: 340 / 480;
    object-fit: cover;
    display: block;
}

/* -------------------------
   中央フォーム
   ------------------------- */
.login-center {
    flex: 0 0 500px;
}

/* 入力系 */
label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
}
input[type=email],
input[type=password] {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: none;
    font-size: 16px;
    margin-bottom: 18px;
}

/* Remember me */
.remember_me {
    margin: 5px 0 20px;
}
.remember_me label {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* ログインボタン */
.submit-box {
    text-align: center;
}
.login-btn button {
    width: 180px;
    padding: 10px 0;
    border-radius: 20px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}
.login-btn button:hover {
    background: #fff;
    color: #000;
}

.password-forgot {
    margin-top: 0.5rem;
    display: flex;
    padding-left: 2rem;
}


/* ラベル・インプット */
label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
}

input[type=email],
input[type=password] {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: none;
    font-size: 16px;
    margin-bottom: 18px;
}

/* Remember me */
.remember_me {
    margin: 5px 0 20px;
}

.remember_me label {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ログインボタン */
.submit-box {
    text-align: center;
}

.login-btn button,
.login-btn [type="submit"] {
    width: 200px;
    padding: 12px 0;
    border-radius: 30px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.login-btn button:hover,
.login-btn [type="submit"]:hover {
    background: #fff;
    color: #000;
}

/* パスワード忘れリンク */
.password-link {
    text-align: center;
    margin-top: 12px;
    margin-bottom: 30px;
}

.password-link a {
    color: #fff;
    font-size: 14px;
    text-decoration: underline;
}

/* -------------------------
   新規登録セクション
   ------------------------- */
.member-section {
    text-align: center;
    margin-top: 20px;
    font-family: "Shippori Mincho B1", serif;
}

.member-section h3 {
    font-size: 30px;
    margin-bottom: 8px;
}

.member-section h4 {
    font-size: 22px;
    margin-bottom: 20px;
}

.member-section .desc {
    font-size: 14px;
    line-height: 1.8;
    width: 80%;
    max-width: 800px;
    margin: 0 auto 40px;
}

.circle-icons-box {
    display: flex;
    flex-direction: column;
}

/* 赤い丸アイコン */
.circle-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.circle {
    width: 140px;
    height: 140px;
    background: #7a0c0c;
    border: 5px solid #5e0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    padding: 10px;
}

.bottom-area {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.bottom-left {
    grid-column: 1;
    justify-self: start;
}

.bottom-center {
    grid-column: 2;
    justify-self: center;
}

.bottom-right {
    grid-column: 3;
}

/* 新規登録ボタン */
.register-btn {
    display: block;
    width: 200px;
    padding: 12px 0;
    margin: 0 auto;
    border: 1px solid #fff;
    border-radius: 25px;
    text-align: center;
    background: transparent;
    color: #fff;
}

.register-btn:hover {
    background: #fff;
    color: #000;
}

/* -------------------------
   レスポンシブ
   ------------------------- */
@media (max-width: 1280px) {
    .wrapper {
        margin-left: 20px;
    }
    .right-img {
        margin-right: -20px;
    }
}

@media (max-width: 1000px) {

    /* LOG IN タイトル */
    .login-title h2 {
        font-size: clamp(28px, 8vw, 40px);
    }
    .login-title .sub {
        font-size: clamp(14px, 4vw, 18px);
    }

    /* パスワードリセット */
    .password-forgot {
        font-size: clamp(14px, 4vw, 18px);
    }

    /* ラベル・インプット */
    label {
        font-size: clamp(14px, 4vw, 18px);
    }
    input[type=email],
    input[type=password] {
        font-size: clamp(16px, 4.5vw, 20px);
    }

    /* Remember me */
    .remember_me label {
        font-size: clamp(14px, 4vw, 18px);
    }

    /* ログインボタン */
    .login-btn button,
    .login-btn [type="submit"] {
        font-size: clamp(14px, 4.5vw, 18px);
    }

    /* 新規登録エリア */
    .member-section h3 {
        font-size: clamp(22px, 7vw, 30px);
    }
    .member-section h4 {
        font-size: clamp(18px, 5.5vw, 24px);
    }
    .member-section .desc {
        font-size: clamp(14px, 4vw, 18px);
    }

    /* 赤丸アイコン */
    .circle {
        font-size: clamp(14px, 4vw, 18px);
    }

    /* 新規登録ボタン */
    .register-btn {
        font-size: clamp(16px, 4.5vw, 20px);
    }

    /* -----------------------------------------
       bottom-area（新規登録ボタン＋画像部分）
       スマホで縦並びレイアウトに強制
    ----------------------------------------- */
    .bottom-area {
        display: grid !important;
        grid-template-rows: auto auto !important;
        justify-items: center !important;
        row-gap: 30px !important;
        width: 100% !important;
        margin-top: 40px !important;
    }

    /* 上のボタン（中央） */
    .bottom-center {
        grid-row: 1 !important;
        justify-self: center !important;
        width: auto !important;
        text-align: center !important;
        margin: 1rem 0;
    }

    /* 下の画像エリア（左） */
    .bottom-left {
        grid-row: 2 !important;
        grid-column: 2;
        justify-self: center !important;
    }

    .left-bottom-img {
        margin: 0 !important;
    }

    /* -----------------------------------------
       LOGIN グリッド再配置
    ----------------------------------------- */
    .login-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
        justify-items: center;
        align-items: center;
    }

    /* 左画像 */
    .left-img {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
        align-self: center;
        margin: 0;
    }

    /* 右画像 */
    .right-img {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        align-self: center;
        margin: 0;
    }

    /* ログインフォーム（中央に） */
    .center-form {
        grid-column: 1 / span 2;
        grid-row: 2;
        justify-self: center;
        align-self: center;
        margin-top: 20px;
    }

    .wrapper {
        padding-top: 60px;
    }
}

