body {
    background-color: #f8fafc;
    font-family: 'メイリオ', 'Meiryo', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;
    font-size: 14px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: 0.11px;
  }
  
  h1 {
    font-size: 26px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: -0.13px;
  }
  
  h2 {
    font-size: 22px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
  }
  
  h3 {
    font-size: 18px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: 0.04px;
  }
  
  big {
    font-size: 16px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: 0.08px;
  }
  
  caption {
    font-size: 12px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: 0.08px;
  }
  
  label {
    font-size: 14px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #191919;
  }
  
  .samuraimart-login-input {
    border-radius: 2px;
    border: solid 1px #b2b2b2;
    background-color: #ffffff;
  }
  
  .samuraimart-check-label {
    font-size: 12px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #000000;
  }
  
  .samuraimart-require-input-label {
    border-radius: 1px;
    background-color: #e2001b;
  }
  
  .samuraimart-require-input-label-text {
    font-size: 14px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #ffffff;
  }
  
  .samuraimart-submit-button {
    font-size: 14px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #ffffff;
    background-color: #0fbe9f;
  }
  
  .samuraimart-login-text {
    font-size: 14px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #0fbe9f;
  }

  .samuraimart-header-container {
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.samuraimart-header-search-input {
    border: solid 1px #e5e5e5;
}

.samuraimart-header-search-button {
    background-color: #0fbe9f;
}

.samuraimart-header-search-icon {
    color: #ffffff;
}

.samuraimart-header-fav-icon {
    color: #191919;
}

.samuraimart-header-shoppingcart-icon {
    color: #ffffff;
}

.samuraimart-favorite-button {
  border-radius: 2px;
  border: solid 1px #0fbe9f;
  background-color: #ffffff;
}

.text-favorite {
  color: #0fbe9f;
}

.samuraimart-sidebar-category-label {
  width: 156px;
  height: 20px;
  font-size: 13px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  color: #191919;
}

.samuraimart-favorite-add-cart {
  border-radius: 2px;
  color: #ffffff;
  background-color: #0fbe9f;
}

.review-score-color {
  color: #0fbe9f;
}

.review-score-color:focus {
  color: #0fbe9f;
}

.samuraimart-delete-submit-button {
  border-radius: 2px;
  color: #ffffff;
  background-color: #d94b0e;
}

th, td {
  background-color: #f8fafc !important;
}

/* カテゴリナビゲーションのアクティブスタイル */
.samuraimart-header-category-item {
  text-decoration: none;
  color: #191919;
  padding: 10px 0;
  transition: color 0.3s ease;
}

.samuraimart-header-category-item:hover {
  color: #0fbe9f;
  text-decoration: none;
}

.samuraimart-header-category-item.active {
  font-weight: bold;
  color: #0fbe9f !important;
  border-bottom: 2px solid #0fbe9f;
}

/* ヘッダーコンテナのレスポンシブ調整 */
.samuraimart-header-container .container {
  max-width: 1200px;
}

/* 検索フォームの調整 */
.samuraimart-header-search-input {
  border: solid 1px #e5e5e5;
  border-radius: 4px;
}

/* 右端メニューのホバーエフェクト */
.samuraimart-header-container a:hover {
  color: #0fbe9f !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .samuraimart-header-container .container {
    flex-direction: column;
    align-items: stretch !important;
  }
  
  .samuraimart-header-category {
    margin: 10px 0;
    text-align: center;
  }
  
  .samuraimart-header-category-item {
    margin: 0 15px;
  }
}

@media (min-width: 768px) {
  .samuraimart-header-container .container {
    flex-direction: row !important;
  }
}

/* 全ページ共通のナビゲーションスタイル */
nav {
  display: flex;
  justify-content: space-around;
  background-color: #ccc;
  padding: 10px 0;
}

nav a {
  text-decoration: none;
  color: black;
  font-weight: bold;
}

/* ユーザー情報エリアのスタイル */
.user-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 検索ボタンのスタイル統一 */
.search-button {
  padding: 8px 15px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

/* 認証ページのスタイル */
.auth-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: none;
  overflow: hidden;
}

.auth-card .card-header {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: none;
  padding: 24px;
}

.auth-card .card-body {
  padding: 32px;
}

.auth-form .form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.auth-form .form-control {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.auth-form .form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.auth-form .btn-primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.auth-form .btn-primary:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.auth-form .form-check-input:checked {
  background-color: #007bff;
  border-color: #007bff;
}

.auth-form a {
  color: #007bff;
  font-weight: 500;
}

.auth-form a:hover {
  color: #0056b3;
  text-decoration: none;
}

/* 必須フィールドマーカー */
.text-danger {
  color: #dc3545 !important;
}

/* フォームフィールドのスタイル改善 */
.auth-form textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.auth-form .form-label {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 郵便番号や電話番号などの特定フィールド用スタイル */
.auth-form input[type="tel"],
.auth-form input[name="postal_code"] {
  font-family: monospace, sans-serif;
}

/* Profile Pages Styling */
.profile-card {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.profile-card .card-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-bottom: none;
    padding: 1.5rem;
}

.profile-form-section {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.profile-form-section h5 {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.form-label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

.form-control.profile-input {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control.profile-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    background-color: #fff;
}

.profile-info-display {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

.profile-info-label {
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.profile-actions {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.profile-note {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.profile-note .fas {
    color: #007bff;
    margin-right: 0.5rem;
}

/* Password Change Section */
.password-section {
    background: #fff8e1;
    border: 1px solid #ffecb3;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.password-section h5 {
    color: #f57c00;
    margin-bottom: 0.5rem;
}

.password-section .form-text {
    color: #f57c00;
    font-size: 0.8rem;
}

/* Responsive adjustments for profile pages */
@media (max-width: 768px) {
    .profile-card {
        margin: 0.5rem;
    }
    
    .profile-card .card-header {
        padding: 1rem;
    }
    
    .profile-form-section {
        padding: 0.75rem;
    }
    
    .profile-actions {
        padding: 1rem;
    }
    
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group-mobile .btn {
        width: 100%;
    }
}

