/* ==========================================================================
   よすが — students.css（学生の方へ）
   コンセプト「時間割」：空いたコマが、会いに行く時間になる。
   色・書体・ボタン・手紙・よくある質問は style.css と共通。
   ========================================================================== */

/* ---------- 1. ページ共通 ---------- */
.page-students {
  --st-h1: clamp(2.5rem, 1.05rem + 5.4vw, 5rem);
  --st-h2: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem);
  --st-num: clamp(4rem, 1.2rem + 10vw, 8.125rem);
  --st-koma: 76px;
}

/* ヘッダーの「学生の方へ」 */
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-right: auto;
  min-width: 0;
}
.page-students .brand { margin-right: 0; }

.brand-tag {
  padding: .35em .6em;
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  white-space: nowrap;
}

.st-h2 {
  font-size: var(--st-h2);
  line-height: 1.35;
}
.st-h2 span { display: block; }

.st-eyebrow {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--indigo);
}
.st-eyebrow::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--indigo);
}

/* 手書きの書き込み（Klee One・藍） */
.page-students .hand,
.st-pay__memo,
.st-apply__hand {
  font-family: var(--font-hand);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--pen);
}

/* ---------- 2. ヒーロー ---------- */
.st-hero {
  padding-block: clamp(40px, 5vw, 80px) clamp(72px, 8vw, 128px);
}

.st-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.st-hero__title {
  margin: 1.25rem 0 0;
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: var(--st-h1);
  line-height: 1.22;
  letter-spacing: .01em;
  font-feature-settings: "palt";
}
.st-hero__title span { display: block; }

p.st-hero__lead { margin-top: 1.75rem; }

.st-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem clamp(16px, 2vw, 28px);
  margin: 2.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}
.st-facts dt {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink-soft);
}
.st-facts dd {
  margin: .3rem 0 0;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.6;
}

.st-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2.25rem;
}

/* ---------- 3. 時間割 ---------- */
.st-hero__visual { margin: 0; }

.tt {
  padding: 14px 12px 0;
}

.tt__sheet {
  padding: clamp(16px, 2vw, 26px) clamp(14px, 1.8vw, 24px) clamp(18px, 2vw, 26px);
  background: var(--sheet);
  border-radius: 3px;
  box-shadow: var(--shadow-paper);
  transform: rotate(-1.5deg);
}

.tt__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: .75rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.tt__caption {
  caption-side: top;
  padding-bottom: .7rem;
  margin-bottom: .7rem;
  border-bottom: 2px solid var(--ink);
  text-align: left;
}
.tt__caption-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.tt__caption-title {
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .08em;
}
.tt__caption-hand {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: .8125rem;
  color: var(--pen);
  transform: rotate(-2deg);
}

.tt__table th,
.tt__table td {
  height: 54px;
  padding: .4rem .2rem;
  border: 1px solid var(--rule);
  text-align: center;
  vertical-align: middle;
  font-weight: 400;
  color: var(--ink-soft);
  /* 2行になるときは、行の長さをそろえる（「微分積分／学」のような分かれ方を避ける） */
  text-wrap: balance;
}
.tt__table thead th {
  height: 30px;
  font-weight: 700;
  color: var(--ink);
}
.tt__table th[scope="row"] {
  font-size: .6875rem;
  font-weight: 700;
  color: var(--ink);
}
.tt__corner { border: 0; }
.tt__table thead th:nth-child(4) { width: 28%; }
.tt__table th[scope="row"],
.tt__corner { width: 2.9em; }

/* 空けた水曜3・4限と、貼られた付箋 */
.tt__slot {
  position: relative;
  background: var(--paper);
}
.tt__fusen {
  position: absolute;
  inset: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .3em .2em;
  background: var(--yamabuki);
  color: var(--ink);
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: .6875rem;
  line-height: 1.55;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 6px 12px -7px rgba(28, 38, 56, .55);
  transform: rotate(3deg);
}

/* 読み込み時に一度だけ、付箋が落ちてきて貼られる */
.js .tt__fusen {
  animation: st-fusen .6s cubic-bezier(.22, .9, .3, 1.25) both;
  animation-delay: .45s;
}
@keyframes st-fusen {
  from { opacity: 0; transform: translateY(-34px) rotate(10deg); }
  to { opacity: 1; transform: translateY(0) rotate(3deg); }
}

.tt__memo {
  display: flex;
  align-items: flex-end;
  gap: .4rem;
  margin: .5rem 0 0 34%;
  font-size: .9375rem;
}
.page-students .tt__memo .hand { line-height: 1.6; }
.tt__arrow {
  flex: none;
  width: 58px;
  color: var(--pen);
  opacity: .75;
}

