/* ========== 基本スタイル ========== */
:root {
  /* カラー */
  --primary-color: #4a6bff; /* メインブランドカラー */
  --primary-dark: #3a5ad9; /* Consider adjusting if primary is too dark for dark theme */
  --secondary-color: #34d399; /* アクセントカラー */
  --text-dark: #e0e0e0; /* Light gray for main text */
  --text-light: #b3b3b3; /* Slightly darker light gray */
  --text-lighter: #8c8c8c; /* Even darker light gray for less important text */
  --white: #121212; /* Main dark background */
  --gray-50: #1a1a1a; /* Slightly lighter dark gray for section backgrounds */
  --gray-100: #1f1f1f; /* Another shade for card backgrounds */
  --gray-200: #2a2a2a; /* Borders or dividers in dark theme */
  --gray-300: #3a3a3a; /* Borders or dividers in dark theme */
  --gray-400: #6b7280; /* Kept for consistency, may need adjustment */
  
  /* タイポグラフィ */
  --font-family: 'Noto Sans JP', sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  
  /* スペーシング */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* その他 */
  --border-radius: 8px;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s ease;
  --container-max-width: 1200px;
}

/* リセットとグローバルスタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white); /* This will now be the dark background */
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-color); /* Make links use primary color for visibility */
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section-title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--spacing-xl);
  text-align: center;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.highlight {
  color: var(--primary-color);
  font-weight: 700;
}

/* ========== コンポーネント ========== */

/* ボタン */
.btn {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff; /* Text on primary button should be light */
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--gray-100); /* Darker background for secondary button */
  color: var(--text-dark); /* Light text */
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--gray-200); /* Slightly lighter on hover */
  transform: translateY(-2px);
}

.btn-large {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-lg);
}

/* エラーメッセージ */
.error-message {
  color: #e53e3e;
  font-size: var(--font-size-sm);
  margin-top: 5px;
  display: none;
}

/* ========== ヘッダー ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white); /* Will be dark */
  box-shadow: 0 1px 3px rgba(255, 255, 255, 0.05); /* Lighter shadow for dark bg */
  transition: var(--transition);
}

.header.scrolled {
  background-color: var(--white); /* Will be dark */
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.08); /* Lighter shadow for dark bg */
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
}

.logo {
  width: 300px;
}

.nav-list {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--text-dark); /* Will be light gray */
  transition: var(--transition);
}

/* ========== ヒーローセクション ========== */
.hero {
  padding-top: calc(70px + var(--spacing-3xl) + 2rem); /* Increased padding */
  padding-bottom: calc(var(--spacing-3xl) + 2rem); /* Increased padding */
  background-image: linear-gradient(135deg, #1f1f1f 0%, #121212 100%); /* Subtle gradient */
  position: relative;
  overflow: hidden;
}

/* Removed .hero::before pseudo-element for a cleaner dark look */

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.main-title {
  font-size: 3.8rem; /* Increased font size */
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  line-height: 1.3; /* Adjusted line height */
}

.hero-subtitle {
  font-size: calc(var(--font-size-xl) * 1.15); /* Slightly increased font size */
  color: var(--text-light);
  margin-bottom: var(--spacing-lg);
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg); /* Added margin for better spacing */
}

/* Specific styling for hero CTA buttons */
.hero-cta .btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.hero-cta .btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff; /* Light text on hover */
  border-color: var(--primary-color);
}

/* ========== サービスセクション ========== */
.services {
  padding: var(--spacing-3xl) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--spacing-lg);
}

.service-card {
  background-color: var(--gray-100); /* e.g., #1f1f1f */
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Adjusted shadow for dark theme */
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--gray-300); /* Subtle border e.g. #3a3a3a */
}

.service-card:hover {
  transform: translateY(-5px) scale(1.03); /* Combined transforms */
  border-color: var(--primary-color); /* Highlight border on hover */
}

.service-icon {
  font-size: 3rem; /* Increased icon size */
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.service-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.service-description {
  color: var(--text-light); /* Will be a light gray */
}

/* ========== プロセスセクション ========== */
.process {
  padding: var(--spacing-3xl) 0;
  background-color: var(--gray-50); /* Will be a slightly lighter dark gray */
}

.process-steps {
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 40px;
  left: 19px;
  width: 2px;
  height: calc(100% + var(--spacing-lg));
  background-color: rgba(255, 255, 255, 0.2); /* Lighter connector for dark bg */
  z-index: 0;
}

.process-step:last-child::after {
  display: none;
}

.step-number {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: #FFFFFF; /* Ensure text is light */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  margin-right: var(--spacing-md);
  z-index: 1;
  flex-shrink: 0;
}

.step-content {
  background-color: var(--gray-100); /* Darker card background */
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Consistent shadow */
  width: 100%;
  border: 1px solid var(--gray-300); /* Consistent border */
  transition: var(--transition); /* For hover effects */
}

.step-content:hover {
  border-color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); /* Enhanced shadow on hover */
}

