/* CSS変数定義 */
:root {
    --form-placeholder: #C3C3C3;
    --gray: #9A9A9A;
}

/* 入力欄・placeholderともに見切れたら…で省略 */
input,
textarea {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
input::placeholder,
textarea::placeholder {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header .menu-logo {
  width: 158px;
  height: 47px;
}

@media screen and (max-width: 842px) {
    .header .menu-logo {
        width: 128px !important;
        height: 38px !important;
        flex-shrink: 0 !important;
    }
    
    .header .menu-logo img {
        width: 128px !important;
        height: 38px !important;
    }
}

/* フッター調整 */
.footer {
    padding-top: 24px;
}

.footer .copy {
    margin: 0 auto;
}

.link-item {
    text-align: center;
    margin-top: 24px;
}

.link-item a {
    color: var(--text);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 1.12px;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

@media screen and (max-width: 842px) {
    .link-item a {
        font-size: 15px;
        letter-spacing: 1.05px;
    }
}

.auth-wrapper {
    min-height: calc(100vh - 146px); /* ヘッダー + フッターの高さを引く */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 64px 0 72px;
}

@media screen and (max-width: 842px) {
    .auth-wrapper {
        min-height: calc(100vh - 121px); /* ヘッダー + フッターの高さを引く */
        padding: 48px 0 72px;
    }
}

/* ===========================================
   メインコンテナ
=========================================== */
/* auth-wrapperと連携してセンタリング */
.auth-wrapper .auth-container {
    width: calc(100% - 40px);
    max-width: 680px;
    margin: 0 0 auto 0; /* auth-wrapperのflexでセンタリングするためmarginを削除 */
    padding: 48px calc((680px - 402px) / 2);
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--Semantic-Component-Light-Gray, #ECECEC);
}

.auth-wrapper .auth-title {
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: 160%; /* 44.8px */
    letter-spacing: 1.96px;
    color: var(--text);
    text-align: center;
    margin-bottom: 40px;
}

@media screen and (max-width: 842px) {
    .auth-wrapper .auth-container {
        padding: 32px 20px;
    }
    
    .auth-wrapper .auth-title {
        font-size: 20px;
        letter-spacing: 1.4px;
    }
}

/* ===========================================
   チェックボックス
=========================================== */

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 40px;
}

.checkbox-input {
    margin: auto 0;
    width: 18px;
    height: 18px;
}

.checkbox-text {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%; /* 25.6px */
    letter-spacing: 1.12px;
    color: var(--text);
}

.checkbox-text a {
    color: var(--text);
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

@media screen and (max-width: 842px) {
    .checkbox-text {
        font-size: 15px;
        letter-spacing: 1.05px;
    }
}

/* ===========================================
   ボタン・リンク
=========================================== */
.submit-button, .link-item .submit-button {
    width: 280px;
    min-height: 54px;
    padding: 12px 24px;
    border-radius: 4px;
    background: var(--accent);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 40px auto 0;
    display: block;
    color: var(--white) !important;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 160%;
    letter-spacing: 1.12px;
    text-decoration: none !important;
}

@media screen and (max-width: 842px) {
    .submit-button, .link-item .submit-button {
        font-size: 15px;
        min-height: 48px;
        letter-spacing: 1.05px;
        padding: 12px 16px;
    }
}

.submit-button.white-button {
    border-radius: 4px;
    border: 1px solid var(--gray-thi);
    background: #FFF;
    color: var(--text) !important;
    font-weight: 600 !important;
}

/* ===========================================
   補助テキスト・ヘルプ
=========================================== */
.form-help,.birth-note {
    color: var(--gray);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%; /* 22.4px */
    letter-spacing: 0.98px;
}

.auth-description{
    color: var(--text);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%; /* 25.6px */
    letter-spacing: 1.12px;
    margin-bottom: 40px;
    text-align: left;
}

.auth-description.margin-bottom-zero{
    margin-bottom: 0;
}

@media screen and (max-width: 842px) {
    .form-help,.birth-note {
        font-size: 12px;
        letter-spacing: 0.84px;
        text-align: left;
    }

    .auth-description{
        font-size: 15px;
        letter-spacing: 1.05px;
    }
}

/* ===========================================
   成功メッセージ
=========================================== */
.auth-success-message {
    text-align: center;
    margin-bottom: 40px;
}

.success-text {
    color: #155724;
    font-size: 18px;
    font-weight: 600;
    line-height: 160%;
    letter-spacing: 1.26px;
    margin-bottom: 24px;
}

/* エラーページ用スタイル */
.auth-error-message {
    text-align: center;
    margin-bottom: 40px;
}

.auth-error-lead {
    color: #721c24;
    font-size: 20px;
    font-weight: 600;
    line-height: 160%;
    letter-spacing: 1.4px;
    margin-bottom: 24px;
}

.auth-link {
    color: var(--main-color);
    text-decoration: underline;
}

.auth-link:hover {
    opacity: 0.7;
}

.auth-note {
    color: var(--text);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 0.98px;
    margin-top: 24px;
    text-align: left;
}

.auth-note.margin-top-middle {
    margin-top: 16px;
}


@media screen and (max-width: 842px) {
    .success-text {
        font-size: 16px;
        letter-spacing: 1.12px;
    }
    
    .auth-note {
        font-size: 12px;
        letter-spacing: 0.84px;
    }
    
    .auth-error-lead {
        font-size: 18px;
        letter-spacing: 1.26px;
    }
}