/* ========== WALL ART PAGE STYLES ========== */

/* Banner Styling */
.wall-art-banner {
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), url('');
    background-size: cover;
    background-position: center;
    margin-bottom: 0; /* 修正: バナーとヒーローセクションの間隔をなくす */
  }

/* Hero Section - フルスクリーン対応 */
.wall-art-hero {
  position: relative;
  height: 100vh; /* 画面いっぱいに表示 */
  min-height: 600px; /* 最小高さ設定 */
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-bottom: 0; /* 次のセクションとの間隔を適切に調整 */
  padding: 0; /* パディングをリセット */
  background-color: transparent; /* 背景色を透明に */
}

.hero-container {
  width: 100%;
  max-width: 100%; /* コンテナの最大幅を100%に変更 */
  height: 100%; /* 高さを100%に設定 */
  margin: 0 auto;
  padding: 5rem; /* 内部の余白を追加 */
  position: relative;
  z-index: 2;
  display: flex; /* フレックスボックスで配置制御 */
  justify-content: flex-end; /* 右寄せ */
  align-items: flex-end; /* 下寄せ */
}

.hero-content {
  display: flex;
  justify-content: flex-end; /* 右寄せに変更 */
  align-items: flex-end; /* 下寄せに変更 */
  width: auto; /* 幅を自動に */
  height: auto; /* 高さを自動に */
}

.hero-text {
  max-width: 450px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: var(--space-lg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  margin-top: 0; /* 上の余白をリセット */
  animation: fadeInUp 1s forwards; /* アニメーション追加 */
}
.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

.hero-description {
  font-size: 2rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0.2), rgba(0,160,233,0.3));
}

/* フェードインアップアニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* レスポンシブ対応 */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.6rem;
  }
  
  .hero-container {
    padding: 4rem; /* パディングを少し縮小 */
  }
}

@media (max-width: 992px) {
  .wall-art-hero {
    height: auto;
    min-height: 500px;
  }
  
  /* タブレット以下では中央配置に変更 */
  .hero-container {
    display: flex;
    align-items: center; /* 上下中央配置 */
    justify-content: center;
    height: 100%;
    padding: 1.5rem;
  }
  
  .hero-content {
    display: flex;
    align-items: center; /* 上下中央配置 */
    justify-content: center;
    width: 100%;
  }
  
  .hero-text {
    width: 90%; /* テキストの横幅を広げる */
    max-width: 400px;
    padding: var(--space-md);
    margin: 0; /* マージンをリセット */
  }
  
  .hero-title {
    font-size: 2.4rem;
    line-height: 1.3;
  }
  
  .hero-description {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .hero-container {
    padding: 2rem;
  }
  
  .hero-text {
    max-width: 90%;
    margin: 0 auto;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-description {
    font-size: 1.6rem;
  }
  
  /* ヒーローテキストの幅を広げる */
  .hero-text {
    width: 85%;
    max-width: 85%;
    padding: var(--space-md);
  }
  
  /* ボタンのスタイル調整 */
  .hero-text .btn {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    text-align: center;
  }
}

/* モバイル表示の最適化（重要な変更） */
@media (max-width: 576px) {
  .hero-container {
    padding: 1.5rem;
  }
  
  .hero-text {
    width: 90%; /* 横幅を90%に設定 */
    max-width: 400px; /* 最大幅を増やす */
    padding: var(--space-md) var(--space-md); /* パディングを調整 */
  }
  
  .hero-title {
    font-size: 2.4rem; /* フォントサイズを少し小さく */
    line-height: 1.3; /* 行間を調整 */
    margin-bottom: 1rem; /* 下マージンを縮小 */
    /* 3行程度になるように文字サイズを調整 */
    word-break: keep-all; /* 単語の途中で改行しない */
    overflow-wrap: break-word; /* 長い単語は折り返す */
  }
  
  .hero-description {
    font-size: 1.4rem; /* フォントサイズを小さく */
    line-height: 1.5; /* 行間を調整 */
    margin-bottom: 1.5rem; /* 下マージンを縮小 */
  }
  
  /* ボタンのスタイル調整 */
  .hero-text .btn {
    display: block;
    width: 100%;
    max-width: 230px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    font-size: 1.4rem;
  }
  
  /* スマホ表示でのコンテナのスタイル調整 */
  .hero-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
  }
  
  .hero-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* さらに小さいモバイルデバイス用 */
@media (max-width: 375px) {
  .hero-text {
    width: 95%; /* 横幅をさらに広げる */
    padding: var(--space-sm); /* パディングを縮小 */
  }
  
  .hero-title {
    font-size: 2.2rem; /* フォントサイズをさらに小さく */
  }
}

  /* Materials Section */
  .wall-art-materials {
    background-color: var(--color-background);
    position: relative;
  }
  
  .wall-art-materials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  }
  
  .wall-art-materials::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  }
  
  .materials-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
  }
  
  .material-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: calc(20% - var(--space-lg));
    max-width: 150px;
    transition: transform 0.3s ease;
  }
  
  .material-item:hover {
    transform: translateY(-8px);
  }
  
  .material-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 正方形にするための調整 */
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-sm);
  }
  
  .material-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .material-name {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: center;
    line-height: 1.4;
  }
  
  .more-materials .material-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    border: 2px solid var(--color-primary);
  }
  
  .more-circle {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-primary);
  }
  
  /* System Section */
  .wall-art-system {
    background-color: var(--color-white);
    padding: var(--space-xl) 0;
  }
  
  .system-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-lg);
    align-items: center;
  }
  
  .system-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .system-description {
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
  }
  
