@charset "UTF-8";
/*
 * TUTURIGACHI 2026 / 国際事業部
 * Copyright (C) 2026 Tuturigachi Language Solutions Corp. All Rights Reserved.
 * learn.css  かえると まなぶ: Learn with the Frogs, in the band's own colours
 */

.lf {
  --lf-red: #a92319;
  --lf-red-ink: #9a2d12;
  --lf-red-deep: #7d2810;
  --lf-leaf: #56691b;
  --lf-leaf-hi: #677c23;
  --lf-olive: #6b5a1c;
  --lf-gold: #d49434;
  --lf-cream: #f3e8d2;
  --lf-paper: #fffaf0;
  --lf-rule: #ecdcbc;
  --lf-ink: #3b2f1e;
  --lf-mute: #6d604c;
  --lf-jp: "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN W4", "Hiragino Maru Gothic Pro", "HG丸ｺﾞｼｯｸM-PRO", "Meiryo", "メイリオ", "Osaka", sans-serif;
  --lf-en: "Arial Rounded MT Bold", "Trebuchet MS", "Verdana", var(--lf-jp);
  --lf-star-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0Q12 8 20 10Q12 12 10 20Q8 12 0 10Q8 8 10 0Z' fill='%23d49434'/%3E%3C/svg%3E");
  --lf-star-cream: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0Q12 8 20 10Q12 12 10 20Q8 12 0 10Q8 8 10 0Z' fill='%23f3e8d2'/%3E%3C/svg%3E");
  --lf-star-leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0Q12 8 20 10Q12 12 10 20Q8 12 0 10Q8 8 10 0Z' fill='%237d9230'/%3E%3C/svg%3E");
  --lf-te: url("img/te.svg");
  color: var(--lf-ink);
  font-family: var(--lf-jp);
}
.lf, .lf *, .lf *::before, .lf *::after { box-sizing: border-box; }
.lf a { color: var(--lf-red-ink); text-underline-offset: 3px; }
.lf a:hover { color: var(--lf-red-deep); text-decoration-thickness: 2px; }
.lf a:focus-visible { outline: 3px solid var(--lf-leaf); outline-offset: 2px; border-radius: 4px; }
.lf .t-lead { color: var(--lf-ink); font-size: 14px; line-height: 1.95; }
.lf i { font-style: italic; }

.lf-band {
  position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  min-height: 230px; margin: 18px 0 0; padding: 22px 20px 0 24px;
  background: var(--lf-red) url("img/paper.jpg") 50% 50% / cover;
  border-radius: 22px 22px 0 0;
  border-bottom: 5px solid var(--lf-leaf);
  box-shadow: 0 0 0 4px #fff, 0 6px 20px rgba(120, 60, 20, 0.14);
  overflow: hidden;
}
.lf-band__frogs { flex: 0 1 620px; min-width: 0; line-height: 0; }
.lf-band__frogs img { display: block; width: 100%; height: auto; }

.lf-say {
  position: relative; flex: 0 0 auto; align-self: center; margin: 0 0 28px; max-width: 280px;
  padding: 11px 22px 10px 42px;
  background: #fff var(--lf-star-gold) 16px 17px / 15px 15px no-repeat;
  color: var(--lf-red-ink); font-family: var(--lf-jp); line-height: 1.5;
  border-radius: 26px;
  box-shadow: 0 3px 0 rgba(90, 20, 5, 0.25);
}
.lf-say span { display: block; font-size: 17px; font-weight: bold; letter-spacing: 0.04em; }
.lf-say i { display: block; margin-top: 1px; font-family: var(--lf-en); font-style: normal; font-size: 12.5px; color: var(--lf-olive); letter-spacing: 0.02em; }
.lf-say::after {
  content: ""; position: absolute; right: -11px; top: 50%; margin-top: -7px;
  border-style: solid; border-color: transparent transparent transparent #fff; border-width: 7px 0 7px 12px;
}

