/* ぬくまるちゃん演出（TOPテスト） */
:root {
  --nkm-w: 120px;
  --nkm-bottom: 16px;
  --nkm-navy: #04376F;
  --nkm-line: #3A3F78;
  --nkm-sky: #BFE6EC;
  --nkm-sky-light: #E8F7FA;
  --nkm-teal: #55C1CC;
  --nkm-font: 'Noto Sans JP', sans-serif;
}

@media (max-width: 768px) {
  :root {
    --nkm-w: 84px;
  }
}

/* ---------- キャラクター本体 ---------- */
.nkm {
  bottom: var(--nkm-bottom);
  height: calc(var(--nkm-w) * 1.318);
  left: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.12s ease;
  width: var(--nkm-w);
  will-change: transform;
  z-index: 900;
}

.nkm.is-warp {
  opacity: 0;
}

.nkm.is-booting {
  visibility: hidden;
}

/* ---------- ローディング ---------- */
/* JSが動く前からページを覆う（読み込み途中の崩れを見せない）。JSが止まっても10秒で自動的に外す
   ローディングを出すのは TOP（html.nkm-cover）だけ */
html.nkm-cover:not(.nkm-loaded)::after {
  animation: nkm-cover-out 0s 10s forwards;
  background: linear-gradient(180deg, #f4fbfd, #dff2f7);
  content: '';
  inset: 0;
  position: fixed;
  z-index: 3000;
}

@keyframes nkm-cover-out {
  to { visibility: hidden; }
}

.nkm-loader {
  align-items: center;
  background: linear-gradient(180deg, #f4fbfd, #dff2f7);
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  position: fixed;
  transition: opacity 0.45s ease, visibility 0.45s;
  z-index: 3001;
}

.nkm-loader.is-done {
  opacity: 0;
  visibility: hidden;
}

.nkm-loader__chara {
  position: relative;
  width: 120px;
}

.nkm-loader__chara img {
  display: block;
  height: auto;
  position: relative;
  width: 100%;
  z-index: 1;
}

/* 足もとの影（ふわっと伸び縮み） */
.nkm-loader__chara::after {
  animation: nkm-loader-shadow 1.25s ease-in-out infinite;
  background: radial-gradient(closest-side, rgba(4, 55, 111, 0.22), transparent);
  bottom: -6px;
  content: '';
  height: 16px;
  left: 15%;
  position: absolute;
  width: 70%;
}

.nkm-loader__text {
  color: var(--nkm-teal);
  font: 700 12px/1 var(--nkm-font);
  letter-spacing: 0.3em;
  margin-top: 22px;
}

.nkm-loader__text span {
  animation: nkm-loader-dot 1.2s infinite;
  display: inline-block;
}

.nkm-loader__text span:nth-child(2) { animation-delay: 0.2s; }
.nkm-loader__text span:nth-child(3) { animation-delay: 0.4s; }

@keyframes nkm-loader-shadow {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.8); opacity: 0.7; }
}

@keyframes nkm-loader-dot {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 768px) {
  .nkm-loader__chara {
    width: 96px;
  }
}

/* モーダル表示中：水しぶきとともにパッと消える（モーダル内へ移動したように見せる） */
.nkm.is-away {
  opacity: 0;
  transition: opacity 0.1s ease-in;
}

/* 本体の位置（translate）に影響しないよう、縮小は画像だけにかける */
.nkm.is-away .nkm__body img {
  scale: 0.3;
  transition: scale 0.1s ease-in;
}

/* 水しぶき */
.nkm-splash {
  height: 0;
  pointer-events: none;
  position: fixed;
  width: 0;
  z-index: 2000;
}

.nkm-splash.is-inner {
  left: 50%;
  position: absolute;
  scale: 1.5;
  top: 50%;
  z-index: 2;
}

.nkm-splash b {
  animation: nkm-splash-ring 0.5s ease-out forwards;
  border: 3px solid rgba(85, 193, 204, 0.85);
  border-radius: 50%;
  height: 90px;
  left: -45px;
  position: absolute;
  top: -45px;
  width: 90px;
}

.nkm-splash i {
  animation: nkm-splash-drop 0.55s cubic-bezier(0.2, 0.7, 0.4, 1) forwards;
  background: radial-gradient(circle at 40% 35%, #fff 0 16%, #7fd0e0 42%, #2fa3b8);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  box-shadow: 0 0 0 1px rgba(58, 63, 120, 0.25);
  height: 15px;
  left: -6px;
  position: absolute;
  top: -7px;
  width: 12px;
}

@keyframes nkm-splash-ring {
  0% { opacity: 0.9; transform: scale(0.2); }
  100% { opacity: 0; transform: scale(1.1); }
}

@keyframes nkm-splash-drop {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(-8px) scale(0.5); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--d))) scale(0.35); }
}