.step-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xs);
  font-weight: 700;
}

.step-description {
  color: var(--text-light); /* Will be a light gray */
}

.process-note {
  margin-top: var(--spacing-xl);
  background-color: var(--gray-100); /* Darker card background */
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Consistent shadow */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--gray-300); /* Consistent border */
}

.note-icon {
  color: var(--primary-color);
  font-size: var(--font-size-xl);
}

/* ========== 会社概要セクション ========== */
.company {
  padding: var(--spacing-3xl) 0;
}

.company-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
}

.company-info {
  flex: 1;
  min-width: 300px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: var(--spacing-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Clearer light border */
}

.company-table th {
  text-align: left;
  width: 30%;
  color: var(--text-light); /* Will be a light gray */
  font-weight: 500;
}

.ceo-message {
  flex: 1;
  min-width: 300px;
  background-color: var(--gray-50); /* Card-like background */
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-300);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.company-info { /* Contains the table */
  flex: 1;
  min-width: 300px;
  background-color: var(--gray-50); /* Card-like background */
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-300);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


.message-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-left: var(--spacing-sm);
}

.message-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 3px;
  background-color: var(--primary-color);
}

.message-content p {
  margin-bottom: var(--spacing-sm);
}

.ceo-sign {
  margin-top: var(--spacing-md);
  text-align: right;
  font-weight: 500;
}

/* ========== 実績セクション ========== */
.achievements {
  padding: var(--spacing-3xl) 0;
  background-color: var(--gray-50); /* Will be a slightly lighter dark gray */
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.achievement-card {
  background-color: var(--gray-100); /* e.g., #1f1f1f */
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Consistent shadow */
  transition: var(--transition);
  border: 1px solid var(--gray-300); /* Consistent border e.g. #3a3a3a */
}

.achievement-card:hover {
  transform: translateY(-5px) scale(1.03); /* Consistent hover transform */
  border-color: var(--primary-color); /* Consistent hover border highlight */
}

.achievement-content {
  padding: var(--spacing-lg);
}

.achievement-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
  color: var(--text-dark); /* Ensure it uses the main light text color */
}

.achievement-description {
  color: var(--text-light); /* Will be a light gray */
  margin-bottom: var(--spacing-md);
}

.achievement-result {
  font-weight: 700;
  color: var(--primary-color);
  display: block; /* Ensure it takes full width for margin-top to work as expected */
  margin-top: var(--spacing-xs); /* Add a bit of space above the result */
}

/* ========== チャットボットセクション ========== */
.chatbot {
  padding: var(--spacing-3xl) 0;
}

.chatbot-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
}

.chatbot-info {
  flex: 1 1 320px;
}

.chatbot-subtitle {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.chatbot-benefits {
  margin-top: var(--spacing-md);
  display: grid;
  gap: var(--spacing-xs);
}

.chatbot-benefits li {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--text-light);
}

.chatbot-benefits i {
  color: var(--secondary-color);
}

.chatbot-panel {
  flex: 1 1 420px;
  background: linear-gradient(135deg, rgba(74, 107, 255, 0.1), rgba(52, 211, 153, 0.15));
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.chatbot-api-key label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.api-key-input-group {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.api-key-input-group input {
  flex: 1 1 200px;
  padding: 0.65rem 0.75rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
  font-size: var(--font-size-md);
}

.api-key-input-group input:focus {
  outline: 3px solid rgba(74, 107, 255, 0.25);
  border-color: var(--primary-color);
}

.api-key-note {
  font-size: var(--font-size-sm);
  color: var(--text-lighter);
  margin-top: 0.25rem;
}

.chatbot-window {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  min-height: 420px;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding-right: 0.25rem;
}

.chatbot-message {
  display: flex;
  gap: var(--spacing-xs);
}

.chatbot-message.assistant {
  justify-content: flex-start;
}

.chatbot-message.user {
  justify-content: flex-end;
}

.chatbot-bubble {
  max-width: 85%;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background-color: var(--gray-100);
  color: var(--text-dark);
  box-shadow: var(--box-shadow);
  white-space: pre-wrap;
  line-height: 1.6;
}

.chatbot-message.assistant .chatbot-bubble {
  background-color: var(--white);
  border: 1px solid rgba(74, 107, 255, 0.15);
}

.chatbot-message.user .chatbot-bubble {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
}

.chatbot-status {
  min-height: 1.2rem;
  font-size: var(--font-size-sm);
  color: var(--text-lighter);
}

.chatbot-status.error {
  color: #ef4444;
}

.chatbot-status.success {
  color: var(--secondary-color);
}

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

.chatbot-form textarea {
  resize: vertical;
  min-height: 70px;
  max-height: 200px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  font-size: var(--font-size-md);
  font-family: var(--font-family);
  line-height: 1.6;
}

.chatbot-form textarea:focus {
  outline: 3px solid rgba(74, 107, 255, 0.25);
  border-color: var(--primary-color);
}

.chatbot-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-xs);
}

