@charset "UTF-8";
body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: #3a2a1d;
  background: radial-gradient(circle at center, #4a3424 0%, #3a2a1d 40%, #2a1f17 70%, #1a120d 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(#000 2px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.08;
  pointer-events: none;
}

.page-turn {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}
.page-turn__paper {
  position: absolute;
  inset: 0;
  background: -webkit-gradient(linear, left top, right top, from(#cbb394), color-stop(#dcc6a9), color-stop(#e9d6bd), to(#f3e7d6));
  background: linear-gradient(to right, #cbb394, #dcc6a9, #e9d6bd, #f3e7d6);
  -webkit-transform: translateX(-100%);
          transform: translateX(-100%);
  -webkit-box-shadow: 50px 0 120px rgba(0, 0, 0, 0.6), inset -30px 0 60px rgba(0, 0, 0, 0.3);
          box-shadow: 50px 0 120px rgba(0, 0, 0, 0.6), inset -30px 0 60px rgba(0, 0, 0, 0.3);
}
.page-turn__paper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.35)), color-stop(20%, transparent));
  background: linear-gradient(to right, rgba(0, 0, 0, 0.35), transparent 20%);
  pointer-events: none;
}

.page-turn.is-active .page-turn__paper {
  -webkit-animation: pageTurn 0.8s ease forwards;
          animation: pageTurn 0.8s ease forwards;
}

@-webkit-keyframes pageTurn {
  0% {
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
  }
  100% {
    -webkit-transform: translateX(0%);
            transform: translateX(0%);
  }
}

@keyframes pageTurn {
  0% {
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
  }
  100% {
    -webkit-transform: translateX(0%);
            transform: translateX(0%);
  }
}
.flame {
  position: absolute;
  width: 50px;
  height: 90px;
  pointer-events: none;
}
.flame svg {
  -webkit-transform-origin: center bottom;
          transform-origin: center bottom;
  -webkit-animation: flame-flicker 1.6s infinite ease-in-out;
          animation: flame-flicker 1.6s infinite ease-in-out;
}
.flame::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  width: 140px;
  height: 140px;
  background: radial-gradient(rgba(255, 200, 120, 0.35), transparent 60%);
  -webkit-filter: blur(20px);
          filter: blur(20px);
}

.flame--left {
  top: 40px;
  left: 60px;
}
.flame--left svg {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s;
}

.flame--right {
  top: 80px;
  right: 65px;
}
.flame--right svg {
  -webkit-animation-delay: 0.7s;
          animation-delay: 0.7s;
}

.flame-outer {
  fill: #ffcc66;
  opacity: 0.8;
}

.flame-inner {
  fill: #fff4c2;
}

@-webkit-keyframes flame-flicker {
  0% {
    -webkit-transform: scaleY(1) rotate(-2deg);
            transform: scaleY(1) rotate(-2deg);
  }
  25% {
    -webkit-transform: scaleY(1.1) rotate(2deg);
            transform: scaleY(1.1) rotate(2deg);
  }
  50% {
    -webkit-transform: scaleY(0.95) rotate(-1deg);
            transform: scaleY(0.95) rotate(-1deg);
  }
  75% {
    -webkit-transform: scaleY(1.05) rotate(1deg);
            transform: scaleY(1.05) rotate(1deg);
  }
  100% {
    -webkit-transform: scaleY(1) rotate(-2deg);
            transform: scaleY(1) rotate(-2deg);
  }
}

