@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Poppins:wght@400;600&display=swap');

/* === ベース設定 === */
body {
  background-color: #f9fbfd;
  color: #1f2e3d;
  font-family: 'Noto Sans JP', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.8;
  font-size: 16px;
}

/* コンテナ */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === ヘッダー＆ナビ === */
header {
  background-color: #2a3b4f;
  color: #ffffff;
  padding: 1rem 0;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
}

header h1 {
  margin: 0;
  padding-left: 1.5rem;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ナビゲーション */
.global-nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  background-color: #3e4f5f;
  margin: 0;
  padding: 0;
}

.global-nav ul li a {
  display: block;
  padding: 1rem 1.3rem;
  color: #e9eef3;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.global-nav ul li a:hover {
  background-color: #5a8ed9;
  color: #fff;
}

/* === ヒーローセクション === */
.hero {
  background: url('hero-image.jpg') center/cover no-repeat;
  height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  background-color: #6c7a89;
}

.hero h2 {
  font-size: 2.3rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: 1.2rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  font-family: 'Noto Sans JP', sans-serif;
}

/* === 会社情報セクションをカード風に */
.section-box {
  background-color: #fff;
  padding: 3rem 2rem;
  margin: 3rem auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  transition: box-shadow 0.3s ease;
}

.section-box:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 見出しにラインとアクセント */
.section-box h2 {
  position: relative;
  font-size: 2rem;
  color: #224466;
  margin-bottom: 2rem;
  font-weight: 700;
}

.section-box h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #4a90e2;
  border-radius: 2px;
}

/* 会社情報の項目のスタイル */
.section-box p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

/* 太字部分に色と一定幅 */
.section-box p strong {
  color: #224466;
  min-width: 100px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* メールリンクを青くしてホバー効果 */
.section-box p strong + a,
.section-box p a {
  color: #4a90e2;
  text-decoration: none;
  transition: color 0.3s ease;
}

.section-box p a:hover {
  color: #1a5bb8;
  text-decoration: underline;
}

/* === テキスト内容 === */
.greeting,
.services,
.contact-info,
.works {
  font-size: 1.05rem;
  color: #333;
  font-family: 'Noto Sans JP', sans-serif;
}

/* === サービス項目 === */
.service-item {
  margin-bottom: 2.5rem;
}

.service-item h3 {
  font-size: 1.3rem;
  color: #2a3b4d;
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding-left: 0;
}

.service-item p {
  color: #444;
  white-space: pre-line;
}

.service-image {
  margin-top: 1rem;
  text-align: center;
  min-height: 200px;
}

/* === 施工実績ギャラリー === */
.works-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.work-item {
  flex: 1 1 30%;
  text-align: center;
}

.work-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.work-item p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #2a3b4d;
}

/* === お問い合わせ情報 === */
.contact-info {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-item {
  flex: 1 1 280px;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.contact-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-item h3 {
  margin-bottom: 1rem;
  font-size: 1.3em;
  color: #333;
}

.contact-item p,
.contact-item a {
  font-size: 1.1em;
  color: #555;
  margin: 0.4em 0;
  word-break: break-word;
  text-decoration: none;
}

.contact-item a.google-form-link {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.6em 1.4em;
  background-color: #2c2c2c;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.contact-item a.google-form-link:hover {
  background-color: #444;
}

.image-grid-2x3 {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.image-grid-2x3 img {
  width: calc(33.333% - 1rem);
  height: 180px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  background-color: #f0f0f0;
}

.image-grid-2x3 img:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

/* モバイル対応 */
@media (max-width: 700px) {
  .image-grid-2x3 img {
    width: 100%;
  }

  .image-grid-2x3 {
    flex-direction: column;
  }
}


/* === 画像ギャラリー - 1行3列（.image-row） === */
.image-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1rem;
}

.image-row img {
  width: calc((100% - 24px) / 3);
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.image-row img:hover {
  transform: scale(1.05);
}

/* レスポンシブ対応 */
@media (max-width: 700px) {
  .global-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .global-nav ul li a {
    padding: 0.8rem 1rem;
  }

  header h1 {
    font-size: 1.2rem;
  }

  .works-gallery {
    flex-direction: column;
  }

  .work-item {
    flex: 1 1 100%;
  }

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

  .hero h2 {
    font-size: 1.8rem;
  }

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

  .section-box {
    padding: 2rem 1rem;
    margin: 2rem 1rem;
  }

  /* 画像ギャラリーのレスポンシブ */
  .image-row {
    flex-direction: column;
    gap: 10px;
  }

  .image-row img,
  .image-grid-2x3 img {
    width: 100%;
  }
}

/* === アニメーション（フェードイン）=== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* === フッター === */
footer {
  background-color: #1f2a3a;
  color: #aeb8c1;
  text-align: center;
  padding: 1.2rem 0;
  font-size: 0.85rem;
  font-family: 'Poppins', sans-serif;
}

.image-grid-3col {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* 中央寄せ */
  gap: 1rem;
  margin-top: 1rem;
  text-align: center; /* 画像数が少ない時のバランス調整 */
}

.blog-post {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
  color: #333; /* ← 明るい背景でも見える色 */
}

.blog-post h3 {
  font-size: 1.4rem;
  color: #2a3b4f;
  margin-bottom: 0.5rem;
}

.blog-post p {
  font-size: 1.05rem;
  color: #444;
}
