@charset "utf-8";
/* =============================================================================
   三獣士 — 公開トップページ専用
   （共通の土台は base.css。ここは1ページ構成のセクション固有スタイルだけ）
   ========================================================================== */

/* --- 1. ヒーロー ---------------------------------------------------------- */
.top-hero {
  padding: 64px 24px 0;
  background:
    radial-gradient(circle at 50% 118%, rgba(248, 198, 60, .30), transparent 52%),
    radial-gradient(circle at 16% 18%, rgba(129, 88, 216, .6), transparent 48%),
    radial-gradient(circle at 84% 10%, rgba(244, 121, 111, .4), transparent 44%),
    linear-gradient(#1A1433, #2C2050 58%, #17122B);
}
.top-hero__stars { position: absolute; inset: 0; pointer-events: none; }
.top-hero__inner { position: relative; max-width: 1180px; margin: 0 auto; text-align: center; }
/* テキスト群は z-index:3、キャラ列は 1（スポットライトがロゴの手前に来ないこと） */
.top-hero__fore { position: relative; z-index: 3; }
.top-hero__badge { margin-bottom: 0; }
.top-hero__logo { margin: 16px 0 0; }
.top-hero__title {
  font-family: var(--sj-font-title);
  font-size: clamp(58px, 13vw, 158px);
  line-height: .96;
  margin: 6px 0 0;
  color: var(--sj-cream);
  text-shadow: 8px 8px 0 var(--sj-purple), 0 0 60px rgba(248, 198, 60, .35);
}
.top-hero__title span { color: var(--sj-red); }
.top-hero__lead {
  font-size: clamp(15px, 2.2vw, 20px);
  font-weight: 700;
  margin: 18px auto 0;
  max-width: 640px;
  color: rgba(255, 247, 232, .82);
  text-wrap: pretty;
}
.top-hero__cta { display: flex; gap: 14px; justify-content: center; margin: 26px 0 0; flex-wrap: wrap; }

/* 三獣士の立ち絵（4.2秒ごとに位置が入れ替わる／ホバー中は停止） */
.trio {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  max-width: 960px;
  margin: 18px auto 0;
}
.trio__item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding-bottom: 6px;
  transform-origin: bottom center;
  transition: transform 1s cubic-bezier(.5, 1.5, .5, 1);
}
.trio__light {
  position: absolute;
  left: -18%;
  right: -18%;
  top: -170px;
  bottom: 34px;
  z-index: 0;
  pointer-events: none;
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0% 100%);
  background: linear-gradient(180deg, rgba(255, 247, 232, .34), rgba(255, 247, 232, .10) 55%, rgba(255, 247, 232, 0));
}
.trio__bubble {
  position: absolute;
  top: var(--bt, -6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}
.trio__bubble-in {
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--sj-cream);
  color: var(--sj-ink);
  font-size: 13px;
  font-weight: 900;
  border: 3px solid var(--c);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .3);
  animation: bubbleUp .42s cubic-bezier(.2, .9, .3, 1) both;
}
.trio__img {
  position: relative;
  z-index: 2;
  width: 100%;
  display: block;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5)) drop-shadow(0 0 22px rgba(255, 247, 232, .28));
}
.trio__glow {
  position: relative;
  z-index: 1;
  height: 30px;
  margin: -22px auto 0;
  width: 62%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 247, 232, .5), rgba(255, 247, 232, 0) 70%);
}
.trio__name {
  position: relative;
  z-index: 2;
  margin-top: -8px;
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--c);
  color: var(--sj-dark);
  font-family: var(--sj-font-title);
  font-size: 13px;
}