@keyframes flame-flicker {
  0% {
    -webkit-transform: scaleY(1) rotate(-2deg);
            transform: scaleY(1) rotate(-2deg);
  }
  25% {
    -webkit-transform: scaleY(1.1) rotate(2deg);
            transform: scaleY(1.1) rotate(2deg);
  }
  50% {
    -webkit-transform: scaleY(0.95) rotate(-1deg);
            transform: scaleY(0.95) rotate(-1deg);
  }
  75% {
    -webkit-transform: scaleY(1.05) rotate(1deg);
            transform: scaleY(1.05) rotate(1deg);
  }
  100% {
    -webkit-transform: scaleY(1) rotate(-2deg);
            transform: scaleY(1) rotate(-2deg);
  }
}
.cover {
  min-height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 40px 20px;
}
.cover__inner {
  width: 100%;
  max-width: 700px;
  padding: 60px 30px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(2px);
  border: 4px solid #4a2f1b;
  border-radius: 12px;
  text-align: center;
  position: relative;
  -webkit-box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 8px 0 rgba(43, 27, 18, 0.7);
          box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 8px 0 rgba(43, 27, 18, 0.7);
  background: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px), rgba(255, 255, 255, 0.35);
  background-size: 4px 4px;
  -webkit-transform: perspective(1000px) rotateX(5deg);
          transform: perspective(1000px) rotateX(5deg);
}
.cover__inner::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 120px;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.12) 25%, rgba(0, 0, 0, 0.05) 40%, transparent 60%);
}
.cover__inner::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 3px solid rgba(200, 155, 60, 0.6);
  border-radius: 20px 6px 20px 6px;
  -webkit-box-shadow: inset 0 0 10px rgba(200, 155, 60, 0.4), inset 0 0 30px rgba(0, 0, 0, 0.15);
          box-shadow: inset 0 0 10px rgba(200, 155, 60, 0.4), inset 0 0 30px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}
.cover__title {
  font-family: "Cinzel", serif;
  font-size: 36px;
  letter-spacing: 2px;
  color: #2b1b12;
  text-shadow: 0 0 10px rgba(255, 200, 120, 0.3);
}
@media screen and (min-width: 768px) {
  .cover__title {
    font-size: 48px;
  }
}
.cover__subtitle {
  font-size: 14px;
  letter-spacing: 1px;
  opacity: 0.8;
}
@media screen and (min-width: 768px) {
  .cover__subtitle {
    letter-spacing: 2px;
  }
}
.cover__subtitle::before, .cover__subtitle::after {
  content: "—";
  margin: 0 8px;
}
.cover__skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 240px;
  margin: 40px auto 0;
}
@media screen and (min-width: 768px) {
  .cover__skills {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 16px;
    max-width: none;
  }
}
.cover__skill {
  font-size: 12px;
  text-align: center;
  padding: 8px 12px;
  border: 2px solid #2b1b12;
  border-radius: 3px;
  -webkit-box-shadow: 4px 4px 0 #2b1b12;
          box-shadow: 4px 4px 0 #2b1b12;
  -webkit-transition: 0.15s;
  transition: 0.15s;
}
@media screen and (min-width: 768px) {
  .cover__skill {
    font-size: 14px;
    padding: 8px 16px;
  }
}
.cover__skill:hover {
  -webkit-transform: translate(2px, 2px);
          transform: translate(2px, 2px);
  -webkit-box-shadow: 2px 2px 0 #2b1b12;
          box-shadow: 2px 2px 0 #2b1b12;
  -webkit-filter: brightness(0.65) saturate(1.7);
          filter: brightness(0.65) saturate(1.7);
}
.cover__skill:active {
  -webkit-transform: translate(4px, 4px);
          transform: translate(4px, 4px);
  -webkit-box-shadow: 0 0 0 #2b1b12;
          box-shadow: 0 0 0 #2b1b12;
}

.cover__skill--html {
  background: rgba(228, 77, 38, 0.1333333333);
}

.cover__skill--css {
  background: rgba(41, 101, 241, 0.1333333333);
}

.cover__skill--js {
  background: rgba(247, 223, 30, 0.2);
}

.cover__skill--wp {
  background: rgba(33, 117, 155, 0.1333333333);
}

.toc {
  margin-top: 30px;
}
@media screen and (min-width: 768px) {
  .toc {
    margin-top: 50px;
  }
}
.toc__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 320px;
  margin: 0 auto;
  padding-left: 50px;
  gap: 10px;
}
@media screen and (min-width: 768px) {
  .toc__list {
    gap: 20px;
    padding-left: 60px;
  }
}
.toc__link {
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 3px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 260px;
  text-align: center;
  position: relative;
  -webkit-transition: 0.2s;
  transition: 0.2s;
}
@media screen and (min-width: 768px) {
  .toc__link {
    font-size: 18px;
  }
}
.toc__link::before {
  content: "■";
  color: #c89b3c;
  width: 14px;
  margin-right: 18px;
  text-align: center;
}
.toc__link::after {
  content: "";
  position: absolute;
  left: 30px;
  bottom: -6px;
  width: 50%;
  height: 3px;
  background: rgba(74, 47, 27, 0.3);
  margin-bottom: 5px;
}
@media screen and (min-width: 768px) {
  .toc__link::after {
    width: 70%;
  }
}
.toc__link:hover {
  color: #c89b3c;
  -webkit-transform: translateX(8px);
          transform: translateX(8px);
}
.toc__link:hover::after {
  background: #c89b3c;
}