.btn-compact {
  padding: 0.5rem 0.9rem;
  font-size: var(--font-size-sm);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========== お問い合わせセクション ========== */
.contact {
  padding: var(--spacing-3xl) 0;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
}

.contact-text {
  flex: 1;
  min-width: 300px;
}

.contact-text p {
  margin-bottom: var(--spacing-md);
}

.contact-email {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-lg);
  font-size: var(--font-size-xl);
  font-weight: 500;
}

.contact-email a {
  color: var(--primary-color);
}

.contact-email a:hover {
  text-decoration: underline;
}

.contact-form-container {
  flex: 1;
  min-width: 300px;
}

.contact-form {
  background-color: var(--gray-50); /* Darker card background - var(--gray-50) is #1a1a1a */
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Consistent shadow */
  border: 1px solid var(--gray-300); /* Consistent border */
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--gray-300); /* Will be a dark theme border color */
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  transition: var(--transition);
  background-color: var(--gray-50); /* Dark input background */
  color: var(--text-dark); /* Light text in input */
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.4); /* Lighter focus ring */
}

/* ========== フッターセクション ========== */
.footer {
  background-color: #0d0d0d; /* Slightly different dark for footer */
  color: var(--text-dark); /* Light text */
  padding-top: var(--spacing-xl);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

.footer-logo {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

.footer-links {
  flex: 1;
  min-width: 200px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

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

.footer-contact {
  flex: 1;
  min-width: 200px;
}

.footer-contact p {
  margin-bottom: var(--spacing-xs);
}

.footer-contact a {
  color: var(--text-lighter); /* Lighter text for footer links */
}

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

.footer-bottom {
  padding: var(--spacing-md) 0;
  text-align: center;
  border-top: 1px solid var(--gray-200); /* Dark theme border */
  font-size: var(--font-size-sm);
  color: var(--text-lighter); /* Lighter text */
}

/* トップに戻るボタン */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

/* ========== レスポンシブスタイル ========== */
@media (max-width: 992px) {
  :root {
    --font-size-4xl: 2.2rem;
    --font-size-3xl: 1.8rem;
  }
  
  .nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
  background-color: var(--white); /* Will be dark */
    padding: var(--spacing-sm);
  box-shadow: var(--box-shadow); /* May need adjustment */
  }
  
  .nav.active {
    display: block;
  }
  
  .nav-list {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .nav-list li {
    width: 100%;
    text-align: center;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-cta {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.7rem;
    --font-size-2xl: 1.4rem;
    --font-size-xl: 1.2rem;
    --spacing-3xl: 4rem;
  }
  
  .services-grid,
  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .chatbot-panel {
    padding: var(--spacing-md);
  }

  .chatbot-window {
    min-height: 360px;
  }

  .chatbot-actions {
    flex-direction: column;
  }

  .chatbot-actions .btn-compact {
    width: 100%;
  }

  /* ロゴを画面幅いっぱいに設定（ハンバーガーメニュー用のスペースを確保） */
  .logo {
    width: calc(100% - 60px);
    max-width: 280px;
  }
  
  /* ヘッダーの高さを確保 */
  .header-content {
    padding: var(--spacing-sm) 0;
    min-height: 70px;
  }
  
  /* ヒーローセクションのパディングを調整 */
  .hero {
    padding-top: calc(80px + var(--spacing-xl));
  }
}

@media (max-width: 576px) {
  :root {
    --font-size-4xl: 1.8rem;
    --font-size-3xl: 1.5rem;
    --spacing-3xl: 3rem;
  }

  .api-key-input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .api-key-input-group input,
  .api-key-input-group .btn-compact {
    width: 100%;
  }

  .chatbot-window {
    min-height: 320px;
  }

  .contact-form {
    padding: var(--spacing-md);
  }
  
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
  
  /* さらに小さい画面でのロゴサイズ調整 */
  .logo {
    width: calc(100% - 50px);
    max-width: 260px;
  }
}

/* アニメーションクラス - JavaScript用 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.zoom-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* フォーム送信成功メッセージ */
.form-success {
  text-align: center;
  padding: var(--spacing-lg);
}

.form-success h3 {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-xl);
}
