@layer module{
/*spベース　PCは@mediaつかう*/
/* モーダル*/
.modal-open {
  position: fixed;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  width: calc(100% - 2%);
  text-align: center;
}
.modal-open a {
  padding: 10px 20px;
  color: var(--COLOR_BASE_LIGHT);
  text-decoration: none;
  cursor: pointer;
  background-color: var(--COLOR_ACCENT);
  border: none;
  border-radius: 10px;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.5s, scale 0s 0.5s;
  scale: 0;
  text-align: left;
}
.modal:target {
  display: flex;
  opacity: 1;
  transition: opacity 0.5s;
  scale: 1;
}
.modal-close{
  /* display: flex; スクロールすると消える*/
  position: sticky;
  bottom: 0;
  background: var(--COLOR_BASE_LIGHT);
  padding-top: 10px;

  align-items: center;
  justify-content: center; 
}
.close {
  font-size: 1.2rem;
  color: var(--COLOR_PRIMARY);
  font-weight:var(--FONT_WEIGHT_BOLD);
  text-decoration: none;
  cursor: pointer;
  /*transform: translate(50%, -50%);*/
  border-radius: 5px;
  background-color:var(--COLOR_GRAY_2);
  border: none;
  padding: 10px 20px;
  text-align: center
}
.modal-wrapper {
  position: relative;
  width: 80%;
  max-width: 400px;
  max-height: 80vh;   /* ←変更 */
  overflow-y: auto;   /* ←追加 */
  padding: 30px;
  margin: auto;
  background-color: var(--COLOR_BASE_LIGHT);
  border-radius: 10px;
}

/*テキスト多いとき 英語の崩れ防止*/
.modal-content {
  overflow-wrap: break-word;
}

.modal-content h3 {
  margin: 0;
  color: var(--COLOR_PRIMARY);
  font-size: 2rem;
  line-height: 1.2em;
  letter-spacing: .3rem;
  border-bottom: 4px solid var(--COLOR_PRIMARY);
  display: inline-block;
  padding-bottom: 4px;
}
.modal-content p{
 margin:16px 0;
}

/*開催概要　テーブル背景色*/
.m-table-type2__table--event th{
  background-color: var(--COLOR_BG);
}
.m-table-type2__table--event td{
  background-color: var(--COLOR_BG);
}
/* MAP右画像 */
.map-image img {
  filter: brightness(0.9);
  transition: 0.2s; 
  width: 100%;
  border: 1px solid var(--COLOR_GRAY_2);
  border-radius: 8px;
}
.map-image:hover img {
  filter: brightness(1);
}
/* オーバーレイ */
.map-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--COLOR_BASE_LIGHT);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 16px;
}
/* アイコン */
.map-overlay-icon {
  font-size: 14px;
}
/* ホバー演出 */
.map-image:hover img {
  transform: scale(1.02);
  filter: brightness(0.95);
}
/*来場特典　本体*/
.m-event-banner {
  display: block;
  text-decoration: none;
}
.m-event-banner__inner {
  display: block;
  width: 100%;
  /* max-width: 960px; */
  margin: 20px 0 auto;
  padding: 28px;

  /* グラデーション背景 */
  background: linear-gradient(
    90deg,
    #1f5fa8 0%,
    #2c8ed6 60%,
    #6bc5e8 100%
  );
  color: #fff;
  border-radius: 12px;
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
/* html[lang="en"] .m-event-banner__inner {
  background: linear-gradient(
    90deg,
    #2f7c84, #3f979f
  );
} */
/*ドット模様*/
.m-event-banner__inner::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    radial-gradient( rgba(255,255,255,0.3) 3px, transparent 3px),
    radial-gradient( rgba(255,255,255,0.3) 3px, transparent 3px);
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
  opacity: 0.4;
}
/* 右側のフェード */
.m-event-banner__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);

  background: linear-gradient(
    90deg,
    transparent 50%,
    rgba(255,255,255,0.3) 100%
  );
}
.m-event-banner__desc {
  display: block;
  text-shadow: 0 3px 8px rgba(0,0,0,0.9);
  font-size: 2rem;
  margin-top: 8px;

}
.m-event-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 3rem;  /* ←少し大きめ */
  font-weight: 700;
  text-shadow: 0 3px 8px rgba(0,0,0,0.9);
  margin-top: 16px;
  white-space: nowrap;
}
/* ● */
.m-event-banner__dot {
  width: 3rem;
  height: 3rem;
  background: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}
.m-event-banner:hover {
  opacity: 0.9;
}

html[lang="en"] .m-panel-link__link {
  height: auto;
}

html[lang="en"] .m-panel-link {
  height: auto;
}

html[lang="en"] .m-panel-link__content {
  flex: initial;   /* ←これが最後の鍵 */
}

html[lang="en"] .m-panel-link__media {
  margin-top: 0;
}

/* PC */
@media (width >= 768px) {
  .m-event-banner__desc {
      font-size: 3rem;
  }
  .m-event-banner__cta {
    font-size: 5rem;
  }
}

/* iPhone SE対策*/
@media (max-width: 375px) {
  .modal-wrapper {
    width: 90%;
    max-height: 85vh;
    padding: 20px;
  }
}

}
