/* ===============================================
   株式会社ロック - コーポレートサイト
   メインスタイルシート
   =============================================== */

/* ===============================================
   カスタムプロパティ（CSS変数）
   =============================================== */
:root {
  /* ブランドカラー */
  --color-primary: #f25d07;        /* オレンジ */
  --color-secondary: #F5F3F0;      /* ベージュ */
  --color-dark: #2C2C2C;           /* ダークグレー */
  --color-gold: #DAA520;           /* ゴールド */
  --color-white: #FFFFFF;
  --color-light-gray: #F9F9F9;
  --color-text: #333333;
  --color-text-light: #666666;
  
  /* フォント */
  --font-primary: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --font-serif: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', serif;
  
  /* スペーシング */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --spacing-xxl: 8rem;
  
  /* トランジション */
  --transition-base: 0.3s ease;
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* ブレークポイント */
  --bp-mobile: 767px;
  --bp-tablet: 1199px;
  --bp-desktop: 1200px;
}

/* ===============================================
   リセット & ベーススタイル
   =============================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  line-height: 1.8;
  background: #ffffff url('https://www.genspark.ai/api/files/s/NBhi8fuG') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-base);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition-base);
}

/* ===============================================
   タイポグラフィ
   =============================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.03em;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  letter-spacing: 0.03em;
}

p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.9;
  letter-spacing: 0.05em;
}

.text-center {
  text-align: center;
}

.text-gold {
  color: var(--color-gold);
}

.text-primary {
  color: var(--color-primary);
}

/* ===============================================
   レイアウト
   =============================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xxl) 0;
}

.section-sm {
  padding: var(--spacing-lg) 0;
}

/* ===============================================
   ヘッダー
   =============================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(242, 93, 7, 0.08);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(242, 93, 7, 0.12);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  transition: var(--transition-base);
  z-index: 1001;
}

.logo img {
  height: 55px;
  width: auto;
  display: block;
  transition: all 0.3s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
}

.logo:hover img {
  transform: translateY(-1px);
  filter: drop-shadow(0 2px 4px rgba(242, 93, 7, 0.15));
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  list-style: none;
}

.nav-menu a {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-dark);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  position: relative;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
  width: 70%;
}

.nav-menu a:hover {
  color: var(--color-primary);
  background-color: rgba(242, 93, 7, 0.04);
}

.nav-menu a.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* オンラインショップボタン */
.online-shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.8rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-gold) 100%);
  color: white !important;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 8px rgba(242, 93, 7, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  margin-left: 1rem;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.online-shop-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: rotate(45deg);
  transition: var(--transition-smooth);
}

.online-shop-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 4px 16px rgba(242, 93, 7, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: white !important;
  background: linear-gradient(135deg, #ff6a00 0%, #e6b800 100%);
}

.online-shop-btn:hover::before {
  left: 100%;
}

.online-shop-btn::after {
  display: none;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
  border-radius: 6px;
  transition: var(--transition-base);
}

.hamburger:hover {
  background-color: rgba(242, 93, 7, 0.05);
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background-color: var(--color-dark);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.hamburger.active span {
  background-color: var(--color-primary);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===============================================
   ヒーローセクション
   =============================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: var(--color-dark);
  z-index: 1;
  max-width: 800px;
  padding: var(--spacing-md);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--spacing-md);
  color: var(--color-gold);
  font-family: var(--font-serif);
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: var(--spacing-lg);
  color: var(--color-text);
  letter-spacing: 0.15em;
  line-height: 2;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-text-light);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  animation: bounce 2s infinite;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 40px;
  background-color: var(--color-text-light);
}

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

