/* 岡田製作所 - 共通スタイルシート */

/* カスタムプロパティ（CSS変数） */
:root {
  --primary-color: #01b08e;
  --primary-hover: #019b7d;
  --secondary-color: #333333;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --text-primary: #333333;
  --text-secondary: #666666;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* HTML/Body基本設定 */
html {
  width: 100%;
  overflow-x: hidden;
}

/* 基本スタイル */
body {
  font-family: 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--white);
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  min-width: 100%;
}

/* タイポグラフィ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ヘッダー */
header {
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  height: 120px;  /* 90pxから120pxに */
}

header.scrolled,
header:hover {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  width: 100%;
  padding: 0 80px;  /* 40pxから80pxに増やす */
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

header.scrolled .logo img,
header:hover .logo img {
  filter: none;
}

/* ナビゲーション */
nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;  /* 2remから1.5remに減らす */
  align-items: center;  /* 追加：垂直方向の整列 */
}

nav a {
  color: #ffffff;
  font-size: 16px;  /* 追加 */
  font-weight: 500;
  padding: 0.75rem 1.25rem;  /* パディングも調整 */
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}

.nav-link {
  position: relative;
  display: inline-block;
}

header.scrolled nav a,
header:hover nav a {
  color: #333333;
}

/* ホバー時の●マーカー */
nav a::before {
  content: '●';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  color: var(--primary-color);
  font-size: 8px;
  transition: transform 0.3s ease;
}

nav a:hover::before {
  transform: translateX(-50%) scale(1);
}

/* 選択されているページの下線 */
nav a.current-page::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(1);
}

/* has-megamenuクラスを持つ要素もホバーで●を表示 */
.has-megamenu .nav-link::before {
  display: block;
}

/* 選択されているページは下線を表示、●は非表示 */
.nav-link.current-page::before {
  display: none;
}

nav a:hover {
  color: var(--primary-color);
}

/* メガメニュー - フルワイド */
.nav-item {
  position: relative;
}

/* インジケーター */
.menu-indicator {
  display: none;  /* デフォルトで非表示 */
  cursor: pointer;
  padding: 2px 4px;
  user-select: none;
  transition: color 0.2s ease;
}

/* メガメニューを持つ項目のインジケーター（デフォルトは非表示） */
.has-megamenu .menu-indicator {
  display: none;
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  color: #ccc;
}

/* ホバー時 */
.has-megamenu:hover .menu-indicator {
  display: inline-block;
  color: #999;
}

/* アクティブ時 */
.has-megamenu.active .menu-indicator {
  display: inline-block;
  color: #01b08e;
}

/* メガメニューがアクティブな時の●表示 */
.nav-item.active .nav-link::before {
  transform: translateX(-50%) scale(1);
  color: #01b08e;
}

@keyframes expandWidth {
  from { 
    transform: scaleX(0);
  }
  to { 
    transform: scaleX(1);
  }
}

/* 検索アイコン */
.nav-icon .search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.nav-icon .search-icon svg {
  width: 20px;
  height: 20px;
  color: inherit;
}

/* 検索メガメニュー */
.search-menu {
  padding: 2rem 0;
}

.search-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 1rem;
  padding: 0 2rem;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.search-form button {
  padding: 0.75rem 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-form button:hover {
  background: #019978;
}

.mega-menu {
  position: fixed;
  top: 120px;  /* ヘッダーの高さに合わせる */
  left: 0;
  width: 100vw;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 3rem 0;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  z-index: 998;
}

.mega-menu.show {
  display: block;
  animation: fadeInSlide 0.3s forwards;
}

@keyframes fadeInSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}





.mega-menu-wrapper {
  width: 100%;
  padding: 0 40px;
}

.mega-menu-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.mega-menu-item {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: #f8f8f8;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.mega-menu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--primary-color);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.mega-menu-item:hover {
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateX(4px);
}

.mega-menu-item:hover::before {
  transform: scaleY(1);
}

.mega-menu-item img {
  width: 180px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}

.mega-menu-arrow {
  color: var(--primary-color);
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.mega-menu-item:hover .mega-menu-arrow {
  transform: translateX(5px);
}

.mega-menu-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.mega-menu-text p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;
}

.mega-menu-item:hover .mega-menu-text h4 {
  color: var(--primary-color);
}


.mega-menu-section h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.mega-menu-section ul {
  list-style: none;
  padding: 0;
}

