@charset "UTF-8";

:root {
  --ba-ink: #292e38;
  --ba-muted: #727b89;
  --ba-soft-muted: #929aa7;
  --ba-line: rgba(132, 151, 176, .24);
  --ba-line-strong: rgba(118, 151, 191, .43);
  --ba-surface: rgba(255, 255, 255, .95);
  --ba-surface-soft: rgba(249, 251, 255, .90);
  --ba-focus: rgba(91, 153, 211, .38);
  --ba-shadow: 0 16px 46px rgba(66, 81, 111, .09);
  --ba-shadow-card: 0 18px 42px rgba(63, 78, 107, .14);
  --ba-pearl: linear-gradient(112deg, rgba(218, 243, 250, .98), rgba(230, 225, 248, .98) 54%, rgba(247, 225, 238, .97));
  --ba-pearl-soft: linear-gradient(112deg, rgba(231, 247, 251, .78), rgba(239, 236, 251, .78) 54%, rgba(251, 237, 245, .76));
}

html,
body {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

html {
  background: #f5f7fb;
}

body {
  min-height: 100vh;
  color: var(--ba-ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(201, 238, 248, .36), transparent 30%),
    radial-gradient(circle at 92% 7%, rgba(240, 215, 237, .30), transparent 31%),
    linear-gradient(180deg, #fbfdff 0%, #f4f6fb 58%, #f8f8fc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body *,
body *::before,
body *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.ba-page {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  padding: 28px 12px max(112px, calc(80px + env(safe-area-inset-bottom)));
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
}

.ba-shell {
  position: relative;
  isolation: isolate;
  width: min(620px, 100%);
  margin: 0 auto;
  overflow: hidden;
  background: rgba(252, 253, 255, .97);
  border: 1px solid rgba(128, 149, 178, .17);
  border-radius: 26px;
  box-shadow: var(--ba-shadow);
}

.ba-header {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 30px 24px 24px;
  background:
    radial-gradient(circle at 16% 24%, rgba(197, 237, 247, .36), transparent 31%),
    radial-gradient(circle at 86% 31%, rgba(239, 214, 235, .31), transparent 34%),
    linear-gradient(128deg, rgba(248, 252, 255, .98), rgba(251, 249, 255, .96));
  border-bottom: 1px solid rgba(132, 151, 176, .14);
  text-align: center;
}

.ba-header::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -78px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(153, 182, 216, .13);
  border-radius: 50%;
  pointer-events: none;
}

.ba-logo {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  line-height: 1;
}

.ba-logo img {
  display: block;
  width: 156px;
  max-width: 52vw;
  height: auto;
  margin: 0 auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.ba-subtitle {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #748295;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ba-category {
  margin: 0;
  padding: 20px 20px 18px;
  background: rgba(255, 255, 255, .62);
  border-bottom: 1px solid rgba(132, 151, 176, .14);
}

.ba-category-label,
.ba-switch-label {
  margin: 0 0 9px;
  color: var(--ba-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  letter-spacing: .08em;
}

.ba-part-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(430px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
}

.ba-part-tab {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 5px 6px;
  color: #596575;
  background: rgba(255, 255, 255, .90);
  border: 1px solid rgba(135, 156, 184, .30);
  border-radius: 13px;
  box-shadow: 0 3px 10px rgba(73, 89, 119, .035);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  appearance: none;
  transition: transform .14s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ba-part-tab.is-active {
  color: #324254;
  background: var(--ba-pearl);
  border-color: rgba(105, 151, 203, .49);
  box-shadow: 0 6px 16px rgba(82, 103, 143, .08);
}

.ba-part-tab:active {
  transform: scale(.97);
}

.ba-content {
  width: 100%;
  padding: 20px 0 28px;
}

.ba-switch-area {
  width: min(390px, calc(100% - 40px));
  margin: 0 auto 10px;
  padding: 12px;
  background: var(--ba-surface);
  border: 1px solid var(--ba-line);
  border-radius: 18px;
  box-shadow: 0 7px 20px rgba(73, 89, 119, .045);
}

.ba-switch-label {
  margin-bottom: 8px;
}

.ba-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 46px;
  padding: 4px;
  background: rgba(232, 237, 244, .80);
  border: 1px solid rgba(132, 151, 176, .15);
  border-radius: 14px;
  box-shadow: inset 0 1px 3px rgba(66, 81, 111, .06);
}

.ba-toggle-button {
  min-width: 0;
  padding: 7px 10px;
  color: #778190;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .035em;
  cursor: pointer;
  appearance: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.ba-toggle-button[data-state="before"].is-active {
  color: #3f5d73;
  background: linear-gradient(120deg, rgba(221, 244, 250, .98), rgba(231, 237, 250, .98));
  border-color: rgba(113, 164, 198, .28);
  box-shadow: 0 5px 14px rgba(75, 112, 143, .10);
}

.ba-toggle-button[data-state="after"].is-active {
  color: #6a506a;
  background: linear-gradient(120deg, rgba(235, 230, 250, .98), rgba(249, 229, 240, .98));
  border-color: rgba(181, 132, 178, .25);
  box-shadow: 0 5px 14px rgba(126, 86, 128, .09);
}

.ba-toggle-button:disabled {
  opacity: .38;
  cursor: default;
}

.ba-toggle-button:active {
  transform: scale(.98);
}

.ba-tap-text {
  margin: 0 0 10px;
  color: var(--ba-soft-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  letter-spacing: .04em;
}

.ba-photo-area {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  touch-action: pan-y;
}

.ba-photo-stage {
  --card-width: min(348px, 78vw);
  --slide-step: calc(var(--card-width) + 16px);
  --drag-x: 0px;
  position: relative;
  width: 100%;
  height: 474px;
  margin: 0 auto;
  overflow: hidden;
}

.ba-slide-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--card-width);
  max-width: 100%;
  padding: 8px;
  overflow: hidden;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--ba-pearl) border-box;
  border: 1px solid transparent;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(63, 78, 107, .10);
  will-change: transform, opacity;
  transition:
    transform .32s cubic-bezier(.22, .74, .2, 1),
    opacity .32s cubic-bezier(.22, .74, .2, 1),
    box-shadow .32s cubic-bezier(.22, .74, .2, 1);
}

.ba-photo-stage.is-touching .ba-slide-card,
.ba-photo-stage.is-resetting .ba-slide-card {
  transition: none;
}

.ba-slot-prev {
  z-index: 1;
  opacity: .52;
  transform: translate3d(calc(-50% - var(--slide-step) + var(--drag-x)), 0, 0) scale(.96);
  box-shadow: 0 8px 22px rgba(63, 78, 107, .07);
}

.ba-slot-current {
  z-index: 3;
  opacity: 1;
  transform: translate3d(calc(-50% + var(--drag-x)), 0, 0) scale(1);
  box-shadow: var(--ba-shadow-card);
}

.ba-slot-next {
  z-index: 1;
  opacity: .52;
  transform: translate3d(calc(-50% + var(--slide-step) + var(--drag-x)), 0, 0) scale(.96);
  box-shadow: 0 8px 22px rgba(63, 78, 107, .07);
}

.ba-slide-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 4;
  border-radius: 16px;
  background: rgba(37, 44, 57, .20);
  opacity: 1;
  pointer-events: none;
  transition: opacity .28s ease;
}

.ba-slot-current::after {
  opacity: 0;
}

.ba-photo-stage.is-moving-next .ba-slot-prev {
  opacity: 0;
  transform: translate3d(calc(-50% - var(--slide-step) - var(--slide-step)), 0, 0) scale(.96);
}

.ba-photo-stage.is-moving-next .ba-slot-current {
  z-index: 1;
  opacity: .52;
  transform: translate3d(calc(-50% - var(--slide-step)), 0, 0) scale(.96);
  box-shadow: 0 8px 22px rgba(63, 78, 107, .07);
}

.ba-photo-stage.is-moving-next .ba-slot-current::after {
  opacity: 1;
}

.ba-photo-stage.is-moving-next .ba-slot-next {
  z-index: 3;
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(1);
  box-shadow: var(--ba-shadow-card);
}

.ba-photo-stage.is-moving-next .ba-slot-next::after {
  opacity: 0;
}

.ba-photo-stage.is-moving-prev .ba-slot-next {
  opacity: 0;
  transform: translate3d(calc(-50% + var(--slide-step) + var(--slide-step)), 0, 0) scale(.96);
}

.ba-photo-stage.is-moving-prev .ba-slot-current {
  z-index: 1;
  opacity: .52;
  transform: translate3d(calc(-50% + var(--slide-step)), 0, 0) scale(.96);
  box-shadow: 0 8px 22px rgba(63, 78, 107, .07);
}

.ba-photo-stage.is-moving-prev .ba-slot-current::after {
  opacity: 1;
}

.ba-photo-stage.is-moving-prev .ba-slot-prev {
  z-index: 3;
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(1);
  box-shadow: var(--ba-shadow-card);
}

.ba-photo-stage.is-moving-prev .ba-slot-prev::after {
  opacity: 0;
}

.ba-photo-label {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 5;
  min-width: 96px;
  height: 31px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(48, 61, 86, .10);
  font-size: 13px;
  font-weight: 800;
  line-height: 29px;
  text-align: center;
  letter-spacing: .05em;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ba-side-label {
  opacity: .82;
}

.ba-content.is-before .ba-photo-label {
  color: #3d5b72;
  background: rgba(222, 242, 249, .94);
}

.ba-content.is-after .ba-photo-label {
  color: #684d68;
  background: rgba(245, 227, 239, .94);
}

.ba-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #edf1f6;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 16px;
  pointer-events: none;
}

.ba-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(72, 88, 112, .12);
  border-radius: inherit;
  pointer-events: none;
}

.ba-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 38px;
  height: 38px;
  color: #4e6074;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(128, 151, 180, .30);
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(63, 78, 107, .14);
  cursor: pointer;
  transform: translateY(-50%);
  appearance: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}

