/* ==========================================================
   Main visual sections
   Source: main-sections.css
   ========================================================== */
/*
 * main-sections.css
 * 用途: トップページの主要セクション
 * このファイル内の各セクションは、元CSSの読み込み順を維持しています。
 */

/* --------------------------------------------------------------------------
 * スタッフ紹介
 * -------------------------------------------------------------------------- */
.staff-section {
  padding: 80px 20px 170px;
  text-align: center;
}

.staff-title {
  margin-bottom: 30px;
  color: #000;
  font-size: 2.5rem;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  justify-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.staff-item {
  text-align: center;
}

.staff-role {
  margin-bottom: 5px;
  color: #d33;
  font-size: 1.5rem;
  font-weight: bold;
}

.staff-desc {
  color: #555;
  font-size: 0.9rem;
}

.staff-photo {
  width: 25px;
  height: auto;
  vertical-align: middle;
}

.staff-info {
  position: relative;
  display: inline-block;
}

.staff-name {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 5px 10px;
  font-size: 3rem;
  font-weight: bold;
  white-space: nowrap;
}

.staff-illustrations {
  position: absolute;
  width: 100%;
  height: 0;
}

.staff-illust {
  position: absolute;
  bottom: -25px;
  width: 60px;
  height: auto;
}

.staff-illust.left {
  bottom: -20px;
  left: -45px;
}

.staff-illust.right {
  right: -35px;
  bottom: -20px;
}

.staff-illust.under {
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
}

/* --------------------------------------------------------------------------
 * Character page style section
 * -------------------------------------------------------------------------- */
.character-area {
  position: relative;
  width: 100%;
  padding: 90px 20px 100px;
  box-sizing: border-box;
  font-family: "Noto Serif JP", serif;
  color: #333;
}

.character-area * {
  box-sizing: border-box;
}

.character-area__inner {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.character-heading {
  text-align: center;
  margin-bottom: 60px;
}

.character-heading__sub {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: #c95f89;
  font-weight: 700;
}

.character-heading__title {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  color: #7b2b4c;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.character-heading__text {
  margin: 18px auto 0;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.9;
  color: #6f5d66;
}

.main-character-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 280px));
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
  align-items: end;
}

