/* ========= Base ========= */
body {
  margin: 0;
  font-family: sans-serif;
  background: #000;
}

/* ========= Layout ========= */
.container {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 12vh 16px 96px;
  text-align: center;
  color: white;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

/* ========= Background ========= */
.container::before {
  content: "";
  position: absolute;
  inset: -3%;
  background: url("../images/sample005.png") center / cover no-repeat;
  filter: blur(8px) brightness(1.02) saturate(1.05);
  transform: scale(1.06);
  z-index: 0;
  animation: bgFloat 20s ease-in-out infinite alternate;
}

.container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.16),
    rgba(0, 0, 0, 0.24)
  );
  z-index: 0;
}

/* ========= Typography ========= */
h1 {
  position: relative;
  z-index: 1;
  margin: 6px 0 14px;
  font-size: clamp(42px, 8vw, 96px);
  font-family: "Bebas Neue", "Oswald", "Noto Sans JP", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  /* ★白ベースに変更 */
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f8fbff 50%,
    #dfe9ff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* ★輪郭ちょい強め */
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.4);

  /* ★白発光＋ほんのり青 */
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.9),
    0 0 14px rgba(255, 255, 255, 0.7),
    0 0 22px rgba(180, 210, 255, 0.35),
    0 10px 24px rgba(0, 0, 0, 0.35);

  animation: fadeUp 1s ease 0.15s both;
}

h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: clamp(16px, 3vw, 22px);
  font-family: "Oswald", "Noto Sans JP", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #dce7ff;
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.18);
  text-shadow:
    0 0 4px rgba(140, 180, 255, 0.24),
    0 4px 12px rgba(0, 0, 0, 0.2);
  animation: fadeUp 1s ease 0.35s both;
}

/* ========= Footer Credit ========= */
h3 {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  margin: 0;
  font-size: 12px;
  line-height: 1;
  font-weight: normal;
  color: #eef4ff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  animation: fadeIn 1.2s ease 1.2s both;
}

/* ========= Choice Card Area ========= */
.button-area {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;

  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  padding: 8px 0;
  box-sizing: border-box;

  /* ここが重要 */
  max-height: none;
  overflow: visible;

  scrollbar-width: none;
}

.button-area::-webkit-scrollbar {
  display: none;
}

/* ========= Sequential Animation ========= */
.button-area > * {
  opacity: 0;
  animation: fadeUp 0.65s ease forwards;
}

.button-area > *:nth-child(1)  { animation-delay: 0.45s; }
.button-area > *:nth-child(2)  { animation-delay: 0.55s; }
.button-area > *:nth-child(3)  { animation-delay: 0.65s; }
.button-area > *:nth-child(4)  { animation-delay: 0.75s; }
.button-area > *:nth-child(5)  { animation-delay: 0.85s; }
.button-area > *:nth-child(6)  { animation-delay: 0.95s; }
.button-area > *:nth-child(7)  { animation-delay: 1.05s; }
.button-area > *:nth-child(8)  { animation-delay: 1.15s; }
.button-area > *:nth-child(9)  { animation-delay: 1.25s; }
.button-area > *:nth-child(10) { animation-delay: 1.35s; }

/* ========= Link Reset ========= */
a.btn {
  text-decoration: none;
  color: inherit;
}

/* ========= Choice Card Button ========= */
.btn {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 20px 16px 22px;
  text-align: left;
  font-size: 17px;
  line-height: 1.4;
  font-family: "Oswald", "Noto Sans JP", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #f7fbff;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(205, 220, 255, 0.10) 100%
  );

  border: 1px solid rgba(230, 238, 255, 0.24);
  border-radius: 16px;
  cursor: pointer;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow:
    0 0 8px rgba(140, 180, 255, 0.16),
    0 10px 22px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease;
}

/* 左アクセント */
.btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(210, 230, 255, 0.95) 0%,
    rgba(140, 180, 255, 0.88) 100%
  );
  box-shadow: 0 0 8px rgba(140, 180, 255, 0.5);
}

/* 右矢印 */
.btn::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: rgba(240, 246, 255, 0.88);
  text-shadow: 0 0 6px rgba(140, 180, 255, 0.22);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* Hover時に他を少し抑える */
.button-area:hover .btn {
  opacity: 0.82;
}

.button-area:hover .btn:hover {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-2px) scale(1.005);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(210, 225, 255, 0.14) 100%
  );
  border-color: rgba(235, 242, 255, 0.34);
  box-shadow:
    0 0 10px rgba(140, 180, 255, 0.24),
    0 10px 20px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.btn:hover::after {
  transform: translateY(-50%) translateX(4px);
}

.btn:active {
  transform: translateY(1px) scale(0.997);
  box-shadow:
    0 0 6px rgba(140, 180, 255, 0.18),
    0 6px 14px rgba(0, 0, 0, 0.28),
    inset 0 2px 6px rgba(0, 0, 0, 0.14);
}

/* ========= Optional: card title / subtext ========= */
.btn .btn-title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #f7fbff;
}

.btn .btn-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #dbe6fa;
  opacity: 0.92;
}

/* ========= Back Button ========= */
.back-btn {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1000;
  display: inline-block;
  margin: 0;
  padding: 8px 16px;
  font-size: 13px;
  line-height: 1;
  font-family: "Oswald", "Noto Sans JP", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #eef4ff;
  background: rgba(35, 48, 82, 0.38);
  border: 1px solid rgba(220, 230, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow:
    0 0 6px rgba(140, 180, 255, 0.24),
    0 4px 10px rgba(0, 0, 0, 0.24);
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
  animation: fadeIn 1.2s ease 1.1s both;
}

.back-btn:hover {
  transform: translateY(-1px);
  background: rgba(48, 66, 112, 0.48);
  border-color: rgba(230, 238, 255, 0.3);
  box-shadow:
    0 0 8px rgba(140, 180, 255, 0.34),
    0 6px 14px rgba(0, 0, 0, 0.28);
}

.back-btn:active {
  transform: translateY(1px);
}

/* ========= Animations ========= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bgFloat {
  0% {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.08) translate3d(0, -6px, 0);
  }
}

/* ========= Responsive ========= */
@media (max-width: 768px) {
  .container {
    padding-top: 10vh;
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 88px;
  }

  h1 {
    letter-spacing: 0.08em;
  }

  h2 {
    margin-bottom: 10px;
  }

  .button-area {
    width: 100%;
    gap: 12px;
    margin-top: 24px;
    padding: 8px 0;
  }

  .btn {
    padding: 14px 18px;
    font-size: 15px;
    border-radius: 14px;
  }

  .btn::after {
    right: 14px;
    font-size: 22px;
  }

  .btn .btn-title {
    font-size: 15px;
  }

  .btn .btn-sub {
    font-size: 11px;
  }

  .back-btn {
    left: 12px;
    bottom: 12px;
    padding: 7px 12px;
    font-size: 12px;
  }

  h3 {
    right: 12px;
    bottom: 12px;
    font-size: 11px;
  }
}

/* ========= Reduced Motion ========= */
@media (prefers-reduced-motion: reduce) {
  .container::before,
  h1,
  h2,
  h3,
  .back-btn,
  .button-area > * {
    animation: none !important;
  }

  .btn,
  .btn::after,
  .back-btn {
    transition: none !important;
  }
}