.ba-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.ba-arrow-prev {
  left: calc(50% - min(210px, 45vw));
}

.ba-arrow-next {
  right: calc(50% - min(210px, 45vw));
}

.ba-arrow-prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.ba-arrow-next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.ba-arrow:active {
  transform: translateY(-50%) scale(.95);
}

.ba-under {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: calc(100% - 40px);
  min-height: 42px;
  margin: 12px auto 0;
  padding: 8px 15px;
  background: var(--ba-surface-soft);
  border: 1px solid var(--ba-line);
  border-radius: 14px;
}

.ba-under-part {
  min-width: 0;
  color: #303641;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .06em;
}

.ba-under-count {
  flex: 0 0 auto;
  color: var(--ba-muted);
  font-size: 12px;
  line-height: 1.3;
}

.ba-info {
  width: min(480px, calc(100% - 40px));
  max-width: 100%;
  margin: 16px auto 0;
  padding: 16px;
  background: var(--ba-surface);
  border: 1px solid var(--ba-line);
  border-radius: 18px;
  box-shadow: 0 9px 24px rgba(66, 81, 111, .055);
  transition: opacity .14s ease;
}

.ba-info.is-updating {
  opacity: .58;
}

.ba-period {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  color: #303641;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .02em;
}

.ba-meta {
  display: grid;
  gap: 10px;
}

