@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f4f4f4;
  padding-top: 80px;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #f4f4f4; /* ← ページ全体と調和させた */
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  z-index: 1000;
  box-sizing: border-box;
  flex-wrap: nowrap;
}


nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

nav a {
  color: #333;
  text-decoration: none;
}
.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100%;
  background: #63768D;
  color: #fff;
  transition: right 0.3s ease;
  z-index: 1000;
  padding: 20px;
}

.nav-menu ul {
  list-style: none;
  padding: 0;
  margin-top: 60px;
}

.nav-menu li {
  margin: 20px 0;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

.close-btn {
  font-size: 30px;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}

.services {
  padding: 50px 20px;
  text-align: center;
  background: #eaeaea;
}

.services h2 {
  margin-bottom: 20px;
  color: #50667A;
  font-size: 28px;
}

.service-box {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.service-box .box {
  background: #f0f0f0;
  padding: 40px;
  flex: 1;
  min-width: 200px;
}

.about,
.map,
.contact {
  padding: 50px 20px;
  background: #f4f4f4;
}

.about h2,
.map h2,
.contact h2 {
  color: #50667A;
  text-align: center; 
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact label {
  margin-top: 10px;
}

.contact input,
.contact textarea {
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact button {
  margin-top: 20px;
  padding: 10px;
  background: #63768D;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.contact button:hover {
  background: #89A3BF;
}

footer {
  background: #ffffff; /* 全体の背景と揃えるなら白に */
  color: #333;
  text-align: center;
  padding: 10px 0; /* ← 太さ調整ここ！ */
  font-size: 14px;  /* ← テキストサイズも調和させる */
  border-top: 1px solid #ddd;
}
.news {
  background: #f0ede9;
  padding: 60px 20px;
  text-align: center;
}

.news h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #50667A;
  position: relative;
  display: inline-block;
}

.news h2 .en {
  font-size: 16px;
  font-weight: bold;
  background-color: #63768D;
  color: #fff;
  padding: 4px 10px;
  border-radius: 3px;
  margin-right: 10px;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
  text-align: left;
}

.news-list li {
  border-bottom: 1px solid #ddd;
  padding: 12px 0;
  font-size: 16px;
  line-height: 1.6;
}

.news-list .date {
  color: #666;
  margin-right: 10px;
  font-weight: bold;
  font-size: 14px;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  .service-box {
    flex-direction: column;
  }

  .footer-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-buttons a {
    width: 80%;
    text-align: center;
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }

  }

.hero-recruit .overlay {
  background: none;
  padding: 0;
  border-radius: 0;
}
.recruit-content {
  max-width: 800px;
  margin: 10px auto;
  padding: 20px;
 text-align: center; /* 全体の文字とボタンを中央寄せ */
}

.recruit-content h1 {
  font-size: 36px;
  color: #50667A;
  margin-bottom: 20px;
	text-align: center;
}

.recruit-content h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 10px;
  color: #50667A;
text-align: center; /* ← 中央寄せ追加 */
}

.recruit-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
text-align: center; /* ← 中央寄せ追加 */
}

.recruit-content ul li {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

.btn-contact {
  display: inline-block;
  margin-top: 30px;
  margin-bottom: 60px;
  padding: 12px 24px;
  background-color: #63768D;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
	text-align: center; /* ← 中央寄せ追加 */
}

.btn-contact:hover {
  background-color: #89A3BF;
}

.recruit-message {
  max-width: 800px;
  margin: 60px auto;
  padding: 30px 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.recruit-message h2 {
  font-size: 18px;
  color: #50667A;
  margin-top: 40px;
  margin-bottom: 10px;
  text-align: center;
}

.recruit-message p,
.recruit-message ul {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-top: 10px;
}

.recruit-message ul {
  list-style: disc;
  padding-left: 20px;
}
.hero-recruit-text {
  background-color: #ebf4f8;
  padding: 10px 10px 20px;
  text-align: center;
  margin: 0 auto;
	text-align: center; /* ← 中央寄せ追加 */
}
.hero-recruit-text h1 {
  font-size: 36px;
  color: #2b4e6f;
  margin: 4px;
}

.map {
  padding: 60px 20px;
  text-align: center;
  background-color: #ebf4f8;
}

.map h2 {
  font-size: 28px;
  color: #416a9b;
  margin-bottom: 20px;
}

.map .address {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.6;
}

.map-button {
  display: inline-block;
  background-color: #416a9b;
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.map-button:hover {
  background-color: #365880;
}

.map-icon {
  margin-right: 8px;
}
/* スマホ表示時 */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
/* ナビメニューの背景と文字色（開いた状態） */
.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95); /* 白背景に少し透明感 */
  color: #333;
  padding: 2rem;
  transition: right 0.3s ease;
  z-index: 1000;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
}

.nav-menu ul {
  list-style: none;
  padding: 0;
  margin-top: 4rem;
}

.nav-menu ul li {
  margin-bottom: 1.5rem;
}

.nav-menu ul li a {
  text-decoration: none;
  font-size: 1.2rem;
  color: #333; /* ここで文字をしっかり見える色に */
}

/* 閉じるボタン */
.close-btn {
  font-size: 30px;
  position: absolute;
  top: 20px;
  left: 20px; /* ← rightからleftに変更して、ボタンを左上に移動 */
  cursor: pointer;
  color: #333;
  z-index: 2001; /* ← これでちゃんと上に来るように */
}
  
}
.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 28px;
  color: #333; /* 濃いめのブルーに変更 */
  cursor: pointer;
  z-index: 1100;
  background-color: transparent;
}

