﻿/* static/css/article_schedule-flow.css */

/* ---- 用語カード ---- */
.term-cards{
  display:grid;
  grid-template-columns:1fr;
  gap:.75rem;
  margin:1.2rem 0 1.8rem;
}

.term-card{
  padding:.9rem 1rem;
  border:.08rem solid #d9e6f7;
  border-radius:.85rem;
  background:#fff;
}

.term-card__label{
  display:block;
  margin-bottom:.6rem;
  padding:.3rem .9rem;
  border-radius:999px;
  background:#e8f1ff;
  color:#0175d8;
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:.04em;
  width:fit-content;
}

.term-card__body{
  margin:0;
  font-size:.95rem;
  line-height:1.7;
  color:#333;
}

.term-card__list{
  margin:.5rem 0 0;
  padding-left:1.3rem;
  font-size:.9rem;
  line-height:1.7;
  color:#333;
}

.term-card__list li{
  margin:.15rem 0;
}


/* h2 マーカー：2行折り返し時に各行へ複製 */
.manual-modal__content .container h2 {
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}


/* 料金プランテーブル（manual_modal 内でのみ有効） */
.manual-modal__content .plan-table-wrapper {
  overflow-x: auto;
  margin-bottom: 0.5rem;
}
.manual-modal__content .plan-table {
  width: 100%;
  table-layout: fixed;
  word-wrap: break-word;
  font-size: 0.9rem;
  border-collapse: collapse;
  margin: 0 auto;
}
.manual-modal__content .plan-table th,
.manual-modal__content .plan-table td {
  border: 0.0625rem solid #000;
  padding: 0.5rem;
  font-size: 0.95rem;
  text-align: center;
}
.manual-modal__content .plan-table th { background-color: #f2f2f2; }
.manual-modal__content .plan-table td:nth-child(2),
.manual-modal__content .plan-table th:nth-child(2) { background-color: #e6ffe6; }
.manual-modal__content .plan-table td:nth-child(3),
.manual-modal__content .plan-table th:nth-child(3) { background-color: #e6f7ff; }
.manual-modal__content .plan-table td:nth-child(4),
.manual-modal__content .plan-table th:nth-child(4) { background-color: #fffbe6; }
.manual-modal__content .plan-table td:nth-child(5),
.manual-modal__content .plan-table th:nth-child(5) { background-color: #fce4ec; }
.manual-modal__content .tight-p {
  margin: 0.3em 0;
  line-height: 1.3;
  font-size: 1rem;
}

.schedule-flow{
  container-type:inline-size;
  margin:1.8rem 0;
  padding:1.1rem;
  border:.08rem solid #d9e6f7;
  border-radius:1rem;
  background:#f8fbff;
}

.schedule-flow__header{
  margin-bottom:1rem;
}

.schedule-flow__label{
  display:inline-block;
  margin-bottom:.45rem;
  padding:.2rem .7rem;
  border-radius:999px;
  background:#e8f1ff;
  color:#0175d8;
  font-size:.82rem;
  font-weight:700;
  letter-spacing:.04em;
}

.schedule-flow__header p{
  margin:0;
  font-size:.98rem;
  line-height:1.7;
}

.schedule-flow__body{
  position:relative;
  display:grid;
  gap:.7rem;
}

.schedule-flow__line{
  position:absolute;
  top:1.9rem;
  bottom:1.9rem;
  left:14.5%;
  width:.16rem;
  border-radius:999px;
  background:#d7e4f5;
  overflow:hidden;
}

.schedule-flow__line::before{
  content:"";
  display:block;
  width:100%;
  height:var(--schedule-flow-progress, 16%);
  border-radius:999px;
  background:#0175d8;
  transition:height .25s ease;
}

.schedule-flow__row{
  position:relative;
  display:grid;
  grid-template-columns:30% 1fr;
  gap:1rem;
  align-items:stretch;
  min-width:0;
}

.schedule-flow__step,
.schedule-flow__issue{
  position:relative;
  z-index:1;
  border-radius:.85rem;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.schedule-flow__step{
  display:flex;
  align-items:center;
  gap:.65rem;
  padding:.85rem .9rem;
  border:.08rem solid #cfe0ff;
  background:#fff;
  font-weight:700;
  line-height:1.45;
}

.schedule-flow__num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 2.35rem;
  width:2.35rem;
  height:2.35rem;
  border-radius:50%;
  background:#eef5ff;
  color:#0175d8;
  font-size:.82rem;
  font-weight:700;
}

.schedule-flow__issue{
  display:flex;
  align-items:center;
  gap:.75rem;
  padding:.85rem 1rem;
  border:.08rem solid #e2e2e2;
  background:#fff;
}

.schedule-flow__issue p{
  margin:0;
  font-size:.98rem;
  line-height:1.7;
}

.schedule-flow__tag{
  flex:0 0 auto;
  display:inline-block;
  padding:.2rem .65rem;
  border-radius:999px;
  background:#f1f1f1;
  color:#666;
  font-size:.78rem;
  font-weight:700;
  white-space:nowrap;
}

.schedule-flow__issue--strong{
  border-color:#efb0b0;
  background:#fff5f5;
}

.schedule-flow__issue--strong .schedule-flow__tag{
  background:#ffd7d7;
  color:#b00020;
}

.schedule-flow__row.is-active .schedule-flow__step,
.schedule-flow__row.is-active .schedule-flow__issue{
  transform:translateY(-.08rem);
  box-shadow:0 .45rem 1rem rgba(1,117,216,.12);
}

.schedule-flow__row.is-active .schedule-flow__step{
  border-color:#0175d8;
}

.schedule-flow__row.is-active .schedule-flow__num{
  background:#0175d8;
  color:#fff;
}

.schedule-flow__row.is-active .schedule-flow__issue{
  border-color:#b9d4f5;
  background:#fff;
}

@container (max-width:540px){
  .schedule-flow{
    padding:.8rem;
    border-radius:.85rem;
  }

  .schedule-flow__label{
    font-size:.74rem;
  }

  .schedule-flow__header p{
    font-size:.9rem;
  }

  .schedule-flow__body{
    gap:.55rem;
  }

  .schedule-flow__line{
    display:none;
  }

  .schedule-flow__row{
    grid-template-columns:1fr;
    gap:.45rem;
  }

  .schedule-flow__step{
    padding:.7rem .65rem;
    gap:.45rem;
    font-size:.88rem;
  }

  .schedule-flow__num{
    flex-basis:2rem;
    width:2rem;
    height:2rem;
    font-size:.7rem;
  }

  .schedule-flow__issue{
    flex-direction:column;
    align-items:flex-start;
    padding:.7rem .75rem;
    gap:.4rem;
  }

  .schedule-flow__issue p{
    font-size:.86rem;
    line-height:1.55;
  }

  .schedule-flow__tag{
    font-size:.68rem;
    padding:.16rem .45rem;
  }
}

/* ====== ステップ画像ビューア（自動ループ） ====== */

.step-img-viewer {
  margin: 1rem 0 1.5rem;
}

.step-img-viewer__track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #e8e8e8;
}

.step-img-viewer__track:hover .step-img-viewer__item {
  animation-play-state: paused;
}

.step-img-viewer__track:hover .step-img-viewer__dot {
  animation-play-state: paused;
}

.step-img-viewer__item {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: step-img-cycle 12s infinite both;
}

.step-img-viewer__item:nth-child(1) { animation-delay: 0s; }
.step-img-viewer__item:nth-child(2) { animation-delay: 4s; }
.step-img-viewer__item:nth-child(3) { animation-delay: 8s; }

@keyframes step-img-cycle {
  0%      { opacity: 0; }
  5%      { opacity: 1; }
  28%     { opacity: 1; }
  33.34%  { opacity: 0; }
  100%    { opacity: 0; }
}

.step-img-viewer__img {
  flex: 1;
  overflow: hidden;
}

.step-img-viewer__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.step-img-viewer__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #888;
  background: #e4eef8;
  text-align: center;
  line-height: 1.8;
}

.step-img-viewer__cap {
  padding: 0.3rem 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #444;
  background: rgba(255,255,255,0.92);
  flex-shrink: 0;
}

.step-img-viewer__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.step-img-viewer__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ccc;
  animation: step-dot-cycle 12s infinite both;
}

.step-img-viewer__dot:nth-child(1) { animation-delay: 0s; }
.step-img-viewer__dot:nth-child(2) { animation-delay: 4s; }
.step-img-viewer__dot:nth-child(3) { animation-delay: 8s; }

@keyframes step-dot-cycle {
  0%      { background: #2563eb; transform: scale(1.3); }
  33.33%  { background: #2563eb; transform: scale(1.3); }
  33.34%  { background: #ccc;    transform: scale(1); }
  100%    { background: #ccc;    transform: scale(1); }
}