/* Linux探検隊 追加テーマ: Python道場に近いミッション型フォーマット */
body {
  background-color: #eef3ee;
  background-image:
    radial-gradient(rgba(47, 95, 69, 0.08) 1px, transparent 1px),
    radial-gradient(rgba(217, 155, 43, 0.08) 1px, transparent 1px);
  background-size: 24px 24px, 48px 48px;
  background-position: 0 0, 12px 12px;
}

header { border-bottom-color: #2f5f45; }
main { max-width: 840px; }

.lesson {
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.1), 0 10px 26px rgba(0,0,0,0.08);
}

.lesson section {
  margin: 34px 0;
}
.lesson section + section {
  margin-top: 40px;
}
.lesson section > h2 {
  margin-bottom: 18px;
}
.lesson section > h2 + .mission-card,
.lesson section > h2 + .output-sample,
.lesson section > h2 + .code-block,
.lesson section > h2 + .point-box,
.lesson section > h2 + .challenge-box,
.lesson section > h2 + .reflect-box,
.lesson section > h2 + .parent-note,
.lesson section > h2 + .steps-quest,
.lesson section > h2 + .goals-grid {
  margin-top: 16px;
}

.lesson-header {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08) 0 25%, transparent 25% 50%, rgba(255,255,255,0.08) 50% 75%, transparent 75%),
    linear-gradient(180deg, #3b7656 0%, #204831 100%);
  background-size: 28px 28px, auto;
  margin: -28px -24px 26px;
  border-radius: 12px 12px 0 0;
  position: relative;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.22);
}
.lesson-header::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, #d99b2b 0, #d99b2b 12px, #b67b1f 12px, #b67b1f 24px);
}
.lesson-header h1 {
  letter-spacing: 0.03em;
}

.tag {
  box-shadow: 0 2px 0 rgba(0,0,0,0.28);
}
.tag-num {
  background: #d99b2b;
  color: #1f1706;
}
.tag-lv { background: #2f5f45; }
.tag-time { background: #26342c; }

.lesson h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.lesson h2::before {
  content: "";
  width: 18px;
  height: 18px;
  background: #2f5f45;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #d99b2b;
  flex: 0 0 auto;
}

.mission-card {
  background: #fffdf2;
  border: 4px solid #2f5f45;
  box-shadow: 0 6px 0 #1e3e2d, 0 10px 20px rgba(0,0,0,0.12);
  overflow: hidden;
  padding: 0;
}
.mission-banner {
  background: linear-gradient(180deg, #3b7656 0%, #2f5f45 100%);
  color: #fff;
  font-family: "DotGothic16", sans-serif;
  letter-spacing: 0.05em;
  margin: 0;
  padding: 12px 18px;
  text-shadow: 2px 2px 0 #183725;
  position: relative;
}
.mission-banner::before { content: "$ "; color: #b7f7c9; }
.mission-banner::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, #d99b2b 0, #d99b2b 8px, #b67b1f 8px, #b67b1f 16px);
}
.mission-content {
  padding: 22px 22px 18px;
  background-image: repeating-linear-gradient(0deg, transparent 0, transparent 27px, rgba(47,95,69,0.08) 27px, rgba(47,95,69,0.08) 28px);
}

.goals-grid {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.goals-grid li {
  background: #fff;
  border: 3px solid #2f5f45;
  border-radius: 8px;
  padding: 12px 16px 12px 56px;
  position: relative;
  box-shadow: 0 3px 0 #1e3e2d;
}
.goals-grid li::before {
  content: "✓";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #d99b2b;
  color: #1f1706;
  border: 2px solid #b67b1f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 0 #805816;
}

.steps-quest {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.steps-quest li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 60px;
  background: #eef7ef;
  border-left: 5px solid #2f5f45;
  border-radius: 4px;
  margin-bottom: 9px;
}
.steps-quest li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2f5f45;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "DotGothic16", sans-serif;
  box-shadow: 0 3px 0 #1e3e2d;
}

.output-sample,
.code-block {
  background: #101814;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 0 rgba(0,0,0,0.24);
}
.output-header,
.code-header {
  background: #203129;
  color: #d9fbe2;
  border-bottom: 1px solid #355242;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: bold;
}
.output-sample pre,
.code-block pre {
  margin: 0;
  padding: 16px 18px;
  color: #a7f3b9;
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 0.92rem;
  line-height: 1.65;
  white-space: pre-wrap;
}
.code-lang {
  background: #d99b2b;
  color: #15120b;
  padding: 2px 8px;
  border-radius: 3px;
}
.code-filename { color: #a8b9ae; }

.point-box {
  background: #fffbea;
  border: 3px solid #d99b2b;
  padding: 18px 18px 18px 64px;
  position: relative;
  box-shadow: 0 4px 0 #b67b1f;
}
.point-box::before {
  content: "🧭";
  position: absolute;
  left: 14px;
  top: 16px;
  font-size: 1.8rem;
  background: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #d99b2b;
}

.challenge-box {
  background: linear-gradient(135deg, #cfe6d6 0%, #9fd0ad 100%);
  border: 3px solid #2f5f45;
  padding: 28px 22px 18px;
  position: relative;
  box-shadow: 0 5px 0 #1e3e2d, 0 8px 20px rgba(47,95,69,0.22);
  margin-top: 20px;
}
.challenge-box::before {
  content: "追加ミッション";
  position: absolute;
  top: -16px;
  left: 14px;
  background: #2f5f45;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-family: "DotGothic16", sans-serif;
  font-size: 0.85rem;
  box-shadow: 0 2px 0 #183725;
}

.reflect-box {
  background: #fdf8ec;
  border: 2px dashed #b67b1f;
  position: relative;
  padding-top: 24px;
  margin-top: 18px;
}
.reflect-box::before {
  content: "探検ログ";
  position: absolute;
  top: -16px;
  right: 16px;
  background: #fff;
  color: #6a4b12;
  border: 1px solid #e6c783;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.86rem;
  font-weight: bold;
}

.parent-note {
  background: #f3f0f7;
  border: 1px solid #d4c4e2;
  margin-top: 18px;
  padding-top: 22px;
}

body.dojo-index-page main { max-width: 1000px; }
body.dojo-index-page .index-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.2) 0 90px, transparent 91px),
    linear-gradient(180deg, #3b7656 0%, #1d3f2d 100%);
}

.browser-linux-guide {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.06);
  margin: 20px 0;
}
.browser-linux-guide h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}
.browser-linux-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.browser-linux-options div {
  border: 3px solid #2f5f45;
  border-radius: 8px;
  padding: 14px;
  background: #f6fbf7;
  box-shadow: 0 3px 0 #1e3e2d;
}
.browser-linux-options strong,
.browser-linux-options span,
.browser-linux-options a {
  display: block;
}
.browser-linux-options strong {
  margin-bottom: 6px;
}
.browser-linux-options span {
  color: #40534a;
  font-size: 0.94rem;
  margin-bottom: 10px;
}
.browser-linux-options a {
  color: #2f5f45;
  font-weight: bold;
}
.guide-note {
  color: #58685f;
  font-size: 0.94rem;
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .lesson { padding: 22px 18px; }
  .lesson-header { margin: -22px -18px 24px; }
  .lesson section { margin: 30px 0; }
  .lesson section + section { margin-top: 34px; }
  .output-sample pre,
  .code-block pre { font-size: 0.84rem; }
}
