/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1db584;
  --primary-dark: #159470;
  --primary-light: #2ecc9f;
  --accent-light: #e8f8f5;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #e0e0e0;
  --white: #ffffff;
  --light-bg: #f9f9f9;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
}

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

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 400;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-list a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(29, 181, 132, 0.2);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 600px;
  padding: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  margin-bottom: 1rem;
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.portfolio-notice {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section Styling */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background: var(--light-bg);
}

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

.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.service-content {
  padding: 2rem;
}

.service-content h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Cases/Gallery Section */
.cases {
  padding: 5rem 0;
  background: var(--white);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(29, 181, 132, 0.1), transparent);
  padding: 1.5rem;
  color: var(--white);
  transform: translateY(60px);
  transition: transform 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay p {
  font-weight: 600;
  text-align: center;
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background: var(--accent-light);
}

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

.testimonial-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--primary-color);
}

.testimonial-header {
  margin-bottom: 1.5rem;
}

.rating {
  color: #ffa500;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.testimonial-text {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info {
  padding: 2rem;
  background: var(--light-bg);
  border-radius: 8px;
}

.contact-info h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.phone-section {
  margin-top: 2rem;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.phone {
  font-size: 1.8rem;
  color: var(--primary-color);
  font-weight: 700;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-input {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(29, 181, 132, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.submit-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

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

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.portfolio-footer {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .nav-list {
    gap: 1.5rem;
    font-size: 0.85rem;
  }

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

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

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

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

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

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

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

  .footer-content {
    grid-template-columns: 1fr;
  }
}

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

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

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

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

  .nav-list {
    gap: 1rem;
    font-size: 0.75rem;
  }

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

  .contact-info h3,
  .service-content h3 {
    font-size: 1.1rem;
  }

  .phone {
    font-size: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .header,
  .cta-button,
  .contact-form,
  .submit-button {
    display: none;
  }
}