.page-number {
  margin-top: 30px;
  text-align: center;
  font-family: "Cinzel", serif;
  letter-spacing: 4px;
  opacity: 0.7;
}

.page-chapter {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: #3a2a1d;
  background: #f3e7d6;
}
.page-chapter::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(#000 2px, transparent 1px);
  background-size: 5px 5px;
  opacity: 0.05;
  pointer-events: none;
}

.page-profile {
  position: relative;
  background: #f3e7d6;
}
.page-profile::before {
  content: "";
  position: fixed;
  inset: -50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.25) 25%, transparent 60%);
  -webkit-animation: paperLightMove 10s ease-in-out infinite;
          animation: paperLightMove 10s ease-in-out infinite;
  pointer-events: none;
}

@-webkit-keyframes paperLightMove {
  0% {
    -webkit-transform: translate(-20%, -10%);
            transform: translate(-20%, -10%);
  }
  50% {
    -webkit-transform: translate(20%, 10%);
            transform: translate(20%, 10%);
  }
  100% {
    -webkit-transform: translate(-20%, -10%);
            transform: translate(-20%, -10%);
  }
}

@keyframes paperLightMove {
  0% {
    -webkit-transform: translate(-20%, -10%);
            transform: translate(-20%, -10%);
  }
  50% {
    -webkit-transform: translate(20%, 10%);
            transform: translate(20%, 10%);
  }
  100% {
    -webkit-transform: translate(-20%, -10%);
            transform: translate(-20%, -10%);
  }
}
.chapter-header {
  padding: 20px;
}

.back-link {
  font-family: "Cinzel", serif;
  font-size: 14px;
  letter-spacing: 2px;
  -webkit-transition: 0.2s;
  transition: 0.2s;
}
.back-link:hover {
  color: #c89b3c;
}

.chapter {
  padding: 40px 20px 40px 20px;
}
@media screen and (min-width: 768px) {
  .chapter {
    padding: 80px 20px 80px 20px;
  }
}
.chapter__inner {
  max-width: 900px;
  margin: 0 auto;
}
.chapter__title {
  text-align: center;
  margin-bottom: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
}
@media screen and (min-width: 768px) {
  .chapter__title {
    margin-bottom: 40px;
  }
}
.chapter__title::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  background: #c89b3c;
  margin: 20px auto 0;
}
.chapter__number {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
@media screen and (min-width: 768px) {
  .chapter__number {
    font-size: 18px;
  }
}
.chapter__name {
  font-family: "Cinzel", serif;
  font-size: 36px;
  letter-spacing: 4px;
}
@media screen and (min-width: 768px) {
  .chapter__name {
    font-size: 42px;
  }
}
.chapter__jp {
  font-size: 20px;
  position: relative;
  letter-spacing: 2px;
  margin-top: 6px;
  opacity: 0.8;
}
.chapter__jp::before, .chapter__jp::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: rgba(74, 47, 27, 0.4);
}
.chapter__jp::before {
  right: 100%;
  margin-right: 10px;
}
.chapter__jp::after {
  left: 100%;
  margin-left: 10px;
}

.profile {
  display: grid;
  gap: 20px;
}
@media screen and (min-width: 768px) {
  .profile {
    gap: 40px;
    grid-template-columns: 280px 1fr;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: start;
  }
}

.profile__image img {
  width: 100%;
  display: block;
  border: 3px solid #4a2f1b;
  padding: 6px;
  background: #ffffff;
  -webkit-box-shadow: 4px 4px 0 rgba(43, 27, 18, 0.6);
          box-shadow: 4px 4px 0 rgba(43, 27, 18, 0.6);
}

.profile__content p {
  margin-bottom: 8px;
}

.page-number {
  text-align: center;
  font-family: "Cinzel", serif;
  letter-spacing: 4px;
  opacity: 0.7;
}

