/* ===== トップページ専用スタイル ===== */
/* === リセット & ベース === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", sans-serif;
  color: #333;
  background: url("../img/backgroundimage-1.png") no-repeat center center / cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-attachment: fixed;
}

/* === ヘッダー === */
.site-header {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
  z-index: 1000; /* 他要素より前に出す */
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  width: 60px;
  height: auto;
}

/* === ナビゲーション === */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}
.site-nav a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}
.site-nav a:hover {
  background: rgba(0,0,0,0.05);
}
.site-nav a.active {
  background: #000;
  color: #fff;
}
.site-nav .btn-contact {
  background: #2dbbe6;
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
}
.site-nav .btn-contact:hover {
  opacity: 0.9;
}

/* === ハンバーガーメニュー === */
.menubar {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.menubar .bar {
  width: 100%;
  height: 3px;
  background-color: #000;
}

/* === ページ全体 === */
.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  color: #605f5f;
}

.form-container {
  width: 100%;
  max-width: 800px;
  background-color: rgba(255,255,255,0.9);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* キャッチコピー */
.catchcopy {
  text-align: center;
  margin-bottom: 40px;
}
.catchcopy h1 {
  font-size: 30px;
  margin-top: 30px;
  margin-bottom: 50px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.btn-diagnosis {
  display: inline-block;
  padding: 12px 24px;
  background: #2dbbe6;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-size: 15px;
  transition: 0.2s;
}
.btn-diagnosis:hover {
  opacity: 0.85;
}

.business-link {
  text-decoration: none;
  color: inherit; 
}

/* 事業内容 */
.business-section {
  text-align: center;
  margin-bottom: 10px;
}
.business-section h2 {
  text-align: center;
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
}
.business-list {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.business-item {
  width: 150px;
  text-align: center;
}
.business-item img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.business-item p {
  font-size: 14px;
  margin-top: 8px;
}

/* News */
.news-section {
  text-align: center;
}
.news-section h2 {
  text-align: center;
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
}
.news-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}
.news-list li {
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}
.news-list .date {
  margin-right: 10px;
  font-size: 12px;
  color: #777;
}
.btn-more {
  display: inline-block;
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid #ccc;
  border-radius: 30px;
  text-decoration: none;
  color: #555;
  transition: 0.2s;
  margin-bottom: 30px;
}
.btn-more:hover {
  background: rgba(0,0,0,0.05);
}

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

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

/* === 無料診断ボタン吹き出し === */
.diagnosis-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.speech-bubble {
  position: relative;
  background: #fff;
  color: #555;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  width: 300px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  animation: bounce 2s infinite;
}

.speech-bubble::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
}

/* アニメーション */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* === スマホ対応 === */
@media (max-width: 768px) {

  /* 背景をスマホ向けに調整 */
  body {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top center;
    background-attachment: scroll;
    background-color: #fff;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    border-top: 1px solid #ddd;
    z-index: 999;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
  }

  .menubar {
    display: flex;
  }

  .site-nav.open {
    display: block;
  }

  .form-container {
    width: 100%;
    padding: 20px;
  }

  /* スマホでは段落の行間を少し詰める */
  .page-content p {
    line-height: 1.4;
  }
}