.main-character-card {
  position: relative;
  padding: 12px 16px 0;
  text-align: center;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  color: inherit;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.main-character-card:hover {
  transform: translateY(-8px);
  filter: drop-shadow(0 18px 18px rgba(120, 60, 80, 0.16));
}

.main-character-card.is-no-detail {
  cursor: default;
}

.main-character-card.is-no-detail:hover {
  transform: none;
  filter: none;
}

.main-character-card:focus-visible {
  outline: 3px solid rgba(201, 95, 137, 0.5);
  outline-offset: 8px;
  border-radius: 18px;
}

.main-character-card__image-wrap {
  width: 100%;
  height: var(--character-card-image-height, 520px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.main-character-card__image {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: bottom center;
  transform: scale(var(--character-card-image-scale, 1));
  transform-origin: bottom center;
  pointer-events: none;
  user-select: none;
}

.main-character-card__name {
  margin: 18px 0 4px;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
}

.main-character-card__kana {
  margin: 0;
  font-size: clamp(16px, 1.45vw, 22px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.main-character-card__cv {
  margin: 10px 0 0;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.main-character-card__cv span {
  display: inline-block;
  margin-right: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #9e345e;
  color: #fff;
  font-size: 0.78em;
  letter-spacing: 0.08em;
}

.main-character-card__line {
  display: block;
  width: min(270px, 80%);
  height: 3px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.65;
}

.main-character-card[data-color="green"] {
  color: #007c75;
}

.main-character-card[data-color="red"] {
  color: #d51d4f;
}

.main-character-card[data-color="purple"] {
  color: #8b2be2;
}

.main-character-card[data-color="pink"] {
  color: #d95b91;
}

.sub-character-section {
  margin-top: 90px;
  padding-top: 36px;
}

.sub-character-title {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(22px, 3vw, 32px);
  color: #7b2b4c;
  letter-spacing: 0.08em;
}

.sub-character-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.sub-character-card {
  width: 118px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  color: #4d3d44;
  transition: transform 0.25s ease;
}

.sub-character-card:hover {
  transform: translateY(-6px);
}

.sub-character-card:focus-visible {
  outline: 3px solid rgba(201, 95, 137, 0.5);
  outline-offset: 6px;
  border-radius: 18px;
}

.sub-character-card__icon-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 245, 250, 0.9);
  border: 3px solid rgba(201, 95, 137, 0.25);
  box-shadow: 0 10px 24px rgba(120, 60, 80, 0.12);
}

.sub-character-card__icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sub-character-card__name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.character-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.character-modal.is-open {
  display: flex;
}

.character-modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(40, 22, 32, 0.58);
  backdrop-filter: blur(5px);
}

.character-modal__content {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(720px, 90vh);
  overflow-y: auto;
  display: grid;
  grid-template-columns: 48% 52%;
  background: #fff0f7;
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(45, 20, 35, 0.28);
  animation: characterModalIn 0.25s ease both;
}

@keyframes characterModalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.character-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #7b2b4c;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.character-modal__close:hover {
  transform: rotate(8deg) scale(1.05);
  opacity: 0.9;
}

.character-modal__image-wrap {
  position: sticky;
  top: 0;
  align-self: start;
  width: 100%;
  height: min(720px, 90vh);
  min-height: 0;
  padding: 42px 24px 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
  border-radius: 28px 0 0 28px;
}

.character-modal__image {
  width: auto;
  max-width: 125%;
  height: var(--character-modal-image-height, 500px);
  max-height: none;
  object-fit: contain;
  object-position: bottom center;
  transform: translateY(var(--character-modal-image-offset-y, 0px));
}

.character-modal__body {
  min-width: 0;
  box-sizing: border-box;
  padding: 58px 48px 44px 72px;
  background: #fff0f7;
  border-radius: 0 28px 28px 0;
}

.character-modal__role {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(201, 95, 137, 0.13);
  color: #9e345e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.character-modal__name {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  color: #7b2b4c;
  line-height: 1.25;
  letter-spacing: 0.06em;
}

.character-modal__kana {
  margin: 8px 0 0;
  color: #b24370;
  font-size: 18px;
  font-weight: 700;
}

.character-modal__divider {
  width: 100%;
  height: 1px;
  margin: 26px 0;
  background: linear-gradient(90deg, rgba(201, 95, 137, 0.5), rgba(201, 95, 137, 0));
}

.character-modal__voices {
  margin: 0 0 24px;
}

.character-modal__voices-title {
  margin: 0 0 12px;
  color: #9e345e;
  font-size: 15px;
  font-weight: 700;
}

.character-modal__cv {
  display: inline-block;
  margin: 14px 0 0;
  padding: 7px 16px;
  border-radius: 999px;
  background: #9e345e;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 5px 14px rgba(158, 52, 94, 0.2);
}

.character-modal__cv[hidden] {
  display: none;
}

.character-modal__voice-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.character-modal__voice-button {
  width: 100%;
  padding: 9px 15px;
  border: 1px solid rgba(201, 95, 137, 0.4);
  border-radius: 999px;
  background: #fff;
  color: #9e345e;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.character-modal__voice-button:hover {
  color: #fff;
  background: #c95f89;
  transform: translateY(-2px);
}

.character-modal__description {
  margin: 0;
  padding: 0 16px;
  color: #4d3d44;
  font-size: 15px;
  line-height: 2.15;
  letter-spacing: 0.035em;
}

.character-modal__description p {
  margin: 0;
}

.character-modal__description p + p {
  margin-top: 20px;
}

.character-modal__profile {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px 18px;
  font-size: 14px;
}

.character-modal__profile dt {
  color: #9e345e;
  font-weight: 700;
}

.character-modal__profile dd {
  margin: 0;
  color: #4d3d44;
}

@media (max-width: 900px) {
  .character-area {
    padding: 70px 16px 80px;
  }

  .main-character-list {
    grid-template-columns: repeat(2, minmax(0, 320px));
    gap: 54px;
  }

  .main-character-card__image-wrap {
    height: var(--character-card-image-height, 460px);
  }

  .character-modal__content {
    grid-template-columns: 1fr;
    max-height: 88vh;
  }

  .character-modal__image-wrap {
    position: relative;
    top: auto;
    height: auto;
    min-height: 360px;
    padding: 48px 20px 0;
    border-radius: 28px 28px 0 0;
  }

  .character-modal__image {
    max-height: none;
  }

  .character-modal__body {
    padding: 34px 28px 34px;
    border-radius: 0 0 28px 28px;
  }
}

@media (max-width: 520px) {
  .character-heading {
    margin-bottom: 42px;
  }

  .main-character-card {
    padding-inline: 0;
  }

  .main-character-list {
    grid-template-columns: 1fr;
  }

  .main-character-card__image-wrap {
    height: min(82vw, var(--character-card-image-height, 360px));
  }

  .main-character-card__name {
    font-size: clamp(26px, 7vw, 34px);
  }

  .main-character-card__kana {
    font-size: clamp(16px, 4.5vw, 21px);
  }

  .main-character-card__line {
    width: 72%;
  }

  .sub-character-section {
    margin-top: 64px;
  }

  .sub-character-list {
    gap: 18px 14px;
  }

  .sub-character-card {
    width: 92px;
  }

  .sub-character-card__icon-wrap {
    width: 78px;
    height: 78px;
  }

  .sub-character-card__name {
    font-size: 13px;
  }

  .character-modal {
    padding: 14px;
  }

  .character-modal__close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 25px;
  }

  .character-modal__image-wrap {
    min-height: 0;
    height: auto;
    padding: 52px 12px 0;
  }

  .character-modal__image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 62vh;
    transform: none;
  }

  .character-modal__body {
    padding: 22px 22px 30px;
  }

  .character-modal__voice-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .character-modal__description {
    padding-inline: 6px;
  }

  .character-modal__profile {
    grid-template-columns: 78px 1fr;
    gap: 10px 14px;
  }
}
/* --------------------------------------------------------------------------
 * トップ・メインビジュアル
 * -------------------------------------------------------------------------- */
