/* フォーム全体のスタイル */
.update-customer-form, .customer-mypage {
    max-width: 800px; /* 最大幅を800pxに設定 */
    margin: 0 auto; /* 中央寄せ */
    padding: 20px;
    background-color: #f9f9f9; /* 背景色 */
    border: 1px solid #ddd; /* ボーダー */
    border-radius: 8px; /* 角を丸くする */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 軽い影 */
}



/* テーブル全体のスタイル */
.update-customer-form table, .customer-mypage table {
    width: 100%;
    border-collapse: collapse; /* セルのボーダーを結合 */
    margin-bottom: 20px;
}

/* テーブルのヘッダー部分のスタイル */
.customer-mypage table th, .update-customer-form table th {
    background-color: #0073aa; /* ヘッダーの背景色 */
    color: #fff; /* ヘッダーの文字色 */
    padding: 10px;
    text-align: left;
    font-weight: bold;
}

/* テーブルのデータセルのスタイル */
.update-customer-form table td, .customer-mypage table td {
    padding: 10px;
    border-bottom: 1px solid #ddd; /* セルのボーダー */
    color: #333;
    vertical-align: top;
}

/* テーブルの1列目の幅を固定 */
.update-customer-form table td:first-child, .customer-mypage table td:first-child {
    width: 200px;
    font-weight: bold; /* ラベルを太字に */
    background-color: #f2f2f2; /* ラベル部分の背景を薄いグレーに */
}

/* テーブルの奇数行に背景色を付ける */
.customer-mypage table tr:nth-child(odd) td, .update-customer-form table tr:nth-child(odd) td {
    background-color: #f2f2f2; /* 奇数行の背景色 */
}

/* ラベルのスタイル */
.update-customer-form label {
    display: inline-block;
    width: 300px; /* ラベルの幅を広げる */
    white-space: nowrap; /* 折り返しを防ぐ */
}

/* テキストフィールドのスタイル */
.update-customer-form input[type="text"],
.update-customer-form input[type="email"],
.update-customer-form input[type="password"],
.update-customer-form input[type="tel"] {
    width: 100%; /* フィールドの幅を100%に */
    padding: 8px;
    margin-bottom: 15px; /* フィールド間に余白を追加 */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* ボックスサイズを調整 */
}

/* 読み取り専用のフィールドスタイル */
.update-customer-form input[readonly] {
    background-color: #e9ecef; /* 背景色をグレーに */
    color: #6c757d;
    border: 1px solid #ced4da; /* ボーダー色を薄く */
}

/* 送信ボタンのスタイル */
.update-customer-form input[type="submit"] {
    width: 100%; /* ボタンの幅を100%に */
    padding: 12px;
    background-color: #0073aa; /* ボタンの背景色 */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px; /* フォントサイズを大きめに */
    text-transform: uppercase; /* テキストを大文字に */
}

/* 送信ボタンのホバースタイル */
.update-customer-form input[type="submit"]:hover {
    background-color: #005177; /* ホバー時の背景色 */
}

/* 署名画像のスタイル */
.customer-mypage img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 登録店舗のリストのスタイル */
.customer-mypage ul {
    list-style-type: none;
    padding-left: 0;
}