/* 下から顔出し：境目より下の体は描かない（SPは固定メニューの後ろから出てくるように見せる） */
.nkm.is-peek-bottom {
  clip-path: inset(-100vh -100vw calc(-1 * var(--nkm-floor, 16px)) -100vw);
}

.nkm.is-off {
  display: none;
}

/* 顔出し用のオフセット（ここだけトランジションさせる） */
.nkm__peek {
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 100%;
}

.nkm__body {
  background: none;
  border: 0;
  cursor: pointer;
  display: block;
  height: 100%;
  padding: 0;
  pointer-events: auto;
  position: relative;
  transform-origin: 50% 100%;
  width: 100%;
}

.nkm__body:focus-visible {
  outline: 3px solid var(--nkm-teal);
  outline-offset: 4px;
  border-radius: 12px;
}

.nkm__body img {
  display: block;
  filter: drop-shadow(0 6px 6px rgba(4, 55, 111, 0.18));
  height: 100%;
  pointer-events: none;
  transform-origin: 50% 70%;
  transition: scale 0.28s cubic-bezier(0.34, 1.8, 0.64, 1);
  user-select: none;
  width: 100%;
  -webkit-user-drag: none;
}

/* 足もとの影 */
.nkm__body::after {
  background: radial-gradient(closest-side, rgba(4, 55, 111, 0.22), transparent);
  bottom: -4px;
  content: '';
  height: 10px;
  left: 22%;
  position: absolute;
  width: 56%;
  z-index: -1;
}

.nkm.is-peek .nkm__body::after {
  display: none;
}

/* 待機中：ふわっと呼吸 */
.nkm.is-idle .nkm__body {
  animation: nkm-breath 2.6s ease-in-out infinite;
}

/* 呼ばれたとき・問いかけ時のジャンプ */
.nkm__body.is-hop {
  animation: nkm-hop 0.5s cubic-bezier(0.3, 1.6, 0.6, 1);
}

.nkm__body:hover img {
  filter: drop-shadow(0 6px 10px rgba(85, 193, 204, 0.55));
}

/* クリックできることを示す小さなバッジ */
.nkm__badge {
  align-items: center;
  background: #fff;
  border: 2px solid var(--nkm-line);
  border-radius: 50%;
  color: var(--nkm-line);
  display: flex;
  font: 700 13px/1 var(--nkm-font);
  height: 24px;
  justify-content: center;
  position: absolute;
  right: 2px;
  top: 6%;
  width: 24px;
  animation: nkm-badge 2.4s ease-in-out infinite;
}

.nkm.is-peek .nkm__badge,
.nkm.is-badge-off .nkm__badge {
  display: none;
}

@keyframes nkm-breath {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.02, 0.975); }
}

@keyframes nkm-hop {
  0% { transform: translateY(0) scale(1, 1); }
  25% { transform: translateY(0) scale(1.08, 0.9); }
  55% { transform: translateY(-22%) scale(0.95, 1.06); }
  100% { transform: translateY(0) scale(1, 1); }
}

