/* Asia/Tokyo, 2025-10-16 16:06(UTC+09:00) - css/hoshoukaishi.css */
html.page-hoshoukaishi {
  --sb-track: #fffaf0;
  --sb-thumb: #cfead3;
}

.hosho {
  margin: 0 0 1.2rem;
}

.hosho .container {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.kaishi-row {
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 0.8rem;
  overflow: clip;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin: 1.2rem 0 1.6rem;
}

.kaishi-head {
  padding: 0.6rem 1rem;
}

.kaishi-head h2 {
  font: 700 clamp(2rem, 1.6rem + 1.2vw, 2.6rem)/1.25 "Noto Sans JP","Roboto","Meiryo",sans-serif;
  margin: 0;
}

.kaishi-head.head-red { background: #F5D0D1; }
.kaishi-head.head-blue { background: #CAE6F8; }
.kaishi-head.head-green { background: #B6F8A8; }

.kaishi-body {
  padding: 1.2rem 1.2rem 1.2rem;
  line-height: 1.7;
}

.kaishi-body p {
  margin: 0 0 1rem;
}

.start-flow {
  --gap: clamp(1.2rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: var(--gap);
  align-items: center;
  justify-items: center;
  margin: 1rem 0 0.6rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.start-flow .step {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 0.6rem 0.4rem;
  width: 100%;
}

.start-flow .step .label {
  font-weight: 700;
  /* Unify to global heading token */
  font-size: var(--fs-h3);
}

.start-flow .step .icon {
  margin: 0;
}

.start-flow .step .icon img {
  width: clamp(60px, 12vw, 96px);
  height: auto;
  display: block;
}

.start-flow .step .icon img:not([src$="applicationform.svg"]) {
  width: clamp(108px, 18vw, 180px);
}

.start-flow .step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: calc(var(--gap) * -0.5);
  transform: translate(50%, -50%);
  font-weight: 700;
  font-size: clamp(1.8rem, 1.6rem + 1vw, 2.6rem);
  color: #333;
  pointer-events: none;
}

@media (max-width: 480px) {
  .start-flow {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .start-flow .step:not(:last-child)::after {
    content: "↓";
    position: static;
    transform: none;
    display: block;
    margin: 0.2rem 0;
  }
}

@media (max-width: 480px) {
  .hosho .start-flow {
    grid-template-columns: repeat(3, minmax(88px, 1fr));
    --gap: 0.4rem;
  }
  .hosho .start-flow .step {
    padding: 0.2rem 0.2rem;
    gap: 0.3rem;
  }
  .hosho .start-flow .step .label {
    font-size: var(--fs-small);
  }
  .hosho .start-flow .step .icon img {
    width: clamp(48px, 18vw, 72px);
    height: auto;
    display: block;
  }
  .hosho .start-flow .step .icon img:not([src$="applicationform.svg"]) {
    width: clamp(56px, 20vw, 84px);
  }
  .hosho .start-flow .step:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: calc(var(--gap) * -0.5);
    transform: translate(50%, -50%);
    margin: 0;
    font-size: var(--fs-small);
  }
}

.kaishi-footnote {
  margin: 0.6rem 0 0.8rem;
}

.kaishi-footnote-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.4rem 0.4rem;
  background: #fffaf0;
  border-left: 5px solid #f3c742;
  padding: 0.5rem 0.5rem;
}
