/* =========================
  ベースフォント設定
========================= */
body {
  font-size: 100%;
  font-family: "Zen Maru Gothic", sans-serif;
  line-height: 1.7;
  color: #333333;
  /* background-color: #f7efe3; */
  padding-top: 70px;
}

body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

/* トップ画像 */
.page-hero {
    position: relative;
    width: 100%;
    background-size: 100%;
    background-position: 0% 65%;
    aspect-ratio: 20/6;
    display: flex;
    justify-content: center;
    background-repeat: no-repeat;
    align-items: center;
}

.page-hero h1 {
  position: absolute;
  font-size: 32px;
  margin: 0;
  color: #FFFFFF;
}

.br-responcive {
  display: none;
}

/* シェイプ */
.shape {
  background-image: url("../images/icon/shape.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 100%;
  height: 20px;
  margin: 10px auto;
}

.design-line {
  background-image: url("../images/icon/linedesign.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  margin: 5px auto;
  width: 900px;
  height: 40px;
}

.wave-bg-1 {
  position: relative;
  background: #fcf9f4;
}

.wave-bg-2 {
  position: relative;
  background: #f3f5f4;
}

.wave-bg-3 {
  position: relative;
  background: #f7efe3;
}

.wave-bg-1::before {
  content: "";
  width: 100%;
  height: 150px;
  position: absolute;
  top: -20%;
  background: url(../images/icon/background-area.png) no-repeat center / contain;
  transform: rotate(180deg);
}

.wave-bg-1::after {
  content: "";
  width: 100%;
  height: 150px;
  position: absolute;
  bottom: -20%;
  background: url(../images/icon/background-area.png) no-repeat center / contain;
}

.wave-bg-2::before {
  content: "";
  width: 100%;
  height: 150px;
  position: absolute;
  top: -20%;
  background: url(../images/icon/background-area2.png) no-repeat center / contain;
  transform: rotate(180deg);
}

.wave-bg-2::after {
  content: "";
  width: 100%;
  height: 150px;
  position: absolute;
  bottom: -20%;
  background: url(../images/icon/background-area2.png) no-repeat center / contain;
}

.wave-bg-3::before {
  content: "";
  width: 100%;
  height: 150px;
  position: absolute;
  top: -20%;
  background: url(../images/icon/background-area3.png) no-repeat center / contain;
  transform: rotate(180deg);
}

.wave-bg-3::after {
  content: "";
  width: 100%;
  height: 150px;
  position: absolute;
  bottom: -20%;
  background: url(../images/icon/background-area3.png) no-repeat center / contain;
}

/* PDFボタン */
.pdf-btn {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 40px;
  width: 300px;
}
.pdf-btn a {
  color: #fff;
  background: #5dae8b;
  display: block;
  padding: 8px 0;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0px 3px 0px #438367;
}

/* 外部リンクイメージ */
.link-img {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* リンクアイコン */
.link-img::after {
  content: "";
  position: absolute;
  inset: 0;

  background: url("../images/icon/link.png") no-repeat center / contain;
}

/* 見出し背景 */
.headline-background {
  position: relative;
  border-radius: 10px;
  padding: 5px 16px 6px 20px;
  background-color: #d5d5d5;
}

.headline-background::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 70%;
  width: 6px;
  background: #7fa4cb;
  border-radius: 3px;
}

.base-btn-layout {
  display: flex;
  justify-content: center;
}

.base-btn {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 40px;
  width: 300px;
}

.base-btn a {
  color: #fff;
  background: #5dae8b;
  display: block;
  padding: 8px 0;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0px 3px 0px #438367;
  text-decoration: none;
}

/* -------------
   画像モーダル表示
---------------- */
.modal-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* =========================
  モーダル背景
========================= */
.custom-modal .modal-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(95vh - 40px);
  aspect-ratio: auto;
  object-fit: contain;
  margin: 0 auto;
}

.custom-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.custom-modal.is-open {
  display: flex;
}

/* =========================
  モーダル本体
========================= */
.modal-content {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 12px;
  box-sizing: border-box;
}

/* 閉じるボタン */
.close-modal-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  border: none;
  background: none;
  font-size: 30px;
  cursor: pointer;
}

/* 開くボタン */
.open-modal-btn {
  padding: 8px 0;
  background: #5dae8b;
  width: 250px;
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
  box-shadow: 0px 3px 0px #438367;
}

/* ===============================
   レスポンシブ（スマホ）
=============================== */
@media screen and (max-width: 768px) {
  .page-hero {
    position: relative;
    background-position: 60% 145%;
    background-size: 120%;
    aspect-ratio: 1 / 1;
  }

  .page-hero h1 {
    bottom: 5px;   /* 下からの位置 */
    left: 5px;     /* 左からの位置 */
    font-size: 20px;
  }
  
  .br-responcive {
    display: block;
  }

  .design-line {
    background-image: url("../images/icon/linedesign.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    margin: 5px auto;
    width: 100%;
    height: 15px;
  }

  .custom-modal {
    padding: 10px;
  }

  .modal-content {
    width: 100%;
    max-height: 85vh;
    padding: 20px;
    border-radius: 12px;
    overflow-y: auto;
  }

  .modal-content h2 {
    font-size: 20px;
  }

  .close-modal-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
    top: 8px;
    right: 8px;
  }

  .wave-bg-1::before {
    content: "";
    top: -12%;
  }

  .wave-bg-1::after {
    content: "";
    bottom: -12%;
  }

  .wave-bg-2::before {
    content: "";
    top: -12%;
  }

  .wave-bg-2::after {
    content: "";
    bottom: -12%;
  }

  .wave-bg-3::before {
    content: "";
    top: -12%;
  }

  .wave-bg-3::after {
    content: "";
    bottom: -12%;
  }

}