:root {
  font-family: 'Yu Gothic UI', 'Meiryo', sans-serif;
  color: #263e37;
  background: #f5f7f3;
  font-synthesis: none;
  --green: #206b59;
  --muted: #6e7d76;
  --line: #dce5dc;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #c69840;
  outline-offset: 4px;
}
.header {
  height: 88px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1100px) / 2));
  background: #fff;
}
.brand {
  text-decoration: none;
  font-weight: 800;
  font-size: 26px;
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}
.brand-icon {
  background: var(--green);
  color: white;
  border-radius: 12px;
  font-size: 20px;
  padding: 7px 11px;
}
.brand small {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 500;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.account {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}
.text-button {
  border: 0;
  background: none;
  color: var(--green);
  font-weight: bold;
  padding: 12px;
}
main {
  max-width: 1100px;
  margin: 40px auto 30px;
  padding: 0 24px;
  min-height: 65vh;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 10px;
}
h1 {
  font-size: 30px;
  letter-spacing: 0.02em;
  margin: 8px 0 12px;
}
h2 {
  font-size: 19px;
  margin: 0 0 16px;
}
h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
p {
  line-height: 1.9;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.welcome {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}
.date {
  font-size: 12px;
  color: var(--muted);
  padding-top: 8px;
}
.grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 24px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 22px;
}
.hero {
  background: #e9f0e7;
  border: 0;
  position: relative;
  overflow: hidden;
  padding: 32px;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tag {
  display: inline-block;
  border: 1px solid #c4d7c8;
  border-radius: 30px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
}
.day {
  font-size: 56px;
  font-weight: 750;
  line-height: 1.2;
  margin: 24px 0 12px;
  letter-spacing: -2px;
}
.day small {
  font-size: 18px;
  color: #718779;
  font-weight: 400;
  letter-spacing: 0;
}
.hero h2 {
  font-size: 23px;
}
.hero .muted {
  max-width: 410px;
}
.primary {
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
  border-radius: 10px;
  padding: 14px 22px;
  font-weight: 650;
  display: inline-flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--green);
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 600;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.progress {
  height: 7px;
  background: #d4e0d2;
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0 8px;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--green);
  width: 0;
}
.progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.metric p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 12px;
}
.metric strong {
  font-size: 28px;
  letter-spacing: -1px;
}
.metric small {
  font-size: 12px;
  color: var(--muted);
  margin-left: 4px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 18px;
}
.section-title h2 {
  margin: 0;
}
.plan {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plan li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #eef1eb;
  font-size: 13px;
}
.plan li:last-child {
  border: 0;
}
.plan .num {
  color: var(--muted);
  font-size: 11px;
  width: 28px;
}
.plan .current {
  color: var(--green);
  font-weight: bold;
}
.plan .done {
  color: #849587;
}
.plan .label {
  flex: 1;
}
.mini {
  font-size: 10px;
  color: var(--muted);
}
.allocation {
  display: flex;
  gap: 5px;
  margin: 20px 0 12px;
}
.allocation span {
  padding: 12px 8px;
  border-radius: 6px;
  font-size: 11px;
  text-align: center;
  flex: 7;
  background: #e9f0e7;
}
.allocation span:nth-child(2) {
  flex: 4;
  background: #f0eeda;
}
.allocation span:nth-child(3) {
  flex: 1;
  background: #f1f2ee;
}
.callout {
  background: #f7f4e9;
  border: 1px solid #e8dfbd;
  border-radius: 12px;
  padding: 16px;
  font-size: 12px;
  line-height: 1.8;
  margin: 16px 0;
  color: #6a603e;
}
.empty {
  text-align: center;
  padding: 36px 20px;
}
.empty .symbol {
  font-size: 36px;
  color: #81a391;
  display: block;
  margin-bottom: 12px;
}
.question {
  max-width: 760px;
  margin: auto;
}
.question-text {
  font-size: 19px;
  line-height: 1.9;
  white-space: pre-wrap;
  margin: 28px 0;
}
.choices {
  display: grid;
  gap: 12px;
}
.choice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 17px;
  color: #263e37;
  width: 100%;
  line-height: 1.7;
}
.choice.selected {
  border: 2px solid var(--green);
  background: #edf5ef;
  padding: 16px;
}
.choice .letter {
  border-radius: 6px;
  background: #f0f3ee;
  min-width: 28px;
  text-align: center;
}
.choice.correct {
  border-color: var(--green);
  background: #edf5ef;
}
.result {
  border-left: 4px solid var(--green);
  padding: 16px;
  background: #edf5ef;
  margin-top: 20px;
}
.wrong {
  border-color: #b56c45;
  background: #fff3ea;
}
.result p {
  font-size: 13px;
}
.result li {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 8px;
}
.login {
  max-width: 470px;
  margin: 50px auto;
}
.field {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  font-size: 13px;
}
input,
select {
  border: 1px solid #b9c9bf;
  border-radius: 8px;
  padding: 13px;
  background: white;
  width: 100%;
}
.login .primary {
  width: 100%;
}
.bars {
  display: grid;
  gap: 18px;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.bar-track {
  height: 8px;
  background: #edf1eb;
  border-radius: 5px;
  margin-top: 8px;
}
.bar-fill {
  height: 8px;
  background: #6f9c83;
  border-radius: 5px;
}
.scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  font-size: 12px;
}
td,
th {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.bottom {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid #dce5dc;
  background: #fffffff5;
  box-shadow: 0 6px 24px #263e3710;
  border-radius: 18px;
  z-index: 5;
}
.bottom a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 75px;
  gap: 4px;
  font-size: 10px;
  color: var(--muted);
  padding: 4px 8px;
}
.bottom a span {
  font-size: 22px;
  line-height: 1;
}
.bottom a.active {
  color: var(--green);
  font-weight: bold;
  background: #edf3e9;
  border-radius: 10px;
}
footer {
  max-width: 1100px;
  margin: 30px auto 130px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
#notice {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  background: #263e37;
  color: white;
  border-radius: 10px;
  z-index: 10;
  padding: 0;
}
#notice:not(:empty) {
  padding: 14px 22px;
}
.exam-map {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.exam-map button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  padding: 6px;
  min-width: 34px;
}
.exam-map button.answered {
  background: #e9f0e7;
}
.exam-map button.current {
  border: 2px solid var(--green);
}
.timer {
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: bold;
}
.pill {
  font-size: 10px;
  background: #eaf1e7;
  padding: 5px 8px;
  border-radius: 5px;
}
.trend {
  display: flex;
  gap: 7px;
  align-items: flex-end;
  height: 130px;
  margin: 24px 0;
}
.trend > div {
  flex: 1;
  text-align: center;
  font-size: 10px;
}
.trend i {
  display: block;
  background: #7caa8b;
  min-height: 2px;
  border-radius: 4px 4px 0 0;
}
.trend span {
  display: block;
  margin-top: 5px;
}
.error {
  color: #a3432b;
}
@media (min-width: 900px) {
  .hero {
    min-height: 340px;
  }
  .hero:after {
    content: '一歩ずつ。';
    position: absolute;
    right: 24px;
    top: 110px;
    writing-mode: vertical-rl;
    font-size: 22px;
    letter-spacing: 8px;
    color: #bfd0bb;
  }
  .hero .primary {
    min-width: 220px;
  }
  .metrics {
    margin-top: 0;
  }
}
@media (max-width: 760px) {
  .header {
    height: 70px;
    padding: 0 20px;
  }
  .brand {
    font-size: 23px;
  }
  .brand small {
    font-size: 8px;
  }
  .account {
    gap: 0;
  }
  .account > span {
    display: none;
  }
  main {
    margin: 26px auto;
    padding: 0 20px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .welcome {
    margin-bottom: 20px;
  }
  .date {
    display: none;
  }
  h1 {
    font-size: 25px;
  }
  .hero {
    padding: 24px;
  }
  .hero h2 {
    font-size: 21px;
  }
  .day {
    font-size: 48px;
    margin: 20px 0 12px;
  }
  .card {
    padding: 22px;
    border-radius: 15px;
  }
  .metrics {
    gap: 8px;
  }
  .metric {
    padding: 15px 10px;
  }
  .metric p {
    font-size: 10px;
  }
  .metric strong {
    font-size: 24px;
  }
  .metric small {
    font-size: 10px;
  }
  .bottom {
    bottom: 0;
    border-radius: 16px 16px 0 0;
    width: 100%;
    padding: 10px 6px max(10px, env(safe-area-inset-bottom));
    gap: 0;
    justify-content: space-around;
  }
  .bottom a {
    min-width: 0;
    flex: 1;
    padding: 5px;
  }
  .question-text {
    font-size: 17px;
  }
  .primary {
    padding: 14px 18px;
  }
  .login {
    margin: 20px auto;
  }
  .allocation span {
    font-size: 10px;
  }
  .hero .actions .primary {
    width: 100%;
  }
  footer {
    margin-bottom: 110px;
    gap: 12px;
    font-size: 10px;
  }
  .question .actions > * {
    flex: 1;
  }
  .tag {
    font-size: 10px;
  }
  .account .text-button {
    font-size: 11px;
    padding-right: 0;
  }
}
