:root {
  --ink: #142e3a;
  --muted: #50636b;
  --line: #dce1de;
  --paper: #f8f9f5;
  --navy: #163642;
  --red: #ab422c;
  --coral: #f58e6f;
  --teal: #245b58;
  --white: #fff;
  --sidebar: 224px;
  font-family: "DM Sans", "Aptos", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.6;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #d26447;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.15;
}
svg {
  vertical-align: middle;
  flex: none;
}
.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mark {
  background: #d1684b;
  color: white;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.mark .icon {
  width: 29px;
  height: 29px;
  stroke-width: 1.8;
}
.brand strong {
  font-size: 21px;
  letter-spacing: -1px;
  display: block;
}
.brand small {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--muted);
}
.side {
  background: #fcfcfa;
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  z-index: 4;
  padding: 29px 17px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.side .brand {
  padding: 0 5px 33px;
}
.group {
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #667775;
  font-weight: 700;
  margin: 22px 12px 10px;
}
.navitem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 570;
  color: #455b64;
  margin: 2px 0;
}
.navitem:hover {
  background: #eff1ed;
}
.navitem.on {
  background: #f5e4da;
  color: #923e2a;
  font-weight: 700;
}
.sidefooter {
  margin-top: auto;
  padding: 18px 8px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.sidefooter b {
  color: var(--ink);
  display: block;
  font-size: 14px;
}
.seal {
  font-family: serif;
  font-size: 23px;
  border: 1px solid #c7a99a;
  border-radius: 5px;
  color: #99513d;
  padding: 0 5px;
}
.work {
  margin-left: var(--sidebar);
}
.top {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(18px, 3.5vw, 56px);
}
.crumb,
.row,
.actions,
.meta,
.between,
.inline,
.sectionHead {
  display: flex;
  align-items: center;
  gap: 10px;
}
.crumb {
  font-size: 14px;
  color: var(--muted);
}
.crumb b {
  color: var(--ink);
}
.crumb i {
  color: #a0ada9;
  font-style: normal;
}
.top .brand,
.top .menu {
  display: none;
}
.wrap {
  max-width: 1500px;
  margin: auto;
  padding: 28px clamp(18px, 3.5vw, 56px) 55px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--navy);
  color: white;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 670;
  font-size: 14px;
  min-height: 42px;
  text-align: center;
}
.btn:hover {
  filter: brightness(0.93);
}
.btn.light {
  background: #fff;
  border-color: #cdd7d3;
  color: var(--ink);
}
.btn.coral {
  background: #f5a285;
  color: #262c2c;
}
.btn.ghost {
  background: transparent;
  border-color: #9ab5bb;
  color: #fff;
}
.btn.sm {
  padding: 8px 12px;
  min-height: 37px;
}
.iconbtn {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
  background: white;
  border-radius: 8px;
  width: 39px;
  height: 39px;
}
.link {
  font-weight: 680;
  color: #994930;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link .icon {
  width: 16px;
}
.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: 290px;
  border-radius: 16px;
  background: #153542;
  display: flex;
  align-items: center;
  color: white;
}
.hero img {
  position: absolute;
  inset: 0 0 0 auto;
  width: 55%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  z-index: -2;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #163542 0%,
    #163542 37%,
    rgba(22, 53, 66, 0.89) 46%,
    rgba(22, 53, 66, 0.27) 60%,
    transparent 72%
  );
}
.heroContent {
  padding: 32px 38px;
  width: 55%;
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 750;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.hero .eyebrow {
  color: #f7b49a;
}
.hero .eyebrow:before {
  content: "";
  background: #f7a182;
  width: 24px;
  height: 2px;
}
.hero h1 {
  font-size: clamp(32px, 3.45vw, 58px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.055em;
}
.hero p {
  font-size: 16px;
  max-width: 405px;
  color: #e0e8e6;
  line-height: 1.5;
  margin: 14px 0 20px;
}
.sectionHead,
.between {
  justify-content: space-between;
}
.sectionHead {
  align-items: end;
  margin: 31px 0 15px;
}
.sectionHead h2,
.pageHead h1 {
  font-size: clamp(26px, 2.2vw, 36px);
}
.sectionHead p,
.pageHead p,
.muted,
.help {
  color: var(--muted);
  line-height: 1.55;
}
.sectionHead p,
.pageHead p {
  margin-top: 5px;
}
.pageHead {
  margin: 8px 0 24px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card,
.panel,
.item,
.tableWrap,
.result {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.course {
  display: block;
  overflow: hidden;
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.course:hover {
  transform: translateY(-3px);
  border-color: #b2bfb9;
}
.cover {
  height: 98px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #663e24;
  background: #efd4b4;
}
.cover:before {
  content: "";
  position: absolute;
  right: -14px;
  inset-block: -20px;
  width: 69%;
  z-index: -1;
  opacity: 0.26;
  background: repeating-radial-gradient(
    ellipse at 100% 110%,
    transparent 0 9px,
    currentColor 10px 11px,
    transparent 12px 21px
  );
  transform: rotate(-7deg);
}
.cover.i2 {
  background: #c3ddd3;
  color: #285c50;
}
.cover.i2:before {
  background:
    repeating-linear-gradient(
      55deg,
      transparent 0 9px,
      currentColor 10px 11px,
      transparent 12px 19px
    ),
    repeating-linear-gradient(
      -55deg,
      transparent 0 9px,
      currentColor 10px 11px,
      transparent 12px 19px
    );
  opacity: 0.22;
}
.cover.m {
  background: #d8d8e8;
  color: #514d72;
}
.cover.m:before {
  background: repeating-radial-gradient(
    circle at 65% 101%,
    transparent 0 12px,
    currentColor 13px 14px,
    transparent 15px 22px
  );
  width: 82%;
}
.cover span {
  font-family: "Yu Mincho", "Noto Serif CJK JP", serif;
  font-size: clamp(29px, 2.4vw, 43px);
  font-weight: 650;
  letter-spacing: 2px;
}
.cover em {
  position: absolute;
  right: 12px;
  top: 12px;
  font: 700 12px/1.2 inherit;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
  background: #fffc;
  padding: 4px 7px;
  border-radius: 5px;
}
.courseBody {
  padding: 15px 17px;
}
.courseBody h3 {
  font-size: 20px;
}
.courseBody p {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0 13px;
  line-height: 1.4;
}
.meta {
  font-size: 13px;
  color: var(--muted);
  gap: 6px;
}
.meta .icon {
  width: 16px;
  height: 16px;
}
.meta .plus {
  margin-left: auto;
  color: #566e70;
}
.examRow,
.lessonRow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.list > :last-child {
  border-bottom: 0;
}
.list {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.tile {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 17px;
  font-weight: 700;
  color: #984b32;
  background: #f5e9df;
}
.tile.green {
  background: #e4eeea;
  color: #285850;
}
.tile.lilac {
  background: #ecebf3;
  color: #555070;
}
.examRow strong,
.lessonRow strong {
  display: block;
  font-size: 16px;
}
.examRow small,
.lessonRow small {
  display: block;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 3px;
}
.end {
  margin-left: auto;
  flex: none;
}
.list a:hover {
  background: #f6f8f4;
}
.badge {
  font-size: 12px;
  font-weight: 700;
  color: #356650;
  background: #e8f2e8;
  border-radius: 5px;
  padding: 4px 7px;
}
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.8fr);
  gap: 18px;
}
.panel {
  padding: 21px;
}
.panel h2,
.panel h3 {
  margin-bottom: 12px;
}
.panel h2 {
  font-size: 23px;
}
.panel p {
  line-height: 1.55;
}
.panel + .panel,
.blockGap {
  margin-top: 18px;
}
.kamusPromo {
  background: #e7ede8;
}
.kanjiIcon {
  font-family: serif;
  font-size: 30px;
  color: var(--teal);
  margin-bottom: 14px;
}
.panel .btn {
  margin-top: 12px;
}
.actions {
  flex-wrap: wrap;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 14px 0;
}
.chip {
  border: 1px solid #d0d9d4;
  background: white;
  color: var(--ink);
  padding: 8px 13px;
  min-height: 39px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
}
.chip.on {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: white;
  border: 1px solid #bfcac5;
  border-radius: 8px;
  padding: 0 12px;
  flex: 1;
  min-width: 190px;
  max-width: 580px;
}
.search input {
  background: transparent;
  border: 0;
  width: 100%;
  padding: 11px 0;
  outline-offset: 0;
}
.forms {
  max-width: 670px;
  margin: 0 auto;
}
.field {
  display: block;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  margin: 5px 0 12px;
}
.field input,
.field select {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #bcc9c5;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  margin-top: 5px;
  min-height: 43px;
}
.field input:disabled {
  background: #f1f3ee;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.check {
  display: flex;
  align-items: start;
  gap: 10px;
  line-height: 1.5;
  font-size: 14px;
  margin: 13px 0;
}
.check input {
  margin-top: 4px;
}
.notice {
  border-left: 3px solid #b46646;
  background: #faf0e7;
  color: #71462d;
  padding: 12px 15px;
  margin: 12px 0;
  border-radius: 4px;
  line-height: 1.5;
}
.help {
  font-size: 14px;
  margin: 8px 0;
}
.tableWrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th,
td {
  border-bottom: 1px solid #e2e7e1;
  padding: 12px 15px;
  vertical-align: top;
}
th {
  background: #edf2ec;
  font-size: 13px;
  color: #455c58;
}
td {
  font-size: 15px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.jp {
  font-family: "Yu Gothic", "Noto Sans CJK JP", "Hiragino Sans", sans-serif;
  font-size: 19px;
  line-height: 1.55;
}
.kana {
  color: var(--muted);
  font-size: 14px;
}
.pattern {
  margin-bottom: 12px;
}
.example {
  background: #f4f6f1;
  border-left: 3px solid #9eb7a8;
  padding: 12px 15px;
  margin-top: 12px;
}
.example small {
  display: block;
}
.statGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.statGrid .card {
  padding: 15px;
}
.statGrid strong {
  font-size: 28px;
  display: block;
}
.statGrid span {
  font-size: 14px;
  color: var(--muted);
}
.opts {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.opt {
  background: #fff;
  color: var(--ink);
  border: 1px solid #b8c8bf;
  padding: 13px 16px;
  text-align: left;
  border-radius: 8px;
  font-size: 17px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.opt b {
  font-size: 13px;
  color: #4d655f;
}
.opt.on {
  background: #e8f2eb;
  border-color: #37634b;
  box-shadow: inset 0 0 0 1px #37634b;
}
.passage {
  white-space: pre-line;
  background: #f3f5ee;
  padding: 16px 18px;
  border-radius: 8px;
  margin: 13px 0;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-weight: bold;
}
.steps {
  display: flex;
  gap: 5px;
  margin: 14px 0;
}
.steps span {
  height: 6px;
  flex: 1;
  background: var(--line);
  border-radius: 6px;
}
.steps .on {
  background: #af5a3d;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 13px 0;
  font-size: 14px;
}
.empty {
  padding: 19px;
  color: var(--muted);
}
.tight {
  margin-bottom: 10px;
}
.stack > * + * {
  margin-top: 9px;
}
details {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-weight: 650;
}
details p {
  margin: 7px 0;
}
#note {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  max-width: min(94vw, 630px);
  background: #173c49;
  color: white;
  border-radius: 9px;
  padding: 12px 19px;
  box-shadow: 0 4px 24px #112b3633;
}
#note:empty {
  display: none;
}
.top .actions {
  justify-content: end;
}
.sectionHead a {
  white-space: nowrap;
}
.inline {
  flex-wrap: wrap;
}
.back {
  margin-bottom: 15px;
  display: inline-flex;
}
.mobileShade {
  display: none;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  overflow: hidden;
}
.loading {
  padding: 30px;
}
.screenfoot {
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
}
@media (min-width: 1550px) {
  .hero {
    min-height: 340px;
  }
  .cover {
    height: 120px;
  }
}
@media (max-width: 1100px) {
  :root {
    --sidebar: 198px;
  }
  .side {
    padding-left: 11px;
    padding-right: 11px;
  }
  .wrap {
    padding-inline: 22px;
  }
  .heroContent {
    padding: 25px;
    width: 59%;
  }
  .cards {
    gap: 11px;
  }
  .cover {
    height: 86px;
  }
  .courseBody {
    padding: 13px;
  }
  .cols {
    grid-template-columns: 1.5fr 1fr;
  }
}
@media (max-width: 790px) {
  :root {
    --sidebar: 0px;
  }
  .side {
    width: 240px;
    transform: translateX(-105%);
    transition: transform 0.15s;
  }
  .side.open {
    transform: none;
  }
  .mobileShade.open {
    display: block;
    background: #102d3c55;
    position: fixed;
    inset: 0;
    z-index: 3;
    border: 0;
    width: 100%;
  }
  .top {
    padding: 0 16px;
    height: 64px;
  }
  .top .brand {
    display: flex;
  }
  .top .brand small {
    display: none;
  }
  .top .brand .mark {
    width: 33px;
    height: 33px;
    border-radius: 8px;
  }
  .top .brand .mark .icon {
    width: 23px;
  }
  .top .brand strong {
    font-size: 18px;
  }
  .top .menu {
    display: inline-grid;
  }
  .crumb {
    display: none;
  }
  .wrap {
    padding: 18px 16px 45px;
  }
  .heroContent {
    width: 61%;
  }
  .cols {
    grid-template-columns: 1.45fr 1fr;
  }
}
@media (max-width: 590px) {
  .hero {
    min-height: 260px;
  }
  .heroContent {
    padding: 21px 19px;
    width: 75%;
  }
  .hero img {
    width: 68%;
    object-position: 62% 50%;
  }
  .hero:after {
    background: linear-gradient(
      90deg,
      #163542 0%,
      #163542ed 37%,
      #16354288 64%,
      #16354216
    );
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero p {
    font-size: 14px;
  }
  .hero .eyebrow {
    font-size: 10px;
  }
  .cards,
  .cols {
    grid-template-columns: 1fr;
  }
  .course {
    display: grid;
    grid-template-columns: 101px minmax(0, 1fr);
  }
  .cover {
    height: auto;
    min-height: 102px;
    padding: 12px 6px;
    justify-content: center;
  }
  .cover span {
    font-size: 23px;
    letter-spacing: -1px;
  }
  .cover em {
    top: 5px;
    right: 5px;
    font-size: 10px;
  }
  .courseBody h3 {
    font-size: 19px;
  }
  .courseBody p {
    margin-bottom: 9px;
  }
  .sectionHead {
    margin-top: 25px;
    align-items: center;
  }
  .sectionHead h2 {
    font-size: 24px;
  }
  .sectionHead p {
    font-size: 14px;
  }
  .examRow {
    gap: 9px;
    padding: 12px;
  }
  .tile {
    width: 37px;
    height: 37px;
  }
  .examRow .badge {
    display: none;
  }
  .panel {
    padding: 16px;
  }
  .top .actions .btn {
    padding: 8px 11px;
  }
  .statGrid {
    gap: 6px;
  }
  .statGrid .card {
    padding: 10px;
  }
  .statGrid strong {
    font-size: 24px;
  }
  .statGrid span {
    font-size: 12px;
  }
  .filters .search {
    max-width: 100%;
  }
  .grid2 {
    gap: 0 8px;
  }
  .field {
    font-size: 13px;
  }
  .meta {
    font-size: 12px;
  }
  .list .lessonRow {
    padding: 12px;
  }
  .top .brand {
    gap: 6px;
  }
  .sectionHead .link {
    font-size: 13px;
  }
  .pagination {
    gap: 7px;
  }
}

.wordAudio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.wordAudio .icon {
  width: 15px;
  height: 15px;
  color: #687e74;
}
.wordAudio:hover {
  color: var(--red);
}
@media (max-width: 590px) {
  .cover.m span {
    font-size: 18px;
    line-height: 1.35;
    text-align: center;
  }
  .cover.m {
    padding-inline: 10px;
  }
}

.side .brand {
  gap: 8px;
}
.side .brand .mark {
  flex: 0 0 33px;
  width: 33px;
  height: 35px;
  border-radius: 9px;
}
.side .brand .mark .icon {
  width: 23px;
  height: 23px;
}
.side .brand strong {
  white-space: nowrap;
  font-size: 19px;
}
.side .brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.ambience-controls {
  display: inline-flex;
  flex: none;
  gap: 3px;
}
.ambience-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--muted);
}
.ambience-button .icon {
  width: 23px;
  height: 23px;
}
.ambience-button .staff-lines {
  opacity: 0.34;
  stroke-width: 0.9;
}
.ambience-button[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.ambience-button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.ambience-button:disabled {
  opacity: 0.5;
}
.sakura-layer {
  position: fixed;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  top: 0;
  bottom: 0;
  inset-inline: 0;
  overflow: hidden;
  contain: strict;
}
.sakura-layer[hidden] {
  display: none;
}
.sakura-layer i {
  --offset: 8%;
  --drift: -52px;
  --duration: 21s;
  --delay: -2s;
  position: absolute;
  top: -16px;
  left: var(--offset);
  width: 12px;
  height: 9px;
  border-radius: 80% 20% 75% 22%;
  background: linear-gradient(135deg, #e7a1ad, #f5c8d0 64%, #df94a3);
  animation: sakura-fall var(--duration) linear var(--delay) infinite;
}
.sakura-layer i:nth-child(2) {
  --offset: 48%;
  --drift: -38px;
  --duration: 27s;
  --delay: -15s;
  width: 9px;
  height: 7px;
}
.sakura-layer i:nth-child(3) {
  --offset: 91%;
  --drift: -65px;
  --duration: 24s;
  --delay: -9s;
  width: 10px;
  height: 8px;
}
.sakura-layer i:nth-child(4) {
  --offset: 29%;
  --drift: -47px;
  --duration: 29s;
  --delay: -23s;
}
.sakura-layer i:nth-child(5) {
  --offset: 71%;
  --drift: -87px;
  --duration: 31s;
  --delay: -4s;
  width: 8px;
  height: 6px;
}
.sakura-layer i:nth-child(6) {
  --offset: 19%;
  --drift: -74px;
  --duration: 32s;
  --delay: -23s;
  width: 8px;
  height: 6px;
}
.sakura-layer i:nth-child(7) {
  --offset: 81%;
  --drift: -56px;
  --duration: 28s;
  --delay: -9s;
  width: 7px;
  height: 5px;
}
.sakura-layer.paused i {
  animation-play-state: paused;
}
@keyframes sakura-fall {
  0% {
    transform: translate3d(0, -3vh, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.73;
  }
  50% {
    transform: translate3d(calc(var(--drift) * 0.43), 51vh, 0) rotate(140deg);
    opacity: 0.6;
  }
  88% {
    opacity: 0.65;
  }
  100% {
    transform: translate3d(var(--drift), 106vh, 0) rotate(280deg);
    opacity: 0;
  }
}
@media (max-width: 790px) {
  .sakura-layer i:nth-child(4) {
    width: 8px;
    height: 6px;
  }
  .sakura-layer i:nth-child(n + 5) {
    display: none;
  }
  .sakura-layer i { --drift: -5vw; }
}
@media (max-width: 590px) {
  .accountTools {
    gap: 5px;
    flex-wrap: nowrap;
  }
  .top .brand strong {
    font-size: 16px;
  }
  .top {
    gap: 6px;
  }
  .heroContent .actions {
    gap: 6px;
  }
  .heroContent .actions .btn {
    font-size: 13px;
    padding: 8px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sakura-layer {
    display: none;
  }
  .sakura-layer i {
    animation: none;
  }
}

@media (max-width: 460px) {
  .top .row {
    min-width: 0;
    gap: 5px;
  }
  .top .brand {
    min-width: 0;
  }
  .top .brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .top .brand > span:last-child {
    min-width: 0;
  }
  .accountTools > .btn {
    max-width: 24vw;
    white-space: nowrap;
    overflow: hidden;
  }
}
@media (max-width: 370px) {
  .top {
    padding-inline: 8px;
  }
  .top .brand > span:last-child {
    display: none;
  }
}

@media (max-width: 790px) {
  .side {
    visibility: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .side.open {
    visibility: visible;
  }
  .top .menu,
  .top .btn,
  .top #logout {
    min-height: 44px;
  }
  .top .menu {
    min-width: 44px;
  }
  .field input,
  .field select,
  .search input {
    font-size: 16px;
    min-height: 44px;
  }
}
@media (max-width: 460px) {
  .forms .grid2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .forms .btn,
  .filters .chip {
    min-height: 44px;
  }
  .heroContent {
    width: 100%;
  }
  .between {
    flex-wrap: wrap;
  }
}

/* Panduan, rencana belajar, dan laporan kelas */
.homeGuide {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.homeGuide .btn {min-height:44px}
.side {overflow-y:auto}
.side .group {margin-top:16px}
.lessonTools,.kpiHead {margin-bottom:16px}
.guideGroup {max-width:860px;margin:28px 0}
.guideGroup h2 {font-size:1.35rem;margin:0 0 12px}
.faqItem {background:#fff;border:1px solid var(--line);border-radius:11px;padding:13px 17px;margin:8px 0}
.faqItem summary,.kpiDetails summary {cursor:pointer;font-weight:650;line-height:1.5}
.faqItem p {line-height:1.6;margin:12px 0}
.kpiHead {align-items:flex-end}
.kpiHead .field,.planForm .field {margin:0}
.kpiHero {display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:16px 0 10px}
.kpiHero strong {font-size:clamp(2.5rem,6vw,4rem);color:var(--teal);line-height:1;letter-spacing:-.06em}
.kpiHero strong small {font-size:.5em;margin-left:3px}
.kpiHero p,.planIntro p,.planForm p {color:var(--muted);line-height:1.55}
.kpiBar {width:100%;height:10px;accent-color:var(--teal)}
.taskList {padding:0;margin:14px 0 20px;list-style:none}
.taskList li,.dayLine {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.taskList b,.kpiDetails p {font-size:.9rem}
.planIntro,.planForm,.drill,.watch {max-width:850px}
.planIntro h2,.planForm h2,.drill h2,.watch h2 {margin:0 0 14px}
.planIntro .list,.planForm,.planIntro p,.planForm .field,.watch .actions {margin-top:16px}
.planForm button,.drill .actions {margin-top:14px}
.chapterSelect {max-width:650px}
.field select {max-width:100%;width:100%;padding:10px 38px 10px 12px;border:1px solid #c5d1cd;border-radius:8px;background-color:#fff;color:var(--ink)}
.materialFilm {display:block;width:100%;max-width:100%;height:auto;min-height:min(200px,56vw);aspect-ratio:16/9;background:#152b33;border:0;border-radius:10px;object-fit:contain}
.materialMedia {display:grid;gap:.55rem;min-width:0;justify-items:start}
.scanVideos {margin-top:1rem}
td .materialMedia {min-width:200px;max-width:28rem}
.basicTasks > section[id] {scroll-margin-top:5rem}
.watch,.planIntro,.drill {margin-top:16px}
.materialFilm:fullscreen {height:100%;border-radius:0}
.recallFace {margin:1rem 0;padding:22px 16px;border-radius:12px;background:#f1f4ed;line-height:1.5;text-align:center}
.recallFace strong {font-size:clamp(1.4rem,3vw,2.1rem);overflow-wrap:anywhere}
.recallFace p,.drillPrompt {margin-top:12px}
.modelKanji {display:inline-block;padding:0 8px;font-size:2.6rem}
.drill details {margin-top:16px}
.kpiDetails {white-space:normal;min-width:108px}
.kpiDetails p {margin:5px 0}
[hidden] {display:none!important}
@media (max-width:590px) {
 .homeGuide {gap:8px}.homeGuide .link,.homeGuide .btn{font-size:14px}
 .taskList li,.dayLine{align-items:flex-start}.taskList b{text-align:right}
 .kpiHead {align-items:stretch}.kpiHead .field{width:100%}
 .watch,.drill {padding:15px}
 .side .brand{padding-bottom:10px}
}

.voiceButton {
  display:inline-flex;align-items:center;justify-content:center;gap:.4rem;
  min-height:42px;padding:.4rem .75rem;border:1px solid #c5d9cd;border-radius:8px;
  background:#f0f6ef;color:#24564c;font-size:.9rem;font-weight:650;line-height:1.35;
}
.voiceButton.generated {color:#515c61;border-color:#d8ddda;background:#f7f8f6}
.voiceButton:hover,.voiceButton.speaking {border-color:#386e60;background:#deeee4}
.voiceButton .icon {width:17px;height:17px}
.wordWithVoice {display:inline-block;text-align:left}
.wordWithVoice small {display:block;font-size:.79rem;font-weight:500}
.secondExample summary {font-size:.91rem;cursor:pointer}
.secondExample {margin-top:1rem}
.secondExample .voiceButton {margin-top:.65rem}
.voiceSamples {display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
.voiceForm {max-width:720px}
.voiceForm audio {width:100%}
@media(max-width:590px){.pattern .between{flex-wrap:wrap}.voiceButton{min-height:44px}}

/* Pilihan studi dan kerja */
.routeGrid, .matchColumns {display:grid;gap:18px;align-items:stretch}
.routeGrid {grid-template-columns:repeat(3,minmax(0,1fr))}
.matchColumns {grid-template-columns:1fr 1fr;align-items:start}
.routeGrid .panel, .matchColumns .panel {margin:0}
.routeCard {display:flex;flex-direction:column;align-items:flex-start;border-top:3px solid var(--teal)}
.routeCard .routeKind {color:var(--teal);font-weight:700;margin:0 0 10px}
.routeJP {font-size:1.125rem;color:var(--muted)}
.routeCard .btn {margin-top:auto}
.routeCard p, .matchColumns p {line-height:1.55}
.matchColumns .panel p + p {margin-top:12px}
.matchColumns .field:first-child {margin-top:18px}
.matchForm {max-width:40rem;margin-bottom:16px}
.matchFeedback {white-space:pre-line;overflow-wrap:anywhere}
.matchConsent {display:flex;align-items:flex-start;gap:10px;line-height:1.5;margin:16px 0}
.matchConsent input {width:18px;height:18px;flex:none}
.field textarea {width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;color:var(--ink)}
.homeGuide {justify-content:flex-start}
@media (max-width:850px) {.routeGrid, .matchColumns {grid-template-columns:minmax(0,1fr)}}

/* Buku Basic */
.basicIntro {display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,185px);align-items:center;gap:clamp(18px,5vw,68px);padding:clamp(20px,4vw,44px);background:#e9f1e9;border:1px solid #cbdace;border-radius:16px}
.basicIntro h1 {font-size:clamp(2rem,4.4vw,3.75rem);line-height:1.06;margin:9px 0;color:var(--navy);letter-spacing:-.045em}
.basicIntro p {max-width:52ch;line-height:1.6;margin-bottom:16px}
.basicIntro img {width:100%;height:auto;border-radius:3px;box-shadow:0 4px 15px #12332f29}
.basicMeta,.routeKind {font-size:.875rem;font-weight:700;color:var(--teal)}
.basicToolbar,.basicStart,.basicPager,.bookNav {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.basicToolbar,.basicStart {margin:24px 0 14px}
.basicContents {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.basicContents>a {display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--line);border-radius:10px;padding:14px 16px;background:white}
.basicContents>a:hover {border-color:var(--teal)}
.basicContents small {display:block;margin-top:5px;font-size:.875rem;line-height:1.4;color:var(--muted)}
.pageNumber {flex:none;color:var(--teal);font-size:.875rem}
.basicPager {margin:12px 0}
.basicPager label {display:flex;align-items:center;gap:8px}
.basicPager select {border:1px solid var(--line);border-radius:8px;padding:7px;font:inherit}
.bookWindow {max-width:100%;overflow:auto;background:#e3e8e4;border:1px solid var(--line);border-radius:12px}
.bookSheet {position:relative;width:min(100%,700px);margin:auto;line-height:0}
.bookWindow.zoomed .bookSheet {width:1050px;max-width:none}
.bookSheet img {display:block;width:100%;height:auto}
.pageHit,.pageHotLink {position:absolute;display:block;border:0;padding:0;border-radius:2px;background:transparent}
.pageHotLink {z-index:1}
.pageHit:focus-visible,.pageHit:hover,.pageHotLink:hover {outline:2px solid var(--teal);background:#71c3a338}
.bookNav {margin:12px 0}
.readerText {white-space:pre-wrap;line-height:1.75;overflow-wrap:anywhere}
.basicVocab,.kanjiSamples {padding:0;list-style:none}
.basicVocab li,.kanjiSamples li {padding:10px 0;border-bottom:1px solid var(--line)}
.basicVocab li>b {display:inline-block;margin-right:8px}
.basicTasks {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.basicTasks>.panel {margin:0}
.basicTasks ol {padding-left:1.25rem;line-height:1.55}
.kanaWriting {display:grid;gap:14px;margin:12px 0 18px;align-items:start}
.kanaWriting>* {min-width:0}
.kanaVideo,.kanaPractice {padding:14px;background:#fff;border:1px solid var(--line);border-radius:12px}
.kanaVideo h3 {margin:0 0 12px}
.kanaVideo .actions {margin:10px 0 0}
.kanaPractice summary {cursor:pointer;font-size:1.1rem;font-weight:700;padding:4px}
.kanaSelect {display:flex;align-items:center;gap:12px;margin:12px 0;font-weight:650}
.kanaSelect select {min-height:44px;border:1px solid var(--line);border-radius:8px;padding:6px 12px;font:inherit;background:white;color:var(--ink)}
.kanaCredit {display:block;margin-top:14px;color:var(--muted)}
.kanaCredit a {text-decoration:underline}
.kanaPractice .strokeMode button {min-height:44px}
@media(min-width:950px){.kanaReader{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.kanaWriting .btn {min-height:46px;margin-top:0}
.basicExample {display:grid;gap:8px;justify-items:start}
.basicExample .btn {min-height:44px;margin-top:0}
.basicExample .actions {margin:0}
.basicExample strong {font-size:1rem}
.basicExample .help {margin:0}
.basicExample .help:empty {display:none}
.basicExample input {width:100%;min-width:0;padding:8px;font:inherit}
.basicSubmit {margin-top:14px;border-top:1px solid var(--line);padding-top:4px}
.basicSubmit input {min-width:0}
.basicPrereq,.kanjiHint {line-height:1.55;color:var(--muted);margin-bottom:12px}

/* Bacaan dan bidang tulis kanji */
.kanjiInline,.kanjiWord {font:inherit;color:inherit;line-height:inherit;border:0;padding:0;background:transparent;vertical-align:baseline;text-align:inherit}
.kanjiInline {text-decoration:underline dotted #648982;text-underline-offset:.22em}
.kanjiWord {min-height:42px;padding:2px;color:var(--teal)}
.kanjiInline:hover,.kanjiWord:hover {background:#e2eee5}
.glyphGrid,.readingChips,.kanjiModes,.strokeMode,.strokeControls,.kanjiWordTabs {display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.glyphGrid .kanjiInline,.kanjiWordTabs button {display:grid;place-items:center;min-width:44px;min-height:44px;background:#f3f7f1;border:1px solid var(--line);border-radius:8px;font-size:1.45rem;text-decoration:none}
.kanjiDialog {color:var(--ink);background:#fcfdf9;border:0;padding:0 clamp(16px,3vw,28px) 20px;border-radius:16px;max-width:min(640px,94vw);width:640px;max-height:90vh;max-height:90dvh;box-shadow:0 16px 80px #10282338;overflow-y:auto;overscroll-behavior:contain}
.kanjiDialog::backdrop {background:#10282ec2}
.kanjiDialogHead {position:sticky;top:0;z-index:2;background:#fcfdf9;display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line)}
.kanjiDialogHead h2 {margin:0;font-size:1.3rem}
.kanjiSummary {display:flex;align-items:center;gap:16px;margin:14px 0}.kanjiSummary>b {font-size:3.1rem;color:var(--teal);line-height:1.25}
.kanjiDialog p {line-height:1.5;margin:6px 0 10px}
.kanjiWordTabs:not(:empty) {margin-top:12px}
.kanjiModes {border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:15px}
.kanjiModes button,.strokeMode button,.readingChip {background:#fff;border:1px solid #b5c8c0;color:var(--teal);border-radius:8px;min-height:42px;padding:6px 12px;font:inherit;font-weight:650}
.kanjiModes button[aria-pressed="true"],.strokeMode button[aria-pressed="true"],.kanjiWordTabs button[aria-pressed="true"] {background:var(--teal);border-color:var(--teal);color:#fff}
.kanjiRead h3 {font-size:1.15rem;margin:16px 0 6px}
.kanjiRead h3>span {font-size:1rem;font-weight:500}
.readingChip {display:inline-grid;grid-template-columns:auto auto;column-gap:6px;align-items:center;font-size:1.15rem}
.readingChip>small {grid-column:1;grid-row:2;font-size:.85rem;font-weight:500}
.readingChip .icon {width:14px;height:14px;grid-row:1/3;grid-column:2}
.onyomiExamples {margin:18px 0 20px}
.onyomiExamples h4 {margin:0 0 8px;font-size:1rem}
.onyomiExample {padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:#fff}
.onyomiWord {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px 12px}
.onyomiLabel,.onyomiExample .onyomiKana {font-size:.9rem;color:#475f60}
.onyomiWord h5 {margin:2px 0;font-size:1.6rem;line-height:1.35}
.onyomiExample mark {background:#e6f0e9;color:#194f4e;border-radius:3px}
.onyomiSentence {border-top:1px solid var(--line);margin-top:12px;padding-top:8px}
.onyomiSentence p:first-child {font-size:1.17rem;line-height:1.65;overflow-wrap:anywhere}
.onyomiListen {display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.onyomiListen small {color:#475f60}
.onyomiPlay {min-height:44px;white-space:nowrap;gap:6px}
.onyomiPlay[aria-pressed="true"] {background:var(--teal);color:white}
.onyomiExamples summary {cursor:pointer;color:var(--teal);padding:12px 0;font-weight:650}
.onyomiExamples details .onyomiExample {margin-bottom:10px}
.onyomiEpisode {display:block;margin-top:8px;font-size:.88rem}
.onyomiSources {display:inline-block;font-size:.84rem;margin-top:6px}
.kanjiSamples li {display:flex;align-items:center;justify-content:space-between;gap:6px}.kanjiSamples button {background:none;border:0}
.kanjiCredit {display:block;margin-top:20px;font-size:.875rem}
.strokeBoard {display:block;width:min(100%,305px);aspect-ratio:1;margin:8px auto;background:#fffcf5;border:1px solid #b7c7bb;border-radius:12px;user-select:none;-webkit-user-select:none}
.strokeBoard.traceMode {touch-action:none;cursor:crosshair}
.strokeGrid {stroke:#c7d3c9;stroke-width:.4;stroke-dasharray:2 2;fill:none}
.strokeModel path,.strokeInk {stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;fill:none}
.strokeFuture {stroke:#d4dcd4}.strokeDone {stroke:#244d50}.strokeNow {stroke:#a54822}
.startDot {fill:#007654;stroke:#fff;stroke-width:.55}.endDot {fill:white;stroke:#9d492c;stroke-width:.8}
.strokeInk {stroke:#007754;stroke-width:2.6}
.strokeFeedback {min-height:1.5em;font-weight:650;text-align:center}
.strokeControls {justify-content:center}.strokeInstruction {font-size:.95rem}
.kanjiWrite[hidden],.kanjiRead[hidden] {display:none}
@media(max-width:640px){
  .basicIntro {grid-template-columns:minmax(0,1fr) 80px;padding:15px;gap:12px;align-items:start}
  .basicIntro .actions {gap:6px}
  .basicIntro .basicMeta {font-size:.8rem}
  .basicIntro h1 {font-size:1.9rem}
  .basicContents,.basicTasks {grid-template-columns:1fr}
  .basicStart {align-items:flex-start}
  .bookWindow {border-radius:7px}
  .kanjiDialog {width:96vw;max-width:96vw;max-height:92dvh}
  .strokeBoard {width:min(100%,265px)}
  .strokeControls .btn {min-height:40px}
}

.materialEdit {margin:.35rem 0;white-space:normal}
.materialDialog {color:var(--ink,#17353b);background:white;border:1px solid #cad7d2;border-radius:16px;padding:0;width:min(94vw,640px);max-height:88dvh;overflow:auto;box-shadow:0 18px 65px #102f3538}
.materialDialog::backdrop {background:#102e35a6}
.materialDialogHead {display:flex;justify-content:space-between;align-items:center;gap:1rem;position:sticky;top:0;z-index:1;padding:1rem 1.25rem;background:white;border-bottom:1px solid #dce3df}
.materialDialogHead h2 {margin:0}
.materialDialogHead button {border:0;background:none}
.materialFormBody {padding:1.15rem}
.materialFields {display:grid;gap:.8rem;margin:1rem 0}
.materialFields textarea,.materialFields input {box-sizing:border-box;min-width:0;width:100%;font:inherit;padding:.65rem;border:1px solid #a8b9b3;border-radius:8px}
.materialFields textarea {resize:vertical}
.materialFields small {color:#526568}
.materialFormBody [hidden] {display:none}

.examCertificate {max-width:850px;margin:1.25rem auto 0;padding:clamp(1.35rem,5vw,3.8rem);text-align:center;border:6px double #a7834a;background:#fff;color:#183e40;border-radius:8px}
.examCertificate .certBrand {font-size:clamp(1.45rem,5vw,2.6rem);font-weight:800;letter-spacing:.04em}
.certBrand span {display:block;font-size:.9rem;font-weight:500;letter-spacing:.12em}
.examCertificate h2 {font-family:Georgia,serif;font-size:clamp(1.7rem,5vw,3.2rem);margin:.8rem 0 0}
.examCertificate h3 {font-size:clamp(1.45rem,4vw,2.4rem);overflow-wrap:anywhere;margin:.75rem}
.examCertificate p {margin:.65rem 0}
.certScore {display:grid;gap:.3rem;margin:1.15rem auto}
.certScore b {font-size:2.6rem;line-height:1.1}
.certScore small {font-size:1rem}
.examCertificate footer {display:flex;justify-content:space-between;flex-wrap:wrap;gap:.6rem;margin-top:1.4rem;padding-top:.7rem;border-top:1px solid #ad976b;font-size:.88rem;overflow-wrap:anywhere}
.certActions {justify-content:center;margin:1rem auto}
@media print {
  body:has(.examCertificate) {background:white!important;margin:0}
  body:has(.examCertificate) :is(.side,.top,.mobileShade,.sakura,.certActions,#toast) {display:none!important}
  body:has(.examCertificate) #main > :not(.examCertificate) {display:none!important}
  body:has(.examCertificate) :is(#studio,.work,#main) {display:block!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important}
  .examCertificate {break-inside:avoid;max-width:none;margin:1cm 0;print-color-adjust:exact}
}

.watch .castFilm {width:min(100%, 56.25svh, 520px); height:auto; min-height:0; aspect-ratio:720/832; margin-inline:auto; background:#142f37}
.watch .castFilm:fullscreen {width:100%; height:100%}
.filmDetails {border-top:1px solid #dce4df; padding:12px 0}
.filmDetails summary {cursor:pointer; font-weight:650}
.filmSteps {display:grid; gap:6px; margin:10px 0 2px}
.filmSteps button {display:flex; align-items:center; gap:12px; min-height:40px; padding:6px 10px; text-align:left; color:#194e4c; font:inherit; background:#f2f7f4; border:0; border-radius:6px; cursor:pointer}
.filmSteps button span {font-variant-numeric:tabular-nums}
.filmTranscript {padding-left:1.5rem}
.filmTranscript li {margin:.5rem 0}

.chapterOpening {margin:16px 0; padding:16px 20px; border-left:4px solid #39766b; background:#f4f9f6}
.chapterOpening p {margin:0 0 8px; font-weight:650; line-height:1.5}
.chapterOpening audio {display:block; width:100%; max-width:34rem; margin:12px 0 8px}
.prayerSource {display:flex; align-items:center; flex-wrap:wrap; gap:4px 16px; color:#41645e; font-size:.9rem}
.songTranscript summary {width:fit-content; padding:7px 0; color:#205d54; font-weight:650; cursor:pointer}
.chapterMusic {max-width:850px}
.chapterMusic .field {margin:12px 0 20px}
.chapterMusic h3 {margin:0; line-height:1.4; font-size:1.55rem}
.chapterMusic h3 small {font-size:1rem; font-weight:500; color:#41645e}
.songArtist {margin:3px 0 12px}
.songCaption {margin:12px 0 4px; line-height:1.5}
.songLinks {gap:10px 20px; margin:4px 0 8px}
.songLinks .link {display:inline-flex; align-items:center; min-height:42px}
.songViews {margin:8px 0 0}
.songPractice {margin-top:18px; padding:14px 16px; border-left:3px solid #528576; background:#f4f8f6}
.songPractice p,.songTranscript p {margin:6px 0}
.songFromVideo {margin-top:14px}

@font-face {
  font-family: "Yuji Mai Studio";
  src: url("/kotowaza/yuji-mai.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.kotowaza {
  display: grid;
  grid-template-columns: minmax(155px, 32%) minmax(0, 1fr);
  margin: 20px 0;
  border: 1px solid #d9d5c9;
  border-radius: 8px;
  overflow: hidden;
  background: #fffdf7;
  color: #292b26;
}
.kotoArt {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: start;
  min-width: 0;
  padding: 17px 12px 20px clamp(16px, 2vw, 44px);
  isolation: isolate;
  border-inline-end: 1px solid #dcd6c7;
  background: linear-gradient(125deg, #fbf7ed, #f2eddf);
}
.kotoArt::before {
  position: absolute;
  content: "";
  inset: 0;
  z-index: -1;
  background: url("/kotowaza/mountains.webp") right bottom / 120% auto no-repeat;
  opacity: .49;
  pointer-events: none;
}
.kotoBrush {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: .12em;
  margin: 0;
  color: #21231e;
  font: 400 clamp(1.7rem, 2.5vw, 2.1rem)/1.02 "Yuji Mai Studio", "Yu Mincho", "Noto Serif CJK JP", serif;
  font-synthesis: none;
}
.kotoBrush span { writing-mode: vertical-rl; text-orientation: upright; white-space: nowrap; }
.kotoSeal {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 0 1px 2px;
  border: 2px solid #95402e;
  border-radius: 3px 2px 4px 2px;
  color: #95402e;
  background: #f7f1e5;
  font: 400 1.25rem/1 "Yuji Mai Studio", serif;
  transform: rotate(-4deg);
}
.kanjiDialog .kotowaza { margin-bottom: 0; }
.kotoText { align-self: center; min-width: 0; padding: 18px clamp(16px, 2.6vw, 36px); }
.kotoText h2 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 9px;
  line-height: 1.3;
  font-family: inherit; font-size: .875rem; font-weight: 700;
  letter-spacing: .045em; color: #794434;
}
.kotoText h2::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.kotoKana { margin: 0; font-size: 1rem; line-height: 1.55; color: #303934; }
.kotoRomaji { margin: 0; color: #536057; line-height: 1.4; overflow-wrap: anywhere; font-size: .94rem; }
.kotoMeaning { margin: 9px 0 4px; font: 600 clamp(1.08rem, 1.55vw, 1.38rem)/1.33 Georgia, "Times New Roman", serif; color: #26382d; }
.kotoNote { margin: 0; line-height: 1.5; font-size: 1rem; color: #3d4842; }
.kotoSource { display: inline-block; margin-top: 8px; color: #52625b; text-decoration: underline; text-underline-offset: .16em; font-size: .875rem; }
.kotoSource:focus-visible { outline: 2px solid #245b58; outline-offset: 3px; }
@media (max-width: 650px) {
  .kotowaza { grid-template-columns: minmax(0,1fr); margin: 16px 0; }
  .kotoArt { min-height: 88px; justify-items: start; padding: 14px 36px 14px 17px; border-inline-end: 0; border-bottom: 1px solid #dcd6c7; }
  .kotoArt::before { background-size: auto 116%; opacity: .35; }
  .kotoBrush { display: block; font-size: clamp(1.55rem, 5.75vw, 2.15rem); line-height: 1.35; }
  .kotoBrush span { display: inline-block; writing-mode: horizontal-tb; }
  .kotoSeal { right: 8px; bottom: 7px; font-size: .98rem; }
  .kotoText { padding: 13px 16px 14px; }
  .kotoText h2 { margin-bottom: 5px; }
}
@media print { .kotowaza { display: none !important; } }

.kgHero {display:grid;grid-template-columns:1fr 1fr;align-items:center;background:#eaf3ed;color:#173f3c;border:1px solid #cbded3;border-radius:18px;overflow:hidden}
.kgHero>div {padding:clamp(18px,4vw,48px)}
.kgHero>div>p:first-child {font-family:"Yuji Mai Studio",serif;font-size:1.55rem;margin:0 0 8px}
.kgHero h1 {font-size:clamp(2rem,4vw,3.75rem);line-height:1.04;letter-spacing:-.04em;margin:0 0 14px}
.kgHero h1 span {display:block;font-size:.55em;letter-spacing:0;margin-top:5px}
.kgHero img {width:100%;height:auto;display:block}
.kgBooks,.kgUnits {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:14px;margin-top:18px}
.kgBook {display:flex;gap:16px;align-items:flex-start}
.kgBook h2,.kgUnit h2 {font-size:1.3rem;line-height:1.3;margin:0}
.kgUnitLink {display:flex;flex-direction:column;align-items:flex-start;color:inherit;text-decoration:none}
.kgUnitLink:hover,.kgUnitLink:focus-visible {border-color:#39766b;background:#f4f9f6}
.kgUnitLink:focus-visible {outline:2px solid #205d54;outline-offset:3px}
.kgUnitAction {margin-top:auto;text-decoration:underline;text-underline-offset:.2em;color:#205d54;font-weight:650}
.kgBook p,.kgUnit p,.kgText p,.kgHero p {line-height:1.6}
.kgBookMark {writing-mode:vertical-rl;font-family:"Yuji Mai Studio",serif;background:#205c52;color:#fff;border-radius:4px;padding:12px 6px;font-size:1.55rem}
.kgBook:nth-child(2) .kgBookMark {background:#5c653a}
.kgSource {font-size:.9rem;color:#48645b;margin:0 0 6px}
.kgAccess,.kgText {margin:16px 0}
.kgText {max-width:850px}
.kgTerms {margin:0}
.kgTerms>div {display:grid;grid-template-columns:minmax(6rem,1fr) 1fr 1.5fr;gap:10px;padding:10px 0;border-bottom:1px solid #d9e3dc}
.kgTerms dt {font-weight:700}
.kgTerms dd {margin:0}
.kgSpeech {display:flex;align-items:flex-start;gap:12px;margin:14px 0}
.kgAvatar {flex:0 0 46px;width:46px;height:46px;border:1px solid #bed1c4;border-radius:50%;background-image:url('/kaigo/kelas.webp');background-size:195px auto}
.kgAvatar.mami {background-position:50% 24%}
.kgAvatar.papi {background-position:21% 18%}
.kgSpeech p {margin:2px 0}
.kgSpeech small {color:#456158}
.kgExamCast {display:flex;align-items:center;gap:8px;color:#30594d;margin:0 0 12px}
.kgCheck fieldset {min-width:0;border:0;padding:0;margin:0 0 12px}
.kgCheck legend {font-weight:650;margin-bottom:8px}
.kgCheck label {display:flex;align-items:baseline;gap:8px;min-height:42px;padding:9px 12px;background:#f2f7f4;margin:4px 0;border-radius:6px}
@media(max-width:680px){.kgHero {grid-template-columns:1fr}.kgHero img {max-height:260px;object-fit:contain;background:#eaf3ed}.kgTerms>div {grid-template-columns:1fr 1fr}.kgTerms dd:last-child {grid-column:1/-1}.kgBook {gap:10px}}

.kgTour { margin: 2rem 0; }
.kgTourGrid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap:1rem; }
.kgTourCard { padding:0; margin:0; overflow:hidden; }
.kgTourCard img { display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; }
.kgTourCard figcaption { padding:1.1rem; }
.kgTourCard h3 { font-size:1.15rem; margin:0; }
.kgTourCard p:last-child { margin-bottom:0; }
.kgTourSingle { max-width:45rem; }
.kgTourSingle small { display:block; margin-top:.4rem; }
@media(min-width:42rem) { .kgTourSingle .kgTourCard { display:grid; grid-template-columns:minmax(0,42%) 1fr; align-items:center; } .kgTourSingle img { aspect-ratio:1; } }
ruby { ruby-position:over; ruby-align:center; }
ruby rt { font-family:system-ui,sans-serif; font-weight:500; font-size:.56em; line-height:1.1; letter-spacing:normal; }
.jp:has(ruby), [lang="ja"]:has(ruby) { line-height:2.15; }
.kotoBrush rt { font-size:.32em; }
.openingPledge { border-top:1px solid #d5e1dd; margin-top:1.2rem; padding-top:1rem; display:grid; justify-items:start; gap:.6rem; }
.openingPledge h3,.openingPledge p { margin:0; }
.pledgeSection summary { font-weight:700; font-size:1.12rem; cursor:pointer; }
.pledgeSection li { padding:.35rem .25rem; border-bottom:1px solid #e0e7e4; }
.pledgeSection li p {margin:.35rem 0;}
.recallShelf,.levelShelf {display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));}
.recallShelf a,.levelShelf a { color:inherit; text-decoration:none; }
.memoryWord {border-top:1px solid #dde5e1; padding:1rem 0;}
.memoryWord > p {margin:.5rem 0;}
.memoryWord .jp {font-size:1.12rem;}
.trackPanel {margin:1rem 0;}
.trackPanel progress {width:min(100%,22rem); accent-color:#23645c;}
.simPicker {display:flex;flex-wrap:wrap;align-items:end;gap:.8rem;}
.advancedReading {white-space:pre-line;}
.pledgeSection [hidden] { display:none!important; }
.pledgeReveal { margin:.5rem 0; }

.careHead h1,.careBody h2,.careResults h3,.careCard h4{margin:.25rem 0}
.careHead small,.careSync small,.careCard small,.careDetail small,.careNotes small{color:#486161}
.careTabs,.careSync,.carePager,.careTags{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem}
.careTabs{margin:1rem 0 1.4rem;gap:.35rem}
.careTabs a{padding:.65rem 1rem;border-radius:.5rem;text-decoration:none;color:#284849;border:1px solid #cbd8d6}
.careTabs a[aria-current=page]{background:#205454;color:white;border-color:#205454}
.careMetrics,.careFilters{display:grid;grid-template-columns:repeat(auto-fit,minmax(9.5rem,1fr));gap:1rem;margin:1.35rem 0}
.careMetrics>div{display:grid;gap:.25rem;border-left:3px solid #76a49a;padding:.25rem .75rem}
.careMetrics b{font-size:1.6rem;color:#205454;line-height:1.2}
.careMetrics span,.careTags span{font-size:.9rem}
.careSync,.carePager{justify-content:space-between}
.careCard{display:flex;justify-content:space-between;gap:1.2rem;align-items:flex-start;border-top:1px solid #dce4df;padding:1.05rem 0}
.careCard h4{font-size:1.1rem}.careCard button{flex:none}.careCard p{margin:.45rem 0}
.careTags span{padding:.22rem .55rem;background:#edf3ef;color:#294c49;border-radius:.45rem}
.careField,.careNotes article{border-top:1px solid #dce4df;padding:.85rem 0}
.careField h3,.careNotes h3{font-size:1rem;margin:0 0 .35rem}.careField p,.careNotes p{white-space:pre-line;margin:0}
.careBody,.careBody p,.careBody h2,.careBody h4{overflow-wrap:anywhere}
.careDetail,.careNotes,.careHistory{margin:1.1rem 0}.careDetail>small{display:block}.careDetail .careTags{margin:.8rem 0}
.careNotes summary{font-weight:650;cursor:pointer;padding:.75rem 0}.careBody button{min-height:42px}
@media(max-width:620px){.careCard{display:block}.careCard button{margin-top:.7rem}.careMetrics{grid-template-columns:1fr 1fr}.careTabs a{flex:1}.careFilters .field{margin-bottom:0}}
