/* 全体レイアウト */
body {
    font-family: 'Helvetica Neue', sans-serif;
    background: linear-gradient(to bottom, #fffecd, #ffffff);
    /*background: linear-gradient(to bottom, #e0f8e9, #ffffff);*/
    padding: 20px;
    color: #2d3e2f;
    margin: 0;
    position: relative;
}

h2 {
    text-align: center;
    color: #267a36;
}

.sns {
    margin: 0px auto;
}

.sns_icon {
    margin: 0 20px 0 0;
}

.sns_icon a {
    text-decoration: none;
}

/* フォームボックス */
form {
    /*max-width: 480px;*/
    max-width: 88%;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mypageedit form {
    max-width: 480px;
}

/*
.box {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
*/

/* 汎用コンテナ（必要に応じて） */
.container {
    max-width: 400px;
    margin: 80px auto;
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* フォーム項目 */
.item,
.form-group {
    margin-bottom: 15px;
    font-size: 16px;
}

.label,
label {
    font-weight: bold;
    color: #267a36;
    display: block;
    margin-bottom: 6px;
}

/* インプット */
input[type="url"],
input[type="email"],
input[type="password"],
input[type="text"] {
    width: 95%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}
/* セレクトと追加の input も同じスタイルに */
select,
#other-birthplace-wrapper input[type="text"] {
    width: 95%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

input[readonly] {
    background-color: #eee;
    color: #666;
}

/* スポンサー登録画面 */
#sponsor_name,
#pcharge_last,
#pcharge_first,
#tel1,#tel2,
#s_products,
#s_other
 {
    width: 95%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

input[type="text"]:not(:only-child) {
/*    width: 270px;*/
}

/* ボタン */
button {
    margin-top: 20px;
    /*margin-left: 2%;*/
    margin-left: 5em;
    width: 45%;
    padding: 12px;
    font-size: 16px;
    display: inline-block;
    background-color: #267a36;
    color: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

button:hover {
    background-color: #1f5f2a;
}

/* ナビバー */
.navbar {
    background-color: #267a36;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    font-size: 24px;
    cursor: pointer;
    display: block;
}

.menu {
    display: none;
    flex-direction: column;
    background: #e0f8e9;
    position: absolute;
    top: 60px;
    right: 10px;
    padding: 10px;
    border-radius: 10px;
}

.menu a {
    color: #267a36;
    text-decoration: none;
    margin: 5px 0;
    display: block;
}

/* ゴルフボールの装飾 */
.golf-icon {
    position: absolute;
    width: 80px;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.golf-icon.left-top {
    top: 10px;
    left: 10px;
}

.golf-icon.right-bottom {
    bottom: 10px;
    right: 10px;
}

/* その他 */
.error {
    color: red;
    text-align: left;
    margin-bottom: 10px;
    line-height: 1.8;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.register-link a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}

.acbutton {
    text-align: center;
}

.error-message {
    margin-top: 5px;
    color: red;
    font-size: 14px;
}

/* Header Logo */
.logo {
    font-size: 1.7em;
}

.dancing-script-logo {
    font-family: "Dancing Script", cursive;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

.copy_rights_text {
    padding: 10px;
    text-align: center;
}

/* ポップアップ（利用規約・プライバシーポリシー） */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content button {
    display: block;
    margin: 20px auto 0;
    /* 上:20px 中央揃え 下:0 */
    padding: 10px 20px;
    font-size: 16px;
}

.terms_headline {
    font-size: 0.7em;
    margin-bottom: 10px;
}

.tems_main {
    font-size: 0.3em;
    margin-bottom: 10px;
}

/* MyPageTopボタン */
.top-buttons {
    /*display: flex;*/
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 25px 0;
}

.myp-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #2b5876, #4e4376);
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease-in-out;
    background-size: 200% auto;
}

.myp-btn:hover {
    background-position: right center;
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* スポンサー情報一覧 */
.mypage__bt{
    margin-top: 30px;
}

.sponsor-table {
    max-width: 700px;
    margin: 20px auto;
    font-size: 16px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.sponsor-header,
.sponsor-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
}

.sponsor-header {
    background: linear-gradient(to right, #4e4376, #2b5876);
    color: white;
    font-weight: bold;
}

.sponsor-row:nth-child(even) {
    background: #f5f5f5;
}

.sponsor-row:nth-child(odd) {
    background: #ffffff;
}

.sponsor-row span {
/*    width: 33%;*/
    text-align: center;
}

.validation_icon {
    color:red;
    margin-left: 5px;
}

.edit-button {
    display: inline-block;
    padding: 2px 2px;
    font-size: 0.75rem;
    background-color: #e6f4e9;
    color: #267a36;
    border: 1px solid #c2dec9;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    vertical-align: middle;
}

.edit-button:hover {
    background-color: #d3ebdb;
    color: #1f5f2a;
}


/* mypage編集 */
.button-group {
    max-width: 480px;
    margin: 0 auto;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
}

.error-message {
    color: red;
    font-size: 0.85em;
    margin-top: 4px; }


.birthday-inputs {
    margin-top: 5px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.birthday-inputs input {
    padding: 5px;
    font-size: 16px;
}

.mypageedit #mail_address,#kana_first,#kana_last,#name_first,#name_last {
    width: 250px;
}

#birthday_Y {
    width: 45px;
}

#blood_type,
#birthday_M,
#birthday_D {
    width: 20px;
}

#best_score,
#golf_history,
#flying_distance,
#height,
#weight {
    width: 70px;
}

.input-box-right {
    display: block;
    margin-left: auto;
    margin-right: 15px; }

.input-right {
    text-align: right; }

.cool-button {
    background: linear-gradient(135deg, #2b5876, #4e4376);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    /*transition: background 0.3s;*/
    transition: background 0.3s ease-in-out 0s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    line-height: 1;
    box-sizing: border-box;
}

.cool-button:hover {
    background: linear-gradient(135deg, #1e3c58, #3e2f58);
}

.back-button {
    background: linear-gradient(135deg, #888888, #666666);
}

.back-button:hover {
    background: linear-gradient(135deg, #555555, #444444);
}

.form-label {
    display: block !important;
    margin-bottom: 4px;
    font-weight: bold;
}

.form-input {
    width: 100%;
    /* 必要に応じて調整 */
    padding: 6px;
    font-size: 1em;
}

.form-sns-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* mypage確認 */
.sns__title {
    font-size: 0.6em;
}

.sns__url {
    font-size: 0.7em;
    width: 65%;
}

.sns__msg {
    font-size: 0.8em;
    margin-top: 15px;
}

/* mypage更新時のメッセージ */
.save-message-box {
    max-width: 480px;
            margin: 100px auto;
            padding: 25px 30px;
            border: 2px solid #4CAF50;
            border-radius: 12px;
            background-color: #f0fdf4;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            text-align: center;
            animation: fadeInBorderBox 0.6s ease-out;
}
    
        .save-message-box h1 {
            color: #2e7d32;
            font-size: 1.4rem;
            margin-bottom: 10px;
        }
    
        .save-message-box p {
            color: #333;
            font-size: 0.95rem;
            margin: 0;
        }
    
        @keyframes fadeInBorderBox {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
    
            to {
                opacity: 1;
                transform: scale(1);
            }     
        }

                