.mega-menu-section li {
  margin-bottom: 0.75rem;
}

.mega-menu-section a {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  display: block;
  transition: color 0.2s ease;
}

.mega-menu-section a:hover {
  color: var(--primary-color);
  background: none;
}

/* オーバーレイ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 997;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* スクロール時のヘッダー動作 */
header.scroll-down {
  transform: translateY(-100%);
}

header.scroll-up {
  transform: translateY(0);
}


/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
}

/* ヒーローセクション */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: none;
  color: var(--white);
  margin-top: 0;
}

/* 3D風雲のエフェクト */
.hero-clouds {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 400px;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.cloud-layer {
  position: absolute;
  border-radius: 100%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 30%, rgba(255,255,255,0.4) 60%, rgba(255,255,255,0) 80%);
}

/* 雲1 - 最前面の大きな雲 */
.cloud-1 {
  bottom: -150px;
  right: -200px;
  width: 600px;
  height: 400px;
  filter: blur(25px);
  opacity: 0.9;
  animation: float-cloud-1 35s infinite ease-in-out;
  background: radial-gradient(ellipse at 30% 40%, rgba(255,255,255,1) 0%, rgba(248,250,255,0.9) 20%, rgba(240,245,255,0.6) 50%, rgba(255,255,255,0) 75%);
}

/* 雲2 - 右側の中くらいの雲 */
.cloud-2 {
  bottom: -100px;
  right: 200px;
  width: 450px;
  height: 300px;
  filter: blur(30px);
  opacity: 0.8;
  animation: float-cloud-2 40s infinite ease-in-out;
  background: radial-gradient(ellipse at 40% 50%, rgba(255,255,255,0.95) 0%, rgba(245,248,255,0.8) 30%, rgba(240,245,255,0.5) 60%, rgba(255,255,255,0) 80%);
}

/* 雲3 - 左側の大きな雲 */
.cloud-3 {
  bottom: -180px;
  right: 500px;
  width: 700px;
  height: 450px;
  filter: blur(40px);
  opacity: 0.7;
  animation: float-cloud-3 45s infinite ease-in-out reverse;
  background: radial-gradient(ellipse at 50% 60%, rgba(248,250,255,0.9) 0%, rgba(240,245,255,0.7) 40%, rgba(235,240,250,0.4) 70%, rgba(255,255,255,0) 85%);
}

/* 雲4 - 背景の小さな雲 */
.cloud-4 {
  bottom: 50px;
  right: 300px;
  width: 350px;
  height: 250px;
  filter: blur(35px);
  opacity: 0.6;
  animation: float-cloud-4 50s infinite ease-in-out;
  background: radial-gradient(ellipse at 60% 40%, rgba(245,248,255,0.8) 0%, rgba(240,245,255,0.6) 40%, rgba(235,240,250,0.3) 70%, rgba(255,255,255,0) 85%);
}

/* 雲5 - 最背面の淡い雲 */
.cloud-5 {
  bottom: -50px;
  right: 100px;
  width: 800px;
  height: 350px;
  filter: blur(50px);
  opacity: 0.5;
  animation: float-cloud-5 55s infinite ease-in-out reverse;
  background: radial-gradient(ellipse at 70% 50%, rgba(240,245,255,0.7) 0%, rgba(235,240,250,0.5) 50%, rgba(230,235,245,0.2) 80%, rgba(255,255,255,0) 90%);
}

/* 雲のアニメーション */
@keyframes float-cloud-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-30px, -20px) scale(1.05); }
  50% { transform: translate(20px, -10px) scale(0.98); }
  75% { transform: translate(-10px, -25px) scale(1.02); }
}

@keyframes float-cloud-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(25px, -15px) scale(1.03); }
  66% { transform: translate(-20px, -25px) scale(0.97); }
}

@keyframes float-cloud-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20% { transform: translate(30px, -10px) scale(0.98); }
  40% { transform: translate(-25px, -20px) scale(1.04); }
  60% { transform: translate(15px, -15px) scale(0.99); }
  80% { transform: translate(-35px, -5px) scale(1.02); }
}

@keyframes float-cloud-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, -30px) scale(1.06); }
}

@keyframes float-cloud-5 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(35px, -5px) scale(0.96); }
  50% { transform: translate(-30px, -15px) scale(1.03); }
  75% { transform: translate(20px, -20px) scale(0.99); }
}

