/* ----------------------------------------------------
   ベース設定
---------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Helvetica", "Arial", "Noto Sans JP", sans-serif;
}

body {
  background: #f5f8ff;
  color: #333;
  line-height: 1.8;
}

/* ----------------------------------------------------
   ヒーロー（上部ビジュアル）
---------------------------------------------------- */
.hero {
  position: relative;
  /* background: url('images/contact-bg.jpg') center/cover no-repeat; */
  background-image: linear-gradient(rgba(0, 60, 140, 0.55)), url(../sab_img/top_contact.jpg);
  background-size: cover;
  height: 280px;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
  text-align: center;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 60, 140, 0.55); /* 青系のフィルター */
}

.hero h1 {
  position: relative;
  top: 40%;
  font-size: 2.4rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hero p {
  position: relative;
  top: 35%;
  font-size: 1.1rem;
}

/* ----------------------------------------------------
   連絡先カード
---------------------------------------------------- */
.contact-info {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.info-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: .3s;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.info-card h3 {
  color: #0057c8;
  margin-bottom: 10px;
}

/* ----------------------------------------------------
   タブ
---------------------------------------------------- */
.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px auto 30px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.tab {
  background: #e7efff;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: .3s;
}

.tab:hover {
  background: #d6e4ff;
}

.tab.active {
  background: #0057c8;
  color: #fff;
}

/* ----------------------------------------------------
   フォーム
---------------------------------------------------- */
.form-section {
  max-width: 700px;
  margin: 0 auto 60px;
  background: #fff;
  padding: 30px 25px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: .4s ease;
}

.form-section.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.form-section h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  border-left: 5px solid #0057c8;
  padding-left: 10px;
}

form label {
  display: block;
  margin-top: 18px;
  font-weight: bold;
}

form input,
form select,
form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

textarea {
  height: 140px;
  resize: vertical;
}

.submit-btn {
  margin-top: 25px;
  background: #0057c8;
  color: #fff;
  padding: 14px;
  border: none;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: .3s;
}

.submit-btn:hover {
  background: #003e92;
}

/* ----------------------------------------------------
   フッター
---------------------------------------------------- */
.footer {
  background: #003e92;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
}

/* ----------------------------------------------------
   スマホ対応
---------------------------------------------------- */
@media (max-width: 768px) {
  .contact-info {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    height: 220px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .tab {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .contact-info {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 180px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .form-section {
    padding: 24px 18px;
  }
}