.lf-band--lesson { justify-content: flex-start; gap: 0; min-height: 0; padding: 22px 24px 0 28px; }
.lf-band__cover {
  flex: 0 0 auto; align-self: center; width: 124px; height: 124px; margin: 0 6px 22px 0;
  border: 5px solid #fff; border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(160, 120, 70, 0.18), 0 4px 10px rgba(60, 10, 0, 0.35);
  transform: rotate(-4deg);
}
.lf-band__frog { flex: 0 0 auto; display: block; width: 150px; height: auto; margin: 0 6px -2px 8px; }
.lf-band--lesson .lf-say { margin-left: 14px; max-width: 420px; }
.lf-band--lesson .lf-say::after { right: auto; left: -11px; border-width: 7px 12px 7px 0; border-color: transparent #fff transparent transparent; }

.lf .lf-day { margin: 26px 0 0; border: 0; display: grid; gap: 12px; }
.lf .lf-day .gk-day__period {
  gap: 18px; padding: 16px 18px 14px 16px;
  background: var(--lf-paper); border: 2px solid var(--lf-rule); border-bottom: 0; border-radius: 18px;
  box-shadow: 0 3px 0 var(--lf-rule);
}
.lf .lf-day .gk-day__no {
  position: relative; flex: 0 0 92px; padding: 44px 4px 8px; margin-top: 2px;
  color: #fff; font-family: var(--lf-jp); font-size: 15px; line-height: 1.3; letter-spacing: 0.06em;
  background: linear-gradient(var(--lf-leaf-hi), var(--lf-leaf)); border: 0; border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 0 rgba(60, 70, 10, 0.25);
}
.lf .lf-day .gk-day__no small { margin-top: 1px; font-family: var(--lf-en); font-size: 11px; color: #fff; letter-spacing: 0.04em; }
.lf-day__face {
  position: absolute; left: 50%; top: -14px; width: 54px; height: 54px; margin-left: -27px;
  border: 3px solid #fff; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(160, 120, 70, 0.18), 0 3px 6px rgba(110, 45, 15, 0.28);
  transform: rotate(var(--tilt, -5deg));
}
.lf-day .gk-day__period:nth-child(2) .lf-day__face { --tilt: 4deg; }
.lf-day .gk-day__period:nth-child(3) .lf-day__face { --tilt: -2deg; }
.lf-day .gk-day__period:nth-child(4) .lf-day__face { --tilt: 5deg; }
.lf-day .gk-day__period:nth-child(5) .lf-day__face { --tilt: -4deg; }
.lf .lf-day .gk-day__period { padding-top: 22px; }
.lf .gk-day__head { margin: 2px 0 6px; font-family: var(--lf-en); font-size: 18px; letter-spacing: 0.01em; color: var(--lf-red-ink); }
.lf .gk-day__head a { color: var(--lf-red-ink); }
.lf .gk-day__body p { color: var(--lf-ink); font-size: 14px; line-height: 1.8; }

.lf .gk-lessons { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 12px; }
.lf .gk-lessons__item {
  position: relative; align-items: center; gap: 10px; min-height: 56px; padding: 6px 10px 6px 6px;
  background: #fff; border: 2px solid var(--lf-rule); border-radius: 12px; font-size: 13.5px; line-height: 1.45;
}
.lf .gk-lessons__item:nth-child(n) { border-left-color: var(--lf-rule); }
.lf-lessons__cover { flex: 0 0 auto; display: block; width: 42px; height: 42px; border-radius: 6px; box-shadow: 0 1px 3px rgba(60, 10, 0, 0.25); }
.lf-lessons__cover--later { background: var(--lf-cream) var(--lf-star-gold) 50% 50% / 14px 14px no-repeat; box-shadow: inset 0 0 0 2px var(--lf-rule); }
.lf .gk-lessons__no { color: var(--lf-red-ink); font-family: Verdana, var(--lf-jp); font-size: 13px; }
.lf .gk-lessons__item i { color: var(--lf-mute); }
.lf .gk-lessons__item--later { color: var(--lf-mute); background: transparent; border-style: dashed; border-color: var(--lf-rule) !important; }
.lf .lf-lessons__item--written { border-color: color-mix(in srgb, var(--lf-leaf) 45%, #fff); }
.lf-lessons__item--written::after {
  content: ""; position: absolute; right: 6px; top: -10px; width: 26px; height: 22px;
  background: var(--lf-te) 50% 50% / contain no-repeat; transform: rotate(12deg);
}
.lf .lf-lessons__item--written a { font-weight: bold; }
.lf .gk-day__links a { font-weight: bold; }

.lf .lf-h {
  display: flex; align-items: center; gap: 12px; margin: 34px 0 14px; padding: 0;
  background: none; border: 0; border-radius: 0; font-size: 13px; font-weight: normal; line-height: 1.4;
}
.lf .lf-h::before { content: none; }
.lf .lf-h::after { content: ""; position: static; flex: 1 1 auto; width: auto; height: 0; background: none; border-bottom: 3px dotted var(--lf-rule); }
.lf .lf-h > span {
  flex: 0 1 auto; padding: 7px 22px 6px 38px;
  background: var(--lf-red) var(--lf-star-cream) 15px 50% / 14px 14px no-repeat;
  color: var(--lf-cream); font-family: var(--lf-en); font-size: 15px; font-weight: normal; letter-spacing: 0.04em;
  border-radius: 999px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14), 0 2px 0 rgba(169, 35, 25, 0.18);
}
.lf .lf-h > span span[lang="ja"] { font-family: var(--lf-jp); letter-spacing: 0.06em; }

.lf .gk-words { counter-reset: lf-w; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; }
.lf .gk-word {
  --cap: var(--lf-red);
  position: relative; counter-increment: lf-w; padding: 20px 16px 14px;
  background: linear-gradient(var(--cap) 0 7px, var(--lf-paper) 7px);
  border: 2px solid var(--lf-rule); border-radius: 16px; overflow: hidden;
  box-shadow: 0 3px 0 var(--lf-rule);
}
.lf .gk-word:nth-child(2) { --cap: var(--lf-leaf); }
.lf .gk-word:nth-child(3) { --cap: var(--lf-gold); }
.lf .gk-word:nth-child(4) { --cap: var(--lf-olive); }
.lf .gk-word:nth-child(5) { --cap: #c42a5c; }
.lf .gk-word::before {
  content: counter(lf-w); position: absolute; right: 12px; top: 18px; width: 26px; height: 26px; border-radius: 50%;
  font: 13px/26px var(--lf-en); text-align: center; color: #fff;
  background: linear-gradient(var(--lf-leaf-hi), var(--lf-leaf)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.lf .gk-word__w { font-family: var(--lf-jp); font-size: 30px; color: var(--lf-ink); }
.lf .gk-word__w rt { font-size: 12px; color: var(--lf-red-ink); letter-spacing: 0.04em; }
.lf .gk-word__m { font-family: var(--lf-en); font-weight: normal; font-size: 15px; color: var(--lf-red-ink); }
.lf .gk-word__m i { color: var(--lf-olive); }
.lf .gk-word__note { color: var(--lf-ink); font-size: 13.5px; }
.lf .gk-word__line { color: var(--lf-mute); border-top: 3px dotted var(--lf-rule); }

.lf .gk-handout { position: relative; padding-right: 54px; font-family: var(--lf-jp); border-radius: 2px; transform: rotate(-0.4deg); }
.lf .gk-handout::after {
  content: ""; position: absolute; right: 12px; bottom: 10px; width: 40px; height: 34px;
  background: var(--lf-te) 50% 50% / contain no-repeat; transform: rotate(-14deg);
}

.lf .gk-next { margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.8; }
.lf .gk-next li { margin: 0 0 6px; padding-left: 22px; background: var(--lf-star-gold) 0 0.42em / 13px 13px no-repeat; }
.lf .gk-next a { font-weight: bold; }
.lf .t-toolnote { margin-top: 24px; padding: 10px 14px; color: var(--lf-mute); background: var(--lf-paper); border: 2px dotted var(--lf-rule); border-radius: 12px; font-size: 12.5px; line-height: 1.8; }
.lf .lf-back { margin: 26px 0 0; color: var(--lf-mute); }
.lf .lf-back a {
  display: inline-block; padding: 6px 18px 5px; color: #fff; text-decoration: none; font-family: var(--lf-en); font-size: 14px;
  background: linear-gradient(var(--lf-leaf-hi), var(--lf-leaf)); border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 0 rgba(60, 70, 10, 0.25);
}
.lf .lf-back a:hover, .lf .lf-back a:focus-visible { color: #fff; background: linear-gradient(#b53d1d, var(--lf-red)); }

@media (max-width: 600px) {
  .lf-band { flex-direction: column; align-items: stretch; min-height: 0; padding: 16px 12px 0; border-radius: 18px 18px 0 0; }
  .lf-say { align-self: flex-start; max-width: none; margin: 0 4px 10px; padding: 9px 18px 8px 38px; background-position: 14px 14px; }
  .lf-say span { font-size: 16px; }
  .lf-say::after { right: auto; left: 44px; top: auto; bottom: -11px; margin-top: 0; border-width: 12px 7px 0 7px; border-color: #fff transparent transparent transparent; }
  .lf-band__frogs { flex: none; }

  .lf-band--lesson { display: grid; grid-template-columns: auto 1fr; align-items: end; padding: 16px 14px 0; }
  .lf-band--lesson .lf-say { grid-column: 1 / -1; grid-row: 1; margin: 0 0 12px; max-width: none; }
  .lf-band--lesson .lf-say::after { left: auto; right: 64px; border-width: 12px 7px 0 7px; border-color: #fff transparent transparent transparent; }
  .lf-band__cover { grid-row: 2; width: 104px; height: 104px; margin: 0 0 18px 4px; }
  .lf-band__frog { grid-row: 2; justify-self: end; width: 120px; margin: 0 4px -2px 0; }

  .lf .lf-day .gk-day__period { flex-direction: column; gap: 10px; padding: 14px 14px 12px; }
  .lf .lf-day .gk-day__no {
    flex: none; align-self: flex-start; display: flex; align-items: center; gap: 8px; margin: 0;
    padding: 4px 16px 4px 60px; font-size: 14px; border-radius: 999px;
  }
  .lf .lf-day .gk-day__no small { margin: 0; font-size: 11.5px; }
  .lf-day__face { left: 4px; top: 50%; width: 46px; height: 46px; margin: -23px 0 0; }
  .lf .gk-day__head { font-size: 17px; }
  .lf .gk-lessons { grid-template-columns: 1fr 1fr; }
  .lf .gk-lessons__item:not(.gk-lessons__item--later) { grid-column: 1 / -1; }
  .lf .gk-lessons__item--later { min-height: 0; padding: 5px 8px 5px 5px; gap: 8px; }
  .lf .gk-lessons__item--later .lf-lessons__cover { width: 30px; height: 30px; background-size: 11px 11px; }
  .lf .gk-words { grid-template-columns: 1fr; }
  .lf .gk-handout { transform: none; padding-right: 48px; }
  .lf .lf-h > span { font-size: 14px; padding: 6px 16px 5px 32px; background-position: 12px 50%; background-size: 12px 12px; }
}
