/* ============================================
   受講案内ページ専用CSS
   ============================================ */

.guide-page {
  background: #f7f5f0;
}

.guide-page .page-hero {
  background: transparent;
  color: #1f2328;
}

.guide-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 24px rgba(31, 35, 40, 0.08);
  margin-bottom: 24px;
}

.guide-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1f2328;
}

.guide-image {
  width: 100%;
  border-radius: 12px;
  background: #ffffff;
}

.guide-image.week {
  max-width: 300px;
  margin: 0 auto;
  display: block;
}

.guide-plus {
  color: #e8f14a;
  font-size: 6rem;
  line-height: 1;
  filter: drop-shadow(1px 1px 0 rgba(31, 35, 40, 0.25));
}

.guide-card-separator {
  position: relative;
  z-index: 2;
  margin-top: -62px;
  margin-bottom: -30px;
}


.month-course-inline {
  display: flex;
  justify-content: center;
  align-items: center;
}

.guide-image.month-flow {
  width: 100%;
  max-width: 986px;
  height: auto;
  border-radius: 0;
  background: transparent;
}

.guide-image.small {
  max-width: 220px;
}

.platform-grid,
.category-grid,
.step-grid {
  display: grid;
  gap: 16px;
}

.platform-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.platform-card {
  background: #f8f9fb;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.platform-card img {
  width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.platform-card .platform-name {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #555;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.category-card {
  background: #f8f9fb;
  border-radius: 12px;
  padding: 16px;
}

.category-card img {
  width: 100%;
  border-radius: 10px;
}

.step-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.step-card {
  background: #f8f9fb;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.step-card img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.step-card .step-label {
  font-weight: 600;
  margin: 8px 0 0;
}

.guide-steps {
  background: #cfe9f7;
  border-radius: 16px;
  padding: 26px;
}

.guide-steps h2 {
  margin-bottom: 20px;
}

.step-stage {
  margin-bottom: 18px;
}

.step-stage:last-child {
  margin-bottom: 0;
}

.step-stage-header {
  background: #eaf5fb;
  color: #1f2937;
  font-weight: 700;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(31, 41, 55, 0.12);
  margin-bottom: 14px;
}

.step-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.step-stage-grid--wide {
  grid-template-columns: minmax(220px, 280px) 42px minmax(0, 1fr);
}

.step-panel {
  color: #1f2937;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(17, 24, 39, 0.2);
  background: #ffffff;
}

.step-panel--red {
  border-color: #c82a17;
}

.step-panel--blue {
  border-color: #6e8daf;
}

.step-flow-arrow {
  position: relative;
  width: 14px;
  height: 20px;
  justify-self: start;
  align-self: center;
  margin-left: -15px;
}

.step-flow-arrow::after {
  content: "";
  position: absolute;
  top: 20%;
  transform: translateY(-50%);
}

.step-flow-arrow::after {
  left: 0;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 14px solid #c82a17;
}

.step-panel-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 12px;
  text-align: center;
}

.step-panel--red .step-panel-title {
  background: #c82a17;
}

.step-panel--blue .step-panel-title {
  background: #6e8daf;
}

.step-panel-body {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  flex: 1;
  text-align: center;
}

.step-panel-label {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.step-panel-body img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.step-panel--spread .step-panel-body {
  align-items: stretch;
}

.step-panel-body--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.step-subcard {
  background: #ffffff;
  border: 1px solid rgba(110, 141, 175, 0.28);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-subcard-label {
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.3;
}

.step-subcard img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  .step-stage-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .step-stage-grid--wide {
    grid-template-columns: 1fr;
  }

  .step-flow-arrow {
    width: 20px;
    height: 14px;
    justify-self: center;
    margin-left: 0;
    margin-top: -10px;
    margin-bottom: -10px;
  }

  .step-flow-arrow::after {
    top:-3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-top: 14px solid #c82a17;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-bottom: 0;
  }

  .step-panel-body--grid {
    grid-template-columns: 1fr;
  }
}

.guide-cta {
  text-align: center;
}

.guide-bookmark {
  background: #cfe9f7;
  border: none;
  padding: 24px;
}

.guide-bookmark-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
}

.guide-bookmark-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.guide-bookmark-step {
  position: relative;
  padding: 14px 16px;
  background: #ffffff;
  border-radius: 10px;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
}

.guide-bookmark-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid #ffffff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.guide-bookmark-step:last-child::after {
  display: none;
}

.guide-bookmark-step.is-active {
  background: #c82a17;
  color: #ffffff;
}

.guide-bookmark-step.is-active::after {
  border-left-color: #c82a17;
}

.guide-bookmark-step-title {
  font-size: 0.7rem;
  opacity: 0.8;
  margin-bottom: 4px;
}

.guide-bookmark-step-body {
  font-size: 0.9rem;
}

.guide-bookmark-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.guide-bookmark-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1f2937;
}

.guide-bookmark-card-text {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 12px;
}

.guide-bookmark-card-note {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 16px;
}

.guide-bookmark-card-actions {
  display: flex;
  justify-content: center;
}

.guide-bookmark-button {
  width: 100%;
  max-width: 520px;
  background: #ea5a3b;
  border-color: #ea5a3b;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
}

.guide-bookmark-button:hover {
  background: #d74a2d;
  border-color: #d74a2d;
}

.guide-voices {
  background: #ffffff;
  overflow: hidden;
}

.guide-voices-header {
  margin-bottom: 24px;
}