/* 背景スライダー */
.hero-background-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  animation: heroZoom 20s ease-out infinite;
  transform-origin: center bottom; /* 画像の下部を基点に設定 */
}

@keyframes heroZoom {
  0% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* オーバーレイ - より洗練されたグラデーション */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(1, 176, 142, 0.85) 0%,
    rgba(1, 176, 142, 0.7) 40%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}


.hero-container {
  width: 100%;
  padding: 120px 80px 80px;
  display: flex;
  align-items: center;
  z-index: 10;
  position: relative;
}

@media (min-width: 1600px) {
  .hero-container {
    padding: 80px 100px 60px;
  }
}

@media (max-width: 768px) {
  .hero-container {
    padding: 80px 20px 60px;
  }
}

.hero-content {
  flex: 0 0 40%;
  text-align: left;
  padding: 2rem 0;
}

.hero-visual {
  position: absolute;
  right: 60px;
  top: 65%;
  transform: translateY(-50%);
  width: 55%;
  max-width: 750px;
  z-index: 1;
}

/* ヒーローキャッチフレーズ */
.hero-catchphrase-container {
  position: absolute;
  top: 45%;
  left: 0;
  right: 0;
  z-index: 10;
  width: 100%;
  padding: 0 80px;
  display: flex;
  justify-content: flex-start;
}

@media (min-width: 1200px) {
  .hero-catchphrase-container {
    padding: 0 100px;
  }
}

@media (max-width: 768px) {
  .hero-catchphrase-container {
    padding: 0 20px;
    top: 40%;
  }
  
  .hero .hero-catchphrase {
    font-size: 28px;
  }
  
  .hero .hero-catchphrase .emphasis {
    font-size: 1.2em;
  }
}

.hero .hero-catchphrase {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  color: #ffffff;
  font-size: 42px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.02em;
  line-height: 1.4;
  display: block;
  margin-bottom: 48px;
  user-select: text;
  cursor: text;
  animation: fadeInUp 1s ease;
  text-align: left;
  white-space: normal;
  max-width: 900px;
}

