@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Shippori+Mincho:wght@500&display=swap");

:root {
  --bg-glass: rgba(54, 67, 71, 0.385);
  --border-white: rgba(255, 255, 255, 0.1);
  --text-main: rgba(61, 63, 75, 0.79);
  --text-main-white: rgba(233, 233, 233, 0.906);
  --text-hover: rgba(255, 255, 255, 0.832);
  --text-sub: rgba(68, 70, 86, 0.906);
  --text-panel-sub: #f49fbbad;
  --font-en: "Nunito", sans-serif;
  --font-jp:
    "Shippori Mincho", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  list-style: none;
}

a {
  color: inherit; 
  outline: none; 
}

ul {
  padding: 0;
}

h3 {
  font-weight: 500;
  margin: 0;
}

body {
  margin: 0;
  overflow: hidden; 
  background-color: #000;
  font-family: var(--font-jp);
  color: var(--text-main);
  line-height: 2; 
  letter-spacing: 0.1em;
  -webkit-font-smoothing: antialiased;
  width: 100vw;
  height: 100svh;
  text-shadow: 1px 1px 0px rgba(224, 252, 255, 0.697);
}


.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #70a379; 
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.loader-text {
  font-family: "Shippori Mincho", serif;
  font-size: 1.5rem;
  letter-spacing: 0.5em;
  color: rgba(255, 255, 255, 0.6);
  display: inline-block;
  animation: sway 4s ease-in-out infinite;
  will-change: transform, filter, opacity;
}


@keyframes sway {
  0%,
  100% {
    transform: translate(0, 0) skew(0deg);
    opacity: 0.05;
  }
  55% {
    transform: translate(-4px, 2px) skew(20deg);
    opacity: 0.7;
  }
  80% {
    transform: translate(6px, -2px) skew(-15deg);
    opacity: 0.5;
  }
}

#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block; 
}

.fixed-ui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  pointer-events: none; 
}

.fixed-ui button,
.fixed-ui a {
  pointer-events: auto; 
}

.sound-btn {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 5px;
  text-align: center;
  background: var(--bg-glass);
  backdrop-filter: blur(15px) saturate(120%);
  -webkit-backdrop-filter: blur(15px) saturate(120%);
  border: 1px solid var(--border-white);
  border-radius: 24px;
  color: var(--text-hover);
  font-family: var(--font-en);
  font-size: 13px;
  opacity: .7;
  cursor: pointer;
  transition: color 0.4s ease;
}

.menu-top {
  position: absolute;
  top: 40px;
  right: 40px;
}
.menu-list {
  list-style: none;
  text-align: right;
}
.menu-item {
  background: none;
  border: none;
  color: var(--text-sub);
  font-family: var(--font-jp);
  font-size: 14px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.4s ease;
  display: block;
  width: 100%;
  text-align: right;
  text-shadow: 1px 1px 0px rgba(224, 252, 255, 0.697);
}
.menu-item:hover,
.menu-item.active {
  color: var(--text-hover);
  transform: translateX(-5px);
  text-shadow: 0px 0px 0px;
}

.title-bottom {
  position: absolute;
  bottom: 0px;
  right: 40px;
  text-align: center;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  line-height: 1.5;
}

.title-text-sub {
  font-family: var(--font-en);
  font-size: 12px;
  display: block;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
}

.title-bottom h1 {
  font-family: "nijimi", serif;
  font-size: 24px;
  font-weight: normal;
  letter-spacing: 0.5em;
  color: var(--text-main);
}


.content-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  margin: auto 0;
  left: 40px;
  width: 600px;
  height: 90svh;
  background: var(--bg-glass);
  backdrop-filter: blur(15px) saturate(120%);
  -webkit-backdrop-filter: blur(15px) saturate(120%);
  border: 1px solid var(--border-white);
  border-radius: 24px; 
  text-shadow: none;
  overflow: hidden;
  color: var(--text-main-white);
  z-index: 50;
  opacity: 0; 
  visibility: hidden;
  transition:
    opacity 1s ease,
    visibility 1s ease;
}

