@charset "utf-8";

html,
body {
  font-family: "Kaisei Opti", sans-serif;
  color: #333;
  background: linear-gradient(180deg, #38A1D8, #7B68EE, #915DA3);
  width: 100%;
  min-height: 100%;
  margin: 0;
}

main {
  position: relative;
}

.about,
.worksSection {
  width: min(90%, 960px);
  margin-inline: auto;
}

.aboutHero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.aboutText {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 28px 32px;
  margin-top: 32px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.about>p,
.aboutText {
  font-size: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 24px 32px;
  margin: 16px 0 40px;
  line-height: 2;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.aboutText p {
  margin: 0;
}

.aboutHanpen {
  display: block;
  width: 220px;
  flex-shrink: 0;
  animation: hanpenFloat 3s ease-in-out infinite;
}

@keyframes hanpenFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.heroProfile {
  position: relative;
  flex-shrink: 0;
}

.hanpenButton {
  border: none;
  background: transparent;
  cursor: pointer;
}

/* はんぺんのセリフ吹き出しスタイル */
.hanpenSpeech {
  position: absolute;
  right: 80%;
  top: 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid #d7d0df;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  color: #915DA3;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.hanpenSpeech p {
  font-family: "M PLUS U", sans-serif;
  margin: 0;
  padding: 60px 32px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  line-height: 1.5;
}

/* しっぽ（右向き・はんぺん側） */
.hanpenSpeech::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-left-color: #d7d0df;
}

.hanpenSpeech::before {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(100% - 3px);
  transform: translateY(-50%);
  border: 9px solid transparent;
  border-left-color: rgba(255, 255, 255, 0.95);
  z-index: 1;
}

.hanpenSpeech.show {
  opacity: 1;
  transform: translateX(0);
}

.about {
  padding: 80px 0 0;
}

.about h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.5;
  margin-bottom: 32px;
  color: #fff;
}

.about h2,
.worksSection h2 {
  font-size: 28px;
  color: #fff;
  margin: 48px 0 16px;
  padding-left: 16px;
  border-left: 6px solid #fff;
}

.about ul {
  font-size: 20px;
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}

.about li::before {
  content: "🐾 ";
}

.worksSection {
  padding: 24px 0 60px;
  overflow: hidden;
}

/* 作品紹介スライダー */
.worksSliderWrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: auto;
}

.worksSlider {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 24px 0;
  scrollbar-width: none;
  align-items: center;
  perspective: 1000px;
}

.worksSlider::-webkit-scrollbar {
  display: none;
}

.workCard {
  flex: 0 0 280px;
  width: 280px;
  height: 260px;
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
  border: none;
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  scroll-snap-align: center;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    box-shadow 0.3s ease;
  transform: scale(0.9);
  opacity: 0.65;
}

.workCard.isActive {
  transform: scale(1.08) translateY(-12px);
  opacity: 1;
  z-index: 10;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.workCard img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.workCard span {
  display: block;
  margin-top: 12px;
  font-weight: bold;
}

.workCard.isClone {
  pointer-events: none;
}

/* 作品紹介文モーダル */
.workModal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.workModal.isOpen {
  display: flex;
}

.workModalBg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.workModalContent {
  position: relative;
  width: min(90%, 600px);
  max-height: 80vh;
  margin: 8vh auto;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  z-index: 1200;
}

.workModalClose {
  position: absolute;
  right: 16px;
  top: 4px;
  border: none;
  background: transparent;
  font-size: 52px;
  cursor: pointer;
}

.workModalContent h3 {
  font-size: 28px;
  color: #915da3;
  margin-bottom: 16px;
}

.workModalContent h4 {
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 5px solid #915da3;
  font-size: 18px;
}

.workModalContent p,
.workModalContent li {
  line-height: 1.8;
}

.workModalContent ul {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

/* 台北専用 */
.taiwanModal .workModalContent {
  width: min(90%, 720px);
  margin: 4vh auto;
  padding: 20px;
}

.taiwanModal .workModalContent h3 {
  font-size: 26px;
  margin-bottom: 16px;
}

.taiwanModal .workModalContent h4 {
  margin-bottom: 8px;
}

.taiwanModal .workModalContent p {
  line-height: 1.7;
}

.taiwanModal .modalBtnArea {
  margin-top: 20px;
}

.taiwanModal .workModalLink {
  margin: 0 auto;
}

.modalBtnArea {
  text-align: center;
}

.workModalLink {
  display: inline-block;
  margin: 20px auto 0;
  padding: 12px 22px;
  border-radius: 999px;
  background: #915da3;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 0 #6f3f82;
}

.workModalLink:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 #6f3f82;
}

.comingSoonCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 280px;
  border: 2px dashed #d6d6d6;
  border-radius: 24px;
  background: linear-gradient(135deg, #3CC6A8, #005243);
  opacity: 0.9;
  cursor: default;
}

.comingSoonCat {
  width: 80%;
  height: 180px;
  object-fit: contain;
  object-position: center;
  display: block;
  animation: peroPero 2s ease-in-out infinite;
}

.comingSoonTitle {
  font-family: "Monomaniac One", sans-serif;
  font-size: 20px;
  color: #fff;
  margin: 0 0 4px;
}

.comingSoonText {
  font-size: 12px;
  line-height: 1.5;
  color: #fff;
  margin: 0;
}

@keyframes peroPero {

  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(3deg);
  }
}

