/* リセットとベース */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --secondary-color: #f9fafb;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --border-color: #e5e7eb;
  --background-light: #f9fafb;
  --background-white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.5;
  background-color: var(--background-light);
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* タイポグラフィ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

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

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

/* ユーティリティクラス */
.text-primary {
  color: var(--primary-color);
}

.rounded-image {
  border-radius: var(--radius);
  overflow: hidden;
}

/* アイコン */
.icon-primary {
  color: var(--primary-color);
}

.icon-small {
  width: 1rem;
  height: 1rem;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  gap: 0.5rem;
}

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

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

.btn-ghost {
  background-color: transparent;
  color: var(--text-color);
}

.btn-ghost:hover {
  background-color: var(--background-light);
}

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

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

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

/* バッジ */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* ヘッダー */
.header {
  background-color: var(--background-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
}

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

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
}

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

.header-buttons {
  display: flex;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* ヒーローセクション */
.hero-section {
  padding: 8rem 0;
  background-color: var(--background-white);
  background-image: url("01.png");
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  text-align: center;
}

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

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

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.hero-features {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-image img {
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-lg);
}

/* セクションスタイル */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-light);
}

/* 特徴セクション */
.features-section {
  background-color: var(--background-white);
}

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

.feature-card {
  background-color: var(--background-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: rgba(99, 102, 241, 0.1);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.feature-icon-wrapper svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--text-light);
}

/* 手順セクション */
.steps-section {
  background-color: var(--secondary-color);
}

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

.step-card {
  background-color: var(--background-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}

.step-number {
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.step-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: rgba(99, 102, 241, 0.1);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.step-icon-wrapper svg {
  width: 1.5rem;
  height: 1.5rem;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.step-description {
  color: var(--text-light);
}

/* お客様の声セクション */
.testimonials-section {
  background-color: var(--background-white);
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.testimonial-slides {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.testimonial-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.testimonial-content {
  background-color: var(--background-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.testimonial-text {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: var(--primary-color);
}

.testimonial-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.testimonial-position {
  font-size: 0.875rem;
  color: var(--text-light);
}

.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: var(--background-white);
  border: none;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s;
}

.testimonial-nav:hover {
  background-color: var(--primary-color);
  color: white;
}

.testimonial-prev {
  left: -1.5rem;
}

.testimonial-next {
  right: -1.5rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background-color: var(--border-color);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.testimonial-dot.active {
  background-color: var(--primary-color);
}

/* 料金プランセクション */
.pricing-section {
  background-color: var(--secondary-color);
}

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

.pricing-card {
  background-color: var(--background-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.pricing-card.popular {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-5px);
}

.popular-badge {
  position: absolute;
  top: -0.75rem;
  right: 1.5rem;
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-subtitle {
  color: var(--text-light);
  font-size: 0.875rem;
}

.pricing-price {
  text-align: center;
  margin-bottom: 2rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
}

.period {
  color: var(--text-light);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* FAQセクション */
.faq-section {
  background-color: var(--background-white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  background: none;
  border: none;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  transition: transform 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
}

.faq-answer.active {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

/* お問い合わせフォーム */
.contact-form-section {
  background-color: var(--secondary-color);
  padding: 5rem 0;
}

.contact-form-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--background-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 0.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

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

.required {
  color: #e53e3e;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
  resize: vertical;
}

.privacy-policy {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
}

.privacy-policy input[type="checkbox"] {
  margin-top: 0.25rem;
}

.privacy-link {
  color: var(--primary-color);
  text-decoration: underline;
}

.form-submit {
  margin-top: 2rem;
  text-align: center;
}

.form-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  display: none;
}

.form-message.success {
  background-color: #c6f6d5;
  color: #2f855a;
  display: block;
}

.form-message.error {
  background-color: #fed7d7;
  color: #c53030;
  display: block;
}

/* CTAセクション */
.cta-section {
  background-color: var(--primary-color);
  color: white;
}

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

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

.cta-section .btn-outline {
  border-color: white;
  color: white;
}

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

/* 動画セクション */
.video-section {
  padding: 5rem 0;
  background-color: var(--background-white);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 アスペクト比 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.video-feature {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.video-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: rgba(99, 102, 241, 0.1);
  border-radius: 9999px;
  flex-shrink: 0;
}

.video-feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.video-feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.video-feature-description {
  color: var(--text-light);
}

/* ストレージ表 */
.storage-table-container {
  margin: 2rem auto;
  max-width: 500px;
}

.storage-table-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: white;
  opacity: 0.9;
}

.table-responsive {
  overflow-x: auto;
  margin-bottom: 2rem;
  background-color: var(--background-white);
  border-radius: var(--radius);
}

.storage-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-color);
}

.storage-table th,
.storage-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.storage-table th {
  font-weight: 600;
  background-color: var(--secondary-color);
}

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

.storage-table tr:hover {
  background-color: var(--background-light);
}

/* フッター */
.footer {
  background-color: var(--text-color);
  color: white;
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-company {
  margin-right: 2rem;
}

.footer-description {
  opacity: 0.7;
  margin-top: 1rem;
}

.footer-title {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.footer-menu {
  list-style: none;
}

.footer-link {
  color: white;
  opacity: 0.7;
  display: block;
  margin-bottom: 0.75rem;
  transition: opacity 0.2s;
}

.footer-link:hover {
  opacity: 1;
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  opacity: 0.7;
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  color: white;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.social-link:hover {
  opacity: 1;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .footer-company {
    grid-column: span 2;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.5rem 1rem;
  }

  .nav-menu {
    display: none;
    width: 100%;
    order: 3;
    margin-top: 1rem;
  }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
  }

  .header-buttons {
    display: none;
    width: 100%;
    order: 4;
    margin-top: 1rem;
    justify-content: center;
  }

  .header-buttons.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
    order: 2;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .hero-features {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .video-feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .testimonial-nav {
    display: none;
  }

  .pricing-card.popular {
    transform: none;
  }

  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }

  .cta-title {
    font-size: 2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .contact-form-container {
    padding: 2rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-company {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-section {
    padding: 6rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .cta-title {
    font-size: 1.75rem;
  }

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

  .storage-table th,
  .storage-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }
}
