/*
 * トップページ デザインA(BOLD / ネオブルータリズム)
 * HTMLは標準デザインと共通。html[data-design="a"] の時だけ効くよう全セレクタを限定する。
 */

html[data-design="a"] body {
  background: #FFE14D;
  color: #111111;
  overflow-y: auto;
  counter-reset: cat-category;
}

/* 背景マーキーは上部の黒帯1本に転用する。位置・色・サイズはJSがインラインで指定するため !important で上書きする */
html[data-design="a"] .mq-band {
  top: 0 !important;
  left: 0;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  background: #111111;
  opacity: 1 !important;
  transform: none;
}

html[data-design="a"] .mq-band ~ .mq-band { display: none; }

html[data-design="a"] .mq-track {
  color: #FFE14D !important;
  font-size: 15px !important;
}

html[data-design="a"] .mq-track span {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: .14em;
}

html[data-design="a"] .mq-track span.outline {
  color: inherit;
  -webkit-text-stroke: 0;
}

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

html[data-design="a"] .corner.left { left: 48px; }

html[data-design="a"] .corner.left::before {
  width: 16px;
  height: 16px;
  border: 3px solid #111111;
  border-radius: 0;
  background: #FF5CA8;
}

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

html[data-design="a"] .official-link {
  top: 62px;
  right: 180px;
  height: 44px;
  padding: 0 18px;
  border: 3px solid #111111;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 4px 4px 0 #111111;
  font-weight: 900;
}

html[data-design="a"] .official-link:hover {
  color: #111111;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #111111;
}

html[data-design="a"] .sound-toggle {
  top: 62px;
  right: 48px;
  bottom: auto;
  width: 120px;
  height: 44px;
  border: 3px solid #111111;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  font-size: 12px;
}

html[data-design="a"] .sound-toggle[aria-pressed="true"] {
  background: #111111;
  color: #FFE14D;
}

/* ---- メイン: 左に見出し・説明、右にカテゴリカード ---- */
html[data-design="a"] main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    "eyebrow nav"
    "title nav"
    "lead nav";
  column-gap: 48px;
  row-gap: 24px;
  align-items: start;
  height: auto;
  min-height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 150px 48px 90px;
  text-align: left;
}

html[data-design="a"] .eyebrow {
  grid-area: eyebrow;
  justify-self: start;
  margin: 0;
  padding: 6px 14px;
  border: 3px solid #111111;
  background: #ffffff;
  color: #111111;
  font-size: 14px;
  letter-spacing: .3em;
}

html[data-design="a"] h1 {
  grid-area: title;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-family: "M PLUS 1", var(--font-body);
  font-weight: 900;
  font-size: clamp(3.5rem, 8.2vw, 7.4rem);
  line-height: 1;
}

html[data-design="a"] h1 .line.gradient {
  padding: 4px 18px 12px;
  border: 4px solid #111111;
  background: #FF5CA8;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #111111;
  box-shadow: 10px 10px 0 #111111;
  transform: rotate(-2deg);
}

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

html[data-design="a"] .lead {
  grid-area: lead;
  margin: 0;
  max-width: 560px;
  padding: 18px 22px;
  border: 3px solid #111111;
  border-radius: 0;
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.75;
}

html[data-design="a"] .lead .sub {
  margin-top: 6px;
  font-size: 15px;
  opacity: 1;
}

html[data-design="a"] .lead .notice {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px dashed #111111;
  font-size: 13px;
  opacity: 1;
}

/* ---- カテゴリカード: 番号(::before)・名前・説明(::after)・矢印を格子に並べる ---- */
html[data-design="a"] nav {
  grid-area: nav;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 16px;
  margin: 0;
}

html[data-design="a"] .btn {
  counter-increment: cat-category;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "num label arrow"
    "num desc arrow";
  column-gap: 20px;
  row-gap: 2px;
  align-items: center;
  padding: 18px 24px;
  border: 3px solid #111111;
  border-radius: 0;
  color: #111111;
  box-shadow: 6px 6px 0 #111111;
  transition: transform .12s ease, box-shadow .12s ease;
}

html[data-design="a"] .btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #111111;
}

html[data-design="a"] nav .btn:nth-child(1) { background: #FF8A3D; }
html[data-design="a"] nav .btn:nth-child(2) { background: #3DD6F5; }
html[data-design="a"] nav .btn:nth-child(3) { background: #7CF29A; }
html[data-design="a"] nav .btn:nth-child(4) { background: #B99BFF; }
html[data-design="a"] nav .btn:nth-child(5) { background: #FF5CA8; }

/* 極太の見出し用書体は画数の多い字がつぶれるため、太くしても重く見えにくい書体にする */
html[data-design="a"] .btn-label {
  grid-area: label;
  font-family: "Murecho", var(--font-body);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
}

html[data-design="a"] .btn svg {
  grid-area: arrow;
  width: 32px;
  height: 32px;
}

/* ツールチップ用の疑似要素を、常時表示の番号と説明文に転用する */
html[data-design="a"] .btn[data-tooltip]::before {
  content: counter(cat-category, decimal-leading-zero);
  grid-area: num;
  position: static;
  border: 0;
  opacity: 1;
  transform: none;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
}

html[data-design="a"] .btn[data-tooltip]::after {
  grid-area: desc;
  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: 14px;
  font-weight: 700;
  line-height: 1.5;
}

html[data-design="a"] .policy-link {
  left: 48px;
  bottom: 24px;
  color: #111111;
  opacity: 1;
  font-size: 13px;
  font-weight: 700;
}

html[data-design="a"] .policy-link:hover { color: #111111; text-decoration-thickness: 3px; }

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

  html[data-design="a"] main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "eyebrow" "title" "lead" "nav";
    padding: 180px 16px 140px;
  }

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