body {
    font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif;
    background-color: #f5f5dc;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.form-wrapper {
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 20px;
    font-weight: bold;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

label {
    min-width: 120px;
    margin-right: 10px;
    font-size: 14px;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 325px;
}

.current-email {
    padding: 8px 15px;
    width: 325px;
}

.name-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.name-inputs input {
    width: 120px;
}

.name-inputs span {
    font-size: 14px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    min-width: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

input[type="radio"] {
    margin: 0;
}

.required {
    color: red;
    font-size: 12px;
    display: block;
    margin-bottom: 10px;
}

.submit-button {
    width: 230px;
    background-color: #ff8c00;
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: block;
    margin: 30px auto 0;
    font-weight: bold;
}

.submit-button-back {
    width: 230px;
    background-color: white;
    color: #ff8c00;
    padding: 12px 40px;
    border: #ff8c00 1px solid;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: block;
    margin: 30px auto 50px;
    font-weight: bold;
}

.search-button {
    background: linear-gradient(90deg, #ffa94d, #ff6b00);
    color: white;
    padding: 5px 40px;
    border: none;
    border-radius: 25px; /* 丸み強めでやわらかい印象 */
    font-size: 16px;
    cursor: pointer;
    display: block;
    margin: 30px auto 30px;
    font-weight: bold;
    transition: transform 0.1s ease-in-out, opacity 0.2s;
}

/* ヘッダー全体の背景色と横並び */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* 左端と右端に配置 */
  padding: 8px 16px;
  min-height: 56px;
  border-bottom: 1px solid #eee;
  background: #f8dcd3;
}

/* ヘッダータイトル */
.header-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto; /* 自動で中央寄せ */
}

/* 左側（会員名表示）部分 */
.header-left {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

/* 右側のボタン群を横並びに */
.header-right {
  display: flex;
  gap: 10px;
}

/* フォームをインライン表示にして横並びに */
.inline-form {
  display: inline;
}

/* ボタンの基本スタイル */
.inline-form button {
  background-color: #fff;
  border: 1px solid #333;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

/* ボタンホバー時 */
.inline-form button:hover {
  background-color: #ddd;
}

.product-header {
  display: flex;
  align-items: center;
  gap: 100px;
}

.product-images {
  margin-bottom: 10px;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
}
.product-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
}
.product-thumb {
    width: 120px;
    flex: 0 0 120px;
}
.product-thumb img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.no-image {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 8px;
    font-size: 12px;
}
.product-body {
    flex: 1;
    min-width: 0;
}
.product-breadcrumb {
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2px 8px;
    margin-bottom: 6px;
    color: #555;
}
.product-name {
    font-size: 14px;
    margin: 4px 0 0 0;
    font-weight: 600;
    color: #333;
    word-break: break-all;
}
.empty {
    padding: 12px;
    color: #666;
}
.pagination {
    margin-top: 16px;
}
.detail-button {
    display: inline-block;
    padding: 0px 10px;
    margin-left: 100px;
    background-color: white;
    color: #ff8c00;
    text-decoration: none;
    border: 1px solid #ff8c00;
    border-radius: 5px;
    font-size: 14px;
    font-weight: normal;
}
.product-name a {
    color: #333;
    text-decoration: none;
}

.product-detail-images {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.product-detail-images img {
  width: calc(25% - 10px); /* 最大4枚で横並び（gapを考慮） */
  max-width: 200px; 
  object-fit: cover;        /* 画像を枠に合わせて切り抜き */
  border-radius: 4px;       /* 角丸 */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.no-evaluation {
    color: #666;
    font-size: 12px;
    font-weight: normal;
}

.review-item .product-evaluations {
    margin-left: 20px;
    font-size: 12px;
    font-weight: normal;
}

.user-info-table td div {
  margin-top: 4px; /* 値とボタンの間に少し余白 */
}

.user-info-table button.btn {
  background-color: #ff8c00;
  color: #fff;
  padding: 6px 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.user-info-table th,
.user-info-table td {
  vertical-align: top;   /* ← 上揃えにする */
  padding: 8px 12px;     /* ← 余白をそろえる */
}

.user-info-table th {
  text-align: left;      /* 左寄せ（見やすさ用） */
  white-space: nowrap;   /* ラベルが折り返されないように */
  width: 120px;          /* ラベル列の幅を固定 */
}
