/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
}

.header-logo {
  width: 110px;
  object-fit: cover;
}

/* Mobile menu button */
.menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #333;
  margin: 5px 0;
  transition: 0.3s;
}

/* Mobile menu open state */
.menu-open .menu-button span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-open .menu-button span:nth-child(2) {
  opacity: 0;
}
.menu-open .menu-button span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

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

.nav-link {
  color: #666;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #CD821F;
}

.nav-link.active {
  color: #CD821F;
  font-weight: 600;
}

/* Mobile styles */
@media (max-width: 768px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .menu-open .nav-links {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 1.5rem;
  }
}

/* Desktop styles */
@media (min-width: 1460px) {
  .menu-button {
    display: none;
  }

  .nav-links {
    display: flex;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url('images/background_image.png');
  background-size: cover;
  background-position: center;
}

.hero-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(252, 241, 110, 0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  margin-top: 80px; /* ヘッダーの高さ分余白を追加 */
}

.hero-logo {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0rem 0rem 0rem 2rem;
  object-fit: contain;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(3px);
  transition: transform 0.3s ease;
  display: block;
}

.hero-logo:hover {
  transform: translateY(-5px);
}

.cool-title {
  text-align: center;
  font-size: 2rem;
  line-height: 1.5;
  margin: 1.5em auto;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.cool-title br {
  display: block;
}

.indent {
  display: inline-block;
  margin-left: 15rem;
}

@media (max-width: 768px) {
  .cool-title {
    font-size: 3rem;
  }
  .indent {
    margin-left: 5rem;
  }
  
  .hero-logo {
    max-width: 280px;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: #f9fafb;
}

.about h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #1f2937;
}

.about-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.company-info {
  text-align: center;
}

.info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item svg {
  color: #0ea5e9;
  flex-shrink: 0;
}

.info-item h3 {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.info-item p {
  color: #4b5563;
}

/* Location Section */
.location {
  padding: 5rem 0;
  background-color: white;
}

.location h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #1f2937;
}

.location-content {
  display: flex;
  justify-content: center;
}

.address {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.address svg {
  color: #0ea5e9;
  flex-shrink: 0;
}

.address h3 {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.address p {
  color: #4b5563;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: #f9fafb;
}

.services h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #1f2937;
}

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

.service-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-card svg {
  color: #0ea5e9;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: #4b5563;
}

@media (min-width: 1460px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Terms Section */
.terms {
  padding: 5rem 0;
  background-color: white;
  min-height: 50vh; /* ★これを追加！ */
}

.terms h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #1f2937;
}

.terms-grid {
  display: grid;
  gap: 3rem;
}

.terms-card {
  background-color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.terms-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.terms-header svg {
  color: #0ea5e9;
}

.terms-header h3 {
  font-weight: 600;
  color: #1f2937;
}

.terms-header a {
  color: #333;
  text-decoration: none;
}

.terms-header a:hover {
  color: #CD821F;
}

@media (min-width: 1460px) {
  .terms-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: #f9fafb;
  text-align: center;
}

.contact h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1f2937;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-intro {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #4b5563;
  line-height: 1.8;
}

.contact-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #C7A252;
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-button:hover {
  background-color: #CD821F;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.contact-button:active {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .contact-intro br {
    display: none;
  }
}


/* Footer */
.footer {
  background-color: #C7A252;
  color: white;
  padding: 2rem 0;
  text-align: center;
}
