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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.7;
  background: #fff;
}

header {
  padding: 16px 24px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1D2088;
}

.logo-container {
  width: 120px;
  height: 40px;
  display: flex;
  align-items: center;
}

.logo-container svg {
  filter: brightness(0) invert(1);
}

.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo-container {
    width: 80px;
    height: 30px;
  }
}

@media (max-width: 600px) {
  .logo-container {
    width: 70px;
    height: 25px;
  }
}

nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: #fff;
}

nav a {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s;
}

nav a:hover {
  opacity: 0.8;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  width: 32px;
  height: 32px;
  position: relative;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 4px;
  transition: 0.3s;
}

.hamburger-btn span:nth-child(1) {
  top: 8px;
}

.hamburger-btn span:nth-child(2) {
  top: 15px;
}

.hamburger-btn span:nth-child(3) {
  top: 22px;
}

.hamburger-btn.active span:nth-child(1) {
  top: 15px;
  transform: rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  top: 15px;
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  header {
    position: relative;
  }

  nav {
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: #1D2088;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
  }

  nav.active {
    max-height: 500px;
  }

  nav a {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hamburger-btn {
    display: flex;
  }

  .services-buttons,
  .gallery,
  .jobs-grid {
    grid-template-columns: 1fr;
  }

  .contact-buttons {
    flex-direction: column;
  }

  .contact-btn {
    width: 100%;
  }

  .services-section {
    background-attachment: scroll;
  }
}

section {
  padding: 40px 24px;
  border-bottom: 1px solid #e5e5e5;
  text-align: center;
}

.hero {
  aspect-ratio: 16 / 9;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
}

.slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
}

.slider-pc {
  display: block;
}

.slider-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hero {
    aspect-ratio: 9 / 16;
  }
  
  .slider-pc {
    display: none;
  }
  
  .slider-mobile {
    display: flex;
  }
}

.slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero h1 {
  font-size: 28px;
  font-weight: 500;
  color: #333;
  margin-bottom: 12px;
  display: none;
}

.hero p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  display: none;
}

button {
  padding: 12px 24px;
  background: #1D2088;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #15175f;
}

section h2 {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-bottom: 24px;
}

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

.about-content p {
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.8;
}

.services-section {
  padding: 80px 24px;
  border-bottom: 1px solid #e5e5e5;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  text-align: center;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.services-section h2 {
  position: relative;
  z-index: 2;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 40px;
}

.services-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.service-button {
  padding: 32px 24px;
  border-radius: 8px;
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0.9;
}

.service-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  opacity: 0.7;
}

.service-button h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.service-button p {
  font-size: 13px;
  line-height: 1.6;
}

/* モーダルポップアップ */
.service-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.service-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.3s ease;
}

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

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
  z-index: 1001;
}

.modal-close:hover {
  color: #333;
}

.modal-content h3 {
  font-size: 22px;
  font-weight: 500;
  color: #333;
  margin-bottom: 16px;
  margin-top: 20px;
}

.modal-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.modal-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: contain;
  max-height: 400px;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.gallery-item {
  aspect-ratio: 1;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px dashed #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
  background-size: cover;
  background-position: center;
}

.recruitment-section {
  background: linear-gradient(180deg, #f5f5f5 0%, #fff 100%);
}

.recruitment-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 24px;
}

.jobs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto 24px;
}

.job-card {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

.job-card h3 {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.job-card p {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}

.cta-button {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 14px;
  background: #1D2088;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: block;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s;
}

.cta-button:hover {
  background: #15175f;
}

.company-info {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.map-container {
  max-width: 700px;
  margin: 0 auto;
}

.info-table {
  width: 100%;
  font-size: 13px;
}

.info-table tr {
  border-bottom: 1px solid #e5e5e5;
}

.info-table td {
  padding: 12px 0;
}

.info-label {
  color: #666;
  font-weight: 500;
  width: 100px;
}

.info-value {
  color: #333;
}

.contact-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}

.contact-btn {
  padding: 10px 20px;
  background: #f9f9f9;
  color: #333;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
  display: inline-block;
}

.contact-btn:hover {
  background: #f0f0f0;
}

footer {
  padding: 24px;
  background: #1D2088;
  border-top: 1px solid #e5e5e5;
  text-align: center;
  font-size: 12px;
  color: #fff;
}

@media (max-width: 600px) {
  nav {
    gap: 12px;
    font-size: 12px;
  }

  .services-buttons,
  .gallery,
  .jobs-grid {
    grid-template-columns: 1fr;
  }

  .contact-buttons {
    flex-direction: column;
  }

  .contact-btn {
    width: 100%;
  }

  .hero h1 {
    font-size: 24px;
  }

  .services-section {
    background-attachment: scroll;
  }
}