.guide-voices-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.guide-voice-card {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.guide-voice-bubble {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  background: #ffffff;
  border: 2px solid rgba(54, 76, 99, 0.8);
  border-radius: 28px;
  padding: 24px 24px 24px 28px;
  box-shadow: 0 12px 24px rgba(31, 35, 40, 0.08);
}

.guide-voice-bubble::after {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-left: 2px solid rgba(54, 76, 99, 0.8);
  border-bottom: 2px solid rgba(54, 76, 99, 0.8);
  border-bottom-left-radius: 8px;
  transform: translateY(-50%) rotate(45deg);
}

.guide-voice-title {
  font-size: 1.3rem;
  line-height: 1.45;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
}

.guide-voice-text {
  color: #334155;
  font-size: 0.97rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.guide-voice-text h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 12px;
}

.guide-voice-text p {
  margin-bottom: 12px;
}

.guide-voice-text p:last-child {
  margin-bottom: 0;
}

.guide-voice-text img {
  display: none;
}

.guide-voice-link-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.guide-voice-link {
  color: #c82a17;
  font-weight: 700;
  text-decoration: none;
}

.guide-voice-link:hover {
  color: #ab2313;
  text-decoration: underline;
}

.guide-voice-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  width: 180px;
  flex: 0 0 180px;
}

.guide-voice-photo-wrap {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  overflow: hidden;
  border: 6px solid #6e8daf;
  box-shadow: 0 10px 24px rgba(54, 76, 99, 0.14);
  background: #f3f6fa;
}

.guide-voice-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-voice-photo--placeholder {
  width: 100%;
  height: 100%;
  background: #d8e2ec;
}

.guide-courses .section-header {
  margin-bottom: 20px;
}

.guide-courses {
  background: #ffffff;
}

.top-courses-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 0;
  overflow: visible;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: #1f2328;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.course-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
}

.course-card-image-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}

.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.course-card-image img[src$="no-image-logo.svg"] {
  padding: 28px;
  background: #ffffff;
}

.course-card-status {
  position: relative;
  background: #166534;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-block;
  align-self: flex-start;
  padding: 6px 32px 6px 12px;
  text-align: left;
  margin-left: -4px;
  margin-top: 1px;
  box-shadow: 1px 1px 4px rgba(15, 23, 42, 0.3);
  z-index: 1;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%);
}

.course-card-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 1px;
  padding-right: 12px;
}

.course-card-new {
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.course-card-status-recruiting {
  background: #0284c7;
}

.course-card-status-archived {
  background: #374151;
}

.course-card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.course-card-actions-center {
  justify-content: center;
}

.course-card-bookmark {
  border: 1px solid #cbd5f5;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: #ffffff;
  color: #1f2937;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.course-card-bookmark.is-active {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.course-card-bookmark:hover {
  border-color: #94a3b8;
}

.course-card-play {
  border: none;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.course-card-play:hover {
  background: #111827;
}

.course-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.course-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.course-card-title-link {
  color: inherit;
  text-decoration: none;
}

.course-card-title-link:hover {
  text-decoration: underline;
}

.course-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: #6b7280;
}

.course-card-tag {
  background: #f1f5f9;
  color: #475569;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.course-card-platform-tag {
  background: #475569;
  color: #f1f5f9;
}

.course-card-tag-link {
  text-decoration: none;
}

.course-card-tag-link:hover {
  text-decoration: underline;
}

.course-card-mobile-meta {
  display: none;
}

.course-card-date {
  font-size: 0.8rem;
  color: #64748b;
}

.course-card-provider-link {
  color: inherit;
  text-decoration: none;
}

.course-card-provider-link:hover {
  text-decoration: underline;
}

.course-card-instructor {
  color: #475569;
}

.course-video-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.guide-voice-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.guide-voice-meta {
  color: #64748b;
  margin-bottom: 0;
}

.guide-voices-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

.guide-voices-more {
  min-width: 280px;
  padding: 14px 22px;
  border-width: 2px;
  border-color: #6e8daf;
  color: #31537a;
  background: #cfe9f7;
  font-weight: 700;
}

.guide-voices-more:hover {
  color: #24415f;
  border-color: #5e7d9b;
  background: #ffffff;
}

@media (max-width: 991.98px) {
  .guide-bookmark-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guide-bookmark-step::after {
    top: auto;
    right: auto;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    border-top: 10px solid #ffffff;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-bottom: 0;
  }

  .guide-bookmark-step.is-active::after {
    border-top-color: #c82a17;
    border-left-color: transparent;
  }

  .guide-voices-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .top-courses-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .course-card-image {
    aspect-ratio: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
  }

  .course-card-image-link {
    height: auto;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
  }

  .course-card-image {
    background: #ffffff;
  }

  .course-card-mobile-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .course-card-mobile-meta .course-card-meta {
    display: flex;
  }

  .course-card-body .course-card-meta {
    display: none;
  }

  .course-card-new {
    margin-right: 8px;
  }

  .course-card-footer {
    margin-top: 0;
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    min-height: 36px;
  }

  .course-card-footer .course-card-actions {
    justify-content: flex-end;
  }

  .course-card-footer .course-card-actions-center {
    position: absolute;
    left: 0;
    bottom: 0;
    justify-content: center;
    transform: translateX(-50%);
  }

  .guide-voice-card {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .guide-voice-person {
    width: 100%;
    flex: none;
  }

  .guide-voice-bubble {
    padding: 34px 22px 24px;
  }

  .guide-voice-bubble::after {
    left: 50%;
    top: -11px;
    bottom: auto;
    width: 20px;
    height: 20px;
    border-right: 0;
    border-top: 2px solid rgba(54, 76, 99, 0.8);
    border-left: 2px solid rgba(54, 76, 99, 0.8);
    border-bottom: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 6px;
    transform: translateX(-50%) rotate(45deg);
  }

  .guide-voices-actions {
    justify-content: center;
  }

  .guide-voices-more {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  .top-courses-grid {
    grid-template-columns: 1fr;
  }
}
