/*
 * トップページ デザインE(STICKER / ステッカー・コラージュ)
 * HTMLは標準デザインと共通。html[data-design="e"] の時だけ効くよう全セレクタを限定する。
 */

html[data-design="e"] body {
  background: #3A4BFF;
  color: #15123A;
  overflow-y: auto;
}

html[data-design="e"] .bg-marquees { display: none; }

/* ---- ヘッダー ---- */
html[data-design="e"] .corner {
  top: 28px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

html[data-design="e"] .corner.left { left: 40px; }
html[data-design="e"] .corner.left::before { background: #FFE14D; }

/* 左ラベルの文字頭(40px + 四角10px + gap8px)にそろえて2行目に置く */
html[data-design="e"] .corner.right {
  top: 50px;
  left: 58px;
  right: auto;
  opacity: 1;
  font-size: 12px;
}

html[data-design="e"] .official-link {
  top: 28px;
  right: 172px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  background: #ffffff;
  color: #15123A;
  font-weight: 900;
}

html[data-design="e"] .official-link:hover { color: #3A4BFF; }

html[data-design="e"] .sound-toggle {
  top: 28px;
  right: 40px;
  bottom: auto;
  width: 120px;
  height: 44px;
  border-color: #ffffff;
  background: transparent;
  color: #ffffff;
  font-size: 12px;
}

html[data-design="e"] .sound-toggle[aria-pressed="true"] {
  background: #ffffff;
  color: #3A4BFF;
}

/* ---- メイン: 中央に見出し、周囲にカテゴリのステッカーを散らす ---- */
html[data-design="e"] main {
  height: auto;
  min-height: 100%;
  padding: 120px 24px 110px;
}

html[data-design="e"] .eyebrow {
  margin-bottom: 16px;
  color: #FFE14D;
  font-size: 14px;
  letter-spacing: .3em;
}

html[data-design="e"] h1 {
  color: #ffffff;
  font-family: "Mochiy Pop One", var(--font-body);
  font-weight: 400;
  font-size: clamp(3.5rem, 9.2vw, 8.25rem);
  line-height: 1;
}

html[data-design="e"] h1 .line.gradient {
  background: none;
  color: #FFE14D;
}

html[data-design="e"] h1 .tagline {
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 900;
  opacity: 1;
}

html[data-design="e"] .lead {
  margin-top: 26px;
  max-width: 520px;
  padding: 16px 22px;
  border-radius: 18px;
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 10px 0 rgba(21, 18, 58, .25);
  font-size: 15px;
  font-weight: 700;
  transform: rotate(-1.5deg);
}

html[data-design="e"] .lead .sub {
  color: #4A4577;
  font-size: 13px;
  opacity: 1;
}

html[data-design="e"] .lead .notice {
  color: #B8154B;
  font-weight: 700;
  opacity: 1;
}

html[data-design="e"] nav { margin: 0; }

html[data-design="e"] .btn {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 240px;
  padding: 22px 24px;
  border: 7px solid #ffffff;
  border-radius: 28px;
  color: #15123A;
  box-shadow: 0 12px 24px rgba(21, 18, 58, .35);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
}

html[data-design="e"] .btn:hover {
  z-index: 5;
  transform: rotate(0deg) scale(1.08);
}

/* ステッカーごとに位置・傾き・形・色を変える(順序は nav 内のカテゴリ順) */
html[data-design="e"] nav .btn:nth-child(1) {
  --tilt: -8deg;
  left: 7.5%;
  top: 19%;
  width: 290px;
  background: #FFE14D;
}

html[data-design="e"] nav .btn:nth-child(2) {
  --tilt: 10deg;
  left: 11%;
  top: 60%;
  width: 210px;
  height: 210px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #FF6FB5;
  text-align: center;
}

html[data-design="e"] nav .btn:nth-child(3) {
  --tilt: 7deg;
  left: 75.5%;
  top: 16%;
  border-radius: 12px;
  background: #B6F24A;
}

html[data-design="e"] nav .btn:nth-child(4) {
  --tilt: -6deg;
  left: 77.5%;
  top: 45%;
  align-items: center;
  padding: 22px 30px;
  border-radius: 999px;
  background: #FF9A4D;
  text-align: center;
}

html[data-design="e"] nav .btn:nth-child(5) {
  --tilt: 4deg;
  left: 72%;
  top: 66%;
  width: 270px;
  border-radius: 28px 4px 28px 4px;
  background: #7EE8FF;
}

/* 極太の見出し用書体は画数の多い字がつぶれるため、メニューは丸みのあるポップ体にする */
html[data-design="e"] .btn-label {
  font-family: "Mochiy Pop One", var(--font-body);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
}

html[data-design="e"] .btn svg { display: none; }

html[data-design="e"] .btn[data-tooltip]::before { display: none; }

/* ツールチップ用の疑似要素を、ステッカー内の常時表示の説明文に転用する */
html[data-design="e"] .btn[data-tooltip]::after {
  position: static;
  width: auto;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  opacity: 1;
  transform: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: inherit;
}

html[data-design="e"] .policy-link {
  left: 40px;
  bottom: 24px;
  color: #ffffff;
  opacity: 1;
}

html[data-design="e"] .policy-link:hover { color: #FFE14D; }

/* 散らし配置はステッカーの幅が固定のため、1280px 未満だと見出し・説明と重なる。
   それより狭い画面では散らし配置をやめ、傾きを残したまま説明の下に折り返して並べる */
@media (max-width: 1279px) {
  html[data-design="e"] nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 36px;
  }

  html[data-design="e"] nav .btn:nth-child(n) {
    position: relative;
    left: auto;
    top: auto;
    width: min(100%, 300px);
    height: auto;
    border-radius: 24px;
  }
}

@media (max-width: 720px) {
  html[data-design="e"] .corner.left { left: 16px; }
  html[data-design="e"] .corner.right { left: 34px; }
  html[data-design="e"] .official-link { top: 80px; left: 16px; right: auto; }
  html[data-design="e"] .sound-toggle { top: 80px; right: 16px; }

  html[data-design="e"] main { padding: 150px 16px 140px; }

  /* 下端中央の切り替えタブと横幅が重なるため、ページ末尾でもタブの上に来るよう上げる */
  html[data-design="e"] .policy-link { left: 16px; bottom: 60px; }
}
