/* ハッピーサポートの共通パーツ・下層ページ共通（MV・とは？・案内カード・見学ご相談・FAQ等）を流用する */
@import url(./support.css);

/* 児童発達支援 */
/* ============================================ */

/* 装飾イラスト */
/* 配置の仕組みは support.css の .support-deco / .support-illust を参照 */
/* ============================================ */
.support-illust--happroach01 {
  --w: 151;
  bottom: 0;
  left: calc(80 * var(--u));
  @media (width <= 896px) {
    --w: 120;
    left: calc(16 * var(--u));
  }
}
.support-illust--happroach02 {
  --w: 103;
  bottom: 0;
  right: calc(56 * var(--u));
  @media (width <= 896px) {
    --w: 90;
    right: calc(16 * var(--u));
  }
}
.support-illust--hdaily01 {
  --w: 164;
  bottom: 0;
  left: calc(142 * var(--u));
  @media (width <= 896px) {
    --w: 130;
    left: calc(16 * var(--u));
  }
}
.support-illust--hdaily02 {
  --w: 161;
  bottom: 0;
  right: calc(142 * var(--u));
  @media (width <= 896px) {
    --w: 130;
    right: calc(16 * var(--u));
  }
}


/* 施設のご案内（support.css の .support-about を流用） */
/* ============================================ */
.hattatsu-about {
  background-image: url(/assets/images/support/img_h02.webp);
}