.page-works {
  position: relative;
  background: radial-gradient(circle at center, #f5ead9 0%, #e6d7bf 45%, #cdb89b 100%);
  overflow-x: hidden;
}
.page-works::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.45;
  -webkit-animation: paperNoise 8s linear infinite;
          animation: paperNoise 8s linear infinite;
  pointer-events: none;
}
.page-works::after {
  content: "";
  position: fixed;
  inset: -20%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 60%), radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.12), transparent 60%);
  -webkit-filter: blur(30px);
          filter: blur(30px);
  opacity: 0.6;
  -webkit-animation: paperLight 10s ease-in-out infinite alternate;
          animation: paperLight 10s ease-in-out infinite alternate;
  pointer-events: none;
}

@-webkit-keyframes paperNoise {
  0% {
    -webkit-transform: translate(0, 0);
            transform: translate(0, 0);
  }
  100% {
    -webkit-transform: translate(120px, 120px);
            transform: translate(120px, 120px);
  }
}

@keyframes paperNoise {
  0% {
    -webkit-transform: translate(0, 0);
            transform: translate(0, 0);
  }
  100% {
    -webkit-transform: translate(120px, 120px);
            transform: translate(120px, 120px);
  }
}
@-webkit-keyframes paperLight {
  0% {
    -webkit-transform: translate(-3%, -3%) scale(1);
            transform: translate(-3%, -3%) scale(1);
  }
  100% {
    -webkit-transform: translate(3%, 3%) scale(1.05);
            transform: translate(3%, 3%) scale(1.05);
  }
}
@keyframes paperLight {
  0% {
    -webkit-transform: translate(-3%, -3%) scale(1);
            transform: translate(-3%, -3%) scale(1);
  }
  100% {
    -webkit-transform: translate(3%, 3%) scale(1.05);
            transform: translate(3%, 3%) scale(1.05);
  }
}
.works {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
  counter-reset: works;
}
@media screen and (min-width: 768px) {
  .works {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
  }
}

.work-card {
  position: relative;
  counter-increment: works;
  border: 3px solid rgba(74, 47, 27, 0.8);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  -webkit-box-shadow: 6px 6px 0 rgba(43, 27, 18, 0.6);
          box-shadow: 6px 6px 0 rgba(43, 27, 18, 0.6);
  overflow: hidden;
  -webkit-transition: 0.25s;
  transition: 0.25s;
}
.work-card::before {
  content: "Record " counter(works, decimal-leading-zero);
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 2px;
  background: rgba(243, 231, 214, 0.9);
  padding: 4px 8px;
  border: 1px solid rgba(74, 47, 27, 0.6);
  border-radius: 4px;
  color: #4a2f1b;
  -webkit-box-shadow: 2px 2px 0 rgba(43, 27, 18, 0.4);
          box-shadow: 2px 2px 0 rgba(43, 27, 18, 0.4);
  z-index: 2;
}
.work-card:hover {
  -webkit-transform: translateY(-6px);
          transform: translateY(-6px);
  -webkit-box-shadow: 10px 10px 0 rgba(43, 27, 18, 0.7);
          box-shadow: 10px 10px 0 rgba(43, 27, 18, 0.7);
}
.work-card__link {
  display: block;
  color: inherit;
}
.work-card__image {
  border-bottom: 1px dashed rgba(74, 47, 27, 0.5);
  background: #f3e7d6;
  overflow: hidden;
}
.work-card__image img {
  aspect-ratio: 16/10;
  -o-object-fit: cover;
     object-fit: cover;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
.work-card:hover img {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
}
.work-card__body {
  padding: 20px 20px 24px;
}
.work-card__title {
  font-family: "Cinzel", serif;
  font-size: 20px;
  letter-spacing: 1px;
  margin-bottom: 6px;
  position: relative;
}
.work-card__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(74, 47, 27, 0.6);
  margin-top: 6px;
}
.work-card__desc {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 8px;
}
.work-card__skills {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 14px;
}
.work-card__skills span {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  font-weight: 600;
}
.work-card__skill--html {
  background: rgba(228, 77, 38, 0.3);
  color: #000;
}
.work-card__skill--css {
  background: rgba(38, 77, 228, 0.3);
  color: #000;
}
.work-card__skill--js {
  background: rgba(247, 223, 30, 0.3);
  color: #000;
}
.work-card__skill--wp {
  background: rgba(33, 117, 155, 0.3);
  color: #000;
}
.work-card__open {
  font-size: 13px;
  letter-spacing: 1px;
  color: #4a2f1b;
  position: relative;
}
.work-card__open::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: #c89b3c;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.work-card__open:hover {
  color: #c89b3c;
}
.work-card:hover .work-card__open::after {
  width: 100%;
}

