/* 基本的なリセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

/* ヘッダー */
header {
  background: #333;
  color: #fff;
  padding: 1rem 0;
  text-align: center;
}

header h1 {
  margin: 0;
}

header nav ul {
  list-style: none;
}

header nav ul li {
  display: inline;
  margin-right: 20px;
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* ナビゲーションメニューのリンクに囲み線を追加 */
header nav ul li {
  display: inline-block; /* インラインブロック要素に変更 */
  margin-right: 20px;
  border: 1px solid #fff; /* 白色の囲み線 */
  padding: 5px 10px; /* リンクの内側の余白 */
}

/* ナビゲーションメニューのリンクにマウスを乗せた時のスタイル */
header nav ul li:hover {
  background-color: #fff; /* 背景色を白に */
  border: 1px solid #333; /* 囲み線を暗色に */
}

header nav ul li a {
  color: #fff; /* リンクの文字色を白に */
  text-decoration: none; /* 下線を消す */
  display: block; /* リンクをブロック要素にしてクリック領域を増やす */
}

/* ナビゲーションメニューのリンクにマウスを乗せた時の文字色 */
header nav ul li:hover a {
  color: #333; /* 文字色を暗色に */
}


/* ヒーローセクション */
#hero {
/*  position: relative;
/*  height: 300px;*/
    height: 200px;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
/*  width: 90%;*/
/*  height: 100%;*/
  width: 900px;
  height: 300px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide span {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}


/* サービス紹介セクション */
#services {
  text-align: center;
  padding: 2rem;
}

.service-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.service-item {
  background: #fff;
  margin: 1rem;
  padding: 1rem;
  width: calc(33.333% - 2rem);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.service-image {
  width:90%;
  height: 300px;
  background-size: cover;
  background-position: center;
}

.type-section h3 {
  margin-top: 20px;
  font-size: 1.5em;
}

.type-section p {
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: justify;
}


/* サービス紹介セクションのスタイル */
.services-intro {
  text-align: left; /* テキストを左寄せに設定 */
  padding-left: 20px; 左側に適切な余白を設定 
}

/* 既存のスタイルに追加する場合は、上記のプロパティのみ追加してください。 */


/* 料金表セクション */
.pricing-section {
  text-align: left;
  margin: 20px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.pricing-table th,
.pricing-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

.pricing-table th {
  background-color: #f8f8f8;
  font-weight: bold;
}

.pricing-table td {
  background-color: #ffffff;
}

/* 行の背景色を交互に設定するためのCSS */
.pricing-table tr:nth-child(odd) {
  background-color: #f2f2f2;
}

.pricing-table tr:nth-child(even) {
  background-color: #ffffff;
}

.total-row td {
  font-weight: bold; /* 太文字に設定 */
}

.pricing-table th[colspan="4"] {
  text-align: center;
  font-weight: bold;
  background-color: #eaeaea; /* タイトル行の背景色 */
  padding: 10px 0; /* タイトル行の上下のパディング */
  font-size: 1.2em; /* タイトルのフォントサイズを少し大きく */
}

.initial-cost-section {
  text-align: center;
  margin: 20px;
}

.initial-cost-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.initial-cost-table th,
.initial-cost-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

.initial-cost-table th {
  background-color: #f8f8f8;
  font-weight: bold;
}

.initial-cost-table td {
  background-color: #ffffff;
}

.initial-cost-table th[colspan="4"] {
  text-align: center;
  font-weight: bold;
  background-color: #eaeaea;
  padding: 10px 0;
  font-size: 1.2em;
}

/* 行の背景色を交互に設定するためのCSS */
.initial-cost-table tr:nth-child(odd) {
  background-color: #f2f2f2;
}

.initial-cost-table tr:nth-child(even) {
  background-color: #ffffff;
}

/* 初期費用合計の行を太字にする */
.initial-cost-table .total-row td {
  font-weight: bold;
}

.access-section {
  width: 100%; /* コンテナの幅を100%に設定 */
  max-width: 1200px; /* 最大幅を設定 */
  margin: 0 auto; /* 上下のマージンを0にし、左右のマージンを自動に設定して中央に配置 */
  padding: 20px; /* 内側の余白を設定 */
  box-sizing: border-box; /* パディングとボーダーを幅と高さに含める */
}

/* Googleマップのiframeに適用するスタイル */
.map-container iframe {
  width: 85%; /* 幅を70%に設定 */
  height: 400px; /* 高さを400pxに設定 */
  margin: 0 auto; /* マージンを自動に設定して中央に配置 */
  display: block; /* ブロックレベル要素として表示 */
}


/* Q&Aセクション */
#faq {
  padding: 2rem;
}

#faq details {
  background: #fff;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #ddd;
}

#faq summary {
  font-weight: bold;
  cursor: pointer;
}

/* お問い合わせフォーム */
#contact {
  padding: 2rem;
}

#contact form {
  max-width: 600px;
  margin: auto;
}

#contact label {
  display: block;
  margin-bottom: .5rem;
}

#contact input[type="text"],
#contact input[type="tel"],
#contact textarea {
  width: 100%;
  padding: .5rem;
  margin-bottom: 1rem;
}

#contact input[type="submit"] {
  display: block;
  width: 100%;
  padding: 1rem;
  background: #333;
  color: #fff;
  border: none;
  cursor: pointer;
}

#contact input[type="submit"]:hover {
  background: #555;
}

.form-group {
  margin-bottom: 15px;
}

.radio-group {
  display: flex;
  align-items: center;
}

.radio-group label {
  margin-right: 10px;
  margin-left: 5px;
}

/* 注意事項セクション */
#notes {
  background: #fff;
  padding: 2rem;
  margin-top: 1rem;
}

/* フッター */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .service-item,
  .pricing-item {
    width: calc(50% - 2rem);
  }
}

@media (max-width: 480px) {
  header nav ul li {
    display: block;
    margin: 0;
  }

  .service-item,
  .pricing-item {
    width: 100%;
  }

  #hero span {
    font-size: 1.5rem;
  }

}
  .responsive-image-container {
    width: 100%; /* コンテナの幅を画面幅に合わせる */
    max-width: 1200px; /* 最大幅を設定 */
    margin: auto; /* 中央揃え */
    overflow: hidden;  /*はみ出した画像を非表示にする */
  }

  .responsive-image-container img {
    width: 100%; /* 画像の幅をコンテナの幅に合わせる */
    height: auto; 高さを自動で調整し、アスペクト比を維持する */
    display: block; /* ブロックレベル要素として表示 */
  }

  /* スマートフォンや小さなデバイス用のスタイル */
  @media (max-width: 768px) {
    .responsive-image-container {
      width: 95%; /* 小さなデバイスでは少し余白を持たせる */
    }
  }

input[type=text], input[type=email], textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
}
textarea {
  height: 60px; /* 3行分の高さ */
}