.tt__note {
  margin-top: 1.5rem;
  padding-left: 12px;
  font-size: var(--fs-small);
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ---------- 4. セクションの枠組み（1限〜6限） ---------- */
.st-section {
  padding-block: clamp(72px, 8vw, 128px);
  border-top: 1px solid var(--rule);
}
.st-section--sheet { background: var(--sheet); }
.st-section--paper { background: var(--paper); }

.st-section__grid {
  display: grid;
  grid-template-columns: var(--st-koma) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}

.st-koma {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  margin: 0;
}
.st-koma__box {
  display: grid;
  place-content: center;
  width: var(--st-koma);
  height: var(--st-koma);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--sheet);
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: .04em;
}
.st-koma__no { font-size: 2rem; letter-spacing: 0; }
.st-koma__box--lunch { font-size: 1rem; letter-spacing: .06em; }
.st-koma__name {
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--ink-soft);
}

.st-section__body > .st-h2 + * { margin-top: clamp(32px, 4vw, 56px); }

/* ---------- 5. 1限 どんな仕事？ ---------- */
.st-rows { margin: 0; }
.st-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem clamp(20px, 3vw, 48px);
  padding-block: clamp(20px, 2.4vw, 32px);
  border-top: 1px solid var(--rule);
}
.st-row:last-child { border-bottom: 1px solid var(--rule); }
.st-row__verb {
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem);
  line-height: 1.4;
  letter-spacing: .04em;
}
.st-row__text { margin: 0; }

.st-notdo {
  margin-top: clamp(32px, 4vw, 56px);
  padding: clamp(20px, 2.4vw, 32px) clamp(20px, 2.6vw, 36px);
  border: 1.5px dashed var(--ink);
  border-radius: 4px;
}
.st-notdo__title {
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: .08em;
}
.st-notdo__list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 2rem;
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .9375rem;
  line-height: 1.8;
}
.st-notdo__list li::before {
  content: "×";
  margin-right: .5em;
  font-weight: 700;
  color: var(--ink-soft);
}

/* ---------- 6. 2限 報酬 ---------- */
.st-pay__top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.st-pay__num {
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: var(--st-num);
  line-height: .95;
  letter-spacing: -.01em;
  font-feature-settings: "palt";
}
.st-pay__yen { font-size: .3em; margin-left: .15em; letter-spacing: .06em; }
p.st-pay__unit {
  margin-top: 1rem;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.8;
  color: var(--ink-soft);
}