.hero .hero-catchphrase .emphasis {
  font-size: 1.3em;
  font-weight: 900;
  color: #ffffff;
  display: inline-block;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.hero .hero-catchphrase:hover .emphasis {
  transform: scale(1.1);
}

/* VSCode風エディタ - ガラスモーフィズム */
.code-editor {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 4px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
  overflow: hidden;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 15px;
  width: 100%;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero .code-editor {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.editor-header {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.editor-controls {
  display: flex;
  gap: 0.5rem;
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.control-dot.red { background: #ff5f56; }
.control-dot.yellow { background: #ffbd2e; }
.control-dot.green { background: #27c93f; }

.editor-title {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.editor-tabs {
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.editor-tab {
  padding: 0.6rem 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  cursor: pointer;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  transition: all 0.3s ease;
}

.editor-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}

.editor-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-bottom: 2px solid #4ade80;
}

.editor-tab.tetris-tab,
.editor-tab.invaders-tab {
  /* 他のタブと同じスタイル */
}

/* テトリスオーバーレイ */
.tetris-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.tetris-container {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.tetris-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 0, 150, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.tetris-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.tetris-header h2 {
  color: #fff;
  font-size: 1.8rem;
  margin: 0;
  text-shadow: 0 0 20px rgba(255, 0, 150, 0.5);
  font-weight: 700;
  background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.close-button {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.tetris-game-area {
  display: flex;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

#tetris-canvas {
  border: 2px solid transparent;
  border-radius: 4px;
  background: linear-gradient(#0a0a0a, #0a0a0a) padding-box,
              linear-gradient(45deg, #ff006e, #8338ec, #3a86ff) border-box;
  box-shadow: 0 10px 40px rgba(131, 56, 236, 0.4), 
              inset 0 0 30px rgba(0, 0, 0, 0.8);
  position: relative;
}

.tetris-info {
  color: #fff;
  min-width: 200px;
}

.score-display {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  padding: 1.5rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.score-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.score-display h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

#score {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(45deg, #4ade80, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(74, 222, 128, 0.5);
}

.level-display {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  padding: 1.5rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.level-display h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: #f472b6;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

#level {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(45deg, #f472b6, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.controls {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.controls h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.controls p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #e5e5e5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.key {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: monospace;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  min-width: 2rem;
  text-align: center;
  display: inline-block;
}

.btn-tetris {
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
  background: linear-gradient(45deg, #ff006e, #8338ec);
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(131, 56, 236, 0.4);
}

.btn-tetris:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(131, 56, 236, 0.6);
}

.btn-icon {
  font-size: 1.3rem;
}

/* Invaders オーバーレイ */
.invaders-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.invaders-container {
  background: linear-gradient(135deg, #0f0f1e 0%, #1a0033 100%);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(138, 43, 226, 0.2);
  border: 1px solid rgba(138, 43, 226, 0.3);
  position: relative;
  overflow: hidden;
}

.invaders-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
}

.invaders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.invaders-header h2 {
  color: #fff;
  font-size: 1.8rem;
  margin: 0;
  text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
  font-weight: 700;
  background: linear-gradient(45deg, #9370db, #8a2be2, #4b0082);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.invaders-game-area {
  display: flex;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

#invaders-canvas {
  border: 2px solid transparent;
  border-radius: 4px;
  background: linear-gradient(#000000, #000000) padding-box,
              linear-gradient(45deg, #9370db, #8a2be2, #4b0082) border-box;
  box-shadow: 0 10px 40px rgba(138, 43, 226, 0.4), 
              inset 0 0 30px rgba(0, 0, 0, 0.8);
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.invaders-info {
  color: #fff;
  min-width: 200px;
}

#invaders-score,
#invaders-hiscore {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(45deg, #00ff00, #00cc00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}

.editor-body {
  display: flex;
  height: calc(500px - 120px);
  overflow: hidden;
}

.tab-content {
  display: flex;
  width: 100%;
}

.line-numbers {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
  line-height: 1.8;
  user-select: none;
  font-size: 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.editor-content {
  flex: 1;
  padding: 1.5rem;
  overflow-x: auto;
  background: transparent;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

/* Chrome, Safari, Opera */
.editor-content::-webkit-scrollbar {
  display: none;
}

.editor-content pre {
  margin: 0;
  color: #24292f;
  line-height: 1.8;
  font-size: 15px;
}

.editor-content code {
  font-family: inherit;
  letter-spacing: 0.3px;
}

/* シンタックスハイライト - 自然で見やすい配色 */
.keyword { color: #0969da; font-weight: 600; }  /* 青 - import, const, async */
.string { color: #0a6640; }  /* 緑 - 文字列 */
.comment { color: #6e7781; font-style: italic; }  /* グレー - コメント */
.function { color: #8250df; font-weight: 600; }  /* 紫 - 関数名 */
.variable { color: #953800; }  /* オレンジブラウン - 変数 */
.type { color: #0550ae; font-weight: 500; }  /* ロイヤルブルー - 型 */
.property { color: #0969da; }  /* 青 - プロパティ */

/* カーソル */
.cursor {
  color: #00695C;
  font-weight: bold;
  animation: none;
}

.cursor.blink {
  animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero h1 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  animation: fadeInUp 1s ease;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.hero p {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 32px;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

/* 動的コンテンツのスタイル */
.hero-dynamic-content {
  margin-bottom: 2rem;
}

h1.dynamic-title {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 24px;
  animation: fadeInUp 1s ease;
  letter-spacing: 0.05em;
  line-height: 1.4;
  transition: opacity 0.5s ease;
}

.dynamic-text {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  line-height: 1.8;
  letter-spacing: 0.02em;
  transition: opacity 0.5s ease;
  max-width: 600px;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--white);
  color: var(--primary-color);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 2px solid var(--white);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero .btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero .btn-primary {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* カード - 統一スタイル */
.card {
  background-color: var(--white);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* グリッドレイアウト - フルワイド対応 */
.grid {
  display: grid;
  gap: 2rem;
  width: 100%;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* レスポンシブグリッド */
@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* セクション */
.section {
  padding: 5rem 0;
}

/* CTAセクションの特別処理 */
.section.bg-gray-100:last-of-type {
  margin-bottom: 0 !important;
}

.container {
  width: 100%;
  padding: 0 80px;
}

@media (min-width: 1600px) {
  .container {
    padding: 0 100px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* フッター */
footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 3rem 0 1rem;
  width: 100%;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

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

.footer-section h4 {
  margin-bottom: 1rem;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 700;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: #cccccc;
  line-height: 2;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #555555;
  color: #cccccc;
}

/* フッター - ヘッダーと統一されたレイアウト */
.footer-fullwidth {
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
  color: #ffffff;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
}

/* フッターコンテナ - ヘッダーと同じ構造 */
.footer-container {
  width: 100%;
  padding: 0 80px;  /* ヘッダーと同じ80px */
  height: 120px;  /* ヘッダーと同じ高さ */
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  max-width: none;  /* 幅制限なし */
}

/* ロゴエリア - ヘッダーと同じ */
.footer-logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.footer-logo img {
  height: 70px;  /* ヘッダーと同じ70px */
  width: auto;
  filter: brightness(0) invert(1);
}

/* リンクエリア - ヘッダーと同じ構造 */
.footer-nav {
  display: flex;
  gap: 1.5rem;  /* ヘッダーと同じ1.5rem */
  align-items: center;
  list-style: none;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;  /* ヘッダーと同じ16px */
  font-weight: 500;  /* ヘッダーと同じ500 */
  padding: 0.75rem 1.25rem;  /* ヘッダーと同じパディング */
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

/* ホバー時のアンダーライン効果 */
.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #01b08e;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.footer-nav a:hover::after {
  width: calc(100% - 2.5rem);
}

.footer-nav a:hover {
  color: #01b08e;
}

/* フッター下部 */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 20px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin: 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* フッターのレスポンシブ対応 */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 20px;
    text-align: center;
  }
  
  .footer-logo {
    margin-bottom: 1rem;
  }
  
  .footer-logo img {
    height: 40px;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-nav a {
    font-size: 0.9rem;
  }
}


/* フォーム */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


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

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

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

/* ユーティリティクラス */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ページヒーローセクション */
.page-hero {
  background: linear-gradient(135deg, #01b08e 0%, #00896f 100%);
  color: white;
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.page-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* 会社情報セクション */
.company-info-section,
.directors-section,
.business-section,
.financial-section {
  padding: 80px 0;
}

.company-info-section {
  background: white;
}

.directors-section {
  background: #f8f9fa;
}

.business-section {
  background: white;
}

.financial-section {
  background: #f8f9fa;
}

.company-info-section h2,
.directors-section h2,
.business-section h2,
.financial-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #333;
}

/* テーブルスタイル */
.info-table-wrapper {
  max-width: 100%;
  margin: 0 auto;
  background: white;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.company-info-table,
.directors-table,
.financial-table {
  width: 100%;
  border-collapse: collapse;
}

.company-info-table th {
  background: transparent;
  color: #666;
  padding: 1.2rem 1.5rem;
  text-align: left;
  font-weight: 500;
  width: 25%;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
}

.company-info-table td {
  padding: 1.2rem 1.5rem;
  background: transparent;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}

.company-info-table tr {
  transition: background-color 0.2s ease;
}

.company-info-table tr:hover {
  background-color: #fafafa;
}

.company-info-table tr:last-child th,
.company-info-table tr:last-child td {
  border-bottom: none;
}

.company-info-table a {
  color: #01b08e;
  text-decoration: none;
  transition: color 0.3s ease;
}

.company-info-table a:hover {
  color: #00896f;
  text-decoration: underline;
}

/* 役員テーブル */
.directors-table thead th {
  background: transparent;
  color: #666;
  padding: 1.2rem 1.5rem;
  text-align: left;
  font-weight: 500;
  border-bottom: 2px solid #f0f0f0;
  font-size: 0.95rem;
}

.directors-table tbody td {
  padding: 1.2rem 1.5rem;
  background: transparent;
  border-bottom: 1px solid #f0f0f0;
}

.directors-table tbody tr {
  transition: background-color 0.2s ease;
}

.directors-table tbody tr:hover {
  background-color: #fafafa;
}

.directors-table tbody tr:last-child td {
  border-bottom: none;
}


/* 事業内容 */
.business-content {
  max-width: 100%;
  margin: 0 auto;
  background: white;
  border-radius: 4px;
  padding: 2.5rem;
  border: 1px solid #f0f0f0;
}

.business-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.business-list li {
  display: flex;
  align-items: flex-start;
  padding: 1rem 0;
  font-size: 1rem;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.business-list li:hover {
  background-color: #fafafa;
}

.business-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #01b08e;
  border-radius: 50%;
  margin-right: 1rem;
  margin-top: 0.5rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.business-list li:last-child {
  border-bottom: none;
}

/* 財務テーブル */
.financial-table thead th {
  background: transparent;
  color: #666;
  padding: 1.2rem 1.5rem;
  font-weight: 500;
  border-bottom: 2px solid #f0f0f0;
  font-size: 0.95rem;
}

.financial-table tbody td {
  padding: 1.2rem 1.5rem;
  background: transparent;
  border-bottom: 1px solid #f0f0f0;
}

.financial-table tbody tr {
  transition: background-color 0.2s ease;
}

.financial-table tbody tr:hover {
  background-color: #fafafa;
}

.financial-table tbody tr:last-child td {
  border-bottom: none;
}

.financial-table .number {
  font-family: 'Roboto Mono', monospace;
}

.financial-table .negative {
  color: #dc3545;
}

.financial-table .highlight {
  color: #01b08e;
}

/* ダウンロードセクション */
.download-section {
  max-width: 1000px;
  margin: 3rem auto 0;
  background: white;
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.download-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

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

.download-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 4px;
  padding: 1rem;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

.download-link:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.download-link:hover .download-icon,
.download-link:hover span {
  color: #01b08e;
}

.download-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
  color: #666;
  transition: color 0.3s ease;
}

/* 統一コンテナクラス - フルワイド対応 */
.section-container {
  width: 100%;
  padding: 0 80px;
}

@media (min-width: 1600px) {
  .section-container {
    padding: 0 100px;
  }
}

@media (max-width: 768px) {
  .section-container {
    padding: 0 20px;
  }
}

/* コンテンツ幅制御クラス */
.content-narrow {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.content-medium {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.content-wide {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* フルワイドセクション内での中央配置 */
.section-container-centered {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .section-container-centered {
    padding: 0 20px;
  }
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

/* タブレット用レスポンシブ */
@media (max-width: 1024px) {
  .hero .hero-catchphrase {
    font-size: 36px;
  }
}

/* 大画面用の調整を追加 */
@media (min-width: 1600px) {
  .header-container {
    padding: 0 100px;
  }
}

/* 中画面用の調整 */
@media (max-width: 1400px) {
  nav ul {
    gap: 1rem;
  }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  header {
    height: 80px;
  }
  
  /* 雲のモバイル対応 */
  .hero-clouds {
    height: 250px;
  }
  
  /* News Releasesのモバイル対応 */
  .news-pickup {
    margin-top: -300px !important;
  }
  
  .cloud-1 {
    width: 400px;
    height: 250px;
    bottom: -100px;
    right: -150px;
    filter: blur(20px);
  }
  
  .cloud-2 {
    width: 300px;
    height: 200px;
    bottom: -80px;
    right: 100px;
    filter: blur(25px);
  }
  
  .cloud-3 {
    width: 450px;
    height: 300px;
    bottom: -120px;
    right: 200px;
    filter: blur(30px);
  }
  
  .cloud-4 {
    width: 250px;
    height: 180px;
    bottom: 30px;
    right: 150px;
  }
  
  .cloud-5 {
    width: 500px;
    height: 250px;
    bottom: -40px;
    right: 50px;
  }
  .logo img {
    height: 45px;  /* モバイル版も小さく */
  }
  .mega-menu {
    top: 80px;
  }
  /* モバイルではメガメニューを無効化 */
  .has-megamenu .nav-link {
    pointer-events: none;
  }
  .menu-indicator {
    display: none;
  }
  /* モバイルナビゲーション */
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: var(--shadow);
  }

  nav ul.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  /* ヒーローセクション */
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-content {
    flex: 1 1 100%;
    text-align: center;
  }

  .hero-visual {
    position: relative;
    right: auto;
    width: 100%;
    max-width: 100%;
    transform: none;
    margin-top: 2rem;
  }
  
  .code-editor {
    max-width: 100%;
    font-size: 12px;
    height: 350px;
  }
  
  .editor-body {
    height: calc(350px - 100px);
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-catchphrase-container {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    margin-bottom: 2rem;
  }

  .hero .hero-catchphrase {
    font-size: 28px;
    text-align: left;
    padding: 0 20px;
    line-height: 1.4;
  }

  /* グリッド調整 */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* セクション余白 */
  .section {
    padding: 3rem 0;
  }

  /* フォントサイズ調整 */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

/* ニュースPickupセクション */
.news-pickup {
  margin-top: 0;
  position: relative;
  z-index: 20;
  padding: 4rem 0 3rem;
  background-color: transparent;
}

/* News Releasesタイトル */
.news-pickup h2 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 2rem;
}

.news-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 4px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}


.news-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.1);
}

.news-card-content {
  padding: 1.5rem;
}

.news-date {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  min-height: 2.8em;
}

.news-title a {
  color: var(--text-primary);
  font-weight: 600;
  transition: color 0.3s ease;
}

.news-title a:hover {
  color: var(--primary-color);
}

.news-link {
  font-size: 0.875rem;
  color: var(--primary-color);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.news-link:hover {
  color: var(--primary-hover);
  transform: translateX(3px);
}

/* レスポンシブ対応 - ニュースカード */
@media (max-width: 992px) {
  .news-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-pickup {
    margin-top: -80px;
  }
  
  .news-cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .news-card-image {
    height: 200px;
  }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --light-gray: #2a2a2a;
    --border-color: #444444;
  }

  body {
    background-color: #1a1a1a;
  }

  .card {
    background-color: #2a2a2a;
  }
}

/* 導入事例カード */
.case-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ケースカードのアニメーション遅延 */
.case-swiper .swiper-slide:nth-child(1) .case-card { animation-delay: 0.3s; }
.case-swiper .swiper-slide:nth-child(2) .case-card { animation-delay: 0.8s; }
.case-swiper .swiper-slide:nth-child(3) .case-card { animation-delay: 1.3s; }
.case-swiper .swiper-slide:nth-child(4) .case-card { animation-delay: 1.8s; }

.case-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.case-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.case-card:hover .case-image img {
  transform: scale(1.05);
}

.case-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.case-content p {
  flex: 1;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.case-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.case-link:hover {
  color: var(--primary-hover);
  transform: translateX(5px);
}

/* Swiperカスタマイズ */
.case-swiper {
  padding: 0 50px 50px;
  position: relative;
}

.case-swiper .swiper-button-prev,
.case-swiper .swiper-button-next {
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.case-swiper .swiper-button-prev:hover,
.case-swiper .swiper-button-next:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
}

.case-swiper .swiper-button-prev::after,
.case-swiper .swiper-button-next::after {
  font-size: 20px;
  font-weight: bold;
}

.case-swiper .swiper-pagination-bullet {
  background: var(--primary-color);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.case-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.2);
}

/* サービスカード */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 350px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* サービスカードのアニメーション遅延 */
.services-grid .service-card:nth-child(1) { animation-delay: 0.2s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.7s; }
.services-grid .service-card:nth-child(3) { animation-delay: 1.2s; }
.services-grid .service-card:nth-child(4) { animation-delay: 1.7s; }

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(1, 176, 142, 0.3);
}

.service-icon-bg {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* 装飾的な背景パターン */
.service-card::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(1, 176, 142, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon-bg img {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon-bg img {
  transform: scale(1.2);
}

.service-card h3 {
  color: #333;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  position: relative;
  z-index: 2;
}

.service-card p {
  color: #666;
  line-height: 1.8;
  flex: 1;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.service-link {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.service-card:hover .service-link {
  opacity: 1;
  transform: translateY(0);
}

.service-link svg {
  color: white;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.service-link:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(1, 176, 142, 0.4);
}

.service-link:hover svg {
  transform: translateX(3px);
}

/* レスポンシブ対応 - サービスカード */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .service-card {
    min-height: 300px;
  }
}

/* プリント対応 */
@media print {
  header,
  footer,
  .no-print {
    display: none;
  }

  body {
    font-size: 12pt;
  }

  a {
    color: inherit;
    text-decoration: underline;
  }
}

/* ============================
   サービスページ専用スタイル
   ============================ */

/* サービスヒーローセクション */
.service-hero {
  position: relative;
  height: 400px;
  background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&h=800&fit=crop');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.service-hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.service-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* パンくずリスト */
.breadcrumb {
  background-color: var(--light-gray);
  padding: 1rem 0;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.3s;
}

.breadcrumb a:hover {
  opacity: 0.8;
}

.breadcrumb li[aria-current="page"] {
  color: var(--text-secondary);
}

/* サービス概要セクション */
.service-overview {
  padding: 80px 0 40px;
}

.service-overview .section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.service-overview .section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* サービス詳細セクション */
.service-detail {
  padding: 80px 0;
  background-color: white;
}

.service-detail:nth-child(even) {
  background-color: var(--light-gray);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.service-detail-reverse .service-detail-grid {
  direction: rtl;
}

.service-detail-reverse .service-detail-content {
  direction: ltr;
}

.service-detail-content {
  position: relative;
}

.service-number {
  font-size: 5rem;
  font-weight: 900;
  color: var(--primary-color);
  opacity: 0.1;
  position: absolute;
  top: -40px;
  left: -20px;
  line-height: 1;
}

.service-detail h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-detail h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-weight: 500;
}

.service-detail p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.service-detail-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-hover);
}

/* サービス機能リスト */
.service-features {
  margin-bottom: 2rem;
}

.service-features h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-features ul {
  list-style: none;
  padding: 0;
}

.service-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* 技術タグ */
.service-tech {
  margin-bottom: 2rem;
}

.service-tech h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tags span {
  background-color: var(--light-gray);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* 導入効果カード */
.service-benefits {
  margin-bottom: 2rem;
}

.service-benefits h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.benefit-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.benefit-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 4px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.benefit-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.benefit-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* プロセスステップ */
.service-process {
  margin-bottom: 2rem;
}

.service-process h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.process-steps {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.process-step {
  flex: 1;
  text-align: center;
  background-color: var(--white);
  padding: 1.5rem 1rem;
  border-radius: 4px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.step-number {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  font-weight: 700;
}

.step-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.process-arrow {
  color: var(--primary-color);
  font-size: 1.5rem;
}

/* 認定バッジ */
.service-certifications {
  margin-bottom: 2rem;
}

.service-certifications h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.cert-badges {
  display: flex;
  gap: 1rem;
}

.cert-badge img {
  height: 40px;
}

/* CTA ボタン */
.service-detail .cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.service-detail .cta-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* CTA セクション */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  padding: 100px 0;
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.cta-button-primary {
  background-color: white;
  color: var(--primary-color);
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button-secondary {
  background-color: transparent;
  color: white;
  padding: 1rem 2rem;
  border: 2px solid white;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* ストーリーセクション Ver.2 - フルスクリーン */
.story-section-v2 {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ストーリーパネル */
.story-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 1s ease-in-out;
  transform: scale(1.1);
}

.story-panel.active {
  opacity: 1;
  transform: scale(1);
}

/* 画像ラッパー */
.story-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.story-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
  transition: transform 10s ease-out;
}

.story-panel.active .story-image-wrapper img {
  transform: scale(1);
}

/* オーバーレイ */
.story-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

/* コンテンツ */
.story-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  z-index: 2;
  max-width: 600px;
}

/* ストーリー番号 */
.story-number {
  display: inline-block;
  font-size: 8rem;
  font-weight: 900;
  opacity: 0.1;
  position: absolute;
  top: -80px;
  left: -20px;
  font-family: 'Inter', sans-serif;
}

/* ストーリータイトル */
.story-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.05em;
}

/* ストーリー説明 */
.story-description {
  font-size: 1.5rem;
  line-height: 2;
  font-weight: 300;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.08em;
}

/* ナビゲーション */
.story-navigation {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 3;
}

.story-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.story-dot.active {
  background: white;
  transform: scale(1.5);
}

.story-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* 縦スクロールプロンプト */
.story-section-v2::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.story-section-v2::before {
  content: '';
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: white;
  border-radius: 4px;
  animation: scrollPrompt 1.5s ease-in-out infinite;
  z-index: 1;
}

@keyframes scrollPrompt {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(15px); opacity: 0.5; }
  100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .story-content {
    left: 5%;
    right: 5%;
    max-width: none;
  }
  
  .story-number {
    font-size: 4rem;
    top: -40px;
  }
  
  .story-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  .story-description {
    font-size: 1.1rem;
    line-height: 1.8;
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .service-hero h1 {
    font-size: 2rem;
  }

  .service-hero p {
    font-size: 1rem;
  }

  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }

  .service-detail-reverse .service-detail-grid {
    direction: ltr;
  }

  .service-number {
    font-size: 3rem;
    top: -20px;
    left: -10px;
  }

  .service-detail h2 {
    font-size: 2rem;
  }

  .benefit-cards {
    grid-template-columns: 1fr;
  }

  .process-steps {
    flex-direction: column;
  }

  .process-arrow {
    transform: rotate(90deg);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}