.sliderControls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}

.sliderArrow {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: #FFF;
  color: #333;
  font-size: 52px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  line-height: 1.2;
  padding: 0;
}

.sliderDots {
  display: flex;
  gap: 36px;
}

.sliderDot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #FFF;
  cursor: pointer;
}

.sliderDot.isActive {
  background: #000;
}

/* コピーライトエリア */
.copyright {
  bottom: 24px;
  text-align: center;
  z-index: 1;
}

.copyrightLine {
  width: 40px;
  height: 1px;
  margin: 0 auto 12px;
}

.copyright p {
  font-size: 12px;
  color: #fff;
  letter-spacing: 0.15em;
  margin: 0;
  padding: 36px 0 24px;
}

/* TOPへボタン */
.toTop {
  position: fixed;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #915DA3;
  font-size: 42px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  right: 4%;
  bottom: 80px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s linear;
}

/* スクロール後に表示 */
.toTop.isShow {
  opacity: 0.8;
  pointer-events: auto;
}

/* ローディング表示 */
.loading {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.loadingCenter {
  position: relative;
  width: 300px;
  height: 120px;
  margin: 0 auto;
}

#loadingPaw,
#loadingText {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.4s ease;
}

#loadingPaw {
  width: 70px;
  left: 0;
}

#loadingText {
  font-family: "Permanent Marker", sans-serif;
  width: 100%;
  text-align: center;
  font-size: 24px;
}

.hidden {
  opacity: 0;
}

/* 歩きアニメーション */
@keyframes step {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.8);
  }

  50% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(2px) scale(0.95);
  }
}