.page-showcase {
  position: relative;
  background: radial-gradient(circle at center, #1b2330 0%, #0d141f 60%, #06090e 100%);
  color: #eaf2ff;
}
.page-showcase::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(rgba(0, 255, 255, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 70px 70px;
  opacity: 0.3;
  -webkit-transform: translateY(0);
          transform: translateY(0);
  -webkit-animation: holoGrid 18s linear infinite;
          animation: holoGrid 18s linear infinite;
  pointer-events: none;
}
@-webkit-keyframes holoGrid {
  to {
    -webkit-transform: translateY(90px);
            transform: translateY(90px);
  }
}
@keyframes holoGrid {
  to {
    -webkit-transform: translateY(90px);
            transform: translateY(90px);
  }
}
.page-showcase::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 30% 30%, rgba(0, 255, 255, 0.22), transparent 55%), radial-gradient(circle at 75% 70%, rgba(120, 160, 255, 0.16), transparent 60%), radial-gradient(circle at 55% 55%, rgba(0, 0, 0, 0.25), transparent 55%);
  -webkit-filter: blur(10px);
          filter: blur(10px);
  opacity: 0.9;
  -webkit-animation: energyDrift 10s ease-in-out infinite alternate;
          animation: energyDrift 10s ease-in-out infinite alternate;
  pointer-events: none;
}
@-webkit-keyframes energyDrift {
  0% {
    -webkit-transform: translate(-2%, -2%) scale(1);
            transform: translate(-2%, -2%) scale(1);
  }
  100% {
    -webkit-transform: translate(2%, 2%) scale(1.05);
            transform: translate(2%, 2%) scale(1.05);
  }
}
@keyframes energyDrift {
  0% {
    -webkit-transform: translate(-2%, -2%) scale(1);
            transform: translate(-2%, -2%) scale(1);
  }
  100% {
    -webkit-transform: translate(2%, 2%) scale(1.05);
            transform: translate(2%, 2%) scale(1.05);
  }
}
.page-showcase .chapter__jp::before, .page-showcase .chapter__jp::after {
  background: rgba(0, 255, 255, 0.6);
  -webkit-box-shadow: 0 0 6px rgba(0, 255, 255, 0.8);
          box-shadow: 0 0 6px rgba(0, 255, 255, 0.8);
}

.showcase {
  display: grid;
  gap: 40px;
  margin-top: 40px;
  position: relative;
}
@media screen and (min-width: 768px) {
  .showcase {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
  }
}

