@charset "UTF-8";

img {
  max-width: 100%;
}

:root {
  --bg-color: #0E3332;
  --text-color: #e2e8f0;
  --accent-1: #2dd4bf;
  --accent-2: #818cf8;
  --monitor-bg: #0a0a0a;
  --monitor-text: #00ff41;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shape {
  animation: float 6s ease-in-out infinite;
  opacity: 0.6;
}

.shape:nth-child(2) {
  animation-delay: 1s;
  animation-duration: 7s;
}

.shape:nth-child(3) {
  animation-delay: 2s;
  animation-duration: 5s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.anim-top-left,
.anim-top,
.anim-top-right,
.anim-left,
.anim-right,
.anim-bottom {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation-fill-mode: forwards;
  animation-duration: 1.2s;
  animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.anim-top-left {
  animation-name: flyInTopLeft;
  animation-delay: 0.5s;
}

@keyframes flyInTopLeft {
  from {
    opacity: 0;
    transform: translate(-300px, -200px) rotate(-45deg);
  }

  to {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
  }
}

.anim-top {
  animation-name: flyInTop;
  animation-delay: 0.9s;
}

@keyframes flyInTop {
  from {
    opacity: 0;
    transform: translate(0, -200px);
  }

  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

.anim-top-right {
  animation-name: flyInTopRight;
  animation-delay: 1.1s;
}

@keyframes flyInTopRight {
  from {
    opacity: 0;
    transform: translate(300px, -200px) rotate(45deg);
  }

  to {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
  }
}

.anim-left {
  animation-name: flyInLeft;
  animation-delay: 1.3s;
}

@keyframes flyInLeft {
  from {
    opacity: 0;
    transform: translate(-200px, 0) scale(0.5);
  }

  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

.anim-right {
  animation-name: flyInRight;
  animation-delay: 1.5s;
}

@keyframes flyInRight {
  from {
    opacity: 0;
    transform: translate(200px, 0) scale(0.5);
  }

  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

.anim-expand {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 1s ease-out forwards;
  animation-delay: 1.7s;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.anim-bottom {
  animation-name: flyInBottom;
  animation-delay: 2.8s;
}

@keyframes flyInBottom {
  from {
    opacity: 0;
    transform: translate(0, 50px);
  }

  to {
    opacity: 0.8;
    transform: translate(0, 0);
  }
}

.svg-cursor {
  animation: blink 1s infinite;
  fill: var(--accent-1);
  font-weight: bold;
}

.blackboard-frame {
  border: 12px solid #5d4037;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.5);
  background: #5d4037;
  width: 100%;
  height: 350px;
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (min-width: 768px) {
  .blackboard-frame {
    height: 500px;
    border-width: 16px;
  }
}

.blackboard-surface {
  background-color: #1a3c2b;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 80%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  color: #f1f5f9;
  font-family: "Hachi Maru Pop", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 1rem 2rem;
  flex: 1;
  width: 100%;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .blackboard-surface {
    font-size: 2rem;
    padding: 1.5rem 3rem;
  }
}

.chalk-cursor {
  display: inline-block;
  color: rgba(255, 255, 255, 0.7);
  animation: blink 1s infinite;
  font-weight: 100;
}

.chalk-tray {
  height: 20px;
  background-color: #4e342e;
  width: 100%;
  position: relative;
  border-top: 2px solid rgba(0, 0, 0, 0.3);
  border-radius: 0 0 4px 4px;
  display: flex;
  align-items: center;
  padding-left: 20px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.chalk-piece {
  width: 40px;
  height: 8px;
  background-color: #fff;
  border-radius: 2px;
  transform: rotate(-2deg);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
  opacity: 0.5;
}

.eraser {
  width: 60px;
  height: 12px;
  background-color: #333;
  border-top: 4px solid #d97706;
  margin-left: 20px;
  border-radius: 2px;
  transform: rotate(1deg);
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.device-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.device-wrapper:hover {
  transform: translateY(-10px);
}

.work-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.work-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-link:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 212, 191, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay span {
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 8px 16px;
  border: 2px solid white;
  border-radius: 4px;
}

.work-link:hover .overlay {
  opacity: 1;
}

.monitor {
  width: 320px;
  height: 200px;
  background: #333;
  border: 12px solid #333;
  border-radius: 8px;
  box-shadow: 0 0 0 2px #555;
  position: relative;
}

.monitor-screen {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  position: relative;
}

.monitor-stand {
  width: 80px;
  height: 40px;
  background: #444;
  margin-top: -5px;
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0% 100%);
  position: relative;
  z-index: 0;
}

.monitor-stand::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -20px;
  width: 120px;
  height: 8px;
  background: #444;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .monitor {
    width: 480px;
    height: 300px;
  }
}

.tablet {
  width: 200px;
  height: 260px;
  background: #222;
  border: 12px solid #222;
  border-radius: 16px;
  box-shadow: 0 0 0 1px #444;
}

.tablet-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.phone {
  width: 140px;
  height: 280px;
  background: #222;
  border: 10px solid #222;
  border-radius: 24px;
  box-shadow: 0 0 0 1px #444;
  position: relative;
}

.phone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 12px;
  background: #222;
  border-radius: 0 0 8px 8px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.phone-screen .work-link {
  position: relative;
}

.phone-screen .work-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #2dd4bf;
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.phone-screen .overlay {
  z-index: 10;
}

.fire-flicker {
  animation: flicker 3s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
  transform-origin: center bottom;
}

@keyframes flicker {
  0% {
    opacity: 0.8;
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
  }

  25% {
    opacity: 1;
    transform: scale(1.05) rotate(1deg);
    filter: brightness(1.1);
  }

  50% {
    opacity: 0.7;
    transform: scale(0.95) rotate(-1deg);
    filter: brightness(0.9);
  }

  75% {
    opacity: 0.9;
    transform: scale(1.02) rotate(0.5deg);
    filter: brightness(1.2);
  }

  100% {
    opacity: 0.8;
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
  }
}

.thumb-card {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) brightness(0.7);
  transition: filter 0.4s ease;
}

.thumb-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--accent-1);
  z-index: 10;
}

.thumb-card:hover img {
  filter: grayscale(0) brightness(1);
}

.gold-frame-wrapper {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 3 / 4;
  max-height: 70vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gold-frame {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #00100e;
  border: 20px solid #755c26;
  border-radius: 4px;
  border-image: linear-gradient(to bottom right, #4a3b18 0%, #755c26 25%, #9c7c38 50%, #755c26 75%, #4a3b18 100%) 1;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9), 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  box-sizing: border-box;
}

.gold-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
  opacity: 1;
  transform: translateX(0);
}

.gold-frame img.slide-out {
  opacity: 0;
  transform: translateX(-50px);
}

.gold-frame img.slide-in-ready {
  opacity: 0;
  transform: translateX(50px);
  transition: none;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 51, 50, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-overlay a {
  color: var(--accent-1);
  font-size: 1.2rem;
  font-weight: bold;
  border: 2px solid var(--accent-1);
  padding: 10px 24px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  pointer-events: auto;
  transition: all 0.3s ease;
}

.gallery-overlay a:hover {
  background: var(--accent-1);
  color: #0E3332;
}

.gold-frame:hover .gallery-overlay {
  opacity: 1;
}

.chalk-dropped {
  animation: chalkSettle 0.6s ease-out forwards;
  opacity: 1 !important;
}

@keyframes chalkSettle {
  0% {
    transform: translateY(-40px) rotate(20deg);
    opacity: 0;
  }

  40% {
    transform: translateY(0) rotate(-5deg);
    opacity: 1;
  }

  60% {
    transform: translateY(-10px) rotate(0deg);
  }

  100% {
    transform: translateY(0) rotate(-2deg);
    opacity: 1;
  }
}

.stamp-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
}

.stamp-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2)) grayscale(100%);
  transition: transform 0.4s ease, filter 0.4s ease;
}

@media (hover: hover) {
  .stamp-card:hover {
    transform: translateY(-15px) scale(1.2);
    background: rgba(255, 255, 255, 0.15);
    border-color: #2dd4bf;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(45, 212, 191, 0.3);
    z-index: 10;
  }

  .stamp-card:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4)) grayscale(0%);
  }
}

