/* =================================== */
/* Account Page Styles                 */
/* =================================== */
body>main,
.content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
    /* ヘッダー・フッター分を考慮 */
}

.account-form-container {
    max-width: 450px;
    width: 100%;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.account-form-container h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    /* base.cssのスタイルを打ち消し */
    background: none !important;
    color: #333 !important;
    padding: 0 !important;
    border: none !important;
}

.account-form-container p {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

.account-form-container form p {
    text-align: left;
    margin-bottom: 15px;
}

.account-form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.account-form-container input[type="text"],
.account-form-container input[type="email"],
.account-form-container input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.account-form-container .primary-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    transition: background-color 0.2s;
}

.account-form-container .primary-btn:hover {
    background-color: #45a049;
}

/* Google Login/Connect Button */
.account-form-container .google-btn,
.account-form-container .connect-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 6px;
    border: 1px solid #ddd;
    cursor: pointer;
    background-color: #fff;
    color: #757575;
}

.account-form-container .connect-btn:hover {
    background-color: #3367D6;
}


.account-form-container .google-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.google-icon {
    margin-right: 10px;
    font-weight: bold;
    color: #4285F4;
}

/* 連携ボタン内のアイコンは白くする */
.connect-btn .google-icon {
    color: white;
}

/* ログイン/新規登録ページ間の案内リンク */
.account-switch-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
}

/* Profile Page Styles */
.profile-container {
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.profile-container h2 {
    border-bottom: 2px solid #0284c7;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #0369a1;
}
.form-group, .form-row {
    margin-bottom: 20px;
}
.form-group label, .form-row label, p label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #334155;
}
p input[type="text"], p input[type="email"], p input[type="password"], .form-row input[type="text"] {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}
.form-control:focus {
    border-color: #38bdf8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3);
}
.form-control-file {
    display: block;
    margin-top: 5px;
}
.help-text {
    font-size: 0.85em;
    color: #64748b;
    margin-top: 5px;
    display: block;
}

.profile-navigation-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 4px;
    background-color: #e0f2fe;
    color: #0369a1;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.profile-navigation-link:hover {
    background-color: #bae6fd;
    color: #0369a1;
    transform: scale(1.05);
}

.profile-navigation-link-marker {
    margin-right: 5px;
    color: #0284c7;
}

.profile-ogp-upload-zone {
    margin: 12px 0 10px;
    padding: 12px;
    border: 2px dashed #94a3b8;
    border-radius: 8px;
    background-color: #f8fafc;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.profile-ogp-upload-zone.is-dragover {
    border-color: #0284c7;
    background-color: #f0f9ff;
}

.profile-ogp-upload-zone.is-disabled {
    opacity: 0.65;
}

.profile-ogp-upload-preview {
    display: grid;
    width: 100%;
    place-items: center;
    overflow: hidden;
    border-radius: 6px;
    background-color: #f8fafc;
    background-image: repeating-conic-gradient(#e2e8f0 0 25%, #fff 0 50%);
    background-size: 16px 16px;
}

.profile-ogp-upload-preview.is-empty {
    aspect-ratio: 1200 / 630;
}

.profile-ogp-upload-preview:not(.is-empty) {
    max-height: 360px;
}

.profile-ogp-upload-preview > * {
    grid-area: 1 / 1;
}

.profile-ogp-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 360px;
}

.profile-ogp-upload-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 28px 16px;
    color: #475569;
    font-size: 0.9rem;
    text-align: center;
}

.profile-ogp-upload-preview.is-empty .profile-ogp-upload-empty {
    display: flex;
}

.profile-ogp-upload-preview.is-empty .profile-ogp-image {
    display: none;
}

.profile-ogp-upload-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 3px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #0284c7;
    font-size: 28px;
    line-height: 1;
}

.profile-ogp-upload-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.profile-ogp-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.profile-ogp-select-button {
    display: inline-block;
    margin: 0 !important;
    padding: 10px 18px;
    border: 1px solid #0369a1;
    border-radius: 5px;
    background: #fff;
    color: #0369a1;
    font-weight: bold;
    cursor: pointer;
}

.profile-ogp-select-button:hover {
    border-color: #0284c7;
    background: #e0f2fe;
    color: #0369a1;
}

.profile-ogp-upload-zone.is-disabled .profile-ogp-select-button {
    cursor: not-allowed;
}

.profile-ogp-selected-file {
    flex: 1;
    min-width: 180px;
    color: #64748b;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.save-btn {
    background-color: #45a049;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    text-align: center;
}
.save-btn:hover {
    background-color: #4CAF50;
    color: #fff;
}
.cancel-btn {
    background-color: #da190b;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}
.cancel-btn:hover {
    background-color: #f44336;
    color: #fff;
}

/* 紹介設定で追加したプロフィール内の導線。標準ボタンと同じ紫を使う。 */
.supporter-promotion-profile-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.supporter-promotion-feature-form {
    margin: 0;
}

.supporter-promotion-profile-actions .supporter-promotion-feature-form,
.supporter-promotion-profile-actions .supporter-promotion-settings-link {
    width: min(100%, 240px);
}

.supporter-promotion-feature-form .save-btn,
.supporter-promotion-feature-form .cancel-btn {
    width: 100%;
}

.supporter-promotion-settings-link {
    display: block;
    box-sizing: border-box;
    padding: 12px 24px;
    border-radius: 4px;
    background-color: #6f398a;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s;
}

.supporter-promotion-settings-link:hover {
    background-color: #944db3;
    color: #fff;
}

.supporter-promotion-profile-actions .supporter-promotion-settings-link,
.supporter-promotion-profile-actions .cancel-btn {
    display: flex;
    height: 48px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1.25;
}

/* プロフィール画面内の操作ボタンは、ホバー時の拡大動作を統一する。 */
.profile-container .save-btn,
.profile-container .cancel-btn,
.profile-container .profile-ogp-select-button,
.profile-container .supporter-promotion-settings-link {
    transition: background-color 0.2s, transform 0.2s;
}

.profile-container .save-btn:hover,
.profile-container .cancel-btn:hover,
.profile-container .profile-ogp-select-button:hover,
.profile-container .supporter-promotion-settings-link:hover {
    transform: scale(1.05);
}