.showcase-card {
  position: relative;
  overflow: hidden;
}
.showcase-card::before {
  content: "SKILL ACTIVATED";
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 11px;
  letter-spacing: 2px;
  color: #0ff;
  opacity: 0;
  text-shadow: 0 0 6px #0ff, 0 0 12px #0ff;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  pointer-events: none;
}
.showcase-card:hover::before {
  opacity: 1;
  pointer-events: none;
  -webkit-animation: skillBlink 0.6s infinite alternate;
          animation: skillBlink 0.6s infinite alternate;
}
@-webkit-keyframes skillBlink {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
@keyframes skillBlink {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
.showcase-card::after {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(0, 255, 255, 0.4), transparent);
  opacity: 0.6;
}
.showcase-card:hover::after {
  -webkit-animation: scanLine 1s ease;
          animation: scanLine 1s ease;
}
@-webkit-keyframes scanLine {
  0% {
    left: -100%;
  }
  100% {
    left: 120%;
  }
}
@keyframes scanLine {
  0% {
    left: -100%;
  }
  100% {
    left: 120%;
  }
}
.showcase-card__preview {
  height: 160px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-bottom: 1px solid rgba(0, 255, 255, 0.4);
}
.showcase-card__body {
  padding: 18px 20px 24px;
}
.showcase-card__title {
  font-family: "Press Start 2P";
  font-size: 14px;
  color: #ff5c5c;
  text-shadow: 0 0 4px rgba(255, 64, 64, 0.4), 0 0 8px rgba(255, 64, 64, 0.3);
  margin-bottom: 12px;
}
.showcase-card__description {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  padding-left: 14px;
  border-left: 3px solid #4ef2ff;
}
.showcase-card__description::before {
  content: "▶";
  margin-right: 6px;
  color: #4ef2ff;
}
.showcase-card__tags {
  margin-top: 14px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
}
.showcase-card__tags li {
  font-size: 11px;
  padding: 4px 8px;
  color: #4ef2ff;
  border: 1px solid #4ef2ff;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
}

.pixel-charge {
  font-family: "Press Start 2P";
  font-size: 11px;
  padding: 16px 24px;
  border: 2px solid #4ef2ff;
  background: #223247;
  color: #b9e9ff;
  -webkit-box-shadow: 4px 4px 0 #0e1a27;
          box-shadow: 4px 4px 0 #0e1a27;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.pixel-charge:active {
  -webkit-transform: translate(4px, 4px);
          transform: translate(4px, 4px);
  -webkit-box-shadow: 0 0 0 #0e1a27;
          box-shadow: 0 0 0 #0e1a27;
}
.pixel-charge.skill {
  -webkit-animation: skillFlash 0.4s ease 3;
          animation: skillFlash 0.4s ease 3;
}
@-webkit-keyframes skillFlash {
  0% {
    -webkit-filter: brightness(1);
            filter: brightness(1);
    -webkit-box-shadow: 6px 6px 0 #111;
            box-shadow: 6px 6px 0 #111;
  }
  50% {
    -webkit-filter: brightness(2);
            filter: brightness(2);
    -webkit-box-shadow: 0 0 20px #ff4040, 0 0 40px #ff2020;
            box-shadow: 0 0 20px #ff4040, 0 0 40px #ff2020;
  }
  100% {
    -webkit-filter: brightness(1);
            filter: brightness(1);
    -webkit-box-shadow: 6px 6px 0 #111;
            box-shadow: 6px 6px 0 #111;
  }
}
@keyframes skillFlash {
  0% {
    -webkit-filter: brightness(1);
            filter: brightness(1);
    -webkit-box-shadow: 6px 6px 0 #111;
            box-shadow: 6px 6px 0 #111;
  }
  50% {
    -webkit-filter: brightness(2);
            filter: brightness(2);
    -webkit-box-shadow: 0 0 20px #ff4040, 0 0 40px #ff2020;
            box-shadow: 0 0 20px #ff4040, 0 0 40px #ff2020;
  }
  100% {
    -webkit-filter: brightness(1);
            filter: brightness(1);
    -webkit-box-shadow: 6px 6px 0 #111;
            box-shadow: 6px 6px 0 #111;
  }
}
.pixel-charge__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  height: 100%;
  background: -webkit-gradient(linear, left top, right top, from(#00e5ff), color-stop(#00c8ff), to(#00a8ff));
  background: linear-gradient(to right, #00e5ff, #00c8ff, #00a8ff);
  -webkit-transition: width 0.05s linear;
  transition: width 0.05s linear;
  z-index: 1;
}
.pixel-charge__text {
  position: relative;
  z-index: 2;
}

.dot-btn {
  font-family: "Press Start 2P";
  font-size: 12px;
  padding: 16px 22px;
  border: 2px solid #4ef2ff;
  background: #223247;
  color: #b9e9ff;
  cursor: pointer;
  -webkit-box-shadow: 4px 4px 0 #0e1a27;
          box-shadow: 4px 4px 0 #0e1a27;
  -webkit-transition: 0.1s;
  transition: 0.1s;
}
.dot-btn:hover {
  -webkit-box-shadow: 0 0 12px rgba(78, 242, 255, 0.6), 4px 4px 0 #0e1a27;
          box-shadow: 0 0 12px rgba(78, 242, 255, 0.6), 4px 4px 0 #0e1a27;
}
.dot-btn:active {
  -webkit-transform: translate(4px, 4px);
          transform: translate(4px, 4px);
  -webkit-box-shadow: 0 0 0 #0e1a27;
          box-shadow: 0 0 0 #0e1a27;
}
.dot-btn.active {
  background: #00e5ff;
  color: #02242c;
}

.fade-demo {
  height: 140px;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  overflow: hidden;
}

.star-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #4ef2ff;
  border-radius: 50%;
  opacity: 0.7;
  -webkit-animation: starMove linear infinite;
          animation: starMove linear infinite;
  pointer-events: none;
}

@-webkit-keyframes starMove {
  0% {
    -webkit-transform: translateY(-40px);
            transform: translateY(-40px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(200px);
            transform: translateY(200px);
    opacity: 0;
  }
}

@keyframes starMove {
  0% {
    -webkit-transform: translateY(-40px);
            transform: translateY(-40px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(200px);
            transform: translateY(200px);
    opacity: 0;
  }
}
.dot-word {
  font-family: "Press Start 2P";
  font-size: 22px;
  color: #4ef2ff;
  letter-spacing: 8px;
  position: relative;
  z-index: 2;
}
.dot-word span {
  opacity: 0;
  -webkit-transform: scale(0.5);
          transform: scale(0.5);
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}
.dot-word.show span {
  opacity: 1;
  -webkit-transform: scale(1);
          transform: scale(1);
}
.dot-word.glow {
  -webkit-animation: glow 0.4s ease 3;
          animation: glow 0.4s ease 3;
}

@-webkit-keyframes glow {
  0% {
    text-shadow: none;
  }
  50% {
    text-shadow: 0 0 10px #4ef2ff, 0 0 20px #4ef2ff, 0 0 30px #4ef2ff;
  }
  100% {
    text-shadow: none;
  }
}

@keyframes glow {
  0% {
    text-shadow: none;
  }
  50% {
    text-shadow: 0 0 10px #4ef2ff, 0 0 20px #4ef2ff, 0 0 30px #4ef2ff;
  }
  100% {
    text-shadow: none;
  }
}
.burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #4ef2ff;
  border-radius: 50%;
  -webkit-animation: explode 1s ease forwards;
          animation: explode 1s ease forwards;
}

@-webkit-keyframes explode {
  0% {
    -webkit-transform: translate(0, 0);
            transform: translate(0, 0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translate(var(--x), var(--y));
            transform: translate(var(--x), var(--y));
    opacity: 0;
  }
}

@keyframes explode {
  0% {
    -webkit-transform: translate(0, 0);
            transform: translate(0, 0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translate(var(--x), var(--y));
            transform: translate(var(--x), var(--y));
    opacity: 0;
  }
}
.pixel-scan-card {
  width: 140px;
  height: 80px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-family: "Press Start 2P";
  font-size: 10px;
  color: #4ef2ff;
  border: 3px solid #4ef2ff;
  background: #08131a;
  position: relative;
  overflow: hidden;
  -webkit-box-shadow: 0 0 0 3px #0ff inset, 0 0 10px rgba(78, 242, 255, 0.4);
          box-shadow: 0 0 0 3px #0ff inset, 0 0 10px rgba(78, 242, 255, 0.4);
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.pixel-scan-card__text {
  position: relative;
  z-index: 2;
}
.pixel-scan-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(rgba(78, 242, 255, 0.4)), to(transparent));
  background: linear-gradient(to bottom, transparent, rgba(78, 242, 255, 0.4), transparent);
  -webkit-transition: 0.6s;
  transition: 0.6s;
}
.pixel-scan-card:hover::before {
  top: 100%;
}
.pixel-scan-card:hover {
  -webkit-box-shadow: 0 0 0 3px #0ff inset, 0 0 20px #4ef2ff, 0 0 40px rgba(78, 242, 255, 0.6);
          box-shadow: 0 0 0 3px #0ff inset, 0 0 20px #4ef2ff, 0 0 40px rgba(78, 242, 255, 0.6);
}

.contact-ending {
  text-align: center;
  margin-top: 60px;
}
.contact-ending__text {
  font-family: "Noto Sans JP";
  line-height: 2.2;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}
.contact-ending__actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 16px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.ending-menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
}
@media screen and (min-width: 768px) {
  .ending-menu {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    gap: 32px;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
}

.ending-menu__item {
  position: relative;
  font-family: "Press Start 2P";
  font-size: 12px;
  color: #c9a96e;
  text-decoration: none;
  padding-left: 20px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.ending-menu__item::before {
  content: "▶";
  position: absolute;
  left: 0;
  opacity: 0;
  -webkit-transition: 0.2s;
  transition: 0.2s;
}
.ending-menu__item:hover::before {
  opacity: 1;
}
.ending-menu__item:hover {
  color: #e6cfa2;
  text-shadow: 0 0 8px rgba(230, 207, 162, 0.8);
}

.ending-menu__item--primary {
  color: #c9a96e;
}
.ending-menu__item--primary:hover {
  color: #e6cfa2;
  text-shadow: 0 0 8px rgba(230, 207, 162, 0.8);
}

.ending-menu__item--secondary {
  color: #8a8a8a;
}
.ending-menu__item--secondary:hover {
  color: #bdbdbd;
}