/* トップページ固有スタイル - index.css */

/* ファーストビュー */
.fv-section {
  position: relative;
  height: 600px;
  overflow: hidden;
  margin-top: 80px;
}
.fv-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  display: block;
  aspect-ratio: 5 / 2;
}

@media (max-width: 768px) {
  .fv-section {
    height: auto;
  }
}

/* サービス一覧セクション */
.services-section,
.facilities-section,
.reasons-section,
.cta-section {
  padding: 4em 1em;
  text-align: center;
}
.section-title {
  font-size: 1.8rem;
  margin-bottom: 2em;
  color: #005bac;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2em;
  max-width: 1000px;
  margin: 0 auto;
}
.service-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-right: 1em;
}
.service-name {
  flex-grow: 1;
  min-width: 0;
  font-size: 1rem;
  color: #333;
  text-align: left;
}
.service-link {
  flex-shrink: 0;
  margin-left: auto;
  background: #005bac;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  font-family: sans-serif;
  line-height: 1;
  content: "→";
}

/* 対象施設カード構成（ビル・マンション・商業施設） */
.facilities-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  max-width: 1000px;
  margin: 0 auto;
}
.facilities-list li {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5em;
  padding: 1em;
}
.facility-label {
  flex-grow: 1;
  min-width: 0;
}
.facility-link {
  flex-shrink: 0;
  margin-left: auto;
  background: #005bac;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}
.facilities-list li img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-right: 1em;
}

/* 選ばれる理由ボックス */
.reasons-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
}
.reasons-list li {
  background: #f0f8ff;
  border-left: 4px solid #005bac;
  padding: 1em;
  max-width: 300px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CTAフォームエリア */
.cta-section {
  background: #eaf4ff;
}
.cta-section .section-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 2em;
}
.cta-form input,
.cta-form textarea {
  padding: 1em;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}
.cta-form button {
  padding: 1em;
  font-size: 1rem;
  background: #005bac;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* フッター */
.site-footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 2em 1em;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1em 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em;
}
.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

/* ヘッダー分の余白をbodyに追加 */
body {
  padding-top: 0;
}

.site-header {
  height: 80px;
}

/*スマホヘッダーメニュー縦配列*/
@media (max-width: 768px) {
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
    padding: 1.5em 0;
  }

  .main-nav li {
    width: 100%;
    text-align: center;
  }

  .main-nav a {
    display: block;
    padding: 0.8em 0;
  }
}