/* ===============================================
   セクションヘッダー
   =============================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--spacing-sm);
  color: var(--color-dark);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  box-shadow: 
    0 2px 8px rgba(242, 93, 7, 0.3),
    0 1px 3px rgba(218, 165, 32, 0.2);
  border-radius: 2px;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  margin-top: var(--spacing-md);
}

/* ===============================================
   ボタン
   =============================================== */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: 50px;
  transition: var(--transition-base);
  text-align: center;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-gold));
  color: var(--color-white);
  box-shadow: 
    0 4px 15px rgba(242, 93, 7, 0.3),
    0 2px 5px rgba(218, 165, 32, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 25px rgba(242, 93, 7, 0.4),
    0 3px 10px rgba(218, 165, 32, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* ===============================================
   グリッドレイアウト
   =============================================== */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===============================================
   カード
   =============================================== */
.card {
  background: linear-gradient(145deg, #ffffff 0%, #fefefe 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(242, 93, 7, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: var(--transition-base);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(242, 93, 7, 0.02) 0%, rgba(218, 165, 32, 0.02) 100%);
  opacity: 0;
  transition: var(--transition-base);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.12),
    0 3px 8px rgba(242, 93, 7, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.card:hover::before {
  opacity: 1;
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-content {
  padding: var(--spacing-md);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-dark);
}

.card-text {
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ===============================================
   フッター
   =============================================== */
.footer {
  background: linear-gradient(135deg, #2C2C2C 0%, #1a1a1a 50%, #2C2C2C 100%);
  color: var(--color-white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  position: relative;
  box-shadow: 
    0 -2px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(242, 93, 7, 0.1);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(242, 93, 7, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(218, 165, 32, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
  color: var(--color-gold);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--color-primary);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition-base);
}

.social-links a:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* ===============================================
   レスポンシブデザイン
   =============================================== */

/* タブレット以下 */
@media (max-width: 1199px) {
  :root {
    --spacing-xl: 4rem;
    --spacing-xxl: 5rem;
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
}

/* モバイル */
@media (max-width: 767px) {
  :root {
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
  }
  
  /* ヘッダー最適化 */
  .header-container {
    padding: 0.75rem 1rem;
  }
  
  .logo img {
    height: 45px;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 1.5rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu a {
    width: 100%;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    text-align: center;
    border-radius: 8px;
    display: block;
  }
  
  .nav-menu a::before {
    display: none;
  }
  
  .nav-menu a:hover,
  .nav-menu a.active {
    background: linear-gradient(135deg, rgba(242, 93, 7, 0.08) 0%, rgba(218, 165, 32, 0.08) 100%);
  }
  
  .online-shop-btn {
    margin-left: 0;
    margin-top: 1.5rem;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }
  
  .hamburger {
    display: flex;
  }
  
  /* ヒーローセクション最適化 - 画像全体表示 */
  .hero {
    margin-top: 60px;
    min-height: auto;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 70vh;
  }
  
  .hero-bg {
    object-fit: cover;
    object-position: center top;
    background: #faf9f7;
  }
  
  /* セクション最適化 */
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  /* セクションヘッダー最適化 */
  .section-header {
    margin-bottom: var(--spacing-xl);
  }
  
  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
    line-height: 1.8;
    padding: 0 0.5rem;
  }
  
  /* グリッドレイアウト最適化 */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  /* テキスト可読性向上 */
  p {
    font-size: 0.9rem;
    line-height: 1.9;
  }
  
  h3 {
    font-size: 1.2rem;
    line-height: 1.5;
  }
  
  /* ボタン最適化 */
  .btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }
  
  /* カード最適化 */
  .card {
    margin-bottom: var(--spacing-md);
  }
  
  .card-image {
    height: 250px !important;
  }
  
  .card-content {
    padding: 1.25rem 1rem !important;
  }
  
  /* フッター最適化 */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-lg);
  }
  
  .social-links {
    justify-content: center;
  }
  
  /* 3つの特徴セクション最適化 */
  .grid-3 > div {
    padding: var(--spacing-md) !important;
  }
  
  .grid-3 h3 {
    font-size: 1.15rem !important;
    line-height: 1.5 !important;
    margin-bottom: var(--spacing-sm) !important;
  }
  
  .grid-3 p {
    font-size: 0.875rem !important;
    line-height: 1.8 !important;
  }
  
  /* ブランドメッセージセクション最適化 */
  .section p[style*="font-size: 1.1rem"] {
    font-size: 0.95rem !important;
    line-height: 1.9 !important;
    padding: 0 0.5rem !important;
  }
  
  /* スクロールインジケーター最適化 */
  .scroll-indicator {
    font-size: 0.7rem;
    bottom: 1.5rem;
    letter-spacing: 0.15em;
  }
  
  /* BRAND STORY - お届けしたいもの 3列レイアウトのモバイル対応 */
  .brand-story-three-col {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-md) !important;
  }
  
  .brand-story-three-col > div {
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(242, 93, 7, 0.15) !important;
    padding: var(--spacing-md) 0 !important;
  }
  
  .brand-story-three-col > div:last-child {
    border-bottom: none !important;
  }
  
  /* アイコンボックス最適化 */
  div[style*="width: 80px; height: 80px"] {
    width: 70px !important;
    height: 70px !important;
    margin-bottom: var(--spacing-md) !important;
  }
  
  div[style*="width: 80px; height: 80px"] svg {
    width: 35px !important;
    height: 35px !important;
  }
  
  /* CTA最適化 */
  .btn-primary,
  .btn-outline {
    padding: 0.9rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  /* 余白とスペーシング最適化 */
  .mt-lg {
    margin-top: var(--spacing-lg) !important;
  }
  
  .mt-xl {
    margin-top: var(--spacing-xl) !important;
  }
  
  /* 改行最適化 - 自然な区切りを保持 */
  br {
    display: inline;
  }
  
  /* レスポンシブ画像 */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* PRODUCTS ページ最適化 */
  .product-item {
    padding: var(--spacing-lg) 0 !important;
    margin-bottom: var(--spacing-lg) !important;
  }
  
  .product-image-container {
    padding: 1.5rem !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 250px !important;
  }
  
  .product-image-container img {
    max-height: 300px !important;
  }
  
  .product-details {
    padding: var(--spacing-md) 0 !important;
  }
  
  .product-category {
    font-size: 0.7rem !important;
  }
  
  .product-name {
    font-size: 1.3rem !important;
    line-height: 1.4 !important;
  }
  
  .product-subtitle {
    font-size: 0.85rem !important;
  }
  
  .product-price {
    font-size: 1.1rem !important;
  }
  
  .product-description {
    font-size: 0.875rem !important;
    line-height: 1.8 !important;
  }
  
  .product-tags span {
    font-size: 0.7rem !important;
    padding: 0.4rem 0.9rem !important;
  }
  
  .product-features li {
    font-size: 0.85rem !important;
    padding-left: 1.2rem !important;
  }
  
  .product-cta {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  
  .btn-shop,
  .btn-detail {
    width: 100% !important;
  }
  
  /* ===== 個別ページのモバイル最適化 ===== */
  
  /* ===== モバイル専用修正（PC/タブレットは変更なし） ===== */
  
  /* ヒーローセクション - 完全中央配置（左ズレ解消） */
  .hero[style*="height: 60vh"] {
    height: auto !important;
    min-height: 400px !important;
    padding: 4rem 1rem 3rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
  }
  
  /* ヒーローコンテンツ - 中央配置（オフセット排除） */
  .hero .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 1rem !important;
    margin: 0 auto !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    transform: none !important;
  }
  
  /* ヒーロータイトル - 中央配置（オフセット排除） */
  .hero .hero-title {
    font-size: clamp(1.4rem, 5.5vw, 2rem) !important;
    line-height: 1.5 !important;
    letter-spacing: 0.03em !important;
    text-align: center !important;
    padding: 0 1rem !important;
    margin: 0 auto 1rem auto !important;
    width: 100% !important;
    max-width: 100% !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    transform: none !important;
  }
  
  /* ヒーローサブタイトル - 中央配置（オフセット排除） */
  .hero .hero-subtitle {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
    padding: 0 1.5rem !important;
    margin: 0.5rem auto 0 auto !important;
    letter-spacing: 0.15em !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    transform: none !important;
  }
  
  /* COMPANY - 会社概要テーブル最適化 */
  .section table {
    display: block !important;
    overflow-x: auto !important;
  }
  
  .section table tbody {
    display: block !important;
  }
  
  .section table tr {
    display: flex !important;
    flex-direction: column !important;
    border-bottom: 2px solid #f0f0f0 !important;
    padding: 1.25rem 0 !important;
  }
  
  .section table tr:last-child {
    border-bottom: none !important;
  }
  
  .section table th {
    width: 100% !important;
    text-align: left !important;
    padding: 0.5rem 1rem 0.4rem 1rem !important;
    font-size: 0.85rem !important;
    color: var(--color-primary) !important;
    font-weight: 600 !important;
  }
  
  .section table td {
    width: 100% !important;
    padding: 0.4rem 1rem 0.5rem 1rem !important;
    font-size: 0.9rem !important;
    line-height: 1.9 !important;
  }
  
  /* 事業内容リスト可読性改善 */
  .section table td ol {
    padding-left: 1.5rem !important;
    padding-right: 1rem !important;
    margin: 0.5rem 0 !important;
    max-width: 100% !important;
  }
  
  .section table td ol li {
    margin-bottom: 0.75rem !important;
    font-size: 0.875rem !important;
    line-height: 1.9 !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    text-align: left !important;
    padding-left: 0.25rem !important;
    padding-right: 0.5rem !important;
  }
  
  /* テーブル外枠のパディング調整 */
  .section > .container > .fade-in[style*="background: white"][style*="padding"] {
    padding: var(--spacing-lg) 1.25rem !important;
  }
  
  /* PHILOSOPHY - 背景画像全体表示（トリミングなし） */
  .hero[style*="position: relative"] {
    height: auto !important;
    min-height: auto !important;
    aspect-ratio: 16 / 9 !important;
    max-height: 60vh !important;
  }
  
  .hero[style*="position: relative"] > div[style*="background: url"] {
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }
}

/* ===============================================
   製品カルーセル（横スクロール・自動アニメーション）
   =============================================== */
.product-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  margin: var(--spacing-xl) 0;
  position: relative;
}

.product-carousel-wrapper::before,
.product-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.product-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.product-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.product-carousel {
  display: flex;
  gap: 2.5rem;
  animation: scroll-left 40s linear infinite;
  will-change: transform;
}

.product-carousel:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.product-carousel-item {
  flex-shrink: 0;
  width: 380px;
}

.product-card {
  background: linear-gradient(145deg, #ffffff 0%, #fefefe 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(242, 93, 7, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 600px;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(242, 93, 7, 0.03) 0%, rgba(218, 165, 32, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(242, 93, 7, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.product-card:hover::before {
  opacity: 1;
}

.product-image-wrapper {
  width: 100%;
  height: 380px;
  flex-shrink: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.product-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(242, 93, 7, 0.02) 0%, transparent 70%);
  pointer-events: none;
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

.product-info {
  padding: 2rem 1.8rem 2.4rem;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #fefefe 100%);
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
  transition: color 0.3s ease;
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card:hover .product-title {
  color: var(--color-primary);
}

.product-desc {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--color-text-light);
  letter-spacing: 0.01em;
  flex: 1;
}

/* モバイル対応 - カルーセル最適化 */
@media (max-width: 767px) {
  .product-carousel-wrapper {
    margin: var(--spacing-lg) -1rem;
  }
  
  .product-carousel-wrapper::before,
  .product-carousel-wrapper::after {
    width: 30px;
  }
  
  .product-carousel {
    gap: 1.25rem;
    animation: scroll-left 35s linear infinite;
    padding: 0 1rem;
  }
  
  .product-carousel-item {
    width: 280px;
  }
  
  .product-card {
    height: 480px;
  }
  
  .product-image-wrapper {
    height: 280px;
    padding: 1.5rem;
  }
  
  .product-info {
    padding: 1.25rem 1rem 1.5rem;
  }
  
  .product-title {
    font-size: 1rem;
    min-height: 2.2rem;
    white-space: normal;
    line-height: 1.4;
  }
  
  .product-desc {
    font-size: 0.8rem;
    line-height: 1.7;
  }
}

/* ===============================================
   ユーティリティクラス
   =============================================== */
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.pt-sm { padding-top: var(--spacing-sm); }
.pt-md { padding-top: var(--spacing-md); }
.pt-lg { padding-top: var(--spacing-lg); }
.pt-xl { padding-top: var(--spacing-xl); }

.pb-sm { padding-bottom: var(--spacing-sm); }
.pb-md { padding-bottom: var(--spacing-md); }
.pb-lg { padding-bottom: var(--spacing-lg); }
.pb-xl { padding-bottom: var(--spacing-xl); }

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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