.loading.hide {
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

@keyframes bounceStep {
  0% {
    transform: translateY(var(--y)) scale(1) rotate(var(--r));
  }

  40% {
    transform: translateY(calc(var(--y) - 6px)) scale(1.1) rotate(var(--r));
  }

  100% {
    transform: translateY(var(--y)) scale(1) rotate(var(--r));
  }
}

/* 足跡フェード */
@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

/* ローディング消える演出 */
.loading.hide {
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

/* ドロワーメニュー */
.noScroll {
  overflow: hidden;
}

.pawBtn {
  position: absolute;
  top: 10%;
  left: 12%;
  right: auto;
  bottom: auto;

  width: 60px;
  height: 60px;

  z-index: 1100;
  border: none;
  background: transparent;
  cursor: pointer;
}

.pawBtn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.8;
  display: block;
}

/* 閉じるボタン */
.closeBtn {
  position: absolute;
  top: 12px;
  left: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

.drawerNav {
  height: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 34px;
}

.drawerNavItem {
  width: 260px;
  padding: 0;
  margin: 0;
}

.drawerNavItem a {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  column-gap: 16px;
  width: 100%;
  color: #fff;
  text-decoration: none;
}

.drawerNavText {
  font-family: "Monomaniac One", sans-serif;
  font-size: 36px;
  line-height: 1;
  display: block;
}

/* ホバー・アクティブ時対応 */
.drawerNavText:hover,
.drawerNavText:active,
.drawerNavText:focus {
  color: #B44C97;
}

.pawIcon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: 0.8;
  display: block;
  justify-self: center;
  transform: translateY(5px);
}

.drawer {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 100%;
  background: linear-gradient(180deg, #7CC0F5, #38A1D8, #1E6FA8);
  transform: translateX(-100%);
  transition: transform .4s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 1800;
}

.drawer.active {
  transform: translateX(0);
}

.overLay {
  display: none;
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  width: 100%;
  margin: 0 auto;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1700;
}

.overLay.active {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer ul li a:hover .pawBtn {
  opacity: 1;
}

/* キャラクターの紹介モーダル */
.characterModal {
  font-family: "M PLUS U", sans-serif;
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.characterModal.isOpen {
  display: block;
}

.characterModalBg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.characterModalContent {
  position: relative;
  z-index: 1;
  width: min(90%, 420px);
  margin: 80px auto;
  padding: 60px 0;
  background: linear-gradient(180deg, #1E81B0 0%, #fff 50%, #044D78 100%);
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.characterModalClose {
  position: absolute;
  top: 5px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 52px;
  cursor: pointer;
}

.characterModalImg {
  width: 180px;
  margin-bottom: 12px;
  pointer-events: none;
}

#hanpenTitle {
  font-size: 36px;
  margin-bottom: 16px;
}

.characterModalText {
  line-height: 2;
  text-align: center;
}

.characterProfileList {
  line-height: 1.8;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 12px;
}

.noScroll {
  overflow: hidden;
}




@media screen and (max-width: 768px) {

  /* About上部：タイトルとはんぺんを縦並びにする */
  .aboutHero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  /* はんぺん画像を少し小さく */
  .aboutHanpen {
    width: 170px;
  }

  /* 吹き出しをSPでは右側ではなく上に出す */
  .hanpenSpeech {
    right: auto;
    left: 50%;
    top: -24px;
    transform: translateX(-50%) translateY(-100%);
    font-size: 0.9rem;
  }

  .hanpenSpeech.show {
    transform: translateX(-50%) translateY(-100%);
  }

  .hanpenSpeech p {
    padding: 20px 24px;
  }

  /* 吹き出しのしっぽ位置を下向きに変更 */
  .hanpenSpeech::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: #d7d0df;
  }

  .hanpenSpeech::before {
    top: calc(100% - 3px);
    left: 50%;
    transform: translateX(-50%);
    border: 9px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.95);
  }

  /* 文章カード */
  .aboutText,
  .about>p {
    font-size: 16px;
    padding: 20px;
    line-height: 1.8;
  }

  /* TOPへボタン */
  .toTop {
    width: 48px;
    height: 48px;
    font-size: 36px;
    right: 20px;
    bottom: 72px;
  }

  /* ドロワー幅を画面に合わせる */
  .drawer {
    width: 80%;
    max-width: 320px;
  }

  /* 閉じるボタン */
  .closeBtn {
    position: absolute;
    top: 80px;
    left: 36px;
  }

  .pawBtn {
    position: absolute;
    top: 0;
    left: 4%;
  }

  .drawerNavItem {
    width: 220px;
  }

  .drawerNavItem a {
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
  }

  .drawerNavText {
    font-size: 30px;
  }

  .pawIcon {
    width: 32px;
    height: 32px;
  }

  /* SP版でもタップ時に文字色が変わる */
  .drawerNavItem a:active .drawerNavText,
  .drawerNavItem a:focus .drawerNavText {
    color: #B44C97;
  }

  /* 作品カードをSPサイズに */
  .workCard {
    flex-basis: 240px;
    width: 240px;
    height: 240px;
  }

  .workCard img {
    height: 140px;
  }

  /* モーダルを画面内に収める */
  .workModalContent,
  .taiwanModal .workModalContent {
    width: min(90%, 360px);
    max-height: calc(100svh - 48px);
    margin: 24px auto;
    padding: 24px;
    box-sizing: border-box;
  }

  .workModalContent h3 {
    font-size: 24px;
    margin: 16px 0 14px;
  }

  .workModalContent h4 {
    font-size: 16px;
    margin: 18px 0 6px;
  }

  .workModalContent p,
  .workModalContent li {
    font-size: 15px;
    line-height: 1.7;
  }

  .modalBtnArea {
    margin-top: 16px;
    padding-bottom: 4px;
  }

  .workModalLink {
    margin: 0 auto;
    padding: 10px 22px;
    font-size: 15px;
    box-shadow: 0 4px 0 #6f3f82;
  }

  .workModalClose {
    top: 0;
    right: 12px;
    font-size: 44px;
  }

  .characterModalContent {
    width: min(92%, 360px);
    margin: 60px auto;
    padding: 48px 16px;
    box-sizing: border-box;
  }

  .characterModalImg {
    width: 150px;
  }
}