@charset "UTF-8";

/* ------------------------------------------------------------------
   つまずいた場所の地図
   地図と、初心者向けページ(/chizu/ 以下)専用のスタイル。
   色と書体は /style.css の変数を使うので、必ず style.css のあとに読む。
   引っ越すときは、このフォルダと style.css を一緒に持っていく。
------------------------------------------------------------------ */

/* ---------- 一番上のコピー ---------- */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero__catch {
  margin: 0;
  font-size: clamp(1.25rem, 5.6vw, 2.125rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* 読点のところでだけ改行させる */
.hero__catch span,
.hero__sub span { display: inline-block; }

.hero__sub {
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--seal);
}

.hero__note {
  margin: 1.25rem 0 0;
  max-width: var(--measure);
  font-family: var(--gothic);
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* ---------- 地図 ---------- */

.map {
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.map__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.6;
}

.map__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.map__legend-label {
  font-family: var(--gothic);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* 印。色だけに頼らず、文字で伝える */
.tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--ink-soft);
  border-radius: 2px;
  background: #fff;
  font-family: var(--gothic);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--ink);
  white-space: nowrap;
}

.tag--paid {
  border-color: var(--seal);
  color: var(--seal);
}

.tag--soon {
  border-color: var(--ink-soft);
  background: var(--ink-soft);
  color: #fff;
}

/* 道。左の縦線が道で、丸が今いる場所の目印 */
.road {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0 0 0 0.4375rem;
}

.stage {
  position: relative;
  padding: 0 0 2.75rem 1.5rem;
  border-left: 2px solid var(--ink);
}

.stage::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: -0.5rem;
  width: 0.875rem;
  height: 0.875rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.stage__label {
  margin: 0;
  font-family: var(--gothic);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--ink-soft);
}

.stage__name {
  margin: 0.15rem 0 0;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.6;
}

.stage__scope {
  margin: 0.1rem 0 0;
  font-family: var(--gothic);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.stage__empty {
  margin: 1rem 0 0;
  font-family: var(--gothic);
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 境目は関所。目印を朱の菱形にして、区画と見分ける */
.stage--gate::before {
  top: 0.35rem;
  left: -0.4375rem;
  width: 0.75rem;
  height: 0.75rem;
  border: 0;
  border-radius: 0;
  background: var(--seal);
  transform: rotate(45deg);
}

.stage--gate .stage__label { color: var(--seal); }

/* まだ歩いていない道は点線 */
.stage--ahead {
  padding-bottom: 0.5rem;
  border-left-style: dashed;
  border-left-color: var(--ink-soft);
}

.stage--ahead::before {
  border-style: dashed;
  border-color: var(--ink-soft);
}

.stage--ahead .stage__name { color: var(--ink-soft); }
.stage--ahead .stage__empty { margin-top: 0.5rem; }

/* 5分で解決するページ。地図の主役なので、枠で立てる */
.stops {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  max-width: var(--measure);
}

.stop {
  display: block;
  margin-top: 0.75rem;
  border: 1px solid var(--ink);
  background: #fff;
}

.stop:first-child { margin-top: 0; }

.stop > a,
.stop--soon {
  display: block;
  padding: 1rem 1.125rem;
  text-decoration: none;
}

.stop > a:hover .stop__title { text-decoration: underline; }

.stop__title {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.65;
}

.stop__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

/*
  押せる枠の下段。左に印、右に「5分で読む →」を置く。
  新しい5分ページを足すときは、この形をそのまま使う:

  <li class="stop">
    <a href="/chizu/ページ名/">
      <span class="stop__title">題名</span>
      <span class="stop__foot">
        <span class="stop__tags"><span class="tag tag--free">無料でできる</span></span>
        <span class="stop__go">5分で読む →</span>
      </span>
    </a>
  </li>
*/
.stop__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-top: 0.7rem;
}

.stop__foot .stop__tags { margin-top: 0; }

.stop__go {
  margin-left: auto;
  font-family: var(--gothic);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--seal);
  white-space: nowrap;
}

/* まだ無いページは、押せないことが分かるように点線と薄い文字 */
.stop--soon {
  border-style: dashed;
  border-color: var(--ink-soft);
  background: transparent;
}

.stop--soon .stop__title { color: var(--ink-soft); }

