@charset "utf-8";

.parallax-container {
  position: relative;
  height: 100vh;
  overflow: hidden;
  /* margin-top削除 - bodyのpadding-topで対応済み */
}

.parallax-bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(
      circle at 20% 80%,
      rgb(255 215 0 / 20%) 0%,
      transparent 50%
    ),
    radial-gradient(circle at 80% 20%, rgb(255 215 0 / 10%) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgb(255 215 0 / 10%) 0%, transparent 50%),
    linear-gradient(
      135deg,
      #0a0a0a 0%,
      #1a1a1a 25%,
      #2d2d2d 50%,
      #1a1a1a 75%,
      #0a0a0a 100%
    );
  will-change: transform;
}

.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: clamp(1rem, 8vw, 3rem);
  font-weight: bold;
  background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
  animation: subtleGlow 4s ease-in-out infinite alternate;
  letter-spacing: 2px;
  font-family: serif;
}

@keyframes subtleGlow {
  from {
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
  }
  to {
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
  }
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #ccc;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
  font-size: clamp(16px, 3vw, 16px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.decorative-line {
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
  margin: 30px auto;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1s forwards;
}

/* パーティクル効果改良 */
.ambient-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: drift linear infinite;
}

@keyframes drift {
  0% {
    transform: translateY(100vh) translateX(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(var(--drift-x)) rotate(360deg);
    opacity: 0;
  }
}

.particle:nth-child(1) {
  left: 8%;
  width: 3px;
  height: 3px;
  background: rgba(255, 215, 0, 0.8);
  animation-delay: 0s;
  animation-duration: 15s;
  --drift-x: 80px;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

.particle:nth-child(2) {
  left: 18%;
  width: 6px;
  height: 6px;
  background: rgba(255, 237, 78, 0.6);
  animation-delay: 2s;
  animation-duration: 18s;
  --drift-x: -120px;
  box-shadow: 0 0 10px rgba(255, 237, 78, 0.4);
}

.particle:nth-child(3) {
  left: 28%;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  animation-delay: 4s;
  animation-duration: 12s;
  --drift-x: 150px;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.7);
}

.particle:nth-child(4) {
  left: 38%;
  width: 5px;
  height: 5px;
  background: rgba(255, 215, 0, 0.7);
  animation-delay: 6s;
  animation-duration: 20s;
  --drift-x: -90px;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.particle:nth-child(5) {
  left: 48%;
  width: 4px;
  height: 4px;
  background: rgba(255, 248, 220, 0.8);
  animation-delay: 8s;
  animation-duration: 16s;
  --drift-x: 110px;
  box-shadow: 0 0 6px rgba(255, 248, 220, 0.6);
}

.particle:nth-child(6) {
  left: 58%;
  width: 7px;
  height: 7px;
  background: rgba(255, 215, 0, 0.5);
  animation-delay: 10s;
  animation-duration: 14s;
  --drift-x: -140px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.particle:nth-child(7) {
  left: 68%;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.7);
  animation-delay: 1s;
  animation-duration: 22s;
  --drift-x: 200px;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.particle:nth-child(8) {
  left: 78%;
  width: 5px;
  height: 5px;
  background: rgba(255, 237, 78, 0.8);
  animation-delay: 3s;
  animation-duration: 17s;
  --drift-x: -80px;
  box-shadow: 0 0 8px rgba(255, 237, 78, 0.6);
}

.particle:nth-child(9) {
  left: 88%;
  width: 4px;
  height: 4px;
  background: rgba(255, 215, 0, 0.9);
  animation-delay: 5s;
  animation-duration: 19s;
  --drift-x: 160px;
  box-shadow: 0 0 7px rgba(255, 215, 0, 0.7);
}

.particle:nth-child(10) {
  left: 12%;
  width: 6px;
  height: 6px;
  background: rgba(255, 248, 220, 0.6);
  animation-delay: 7s;
  animation-duration: 21s;
  --drift-x: -110px;
  box-shadow: 0 0 9px rgba(255, 248, 220, 0.4);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffd700;
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.content-section {
  position: relative;
  padding: 30px 0;
  background: linear-gradient(180deg, #000 0%, #1a1a1a 50%, #000 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 目次セクション */
.table-of-contents {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 60px;
  position: sticky;
  top: 20px;
  z-index: 10;
  max-height: 70vh;
  overflow-y: auto;
}

.toc-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 25px;
  color: #ffd700;
  position: relative;
}

.toc-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 25px;
}

.toc-item {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.toc-item:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
  transform: translateY(-3px);
}

.toc-icon {
  font-size: 1.5rem;
  color: #ffd700;
  margin-bottom: 8px;
}

.toc-text {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9rem;
}

/* ドロワー改良 */
.toc-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000;
  padding: 15px 20px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
  border: none;
  font-size: 14px;
}

.toc-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
}

.toc-drawer {
  position: fixed;
  right: -100%;
  top: 0;
  width: 350px;
  max-width: 55vw;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  backdrop-filter: blur(10px);
  border-left: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  padding: 30px 25px;
  box-sizing: border-box;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
  overflow-y: auto;
}

.toc-drawer.open {
  right: 0;
}

.toc-drawer button {
  background: transparent;
  border: 2px solid #ffd700;
  color: #ffd700;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  margin-bottom: 30px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.toc-drawer button:hover {
  background: #ffd700;
  color: #000;
}

.toc-drawer ul {
  list-style: none;
  padding: 0;
}

.toc-drawer li {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.toc-drawer li a {
  display: block;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
  font-weight: 500;
}

.toc-drawer li:hover a {
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
  transform: translateX(10px);
}

.toc-drawer li.active a {
  font-weight: bold;
  color: #000;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border: 2px solid #ffd700;
}

/* 作品セクション */
.section-title {
  font-size: clamp(20px, 1.8vw, 25px);
  margin: 0px 0 40px 0;
  color: #ffd700;
  position: relative;
  text-align: center;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

.category-section {
  margin-bottom: 60px;
}

.category-description {
  text-align: center;
  color: #ccc;
  font-size: 15px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.works-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.work-item > div {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 15px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.work-item > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 215, 0, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.work-item > div:hover::before {
  left: 100%;
}

.work-item > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
}

.work-image {
  flex-shrink: 0;
  width: 300px;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.work-item > div:hover .work-image img {
  transform: scale(1.05);
}

.work-content {
  flex: 1;
}

.work-title {
  font-size: 16px;
  color: #ffd700;
  margin-bottom: 5px;
}
.cath {
  position: absolute;
  right: 0;
  top: 0;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.8);
  color: #000;
  font-family: serif;
  text-align: left;
}

.work-description {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: justify;
}

.edit-comment {
  color: #ffed4e;
  font-style: italic;
  margin-bottom: 20px;
  padding: 10px;
  background: rgba(255, 215, 0, 0.1);
  border-left: 3px solid #ffd700;
  border-radius: 5px;
  font-size: 13.5px;
  text-align: justify;
}

.work-link a {
  color: #ffd700;
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 20px;
  border: 1px solid #ffd700;
  border-radius: 5px;
  display: inline-block;
  transition: all 0.3s ease;
}

.work-link a:hover {
  background: #ffd700;
  color: #000;
}

/* フッター改良 */
footer {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  border-top: 2px solid rgba(255, 215, 0, 0.2);
  padding: 50px 0 30px;
  margin-top: 80px;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.colbox {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
  list-style: none;
  flex-wrap: wrap;
}

.colbox a {
  color: #ccc;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.colbox a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.1),
    rgba(255, 215, 0, 0.2)
  );
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.colbox a:hover::before {
  opacity: 1;
}

.colbox a:hover {
  color: #ffd700;
  transform: translateY(-2px);
}

.sp {
  /* display: none; */
}

footer > div:last-child {
  text-align: center;
  color: #666;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  body {
    padding-top: 60px; /* モバイル用のヘッダー高さ調整 */
  }

  header .container {
    height: 60px;
    padding: 0 15px;
  }

  nav ul {
    gap: 5px; /* モバイルでさらに間隔を狭める */
  }

  nav a {
    padding: 6px 8px; /* モバイル用パディング */
    font-size: 14px;
  }

  .parallax-container {
    margin-top: 60px;
  }

  .toc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .table-of-contents {
    padding: 20px 15px;
    position: relative;
    top: 0;
    max-height: none;
  }

  .toc-item {
    padding: 12px 8px;
  }

  .toc-icon {
    font-size: 1.3rem;
    margin-bottom: 6px;
  }

  .toc-text {
    font-size: 0.8rem;
  }

  .work-item > div {
    flex-direction: column;
    text-align: center;
    padding: 25px 50px 25px 25px;
  }

  .work-image {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .container {
    padding: 0 15px;
  }

  .toc-toggle {
    bottom: 20px;
    right: 20px;
    padding: 12px 16px;
  }

  .sp {
    /* display: block; */
  }

  .sp .colbox {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 300px;
    margin: 0 auto 30px;
  }

  .sp .colbox li {
    text-align: center;
  }

  .sp .colbox a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
  }

  .sp .colbox img {
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
  }

  .sp .colbox span {
    font-size: 12px;
    color: #fff;
  }
  .cath {
    writing-mode: tb;
    height: 250px;
    padding: 0.4rem;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .content-section {
    padding: 40px 0;
  }

  .toc-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .table-of-contents {
    padding: 15px 10px;
    margin-bottom: 40px;
  }

  .toc-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .work-item > div {
    padding: 20px 20px 20px;
  }

  .work-image {
    /* height: 150px; */
  }

  .colbox {
    gap: 20px;
  }

  .colbox a {
    padding: 8px 12px;
    font-size: 14px;
  }
}
