/* =========================================================
   Character page — /chara/
   Requires newhome.css (shared header/footer/LINE/popular)
   ========================================================= */

.page-chara .ch-main {
  background: #fff;
}

/* ---------- MV ---------- */
.ch-mv {
  position: relative;
  z-index: 2;
  min-height: 560px;
  overflow: visible;
  background: #cfe8f6;
}
.ch-mv__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
/* bg < wave < characters */
.ch-mv__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
  line-height: 0;
}
.ch-mv__wave img {
  display: block;
  width: 100%;
  height: auto;
}
.ch-mv__inner {
  position: relative;
  z-index: 2;
  max-width: var(--nh-max);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.ch-mv__copy {
  text-align: center;
}
.ch-mv__eyebrow {
  margin: 0;
  font-family: "Noto Sans JP", var(--nh-font);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.25;
  letter-spacing: 0.17em;
  color: #000;
}
.ch-mv__title {
  margin: 8px 0 0;
  font-family: "Noto Sans JP", var(--nh-font);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.25;
  letter-spacing: 0.12em;
  color: #009908;
}
.ch-mv__mascots {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  margin-top: 8px;
}
.ch-mv__mascot {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 669px;
}
.ch-mv__mascot img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.12));
}
.ch-mv__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 12px 24px;
  margin-bottom: 8px;
  background: #fff;
  border-radius: 26px;
  font-family: "Noto Sans JP", var(--nh-font);
  font-weight: 500;
  font-size: clamp(14px, 2vw, 32px);
  line-height: 1.2;
  white-space: nowrap;
}
.ch-mv__badge--mamoru {
  border: 3px solid #3581C4;
  color: #3581C4;
  position: relative;
  left: 60px;
}
.ch-mv__badge--mamori {
  border: 3px solid #A053CC;
  color: #A053CC;
  position: relative;
  left: -90px;
}

/* ---------- Intro (green) ---------- */
.ch-intro {
  position: relative;
  z-index: 1;
  background: #B9D384;
  padding: 72px 24px 80px;
}
.ch-intro__inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.ch-intro__line-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(806px, calc(100% - 32px));
  max-width: 100%;
  margin-left: 16px;
  margin-right: 16px;
  box-sizing: border-box;
  min-height: 96px;
  padding: 12px 32px 12px 20px;
  background: #00C300;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 200px;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ch-intro__line-btn:hover,
.ch-intro__line-btn:focus {
  transform: translateY(-2px);
  opacity: 1;
  background: #00C300;
  color: #fff !important;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.28);
}
.ch-intro__line-btn:hover .ch-intro__line-icon,
.ch-intro__line-btn:focus .ch-intro__line-icon,
.ch-intro__line-btn:hover .ch-intro__line-icon img,
.ch-intro__line-btn:focus .ch-intro__line-icon img {
  opacity: 1;
  filter: none;
  background: #fff;
}
.ch-intro__line-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
}
.ch-intro__line-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  filter: none;
}
.ch-intro__line-label {
  font-family: "Noto Sans JP", var(--nh-font);
  font-weight: 700;
  font-size: clamp(20px, 2.8vw, 36px);
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-align: center;
}
.ch-intro__text {
  margin: 0;
  text-align: center;
  font-family: "Noto Sans JP", var(--nh-font);
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 2.2;
  letter-spacing: 0.1em;
  color: #000;
}

/* ---------- Profiles (blue) ---------- */
.ch-profiles {
  position: relative;
  background: #DAEBFB;
  padding: 72px 24px 96px;
  overflow: hidden;
}
.ch-profiles__clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.ch-cloud {
  position: absolute;
  display: block;
  width: 160px;
  height: 100px;
  background:
    radial-gradient(circle at 30% 55%, #fff 0 38%, transparent 39%),
    radial-gradient(circle at 52% 40%, #fff 0 42%, transparent 43%),
    radial-gradient(circle at 72% 55%, #fff 0 36%, transparent 37%),
    radial-gradient(circle at 48% 70%, #fff 0 40%, transparent 41%);
  opacity: 0.95;
}
.ch-cloud--1 { left: 2%; top: 38%; width: 140px; height: 88px; transform: rotate(1deg); }
.ch-cloud--2 { right: 4%; top: 18%; width: 150px; height: 92px; transform: rotate(12deg); }
.ch-cloud--3 { left: 28%; top: 48%; width: 150px; height: 95px; transform: rotate(-5deg); }
.ch-cloud--4 { right: 3%; top: 58%; width: 180px; height: 110px; transform: rotate(1deg); }
.ch-cloud--5 { left: 4%; bottom: 6%; width: 200px; height: 120px; }

.ch-profiles__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.ch-profile {
  display: grid;
  grid-template-columns: minmax(200px, 340px) minmax(0, 1fr);
  gap: 24px 32px;
  align-items: center;
}
.ch-profile__figure {
  margin: 0;
  display: flex;
  justify-content: center;
}
.ch-profile__figure img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.1));
}
.ch-profile__card {
  background: #F8F4C4;
  border-radius: 32px;
  padding: 36px 40px;
  box-sizing: border-box;
  min-height: 280px;
  display: flex;
  align-items: center;
}
.ch-profile__dl {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ch-profile__row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px 24px;
  align-items: start;
}
.ch-profile__row dt,
.ch-profile__row dd {
  margin: 0;
  font-family: "Noto Sans JP", var(--nh-font);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: #000;
}
.ch-profile__row dt {
  letter-spacing: 0.4em;
  white-space: nowrap;
}

/* LINE / popular sit on white like newhome */
.page-chara .nh-line,
.page-chara .nh-popular {
  background: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .ch-mv__mascots {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 16px;
  }
  .ch-mv__mascot {
    flex: 0 0 100%;
    max-width: 100%;
    order: -1;
  }
  .ch-mv__badge {
    margin-bottom: 0;
    left: 0;
  }
  .ch-mv__badge--mamoru {
    left: -6%;
  }
  .ch-mv__badge--mamori {
    left: 5%;
  }
}

@media (max-width: 900px) {
  .ch-mv {
    min-height: 0;
  }
  .ch-mv__inner {
    padding: 32px 16px 24px;
  }
  .ch-mv__badge {
    padding: 8px 12px;
    border-width: 2px;
    border-radius: 18px;
  }
  .ch-intro {
    padding: 56px 16px 64px;
  }
  .ch-intro__line-btn {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
    min-height: 72px;
    padding: 10px 20px 10px 12px;
    gap: 10px;
  }
  .ch-intro__line-icon {
    width: 52px;
    height: 52px;
  }
  .ch-intro__text br {
    display: none;
  }
  .ch-intro__text {
    line-height: 1.9;
    letter-spacing: 0.06em;
  }
  .ch-profiles {
    padding: 48px 16px 64px;
  }
  .ch-profile {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
  }
  .ch-profile__figure img {
    max-width: 260px;
  }
  .ch-profile__card {
    padding: 24px 20px;
    border-radius: 24px;
    min-height: 0;
  }
  .ch-profile__row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px 12px;
  }
  .ch-profile__row dt,
  .ch-profile__row dd {
    font-size: 15px;
    letter-spacing: 0.04em;
  }
  .ch-profile__row dt {
    letter-spacing: 0.2em;
  }
  .ch-cloud {
    opacity: 0.55;
  }
}

@media (max-width: 480px) {
  .ch-mv__badge {
    padding: 6px 10px;
    font-size: 14px;
  }
  .ch-intro__line-label {
    letter-spacing: 0.04em;
  }
}
