@charset "utf-8";

body {
  height: 100%;
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.1rem;
  font-optical-sizing: auto;
  font-style: normal;
  background-color: #000;
}

.wrapper {
  width: 100%;
  margin: 0 auto;
  color: #fff;
  background-color: #000;
}

.content {
  position: relative;
}

.content .btn {
  position: absolute;
  width: auto;
  height: fit-content;
  bottom: 16%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* padding: 0 20px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  /* 半透明の黒 */
  /* border-radius: 28px; */
}

.content .btn.prf {
  top: 23%;
  left: 15%;
  transform: none;
  text-align: center;
}

.content .btn.prf h2 {
  display: flex;
  flex-direction: column;
  gap: 30px;
  font-size: 21px;
}

.content .btn.prf h2 span {
  font-family: "Noto Serif JP", "Yu Mincho", serif;
}


.content .btn p {
  width: 350px;
  padding: 5px 5px;
  background-color: #644E30;
  text-align: center;
}

.content .btn .flex p {
  width: fit-content;
  /* max-width: 210px; */
}

.content .btn .flex {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.content .btn p a.set01 {
  width: fit-content;
  display: block;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(14px, 1.2vw, 16px);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  line-height: 1;
}

@media (max-width: 860px) {

}


/* ==============================
   可変スケール対応セクション
   ============================== */
   .content .btn.prf {
    top: 40%;
    left: 10%;
    transform-origin: top left;
    --scale: 1; /* ← ここを変えれば全体の倍率が変わる */
    transform: scale(var(--scale));
    text-align: center;
    transition: transform 0.3s ease; /* スムーズな拡大縮小 */
  }
  
  .content .btn.prf h2 {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    font-family: "Noto Serif JP", "Yu Mincho", serif;
    font-size: clamp(16px, 1.8vw, 21px);
    line-height: 1.4;
  }
  
  .content .btn.prf .flex {
    display: flex;
    justify-content: center;
    gap: 16px;
  }
  
  .content .btn.prf .flex p {
    width: 100%;
    max-width: 195px;
    background-color: #644E30;
    padding: 5px;
    transition: background-color 0.3s ease;
  }
  
  .content .btn.prf .flex p:hover {
    background-color: #8b6a43;
  }
  
  .content .btn.prf .flex a.set01 {
    color: #fff;
    font-family: "Noto Serif JP", "Yu Mincho", serif;
    font-size: clamp(14px, 1.2vw, 18px);
    text-decoration: none;
  }

  footer {
    margin: 100px auto 0px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
  }


  footer small {
    font-family: "Noto Serif JP", "Yu Mincho", serif;
  }

  .btn2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
  }

  .btn2 button {
    width: 320px;
    background-color: #644E30;
    padding: 5px;
    transition: background-color 0.3s ease;
    text-align: center;
    color: #fff;
    font-family: "Noto Serif JP", "Yu Mincho", serif;
    font-size: clamp(14px, 1.2vw, 16px);
    text-decoration: none;
  }
  /* --- スマホで自動的に小さく --- */
  @media (max-width: 860px) {
    .content .btn.prf {
      --scale: 0.8;
      left: 50%;
      bottom: 10%;
      top: unset;
      transform: translate(-50%, -50%);
      width: 90%;
    }

    .content .btn.prf h2 {
      font-size: clamp(17px, 2.5vw, 30px);
    }
    .btn2 {
      width: 100%;
      flex-direction: column;
    }
    .btn2 p {
      width: 90%;
    }
  }

  @media (max-width: 430px) {
    .content .btn.prf {
      bottom: 7%;
    }
  }
  
/* =====================================
   中間発表ポップアップ
===================================== */

   .mrg-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none; /* .is-open が付いたときだけ表示 */
    align-items: center;
    justify-content: center;
    font-family: "Zen Old Mincho", "Yu Mincho", "游明朝体", serif;
  }
  
  /* 表示ON */
  .mrg-popup.is-open {
    display: flex;
  }
  
  /* 背景：白＋透過 */
  .mrg-popup__overlay {
    position: absolute;
    inset: 0;
    /* background: rgba(255, 255, 255, 0.85); */
  }
  
  /* コンテンツ */
  .mrg-popup__content {
    position: relative;
    max-width: 1200px;
    width: 96%;
    max-height: 92vh;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background-color: #fff;
  }
  
  .mrg-popup__pc,
  .mrg-popup__sp {
    width: 100%;
  }
  
  .mrg-popup__pc img,
  .mrg-popup__sp img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }
  
  /* 閉じるボタン */
  .mrg-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }
  
  /* PC / SP 切り替え */
  @media (min-width: 769px) {
    .mrg-popup__pc {
      display: block;
    }
    .mrg-popup__sp {
      display: none;
    }
  }
  
  @media (max-width: 768px) {
    .mrg-popup__pc {
      display: none;
    }
    .mrg-popup__sp {
      display: block;
    }
  
    .mrg-popup__content {
      align-items: flex-start;
      padding-top: 40px;
      width: 80%;
    }

    .mrg-popup__close {
      top: 1px;
      right: 1px;
    }

  }
  
  /* ===============================
     SP スライダー（JSで横移動）
     =============================== */
  .mrg-popup-slider {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
  }
  
  .mrg-popup-slider__wrapper {
    display: flex;
    width: 100%;
    transition: transform 0.35s ease;
  }
  
  .mrg-popup-slider__item {
    min-width: 100%;
    box-sizing: border-box;
  }
  
  .mrg-popup-slider__item img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  
  /* ナビボタン */
  .mrg-popup-slider__nav {
    text-align: center;
    margin-top: 14px;
  }
  
  .nav-btn {
    background: #235077;
    color: #fff;
    border: none;
    padding: 8px 14px;
    margin: 0 6px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
  }
  
  .nav-btn:hover {
    opacity: 0.8;
  }