/* adteach 共通スタイル。デザイン案A（未来の教室モックアップ）の配色・トーンを踏襲する。 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

body {
  background-color: #f3f6f9;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

header.site-header {
  background-color: #d1eaee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 10;
}

.menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: bold;
  color: #1a5260;
  cursor: pointer;
  user-select: none;
  padding: 4px 8px;
  border-radius: 6px;
  border: none;
  background: none;
}
.menu-trigger:hover { background-color: rgba(0, 0, 0, 0.05); }

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

.user-profile { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 8px; }
.user-profile:hover { background-color: rgba(0, 0, 0, 0.05); }

.avatar {
  width: 32px; height: 32px; border-radius: 50%; background-color: #4a90e2; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: bold; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-large { width: 80px; height: 80px; font-size: 32px; }

.overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4);
  opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 100;
}
.overlay.active { opacity: 1; visibility: visible; }

.side-menu {
  position: fixed; top: 0; left: -280px; width: 280px; height: 100%;
  background-color: #fff; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease; z-index: 101; display: flex; flex-direction: column;
}
.side-menu.active { left: 0; }

.menu-header {
  background-color: #e3f2fd; padding: 20px 16px; display: flex;
  justify-content: space-between; align-items: flex-start; border-bottom: 1px solid #d1eaee;
}
.welcome-text { font-size: 14px; font-weight: bold; color: #1a5260; line-height: 1.4; }
.close-btn { cursor: pointer; color: #666; background: none; border: none; font-size: 16px; }
.menu-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.menu-title { font-size: 12px; font-weight: bold; color: #888; margin-bottom: 4px; margin-top: 8px; }

.btn {
  width: 100%; padding: 12px 16px; border: none; border-radius: 8px; font-weight: bold;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #fff; font-size: 13px; text-align: center;
}
.btn:hover { opacity: 0.9; }
.btn:disabled, .btn.btn-disabled { opacity: 0.5; cursor: not-allowed; }
.btn-teal { background-color: #2b93a3; }
.btn-green { background-color: #38a169; }
.btn-orange { background-color: #ed8936; }
.btn-gray { background-color: #718096; }
.btn-red { background-color: #e0245e; }
.btn-secondary { background: #e2e8f0; color: #4a5568; }
.btn-primary { background: #2b93a3; color: #fff; }
.btn-inline { width: auto; }

.container { max-width: 1200px; margin: 20px auto; padding: 0 16px; }
.container-narrow { max-width: 800px; margin: 24px auto; padding: 0 16px; }
.container-medium { max-width: 900px; margin: 24px auto; padding: 0 16px; }

.card, .card-box {
  background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.card-lg { padding: 28px; }

.section-title { font-size: 16px; font-weight: bold; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }

.tag-item, .item-badge {
  display: inline-block; background: #f7fafc; border: 1px solid #e2e8f0; color: #4a5568;
  font-size: 12px; padding: 4px 10px; border-radius: 16px;
}

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: bold; margin-bottom: 6px; font-size: 13px; color: #4a5568; }
.form-label .required { color: #e53e3e; margin-left: 4px; }
.form-input, .form-select, .form-textarea, input[type=text], input[type=email], input[type=password], input[type=url], input[type=datetime-local], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cbd5e0; border-radius: 6px; font-size: 14px; outline: none;
}
.form-textarea, textarea { height: 140px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.help-text { font-size: 12px; color: #a0aec0; margin-top: 4px; }
.error-text { font-size: 12px; color: #e53e3e; margin-top: 4px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.checkbox-row input { width: auto; }

.button-group { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; border-top: 1px solid #edf2f7; padding-top: 20px; }

.badge { position: absolute; top: -4px; right: -4px; background-color: #ff5252; color: #fff; border-radius: 50%; font-size: 10px; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }

.tab-header { display: flex; gap: 8px; margin-bottom: 20px; }
.tab-btn { padding: 10px 20px; border-radius: 8px; font-weight: bold; cursor: pointer; border: none; background: #e2e8f0; color: #4a5568; font-size: 14px; }
.tab-btn.active { background: #38a169; color: #fff; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 200; }
.modal-overlay.active { display: flex; }
.modal-box { background: #fff; border-radius: 12px; padding: 24px; max-width: 480px; width: 90%; }
.modal-box h3 { margin-bottom: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }

.messages { max-width: 1200px; margin: 12px auto 0; padding: 0 16px; }
.message { padding: 10px 16px; border-radius: 6px; margin-bottom: 8px; font-size: 13px; }
.message.error { background: #fff5f5; color: #c53030; border: 1px solid #feb2b2; }
.message.success { background: #f0fff4; color: #276749; border: 1px solid #9ae6b4; }
.message.info, .message.warning { background: #ebf8ff; color: #2b6cb0; border: 1px solid #bee3f8; }

.phase2-label { font-size: 10px; background: #a0aec0; color: #fff; padding: 1px 6px; border-radius: 8px; margin-left: 6px; }