/* ご利用方法について */
/* ============================================ */
.hattatsu-use {
  padding: 56px 0 104px;
  background: var(--bg_c);
  @media (width <= 896px) {
    padding: 56px 0 80px;
  }
}
.hattatsu-use__contents {
  display: grid;
  grid-template-columns: 1fr 432px;
  align-items: start;
  gap: 32px 48px;
  margin-top: 32px;
  @media (width <= 1025px) {
    grid-template-columns: 1fr 36%;
    gap: 32px;
  }
  @media (width <= 896px) {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
}
.hattatsu-use__subttl {
  color: var(--main_c);
  font-size: var(--fs_ml); /* 24~18(1120~896) */
  font-weight: 500;
  line-height: 1.5;
}
.hattatsu-use__txt {
  margin-top: 8px;
  font-size: clamp(0.875rem, 0.625rem + 0.4464vw, 0.9375rem); /* 15~14(1120~896) 1行に収めるため例外的に指定 */
  letter-spacing: 0;
  line-height: 1.95;
  .hattatsu-use__merit + & {
    margin-top: 16px;
  }
}
.hattatsu-use__merit {
  margin-top: 16px;
  padding: 12px 28px 16px;
  border: 1px solid #c4dead;
  border-radius: 16px;
  background: #fffdec;
  @media (width <= 896px) {
    padding: 12px 16px 16px;
  }
}
.hattatsu-use__merit-ttl {
  font-size: var(--fs_ms); /* 18~16(1120~896) */
  font-weight: 500;
}
.hattatsu-use__merit-list {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}
.hattatsu-use__merit-item {
  padding-left: 22px;
  font-size: clamp(0.875rem, 0.625rem + 0.4464vw, 0.9375rem); /* 15~14(1120~896) */
  line-height: 1.6;
  letter-spacing: 0;
  position: relative;
  &::before {
    content: '';
    width: 10px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #a2d3ac;
    position: absolute;
    top: calc(.8em - 5px);
    left: 0;
  }
}
.hattatsu-use__img {
  display: block;
  width: 100%;
  margin-top: 32px;
  border-radius: 50px;
  @media (width <= 896px) {
    max-width: 480px;
    margin: 0 auto;
    border-radius: 32px;
  }
}


/* 7つの療育方針 */
/* ============================================ */
.hattatsu-approach {
  padding: 84px 0 104px;
  background: url(/assets/images/common/bg_dotblue.svg) repeat left top / 25px 26px;
  position: relative;
  @media (width <= 896px) {
    padding: 64px 0 120px;
  }
  &::before {
    content: '';
    width: 100%;
    height: 19px;
    position: absolute;
    top: 0;
    left: 0;
    background: url(/assets/images/common/wave_top_y.svg) repeat-x center top / auto 100%;
  }
}
/* 4枚＋3枚（中央寄せ）の2段組。subgridで段ごとに見出し・キャッチの高さを揃える */
.hattatsu-approach__list {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 40px 28px;
  max-width: 1132px;
  margin: 40px auto 0;
  @media (width <= 1025px) {
    gap: 24px 16px;
  }
  @media (width <= 896px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
    margin-top: 32px;
  }
  @media (width <= 480px) {
    grid-template-columns: 1fr;
  }
}
.hattatsu-approach__item {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  grid-column: span 2;
  row-gap: 0;
  align-content: start;
  padding: 24px 16px 32px;
  border: 2px solid #c7e8fa;
  border-radius: 10px;
  background: #fff;
  &:nth-child(5) {
    grid-column: 2 / span 2;
  }
  @media (width <= 1025px) {
    padding-inline: 12px;
  }
  @media (width <= 896px) {
    grid-column: auto;
    padding: 16px 12px 20px;
    &:nth-child(5) {
      grid-column: auto;
    }
    &:last-child {
      grid-column: 1 / -1;
      justify-self: center;
      width: calc(50% - 6px);
    }
  }
  @media (width <= 480px) {
    &:last-child {
      width: 100%;
    }
  }
}
.hattatsu-approach__icon {
  display: grid;
  place-items: center;
  height: 104px;
  @media (width <= 896px) {
    height: 84px;
  }
}
.hattatsu-approach__img {
  /* scaleだとレイアウト上のサイズが変わらずアイコン枠からはみ出して見出しに被るため、zoomで縮小 */
  @media (width <= 896px) {
    zoom: .8;
  }
}
.hattatsu-approach__ttl {
  align-self: center;
  margin-top: 8px;
  color: var(--main_c);
  font-size: clamp(1.125rem, 0.375rem + 1.3393vw, 1.375rem); /* 22~18(1120~896) 「コミュニケーション」を1行に収めるため例外的に指定 */
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
}
.hattatsu-approach__catch {
  align-self: center;
  margin-top: 12px;
  font-size: var(--fs_ms); /* 18~16(1120~896) */
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: center;
  @media (width <= 896px) {
    font-size: calc((15 / 16) * 1rem); /* 15px 2カラムに収めるため例外的に縮小 */
  }
}
.hattatsu-approach__txt {
  margin-top: 16px;
  font-size: clamp(0.8125rem, 0.375rem + 0.7813vw, 0.9375rem); /* 15~13(1120~896) カード内のため例外的に指定 */
  line-height: 1.6;
  letter-spacing: 0;
  @media (width <= 896px) {
    margin-top: 8px;
  }
}
.hattatsu-approach__note {
  margin-top: 56px;
  font-size: var(--fs_ms); /* 18~16(1120~896) */
  font-weight: 500;
  text-align: center;
  @media (width <= 896px) {
    margin-top: 32px;
    text-align: left;
  }
}
.hattatsu-approach__mark {
  background: var(--bg_c);
  color: inherit;
}


/* 1日の流れ */
/* ============================================ */
.hattatsu-daily {
  padding: 80px 0 84px;
  position: relative;
  @media (width <= 896px) {
    padding: 56px 0 136px;
  }
}
.hattatsu-daily__list {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  @media (width <= 1025px) {
    gap: 16px;
  }
  @media (width <= 896px) {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
}
.hattatsu-daily__img {
  display: block;
  width: calc((100% - 32px) / 2);
  max-width: 474px;
  @media (width <= 896px) {
    width: 100%;
  }
}


/* 活動プログラム */
/* PDFリストは support.css の .support-disclosure__* を流用 */
/* ============================================ */
.hattatsu-program {
  padding: 56px 0 104px;
  background: var(--bg_c);
  position: relative;
  @media (width <= 896px) {
    padding: 56px 0 80px;
  }
  &::after {
    content: '';
    width: 100%;
    height: 24px;
    position: absolute;
    bottom: 0;
    left: 0;
    background: url(/assets/images/common/wave_bottom_w.svg) repeat-x center top / auto 100%;
  }
  .support-disclosure__list {
    margin-top: 40px;
    @media (width <= 896px) {
      margin-top: 32px;
    }
  }
}


/* ご利用の流れ（support.css の .support-flow を背景白で流用） */
/* ============================================ */
.hattatsu-flow {
  padding-top: 56px;
  padding-bottom: 64px;
  background: #fff;
  .support-flow__illust {
    @media (width <= 896px) {
      max-width: 513px;
    }
  }
}
