/* ================================
   ◆ ヒーローセクション（テキストのみ）
================================ */
.hero-section {
  background-color: #f7f5f2; /* 明るく柔らかいベージュ系 */
  padding: 60px 20px;
  text-align: center;
}

.hero-text {
  max-width: 800px;
  margin: 0 auto;
  color: #333;
}

.hero-text h1 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
}

.hero-text .en-title {
  font-size: 18px;
  color: #999;
  margin-bottom: 20px;
}

.hero-line {
  width: 60px;
  height: 2px;
  background-color: #333;
  margin: 0 auto 20px auto;
}

.hero-sub {
  font-size: 16px;
  color: #555;
}

/* ========================== 施工事例ページ ========================== */
body {
  background-color: #f7f5f2; /* サイト全体の背景色 */
}

.works-section {
max-width: 1000px;
margin: 60px auto;
padding: 0 20px;
}

.section-title {
font-size: 2rem;
text-align: center;
margin-bottom: 50px;
border-bottom: 3px solid #ccc;
display: inline-block;
padding-bottom: 10px;
font-weight: bold;
}

/* 各現場ブロック */
.site-section {
margin-bottom: 60px;
}

.site-section h2 {
font-size: 1.5rem;
margin-bottom: 10px;
color: #222;
border-left: 5px solid #000000;
padding-left: 10px;
}

/* 区切り線 */
.divider {
height: 2px;
background-color: #ddd;
margin-bottom: 20px;
}

/* 画像グリッド */
.gallery {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
}

.gallery img {
width: 100%;
height: auto;
border-radius: 8px;
object-fit: cover;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}

.gallery img:hover {
transform: scale(1.03);
}

/* モバイル対応 */
@media screen and (max-width: 600px) {
.hero-text h1 {
font-size: 28px;
}

.hero-text p {
font-size: 14px;
}

.site-section h2 {
font-size: 20px;
}
  .card img {
  width: 100%;
  height: 200px; /* 統一したい高さ */
  object-fit: cover; /* 切り抜いて自然に見せる */
  border-radius: 8px;
}
.card p {
  word-break: keep-all;   /* 単語の途中で改行しない */
  line-break: strict;     /* 日本語でも自然に改行するように */
}
.card-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

}