/* 相談から帰国までの手順：クリック・タップで説明を開く */
.study-flow {
  background: #eaf5f9;
  padding: 56px 0;
}
.study-flow__panel {
  max-width: 1100px;
  margin: auto;
  padding: 48px 62px;
  background: white;
  border-radius: 16px;
}
.study-flow__heading {
  text-align: center;
  margin-bottom: 36px;
}
.study-flow__illustration {
  display: block;
  width: 92px;
  height: 74px;
  margin: 0 auto 12px;
}
.study-flow__heading > span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #1683a8;
}
.study-flow__heading h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  line-height: 1.65;
  color: #123d53;
  margin: 12px 0;
}
.study-flow__heading p {
  font-size: 0.88rem;
  color: #607b89;
  line-height: 1.9;
  margin: 0 0 18px;
}
.study-flow__heading > svg:not(.study-flow__illustration) {
  display: block;
  margin: auto;
  color: #e99a79;
}
.study-flow__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.study-flow__item {
  margin: 0;
}
.study-flow__detail {
  border: 1px solid #e0edf3;
  border-radius: 7px;
  overflow: hidden;
  background: #f0f7fb;
}
.study-flow__detail summary {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 25px;
  list-style: none;
  cursor: pointer;
  padding: 0 26px 0 0;
  min-height: 76px;
}
.study-flow__detail summary::-webkit-details-marker {
  display: none;
}
.study-flow__number {
  display: grid;
  place-items: center;
  align-self: stretch;
  background: #087fa4;
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 20px 5px;
  letter-spacing: 0.02em;
}
.study-flow__title {
  color: #244b60;
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.8;
  padding: 15px 0;
  overflow-wrap: anywhere;
}
.study-flow__toggle {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: #1687aa;
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
  transition: transform 0.2s;
}
.study-flow__detail[open] .study-flow__toggle {
  transform: rotate(180deg);
}
.study-flow__detail summary:hover {
  background: #e5f2f8;
}
.study-flow__detail summary:focus-visible {
  outline: 3px solid #e99a79;
  outline-offset: -3px;
}
.study-flow__content {
  padding: 23px 28px 25px 101px;
  background: white;
  border-top: 1px solid #dce9f0;
}
.study-flow__content p {
  margin: 0;
  color: #526e7d;
  font-size: 0.92rem;
  line-height: 1.95;
}
.study-flow__link {
  display: inline-block;
  margin-top: 13px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #087fa4;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.study-flow__actions {
  text-align: center;
  margin-top: 32px;
}
.study-flow__actions p {
  color: #607b89;
  font-size: 0.88rem;
  line-height: 1.9;
  margin: 0 0 18px;
}
.study-flow__mobile-break {
  display: none;
}
.study-flow .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .study-flow__panel {
    padding: 35px 28px;
  }
  .study-flow__detail summary {
    grid-template-columns: 65px minmax(0, 1fr) 25px;
    gap: 18px;
    padding-right: 18px;
  }
  .study-flow__content {
    padding-left: 83px;
  }
  .study-flow__number {
    font-size: 1.6rem;
  }
  .study-flow__title {
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  .study-flow {
    padding: 30px 0;
  }
  .study-flow > .container {
    width: calc(100% - 20px);
  }
  .study-flow__panel {
    padding: 29px 14px;
    border-radius: 10px;
  }
  .study-flow__heading {
    margin-bottom: 26px;
  }
  .study-flow__illustration {
    width: 74px;
    height: 59px;
  }
  .study-flow__heading h2 {
    font-size: 1.43rem;
    letter-spacing: 0.01em;
  }
  .study-flow__heading p {
    font-size: 0.79rem;
  }
  .study-flow__mobile-break {
    display: block;
  }
  .study-flow__detail summary {
    grid-template-columns: 48px minmax(0, 1fr) 21px;
    gap: 12px;
    min-height: 72px;
    padding-right: 12px;
  }
  .study-flow__number {
    font-size: 1.3rem;
    padding: 17px 3px;
  }
  .study-flow__title {
    font-size: 0.83rem;
    line-height: 1.8;
    padding: 14px 0;
  }
  .study-flow__toggle {
    width: 21px;
    height: 21px;
    font-size: 0.85rem;
  }
  .study-flow__content {
    padding: 18px 17px;
  }
  .study-flow__content p {
    font-size: 0.85rem;
    line-height: 1.95;
  }
  .study-flow__actions p {
    font-size: 0.8rem;
  }
  .study-flow__actions .button {
    width: 100%;
    min-height: 48px;
    padding: 14px 12px;
    font-size: 0.82rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .study-flow__toggle {
    transition: none;
  }
}
