/* ===============================
   Reset
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===============================
   Base
================================ */
body {
  font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #000;
}

main {
  text-align: center;
  position: relative;
}




/* ===============================
   Header / Logo
================================ */
.mpf_titlelogo {
  width: 240px;
  margin: 0 auto 30px;
  position: relative;
  z-index: 10;
}

/* ===============================
   Top Visual
================================ */
#top {
  position: relative;
  min-height: 480px;
}

.top_bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    90deg,
    #509cb2 15%,
    #d01c76,
    #e3db68 78%
  );
  z-index: 0;
}

.top_poligon {
  position: absolute;
  inset: 20px 0;
  background: #000;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
}

#topsvg {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

/* subtitle.svg / svgtitle 専用補正 */
#topsvg img {
  max-width: none;
  width: auto;
  height: 100%;
  max-height: 600px;
}

/* ===============================
   SP トップ画像はみ出し防止
================================ */
#topsvg .sp img {
  width: 100vw;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}




/* ===============================
   Catch Copy
================================ */
.catchcopy {
  font-size: 1.5rem;
  width: 80%;
  margin: 30px auto;
}

.point {
  font-size: 2rem;
  font-weight: bold;
  margin: 0 8px;
}

.catchcopy2 {
  font-size: 2rem;
  margin: 10px auto 30px;
  position: relative;
  z-index: 2;
  background: linear-gradient(transparent 50%, #f613c9a7 30%);
  padding-bottom: 0.2em;
}

/* ===============================
   Plan Image
================================ */
.plan {
  width: 100%;
  display: flex;
  justify-content: center;
}

.plan img {
  width: 100%;
  max-width: 1000px;
  height: auto;
}


/* ===============================
   Section Image（斜めカット）
================================ */
.section_image {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.section_image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #ebf800;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 75%,
    0 100%
  );
  z-index: 0;
}

.image_bg {
  position: relative;
  z-index: 1;
}

/* ===============================
   Notice / Button
================================ */
.mininotice {
  margin: 30px auto;
  max-width: 500px;
}

.btn {
  display: inline-block;
  width: 250px;
  line-height: 60px;
  border-radius: 30px;
  background-color: #1b85fb;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 5px 0 #1567c3;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(4px);
  box-shadow: none;
}

/* ===============================
   Footer
================================ */
footer {
  margin: 60px auto 0;
}

.copy {
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.instagram img {
  width: 40px !important;
  max-width: 40px !important;
  height: auto;
  margin: 0 auto;
}


/* ===============================
   PC / Tablet / SP 表示制御（完全版）
================================ */

/* 初期状態：PC & Tablet */
.pc {
  display: block;
}

.sp {
  display: none;
}

/* SPのみ表示（〜480px） */
@media (max-width: 480px) {
  .pc {
    display: none !important;
  }

  .sp {
    display: block !important;
  }
}


/* ===============================
   TOP：SP時は .sp のみ表示（安全版）
================================ */
@media (max-width: 480px) {

  /* PC要素を確実に消す */
  #top .pc {
    display: none !important;
  }

  /* 背景レイヤーも消す */
  #top .top_bg,
  #top .top_poligon {
    display: none !important;
  }

  /* SP用 picture を表示 */
  #top picture.sp {
    display: block !important;
  }

  /* picture内の画像を画面フィット */
  #top picture.sp img {
    display: block;
    width: 100vw;
    max-width: 100%;
    height: auto;
  }

  /* レイアウト事故防止 */
  #topsvg {
    display: block;
  }

  #top {
    overflow-x: hidden;
  }

  .catchcopy2 {
  background: none
}
}
