/* 共通スタイル */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.hidden { display: none; }

/* ヘッダー */
header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.header-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.header-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.header-link:hover {
  color: #333;
}

.user-email {
  font-size: 14px;
  color: #666;
}

/* コンテナ */
.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 24px;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 32px;
  color: #333;
}

/* カード */
.card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 24px;
  margin-bottom: 24px;
}

.card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

/* フォーム要素 */
label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

select, input[type="text"], input[type="date"], input[type="file"], textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: #999;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* ボタン */
.btn {
  background: #333;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.btn:hover {
  background: #555;
}

.btn:focus-visible {
  outline: 2px solid #333;
  outline-offset: 2px;
}

.btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-secondary {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  padding: 12px 24px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #f5f5f5;
}

.btn-secondary:focus-visible {
  outline: 2px solid #333;
  outline-offset: 2px;
}

/* リンクカード */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px 24px;
  text-decoration: none;
  color: #333;
  display: block;
  transition: border-color 0.2s;
}

.link-card:hover {
  border-color: #999;
}

.link-card:focus-visible {
  outline: 2px solid #333;
  outline-offset: 2px;
  border-color: #999;
}

.link-card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.link-card p {
  font-size: 14px;
  color: #666;
}

/* ステータス */
.status {
  padding: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.status-success {
  background: #f0f9f0;
  color: #2d5016;
  border: 1px solid #d0e8d0;
}

.status-error {
  background: #fff0f0;
  color: #5c1616;
  border: 1px solid #f0d0d0;
}

/* プログレスバー */
.progress {
  width: 100%;
  height: 4px;
  background: #f0f0f0;
  margin-bottom: 16px;
}

.progress-bar {
  height: 100%;
  background: #333;
  width: 0%;
  transition: width 0.3s;
}

/* ノート */
.note, .note-text {
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
}

.note-text {
  margin-top: 32px;
}

/* ユーザー情報 */
.user-info {
  background: #fff;
  border: 1px solid #ddd;
  padding: 16px 24px;
  margin-bottom: 32px;
  font-size: 14px;
  color: #666;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-info strong {
  color: #333;
}
