* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* ページ全体の背景に添付画像 bg.png を固定表示 */
  background: url("./images/bg.png") no-repeat center center fixed;
  background-size: cover;
  font-family: "Yu Mincho", "ヒラギノ明朝 ProN", serif;
  color: #333;
}
#pageTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none; /* 初期は非表示 */
  background-color: #004b87;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s;
}

#pageTop:hover {
  background-color: #003366;
}

/* ナビゲーションバー */
.navbar {
  position: fixed;
  width: 100%;
  background: white;
  border-bottom: 1px solid #ddd;
  z-index: 1000;
}

.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #004b87;
  letter-spacing: 1px;
}

/* PC用 ナビゲーションリンク */
.nav-menu {
  display: flex;
  gap: 1rem;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #004b87;
}

/* ハンバーガーメニュー（スマホ用） */
.hamburger {
  display: none; /* 初期は非表示（PCでは不要） */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 3px;
}

/* モーダルメニューのスタイル（スマホ用） */
.modal-menu {
  display: none; /* 初期状態は非表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-menu.active {
  display: flex;
}

.modal-content {
  position: relative;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  width: 80%;
  max-width: 400px;
  text-align: center;
}

.modal-nav a {
  display: block;
  margin: 1rem 0;
  font-size: 1.5rem;
  text-decoration: none;
  color: #333;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* ヒーロー */
.hero {
  position: relative;
  min-height: 80vh;       /* 全画面の高さを確保 */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;             /* テキストを白 */
}

/* ヒーローの黒オーバーレイ */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7); /* 黒半透明 */
  z-index: 1; 
}

/* ヒーロー内のコンテンツを前面に */
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-content h1 {
  text-align: left;
  font-size: 4rem;
}
.hero-content p {
  text-align: left;
  font-size: 2rem;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #004b87;
  letter-spacing: 1px;
}

.services {
  padding: 4rem 2rem;
  background-color: #f5f9ff;
}

.card-wrapper {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  width: 300px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

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

.card-number {
  font-size: 1.2rem;
  font-weight: bold;
  color: #004b87;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #222;
}
.services-image {
  text-align: center;
  margin-top: 2rem;
}

.services-image img {
  max-width: 100%;
  height: auto;
}

/* 会社案内 */
.about {
  padding: 4rem 2rem;
  background: #fff;
}

.about-table-wrapper {
  overflow-x: auto;
  margin: 2rem auto;
  max-width: 800px;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-table th,
.about-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.about-table th {
  background-color: #004b87;
  color: #fff;
  font-size: 1.1rem;
  width: 30%;
}

.about-table tr:last-child th,
.about-table tr:last-child td {
  border-bottom: none;
}

.about-table tr:hover {
  background-color: #f0f8ff;
}


/* お問い合わせ */
.contact {
  padding: 4rem 2rem;
  background-color: #e7ff6e;
}

.contact-info {
  margin-bottom: 2rem;
}

/* PC表示：横並び、最初の項目以外にのみ左側の短いボーダー */
.contact-row {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 2rem;
  font-size: 1.25rem;
}

.contact-row .item {
  flex: 1;
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
}

/* 最初の項目以外：左側に擬似要素でボーダーを追加 */
.contact-row .item:not(:first-child) {
  padding-left: 1.5rem;
}

.contact-row .item:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 60%;
  background-color: #444;
}

.footer {
  padding:10px;
}

/* スマホ表示：縦並び、各項目の左側にボーダー、左揃え */
@media screen and (max-width: 768px) {
  /* ヘッダーのPC用ナビゲーションは非表示 */
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero-content h1 {
    text-align: left;
    font-size: 1.8rem;
  }
  .hero-content p {
    text-align: left;
    font-size: 1.2rem;
  }
  .contact-row {
    flex-direction: column;
  }
  .contact-row .item {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 1rem 0.5rem 1rem 1.5rem;
    position: relative;
  }
  .contact-row .item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 60%;
    background-color: #444;
  }
}

.map-wrapper iframe {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