.menu-label {
  font-size: 12px;
  color: #1f3b66;
  margin-top: 4px;
  font-weight: bold;
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100%;
  background: #1f3b66; /* ナビの背景を濃く */
  color: #fff;
  transition: right 0.3s ease;
  z-index: 1000;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.hero {
  background: url('images/hero.jpg') center/cover no-repeat;
  color: #fff;
  height:400px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroFadeZoom 2s ease-out forwards;
  opacity: 0; /* 初期状態で非表示 */
  transform: scale(1.05); /* 少しズームして始まる */
}

@keyframes heroFadeZoom {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero h1 {
  background: none;
  padding: 0;
  font-size: 36px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s ease-out 1.5s forwards;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.logo-combo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-combo-link img {
  display: inline-block;
  vertical-align: middle;
}

.logo-img {
  height: 60px;
  margin-right: 12px;
}

.name-img {
  height: 24px;
}
.about-us-box {
  background-color: #ebf4f8;
  color: #333;
  padding: 60px 20px;
  text-align: center;
　margin-bottom: 60px; /* ← NEW: 下に余白追加 */
}

.about-us-box h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.about-us-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-us-box .lead {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.8;
}

.about-us-box .desc {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-link {
  display: inline-block;
margin-bottom: 40px;
  background-color: #416a9b;
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}
.about-link:hover {
  background-color: #ffffff;
  color: #4ba3db;
}

/* ナビメニュー背景の調整 */
.nav-menu {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  right: -100%;
  transition: right 0.3s ease;
  position: fixed;
  top: 0;
  height: 100%;
  width: 250px;
  padding: 20px;
  z-index: 1000;
}

/* ハンバーガーボタンの下の "menu" ラベル */
.menu-label {
  font-size: 12px;
  color: #333;
  text-align: center;
  margin-top: -4px;
}
/*ここから会社概要追加項目*/
.about table {
  width: 100%;
  max-width: 720px;          /* PCでも横幅広すぎないよう制限 */
  margin: 24px auto;
  border-collapse: collapse;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  table-layout: fixed;       /* 列幅を均等化 */
  word-wrap: break-word;     /* 長い語句を折り返す */
}

.about th,
.about td {
  padding: 14px 16px;
  border: 1px solid #eef0f3;
  vertical-align: top;
}

.about th {
  background: #f7fbff;
  color: #2b4e6f;
  font-weight: 700;
  width: 30%;                 /* 見出し列は3割幅 */
}
.about h2 {
  text-align: center;
}

/* スマホ対策：はみ出し防止 */
@media (max-width: 768px) {
  .about table {
    font-size: 14px;
  }
  .about th,
  .about td {
    padding: 10px;
  }
}
/* ↓施工実績と対応工事 */
.works {
  background-color: #f4f4f4;
  padding: 60px 20px;
  text-align: center;
}
.works h2 {
  font-size: 32px;
  color: #2b4e6f;
  margin-bottom: 40px;
}
.works-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.work-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 300px;
  overflow: hidden;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
}
.work-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.work-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.work-card h3 {
  font-size: 20px;
  margin: 16px;
  color: #50667A;
}
.work-card p {
  font-size: 14px;
  padding: 0 16px 20px;
  color: #333;
}
/* スライダー基礎 */
.work-slider {
  position: relative;
  width: 100%;
  height: 200px;       /* デフォルト: スマホ用 */
  overflow: hidden;
}
.work-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.work-slider .slide.is-active {
  opacity: 1;
}
/* 画像を中央寄せに */
.work-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;  /* ← 中央寄せ */
  display: block;
}

/* PCサイズ以上では大きく */
@media (min-width: 1024px) {
  .work-slider {
    height: 300px; /* ← PCでは拡大 */
  }
}
/* ↓ABOUTのアニメーション */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUpText {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.highlight-lead {
  color: #1a6e8c;
  font-weight: bold;
}
/* ====== モバイル用ロゴ縮小＆ヘッダー調整 ====== */
@media (max-width: 768px) {
  header {
    padding: 10px 14px;         /* 上下の余白を少なめに */
  }

  /* ロゴ2分割画像のサイズ調整 */
  .logo-combo-link .logo-img {
    height: 9vw;                /* 画面幅に応じて縮む */
    max-height: 38px;           /* 上限 */
    width: auto;
  }
  .logo-combo-link .name-img {
    height: 5vw;
    max-height: 22px;
    width: auto;
  }

  /* 並び＆はみ出し防止 */
  .logo-combo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;               /* 画像がはみ出すのを防止 */
  }
  .logo-combo-link img {
    display: block;
    height: auto;
  }

  /* ハンバーガーが被る場合の保険 */
  .hamburger {
    top: 14px;
    right: 14px;
    font-size: 24px;
  }
}

/* さらに小さい端末向け（任意） */
@media (max-width: 380px) {
  .logo-combo-link .logo-img { max-height: 32px; }
  .logo-combo-link .name-img { max-height: 18px; }
  header { padding: 8px 12px; }
}