/* マグカップ用デザインの行進 */
.top-lineup {
  position: relative;
  margin-top: -10px;
  padding: 0 0 6px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.top-lineup__track { display: flex; width: max-content; animation: marquee 34s linear infinite; opacity: .9; }
.top-lineup__track img { height: 190px; display: block; padding-right: 60px; }

/* --- 3. キャラクター ------------------------------------------------------ */
.chara-card__visual { padding: 18px 0 0; display: flex; justify-content: center; }
.chara-card__visual img { width: 78%; display: block; }
.chara-card__body { padding: 22px 24px 28px; border-top: 3px solid var(--sj-ink); }
.chara-card__name { display: flex; align-items: baseline; gap: 10px; }
.chara-card__name h3 { font-size: 27px; }
.chara-card__race { font-size: 12px; font-weight: 900; }
.chara-card__text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.85;
  margin: 12px 0 18px;
  text-wrap: pretty;
}
.chara-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- 4. 声量メーター ------------------------------------------------------ */
.koe-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.koe-stage {
  position: relative;
  flex: 2 1 440px;
  min-height: 460px;
  border-radius: 30px;
  border: 3px solid var(--sj-ink);
  box-shadow: 10px 10px 0 var(--sj-purple);
  background:
    radial-gradient(circle at 50% 118%, rgba(248, 198, 60, .4), transparent 58%),
    linear-gradient(#2C2050, #17122B);
  overflow: hidden;
  cursor: crosshair;
}
.koe-stage__light {
  position: absolute;
  left: 50%;
  top: -30px;
  width: 66%;
  height: 100%;
  margin-left: -33%;
  pointer-events: none;
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255, 247, 232, .2), rgba(255, 247, 232, 0) 78%);
}
.koe-stage__top { position: relative; padding: 26px 24px 0; text-align: center; }
.koe-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 247, 232, .12);
  border: 2px solid rgba(255, 247, 232, .24);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  color: var(--sj-cream);
}
.koe-line {
  margin: 16px auto 0;
  max-width: 440px;
  padding: 15px 20px;
  border-radius: 18px;
  background: var(--sj-cream);
  color: var(--sj-ink);
  font-weight: 900;
  font-size: clamp(15px, 2.1vw, 19px);
  line-height: 1.6;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  transition: filter .14s linear, opacity .14s linear;
  filter: blur(7px);
  opacity: .18;
}
.koe-heard {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  animation: bubbleUp .4s cubic-bezier(.2, .9, .3, 1) both;
}
.koe-heard__chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--sj-green);
  color: var(--sj-dark);
  font-size: 13px;
  font-weight: 900;
}
.koe-img {
  position: absolute;
  left: 50%;
  bottom: 58px;
  width: 210px;
  margin-left: -105px;
  display: block;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5));
}
.koe-meter { position: absolute; left: 26px; right: 26px; bottom: 20px; }
.koe-meter__head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 900;
  color: rgba(255, 247, 232, .65);
  margin-bottom: 7px;
}
.koe-bar { position: relative; height: 13px; border-radius: 99px; background: rgba(255, 247, 232, .14); overflow: hidden; }
.koe-bar__fill { height: 100%; width: 0; background: linear-gradient(90deg, #6FD3AE, #F8C63C); transition: width .12s linear; }
.koe-bar__mark { position: absolute; top: 0; left: 92%; width: 3px; height: 100%; background: rgba(255, 247, 232, .6); }

.talk-panel {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  border-radius: 30px;
  border: 3px solid var(--sj-ink);
  background: var(--sj-white);
  color: var(--sj-ink);
  box-shadow: 10px 10px 0 var(--sj-green);
}
.talk-stage {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(#D6F3E7, #EEFBF5);
  border: 2px solid var(--sj-ink);
  height: 190px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.talk-stage img { height: 96%; display: block; }
.talk-reply {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--sj-cream);
  border: 2px solid var(--sj-ink);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  animation: bubbleUp .35s cubic-bezier(.2, .9, .3, 1) both;
}
.talk-btn {
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
  font-size: 14px;
  padding: 15px 20px;
  border-radius: 999px;
  border: 0;
  background: var(--sj-ink);
  color: var(--sj-cream);
}
.talk-btn:hover { background: var(--sj-purple); }
.talk-count { font-size: 12px; font-weight: 700; color: rgba(36, 27, 62, .55); text-align: center; }

/* --- 5. ステータスカード（TCG風・クリックで裏返る） ------------------------ */
.cards-section {
  background:
    radial-gradient(circle at 18% 8%, rgba(129, 88, 216, .5), transparent 52%),
    radial-gradient(circle at 86% 92%, rgba(244, 121, 111, .28), transparent 48%),
    #1B1436;
}
.tcg { cursor: pointer; perspective: 1400px; height: 540px; }
.tcg__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .75s cubic-bezier(.4, .9, .3, 1);
  transform: rotateY(0deg);
}
.tcg.is-flipped .tcg__inner { transform: rotateY(180deg); }
.tcg__face, .tcg__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 26px;
  border: 3px solid var(--c);
  overflow: hidden;
  color: var(--sj-ink);
}
.tcg__face { display: flex; flex-direction: column; }
.tcg__back {
  transform: rotateY(180deg);
  background: var(--sj-cream);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tcg__head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; }
.tcg__stars { margin-left: auto; font-size: 13px; letter-spacing: .1em; }
.tcg__art { flex: 1; display: flex; align-items: flex-end; justify-content: center; padding: 0 14px; }
.tcg__art img { max-height: 300px; max-width: 100%; display: block; filter: drop-shadow(0 14px 16px rgba(36, 27, 62, .25)); }
.tcg__foot { padding: 18px; border-top: 3px solid var(--sj-ink); background: var(--sj-white); }
.tcg__foot h3 { font-size: 26px; }
.tcg__role { font-size: 12px; font-weight: 900; margin-top: 4px; }
.tcg__hint { font-size: 11px; font-weight: 700; color: rgba(36, 27, 62, .5); margin-top: 10px; }
.tcg__back h3 { font-size: 21px; }
.tcg__stats { display: flex; flex-direction: column; gap: 9px; margin-top: 2px; }
.tcg__skill { margin-top: 4px; padding: 13px 15px; border-radius: 16px; }
.tcg__skill-label { font-size: 11px; font-weight: 900; }
.tcg__skill-name { font-family: var(--sj-font-title); font-size: 17px; margin-top: 3px; }
.tcg__skill-text { font-size: 12px; font-weight: 500; line-height: 1.7; margin-top: 6px; }
.tcg__weak { font-size: 12px; font-weight: 900; color: var(--sj-ink); }
.tcg__quote {
  margin-top: auto;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.7;
  color: rgba(36, 27, 62, .6);
  text-wrap: pretty;
}
.stat-row { display: flex; align-items: center; gap: 9px; }
.stat-row__label { width: 74px; font-size: 12px; font-weight: 900; }
.stat-row__bar { flex: 1; height: 10px; border-radius: 99px; background: rgba(36, 27, 62, .12); overflow: hidden; }
.stat-row__fill { height: 100%; background: var(--c); }
.stat-row__val { width: 26px; text-align: right; font-size: 12px; font-weight: 900; }

/* --- 7. 4コマギャラリー ---------------------------------------------------- */
.gallery-section { background: radial-gradient(circle at 80% 8%, rgba(129, 88, 216, .4), transparent 45%), #17122B; }
.gallery-head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 44px; }
.gallery-head p { margin: 0 0 6px auto; font-size: 14px; font-weight: 700; color: rgba(255, 247, 232, .6); }
.gal-card {
  cursor: pointer;
  border: 3px solid var(--c);
  border-radius: 20px;
  overflow: hidden;
  background: var(--sj-white);
}
.gal-card:hover { transform: translateY(-6px); }
.gal-card__thumb { height: 260px; overflow: hidden; border-bottom: 3px solid var(--c); }
.gal-card__thumb img { width: 100%; display: block; }
.gal-card__cap { padding: 14px 16px; background: var(--sj-dark); display: flex; align-items: center; gap: 10px; }
.gal-card__no { font-family: var(--sj-font-title); font-size: 13px; color: var(--c2, var(--c)); }
.gal-card__title { font-weight: 900; font-size: 15px; color: var(--sj-cream); }

/* ライトボックス */
.lightbox__no { font-family: var(--sj-font-title); font-size: 14px; color: var(--sj-yellow); }
.lightbox__title { font-weight: 900; font-size: 15px; }
.lightbox__nav { display: flex; gap: 8px; margin-left: auto; }
.lightbox__img {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-radius: 14px;
  background: var(--sj-white);
}

/* --- 8. 魔界診断 ---------------------------------------------------------- */
.quiz-lead {
  font-size: 15px;
  font-weight: 700;
  color: rgba(36, 27, 62, .65);
  margin: 0 0 36px;
}
.quiz-card {
  border: 3px solid var(--sj-ink);
  border-radius: 26px;
  background: var(--sj-white);
  padding: 34px 26px 30px;
  box-shadow: 10px 10px 0 var(--sj-purple);
}
.quiz-dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
.quiz-dot { width: 34px; height: 8px; border-radius: 99px; background: #E3DBEF; }
.quiz-dot.is-on { background: var(--sj-purple); }
.quiz-no { font-size: 13px; font-weight: 900; color: var(--sj-purple); margin-bottom: 8px; }
.quiz-q {
  font-family: var(--sj-font-title);
  font-size: clamp(20px, 3.4vw, 28px);
  margin: 0 0 24px;
  line-height: 1.5;
}
.quiz-opts { display: grid; gap: 12px; }
.quiz-opt {
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
  text-align: left;
  padding: 17px 22px;
  border-radius: 999px;
  border: 3px solid var(--sj-ink);
  background: var(--sj-cream);
  color: var(--sj-ink);
}
.quiz-opt:hover { background: var(--sj-yellow); transform: translateX(4px); }
.quiz-result {
  border: 3px solid var(--sj-ink);
  border-radius: 26px;
  background: var(--sj-white);
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--sj-red);
  animation: pop .3s ease-out;
}
.quiz-result__visual { padding: 26px 20px 0; display: flex; justify-content: center; }
.quiz-result__visual img { width: 220px; max-width: 60%; display: block; animation: floaty 4.4s ease-in-out infinite; }
.quiz-result__body { padding: 26px 26px 32px; border-top: 3px solid var(--sj-ink); }
.quiz-result__lead { font-size: 13px; font-weight: 900; letter-spacing: .2em; color: var(--sj-purple); }
.quiz-result__name { font-family: var(--sj-font-title); font-size: clamp(28px, 5vw, 40px); margin: 8px 0 4px; }
.quiz-result__role { font-size: 13px; font-weight: 900; color: var(--sj-red); }
.quiz-result__text {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
  margin: 16px auto 24px;
  max-width: 500px;
  text-wrap: pretty;
}

/* --- 9. アクマグラム ------------------------------------------------------ */
.akuma-section { background: linear-gradient(#17122B, #241B45); }
.ak-card { border-radius: 22px; background: var(--sj-cream); color: var(--sj-ink); overflow: hidden; border: 3px solid var(--c); }
.ak-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; }
.ak-av { position: relative; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; }
.ak-av img { width: 150%; margin: -5px 0 0 -18%; }
.ak-av span {
  display: block;
  text-align: center;
  line-height: 34px;
  font-family: var(--sj-font-title);
  font-size: 15px;
  color: var(--sj-cream);
}
.ak-user { min-width: 0; }
.ak-handle { font-weight: 900; font-size: 14px; }
.ak-meta { font-size: 11px; font-weight: 700; color: rgba(36, 27, 62, .55); }
.ak-media {
  position: relative;
  height: 220px;
  border-top: 2px solid var(--sj-ink);
  border-bottom: 2px solid var(--sj-ink);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ak-art { position: relative; height: 96%; display: flex; align-items: flex-end; }
.ak-art img { height: 100%; display: block; }
/* かにぱんの投稿は目元にモザイク（顔出しNG申請済み） */
.ak-mask {
  position: absolute;
  top: 43%;
  left: 30%;
  width: 35%;
  height: 16%;
  border-radius: 3px;
  background: repeating-conic-gradient(rgba(36, 27, 62, .9) 0% 25%, rgba(255, 247, 232, .95) 0% 50%) 0 0 / 11px 11px;
}
.ak-ngchip {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--sj-ink);
  color: var(--sj-cream);
  font-size: 10px;
  font-weight: 900;
}
.ak-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: var(--sj-cream);
}
.ak-text__small { font-size: 12px; font-weight: 900; letter-spacing: .18em; color: rgba(255, 247, 232, .7); }
.ak-text__big { font-family: var(--sj-font-title); font-size: 42px; line-height: 1.1; margin-top: 10px; }
.ak-body { padding: 14px 16px 18px; }
.ak-likes { display: flex; align-items: center; gap: 10px; }
.ak-likes__n { font-weight: 900; font-size: 13px; color: var(--c2, var(--c)); }
.ak-likes__t { margin-left: auto; font-size: 11px; font-weight: 700; color: rgba(36, 27, 62, .45); }
.ak-caption { font-size: 13px; font-weight: 500; line-height: 1.75; margin: 8px 0 0; text-wrap: pretty; }
.ak-comments {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--sj-dash-ink);
}
.ak-comment { font-size: 12px; font-weight: 500; line-height: 1.6; }
.ak-comment b { font-weight: 900; }
.ak-actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* --- 10. 用語辞典 --------------------------------------------------------- */
.lore-card {
  cursor: pointer;
  padding: 20px 22px 18px;
  border-radius: 20px;
  border: 3px solid var(--sj-ink);
  background: var(--sj-white);
  color: var(--sj-ink);
}
.lore-card__word { font-family: var(--sj-font-title); font-size: 20px; }
.lore-card__en { font-size: 11px; font-weight: 900; margin-top: 3px; }
.lore-card__text { font-size: 13px; font-weight: 500; line-height: 1.8; margin: 10px 0 12px; text-wrap: pretty; }
.lore-card__src { font-size: 11px; font-weight: 900; color: rgba(36, 27, 62, .45); }

/* --- 11. グッズ ----------------------------------------------------------- */
.goods {
  border: 3px solid var(--sj-ink);
  border-radius: 30px;
  background: var(--sj-white);
  overflow: hidden;
  box-shadow: 12px 12px 0 var(--sj-yellow);
}
.goods__visual { padding: 34px 30px; }
.goods__visual img { display: block; width: 100%; max-width: 860px; margin: 0 auto; }
.goods__body {
  padding: 26px 30px 32px;
  border-top: 3px solid var(--sj-ink);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: var(--sj-ink);
}
.goods__lead { flex: 1 1 300px; }
.goods__body h3 { font-family: var(--sj-font-title); font-size: 24px; margin: 0 0 8px; }
.goods__body p { font-size: 14px; font-weight: 500; line-height: 1.8; margin: 0; text-wrap: pretty; }
.goods__soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--sj-ink);
  color: var(--sj-cream);
  font-weight: 900;
  font-size: 14px;
}
