/* css/settings_menu.css */

.settings-menu-main {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* ヘッダーがあるページのため、上から表示 */
}

.settings-menu-grid {
  display: grid;
  /* 最小320pxのカードを、利用可能なスペースに応じて配置 */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  width: 100%;
  max-width: 800px; /* グリッドの最大幅 */
}

.settings-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* カード内の要素を上から配置 */
  padding: 2.5rem 1.5rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: #374151;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  text-align: center;
}

.settings-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  color: #1d4ed8;
}

.settings-card-icon {
  margin-bottom: 1rem;
}

.settings-card-label {
  font-size: 1.25rem;
  font-weight: 600;
}

/* --- Content Header (for sub-menu pages like master_settings) --- */
.content-header {
    width: 100%;
    max-width: 800px; /* Match grid max-width */
    text-align: center;
    margin-bottom: 2.5rem;
}

.content-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.content-header p {
    font-size: 1rem;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Card Description (for cards with more text) --- */
.card-description {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin-top: 0.75rem;
}

/* --- Back Button in Title Bar (Common for settings sub-pages) --- */
.page-title-bar .btn-back {
    background-color: #ffffff;
    color: #2563eb; /* primary-color */
    border: 1px solid #bfdbfe; /* primary-color-light */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.page-title-bar .btn-back:hover {
    background-color: #f0f4ff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}