:root {
  --base-color: rgb(189, 218, 200);
  --accent-color: rgb(120, 180, 155);
  --dark-green: rgb(12, 102, 50);
  --text-color: #333;
  --bg-color: #f9fbfa;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

main {
  padding-top: 100px;
}
header {
  display: flex;
  align-items: center;
  gap: 40px; /* ロゴとメニューの間のスペースを調整 */
  padding: 0 32px;
  background-color: rgb(189, 218, 200);
  justify-content: flex-start; /* 左寄せに変更 */
}

.logo {
  width: 150px;
  height: auto;
  margin: 10px;
}

/* =====================
   メニュー（PC）
===================== */
.menu {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.menu li a {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: var(--dark-green);
  transition: width 0.3s ease;
}

.menu li a:hover::after {
  width: 100%;
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .menu {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background-color: rgba(12, 102, 50, 0.95);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .menu.active {
    max-height: 400px;
    padding: 20px 0;
  }

  .menu li {
    margin: 14px 0;
  }

  .menu li a {
    color: #fff;
    font-size: 16px;
  }
}

/* =====================
   施工事例
===================== */
.works {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.works h1 {
font-size:clamp(28px,4vw,44px); letter-spacing:.08em; font-weight:800; color:#1b2a41; text-shadow:0 2px 0 rgba(255,255,255,.6); }


.works-lead {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
}

/* グリッド */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

/* カード */
.work-card {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.work-category {
  display: inline-block;
  margin: 20px;
  padding: 6px 16px;
  background: linear-gradient(
    135deg,
    var(--base-color),
    var(--accent-color)
  );
  color: #fff;
  font-size: 14px;
  border-radius: 999px;
}

.work-card img {
  width: 100%;
  height: 220px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

/* カード */
.work-card {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.work-category {
  display: inline-block;
  margin: 20px;
  padding: 6px 16px;
  background: linear-gradient(
    135deg,
    var(--base-color),
    var(--accent-color)
  );
  color: #fff;
  font-size: 14px;
  border-radius: 999px;
}

/* 画像を比率に応じて自動サイズに */
.work-card img {
  width: 80%;           /* カード幅の80%に縮小 */
  height: auto;         /* 縦横比を維持 */
  display: block;
  margin: 20px auto 0 auto; /* 上20px、左右中央に配置 */
  border-radius: 8px;   /* optional: カードに馴染ませる角丸 */
  object-fit: contain;  /* 元の画像比率を崩さずに収める */
  background-color: #f0f0f0; /* optional: 余白部分の背景色 */
}




.work-card p {
  padding: 20px 24px 28px;
  font-size: 15px;
  line-height: 1.7;
  }
.work-card a{
  background-color: rgba(41, 168, 98, 0.801);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  border: 2px solid #fff;
  text-decoration: none;

  /* 中身（文字）を中央 */
  display: inline-flex;
  justify-content: center;
  align-items: center;

  /* 箱サイズ */
  width: fit-content;

  transition: background-color 0.3s ease;
}

/* 箱そのものを中央に */
.work-card {
  text-align: center;
}

.work-card a:hover{
  background-color: #9ac7ab;
  color: rgb(60, 155, 90);
}
/* フェードイン */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

