

.guide-intro {
  padding: clamp(24px, 4vw, 40px);
  background: #fff;
  border: 1px solid #eadcae;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(45, 52, 54, 0.07);
}

.guide-intro__definition {
  margin-top: 0;
  color: var(--guide-ink);
  font-size: clamp(1.05rem, 2.3vw, 1.22rem);
  line-height: 1.9;
}

.flow-diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: flow-step;
}

.flow-diagram li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #fff9e6;
  border: 1px solid var(--guide-border);
  border-radius: 12px;
  color: var(--guide-ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.flow-diagram li::before {
  counter-increment: flow-step;
  content: counter(flow-step);
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #b17c00;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}

.flow-diagram__note {
  margin: 10px 0 0;
  color: var(--guide-muted);
  font-size: 0.86rem;
}

.column-flow-guide .guide-section {
  border-bottom: 1px solid #ebebeb;
}

.flow-phase {
  position: relative;
}

.phase-lead {
  margin: 0 0 28px;
  padding: 20px 22px;
  background: #fafafa;
  border-left: 5px solid var(--guide-gold);
  border-radius: 0 14px 14px 0;
  color: var(--guide-ink);
  line-height: 1.9;
}

.step-card-list {
  display: grid;
  gap: 18px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.step-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

/* ステップ同士をつなぐ縦のライン */
.step-card:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 58px;
  bottom: -18px;
  left: 28px;
  width: 2px;
  background: #eadcae;
}

.step-card__label {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 58px;
  height: 58px;
  margin: 0;
  background: var(--guide-gold);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(217, 169, 0, 0.28);
  color: #fff;
  font-family: "Poppins", sans-serif;
}

.step-card__label span {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}

.step-card__label em {
  font-size: 1.24rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.step-card__body {
  position: relative;
  padding: clamp(18px, 3vw, 26px);
  background: #fff;
  border: 1px solid var(--guide-border);
  border-left: 5px solid var(--guide-gold);
  border-radius: 4px 16px 16px 4px;
  box-shadow: 0 9px 28px rgba(45, 52, 54, 0.06);
}

.step-card h3 {
  margin: 0 0 10px;
  color: var(--guide-ink);
  font-size: 1.18rem;
  line-height: 1.5;
}

.step-card__body p:last-child {
  margin-bottom: 0;
}

.step-card-list--compact {
  gap: 14px;
}

.step-card-list--compact .step-card {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
}

.step-card-list--compact .step-card:not(:last-child)::before {
  top: 48px;
  bottom: -14px;
  left: 23px;
}

.step-card-list--compact .step-card__label {
  width: 48px;
  height: 48px;
}

.step-card-list--compact .step-card__label em {
  font-size: 1.08rem;
}

.step-card-list--compact .step-card__body {
  padding: clamp(16px, 2.6vw, 22px);
}

.step-card-list--compact .step-card h3 {
  font-size: 1.08rem;
}

.flow-notice {
  margin-top: 28px;
  background: #fff9e6;
  border-left: 5px solid var(--guide-gold);
}

.flow-notice h3 {
  margin: 0 0 14px;
  color: var(--guide-ink);
  font-size: 1.15rem;
}

.flow-notice ul {
  margin: 0;
  padding-left: 1.35em;
}

.flow-notice li + li {
  margin-top: 8px;
}

.flow-notice__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  color: #9a6a00;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.flow-notice__link::after {
  content: "›";
  font-weight: 800;
}

.flow-notice__link:hover {
  color: #7c5500;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 30px 0;
}

.training-card {
  padding: clamp(22px, 4vw, 32px);
  background: #fff;
  border: 1px solid var(--guide-border);
  border-radius: 16px;
  box-shadow: 0 9px 28px rgba(45, 52, 54, 0.06);
}

.training-card__stage {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff9e6;
  color: #9a6a00;
  font-size: 0.82rem;
  font-weight: 800;
}

.training-card h3 {
  margin: 0 0 12px;
  color: var(--guide-ink);
  font-size: 1.25rem;
}

.training-card ul {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: training-step;
}

.training-card li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: #fafafa;
  border: 1px solid #ece5d0;
  border-radius: 10px;
  color: var(--guide-ink);
  font-size: 0.94rem;
}

.training-card li::before {
  counter-increment: training-step;
  content: counter(training-step);
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 1px solid var(--guide-gold);
  border-radius: 50%;
  color: #9a6a00;
  font-family: "Poppins", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
}

/* 項目同士をつなぐライン */
.training-card li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 22px;
  width: 2px;
  height: 8px;
  background: #eadcae;
}

.term-glossary {
  margin: 34px 0;
  padding: clamp(22px, 4vw, 32px);
  background: #fff;
  border: 1px solid var(--guide-border);
  border-radius: 18px;
}

.term-glossary h3 {
  margin: 0 0 18px;
  color: var(--guide-ink);
  font-size: 1.15rem;
}

.term-glossary dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.term-glossary__item {
  padding-left: 1em;
  border-left: 3px solid var(--guide-gold);
}

.term-glossary dt {
  margin: 0 0 4px;
  color: #9a6a00;
  font-weight: 800;
}

.term-glossary dd {
  margin: 0;
  color: var(--guide-ink);
  line-height: 1.8;
}

.flow-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.flow-related-card {
  display: block;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--guide-border);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(45, 52, 54, .05);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.flow-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(45, 52, 54, .1);
}

.flow-related-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--guide-ink);
  font-size: 1.05rem;
}

