@charset "UTF-8";

:root {
  --ink: #203e37;
  --green: #154b43;
  --muted: #52695d;
  --paper: #faf9f4;
  --line: #d6ded2;
  --mint: #edf2e7;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  color: var(--ink);
  background: var(--paper);
  font: 13px/1.65 "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #c58d18; outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.guide-app {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.guide-header {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 6px 22px;
  border-bottom: 1px solid var(--line);
}
.guide-back { display: grid; place-items: center; flex: 0 0 36px; min-height: 44px; font-size: 22px; }
.guide-brand { flex: 0 0 124px; }
.guide-brand img { width: 124px; }
.guide-header-divider { flex: 0 0 1px; height: 22px; background: var(--line); }
.guide-header h1 { font-size: 15px; line-height: 1.4; }
.guide-courses { margin-left: auto; font-size: 12px; font-weight: 700; }
.guide-courses span { margin-left: 8px; }

.guide-layout { display: grid; grid-template-columns: 265px minmax(0, 1fr); min-width: 0; min-height: 0; }
.guide-sidebar { min-width: 0; min-height: 0; padding: 24px 20px; border-right: 1px solid var(--line); overflow: auto; background: var(--mint); }
.guide-eyebrow { color: var(--muted); font-size: 10px; font-weight: 700; }
.guide-intro h2 { margin-top: 10px; font-size: 22px; line-height: 1.45; }
.guide-intro > p:last-child { margin-top: 13px; color: var(--muted); font-size: 11px; }
.guide-intro strong { color: var(--ink); font-size: 13px; }
.guide-steps { display: grid; gap: 5px; margin-top: 20px; }
.guide-steps button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  min-width: 0;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--green);
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}
.guide-steps button span { color: #527266; font: italic 14px/1 Georgia, serif; }
.guide-steps button[aria-current="step"] { color: white; background: var(--green); border-color: var(--green); }
.guide-steps button[aria-current="step"] span { color: #d3e7d8; }
.guide-steps button:hover:not([aria-current="step"]) { background: #dfeada; border-color: #bfd1bf; }
.guide-hint { margin-top: 14px; border-top: 1px solid var(--line); }
.guide-hint summary, .guide-fallback summary { min-height: 34px; padding-block: 7px; cursor: pointer; font-weight: 700; }
.guide-hint h3 { font-size: 13px; }
.guide-hint p, .guide-optional { margin-top: 7px; font-size: 11px; color: var(--muted); }
.guide-hint p.guide-hint-extra { margin-top: 9px; }
.guide-optional { margin-top: 15px; }

.guide-screen { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #f6f7f2; }
.screen-topline {
  display: flex;
  align-items: center;
  gap: 8px 13px;
  flex-wrap: wrap;
  min-height: 37px;
  padding: 4px 14px;
  border-bottom: 1px solid var(--line);
  background: #fffefb;
  color: var(--muted);
  font-size: 11px;
}
.screen-kicker { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.screen-kicker i { width: 6px; height: 6px; background: #5b9871; border-radius: 50%; }
#guide-screen-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.screen-topline a { margin-left: auto; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.frame-container { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.frame-container iframe { display: block; width: 100%; height: 100%; border: 0; background: white; }
.frame-loading { position: absolute; inset: 0; display: grid; place-items: center; background: #fffefb; color: var(--muted); }
.guide-fallback { position: absolute; inset: 0; overflow: auto; padding: 16px; display: grid; align-items: start; justify-items: center; }
.guide-fallback-card { width: min(100%, 420px); padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fffefb; }
.guide-fallback-card img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }
.guide-fallback h2 { font-size: 20px; margin: 4px 0 9px; }
.guide-fallback-card > p:not(.guide-eyebrow), .guide-fallback details p { color: var(--muted); font-size: 12px; }
.guide-fallback-card > a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; padding: 5px 13px; border-radius: 6px; background: var(--green); color: white; font-size: 12px; font-weight: 700; }
.guide-fallback details { margin-top: 8px; color: var(--muted); font-size: 11px; }

.guide-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 9px 22px max(9px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.guide-controls > div { display: flex; align-items: center; gap: 13px; min-width: 0; }
#guide-position { font: italic 16px/1 Georgia, serif; white-space: nowrap; color: var(--muted); }
.guide-controls p { color: var(--muted); font-size: 11px; }
.guide-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  min-width: 0;
  padding: 7px 16px;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: var(--green);
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.guide-controls button:hover { background: #246652; }
.guide-controls button span { font-size: 17px; }
.guide-noscript { position: fixed; inset: 85px 12px auto; padding: 16px; border: 1px solid var(--line); background: white; }
.guide-noscript a { text-decoration: underline; }

@media (max-width: 749px) {
  .guide-header { min-height: 54px; padding-inline: 9px 12px; gap: 8px; }
  .guide-back { flex-basis: 29px; }
  .guide-brand { flex-basis: 91px; }
  .guide-brand img { width: 91px; }
  .guide-header h1 { font-size: 12px; }
  .guide-courses, .guide-intro, .guide-optional { display: none; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .guide-sidebar { max-height: 36vh; max-height: 36dvh; border-right: 0; border-bottom: 1px solid var(--line); padding: 7px 11px 3px; }
  .guide-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; margin: 0; }
  .guide-steps button { flex-direction: column; justify-content: center; gap: 3px; min-height: 44px; padding: 2px; font-size: 10px; line-height: 1.25; white-space: nowrap; }
  .guide-steps button span { font-size: 11px; }
  .guide-hint { margin-top: 4px; border-top: 0; }
  .guide-hint summary { min-height: 30px; padding-block: 5px; font-size: 11px; }
  .guide-hint > div { padding-bottom: 7px; }
  .screen-topline { gap: 6px; padding-inline: 11px; font-size: 10px; }
  .guide-controls { padding-inline: 11px; }
  .guide-controls p { display: none; }
  .guide-controls button { max-width: 100%; padding-inline: 12px; }
  .guide-fallback-card { padding: 15px; }
  .guide-fallback h2 { font-size: 18px; }
}
