:root {
  --primary: #2e7d32;
  --secondary: #f57f17;
  --light: #e9f0e9;
  --dark: #1b5e20;
  --accent: #ffeb3b;
  --gray: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
}



body {
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  font-feature-settings: "halt";
}

figcaption {
    font-size: 16px;
    line-height: 1.9;
    text-align: center;
}

.container {
  z-index: 100;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/***** ヒーロー *****/
.hero {
  position: relative;
  /* background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/api/placeholder/1200/600") center/cover no-repeat; */
  background-image: url("../images/bg-mv.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: right;
  color: white;
  text-align: center;
  padding: 100px 0;
}

.hero::after {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(27, 94, 31, 0.35);
	filter: sepia(1);
}

.hero h1 {
  font-size: clamp(32px, calc(4.800000000000001px + 4vw), 48px);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
  line-height: 1.3;
  font-feature-settings: "halt";
}

.hero p {
  font-size: clamp( 16px, calc( -3.1999999999999993px + 4vw ), 24px );
  max-width: 90%;
  width: fit-content;
  margin-inline: auto;
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
  font-weight: 600;
}

.btn {
  display: inline-block;
  background-color: var(--secondary);
  color: white;
  padding: 0.8em 2em;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #e65100;
}

/***** セクション *****/
section {
  padding: 80px 0;
}
section:nth-of-type(odd) {
  background-color: var(--light);
}
section:nth-of-type(even) {
  background-color: white;
}

section h2 {
  text-align: center;
  font-size: clamp(24px, calc(4.800000000000001px + 4vw), 32px);
  margin-bottom: 50px;
  color: var(--dark);
}
section h2 + p{
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 5em;
  line-height: 1.9;
}
section p {
  margin-bottom: 2em;
  line-height: 1.9;
  text-align: justify;
  font-feature-settings: "halt";
}
section img {
  width: 100%;
  height: auto;
}

/***** 提供サービス *****/
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(3, 44, 5, 0.15);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-img {
  height: 200px;
  background-color: #ddd;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-content {
  display: flex;
  flex-direction: column;
  height: calc(100% - 200px);
  padding: 20px;
}

.service-content h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary);
}
.service-card .service-list {
  margin-top: auto;
}
.service-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.service-card p{
    margin-bottom: 1em;
}
.service-card p + ul{
    margin-top: 1em;
}
.service-list li {
    width: 100%;
  list-style: none;
}
.service-list li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: #fff;
  background-color: var(--primary);
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 100px;
}
.service-list li a:hover {
  background-color: var(--secondary);
}


/***** こんなお悩みありませんか？ *****/

.problem-solution {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.problem-card {
  background-color: var(--light);
  border-radius: 10px;
  padding: 30px;
  transition: transform 0.3s;
}

.problem-card:hover {
  transform: translateY(-5px);
}

.problem-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary);
}
.problem-card p {
  margin-bottom: 0;
}

.point p {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4em;
  font-size: clamp(16px, calc(2.400000000000001px + 4vw), 24px);
  font-weight: 600;
}
.point p span {
  display: block;
}


/***** 強み *****/
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.advantage-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 30px 20px;
  border-radius: 10px;
  background-color: white;
  transition: all 0.3s;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(3, 44, 5, 0.15);
}

.advantage-card i {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 20px;
  transition: color 0.3s;
}

.advantage-card:hover i {
  color: var(--secondary);
}

.advantage-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}
.advantage-card p {
  margin-bottom: 0;
}

/***** 製造の流れ *****/
.process-steps {
  position: relative;
  padding: 40px 0;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background-color: var(--primary);
  z-index: 1;
}

/***** 流れ *****/
.flow-steps {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.flow-step {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 10px;
  /* box-shadow: 0 2px 15px rgba(3, 44, 5, 0.15); */
}

.step-header {
  display: flex;
  align-items: center;
  gap: 20px;
}
.step-content p {
    margin-top: 0.8em;
    margin-bottom: 0;
}

.step-number {
  background-color: var(--primary);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
}

.flow-arrow {
  text-align: center;
  color: var(--primary);
  margin: 10px 0;
  font-size: 24px;
}

.cta {
  position: relative;
  padding: 100px 0;
  background-image: url("../images/cta-bg.jpg");
  background-size: cover;
  background-attachment: fixed;
  color: white;
  text-align: center;
}
.cta p {
  text-align: center;
  font-size: 18px;
}
.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.cta h2 {
  color: white;
}

.advantage-card .service-list,
.service-content .service-list {
  margin-top: auto;
}
@media (max-width: 768px) {

  .process-steps::before {
    top: 40px;
    bottom: 40px;
    left: 40px;
    width: 4px;
    height: auto;
  }

  .step {
    margin-bottom: 30px;
  }
}
