/* ===== Works Page 専用スタイル（About準拠修正版） ===== */

/* ===== ファーストビュー（Works） ===== */
.hero-works {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-works__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: url('../img/works.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-works__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 100vh;
  opacity: 1;
  animation: heroImageZoom 20s ease-in-out infinite;
}

.hero-works__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.hero-works__content {
  text-align: center;
  color: var(--color-white);
  max-width: 800px;
  padding: 0 20px;
  position: relative;
  z-index: 3;
  animation: heroContentSlide 1s ease-out;
}

.hero-works__title {
  margin-bottom: 2rem;
}

.hero-works__title-main {
  display: block;
  font-family: var(--font-primary);
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--color-white), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite;
}

.hero-works__title-sub {
  display: block;
  font-family: var(--font-japanese);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-works__description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* スクロールボタン */
.hero-works__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* ===== 制作実績ギャラリー ===== */
.works-gallery {
  padding: 8rem 0;
  background: var(--color-background);
  position: relative;
  overflow: hidden;
}

.works-gallery::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(111, 165, 199, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.works-gallery::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(168, 216, 185, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.works-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 4rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

/* ===== 作品アイテム ===== */
.work-item {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  transform: translateY(0);
}

.work-item:hover {
  transform: translateY(-20px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.work-item__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work-item__image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.work-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-item:hover .work-item__image img {
  transform: scale(1.15);
}

.work-item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(111, 165, 199, 0.9),
    rgba(168, 216, 185, 0.9)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-item:hover .work-item__overlay {
  opacity: 1;
}

.work-item__overlay-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-white);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-item:hover .work-item__overlay-content {
  transform: translateY(0);
}

.work-item__overlay-text {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.work-item__overlay-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-item:hover .work-item__overlay-icon {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(45deg);
}

.work-item__content {
  padding: 2.5rem;
}

.work-item__category {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.work-item__title {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.work-item__description {
  color: #666;
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.work-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.work-item__tag {
  padding: 0.5rem 1rem;
  background: rgba(111, 165, 199, 0.1);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 15px;
  border: 1px solid rgba(111, 165, 199, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-item__tag:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ===== 制作への想い セクション ===== */
.works-philosophy {
  padding: 8rem 0;
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.works-philosophy::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1200px;
  height: 1200px;
  background: radial-gradient(
    circle,
    rgba(111, 165, 199, 0.03) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.works-philosophy__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.works-philosophy__title {
  font-family: var(--font-japanese);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 3rem;
  position: relative;
}

.works-philosophy__title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  border-radius: 2px;
}

.works-philosophy__description {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.works-philosophy__call {
  font-size: 1.4rem;
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.6;
}

.works-philosophy__call strong {
  color: var(--color-primary);
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ===== お問い合わせCTA セクション ===== */
.contact-cta {
  padding: 6rem 0;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.05"/><circle cx="40" cy="80" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
  z-index: 0;
}

.contact-cta .section-title {
  color: var(--color-white);
  margin-bottom: 3rem;
}

.contact-cta .section-title::after {
  background: var(--color-white);
}

.contact-cta .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.contact-cta__buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.contact-cta .btn--primary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.contact-cta .btn--primary:hover {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.contact-cta .btn--secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.contact-cta .btn--secondary:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ===== アニメーション用クラス ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== ホバーエフェクトの詳細調整 ===== */
.work-item {
  cursor: pointer;
  will-change: transform;
}

.work-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(111, 165, 199, 0.02),
    rgba(168, 216, 185, 0.02)
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.work-item:hover::before {
  opacity: 1;
}

/* ===== マイクロインタラクション ===== */
.work-item__category {
  position: relative;
  overflow: hidden;
}

.work-item__category::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

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

/* ===== スクロール連動エフェクト ===== */
.parallax-element {
  transform: translateY(0);
  transition: transform 0.1s ease-out;
}

/* ===== レスポンシブデザイン（About準拠） ===== */
@media (max-width: 1200px) {
  .works-gallery__grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  .works-gallery__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 600px;
    margin: 3rem auto 0;
  }

  .work-item__image {
    height: 250px;
  }
}

@media (max-width: 768px) {
  /* ヒーローセクション */
  .hero-works__title-main {
    font-size: 3rem;
  }

  .hero-works__title-sub {
    font-size: 1.1rem;
    letter-spacing: 2px;
  }

  .hero-works__description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  /* セクション調整 */
  .works-gallery,
  .works-philosophy {
    padding: 6rem 0;
  }

  .contact-cta {
    padding: 5rem 0;
  }

  /* タイトル調整 */
  .works-philosophy__title {
    font-size: 2.2rem;
  }

  /* ボタン調整 */
  .contact-cta__buttons {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  /* 作品アイテム調整 */
  .work-item__content {
    padding: 2rem;
  }

  .work-item__title {
    font-size: 1.8rem;
  }

  .work-item__image {
    height: 220px;
  }
}

@media (max-width: 480px) {
  /* コンテナ調整 */
  .container {
    padding: 0 15px;
  }

  /* ヒーローセクション */
  .hero-works__title-main {
    font-size: 2.5rem;
  }

  .hero-works__description {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
  }

  .hero-works__scroll {
    bottom: 20px;
  }

  /* セクション調整 */
  .works-gallery,
  .works-philosophy {
    padding: 4rem 0;
  }

  .contact-cta {
    padding: 4rem 0;
  }

  /* タイトル調整 */
  .works-philosophy__title {
    font-size: 1.8rem;
  }

  .works-philosophy__description {
    font-size: 1rem;
  }

  .works-philosophy__call {
    font-size: 1rem;
  }

  /* 作品アイテム調整 */
  .works-gallery__grid {
    gap: 2.5rem;
  }

  .work-item__content {
    padding: 1.5rem;
  }

  .work-item__title {
    font-size: 1.5rem;
  }

  .work-item__description {
    font-size: 0.95rem;
  }

  .work-item__image {
    height: 200px;
  }

  .work-item__tags {
    gap: 0.5rem;
  }

  .work-item__tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 320px) {
  .hero-works__title-main {
    font-size: 2rem;
  }

  .hero-works__description {
    font-size: 0.9rem;
  }
}

/* ===== アクセシビリティ対応 ===== */
.work-item:focus-within {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.work-item__link:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .work-item:hover {
    transform: none;
  }

  .hero-works__image {
    animation: none;
  }
}

/* ===== プリント用スタイル ===== */
@media print {
  .hero-works {
    height: auto;
    padding: 2rem 0;
  }

  .hero-works__content {
    color: #000;
  }

  .hero-works__title-main {
    -webkit-text-fill-color: #000;
  }

  .works-gallery,
  .works-philosophy,
  .contact-cta {
    page-break-inside: avoid;
    padding: 2rem 0;
  }

  .contact-cta {
    background: #f5f5f5;
    color: #000;
  }

  .work-item {
    break-inside: avoid;
    margin-bottom: 2rem;
  }

  .hero-works__scroll {
    display: none;
  }
}

/* ===== 高解像度ディスプレイ対応 ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .work-item__image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ===== パフォーマンス最適化 ===== */
.work-item,
.work-item__image,
.work-item__overlay {
  will-change: transform;
}

.hero-works__image {
  will-change: transform;
}

/* ===== セクション間の視覚的区切り ===== */
.works-gallery::after,
.works-philosophy::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary),
    transparent
  );
  z-index: 1;
}

/* ===== カスタムスクロールバー（Webkit） ===== */
.work-item__description::-webkit-scrollbar {
  width: 4px;
}

.work-item__description::-webkit-scrollbar-track {
  background: rgba(111, 165, 199, 0.1);
  border-radius: 2px;
}

.work-item__description::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 2px;
}

.work-item__description::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* ===== キーフレームアニメーション ===== */
@keyframes heroImageZoom {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes heroContentSlide {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleGlow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

@keyframes workItemFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* ===== 最終調整 ===== */
.works-gallery {
  position: relative;
  z-index: 1;
}

.hero-works__content,
.hero-works__scroll {
  position: relative;
  z-index: 2;
}

/* ===== Works Page モバイル中央配置 完全修正 ===== */

/* 基本のヒーローセクション（デスクトップ） */
.hero-works {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-works__content {
  text-align: center;
  color: var(--color-white);
  max-width: 800px;
  padding: 0 20px;
  animation: heroContentSlide 1s ease-out;
  width: 100%;
  margin: 0 auto;
}

/* モバイル専用の強制中央配置 */
@media (max-width: 480px) {
  .hero-works {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 100vh !important;
  }

  .hero-works__background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    background-image: url('../img/works.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }

  .hero-works__image {
    display: none !important;
  }

  .hero-works__overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 2 !important;
  }

  .hero-works__content {
    position: relative !important;
    z-index: 3 !important;
    text-align: center !important;
    color: var(--color-white) !important;
    width: 90% !important;
    max-width: 90% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
  }

  .hero-works__title {
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto 2rem !important;
  }

  .hero-works__title-main {
    font-size: 2.5rem !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto 0.5rem !important;
    display: block !important;
  }

  .hero-works__title-sub {
    font-size: 1.1rem !important;
    letter-spacing: 2px !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .hero-works__description {
    font-size: 0.95rem !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto 2rem !important;
    line-height: 1.6 !important;
  }
}

/* より小さい画面（320px以下） */
@media (max-width: 375px) {
  .hero-works__content {
    width: 95% !important;
    max-width: 95% !important;
    padding: 0 15px !important;
  }

  .hero-works__title-main {
    font-size: 2rem !important;
  }

  .hero-works__description {
    font-size: 0.9rem !important;
  }
}

/* 極小画面（320px以下） */
@media (max-width: 320px) {
  .hero-works__content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
  }

  .hero-works__title-main {
    font-size: 1.8rem !important;
  }

  .hero-works__description {
    font-size: 0.85rem !important;
  }
}

/* デバッグ用の追加スタイル（一時的） */
@media (max-width: 480px) {
  /* コンテナの強制リセット */
  .hero-works .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
  }

  /* 全ての親要素の中央配置を保証 */
  .hero-works,
  .hero-works * {
    box-sizing: border-box !important;
  }

  /* flex要素の完全中央配置 */
  .hero-works {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow-x: hidden !important;
  }

  /* コンテンツの絶対中央配置 */
  .hero-works__content {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 90% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    text-align: center !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
  }

  /* タイトル要素の中央配置 */
  .hero-works__title,
  .hero-works__title-main,
  .hero-works__title-sub,
  .hero-works__description {
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
}
/* ===== Works スクロールボタン位置修正 ===== */

/* スクロールボタンの基本スタイル（全画面共通） */
.hero-works__scroll {
  position: fixed !important;
  bottom: 30px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 100 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* スクロールボタンのモバイル調整 */
@media (max-width: 480px) {
  .hero-works__scroll {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 100 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* より小さい画面での調整 */
@media (max-width: 375px) {
  .hero-works__scroll {
    bottom: 15px !important;
  }
}

/* 極小画面での調整 */
@media (max-width: 320px) {
  .hero-works__scroll {
    bottom: 10px !important;
  }
}

/* スクロールボタン内部要素の修正 */
.scroll-button {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  color: var(--color-white) !important;
  transition: var(--transition) !important;
  animation: scrollBounce 2s ease-in-out infinite !important;
  text-decoration: none !important;
  position: relative !important;
  z-index: 1 !important;
}

.scroll-button:hover {
  transform: translateY(-5px) !important;
}

.scroll-button__text {
  font-family: var(--font-primary) !important;
  font-size: 0.9rem !important;
  font-weight: 300 !important;
  letter-spacing: 2px !important;
  margin-bottom: 0.5rem !important;
  opacity: 0.8 !important;
  text-align: center !important;
}

.scroll-button__icon {
  width: 30px !important;
  height: 50px !important;
  border: 2px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 25px !important;
  position: relative !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
}

.scroll-button__arrow {
  position: absolute !important;
  top: 10px !important;
  left: 50% !important;
  width: 6px !important;
  height: 6px !important;
  border-right: 2px solid rgba(255, 255, 255, 0.8) !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.8) !important;
  transform: translateX(-50%) rotate(45deg) !important;
  animation: arrowMove 2s ease-in-out infinite !important;
}

/* モバイル専用のスクロールボタン調整 */
@media (max-width: 480px) {
  .scroll-button__text {
    font-size: 0.8rem !important;
    letter-spacing: 1.5px !important;
  }

  .scroll-button__icon {
    width: 25px !important;
    height: 40px !important;
  }

  .scroll-button__arrow {
    width: 5px !important;
    height: 5px !important;
    top: 8px !important;
  }
}

/* アニメーションの修正 */
@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0) !important;
  }
  50% {
    transform: translateY(-10px) !important;
  }
}

@keyframes arrowMove {
  0%,
  100% {
    top: 10px !important;
    opacity: 1 !important;
  }
  50% {
    top: 20px !important;
    opacity: 0.5 !important;
  }
}

/* モバイルでのアニメーション調整 */
@media (max-width: 480px) {
  @keyframes arrowMove {
    0%,
    100% {
      top: 8px !important;
      opacity: 1 !important;
    }
    50% {
      top: 15px !important;
      opacity: 0.5 !important;
    }
  }
}

/* デバッグ用：スクロールボタンが見えない場合の緊急表示 */
.hero-works__scroll.debug {
  background: rgba(255, 0, 0, 0.3) !important;
  border: 2px solid red !important;
  padding: 10px !important;
}

/* 確実な表示のための追加スタイル */
@media (max-width: 480px) {
  .hero-works {
    position: relative !important;
  }

  .hero-works__scroll {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
  }
}