@keyframes nkm-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ---------- 吹き出し ---------- */
.nkm-bubble {
  background: #fff;
  border: 2px solid var(--nkm-line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(4, 55, 111, 0.16);
  color: var(--nkm-navy);
  font: 500 14px/1.7 var(--nkm-font);
  left: 0;
  letter-spacing: 0.03em;
  max-width: min(300px, calc(100vw - 24px));
  opacity: 0;
  padding: 12px 34px 12px 16px;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: var(--nkm-tail-x, 50%) 100%;
  transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: max-content;
  z-index: 901;
}

.nkm-bubble.is-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.nkm-bubble::after {
  background: #fff;
  border-bottom: 2px solid var(--nkm-line);
  border-right: 2px solid var(--nkm-line);
  bottom: -8px;
  content: '';
  height: 14px;
  left: var(--nkm-tail-x, 50%);
  position: absolute;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
}

/* 改行は JS が入れた <wbr>（文節の切れ目）だけで行う。収まらない場合のみ任意位置で折り返す */
.nkm-bubble__text,
.nkm-chip,
.nkm-msg__text,
.nkm-stage__say,
.nkm-profile__catch,
.nkm-profile__items p,
.nkm-profile__items li {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

/* タイプ中の未表示部分（場所だけ確保して改行位置を最終形と同じにする） */
.nkm-rest {
  visibility: hidden;
}

/* キャラの横に出すとき：しっぽを横向きに */
.nkm-bubble.is-side-right,
.nkm-bubble.is-side-left {
  transform-origin: 0 var(--nkm-tail-y, 50%);
}

.nkm-bubble.is-side-left {
  transform-origin: 100% var(--nkm-tail-y, 50%);
}

.nkm-bubble.is-side-right::after,
.nkm-bubble.is-side-left::after {
  bottom: auto;
  top: var(--nkm-tail-y, 50%);
}

.nkm-bubble.is-side-right::after {
  left: -1px;
  transform: translate(-50%, -50%) rotate(135deg);
}

.nkm-bubble.is-side-left::after {
  left: auto;
  right: -8px;
  transform: translate(0, -50%) rotate(-45deg);
}

.nkm-bubble__close {
  background: none;
  border: 0;
  color: var(--nkm-line);
  cursor: pointer;
  font-size: 16px;
  height: 28px;
  line-height: 1;
  opacity: 0.5;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 28px;
}

.nkm-bubble__close:hover {
  opacity: 1;
}

.nkm-bubble__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.nkm-bubble__chips:empty {
  display: none;
}

.nkm-chip {
  background: var(--nkm-sky-light);
  border: 1.5px solid var(--nkm-teal);
  border-radius: 999px;
  color: var(--nkm-navy);
  cursor: pointer;
  font: 700 13px/1 var(--nkm-font);
  padding: 8px 14px;
  transition: background 0.2s, color 0.2s;
}

.nkm-chip:hover,
.nkm-chip:focus-visible {
  background: var(--nkm-teal);
  color: #fff;
}

.nkm-chip.is-sub {
  background: #fff;
  border-color: #c9d3de;
  color: #6b7a8c;
}

/* ---------- 休ませた後の呼び出しボタン ---------- */
.nkm-call {
  align-items: center;
  background: #fff;
  border: 2px solid var(--nkm-line);
  border-radius: 999px;
  bottom: var(--nkm-bottom);
  box-shadow: 0 4px 12px rgba(4, 55, 111, 0.18);
  color: var(--nkm-navy);
  cursor: pointer;
  display: none;
  font: 700 12px/1 var(--nkm-font);
  gap: 6px;
  left: 12px;
  padding: 4px 12px 4px 4px;
  position: fixed;
  z-index: 900;
}

.nkm-call img {
  height: 36px;
  object-fit: cover;
  object-position: 50% 8%;
  width: 36px;
  border-radius: 50%;
  background: var(--nkm-sky-light);
}

.nkm-call.is-show {
  display: flex;
}

/* ---------- モーダル ---------- */
.nkm-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 24px;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.3s ease;
  z-index: 10001;
}

.nkm-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nkm-modal__backdrop {
  background: rgba(4, 55, 111, 0.45);
  backdrop-filter: blur(3px);
  inset: 0;
  position: absolute;
}

.nkm-modal__panel {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(4, 55, 111, 0.3);
  display: grid;
  grid-template-columns: 340px 1fr;
  height: min(640px, calc(100vh - 48px));
  max-width: 920px;
  overflow: hidden;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
  width: 100%;
}

.nkm-modal.is-open .nkm-modal__panel {
  transform: translateY(0) scale(1);
}

.nkm-modal__close {
  background: #fff;
  border: 2px solid var(--nkm-line);
  border-radius: 50%;
  color: transparent;
  cursor: pointer;
  font-size: 0;
  height: 40px;
  padding: 0;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
  z-index: 3;
}

/* × は文字だとフォントによって中心がずれるため線で描く */
.nkm-modal__close::before,
.nkm-modal__close::after {
  background: var(--nkm-line);
  border-radius: 2px;
  content: '';
  height: 2px;
  left: 50%;
  position: absolute;
  top: 50%;
  width: 16px;
}

.nkm-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nkm-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nkm-modal__close:hover {
  background: var(--nkm-sky-light);
}

/* 左：プロフィール */
.nkm-profile {
  background: linear-gradient(180deg, var(--nkm-sky-light) 0%, #fff 70%);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 24px 24px 20px;
}

.nkm-stage {
  cursor: grab;
  height: 230px;
  margin: 0 auto;
  position: relative;
  touch-action: pan-y;
  user-select: none;
  width: 175px;
}

.nkm-stage:active {
  cursor: grabbing;
}

.nkm-stage img {
  display: block;
  height: 100%;
  pointer-events: none;
  width: 100%;
  -webkit-user-drag: none;
}

.nkm-stage.is-hop img {
  animation: nkm-hop 0.5s cubic-bezier(0.3, 1.6, 0.6, 1);
}

/* モーダルを開いたとき：水しぶきとともにパッと現れる */
.nkm-stage.is-arrive img {
  animation: nkm-arrive 0.3s 0.17s cubic-bezier(0.34, 1.8, 0.64, 1) both;
}

@keyframes nkm-arrive {
  0% { opacity: 0; transform: scale(0.3); }
  30% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}

.nkm-stage::after {
  background: radial-gradient(closest-side, rgba(4, 55, 111, 0.2), transparent);
  bottom: -2px;
  content: '';
  height: 14px;
  left: 20%;
  position: absolute;
  width: 60%;
}

.nkm-stage__hint {
  color: #7b8da1;
  font: 500 11px/1 var(--nkm-font);
  margin-top: 8px;
  text-align: center;
}

.nkm-stage__say {
  background: #fff;
  border: 2px solid var(--nkm-line);
  border-radius: 14px;
  color: var(--nkm-navy);
  font: 500 12px/1.5 var(--nkm-font);
  left: 50%;
  opacity: 0;
  padding: 6px 10px;
  position: absolute;
  top: -6px;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s, transform 0.3s;
  white-space: nowrap;
  z-index: 2;
}

.nkm-stage__say.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.nkm-profile__name {
  color: var(--nkm-navy);
  font: 900 26px/1.2 var(--nkm-font);
  letter-spacing: 0.06em;
  margin-top: 14px;
  text-align: center;
}

.nkm-profile__name small {
  color: var(--nkm-teal);
  display: block;
  font: 700 12px/1 'Figtree', sans-serif;
  letter-spacing: 0.2em;
  margin-bottom: 6px;
}

.nkm-profile__catch {
  color: var(--nkm-navy);
  font: 500 13px/1.8 var(--nkm-font);
  margin-top: 10px;
}

.nkm-profile__items {
  border-top: 1px dashed #c4dde4;
  margin-top: 14px;
}

.nkm-profile__items details {
  border-bottom: 1px dashed #c4dde4;
}

.nkm-profile__items summary {
  color: var(--nkm-navy);
  cursor: pointer;
  font: 700 13px/1 var(--nkm-font);
  list-style: none;
  padding: 12px 22px 12px 0;
  position: relative;
}

.nkm-profile__items summary::-webkit-details-marker {
  display: none;
}

.nkm-profile__items summary::after {
  color: var(--nkm-teal);
  content: '+';
  font-size: 18px;
  position: absolute;
  right: 2px;
  top: 7px;
}

.nkm-profile__items details[open] summary::after {
  content: '−';
}

.nkm-profile__items p,
.nkm-profile__items ul {
  color: #3d4d63;
  font: 400 12.5px/1.8 var(--nkm-font);
  padding: 0 0 12px;
}

.nkm-profile__items li::before {
  color: var(--nkm-teal);
  content: '● ';
  font-size: 9px;
}

/* 右：チャット */
.nkm-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.nkm-chat__head {
  align-items: center;
  border-bottom: 1px solid #e3eef3;
  color: var(--nkm-navy);
  display: flex;
  font: 700 15px/1 var(--nkm-font);
  gap: 10px;
  /* 閉じるボタン（top:14px / 高さ40px）が縦中央に収まる高さにする */
  min-height: 68px;
  padding: 0 70px 0 24px;
}

.nkm-chat__head span {
  color: var(--nkm-teal);
  font: 700 11px/1 'Figtree', sans-serif;
  letter-spacing: 0.18em;
}

.nkm-chat__log {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 20px 24px;
  scroll-behavior: smooth;
}

.nkm-msg {
  align-items: flex-end;
  animation: nkm-msg-in 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  display: flex;
  gap: 8px;
  max-width: 88%;
}

.nkm-msg__icon {
  background: var(--nkm-sky-light);
  border-radius: 50%;
  flex-shrink: 0;
  height: 34px;
  overflow: hidden;
  width: 34px;
}

.nkm-msg__icon img {
  height: auto;
  margin: -24% 0 0 -25%;
  max-width: none;
  width: 150%;
}

.nkm-msg__icon.is-blank {
  visibility: hidden;
}

.nkm-msg__text {
  background: var(--nkm-sky-light);
  border-radius: 16px 16px 16px 4px;
  color: var(--nkm-navy);
  font: 500 14px/1.75 var(--nkm-font);
  padding: 10px 14px;
}

.nkm-msg.is-user {
  align-self: flex-end;
}

.nkm-msg.is-user .nkm-msg__text {
  background: var(--nkm-navy);
  border-radius: 16px 16px 4px 16px;
  color: #fff;
}

.nkm-typing {
  display: inline-flex;
  gap: 4px;
  padding: 4px 2px;
}

.nkm-typing i {
  animation: nkm-typing 1s infinite ease-in-out;
  background: var(--nkm-teal);
  border-radius: 50%;
  display: block;
  height: 7px;
  width: 7px;
}

.nkm-typing i:nth-child(2) { animation-delay: 0.15s; }
.nkm-typing i:nth-child(3) { animation-delay: 0.3s; }

.nkm-chat__choices {
  border-top: 1px solid #e3eef3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 42%;
  overflow-y: auto;
  padding: 14px 24px 20px;
}

.nkm-chat__choices:empty {
  display: none;
}

.nkm-chat__choices .nkm-chip {
  font-size: 13.5px;
  padding: 11px 16px;
}

.nkm-chip.is-link {
  background: var(--nkm-navy);
  border-color: var(--nkm-navy);
  color: #fff;
}

.nkm-chip.is-link::after {
  content: ' →';
}

.nkm-chip.is-link:hover {
  background: var(--nkm-teal);
  border-color: var(--nkm-teal);
}

.nkm-chat__foot {
  display: flex;
  justify-content: flex-end;
  padding: 0 24px 14px;
}

.nkm-chat__rest {
  background: none;
  border: 0;
  color: #8a99aa;
  cursor: pointer;
  font: 500 11px/1 var(--nkm-font);
  text-decoration: underline;
}

@keyframes nkm-msg-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes nkm-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* ページ内スクロール先のハイライト */
.nkm-target-flash {
  animation: nkm-flash 1.6s ease;
}

@keyframes nkm-flash {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(85, 193, 204, 0); }
  30% { box-shadow: inset 0 0 0 6px rgba(85, 193, 204, 0.7); }
}

@media (max-width: 768px) {
  .nkm-bubble {
    font-size: 13px;
    padding: 10px 30px 10px 13px;
  }

  .nkm-modal {
    align-items: flex-end;
    padding: 0;
  }

  .nkm-modal__panel {
    border-radius: 24px 24px 0 0;
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 40px);
    max-width: none;
  }

  .nkm-profile {
    flex-shrink: 0;
    max-height: 40%;
    padding: 16px 18px 6px;
  }

  .nkm-profile__top {
    align-items: center;
    display: flex;
    gap: 14px;
  }

  .nkm-stage {
    flex-shrink: 0;
    height: 118px;
    margin: 0;
    width: 90px;
  }

  .nkm-stage__hint {
    display: none;
  }

  .nkm-stage__say {
    font-size: 11px;
    left: 100%;
    top: 4px;
    transform: translate(0, 6px);
  }

  .nkm-stage__say.is-show {
    transform: translate(0, 0);
  }

  .nkm-profile__name {
    font-size: 21px;
    margin-top: 0;
    text-align: left;
  }

  .nkm-profile__catch {
    font-size: 12px;
    margin-top: 4px;
  }

  .nkm-chat {
    flex: 1;
    min-height: 0;
  }

  .nkm-chat__head {
    min-height: 0;
    padding: 12px 18px;
  }

  .nkm-chat__log {
    padding: 14px 16px;
  }

  .nkm-chat__choices {
    padding: 10px 16px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nkm *,
  .nkm-bubble,
  .nkm-modal,
  .nkm-modal * {
    animation: none !important;
    transition: none !important;
  }

  .nkm.is-away .nkm__body img {
    scale: 1;
  }

  .top-chara__chara,
  .top-chara__goods i {
    animation: none !important;
  }
}

/* ---------- TOP：ぬくまるちゃんページへの動線（CTAの上） ---------- */
.top-chara {
  padding: 2rem 0 12rem;
  position: relative;
  z-index: 2;
}

.top-chara__card {
  align-items: center;
  background: #fff;
  border-radius: 3.2rem;
  box-shadow: 0 1rem 3rem rgba(4, 55, 111, 0.08);
  display: grid;
  gap: 4rem;
  grid-template-columns: 1fr 40rem;
  overflow: hidden;
  padding: 5.6rem 6.4rem;
  position: relative;
}

.top-chara__card::before {
  background: linear-gradient(180deg, rgba(232, 247, 250, 0) 0%, var(--nkm-sky-light) 100%);
  bottom: 0;
  content: '';
  height: 40%;
  left: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
}

.top-chara__text {
  position: relative;
}

.top-chara__eng {
  color: #1A73F0;
  display: block;
  font-family: Teko, sans-serif;
  font-size: 6.7rem;
  font-weight: 400;
  line-height: 1;
}

.top-chara__ttl {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 1.2rem;
}

.top-chara__ttl strong {
  color: var(--nkm-navy);
  display: block;
  font-size: 4.4rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-top: 0.4rem;
}

.top-chara__desc {
  font-size: 1.6rem;
  line-height: 2;
  margin: 2.4rem 0 3.2rem;
}

.top-chara__visual {
  display: block;
  height: 36rem;
  position: relative;
}

.top-chara__circle {
  background: radial-gradient(circle at 50% 38%, #fff 0%, var(--nkm-sky-light) 45%, var(--nkm-sky) 100%);
  border-radius: 50%;
  height: 30rem;
  left: 50%;
  position: absolute;
  top: 2rem;
  transform: translateX(-50%);
  width: 30rem;
}

.top-chara .top-chara__chara {
  animation: top-chara-float 3.2s ease-in-out infinite;
  bottom: 1.6rem;
  filter: drop-shadow(0 1.2rem 1.2rem rgba(4, 55, 111, 0.15));
  left: 50%;
  margin-left: -10rem;
  position: absolute;
  width: 20rem;
}

.top-chara__visual:hover .top-chara__chara {
  animation: top-chara-hop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.top-chara__goods i {
  animation: top-chara-float 3.6s ease-in-out infinite;
  background: #E8E8E8;
  border: 0.3rem solid #fff;
  border-radius: 50%;
  box-shadow: 0 0.6rem 1.6rem rgba(4, 55, 111, 0.14);
  height: 9rem;
  overflow: hidden;
  position: absolute;
  width: 9rem;
}

/* グッズ画像は縦長なので、切らずに丸の中へ収める（背景は画像と同じグレー） */
.top-chara__goods i img.cover {
  object-fit: contain;
  padding: 0.8rem;
}

.top-chara__goods i:nth-child(1) {
  left: 0;
  top: 4rem;
}

.top-chara__goods i:nth-child(2) {
  animation-delay: -1.2s;
  right: 0;
  top: 1rem;
}

.top-chara__goods i:nth-child(3) {
  animation-delay: -2.4s;
  bottom: 3rem;
  right: 1.6rem;
}

@keyframes top-chara-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -0.8rem; }
}

@keyframes top-chara-hop {
  0%, 100% { translate: 0 0; }
  40% { translate: 0 -2.4rem; }
}

@media screen and (max-width: 768px) {
  .top-chara {
    padding: 0 0 8rem;
  }

  /* SP はタイトル → 説明 → キャラクター → ボタンの順に並べる */
  .top-chara__card {
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 2rem;
    padding: 4rem 2.4rem 3.2rem;
  }

  .top-chara__text {
    display: contents;
  }

  .top-chara__eng,
  .top-chara__ttl,
  .top-chara__desc {
    position: relative;
    text-align: center;
  }

  .top-chara__eng {
    font-size: 4.8rem;
  }

  .top-chara__ttl {
    font-size: 1.5rem;
  }

  .top-chara__ttl strong {
    font-size: 3rem;
  }

  .top-chara__desc {
    font-size: 1.4rem;
    margin: 1.6rem 0 0;
  }

  .top-chara__visual {
    height: 24rem;
    margin-top: 1.6rem;
    order: 4;
    width: 100%;
  }

  .top-chara__circle {
    height: 20rem;
    top: 1.6rem;
    width: 20rem;
  }

  .top-chara .top-chara__chara {
    bottom: 0.8rem;
    margin-left: -7rem;
    width: 14rem;
  }

  .top-chara__goods i {
    height: 6.4rem;
    width: 6.4rem;
  }

  .top-chara__goods i:nth-child(1) {
    left: 1rem;
  }

  .top-chara__goods i:nth-child(3) {
    bottom: 2rem;
    right: 1rem;
  }

  .top-chara__card .btnA {
    justify-content: center;
    margin-top: 1.6rem;
    order: 5;
    position: relative;
  }
}
