* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fbf8f1;
  color: #2a2a35;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 18px;
  line-height: 1.8;
}
header {
  background: #1f2547;
  color: #fff;
  padding: 22px 16px;
}
.bar {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.bar a { color: #fff; text-decoration: none; }
.brand .small { font-size: 13px; letter-spacing: .15em; color: #d9c48a; display: block; }
.brand .name { font-size: 22px; font-weight: 600; }
.logout { font-size: 14px; opacity: .85; white-space: nowrap; }
main { max-width: 860px; margin: 0 auto; padding: 28px 16px 60px; }
h1 { font-size: 26px; margin: 0 0 8px; font-weight: 600; }
h2 { font-size: 20px; margin: 32px 0 10px; font-weight: 600; }
.lead { margin: 0 0 24px; color: #55556a; }
.lessons { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.lessons a {
  display: block;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e3dccb;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}
.lessons a:hover, .lessons a:focus { border-color: #8a6d2f; }
.lessons .title { font-size: 21px; font-weight: 600; display: block; }
.lessons .desc { font-size: 16px; color: #55556a; display: block; }
.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1f2547;
  border-radius: 12px;
  overflow: hidden;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .waiting {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #d9c48a; font-size: 18px;
}
.back { display: inline-block; margin-bottom: 18px; color: #1f2547; font-size: 16px; }

/* 入口（合言葉を入れる画面） */
.gate {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: #1f2547;
  padding: 16px;
}
.card {
  background: #fbf8f1;
  width: min(100%, 420px);
  padding: 36px 28px;
  border-radius: 14px;
  text-align: center;
}
.card .small { font-size: 14px; color: #8a6d2f; letter-spacing: .15em; margin: 0 0 6px; }
.card h1 { font-size: 24px; margin: 0 0 24px; }
.card label { display: block; font-size: 16px; margin-bottom: 10px; }
.card input, .more input {
  width: 100%; font-size: 20px; padding: 12px;
  border: 1px solid #b9b3a3; border-radius: 8px;
}
.card input { text-align: center; }
.card button, .more button {
  font-size: 18px; padding: 13px 20px; border: 0; border-radius: 8px;
  background: #1f2547; color: #fff; cursor: pointer; white-space: nowrap;
}
.card button { margin-top: 18px; width: 100%; }
.error { color: #b3261e; font-size: 16px; margin: 0 0 16px; }

/* 一覧の下の「ほかの講座の合言葉を入れる」 */
.more { margin-top: 44px; padding-top: 8px; border-top: 1px solid #e3dccb; }
.more h2 { font-size: 18px; }
.more .row { display: flex; gap: 10px; max-width: 480px; }

.ainote { margin: 0 0 20px; padding: 10px 14px; font-size: 0.88em; line-height: 1.7; color: #55556a; background: #f6f3ea; border-left: 3px solid #c9a85a; border-radius: 3px; }

/* テキスト（PDF）のボタン */
.pdf {
  display: inline-block; padding: 13px 22px; border-radius: 8px;
  background: #8a6d2f; color: #fff; text-decoration: none; font-weight: 600; font-size: 18px;
}
.pdf:hover, .pdf:focus { background: #6f5624; }
.textbox { margin: 0 0 8px; }
.textbox .note { display: block; margin-top: 8px; font-size: 15px; color: #55556a; }
.kansou { margin-top: 36px; padding: 18px 20px; background: #fff; border: 1px solid #e3dccb; border-radius: 12px; }
.kansou h2 { margin: 0 0 6px; font-size: 20px; }
.kansou p { margin: 0 0 14px; font-size: 16px; color: #55556a; }
.linebox { margin: 0 0 24px; }
