/* ニューモーフィズムデザイン - 共通スタイル（色紙アプリ風） */

:root {
  --bg-color: #ffffff;
  --text-color: rgba(128, 128, 128, 0.7);
  --text-dark: rgba(128, 128, 128, 0.8);
  --primary-color: rgb(255, 153, 153);
  --secondary-color: rgb(255, 120, 120);
  --accent-blue: rgb(153, 209, 242);
  --accent-yellow: rgb(255, 217, 102);
  --accent-red: rgb(255, 77, 77);
  --shadow-light: rgba(255, 255, 255, 1);
  --shadow-dark: rgba(0, 0, 0, 0.25);
  --card-bg: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "tsukushi-a-round-gothic", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN", sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* アニメーション背景 */
.animation-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.animation-shape {
  position: absolute;
  will-change: transform, opacity;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.1;
  }
  100% {
    transform: translateY(calc(-100vh - 200px)) rotate(360deg);
    opacity: 0.1;
  }
}

/* ニューモーフィズムコンテナ */
.neumorphic-container {
  background: var(--bg-color);
  border-radius: 30px;
  box-shadow:
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
  padding: 2rem;
  margin: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.neumorphic-inset {
  background: var(--bg-color);
  border-radius: 20px;
  box-shadow:
    inset 3px 3px 6px var(--shadow-dark),
    inset -3px -3px 6px var(--shadow-light);
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* ヘッダー */
header {
  background: var(--bg-color);
  padding: 1rem 0;
  box-shadow:
    0 3px 8px var(--shadow-dark),
    0 -3px 8px var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

header.header-hidden {
  transform: translateY(-100%);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-dark);
}

.nav-menu {
  position: relative;
}

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-color);
  border: none;
  border-radius: 20px;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow:
    5px 5px 8px var(--shadow-dark),
    -5px -5px 8px var(--shadow-light);
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  box-shadow:
    3px 3px 6px var(--shadow-dark),
    -3px -3px 6px var(--shadow-light);
}

.nav-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.nav-menu.active .nav-arrow {
  transform: rotate(180deg);
}

.nav-links {
  list-style: none;
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-color);
  border-radius: 20px;
  padding: 1rem;
  min-width: 200px;
  box-shadow:
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
  z-index: 1000;
}

.nav-menu.active .nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-links li {
  width: 100%;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
}

.nav-links a:hover {
  background: var(--bg-color);
  box-shadow:
    inset 3px 3px 6px var(--shadow-dark),
    inset -3px -3px 6px var(--shadow-light);
}

/* デスクトップ表示（768px以上） */
@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    padding: 0;
    min-width: auto;
  }

  .nav-links a {
    padding: 0.5rem 1rem;
  }

  .nav-links a:hover {
    background: transparent;
    box-shadow:
      5px 5px 8px var(--shadow-dark),
      -5px -5px 8px var(--shadow-light);
  }
}

/* メインコンテンツ */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--bg-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  box-shadow:
    5px 5px 8px var(--shadow-dark),
    -5px -5px 8px var(--shadow-light);
  transition: all 0.3s ease;
}

.btn:hover {
  box-shadow:
    3px 3px 6px var(--shadow-dark),
    -3px -3px 6px var(--shadow-light);
  transform: translateY(-1px);
}

.btn:active {
  box-shadow:
    inset 3px 3px 6px var(--shadow-dark),
    inset -3px -3px 6px var(--shadow-light);
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow:
    0 4px 8px rgba(255, 153, 153, 0.2);
}

.btn-primary:hover {
  box-shadow:
    0 6px 12px rgba(255, 153, 153, 0.3);
  transform: translateY(-2px);
}

.btn-primary:active {
  box-shadow:
    0 2px 4px rgba(255, 153, 153, 0.2);
  transform: translateY(0);
}

.btn-android {
  background: var(--primary-color);
  color: white;
  box-shadow:
    0 4px 8px rgba(255, 153, 153, 0.2);
}

.btn-android:hover {
  box-shadow:
    0 6px 12px rgba(255, 153, 153, 0.3);
  transform: translateY(-2px);
}

.btn-android:active {
  box-shadow:
    0 2px 4px rgba(255, 153, 153, 0.2);
  transform: translateY(0);
}

/* カード */
.card {
  background: var(--bg-color);
  border-radius: 30px;
  padding: 2rem;
  margin: 1rem 0;
  box-shadow:
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
  border: 1px solid rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow:
    10px 10px 12px var(--shadow-dark),
    -10px -10px 12px var(--shadow-light);
}

/* フォーム要素 */
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 1rem;
  background: var(--bg-color);
  border: 1px solid rgba(128, 128, 128, 0.1);
  border-radius: 20px;
  box-shadow:
    inset 3px 3px 5px var(--shadow-dark),
    inset -3px -3px 5px var(--shadow-light);
  font-size: 1rem;
  color: var(--text-dark);
  margin: 0.5rem 0;
  font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow:
    inset 4px 4px 6px var(--shadow-dark),
    inset -4px -4px 6px var(--shadow-light);
  border-color: var(--primary-color);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: rgba(128, 128, 128, 0.5);
}