.top-container {
  position: relative;
  display: flex;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
}

.top-left {
  width: 43%;
  height: auto;
  overflow: hidden;
}

.top-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-right {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 57%;
  height: auto;
  padding-top: 8%;
  background-color: rgba(135, 206, 235, 0.8);
  backdrop-filter: blur(10px);
}

.title-image {
  max-width: 80%;
  height: auto;
}

.fox-container {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
}

.fox-left {
  position: absolute;
  top: 80%;
  left: 48%;
  width: 200px;
  height: auto;
  transform: translateY(-50%);
}

.fox-right {
  position: absolute;
  top: 80%;
  right: 3%;
  width: 200px;
  height: auto;
  transform: translateY(-50%);
}

.fox-right-character {
  position: absolute;
  top: 20%;
  right: 45%;
  width: 160px;
  height: auto;
  transform: translateY(-50%);
}

.fox-left-character {
  position: absolute;
  top: 56%;
  right: 1.3%;
  width: 160px;
  height: auto;
  transform: translateY(-50%);
}

@media only screen and (max-width: 750px) {
  .pc {
    display: none !important;
  }

  .sp {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .top-mobile-image {
    display: block !important;
  }

  .top-container {
    flex-direction: column;
    height: auto;
    overflow: hidden;
  }

  .top-left,
  .top-right {
    display: none;
  }

  .top-mobile-image {
    display: block;
    width: 112%;
    max-width: none;
    margin-left: -6%;
    object-fit: cover;
  }

  .fox-container {
    display: none;
  }
}


.top-mobile-image {
  display: none;
}
