/* ============================================================
   after-school.css
   同志社小学校 アフタースクールページ専用スタイル
   ============================================================ */

/* ------------------------------------------------------------
   デコレーションライン（見出し下の装飾）
   ------------------------------------------------------------ */
.as-deco-line {
  margin: 8px 0 40px;
}
.as-deco-line img {
  max-width: 980px;
  width: 100%;
  display: block;
}

/* ------------------------------------------------------------
   メインビジュアル
   ------------------------------------------------------------ */
.as-main-image {
  margin: 0 auto 80px;
  max-width: 1008px;
  text-align: center;
}
.as-main-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------------------------------------
   セクション共通
   ------------------------------------------------------------ */
.as-section {
  margin-bottom: 80px;
}

.as-section__heading-bar {
  display: flex;
  align-items: stretch;
  margin-bottom: 32px;
}

.as-section__bar-accent {
  width: 8px;
  background: #6b2b74;
  flex-shrink: 0;
}

.as-section__heading {
  font-size: 22px;
  color: #595757;
  font-weight: normal;
  margin: 0 0 0 16px;
  line-height: 1.5;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;
}

/* ------------------------------------------------------------
   イントロ（テキスト＋写真）
   ------------------------------------------------------------ */
.as-intro {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.as-intro::after {
  content: none;
}

.as-intro__text {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;
}

.as-intro__photos {
  display: flex;
  flex-shrink: 0;
}

.as-intro__photos img {
  width: 255px;
  height: 170px;
  object-fit: cover;
  display: block;
}

/* ------------------------------------------------------------
   3つの特徴
   ------------------------------------------------------------ */
.as-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.as-features::after {
  content: none;
}

.as-features__item {
  /* 各特徴カード */
}

.as-features__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #6b2b74;
  margin-inline: auto;
  color: #fff;
  font-size: 34px;
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 20px;
}

.as-features__title {
  color: #6b2b74;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
  margin: 0 0 12px;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W6', sans-serif;
}

.as-features__item > p {
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  margin: 0;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;
}

/* ------------------------------------------------------------
   1日の過ごし方
   ------------------------------------------------------------ */
.as-schedule-image {
  margin: 0 0 64px;
}
.as-schedule-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------------------------------------
   タグボタン（丸みのある紫ピル）
   ------------------------------------------------------------ */
.as-program-btn-wrap {
  text-align: center;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

.as-tag-btn {
  display: inline-block;
  background: #6b2b74;
  color: #fff;
  border-radius: 60px;
  padding: 10px 50px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W6', sans-serif;
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% -50%;
}

/* ------------------------------------------------------------
   定期プログラム ボックス
   ------------------------------------------------------------ */
.as-program-box {
  border: 2px solid #6b2b74;
  border-radius: 20px;
  padding: 40px 58px;
  margin-bottom: 40px;
}

.as-program-box > p {
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  margin: 0 0 24px;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;
}

.as-program-list {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.as-program-list__item {
  flex: 1;
}

.as-program-list__label {
  border: 1px solid #6b2b74;
  color: #6b2b74;
  text-align: center;
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W6', sans-serif;
  margin-bottom: 8px;
}

.as-program-list__item > p {
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  margin: 0;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;
}

/* ------------------------------------------------------------
   ファミリーサポート バナー
   ------------------------------------------------------------ */
.as-family-banner {
  background: #6b2b74;
  color: #fff;
  text-align: center;
  padding: 15px 20px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W6', sans-serif;
  margin-bottom: 16px;
}

.as-family-subtitle {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
  color: #000;
  margin: 0 0 16px;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W6', sans-serif;
}

.as-family-desc {
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  margin: 0 0 32px;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;
}

/* ------------------------------------------------------------
   活動写真グリッド（4×2）
   ------------------------------------------------------------ */
.as-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 40px;
  margin-top: 32px;
}


.as-photo-grid::after {
  content: none;
}

.as-photo-grid img {
  width: 100%;
  aspect-ratio: 215 / 302;
  object-fit: cover;
  display: block;
}

/* ------------------------------------------------------------
   ご利用方法（2カラム図解）
   ------------------------------------------------------------ */
.as-howto-grid {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 24px;
}

.as-howto-col {
  flex: 1;
}

.as-howto-col__btn {
  background: #6b2b74;
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W6', sans-serif;
  margin-bottom: 20px;
}

.as-howto-col figure {
  margin: 0;
}

.as-howto-col figure img {
  width: 100%;
  height: auto;
  display: block;
}

.as-howto-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  flex-shrink: 0;
  padding-top: 30px;
}