.customer-mypage ul li {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.customer-mypage ul li:last-child {
    border-bottom: none;
}

/* フォーム全体のスタイル */
.update-customer-form, .customer-mypage {
    max-width: 800px; /* 最大幅を800pxに設定 */
    margin: 0 auto; /* 中央寄せ */
    padding: 20px;
    background-color: #f9f9f9; /* 背景色 */
    border: 1px solid #ddd; /* ボーダー */
    border-radius: 8px; /* 角を丸くする */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 軽い影 */
}

/* 見出しのスタイル */
.customer-mypage h2 {
    text-align: center; /* タイトルを中央寄せ */
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* テーブル全体のスタイル */
.update-customer-form table, .customer-mypage table {
    width: 100%;
    border-collapse: collapse; /* セルのボーダーを結合 */
    margin-bottom: 20px;
}

/* テーブルのヘッダー部分のスタイル */
.customer-mypage table th, .update-customer-form table th {
    background-color: #0073aa; /* ヘッダーの背景色 */
    color: #fff; /* ヘッダーの文字色 */
    padding: 10px;
    text-align: left;
    font-weight: bold;
}

/* テーブルのデータセルのスタイル */
.update-customer-form table td, .customer-mypage table td {
    padding: 10px;
    border-bottom: 1px solid #ddd; /* セルのボーダー */
    color: #333;
    vertical-align: top;
}

/* テーブルの1列目の幅を固定 */
.update-customer-form table td:first-child, .customer-mypage table td:first-child {
    width: 200px;
    font-weight: bold; /* ラベルを太字に */
    background-color: #f2f2f2; /* ラベル部分の背景を薄いグレーに */
}

/* テーブルの奇数行に背景色を付ける */
.customer-mypage table tr:nth-child(odd) td, .update-customer-form table tr:nth-child(odd) td {
    background-color: #f2f2f2; /* 奇数行の背景色 */
}

/* ラベルのスタイル */
.update-customer-form label {
    display: inline-block;
    width: 300px; /* ラベルの幅を広げる */
    white-space: nowrap; /* 折り返しを防ぐ */
}

/* テキストフィールドのスタイル */
.update-customer-form input[type="text"],
.update-customer-form input[type="email"],
.update-customer-form input[type="password"],
.update-customer-form input[type="tel"] {
    width: 100%; /* フィールドの幅を100%に */
    padding: 8px;
    margin-bottom: 15px; /* フィールド間に余白を追加 */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* ボックスサイズを調整 */
}

/* 読み取り専用のフィールドスタイル */
.update-customer-form input[readonly] {
    background-color: #e9ecef; /* 背景色をグレーに */
    color: #6c757d;
    border: 1px solid #ced4da; /* ボーダー色を薄く */
}

/* 送信ボタンのスタイル */
.update-customer-form input[type="submit"] {
    width: 100%; /* ボタンの幅を100%に */
    padding: 12px;
    background-color: #0073aa; /* ボタンの背景色 */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px; /* フォントサイズを大きめに */
    text-transform: uppercase; /* テキストを大文字に */
}

/* 送信ボタンのホバースタイル */
.update-customer-form input[type="submit"]:hover {
    background-color: #005177; /* ホバー時の背景色 */
}

/* 署名画像のスタイル */
.customer-mypage img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 登録店舗のリストのスタイル */
.customer-mypage ul {
    list-style-type: none;
    padding-left: 0;
}

.customer-mypage ul li {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.customer-mypage ul li:last-child {
    border-bottom: none;
}

/* レスポンシブ対応: 小さな画面サイズでのスタイル調整 */
@media (max-width: 600px) {
    .update-customer-form table,
    .customer-mypage table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 15px; /* セル間に余白を追加 */
    }

    .update-customer-form table tr,
    .customer-mypage table tr {
        display: block;
        margin-bottom: 20px;
    }

    .update-customer-form table td,
    .customer-mypage table td,
    .update-customer-form table th,
    .customer-mypage table th {
        display: block;
        width: 100%;
        text-align: left;
        padding: 10px 0;
        border-bottom: 1px solid #ddd;
    }

    .update-customer-form table td:first-child,
    .customer-mypage table td:first-child {
        background-color: transparent;
        font-weight: normal;
        width: auto;
    }

    .update-customer-form table th,
    .customer-mypage table th {
        background-color: transparent;
        color: #333;
    }

    /* 奇数行の背景色も削除 */
    .customer-mypage table tr:nth-child(odd) td,
    .update-customer-form table tr:nth-child(odd) td {
        background-color: transparent;
    }
}
