body {
    background-color: #f8f1d8;
    font-family: sans-serif;
    padding: 2em;
}

.container {
    background-color: #fff9e6;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    width: 750px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
}

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

button,
.confirm-button {
    margin-top: 25px;
    padding: 10px 20px;
    background-color: #f39800;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.back-button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: white;
    border: 2px solid #f39800;
    color: #f39800;
    border-radius: 5px;
    cursor: pointer;
}

.center {
    text-align: center;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    background-color: #f39800;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.header {
    background: #fde5dc;
    padding: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* パスワード再設定専用調整 */
input[type="password"] {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.container form {
    margin-top: 20px;
}

/* ボタン位置中央揃え */
.center {
    text-align: center;
}

.page-item.active .page-link {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    border-color: #007bff;
}

/* ページャーを横並びにする */
.pagination {
    display: flex;
    gap: 8px;
    /* 項目の間隔（調整可） */
    list-style: none;
    padding-left: 0;
    justify-content: center;
    /* 中央寄せ（お好みで） */
}

/* 各ページリンクの見た目 */
.page-item .page-link {
    display: block;
    padding: 6px 12px;
    color: #333;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ホバー時の背景 */
.page-item .page-link:hover {
    background-color: #f0f0f0;
}

/* 現在のページの見た目 */
.page-item.active .page-link {
    background-color: #ff9900;
    color: white;
    border-color: #ff9900;
}

/* 無効化されたボタン（前へ・次へが使えないとき） */
.page-item.disabled .page-link {
    color: #ccc;
    pointer-events: none;
    background-color: #f9f9f9;
    border-color: #ddd;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 8px;
    padding-left: 0;
}

.pagination li a,
.pagination li span {
    padding: 5px 10px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
}

.pagination .active span {
    font-weight: bold;
    background-color: #333;
    color: #fff;
}

/* --- 商品レビュー登録画面専用 --- */
.review-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 220px;
}

.review-image {
    width: 100px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.review-info {
    flex: 1;
    min-width: 200px;
}

.review-product-name {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
}

.review-summary {
    margin: 0;
}

.top-bar {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .left {
    font-weight: bold;
    font-size: 1.1em;
}

.top-bar .right {
    display: flex;
    gap: 10px;
}

.top-left {
    position: absolute;
    top: 20px;
    left: 20px;
}

.header a,
.header form {
    display: inline-block;
    margin: 0;
}

.header button {
    margin: 0;
    padding: 10px 20px;
}

.withdraw-box {
    background-color: #fff2c6;
    padding: 30px;
    margin-top: 20px;
    text-align: center;
}

.withdraw-message {
    margin-bottom: 30px;
}

.withdraw-button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

/* ===== 商品レビュー管理用 ===== */

/* 各レビュー項目を横並びにし、下線で区切る */
.review-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #ccc;
    align-items: flex-start;
}

/* 画像部分（左側） */
.image-area {
    flex-shrink: 0;
}

/* 商品画像サイズ統一（大きすぎる画像にも対応） */
.image-area img {
    width: 120px;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* 情報部分（右側） */
.info-area {
    flex-grow: 1;
}

/* 操作ボタンの余白調整 */
.review-actions {
    margin-top: 10px;
}

.review-actions .button {
    margin-right: 10px;
}

/* 星マークのフォントサイズ＆色（オレンジ系） */
.info-area strong,
.info-area span {
    display: inline-block;
    margin-top: 5px;
}

.info-area span {
    color: #555;
}

.info-area .stars {
    color: #f5a623;
    /* お好みで色変更可 */
    font-size: 1.1em;
}

/* ===============================
   管理画面 会員一覧フォームのレイアウト調整
   =============================== */

/* フォーム全体に薄い背景とパディング */
.member-search-form {
    background-color: #f3f3f3; /* 灰色っぽい背景 */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* 各入力項目の間隔を広げる */
.member-search-form .form-group {
    margin-bottom: 15px;
}

/* 性別チェックボックスの横並び */
.member-search-form .form-group.gender-group label {
    margin-right: 20px;
    font-weight: normal;
}

/* ボタンを中央に配置 */
.member-search-form .center {
    text-align: center;
}

/* ===============================
   管理画面 会員一覧フォームのレイアウト調整
   =============================== */

/* フォーム全体に薄い背景とパディング */
.member-search-form {
    background-color: #f3f3f3; /* 灰色っぽい背景 */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* 各入力項目の間隔を広げる */
.member-search-form .form-group {
    margin-bottom: 15px;
}

/* 性別チェックボックスの横並び */
.member-search-form .form-group.gender-group label {
    margin-right: 20px;
    font-weight: normal;
}

/* ボタンを中央に配置 */
.member-search-form .center {
    text-align: center;
}

/* ===============================
   会員一覧テーブルの調整
   =============================== */
.member-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    margin-bottom: 30px;
}

/* ヘッダーとセルのスタイル */
.member-table th,
.member-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ccc;
    text-align: left;
    vertical-align: middle;
}

/* ヘッダーの背景色と太字 */
.member-table th {
    background-color: #f0f0f0;
    font-weight: bold;
}

/* 行にマウスホバーしたときの背景色 */
.member-table tr:hover {
    background-color: #fff8e6;
}

/* ソートの矢印付きリンク */
.member-table th a {
    text-decoration: none;
    color: #333;
}

/* ID列は少し狭くする */
.member-table td:first-child,
.member-table th:first-child {
    width: 60px;
}

/* 登録日時列を固定幅に */
.member-table td:last-child,
.member-table th:last-child {
    width: 140px;
}

/* メールアドレスが折り返さないように */
.member-table td a {
    white-space: nowrap;
}
