@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@800&display=swap');

.plan_compass {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: auto;
}

.plan_compass_inner {
  position: relative;
  width: 100%;
  height: auto;
}

.plan_modal_img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  cursor: zoom-in;
}

.plan_modal_img.active {
  opacity: 1;
  pointer-events: auto;
}

.plan_compass_dummy {
  width: 100%;
  visibility: hidden;
}

/*ボタン*/
.plan_btn_box {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  gap: 20px;
}

.plan_btn_box button {
  font-family: "Roboto", sans-serif;
  font-weight: 800;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: solid 1px #60727b;
  font-size: 30px;
  padding: 5px 10px;
  color: #60727b;
  background-color: #fff;
  cursor: pointer;
  letter-spacing: -0.008em;
  position: relative;
}

.plan_btn_box button:hover {
  opacity: 0.8;
}

.plan_btn_box button span {
  font-family: "Roboto", sans-serif;
  font-weight: 800;
  font-size: 20px;
}

.plan_btn_box button.on {
  color: #fff;
  background-color: #60727b;
}

.plan_btn_box button.on::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #60727b;
}

@media (max-width:700px) {
  .plan_btn_box button {
    font-size: 20px;
    font-weight: 800;
  }

  .plan_btn_box button span {
    font-size: 15px;
    font-weight: 800;
  }
}


/* モーダル表示（拡大＋フェードイン） */
.plan_modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #e9e4d9;
  overflow: auto;
  text-align: center;
  padding: 40px;
  box-sizing: border-box;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.1s ease;
  pointer-events: none;
}

.plan_modal.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.plan_modal_content {
  max-width: 1200px;
  width: 100%;
  height: auto;
  margin: auto;
  transform: scale(0.8);
  transition: transform 0.1s ease;
  opacity: 0;
}

.plan_modal.show .plan_modal_content {
  transform: scale(1);
  opacity: 1;
}

.plan_modal_content img {
  max-width: 1200px;
  width: 100%;
  height: auto;
}

/* スマホではモーダルと拡大操作を完全に無効化 */
@media screen and (max-width: 700px) {
  .plan_modal_img {
    pointer-events: none !important;
    cursor: default !important;
  }

  .plan_modal {
    display: none !important;
  }
}
