/*
Theme Name: Portfolio Prototype
Author: あなたのお名前
Description: Web Designer Portfolio Theme
Version: 1.0
*/

body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: #fcfcfc;
  color: #1a1a1a;
  overflow-x: hidden;
}
.font-serif {
  font-family: "Playfair Display", serif;
}

/* リビールアニメーション */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* FV専用のテキストアニメーション：下からスッと出るマスク効果 */
.mask-reveal {
  overflow: hidden;
  display: inline-block;
}
.mask-reveal span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}
.active .mask-reveal span {
  transform: translateY(0);
}

/* ホバーエフェクト */
.work-card img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover img {
  transform: scale(1.05);
}

/* スクロールバー */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

#page-home,
#page-detail {
  transition: opacity 0.5s ease;
}
.hidden-page {
  display: none;
  opacity: 0;
}

.line-animation {
  position: relative;
}
.line-animation::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.line-animation:hover::after {
  width: 100%;
}

/* FV 背景のグリッド装飾 */
.bg-grid {
  background-image:
    linear-gradient(#f0f0f0 1px, transparent 1px),
    linear-gradient(90deg, #f0f0f0 1px, transparent 1px);
  background-size: 100px 100px;
  opacity: 0.3;
}
