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

body {
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  line-height: 1.7;
  color: #2d3748;
  background-image: url('public/sky-to-grass-background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
}

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

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(2px);
  color: #2d3748;
  padding: 15px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(139, 92, 77, 0.15);
  border-bottom: 1px solid rgba(139, 92, 77, 0.1);
}

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

.logo h1 {
  color: #2c5530;
  font-size: 2rem;
  font-weight: 700;
  font-family: 'M PLUS Rounded 1c', sans-serif;
}

.logo span {
  font-size: 0.8rem;
  margin-left: 5px;
}

.nav a {
  margin: 0 15px;
  color: #4a5568;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  font-weight: 500;
}
.nav a:hover {
  color: #2c5530;
}

.contact-info {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
}
.phone {
  /* color: #dc2626; */
  color: white;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.25);
  z-index: -1;
}
.hero-content {
  max-width: 100%;
}
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'M PLUS Rounded 1c', sans-serif;
}
.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.cta-button {
  background: linear-gradient(90deg, #2c5530, #38a169);
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(44, 85, 48, 0.3);
  transition: all 0.3s ease;
  margin-bottom: 20px;
  display: inline-block;
}
.cta-button:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, #38a169, #48bb78);
  box-shadow: 0 6px 25px rgba(44, 85, 48, 0.4);
}

/* Hero Service Highlight */
.hero-service-highlight {
  margin-top: 30px;
  font-size: 1.3rem;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  padding-top: 10px;
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 700;
}

.about .section-title {
  color: white;
}

.services .section-title {
  color: white;
}

.group-business .section-title {
  color: white;
}

.policy .section-title {
  color: white;
}
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2c5530, #38a169);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* Services */
.services {
  background: rgba(255, 255, 255, 0.25);
  padding: 100px 0;
  position: relative;
  color: white;
}
.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #68d391, transparent);
}
.service-item {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
  gap: 40px;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 6px 25px rgba(139, 92, 77, 0.1);
  border: 1px solid rgba(139, 92, 77, 0.08);
  transition: transform 0.3s ease;
  color: #2d3748;
}
.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(139, 92, 77, 0.15);
}
.service-item.reverse {
  flex-direction: row-reverse;
}
.service-content h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #2c5530;
}

.service-content h4 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #2c5530;
}

.service-category {
  margin-bottom: 80px;
}

.category-title {
  font-size: 2.6rem;
  margin-bottom: 40px;
  text-align: center;
  color: white;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 700;
}
.service-content p {
  font-size: 1.05rem;
  margin-bottom: 25px;
}
.service-image img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

/* About */
.about {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  color: white;
}
.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4a90e2, transparent);
}
.about-content {
  display: flex;
  gap: 40px;
  align-items: center;
}
.about-text p {
  margin-bottom: 20px;
}
.about-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

/* Group Business */
.group-business {
  background: rgba(255, 255, 255, 0.25);
  padding: 100px 0;
  position: relative;
  color: white;
}
.group-business::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #68d391, transparent);
}
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.business-item {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 25px rgba(139, 92, 77, 0.1);
  border: 1px solid rgba(139, 92, 77, 0.08);
  transition: transform 0.3s ease;
  color: #2d3748;
}
.business-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(139, 92, 77, 0.15);
}
.business-item h3 {
  color: #2c5530;
  margin: 15px 0;
}
/* ← ここ修正 */
.business-item img {
  width: 100%;
  height: 220px;          /* 高さを固定 */
  object-fit: cover;      /* トリミングして枠内に収める */
  border-radius: 10px;
}
/* 事業ごとに基準を変える */
.business-item.education img {
  object-fit: cover;
  object-position: center 50%; 
}

.business-item.cars img {
  object-position: center bottom;  /* 下基準 */
}

.business-item ul {
  text-align: left;
  list-style: disc side;
  margin-top: 15px;
  margin-left: 20px;
  line-height: 1.6;
}
.business-item li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* Policy */
.policy {
  background: rgba(255, 255, 255, 0.25);
  padding: 100px 0;
  text-align: center;
  position: relative;
  color: white;
}
.policy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4a90e2, transparent);
}
.policy blockquote {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin-bottom: 20px;
  font-style: italic;
}

/* Footer */
.footer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(2px);
  padding: 40px 0;
  color: #2d3748;
  box-shadow: 0 -2px 20px rgba(139, 92, 77, 0.15);
  border-top: 1px solid rgba(139, 92, 77, 0.1);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo h3 {
  color: #2c5530;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 700;
}

.contact-link {
  color: #68d391;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.contact-link:hover {
  color: #9ae6b4;
  border-bottom: 1px solid #9ae6b4;
  transform: translateY(-1px);
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .service-item, .service-item.reverse, .about-content, .footer-content, .header-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .section-title { font-size: 2rem; }
}
