* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  
  body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #50565b;
    background-color: #e1e4e6;
    line-height: 1.8;
    padding: 16px;
    position: relative;
    min-height: 100vh;
    overflow-y: auto;
  }
  
  .header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .logo {
    width: 80px;
    height: auto;
  }
  
  .vertical-line {
    width: 1px;
    height: 40px;
    background-color: #ccc;
    margin: 0 12px;
  }
  
  .header-text {
    font-size: 14px;
    line-height: 1.3;
    color: #333;
  }
  
  .lang-toggle {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
  }
  
  .lang-btn {
    padding: 6px 16px;
    font-size: 14px;
    border-radius: 20px;
    border: none;
    background-color: #d1d5d7;
    color: #848b93;
  }
  
  .lang-btn.active {
    background-color: #315798;
    color: #fff;
  }
  
  /* タイトルの基本スタイル */
  .title {
    text-align: center;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 13vh;
    margin-top: 13vh;
    background: linear-gradient(to bottom, #848b93, #50565b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  /* タイトルのグラデーションスタイル */
  .title.gradient {
    background: linear-gradient(to right,
      hsl(var(--hue-1), 50%, 50%),
      hsl(var(--hue-2), 50%, 50%),
      hsl(var(--hue-3), 50%, 50%)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rotate-hue 10s linear infinite;
  }
  
  .title.no-gradient {
    background: none;
    color: #9da6af;
    animation: none;
  }
  
  /* 修正ポイント：画像と縦書きテキストの並び構成 */
  .product-block {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .p-margin {
    margin-top: 13vh;
  }
  
  /* スライドショー用のスタイル */
  .slideshow-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.56%; /* 1600 × 1065のアスペクト比 */
    overflow: hidden;
  }

  .slideshow-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
  }

  .slideshow-img.active {
    opacity: 1;
  }

  /* 通常の商品画像のスタイル */
  .product-images {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .product-img {
    width: 100%;
    display: block;
    margin-bottom: 0;
  }
  
  /* 縦書きテキスト用のアニメーション */
  .vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 16px;
    margin-left: 8px;
    text-align: center;
    opacity: 0;
    letter-spacing: 0.05em;
  }
  
  .vertical-text.animate {
    animation: verticalTextAppear 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }
  
  @keyframes verticalTextAppear {
    0% {
      opacity: 0;
      transform: translateX(20px);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* 英語の縦書き表示用スタイル */
  .vertical-text[data-lang="en"] {
    text-orientation: sideways;
  }
  
  .description {
    font-size: 14px;
    padding-top: 16px;
  }
  .description p {
    padding-right: 40px;
    margin-bottom: 16px;
    /* font-feature-settings: "palt"; */
  }
  .description p a  {
    color: #315798;
    text-decoration: underline;
  }

  .footer {
    text-align: center;
    margin-top: 13vh;
  }
  .footer .copyright {
    font-size: 14px;
    color: #848b93;
  }
  
  /* レスポンシブ（PC対応用に今後拡張） */
  @media screen and (min-width: 768px) {
    body {
      padding: 32px;
    }
  
    .header-text {
      font-size: 16px;
    }
  
    .title {
      font-size: 24px;
    }
  
    .description {
      font-size: 16px;
    }
  }

  /* アニメーション用のスタイル */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes slideInFromLeft {
    from {
      opacity: 0;
      transform: translateX(-30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

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

  @keyframes slideInFromTop {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* アニメーション適用クラス */
  .animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .animate-slide-in-left {
    opacity: 0;
    animation: slideInFromLeft 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .animate-slide-in-right {
    opacity: 0;
    animation: slideInFromRight 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .animate-slide-in-top {
    opacity: 0;
    animation: slideInFromTop 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  /* 遅延アニメーション */
  .delay-200 {
    animation-delay: 0.2s;
  }

  .delay-400 {
    animation-delay: 0.4s;
  }

  .delay-600 {
    animation-delay: 0.6s;
  }

  /* 画像の遅延ローディング用スタイル */
  .lazy-load {
    opacity: 0;
    transition: opacity 0.8s ease-out;
  }

  .lazy-load.loaded {
    opacity: 1;
  }

  /* スクロールアニメーション用のスタイル */
  .scroll-animate-up,
  .scroll-animate-left,
  .scroll-animate-right {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .scroll-animate-up {
    transform: translateY(30px);
  }

  .scroll-animate-left {
    transform: translateX(-50px);
  }

  .scroll-animate-right {
    transform: translateX(50px);
  }

  .scroll-animate-up.active,
  .scroll-animate-left.active,
  .scroll-animate-right.active {
    opacity: 1;
    transform: translate(0);
  }

  /* 紹介文のアニメーションを強調 */
  .description.scroll-animate-up {
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .description.scroll-animate-up.active {
    opacity: 1;
    transform: translateY(0);
  }

  /* 言語切り替えアニメーション */
  @keyframes fadeOut {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .language-transition {
    position: relative;
    transition: opacity 0.3s ease-out;
  }

  .language-transition.fade-out {
    opacity: 0;
  }

  .language-transition.fade-in {
    opacity: 1;
  }

  /* コンテンツ全体のアニメーション */
  .main-content {
    transition: opacity 0.3s ease-out;
  }

  .main-content.fade-out {
    opacity: 0;
  }

  .main-content.fade-in {
    opacity: 1;
  }

  /* モーダル表示用のスタイル */
  .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
  }

  .modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .modal-image {
    max-width: 100%;
    max-height: 100%;
    cursor: grab;
    transform-origin: center center;
  }

  .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
  }

  .zoom-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1;
  }

  .zoom-button svg {
    width: 100%;
    height: 100%;
  }

  /* 商品画像コンテナのスタイル */
  .product-img-container {
    position: relative;
    width: 100%;
  }

  /* スマホ表示用の調整 */
  @media screen and (max-width: 767px) {
    .modal-content {
      padding: 10px;
    }
    
    .modal-image {
      max-width: 100%;
      max-height: 100%;
    }
    
    .vertical-text {
      margin-left: 4px;
      font-size: 14px;
    }
  }