.ba-meta-row {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 13px 14px 14px;
  color: #3a424e;
  background: rgba(245, 248, 252, .94);
  border: 1px solid rgba(132, 151, 176, .16);
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.72;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ba-meta-label {
  display: block;
  margin: 0 0 4px;
  color: var(--ba-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}

.ba-note {
  width: min(480px, calc(100% - 40px));
  max-width: 100%;
  margin: 18px auto 0;
  padding: 14px 15px;
  color: #697382;
  background: linear-gradient(135deg, rgba(248, 251, 254, .95), rgba(250, 249, 253, .95));
  border: 1px solid rgba(132, 151, 176, .20);
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ba-empty {
  width: min(480px, calc(100% - 40px));
  margin: 30px auto;
  padding: 28px 20px;
  color: var(--ba-muted);
  background: var(--ba-surface);
  border: 1px solid var(--ba-line);
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
}

.ba-part-tab:focus-visible,
.ba-toggle-button:focus-visible,
.ba-arrow:focus-visible {
  outline: 3px solid var(--ba-focus);
  outline-offset: 2px;
}

@media (hover: hover) {
  .ba-part-tab:hover {
    color: #435265;
    background: rgba(239, 246, 251, .95);
    border-color: rgba(105, 151, 203, .42);
    transform: translateY(-1px);
  }

  .ba-part-tab.is-active:hover {
    background: var(--ba-pearl);
    border-color: rgba(105, 151, 203, .52);
  }

  .ba-arrow:hover {
    background: #fff;
    border-color: rgba(105, 151, 203, .44);
    box-shadow: 0 10px 24px rgba(63, 78, 107, .17);
    transform: translateY(-50%) scale(1.04);
  }
}

@media (max-width: 700px) {
  .ba-page {
    padding-top: 18px;
  }

  .ba-shell {
    border-radius: 22px;
  }

  .ba-header {
    padding: 25px 20px 20px;
  }

  .ba-category {
    padding: 18px 16px 17px;
  }
}

@media (max-width: 430px) {
  .ba-page {
    padding-right: 10px;
    padding-left: 10px;
  }

  .ba-shell {
    width: 100%;
  }

  .ba-logo img {
    width: 146px;
  }

  .ba-part-tabs {
    gap: 7px;
  }

  .ba-part-tab {
    min-height: 39px;
    padding-right: 3px;
    padding-left: 3px;
  }

  .ba-content {
    padding-top: 18px;
    padding-bottom: 24px;
  }

  .ba-switch-area {
    width: calc(100% - 32px);
    padding: 11px;
  }

  .ba-toggle {
    min-height: 44px;
  }

  .ba-photo-stage {
    --card-width: min(316px, 82vw);
    --slide-step: calc(var(--card-width) + 12px);
    height: 432px;
  }

  .ba-slide-card {
    padding: 8px;
    border-radius: 21px;
  }

  .ba-card-photo,
  .ba-slide-card::after {
    border-radius: 15px;
  }

  .ba-photo-label {
    top: 15px;
    min-width: 88px;
    height: 30px;
    line-height: 28px;
  }

  .ba-arrow {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .ba-arrow-prev {
    left: calc(50% - min(176px, 44vw));
  }

  .ba-arrow-next {
    right: calc(50% - min(176px, 44vw));
  }

  .ba-under {
    max-width: calc(100% - 32px);
  }

  .ba-info,
  .ba-note,
  .ba-empty {
    width: calc(100% - 32px);
  }
}

@media (max-width: 360px) {
  .ba-page {
    padding-right: 8px;
    padding-left: 8px;
  }

  .ba-category {
    padding-right: 12px;
    padding-left: 12px;
  }

  .ba-part-tabs {
    gap: 6px;
  }

  .ba-part-tab {
    min-height: 37px;
    font-size: 11px;
  }

  .ba-photo-stage {
    --card-width: min(296px, 80vw);
    --slide-step: calc(var(--card-width) + 10px);
    height: 398px;
  }

  .ba-arrow-prev {
    left: 7px;
  }

  .ba-arrow-next {
    right: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ba-part-tab,
  .ba-toggle-button,
  .ba-arrow,
  .ba-slide-card,
  .ba-slide-card::after,
  .ba-info {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
