body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;
  color: #333;
  /* 背景写真を模したグラデーション */
  background: linear-gradient(rgba(240, 235, 230, 0.8), rgba(240, 235, 230, 0.8)), url('https://placehold.co/1200x400/e8e4db/e8e4db') center/cover;
  margin: 0;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

  .container {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
  }

/* 見出しのスタイル */
.header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.header-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  white-space: nowrap;
  letter-spacing: 0.1em;
}

.header-title .number {
  font-size: 42px;
  color: #931b54;
  font-style: italic;
  margin: 0 4px;
}

.header-line {
  flex-grow: 1;
  height: 12px;
  margin-left: 20px;
  background: linear-gradient(to right, #d4af37, #fdf5b6, #d4af37, #fdf5b6);
  border-radius: 6px;
}

/* カードのレイアウト */
.cards-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
 
@media (max-width: 1150px) {
  .cards-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
 
@media (max-width: 768px) {
  .cards-wrapper {
    grid-template-columns: 1fr;
  }
}
.card {
  flex: 1;
  min-width: 200px;
  border-radius: 12px;
  padding: 20px 15px;
  text-align: center;
  box-sizing: border-box;
  /* 特徴的な濃いグレーのドロップシャドウ */
  box-shadow: 4px 6px 0px #666;
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card.yellow {
  background-color: #fcf49a;
}

.card.white {
  background-color: #ffffff;
}

/* バッジ（上部の紫の丸角） */
.badge {
  background-color: #931b54;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 6px 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  white-space: nowrap;
}

/* タイトルとサブテキスト */
.card h3 {
  font-size: 25px;
  margin: 0 0 5px 0;
  line-height: 1.3;
  font-weight: 900;
}

.note {
  font-size: 15px;
  margin: 0 0 10px 0;
  font-weight: bold;
  min-height: 16px;
}

/* 区切り線（両端に黒丸） */
.divider {
  width: 90%;
  height: 1px;
  background-color: #333;
  position: relative;
  margin: 15px 0;
}

.divider::before, .divider::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  background-color: #333;
  border-radius: 50%;
}

.divider::before { left: 0; }
.divider::after { right: 0; }

/* 下部の説明テキスト */
.desc {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  font-weight: bold;
}

/* レスポンシブ対応（スマホ画面では縦並びに） */
@media (max-width: 768px) {
  .cards-wrapper {
    flex-direction: column;
  }
  .header-line {
    display: none;
  }
}


/* 基本設定：画像がはみ出さないようにする */
.m-media__wrap img {
  max-width: 100%;
  height: auto;
}

/* ▼ スマホ表示（画面幅767px以下）のとき ▼ */
@media screen and (max-width: 767px) {
  .img-pc {
    display: none; /* PC用画像を隠す */
  }
  .img-sp {
    display: block; /* SP用画像を表示する */
  }
}

/* ▼ PC表示（画面幅768px以上）のとき ▼ */
@media screen and (min-width: 768px) {
  .img-pc {
    display: block; /* PC用画像を表示する */
  }
  .img-sp {
    display: none; /* SP用画像を隠す */
  }
}

/* 線より上の部分をまとめる要素（余った高さを埋める） */
.card-top {
  flex-grow: 1; 
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}