.system-button {
  position: relative;
  margin-top: var(--space-md);
  text-align: center;
}
  
  .btn-primary {
    background-color: #333;
    color: var(--color-white);
    border: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
  }
  
.button-arrow {
  position: absolute;
  left: 50%; /* 中央配置 */
  bottom: -7rem; /* 下部に配置 */
  transform: translateX(-50%); /* 正確に中央に */
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.4rem;
  color: var(--color-primary);
}
  
.button-arrow i {
  margin-bottom: 0.5rem;
  font-size: 1.6rem; /* サイズ調整 */
  animation: bounceArrow 2s infinite;
}

@media (max-width: 576px) {
  .button-arrow {
    bottom: -3rem; /* モバイルでは少し上に */
  }
  
  .button-arrow i {
    font-size: 1.4rem; /* モバイルでは小さく */
  }
}
  
  @keyframes bounceArrow {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-8px);
    }
  }
  
  .system-images {
    display: flex;
    justify-content: center;
    position: relative;
    height: 400px;
  }
  
  .device-mockup {
    width: 200px;
    height: 350px;
    background-color: #333;
    border-radius: 20px;
    padding: 15px;
    position: absolute;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
  }
  
  .device-mockup img {
    width: 100%;
    height: calc(100% - 30px);
    object-fit: cover;
    border-radius: 10px;
  }
  
  .device-mockup::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
  }
  
  .device-1 {
    left: 10%;
    z-index: 1;
    transform: rotate(-5deg);
  }
  
  .device-2 {
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }
  
  .device-3 {
    right: 10%;
    z-index: 1;
    transform: rotate(5deg);
  }
  
  /* Technique Section */
  .wall-art-technique {
    background-color: var(--color-background);
    padding: var(--space-xl) 0;
  }
  
  .technique-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-lg);
    align-items: center;
  }
  
  .technique-image {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }
  
  .technique-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
  }
  
  .technique-image:hover img {
    transform: scale(1.05);
  }
  
  .technique-text {
    padding-left: var(--space-md);
  }
  
  .technique-text h2 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
  }
  
  .technique-description {
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
  }
  
  /* Animation for elements */
  .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Responsive Styles */
  @media (max-width: 1200px) {
    .device-mockup {
      width: 180px;
      height: 320px;
    }
    
    .device-1 {
      left: 5%;
    }
    
    .device-3 {
      right: 5%;
    }
  }
  
  @media (max-width: 992px) {
    .hero-content,
    .system-content,
    .technique-content {
      grid-template-columns: 1fr;
      gap: var(--space-md);
    }
    
    .hero-text,
    .technique-text {
      padding-left: 0;
      text-align: center;
    }
    
    .system-text {
      order: 2;
      text-align: center;
    }
    
  .system-images {
    display: flex;
    flex-direction: row; /* 横並びを維持 */
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 2rem 0;
    overflow-x: auto; /* 必要に応じて横スクロール可能に */
    -webkit-overflow-scrolling: touch;
    gap: 1rem; /* デバイス間の間隔 */
  }
  
  .device-mockup {
    position: static; /* 固定位置をリセット */
    transform: none !important; /* 回転などをリセット */
    width: 120px; /* 幅を小さく */
    height: 210px; /* 高さを小さく */
    flex-shrink: 0; /* 縮小を防止 */
    margin: 0 0.5rem; /* 左右の余白 */
  }
  
  .device-1, .device-2, .device-3 {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
  }
    
    .material-item {
      width: calc(33.333% - var(--space-lg));
    }
  }
  
  @media (max-width: 768px) {
  .system-images {
    display: flex;
    flex-direction: row; /* 横並びを維持 */
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 2rem 0;
    overflow-x: auto; /* 必要に応じて横スクロール可能に */
    -webkit-overflow-scrolling: touch;
    gap: 1rem; /* デバイス間の間隔 */
  }
  
  .device-mockup {
    position: static; /* 固定位置をリセット */
    transform: none !important; /* 回転などをリセット */
    width: 120px; /* 幅を小さく */
    height: 210px; /* 高さを小さく */
    flex-shrink: 0; /* 縮小を防止 */
    margin: 0 0.5rem; /* 左右の余白 */
  }
  
  .device-1, .device-2, .device-3 {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
  }
    
    .system-button {
      margin: 0 auto;
    }
    
    .material-item {
      width: calc(50% - var(--space-lg));
    }
  }
  
  @media (max-width: 576px) {
    .system-images {
      height: 600px;
      flex-direction: column;
      align-items: center;
      gap: var(--space-lg);
    }
    
    .device-mockup {
      position: relative;
      margin-bottom: var(--space-md);
      transform: none !important;
      left: auto;
      right: auto;
    }
    
    .device-1, .device-2, .device-3 {
      position: static;
      transform: none !important;
    }
    
    .material-item {
      width: calc(50% - var(--space-md));
    }
    
    .materials-grid {
      gap: var(--space-md);
    }
  }