@charset "UTF-8";
/* CSS Document */
/* ===============================================
   style.css（四国中央市 子育て応援LP 用）
   - ヘッダー微調整
   - スポンサー表示
   - ヒーローセクション
   - 支援カード（support-card）
   - レスポンシブ調整
   =============================================== */

/* ------------------------------
   Utility
------------------------------ */
/* SPで折り返し制御用 */
.sp_non {
  display: inline;
}
.pc_non {
  display: none;
}

@media (max-width: 768px) {
  .sp_non {
    display: none;
  }
  .pc_non {
    display: block;
  }
}

/* ------------------------------
   Header layout 調整
------------------------------ */
.site-header__inner {
  padding-inline: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 将来ナビを入れるときの想定（今は空でもOK） */
.global-nav__list {
  display: flex;
  gap: 16px;
}

.global-nav__link {
  font-size: 1.3rem;
  color: #fff;
  opacity: 0.9;
}

.global-nav__link:hover,
.global-nav__link:focus-visible {
  opacity: 1;
}

/* ------------------------------
   Sponsor（四国中央市 × みきゃんアプリ）
------------------------------ */
.section-sponsor {
  text-align: center;
  /*margin: 20px 0 30px;*/
}

.section-sponsor__label {
  position: relative;
  display: block;
  width: 800px;
  height: 80px;
  margin: 0 auto;
  background: url("../images/img.png") no-repeat center / contain;
}

/* 左側に市ロゴを重ねる */
.section-sponsor__label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 100px;
  background: url("../images/shikokutyuou_logo.png") no-repeat center / contain;
}

/* SP時は横幅にフィット＆比率維持 */
@media (max-width: 768px) {
  .section-sponsor {
    padding: 0;
    margin: 20px 0 30px;
  }

  .section-sponsor__label {
    width: min(100%, 680px);
    aspect-ratio: 17 / 2; /* 680:80 を比率化 */
    height: auto;
    background-position: right center;
  }

  .section-sponsor__label::before {
    width: 48px;
    height: 48px;
    left: 0;
  }
}

/* ------------------------------
   Hero セクション
------------------------------ */
.hero {
  /*padding: 40px 0 30px;*/
  padding: 0;
}

.hero__content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  /*background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);*/
}

.hero__title {
  /*margin-bottom: 12px;*/
  
  width: 100%;
  height: calc(100vw * 0.5);
  max-height: 600px;
  background-image: url("../images/kosodateouenn_logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  
  position: relative;
}
.hero__title::before,
.hero__title::after {
  content: '';
  position: absolute;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
}
.hero__title::before {
  background-image: url("../images/kosodateouenn_bubble.png");
  top: -2%;
  left: -12%;
  width: 20%;
  height: 20%;
}
.hero__title::after {
  background-image: url("../images/kosodateouenn_flag.png");
  top: -16%;
  right: -10%;
  width: 20%;
  height: 20%;
  z-index: -1;
}

.hero__lead {
  font-size: 1.6rem;
  font-weight: bold;
  text-align: center;
  color: var(--color-brand);
}

@media (max-width: 768px) {
  .hero__content {
    padding-block: 32px;
  }
  .hero__title {
    height: calc(100vw * 0.75);
  }
  .hero__title::before {
    top: -12%;
    left: -10%;
  }
  .hero__title::after {
    top: -14%;
    right: -10%;
  }
  .hero__lead {
    text-align: left;
  }
}


/* ------------------------------
   支援メニュー一覧
------------------------------ */
/* セクション自体の余白は common.css の .section を利用 */

.support-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* カード本体 */
.support-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 20px 20px;
}

/* タイトル */
.support-card__title {
  margin-bottom: 24px;
  text-align: center;
  border-bottom: 2px solid var(--color-brand);
  padding-bottom: 8px;
  font-weight: 700;
}

/* テキスト */
.support-card__text {
  margin-bottom: 16px;
  text-align: center;
  font-weight: 700;
}

/* バナーエリア */
.support-card__banner {
  margin-top: 16px;
}

/* バナーリンク（中身は画像） */
.support-card__link {
  display: block;
  max-width: 800px;
  margin: 0 auto;
}

/* 画像バナー */
.support-card__img {
  display: block;
  width: 100%;
  height: auto;
}

/* hover時は画像全体を少しだけ持ち上げる */
.support-card__link:hover,
.support-card__link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(122, 79, 12, 0.35);
}

/* トランジションを付ける */
.support-card__link {
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

@media (max-width: 768px) {
  .support-card__text {
    text-align: left;
  }
}


/* ------------------------------
   フッター微調整
------------------------------ */
.site-footer {
  margin-top: 60px;
}

/* ------------------------------
   小さめ画面調整
------------------------------ */
@media (max-width: 768px) {
  .hero__content {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .support-card {
    padding: 20px 0 16px;
  }


  .support-card__link {
    max-width: 100%;
  }
}
