.profile-container {
    background-color: #1f222e;
    min-height: 100vh;
    color: #f8f6f1;
    padding-bottom: 100px;
}

/* 報酬バナー：スライドダウン */
.reward-banner {
    position: fixed;
    top: -100px; /* 最初は隠しておく */
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #eb1c24 0%, #ff5e62 100%);
    color: #fff;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(235, 28, 36, 0.4);
    transition: top 0.6s cubic-bezier(0.22, 1, 0.36, 1); /* 滑らかな動き */
}

/* JavaScriptでこのクラスを付与して表示させる */
.reward-banner.show {
    top: 0;
}

.reward-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.reward-icon {
    font-size: 1.8rem;
    margin-right: 12px;
    animation: bounce 2s infinite; /* アイコンを跳ねさせる */
}

.reward-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.05rem;
}

.reward-text strong {
    font-size: 1.6rem;
    text-decoration: underline;
    margin: 0 3px;
	color:#f8f6f1;
}

.reward-banner-close {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
}

/* 演出用のバウンスアニメーション */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* ヘッダー・ユーザー情報 */
.profile-header {
    background: linear-gradient(135deg, #2a2d3e 0%, #1f222e 100%);
    padding: 20px 20px 40px;
    text-align: center;
}

.header-inner a{
	color:#f8f6f1;
	font-weight:900;
	font-size:1.4rem;
	text-decoration:none;
}

.user-main-info {
    margin-top: 10px;
}

.icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
}

.icon-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eb1c24;
    box-shadow: 0 0 20px rgba(235, 28, 36, 0.3);
}

.icon-edit-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #eb1c24;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #1f222e;
}

.display-name { font-size: 2rem; font-weight: 900; margin-bottom: 5px; }
.user-id { font-size: 1.2rem; color: rgba(248, 246, 241, 0.5); }

/* フォーム・セクション */
.profile-main {
    width: 90%;
    margin: -20px auto 0;
}

.profile-section {
    background: #2a2d3e;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.05);
}

.section-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #eb1c24;
}

.section-desc {
    font-size: 1.2rem;
    color: rgba(248, 246, 241, 0.6);
    margin-bottom: 20px;
}

.badge-required {
    background: #eb1c24;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 10px;
}

/* 入力エリア */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: rgba(248, 246, 241, 0.8);
}
.input-group small{
	font-size:1.2rem;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    font-size: 1.4rem;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #eb1c24;
    background: rgba(255,255,255,0.08);
}

.readonly-input {
    color: rgba(248, 246, 241, 0.4) !important;
    background: transparent !important;
    border: 1px dashed rgba(255,255,255,0.1) !important;
}

/* ラジオボタンのグループ */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
}

.radio-label {
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #eb1c24; /* SYOKUTSUレッドを適用 */
}

/* セレクトボックスの調整 */
.input-group select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    font-size: 1.4rem;
    appearance: none; /* デフォルトの矢印を消す（モダンブラウザ用） */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
}
.input-group option{
	color: #000;
}

/* Date入力の調整 */
.input-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1); /* カレンダーアイコンを白くする */
}

/* 保存ボタン */
.form-actions {
    text-align: center;
}

.btn-save {
    background: #eb1c24;
    color: #fff;
    border: none;
    padding: 18px 60px;
    font-size: 1.6rem;
    font-weight: bold;
    border-radius: 40px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(235, 28, 36, 0.3);
    transition: 0.3s;
}

.btn-save:active {
    transform: scale(0.98);
}

/* PC/タブレット対応 */
@media screen and (min-width: 768px) {
    .profile-main { width: 60%; }
}

.resultMessageBox_outer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none; /* JSでflexに切り替え */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.resultMessageBox {
    background: #fff;
    width: 100%;
    max-width: 400px;
    border-radius: 25px;
    overflow: hidden;
    text-align: center;
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.resultMessageBox_index {
    background: var(--main-color);
    padding: 15px;
    color: #fff;
}

.resultMessageBox_index p {
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0;
}

.resultIndex_body {
    padding: 30px 20px;
}

#modalMessage {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #444;
}

.btn-close-modal {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-close-modal:hover { opacity: 0.8; }