.flow-related-card span {
  margin: 0;
  color: var(--guide-muted);
  line-height: 1.8;
}

.daily-schedule {
  margin: 34px 0;
  padding: clamp(22px, 4vw, 32px);
  background: #f7fbff;
  border: 1px solid #dcebf6;
  border-radius: 18px;
}

.daily-schedule h3 {
  margin: 0 0 20px;
  color: var(--guide-ink);
  font-size: 1.25rem;
}

.daily-schedule__lead {
  margin: 0 0 18px;
  color: var(--guide-ink);
  line-height: 1.9;
}

.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.schedule-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--guide-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.schedule-legend__item::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.schedule-legend__item.is-drive::before,
.model-day__item.is-drive .model-day__time {
  background: #f0b429;
}

.schedule-legend__item.is-study::before,
.model-day__item.is-study .model-day__time {
  background: #4b95c8;
}

.schedule-legend__item.is-free::before,
.model-day__item.is-free .model-day__time {
  background: #8bbf9f;
}

.schedule-legend__item.is-life::before,
.model-day__item.is-life .model-day__time {
  background: #adb7bd;
}

.model-day-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* 例を1件だけ載せる場合（詳細は /column/flow-day/ に集約している） */
.model-day-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.model-day {
  padding: clamp(18px, 3vw, 24px);
  background: #fff;
  border: 1px solid #dcebf6;
  border-radius: 16px;
}

.model-day__stage {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 5px 12px;
  background: #eaf4fb;
  border-radius: 999px;
  color: #256a99;
  font-size: 0.82rem;
  font-weight: 800;
}

.model-day__title {
  margin: 0 0 16px;
  color: var(--guide-ink);
  font-size: 1.08rem;
}

.model-day__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #e4eef5;
  border-radius: 12px;
  overflow: hidden;
}

/* 時刻・区分・内容・補足を列で揃えた時間割 */
.model-day__item {
  display: grid;
  grid-template-columns: 88px 52px 148px minmax(0, 1fr);
  align-items: center;
  gap: 4px 12px;
  padding: 11px 14px;
  border-left: 4px solid transparent;
}

.model-day__item + .model-day__item {
  border-top: 1px solid #eef4f8;
}

.model-day__item:nth-child(even) {
  background: #f8fbfd;
}

.model-day__item.is-drive {
  border-left-color: #f0b429;
}

.model-day__item.is-study {
  border-left-color: #4b95c8;
}

.model-day__item.is-free {
  border-left-color: #8bbf9f;
}

.model-day__item.is-life {
  border-left-color: #adb7bd;
}

.model-day__time {
  color: #4a5b66;
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.model-day__tag {
  justify-self: start;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.is-drive .model-day__tag {
  background: #fdf1d6;
  color: #8a6100;
}

.is-study .model-day__tag {
  background: #e6f1f9;
  color: #256a99;
}

.is-free .model-day__tag {
  background: #e8f4ec;
  color: #3f7d5a;
}

.is-life .model-day__tag {
  background: #eef1f3;
  color: #5b6870;
}

.model-day__act {
  color: var(--guide-ink);
  font-size: 0.96rem;
  line-height: 1.5;
}

.model-day__note {
  color: var(--guide-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.schedule-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.schedule-points__item {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #dcebf6;
  border-left: 4px solid #4b95c8;
  border-radius: 4px 12px 12px 4px;
}

.schedule-points__item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--guide-ink);
  font-size: 0.98rem;
  line-height: 1.5;
}

.schedule-points__item p {
  margin: 0;
  color: var(--guide-muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.daily-schedule__link {
  margin: 14px 0 0;
}

.daily-schedule__link a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #256a99;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.daily-schedule__link a::after {
  content: "›";
  font-weight: 800;
}

.column-flow-guide .guide-cta {
  margin-bottom: 90px;
}

.column-flow-guide .guide-cta .guide-button {
  white-space: nowrap;
}

@media (max-width: 768px) {

  .training-grid,
  .flow-related-grid {
    grid-template-columns: 1fr;
  }

  .step-card,
  .step-card-list--compact .step-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .step-card:not(:last-child)::before,
  .step-card-list--compact .step-card:not(:last-child)::before {
    top: 44px;
    left: 21px;
  }

  .step-card__label,
  .step-card-list--compact .step-card__label {
    width: 44px;
    height: 44px;
  }

  .step-card__label em,
  .step-card-list--compact .step-card__label em {
    font-size: 1rem;
  }

  .step-card h3 {
    font-size: 1.06rem;
  }

  .model-day-grid,
  .schedule-points {
    grid-template-columns: 1fr;
  }

  /* 時刻＋区分／内容／補足の3行に折り返す */
  .model-day__item {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 4px 10px;
    padding: 11px 12px;
  }

  .model-day__time {
    grid-column: 1;
    grid-row: 1;
  }

  .model-day__tag {
    grid-column: 2;
    grid-row: 1;
  }

  .model-day__act {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .model-day__note {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .flow-diagram {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .flow-diagram li {
    padding: 10px 12px;
    font-size: 0.86rem;
  }

  .training-card ul {
    grid-template-columns: 1fr;
  }

  .phase-lead {
    padding: 18px;
  }

  .column-flow-guide .guide-cta {
    margin-bottom: 110px;
  }

  .column-flow-guide .guide-cta .guide-button {
    font-size: 0.95rem;
    padding-right: 22px;
    padding-left: 22px;
  }
}