/* ポップアップ/モーダル */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.popup-overlay.active {
  display: flex;
}

.popup-content {
  background: var(--bg-color);
  border-radius: 30px;
  padding: 3rem;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow:
    10px 10px 20px var(--shadow-dark),
    -10px -10px 20px var(--shadow-light);
  position: relative;
  animation: popupSlideIn 0.3s ease;
}

.popup-content h2 {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.popup-content h3 {
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.popup-content p {
  color: var(--text-color);
  line-height: 1.7;
}

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

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  background: var(--bg-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: rgba(128, 128, 128, 0.5);
  box-shadow:
    5px 5px 8px var(--shadow-dark),
    -5px -5px 8px var(--shadow-light);
  transition: all 0.3s ease;
}

.popup-close:hover {
  box-shadow:
    3px 3px 6px var(--shadow-dark),
    -3px -3px 6px var(--shadow-light);
}

.popup-close:active {
  box-shadow:
    inset 3px 3px 6px var(--shadow-dark),
    inset -3px -3px 6px var(--shadow-light);
}

/* フッター */
footer {
  background: var(--bg-color);
  padding: 2rem 0;
  text-align: center;
  margin-top: 0;
  box-shadow:
    0 -3px 8px var(--shadow-dark),
    0 3px 8px var(--shadow-light);
}

footer p {
  color: var(--text-color);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

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

/* SNSアイコン */
.sns-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--bg-color);
  border-radius: 50%;
  box-shadow:
    6px 6px 12px var(--shadow-dark),
    -6px -6px 12px var(--shadow-light);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.sns-icon:hover {
  transform: translateY(-3px);
  box-shadow:
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
}

.sns-icon:active {
  transform: translateY(0);
  box-shadow:
    inset 3px 3px 6px var(--shadow-dark),
    inset -3px -3px 6px var(--shadow-light);
}

/* タイトル */
h1, h2, h3, h4 {
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

/* グリッドレイアウト */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  main {
    padding: 0 1rem;
  }

  nav {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .popup-content {
    margin: 1rem;
    padding: 2rem;
    max-width: 95%;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* ステップ表示（フロー用） */
.step-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  background: var(--bg-color);
  border-radius: 30px;
  padding: 2rem;
  box-shadow:
    8px 8px 10px var(--shadow-dark),
    -8px -8px 10px var(--shadow-light);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
  box-shadow:
    0 4px 8px rgba(255, 153, 153, 0.3);
  color: white;
}

.step-content h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.step-content p {
  color: var(--text-color);
}

/* ガイドセクション */
.guide-section {
  margin: 2rem 0;
}

.guide-item {
  background: var(--bg-color);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow:
    6px 6px 10px var(--shadow-dark),
    -6px -6px 10px var(--shadow-light);
}

.guide-item h4 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.guide-item p,
.guide-item ul,
.guide-item ol {
  color: var(--text-color);
}

/* 例セクション */
.example-section-wrapper {
  padding: 0;
  min-height: 350vh;
  position: relative;
}

.example-section {
  position: sticky;
  top: 0;
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

.example-variant {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* タイトル */
.example-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  opacity: 0;
  transition: opacity 1s ease-out;
}

.example-title.visible {
  opacity: 1;
}

.example-image-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto 2.5rem;
  opacity: 0;
  transition: opacity 1s ease-out;
}

.example-image-container.visible {
  opacity: 1;
}

.example-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

/* 画像プレースホルダー */
.example-image-placeholder {
  width: 400px;
  height: 400px;
  background: linear-gradient(145deg, #f5f5f5 0%, #e8e8e8 50%, #f0f0f0 100%);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.example-image-placeholder .example-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.example-image-placeholder:not(:has(img))::after {
  content: "Coming Soon";
  color: rgba(128, 128, 128, 0.4);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* 説明セクション */
.example-description {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  width: 100%;
}

.example-description-item {
  color: var(--text-color);
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.example-description-item.visible {
  opacity: 1;
}

.example-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 2rem;
}

.example-item {
  color: var(--text-color);
  font-size: 1.1rem;
  padding: 0.75rem 0;
  margin: 0.5rem 0;
  position: relative;
  padding-left: 2rem;
}

.example-item::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .example-section-wrapper {
    min-height: 300vh;
  }

  .example-section {
    padding: 1.5rem 1rem;
  }

  .example-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  .example-image-placeholder {
    width: 300px;
    height: 300px;
  }

  .example-image-placeholder::after {
    font-size: 0.9rem;
  }

  .example-description {
    gap: 1rem;
  }

  .example-description-item {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
}

/* 特徴セクション */
.features-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  opacity: 0;
  transition: opacity 1s ease-out;
}

.features-title.visible {
  opacity: 1;
}

.features-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  min-height: 400px;
}

.feature-item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.feature-item.visible {
  opacity: 1;
}

.feature-image-placeholder {
  width: 280px;
  height: 280px;
  background: linear-gradient(145deg, #f5f5f5 0%, #e8e8e8 50%, #f0f0f0 100%);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feature-image-placeholder .feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.feature-image-placeholder:not(:has(img))::after {
  content: "Coming Soon";
  color: rgba(128, 128, 128, 0.4);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-content {
  max-width: 400px;
}

.feature-content h3 {
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.feature-content p {
  color: var(--text-color);
  line-height: 1.8;
  margin: 0;
  font-size: 1rem;
}

/* 特徴セクション レスポンシブ */
@media (max-width: 768px) {
  .features-container {
    gap: 2.5rem;
  }

  .feature-image-placeholder {
    width: 240px;
    height: 240px;
  }

  .feature-content h3 {
    font-size: 1.2rem;
  }

  .feature-content p {
    font-size: 0.95rem;
  }
}

/* 利用シーンセクション - スクロールアニメーション */
.scenes-section {
  margin: 0;
  padding: 0;
  min-height: 700vh;
  position: relative;
}

.scenes-inner {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

.scenes-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 3rem;
  opacity: 0;
  transition: opacity 1s ease-out;
}

.scenes-title.visible {
  opacity: 1;
}

.scenes-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  min-height: 400px;
}

.scene-item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.scene-item.visible {
  opacity: 1;
}

.scene-image-placeholder {
  width: 280px;
  height: 280px;
  background: linear-gradient(145deg, #f5f5f5 0%, #e8e8e8 50%, #f0f0f0 100%);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scene-image-placeholder .scene-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.scene-image-placeholder:not(:has(img))::after {
  content: "Coming Soon";
  color: rgba(128, 128, 128, 0.4);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scene-content {
  max-width: 400px;
}

.scene-content h3 {
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.scene-content p {
  color: var(--text-color);
  line-height: 1.8;
  margin: 0;
  font-size: 1rem;
}

/* CTAセクション */
.cta-section-wrapper {
  margin: 0;
  padding: 2rem 0;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner.visible {
  opacity: 1;
}

.cta-content {
  padding: 3rem 2rem;
}

.cta-content h2 {
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  margin: 1.5rem 0;
}

.cta-content .cta-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.cta-inner .sns-icons-container {
  margin-top: 2rem;
}

/* タブレット・モバイル対応 */
@media (max-width: 768px) {
  .features-container {
    gap: 1.5rem;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .feature-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    font-size: 2rem;
  }

  .feature-icon svg {
    width: 35px;
    height: 35px;
  }

  .feature-content h3 {
    font-size: 1.2rem;
  }

  /* シーンセクション レスポンシブ */
  .scenes-section {
    min-height: 600vh;
  }

  .scene-image-placeholder {
    width: 240px;
    height: 240px;
  }

  .scene-content h3 {
    font-size: 1.2rem;
  }

  .scene-content p {
    font-size: 0.95rem;
  }
}

/* ヒーローセクション アニメーション */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 2rem !important;
  padding-top: 0.5rem !important;
}

.hero-logo-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.hero-logo-text {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  order: 2;
}

.hero-logo-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  order: 1;
}

.hero-logo-container.show {
  animation: logoFadeScale 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes logoFadeScale {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
  }
  60% {
    transform: scale(1.1) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.hero-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  min-height: 2rem;
}

.hero-text-container {
  margin: 0.5rem 0 2rem 0;
  max-width: 800px;
}

.hero-text-line {
  margin: 1rem 0;
  line-height: 1.4;
  min-height: 200px;
}

/* 文字アニメーション */
.char-animate {
  display: inline-block;
  opacity: 0;
  animation: charBounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.char-animate-text {
  display: inline-block;
  opacity: 0;
  animation: charFadeSlide 0.6s ease-out forwards;
}

/* 「"動く"」の特別なアニメーション */
.moving-text {
  animation: charFadeSlide 0.6s ease-out forwards, movingAnimation 2s ease-in-out 1s infinite !important;
}

@keyframes movingAnimation {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-8px) rotate(-3deg) scale(1.1);
  }
  50% {
    transform: translateY(0) rotate(3deg) scale(1.05);
  }
  75% {
    transform: translateY(-4px) rotate(-2deg) scale(1.08);
  }
}

@keyframes charBounceIn {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg) translateY(-50px);
  }
  60% {
    transform: scale(1.2) rotate(10deg) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg) translateY(0);
  }
}

@keyframes charFadeSlide {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 他の要素を初期非表示 */
/* index.html専用のアニメーション設定 */
body.with-animation header {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

body.with-animation section:not(.hero-section):not(.example-section-wrapper):not(.features-section):not(.scenes-section):not(.cta-section-wrapper) {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

body.with-animation footer {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* アニメーション完了後に表示 */
body.with-animation.show-content header,
body.with-animation.show-content section:not(.hero-section):not(.example-section-wrapper):not(.features-section):not(.scenes-section):not(.cta-section-wrapper),
body.with-animation.show-content footer {
  opacity: 1;
}

/* 例えばセクションはスクロールで制御 */

/* ボタンは初期状態で非表示（アニメーション時） */
body.with-animation .hero-buttons:not(.show) {
  opacity: 0;
  visibility: hidden;
}

body.with-animation .hero-buttons.show {
  visibility: visible;
  animation: fadeInUp 1s ease-out forwards;
}

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