.as-howto-plus__icon {
  position: relative;
  width: 26px;
  height: 26px;
}

.as-howto-plus__icon::before,
.as-howto-plus__icon::after {
  content: '';
  position: absolute;
  background: #000;
}

.as-howto-plus__icon::before {
  width: 2px;
  height: 26px;
  left: 12px;
  top: 0;
}

.as-howto-plus__icon::after {
  width: 26px;
  height: 2px;
  left: 0;
  top: 12px;
}

.as-howto-note-bold {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
  color: #000;
  margin: 0 0 8px;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W6', sans-serif;
}

.as-note {
  list-style: none;
  padding: 0;
  margin: 0 0 100px;
}

.as-note li {
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;
}

/* ------------------------------------------------------------
   Instagramセクション
   ------------------------------------------------------------ */
.as-instagram-box {
  background: #fdf4ff;
  border-radius: 20px;
  padding: 40px 80px;
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 12px;
}

.as-instagram-box__content {
  flex: 1;
}

.as-instagram-box__content > p {
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  margin: 0 0 24px;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;
}

.as-instagram-qr {
  width: 170px;
  height: 195px;
  flex-shrink: 0;
  overflow: hidden;
}

.as-instagram-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ------------------------------------------------------------
   紫ボタン（公式サイト・公式インスタ等）
   ------------------------------------------------------------ */
.as-btn-purple {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #6e3d75;
  color: #fff;
  padding: 15px 19px;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.5;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;
  cursor: pointer;
}

.as-btn-purple img {
  width: 33px;
  height: 18px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   運営主体
   ------------------------------------------------------------ */
.as-operator {
  text-align: center;
}

.as-operator > p {
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  margin: 0 0 16px;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;
}

.as-operator figure {
  max-width: 331px;
  margin: 0 auto 24px;
}

.as-operator figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------------------------------------
   お問い合わせカード
   ------------------------------------------------------------ */
.as-contact-card {
  background: #fafafa;
  border-radius: 20px;
  padding: 40px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 80px;
}

.as-contact-card__info {
  flex: 1;
}

.as-contact-card__info h4 {
  font-size: 22px;
  font-weight: bold;
  line-height: 1.5;
  color: #595757;
  margin: 0 0 20px;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W6', sans-serif;
}

.as-contact-card__info p {
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  margin: 0 0 8px;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;
}

.as-contact-mail {
  color: #6b2b74 !important;
}

.as-contact-mail a {
  color: #6b2b74;
  text-decoration: none;
}

.as-contact-card__map {
  width: 250px;
  flex-shrink: 0;
  overflow: hidden;
}

.as-contact-card__map img {
  width: 100%;
  height: auto;
}

/* ============================================================
   レスポンシブ対応（～761px）
   ============================================================ */
@media (max-width: 761px) {

  .as-intro {
    flex-direction: column;
  }

  .as-intro__photos {
    width: 100%;
  }

  .as-intro__photos img {
    width: 50%;
    height: auto;
  }

  .as-features {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .as-schedule-image {
    margin: 0 0 48px;
  }

  .as-program-box {
    padding: 32px 20px;
  }

  .as-program-list {
    flex-direction: column;
    gap: 20px;
  }

  .as-howto-grid {
    flex-direction: column;
    gap: 20px;
  }

  .as-howto-plus {
    width: 100%;
    padding-top: 0;
    padding: 10px 0;
  }

  .as-note {
    margin: 0 0 48px;
  }

  .as-photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 15px;
  }

  .as-instagram-box {
    flex-direction: column;
    padding: 32px 20px;
  }

  .as-instagram-box .link_btn {
    display: table;
    margin-inline: auto;
  }

  .as-instagram-qr {
    width: 150px;
    height: 172px;
  }

  .as-operator > p {
    text-align: left;
  }

  .as-contact-card {
    flex-direction: column;
    padding: 32px 20px;
  }

  .as-contact-card__map {
    width: 100%;
  }

  .as-tag-btn {
    font-size: 16px;
    padding: 10px 30px;
  }
}
