@charset "UTF-8";

/* =========================================================
   Theme Tokens
   ========================================================= */
:root {
  --primary: #4169e1;
  --primary-dark: #2448b5;
  --accent: #ffb400;
  --success: #1db94b;
  --danger: #d00134;
  --info: #1140d1;

  --text: #222;
  --muted: #666;
  --border: #d8deea;
  --surface: #ffffff;
  --surface-alt: #f5f7fb;

  --focus: #1abc9c;
  --focus-ring: 0 0 0 4px rgba(26, 188, 156, 0.18);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 14px;

  --space-1: 8px;
  --space-2: 10px;
  --space-3: 12px;
  --space-4: 14px;
  --space-5: 16px;
  --space-6: 18px;
}

/* =========================================================
   Base / Reset
   ========================================================= */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface-alt);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

form {
  margin: 0;
}

/* =========================================================
   Layout
   ========================================================= */
.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-5);
}

.page-card,
.section-card {
  margin-bottom: var(--space-5);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.page-title,
.lecture-title-bar {
  margin: 0 0 var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
}

.section-title {
  margin: 0 0 var(--space-3);
  font-size: 1.05rem;
  font-weight: 700;
}

.notice-box {
  padding: var(--space-3) var(--space-4);
  background: #eef4ff;
  border: 1px solid #c8d7ff;
  border-radius: var(--radius-md);
}

.logout-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5) 0;
}

.logout-user {
  font-weight: 700;
}

.logout-link {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* =========================================================
   Buttons
   ========================================================= */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-3) 0 var(--space-5);
}

.sbt_1,
.sbt_2,
.sbt_3,
.sbt_4 {
  appearance: none;
  min-width: 120px;
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.sbt_1 { background: var(--accent); }
.sbt_2 { background: var(--success); }
.sbt_3 { background: var(--danger); }
.sbt_4 { background: var(--info); }

.sbt_1:hover { background: #8e4e0f !important; }
.sbt_2:hover { background: #005d07 !important; }
.sbt_3:hover { background: #880000 !important; }
.sbt_4:hover { background: #300088 !important; }

/* =========================================================
   Forms
   ========================================================= */
input[type="text"],
input[type="password"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  max-width: 100%;
  padding: var(--space-3) var(--space-4);
  background: #fff;
  border: 1px solid #b8c1d6;
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: var(--focus-ring);
}

.select1 {
  width: 100%;
  max-width: 320px;
  min-height: 48px;
}

.textarea1 {
  width: 100%;
  min-height: 300px;
  font-size: 1rem;
}

.textarea2 {
  width: 100%;
  min-height: 120px;
  font-size: 1rem;
}

/* Generic label/input layout */
label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: var(--space-2) 0;
  padding: var(--space-2) var(--space-3);
  text-align: left;
  border-radius: var(--radius-sm);
}

label p {
  margin: 0;
  width: 100%;
}

input[type="radio"],
input[type="checkbox"] {
  transform: scale(1.25);
  margin-right: 0.75em;
}

/* =========================================================
   Single-choice question block
   ========================================================= */
.choice-list-single {
  margin-top: var(--space-5);
}

.choice-row-single {
  display: grid !important;
  grid-template-columns: 40px 1fr;
  align-items: center !important;
  column-gap: var(--space-5);
  margin: 0 0 var(--space-6) 0 !important;
  padding: 4px 0 !important;
}

.choice-row-single .choice-radio-single {
  appearance: auto;
  -webkit-appearance: radio;
  width: 28px;
  height: 28px;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  -webkit-transform: none !important;
  justify-self: center;
  align-self: center;
}

.choice-row-single .choice-label-single {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  text-align: left !important;
  cursor: pointer;
}

.choice-row-single .choice-text-single {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--text) !important;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.6;
}

.choice-row-single.is-selected .choice-text-single,
.choice-row-single .choice-text-single.is-selected {
  color: #d00 !important;
  font-weight: 700 !important;
}

/* =========================================================
   Tables
   ========================================================= */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table,
table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--surface);
}

th,
td {
  padding: var(--space-2) var(--space-1);
  border: 1px solid var(--border);
  vertical-align: top;
  word-break: break-word;
}

th {
  background: var(--primary);
  color: #fff;
}

/* =========================================================
   Lists / Links
   ========================================================= */
.lecture-list {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.lecture-list-item {
  margin: 0;
}

.lecture-link {
  display: block;
  padding: var(--space-4) var(--space-5);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 700;
}

.lecture-link:hover {
  background: #eef4ff;
  text-decoration: none;
}

.link-list {
  margin: 0;
  padding-left: 1.2em;
}

.link-list li {
  margin-bottom: var(--space-2);
}

.contact-box {
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================================================
   Utilities
   ========================================================= */
.center-text {
  text-align: center;
}

.width10,
.width60 {
  width: auto;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .page-container {
    padding: var(--space-3);
  }

  .page-card,
  .section-card {
    padding: var(--space-4);
    border-radius: var(--radius-md);
  }

  .page-title,
  .lecture-title-bar {
    padding: var(--space-3);
    font-size: 1rem;
  }

  .logout-bar {
    justify-content: space-between;
    padding: var(--space-2) var(--space-3) 0;
  }

  .button-row > * {
    flex: 1 1 100%;
  }

  .sbt_1,
  .sbt_2,
  .sbt_3,
  .sbt_4 {
    width: 100%;
  }

  .table-wrap table,
  table {
    min-width: 640px;
  }

  .choice-row-single {
    grid-template-columns: 34px 1fr;
    column-gap: var(--space-3);
    margin-bottom: var(--space-5) !important;
  }

  .choice-row-single .choice-radio-single {
    width: 24px;
    height: 24px;
  }

  .button-row {
    justify-content: center;
  }
  
  .button-row > * {
    flex: 0 0 auto;
  }
  
  .sbt_1,
  .sbt_2,
  .sbt_3,
  .sbt_4 {
    width: auto;
    min-width: 120px;
  }
  
}