/* 体験記で読む。5分ページより一段小さく、枠なし */
.diary {
  margin-top: 1.5rem;
  max-width: var(--measure);
}

.diary__label {
  margin: 0;
  font-family: var(--gothic);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--ink-soft);
}

.diary__list {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  font-family: var(--gothic);
  font-size: 0.8125rem;
  line-height: 1.7;
}

/* 指で押しやすい高さを確保する */
.diary__list a {
  display: block;
  padding: 0.7rem 0;
  color: var(--ink-soft);
}

.diary__list a:hover { color: var(--seal); }

/* ---------- 5分で解決するページの型 ---------- */

.guide { max-width: var(--measure); }

.guide p { margin: 0 0 1.25rem; }

/* 英語の画面表示とコマンド。訳さずそのまま見せるので、地の文から浮かせる */
.guide code {
  padding: 0.1em 0.35em;
  border-radius: 2px;
  background: #ECEDE8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace, var(--gothic);
  font-size: 0.875em;
  overflow-wrap: anywhere;
}

.guide__head { padding: 3.5rem 0 2rem; }

.guide__stage {
  margin: 0;
  font-family: var(--gothic);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--seal);
}

.guide__title {
  margin: 0.75rem 0 0;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

/* このページについて */
.about {
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--ink);
  background: #fff;
  font-family: var(--gothic);
}

.about__title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--ink-soft);
}

.about__list { margin: 0; }

.about__row {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  column-gap: 0.75rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  line-height: 1.7;
}

.about__row dt {
  font-weight: 600;
  color: var(--ink-soft);
}

.about__row dd { margin: 0; }

/* 準備 */
.prep {
  margin-top: 2rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--rule);
}

.prep__title {
  margin: 0 0 0.35rem;
  font-family: var(--gothic);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.6;
}

.prep p {
  margin: 0;
  font-family: var(--gothic);
  font-size: 0.875rem;
  line-height: 1.9;
}

/* つまずき */
.trap {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}

.trap__num {
  margin: 0;
  font-family: var(--gothic);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--seal);
}

.trap__title {
  margin: 0.35rem 0 0;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.6;
}

/* 画面 → 何が起きているか → 抜け出し方 の小見出し */
.trap__part {
  margin: 2rem 0 0.75rem;
  font-family: var(--gothic);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-soft);
}

.trap .figure { margin-bottom: 0; }
.trap .figure a { display: block; }

.steps {
  margin: 0;
  padding-left: 1.5rem;
}

.steps > li {
  margin-bottom: 0.9rem;
  padding-left: 0.25rem;
}

.steps > li:last-child { margin-bottom: 0; }
.steps > li::marker { font-weight: 600; color: var(--seal); }

.steps__choices {
  margin: 0.5rem 0 0;
  padding-left: 1.5rem;
}

.steps__choices li { margin-bottom: 0.25rem; }

/* 手順の順番には入らない「こうなったら」の補足 */
.guide .steps__note {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--rule);
  font-family: var(--gothic);
  font-size: 0.875rem;
  line-height: 1.9;
}

/* ここまでできたら */
.done {
  margin-top: 3.5rem;
  padding: 1.375rem 0 1.375rem 1.25rem;
  border-left: 3px solid var(--seal);
}

.done__title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.6;
}

.done p { margin: 0; }

.done .done__next {
  margin-top: 0.75rem;
  font-family: var(--gothic);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* この話の体験記と、地図に戻るリンク */
.guide__foot {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--gothic);
}

.guide__foot .guide__diary-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--ink-soft);
}

.guide__foot .guide__diary {
  margin: 0.25rem 0 1.75rem;
  font-size: 0.875rem;
  line-height: 1.8;
}

.guide__foot .backlink { margin: 0; }

.guide__foot .backlink a {
  display: inline-block;
  padding: 0.6rem 0;
}

@media (max-width: 30rem) {
  .guide__head { padding: 2.75rem 0 1.75rem; }
  .guide__title { font-size: 1.4375rem; }
  .trap__title { font-size: 1.1875rem; }
  .about { padding: 1rem; }
  .hero { padding: 2.75rem 0 2.25rem; }
  .hero__sub { font-size: 1rem; }
  .map__title { font-size: 1.3125rem; }
  .stage { padding-left: 1.25rem; }
}
