body{
  margin: 0;
  padding: 0;
}

/* mv.html 単体ページ用 */
body.mv-standalone {
  background: #fff;
}

/* デザインカンプ（MVの直下に配置） */
.top-page-comp {
  width: 100%;
  line-height: 0;
  background-color: #f5f8fa;
}

.top-page-comp img {
  display: block;
  width: 100%;
  height: auto;
}

.mv {
  position: relative;
  width: 100%;
  overflow: visible;
  --mv-height: clamp(220px, 38vw, 500px);
  --mv-woman-overhang: calc(var(--mv-height) * 0.14);
  --mv-bg-duration: 150s;
  --mv-shoes-duration: 40s;
  padding-bottom: var(--mv-woman-overhang);
}

.mv--index {
  --mv-height: clamp(280px, 42vw, 560px);
  z-index: 1;
}

/* 背景：右→左にループ */
.mv-bg {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.mv-bg-track {
  display: flex;
  width: max-content;
  animation: mv-scroll var(--mv-bg-duration) linear infinite;
  will-change: transform;
}

.mv-bg-track img {
  display: block;
  height: var(--mv-height);
  width: auto;
  flex-shrink: 0;
}

@keyframes mv-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* 靴画像：角丸長方形・右→左ループ */
.mv-shoes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--mv-height) * 0.72);
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.mv-shoes-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: mv-shoes-scroll var(--mv-shoes-duration) linear infinite;
  will-change: transform;
}

.mv-shoes-set {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.25rem, 3.5vw, 3rem);
  flex-shrink: 0;
  height: 100%;
  padding-top: calc(var(--mv-height) * 0.04);
  padding-right: clamp(1.25rem, 3.5vw, 3rem);
}

.mv-shoe {
  --shoe-w: clamp(68px, 8.5vw, 120px);
  --shoe-h: calc(var(--shoe-w) * 1.5);
  display: block;
  flex-shrink: 0;
  width: var(--shoe-w);
  height: var(--shoe-h);
  border-radius: clamp(10px, 5vw, 100px);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
}

.mv-shoe--flip {
  perspective: 900px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.mv-shoe-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  border-radius: inherit;
}

.mv-shoe--flip:hover .mv-shoe-inner,
.mv-shoe--flip:focus-visible .mv-shoe-inner {
  transform: rotateY(180deg);
}

.mv-shoe:focus-visible {
  outline: 2px solid #c5a059;
  outline-offset: 3px;
}

.mv-shoe-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: inherit;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.mv-shoe-face--back {
  transform: rotateY(180deg);
}

.mv-shoe--s {
  --shoe-w: clamp(52px, 6.5vw, 92px);
}

.mv-shoe--m {
  --shoe-w: clamp(68px, 8.5vw, 120px);
}

.mv-shoe--l {
  --shoe-w: clamp(84px, 10.5vw, 148px);
}

.mv-shoe--xl {
  --shoe-w: clamp(96px, 12vw, 168px);
}

.mv-shoe img,
.mv-shoe-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mv-shoes-set .mv-shoe:nth-child(1) { margin-top: calc(var(--mv-height) * 0.1); }
.mv-shoes-set .mv-shoe:nth-child(2) { margin-top: calc(var(--mv-height) * 0.02); }
.mv-shoes-set .mv-shoe:nth-child(3) { margin-top: calc(var(--mv-height) * 0.14); }
.mv-shoes-set .mv-shoe:nth-child(4) { margin-top: calc(var(--mv-height) * 0.05); }
.mv-shoes-set .mv-shoe:nth-child(5) { margin-top: calc(var(--mv-height) * 0.12); }
.mv-shoes-set .mv-shoe:nth-child(6) { margin-top: 0; }
.mv-shoes-set .mv-shoe:nth-child(7) { margin-top: calc(var(--mv-height) * 0.08); }

@keyframes mv-shoes-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% / 3));
  }
}

/* 女性：左下固定・背景下端からはみ出し */
.mv-woman {
  position: absolute;
  left: 26%;
  bottom: calc(var(--mv-woman-overhang) * 0);
  transform: translateX(-42%);
  z-index: 2;
  pointer-events: none;
  line-height: 0;
}

.mv-woman video {
  display: block;
  height: calc(var(--mv-height) * 0.45);
  width: auto;
}

/* キャッチコピー：中央・明朝体 */
.mv-copy {
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translate(-50%, -50%);
  z-index: 3;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 640px) {
  .mv-copy {
    top: 58%;
    font-size: clamp(0.875rem, 4vw, 1.125rem);
    letter-spacing: 0.06em;
    white-space: normal;
    width: 90%;
  }
}

/* テスト用：昼夜切り替え */
.mv-theme-test {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 10;
  display: flex;
  gap: 0.35rem;
  pointer-events: auto;
}

.mv-theme-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.7rem;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  cursor: pointer;
}

.mv-theme-btn:hover {
  background: #fff;
}

.mv-theme-btn.is-active {
  background: #1a2a40;
  border-color: #1a2a40;
  color: #fff;
}

.mv--night .mv-theme-btn {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}

.mv--night .mv-theme-btn.is-active {
  background: #c5a059;
  border-color: #c5a059;
  color: #fff;
}

.mv--night .mv-copy {
  color: #fff;
}

.chatbot-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  border: 1px solid #1a2a40;
  background: #1a2a40;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.chatbot {
  position: fixed;
  right: 20px;
  bottom: 72px;
  z-index: 101;
  width: min(360px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid #d7dde3;
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #e7ebef;
  background: #f6f8fb;
}

.chatbot-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1a2a40;
}

.chatbot-close {
  border: 0;
  background: transparent;
  color: #1a2a40;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.chatbot-body {
  padding: 12px;
}

.chatbot-log {
  min-height: 88px;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chatbot-message {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 10px;
  border-radius: 10px;
  max-width: 92%;
}

.chatbot-message--bot {
  background: #f0f3f6;
  color: #1f2a37;
  align-self: flex-start;
}

.chatbot-message--user {
  background: #1a2a40;
  color: #fff;
  align-self: flex-end;
}

.chatbot-options {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chatbot-option {
  border: 1px solid #c3ccd6;
  background: #fff;
  color: #1f2a37;
  font-size: 12px;
  line-height: 1.4;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.chatbot-option:hover {
  border-color: #1a2a40;
}
