/* Base Styles */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary: #f59e0b;
  --secondary-dark: #d97706;
  --text: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --black: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --red-500: #ef4444;
  --green-500: #10b981;
  --yellow-500: #f59e0b;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-600: #2563eb;
  --blue-800: #1e40af;
  --yellow-50: #fefce8;
  --yellow-100: #fef9c3;
  --yellow-300: #fde047;
  --yellow-800: #854d0e;
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-600: #dc2626;
  --green-600: #059669;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

.rounded {
  border-radius: 0.5rem;
}

.shadow {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

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

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

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

.btn-yellow {
  background-color: var(--yellow-500);
  color: var(--black);
  font-weight: 700;
}

.btn-yellow:hover {
  background-color: var(--secondary-dark);
}

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

.btn-white:hover {
  background-color: var(--gray-100);
}

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

.btn-outline:hover {
  background-color: var(--gray-100);
}

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

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-icon {
  padding: 0.5rem;
}

.btn i {
  margin-left: 0.5rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--gray-200);
  background-color: var(--white);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  font-size: 1.5rem;
  color: var(--primary);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

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

.nav {
  display: none;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
}

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

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(to right, var(--blue-600), var(--blue-800));
  color: var(--white);
  padding: 4rem 0;
}

/* Hero Section - 2カラムレイアウト用のスタイルを追加 */
.hero-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text-content {
  text-align: left;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

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

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

.hero-image-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-images {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero-image-main {
  position: relative;
  z-index: 1;
  width: 100%;
}

.robot-image {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

.hero-image-secondary {
  position: absolute;
  bottom: -20px;
  right: -20px;
  z-index: 2;
  transform: rotate(5deg);
}

.plc-image {
  width: 350px; /* 280px から 350px に変更 */
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 3px solid white;
}

.hero-tech-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 400px;
}

/* タブレット以上のサイズ */
@media (min-width: 768px) {
  .hero-content-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

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

  .hero-buttons {
    flex-direction: row;
  }

  .hero-tech-icons {
    grid-template-columns: repeat(4, 1fr);
    max-width: none;
  }

  .hero-images {
    max-width: 600px;
  }

  .hero-image-secondary {
    bottom: -30px;
    right: -30px;
  }

  .plc-image {
    width: 450px; /* 280px から 350px に変更 */
  }
}

/* デスクトップサイズ */
@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.75rem;
  }

  .hero-description {
    font-size: 1.25rem;
  }
}

.hero-content-center {
  text-align: center;
  max-width: 4xl;
  margin: 0 auto;
  display: none;
}

.hero-title-center {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  display: none;
}

.highlight {
  color: var(--yellow-300);
}

.hero-subtitle-center {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: none;
}

.hero-description-center {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  display: none;
}

.hero-buttons-center {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  display: none;
}

.tech-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  backdrop-filter: blur(10px);
}

.tech-icon-item i {
  font-size: 2rem;
  color: var(--yellow-300);
}

.tech-icon-item span {
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background: linear-gradient(to top, var(--white), transparent);
}

/* Problem Section */
.problems {
  padding: 4rem 0;
  background-color: var(--gray-50);
}

.problem-grid {
  display: grid;
  gap: 1.5rem;
}

.card {
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  overflow: hidden;
}

.problem-card {
  border-color: var(--red-100);
}

.problem-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1.5rem;
}

.problem-icon {
  font-size: 2.5rem;
  color: var(--red-500);
}

.problem-text {
  font-weight: 500;
  font-size: 1.125rem;
}

.solution-intro {
  margin-top: 3rem;
  text-align: center;
}

.solution-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--blue-600);
  max-width: 48rem;
  margin: 0 auto;
}

/* Solutions Section */
.solutions {
  padding: 4rem 0;
}

.solutions-grid {
  display: grid;
  gap: 2rem;
}

.solution-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  transition: box-shadow 0.3s ease;
}

.solution-item:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.solution-icon {
  flex-shrink: 0;
  font-size: 3rem;
  color: var(--primary);
}

.solution-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* Case Studies Section */
.cases {
  padding: 4rem 0;
  background-color: var(--blue-50);
}

.cases-grid {
  display: grid;
  gap: 2rem;
}

.case-card {
  background-color: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.case-image-alt {
  height: 12rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-icon {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.3);
}

.case-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: flex-end;
}

.case-title {
  padding: 1rem;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
}

.case-content {
  padding: 1.5rem;
}

.case-item {
  margin-bottom: 1rem;
}

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

.case-result {
  font-weight: 700;
  color: var(--green-600);
}

.cases-action {
  margin-top: 2rem;
  text-align: center;
}

/* Services Section */
.services {
  padding: 4rem 0;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
}

.service-header {
  background-color: var(--primary);
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.service-icon-wrapper {
  background-color: var(--white);
  border-radius: 9999px;
  padding: 0.75rem;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
}

.service-content {
  padding: 1.5rem;
  text-align: center;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

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

.promotion {
  margin-top: 3rem;
  background-color: var(--yellow-50);
  border: 1px solid var(--yellow-100);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
}

.promotion-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--yellow-800);
  margin-bottom: 0.5rem;
}

.promotion-text {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
  padding: 4rem 0;
  background-color: var(--gray-50);
}

.testimonials-grid {
  display: grid;
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: relative;
}

.testimonial-quote {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 4rem;
  color: var(--blue-100);
}

.testimonial-content {
  position: relative;
  z-index: 10;
}

.testimonial-text {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

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

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  background-color: var(--blue-100);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-avatar span {
  font-weight: 700;
  color: var(--primary);
}

.testimonial-name {
  font-weight: 700;
}

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

.testimonial-stars {
  display: flex;
  margin-top: 0.5rem;
}

.testimonial-stars i {
  color: var(--yellow-500);
  fill: var(--yellow-500);
}

/* FAQ Section */
.faq {
  padding: 4rem 0;
}

.faq-container {
  max-width: 48rem;
  margin: 0 auto;
}

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

.faq-question {
  padding: 1rem 0;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

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

.faq-item.active .faq-answer {
  padding: 0 0 1rem 0;
  max-height: 500px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Contact Section */
.contact {
  padding: 4rem 0;
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
}

.contact .section-title {
  margin-bottom: 1.5rem;
}

.contact-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background-color: var(--gray-900);
  color: var(--white);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--gray-300);
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-list i {
  color: var(--blue-100);
}

.footer-list a:hover {
  color: var(--blue-100);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-300);
}

/* Media Queries */
@media (min-width: 768px) {
  .desktop-only {
    display: inline-flex;
  }

  .mobile-only {
    display: none;
  }

  .nav {
    display: flex;
  }

  .hero {
    padding: 6rem 0;
  }

  .hero-title-center {
    font-size: 3rem;
  }

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

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

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

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

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

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

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

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

@media (min-width: 1024px) {
  .problem-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

@media (max-width: 767px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
  }
}
