@charset "UTF-8";
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --secondary: #1e40af;
  --accent: #93c5fd;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #475569;
  --border-light: #334155;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  background-color: var(--bg-primary);
  flex: 1;
}

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

/* Header */
header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
  height: 65px;
}

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

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}
.logo a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}
.logo a:hover {
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  padding: 5rem 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}
.hero-image {
  order: 2;
}

.hero-content {
  order: 1;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.02);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Hero Description */
.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

/* Enhanced animations */
.feature-card,
.faq-item {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1),
.faq-item:nth-child(1) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(2),
.faq-item:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3),
.faq-item:nth-child(3) {
  animation-delay: 0.3s;
}

.feature-card:nth-child(4),
.faq-item:nth-child(4) {
  animation-delay: 0.4s;
}

.feature-card:nth-child(5),
.faq-item:nth-child(5) {
  animation-delay: 0.5s;
}

.feature-card:nth-child(6),
.faq-item:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Features Section */
#features {
  padding: 4rem 0;
}

#features .container {
  max-width: 1100px;
}

#features h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Button Group */
.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-width: 140px;
  justify-content: center;
  font-size: 0.95rem;
  letter-spacing: 0.025em;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-icon {
  font-size: 1.25em;
}

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

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

/* Footer */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1rem;
  margin-top: auto;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  text-align: center;
}
.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Products Section */
#products {
  padding: 4rem 0;
}

#products h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.product-card.coming-soon {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border-style: dashed;
}

.product-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.product-icon img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  padding: 4px;
}

.product-meta h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.product-category {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.product-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.feature-tag {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.product-actions {
  display: flex;
  gap: 1rem;
}

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

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--primary);
}

/* About Section */
.container h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.value-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.value-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.value-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.value-item p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* 404 Error Page Styles */
.error-page {
  background: var(--bg-secondary);
}

.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  min-height: calc(100vh - 140px);
}

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

.error-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.error-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 3rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}

/* FAQ Section */
#faq {
  padding: 4rem 0;
  max-width: 1100px;
}

#faq h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.faq-list {
  max-width: 100%;
  padding: 0 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.faq-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.faq-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}
.faq-item code {
  background: var(--bg-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.875rem;
  color: var(--primary);
  word-break: break-all;
  white-space: pre-wrap;
  overflow-x: auto;
  display: inline-block;
  max-width: 100%;
  line-height: 1.7;
  vertical-align: middle;
}
.faq-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.faq-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Performance optimizations */
img {
  content-visibility: auto;
  contain-intrinsic-size: 1px 1000px;
}

/* Intersection observer for animations */
@supports (content-visibility: auto) {
  .feature-card,
  .faq-item,
  .product-card {
    content-visibility: auto;
    contain-intrinsic-size: 1px 300px;
  }
}
/* Preload critical resources */
.hero-image img {
  content-visibility: visible;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-links a:focus,
.logo a:focus,
.product-card:focus,
.suggestion-item:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .nav-links {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: var(--bg-primary);
    opacity: 0.9;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: top 0.3s ease;
    z-index: 999;
  }
  .nav-links a {
    padding: 30px;
  }
  .nav-links.active {
    top: 80px;
  }
  .nav-links li {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
  }
  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  .hero {
    padding: 3rem 0;
  }
  .hero .container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .hero-content {
    text-align: center;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }
  .stat-number {
    font-size: 2rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .product-card {
    padding: 1.5rem;
  }
  .product-actions {
    flex-direction: column;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-values {
    flex-direction: column;
    gap: 1rem;
  }
  .contact-methods {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .feature-card {
    padding: 1.5rem;
  }
  .faq-item {
    padding: 1.5rem;
  }
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  .error-actions .btn {
    width: 100%;
    max-width: 280px;
  }
  .suggestion-links {
    grid-template-columns: 1fr;
  }
  #features,
  #faq,
  #contact,
  #products,
  #about {
    padding: 3rem 1rem;
  }
  #features h2,
  #faq h2,
  #contact h2,
  #products h2,
  #about h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .btn-group {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 240px;
  }
  .faq-item code {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
    line-height: 1.5;
  }
}
/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ハンバーガーメニューのスタイル */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
}

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

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: var(--bg-primary);
    opacity: 0.9;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: top 0.3s ease;
    z-index: 999;
  }
  .nav-links.active {
    top: 80px;
  }
  .nav-links li {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
  }
  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }
  .nav-links li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}
/* Contact Section */
#contact {
  padding: 4rem 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  margin: 2rem 0 0;
}

#contact h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

#contact p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 1rem 0;
  word-break: break-all;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 768px) {
  .contact-email {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    width: 90%;
    margin: 1rem auto;
  }
}
.contact-email svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

/* 共通のスタイル */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  background: var(--bg-primary);
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

/* セクション共通スタイル */
section {
  padding: 4rem 0;
  background: var(--bg-primary);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  section {
    padding: 3rem 0;
  }
  .nav-links {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: var(--bg-primary);
    opacity: 0.9;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: top 0.3s ease;
    z-index: 999;
  }
  .nav-links.active {
    top: 80px;
  }
  .nav-links li {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
  }
  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }
  .hamburger {
    display: block;
  }
  .hero .container,
  .products-grid,
  .features-grid,
  .about-grid,
  .contact-methods {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-buttons,
  .product-actions,
  .error-actions,
  .btn-group {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 280px;
  }
}
/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary);
  color: var(--text-primary);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: none;
  box-shadow: var(--shadow);
  z-index: 1000;
}

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

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

.back-to-top:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}