body {
    font-family: 'Arial', sans-serif;
    background-color: #f2f4f8;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

input {
    width: 90%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}


.input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.login-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2 {
    color: #333;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

button {
    background-color: #ff7f7f;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #ff5f5f;
}

/* 開発用クイックログイン */
.dev-login-section {
    width: 100%;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #ccc;
    text-align: center;
}

.dev-login-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.dev-login-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.dev-login-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.dev-login-btn:hover {
    opacity: 0.8;
}

.dev-login-admin {
    background-color: #e74c3c;
}

.dev-login-teacher {
    background-color: #3498db;
}

.dev-login-student {
    background-color: #27ae60;
}

.dev-debug-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    color: #999;
}

/* 領域選択 */
.field-selection {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.field-option {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: normal;
    font-size: 14px;
    cursor: pointer;
}

.field-option input[type="radio"] {
    width: auto;
    margin: 0;
}

/* ============================
   セグメンテッドコントロール（領域選択）
   ============================ */
.segment-control {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px auto 10px;
  background: #e8e8e8;
  border-radius: 12px;
  padding: 4px;
  max-width: 320px;
}

.segment-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #666;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  min-width: 0;
}

.segment-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  color: #333;
}

.segment-btn.active {
  background: #ffffff;
  color: #d35400;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.segment-icon {
  font-size: 22px;
  margin-bottom: 2px;
  line-height: 1;
}

.segment-label {
  font-size: 13px;
  line-height: 1.2;
}

/* レスポンシブ: 領域が増えた場合にスクロール対応 */
@media (max-width: 400px) {
  .segment-control {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .segment-btn {
    min-width: 70px;
    padding: 8px 6px;
  }

  .segment-icon {
    font-size: 18px;
  }

  .segment-label {
    font-size: 12px;
  }
}