.content-panel.active {
  opacity: 1;
  visibility: visible;
}

.panel-scroll-area {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 80px 60px; 
  scrollbar-width: thin;
  scrollbar-color: var(--border-white) transparent;
}

.ripple-wrapper {
  opacity: 0; 
  will-change: filter, opacity;
}

.panel-scroll-area::-webkit-scrollbar {
  width: 1px;
}
.panel-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}
.panel-scroll-area::-webkit-scrollbar-thumb {
  background: var(--border-white);
}


.content-section {
  display: none; 
  margin-bottom: 100px;
}
.content-section.active {
  display: block;
}

.section-title {
  font-family: var(--font-jp);
  font-size: 12px;
  letter-spacing: 0.5em;
  margin-bottom: 60px;
  text-transform: uppercase;
}

.work-item {
  border-bottom: 1px solid var(--border-white);
  padding-bottom: 20px;
}

.work-item + .work-item {
  margin-top: 40px;
}

.work-name {
  font-family: "nijimi", serif;
  letter-spacing: 0.5em;
  font-size: 18px;
  margin-bottom: 0px;
}

.work-img-link {
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden; 
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.05); 
}

.work-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.8);
  transition: filter 0.8s ease;
  opacity: 0.8;
}

.work-img:hover {
  filter: grayscale(0%) brightness(1);
}

.past-works {
  font-family: var(--font-en);
  font-size: 13px;
  margin-top: 20px;
  padding-top: 20px;
}

.profile-main {
  font-family: var(--font-en);
  padding-bottom: 20px;
}
.profile-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}
.profile-lead,
.work-lead {
  font-size: 13px;
  color: var(--text-panel-sub);
  margin: 0px;
}
.profile-text, .character-text {
  font-family: var(--font-jp);
}

.influence-list, .character {
  font-family: var(--font-en);
  padding-top: 20px;
  border-top: 1px solid var(--border-white);
}
.influence-list dl {
  margin-top: 0px;
}
.influence-list dt {
  font-size: 13px;
  color: var(--text-panel-sub);
  margin-top: 20px;
}
.influence-list dd {
  font-size: 13px;
  margin-left: 0;
}

.sns-links {
  font-family: var(--font-en);
  font-size: 13px;
}


.email-wrapper {
  display: flex;
  align-items: center;
  gap: 12px; 
  margin-top: 10px;
  position: relative;
}

.email-address {
  font-family: var(--font-en);
  font-size: 16px;
  color: var(--text-main-white);
  margin: 0;
  line-height: 1;
}

.copy-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-panel-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  position: relative;
}

.copy-btn:hover {
  color: var(--text-main);
}

.copy-btn svg {
  display: block;
}


.copy-feedback {
  position: absolute;
  top: -20px;
  left: 0;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-main);
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
}


@media (max-width: 768px) {
  .title-text-sub {
    margin-top: 5px;
  }

  .title-bottom {
    top: 25px; 
    left: 20px; 
    bottom: auto; 
    right: auto; 
  }

  .title-bottom h1 {
    font-size: 16px; 
    letter-spacing: 0.3em;
    margin: 0;
    line-height: 1; 
    display: block;
  }

  .sound-btn {
    top: 25px; 
    right: 20px; 
    left: auto; 
    bottom: auto;
    transform: none; 
    margin: 0;
    padding: 3px 5px;
    line-height: 1; 
    display: block;
  }

  .content-panel {
    top: 10%;
    bottom: auto;
    margin: 0 auto;
    left: 0;
    right: 0px;
    width: calc(100% - 30px);
    height: 75svh; 
    transform: none;
    border-radius: 20px;
  }

  .panel-scroll-area {
    padding: 60px 30px 100px;
  }

  
  .menu-top {
    top: auto;
    bottom: 0;
    right: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
  }
  .menu-list {
    display: flex;
    justify-content: space-around;
    padding: 0;
    margin: 0;
  }
  .menu-item {
    font-size: 12px;
    margin-bottom: 0;
    text-align: center;
  }
}