.st-bars {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.st-bar {
  display: grid;
  grid-template-columns: 3.5em minmax(0, 1fr) 4.5em;
  align-items: center;
  gap: .9rem;
  font-size: .9375rem;
}
.st-bar__time { font-weight: 700; }
.st-bar__line {
  height: 12px;
  width: calc(var(--span) / 3 * 100%);
  background: var(--rule);
  border-radius: 2px;
}
.st-bar__fee { text-align: right; font-weight: 700; color: var(--ink-soft); }
.st-bar--on .st-bar__line { background: var(--indigo); }
.st-bar--on .st-bar__fee { color: var(--ink); }

p.st-pay__memo {
  margin-top: 1.5rem;
  font-size: 1rem;
}

.st-list {
  margin: clamp(40px, 5vw, 64px) 0 0;
  border-top: 1px solid var(--rule);
}
.st-list > div {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: .5rem clamp(20px, 3vw, 48px);
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.st-list dt { font-weight: 700; }
.st-list dd { margin: 0; color: var(--ink-soft); }

/* ---------- 7. 3限 働き方 ---------- */
.st-quads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 56px) clamp(28px, 4vw, 72px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.st-quad { padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.st-quads > :nth-child(-n+2) { border-top: 2px solid var(--ink); }
.st-quad__title {
  margin: 0 0 .6rem;
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: var(--fs-h3);
  line-height: 1.5;
  letter-spacing: .03em;
}
.st-quad p { color: var(--ink-soft); }

/* ---------- 8. 4限 安心の仕組み ---------- */
.st-fours {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 72px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.st-four {
  padding-block: clamp(20px, 2.4vw, 32px);
  border-top: 1px solid var(--rule);
}
.st-four__no {
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: .08em;
  color: var(--indigo);
}
.st-four__title {
  margin: .5rem 0 .6rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.6;
}
.st-four p { color: var(--ink-soft); }

/* ---------- 9. 昼休み 代表から ---------- */
.st-letter {
  max-width: 44rem;
  box-shadow: 18px 18px 0 rgba(37, 56, 92, .09), var(--shadow-paper);
}

/* ---------- 10. 5限 はじめるまで ---------- */
.st-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.st-path__item {
  padding: 1.25rem clamp(12px, 1.4vw, 20px) 1.5rem;
  border: 1px solid var(--rule);
  margin-left: -1px;
}
.st-path__item:first-child { margin-left: 0; }
.st-path__no {
  display: grid;
  place-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--on-dark);
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: .9375rem;
  line-height: 1;
}
.st-path__title {
  margin: .9rem 0 .4rem;
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: .03em;
}
.st-path__item p {
  font-size: var(--fs-small);
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ---------- 11. 6限 よくある質問 ---------- */
.page-students .faq-list { border-top: 1px solid var(--rule); }

/* ---------- 12. 応募 ---------- */
.st-apply {
  padding-block: clamp(72px, 8vw, 128px);
  background: var(--indigo);
  color: var(--on-dark);
}
.st-apply :focus-visible { outline-color: var(--yamabuki); }
.st-apply a { color: var(--on-dark); }
/* 山吹のボタンだけは、地の色が明るいので墨のまま */
.st-apply .button--primary { color: var(--ink); }

.st-apply__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.st-apply__hand {
  font-size: 1.25rem;
  color: var(--yamabuki);
  transform: rotate(-1.5deg);
  transform-origin: left center;
}
.st-apply .st-h2 { margin-top: 1rem; }
p.st-apply__lead {
  margin-top: 1.5rem;
  color: var(--on-dark-soft);
}

.st-apply__actions {
  display: grid;
  gap: 2rem;
  padding-top: .5rem;
}
.st-apply__form .button { width: 100%; }
p.st-apply__note {
  margin-top: .9rem;
  font-size: var(--fs-small);
  line-height: 1.8;
  color: var(--on-dark-soft);
}

.st-apply__mail {
  padding-top: 1.75rem;
  border-top: 1px solid var(--on-dark-rule);
}
.st-apply__mail-link {
  font-size: 1.0625rem;
  font-weight: 700;
}
.st-apply__mail-link a {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .4em;
}
p.st-apply__address {
  margin-top: .75rem;
  font-size: .9375rem;
  color: var(--on-dark-soft);
  overflow-wrap: anywhere;
}
.st-apply .text-button { color: var(--on-dark); }

/* ---------- 13. 画面の幅に合わせる ---------- */
@media (max-width: 1080px) {
  .st-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .st-hero__visual { max-width: 560px; }
  .st-pay__top { grid-template-columns: minmax(0, 1fr); }
  .st-list > div { grid-template-columns: 10rem minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .st-section__grid { grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 36px); }
  .st-koma {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .st-apply__grid { grid-template-columns: minmax(0, 1fr); }
  .st-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-path__item { margin-top: -1px; }
}

@media (max-width: 700px) {
  .st-quads,
  .st-fours { grid-template-columns: minmax(0, 1fr); }
  .st-quads > :nth-child(-n+2) { border-top: 1px solid var(--rule); }
  .st-quads > :first-child { border-top: 2px solid var(--ink); }
  .st-path { grid-template-columns: minmax(0, 1fr); }
  .st-list > div { grid-template-columns: minmax(0, 1fr); }
  .st-row { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
}

@media (max-width: 640px) {
  .page-students { --st-koma: 62px; }
  .st-koma__no { font-size: 1.625rem; }
  .st-koma__box--lunch { font-size: .8125rem; }
  .st-facts { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .st-facts > div { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); align-items: baseline; gap: 1rem; }
  .st-facts dd { margin: 0; }

  .tt { padding: 12px 6px 0; }
  .tt__sheet { padding: 14px 10px 16px; transform: rotate(-1deg); }
  .tt__table { font-size: .625rem; }
  .tt__table th, .tt__table td { height: 48px; padding: .3rem .1rem; }
  .tt__table thead th:nth-child(4) { width: 30%; }
  .tt__table th[scope="row"], .tt__corner { width: 2.4em; }
  .tt__table th[scope="row"] { font-size: .5625rem; }
  .tt__fusen { font-size: .5625rem; line-height: 1.5; inset: 4px; }
  .tt__caption-title { font-size: .9375rem; }
  .tt__memo { margin-left: 0; }
  .tt__arrow { display: none; }
  .tt__note { padding-left: 6px; }

  .st-notdo__list { flex-direction: column; gap: .2rem; }
}