.stamp-card:active,
.stamp-card:focus {
  transform: translateY(-15px) scale(1.2);
  background: rgba(255, 255, 255, 0.15);
  border-color: #2dd4bf;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(45, 212, 191, 0.3);
  z-index: 10;
  outline: none;
}

.stamp-card:active img,
.stamp-card:focus img {
  transform: scale(1.05);
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4)) grayscale(0%);
}

.diagnostic-form {
  max-width: 500px;
  margin: auto;
  padding: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--text-color);
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.diagnostic-form h2 {
  color: var(--accent-1);
  margin-bottom: 0.5rem;
}

.diagnostic-form label {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: #99f6e4;
  text-align: center;
}

.diagnostic-form select,
.diagnostic-form textarea,
.diagnostic-form input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.diagnostic-form select:focus,
.diagnostic-form textarea:focus,
.diagnostic-form input:focus {
  outline: none;
  border-color: var(--accent-1);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.2);
}

.diagnostic-form option {
  background: var(--bg-color);
  color: #fff;
}

.diagnostic-form button {
  background: var(--accent-1);
  color: var(--bg-color);
  font-weight: bold;
  border: none;
  padding: 14px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  margin-top: 12px;
}

.diagnostic-form button:hover {
  background: #5eead4;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(45, 212, 191, 0.4);
}

@media (max-width: 480px) {
  .diagnostic-form {
    padding: 24px;
    margin: 0 16px;
  }
}

@media (min-width: 768px) {
  .diagnostic-form {
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 24px; /* 縦gap 横gap */
    align-items: end;
  }

  .diagnostic-form h2 {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
  }

  .diagnostic-form label:nth-of-type(1) { grid-column: 1; grid-row: 2; }
  .diagnostic-form select:nth-of-type(1) { grid-column: 1; grid-row: 3; }

  .diagnostic-form label:nth-of-type(2) { grid-column: 2; grid-row: 2; }
  .diagnostic-form select:nth-of-type(2) { grid-column: 2; grid-row: 3; }

  .diagnostic-form label:nth-of-type(3) { grid-column: 3; grid-row: 2; }
  .diagnostic-form select:nth-of-type(3) { grid-column: 3; grid-row: 3; }

  .diagnostic-form label:nth-of-type(4) { 
    grid-column: 1 / -1; 
    grid-row: 4; 
    margin-top: 16px;
  }
  .diagnostic-form textarea { grid-column: 1 / -1; grid-row: 5; }

  .diagnostic-form label:nth-of-type(5) {
    grid-column: 1 / -1;
    grid-row: 6;
    margin-top: 16px;
  }
  .diagnostic-form input:nth-of-type(1) {
    grid-column: 1 / -1;
    grid-row: 7;
  }

  .diagnostic-form label:nth-of-type(6) {
    grid-column: 1 / -1;
    grid-row: 8;
    margin-top: 16px;
  }
  .diagnostic-form input:nth-of-type(2) {
    grid-column: 1 / -1;
    grid-row: 9;
  }

  .diagnostic-form button {
    grid-column: 1 / -1;
    grid-row: 10;
    width: 40%;
    justify-self: center;
    margin-top: 24px;
  }
}