/* ========== MyPage (mobile first) ========== */
.mypage{ width:min(720px, 92%); margin-inline:auto; padding: 12px 0 40px; }

/* ---- login ---- */
.myp-login{ text-align:center; padding: 24px 0 10px; }
.myp-title{ margin: 6px 0; font-size: 1.8rem; }
.myp-lead{ margin: 0 0 14px; color: var(--muted, #6b7280); }
.myp-form{ max-width: 420px; margin: 0 auto; text-align:left; }
.myp-form label{ display:block; font-weight:800; margin: 10px 0 6px; }
.myp-input{
  width:100%; padding: 12px 12px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,.18); font-size: 1rem;
}
.myp-btn{
  width:100%; margin-top: 10px; padding: 12px 14px; border-radius: 999px;
  border:none; background: var(--primary, #b91c1c); color:#fff;
  font-weight: 800; cursor:pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}
.myp-error{ margin: 10px 0 0; color:#b91c1c; font-weight:700; }

/* ---- hero banner ---- */
.mp-hero{ margin: 10px 0 14px; }
.mp-hero-inner{ display:flex; align-items:flex-end; justify-content:space-between; gap:12px; }
.mp-hero-text{
  background:#7fb79c;
  border-radius: 18px;
  padding: 14px 16px;
  width: 100%;
}
.mp-hero-small{ font-weight:900; font-size: clamp(1.2rem, 5.6vw, 2rem); }
.mp-hero-big{ font-weight:900; font-size: clamp(2.1rem, 8vw, 3.2rem); margin-top: 2px; }
.mp-hero-chara{ width: 82px; height:auto; transform: translateY(6px); }

/* ---- info card ---- */
.mp-card{
  background:#fff4a8;
  border: 2px solid rgba(0,0,0,.12);
  border-radius: 18px;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}
.mp-sec-title{ margin: 10px 0 8px; font-weight: 900; font-size: 1.15rem; }
.mp-kv{ display:grid; gap: 6px; padding-bottom: 4px; }
.mp-row{
  display:flex; justify-content:space-between; gap:12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.45);
}
.mp-label{ font-weight: 800; }
.mp-val{ font-weight: 900; text-align:right; word-break: break-word; }

/* actions */
.mp-actions{
  display:flex; gap:10px; justify-content:center; flex-wrap:wrap;
  margin-top: 12px;
}
.mp-btn{
  border:none; border-radius: 999px;
  padding: 10px 14px;
  background: var(--primary, #b91c1c);
  color:#fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  cursor:pointer;
  font-weight: 800;
}
.mp-btn-ghost{
  background:#fff;
  color:#111;
  border: 1px solid rgba(0,0,0,.18);
  box-shadow:none;
}
.mp-save-hint{
  margin: 10px 0 0;
  text-align:center;
  color: var(--muted, #6b7280);
  font-size: .9rem;
}
/* aタグをボタン風に（館内案内図へ） */
.mp-btn-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}

/* ---- common blocks ---- */
.mp-gallery, .mp-map{
  margin-top: 16px;
  border-radius: 18px;
  border: 2px solid rgba(0,0,0,.12);
  padding: 12px;
  background:#fff;
}
.mp-gallery-title{
  margin: 2px 0 10px;
  font-weight: 900;
  font-size: 1.2rem;
  text-align:center;
}
.mp-hint{
  margin: 8px 0 0;
  color: var(--muted, #6b7280);
  font-size: .9rem;
  text-align:center;
}

/* ---- slides (generated by JS) ---- */
.mp-slides{
  overflow:hidden;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12);
  background:#fff;
}
.mp-slide{ display:none; padding: 8px; }
.mp-slide.is-active{ display:block; }

.mp-slide img{
  width:100%;
  height:auto;
  display:block;
}
.mp-slide img:first-child{ border-radius: 12px 12px 0 0; }
.mp-slide img:last-child{ border-radius: 0 0 12px 12px; }
.mp-slide img + img{ margin-top: 0; }

/* controls + dots */
.mp-slide-ctrl{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin-top: 10px;
}
.mp-dots{ display:flex; gap:6px; justify-content:center; flex:1; }
.mp-dot{
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(0,0,0,.22);
}
.mp-dot.is-active{ background: rgba(0,0,0,.65); }

/* ---- map ---- */
.mp-map-link{
  display:block;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.12);
}
.mp-map-img{ width:100%; height:auto; display:block; }

/* a bit bigger screens */
@media (min-width: 760px){
  .mp-hero-chara{ width: 120px; }
  .mp-card{ padding: 18px 18px 14px; }
}

html{ scroll-behavior: smooth; }

/* ===== MyPage redesign: speech bubble style ===== */
body[data-page="mypage"]{
  background: #f4f3ef;
}

/* 上のタイトル（2段ピル） */
.mp-top{ padding: 8px 0 10px; }
.mp-title-bubbles{ display:grid; gap: 10px; justify-items:center; }
.mp-title-pill{
  background:#7fb79c;
  color:#111;
  border-radius: 22px;
  padding: 12px 18px;
  font-weight: 900;
  letter-spacing: .12em;
}
.mp-title-pill--small{
  width: min(420px, 92%);
  text-align:center;
  font-size: clamp(1.6rem, 7vw, 2.4rem);
}
.mp-title-pill--big{
  width: min(520px, 96%);
  text-align:center;
  font-size: clamp(2.2rem, 9vw, 3.3rem);
}

/* キャラ＋吹き出し */
.mp-profile{
  display:flex;
  align-items:flex-end;
  gap: 8px;
  margin-top: 8px;
}

.mp-chara{
  width: 200px;
  height: auto;
  flex: 0 0 auto;
}

/* 吹き出し本体 */
.mp-bubble{
  position: relative;
  background: #ffffff;
  border-radius: 999px;
  padding: 14px 16px;
  flex: 1;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 12px 26px rgba(0,0,0,.08);
}

/* ふきだしの“しっぽ” */
.mp-bubble::before{
  content:"";
  position:absolute;
  left: -14px;
  bottom: 22px;
  width: 0; height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 18px solid #fff;
  filter: drop-shadow(-2px 2px 1px rgba(0,0,0,.06));
}

.mp-bubble-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.mp-bubble-title{
  font-weight: 900;
  letter-spacing: .08em;
}

/* グループ表示（右側） */
.mp-groupbox{
  text-align:center;
  min-width: 84px;
}
.mp-groupbox-label{
  display:block;
  font-weight: 900;
  font-size: .95rem;
}
.mp-groupbox-value{
  display:block;
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1.0;
  margin-top: 4px;
}

.mp-bubble-body{ margin-top: 8px; }
.mp-line{
  margin: 0;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: .06em;
}

/* 真ん中：黄色ラベル＋企画名 */
.mp-themearea{
  text-align:center;
  margin: 18px 0 10px;
}
.mp-tag{
  display:inline-block;
  background: #fff2a8;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .08em;
  border: 1px solid rgba(0,0,0,.08);
}
.mp-theme-title{
  margin-top: 12px;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: .10em;
}
.mp-theme-sub{
  margin-top: 4px;
  font-weight: 900;
  opacity: .8;
}

/* 下：活動部屋 / 宿泊部屋 / バス */
.mp-info{
  margin-top: 18px;
  padding: 8px 4px 0;
}
.mp-pill{
  display:inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .10em;
  margin: 10px 0;
}
.mp-pill--green{ background:#7fb79c; }
.mp-pill--orange{ background:#ff964a; }

.mp-info-line{
  margin: 10px 0;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: .08em;
}
.mp-info-val{ word-break: break-word; }

/* 小さいスマホ対策 */
@media (max-width: 420px){
  .mp-chara{ width: 96px; }
  .mp-bubble{ border-radius: 28px; }
  .mp-groupbox-value{ font-size: 2.1rem; }
}


/* ===== お知らせ（MyPage） ===== */
.mp-notice{
  margin: 12px 0 6px;
  padding: 12px 12px 10px;
  border-radius: 18px;
  background: #fff;
  border: 2px solid rgba(0,0,0,.12);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.mp-notice-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 6px;
}

.mp-notice-badge{
  display:inline-block;
  background: #fff2a8;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.mp-notice-close{
  border:none;
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
  cursor:pointer;
  padding: 6px 10px;
  border-radius: 10px;
}
.mp-notice-close:hover{
  background: rgba(0,0,0,.06);
}

/* お知らせ本文（長文/改行対応） */
.mp-notice-list{
  margin: 0;
  padding-left: 1.2em;
  display:grid;
  gap: 6px;
  font-weight: 800;
  letter-spacing: .02em;
}
.mp-notice-list li{
  line-height: 1.45;
  white-space: pre-line; /* ← セル内改行を表示 */
}

.mp-notice-empty{
  margin: 8px 0 0;
  color: var(--muted, #6b7280);
  font-weight: 700;
  text-align:center;
}