/* =================================================
   会員マイページ スタイリング改善案
   ================================================= */

/* --- 全体コンテナ --- */
.mypage-container {
  max-width: 800px;
  margin: 3rem auto; /* 上下の余白を広げる */
  padding: 2rem;
  font-family: "Oswald", "IBM Plex Sans JP", sans-serif;
  color: #333;
}

.mypage-container h1 {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #1a202c;
}
.mypage-container h2 {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  color: #4a5568;
  margin-bottom: 3rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
}
.mypage-container h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #2d3748;
}

/* --- 各倉庫情報カード --- */
.company-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px; /* 角を少し丸く */
  padding: 2rem; /* 内側の余白を広げる */
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.company-card h3 .parent-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  background-color: #3182ce; /* 少し落ち着いた青色 */
  padding: 0.25em 0.75em;
  border-radius: 9999px;
  vertical-align: middle;
  margin-left: 0.5em;
}

/* --- 詳細情報テーブル --- */
.sks-detail-table {
  width: 100%;
  margin-bottom: 1.5em;
  border-collapse: collapse;
}
.sks-detail-table th,
.sks-detail-table td {
  padding: 1rem; /* セルの余白を広げる */
  text-align: left;
  border-bottom: 1px solid #edf2f7;
}
.sks-detail-table th {
  background-color: transparent;
  width: 150px; /* 幅を固定 */
  font-weight: 600;
  color: #718096;
}
.sks-detail-table tr:last-child th,
.sks-detail-table tr:last-child td {
  border-bottom: none;
}
.sks-detail-table .highlight td {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2d3748;
  background: transparent;
}
.sks-detail-table .highlight strong {
  font-weight: 700;
}

/* --- 利用率更新フォーム --- */
.sks-rate-form {
  border-top: 1px solid #e2e8f0;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}
.sks-rate-form label {
  display: block;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.sks-rate-form .form-row {
  display: flex;
  gap: 0.75rem; /* 隙間を調整 */
}
.sks-rate-form input[type="number"] {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sks-rate-form input[type="number"]:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}
.sks-rate-form button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  background-color: #2b6cb0;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.sks-rate-form button:hover {
  background-color: #2c5282;
}

/* --- メッセージ表示 --- */
.sks-success-message {
  background-color: #c6f6d5;
  color: #2f855a;
  border: 1px solid #9ae6b4;
  padding: 1rem;
  margin-bottom: 2em;
  border-radius: 6px;
  text-align: center;
}
.sks-error-message {
  background-color: #fed7d7;
  color: #c53030;
  border: 1px solid #feb2b2;
  padding: 1rem;
  margin-bottom: 1em;
  border-radius: 6px;
  text-align: center;
}

/* --- ログアウトエリア --- */
.mypage-logout-area {
  text-align: right;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
}
.mypage-logout-area span {
  color: #4a5568;
  margin-right: 1em;
}
.mypage-logout-area .logout-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #718096;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s;
}
.mypage-logout-area .logout-button:hover {
  background-color: #4a5568;
}
