:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --background-color: #f8f9fa;
  --card-background: #ffffff;
  --text-color: #333;a
  --border-color: #ecf0f1;
}

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
}

.container {
  padding: 1.5rem 1rem;
}

/* ローディング */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.spinner {
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--secondary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ヘッダー */
.header {
  display: flex;
  align-items: center;
  background-color: var(--card-background);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.profile-pic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.user-info h1 {
  font-size: 1.25rem;
  margin: 0 0 0.25rem 0;
  font-weight: 700;
  color: var(--primary-color);
}

.user-info p {
  margin: 0;
  color: var(--light-text-color);
}

.rank-badge {
  background-color: var(--secondary-color);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: bold;
}

/* コンテンツ一覧 */
h2 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.content-grid {
  display: grid;
  gap: 1rem;
}

.content-card {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
}

.content-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.content-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  width: 40px;
  text-align: center;
}

.content-details h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem 0;
  font-weight: 700;
}

.content-details p {
  font-size: 0.8rem;
  color: var(--light-text-color);
  margin: 0;
}

/* ▼▼▼ START: 悩み相談フォームのスタイル追加 ▼▼▼ */
.consultation-section {
  margin-top: 3rem;
  background-color: var(--card-background);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.consultation-section p {
  color: var(--light-text-color);
  font-size: 0.9rem;
  line-height: 1.6;
}

#consultation-form textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  box-sizing: border-box;
  margin-bottom: 1rem;
  resize: vertical;
}

#consultation-form button {
  width: 100%;
  padding: 0.8rem;
  border: none;
  background-color: var(--secondary-color);
  color: white;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#consultation-form button:hover {
  background-color: #2980b9;
}

#consultation-form button:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
}

.submit-status {
  margin-top: 1rem;
  text-align: center;
  font-weight: bold;
}
/* ▲▲▲ END: 悩み相談フォームのスタイル追加 ▲▲▲ */

/* エラーメッセージ */
.error-message {
  padding: 1rem;
  text-align: center;
  color: #c0392b;
  background-color: #f9e2e2;
  border: 1px solid #e74c3c;
  border-radius: 8px;
  margin: 1rem;
}

