body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: #282828;
}

/* デフォルトのフォントサイズ（モバイル向け） */
h1 {
  font-size: 1.3em;
  /* モバイル向けの小さいサイズ */
}

ul {
  list-style-type: none;
  /* リストの点を削除 */
  padding-left: 0;
  /* 左側の余白をなくす */
  margin-left: 0;
  /* 追加の余白がある場合は削除 */
}

/* ヘッダーがファーストビューに被らないよう調整 */
.first-view {
  padding-top: 60px;
  /* ヘッダーの高さに合わせて調整 */
}

/* ナビゲーション全体 */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #626458;
  color: white;
  padding: 10px 20px;
  box-sizing: border-box;
  /* パディングを含めて幅を計算 */
  width: 100%;
  z-index: 10;
}

/* ロゴ部分 */
.logo {
  font-size: 1.3em;
  color: white;
}

/* ナビゲーションリンク */
.nav-links {
  list-style: none;
  /* デフォルトのリストスタイルを消す */
  margin: 0;
  /* デフォルトのマージンをリセット */
  padding: 0;
  /* パディングをリセット */
  display: flex;
  justify-content: space-around;
  /* リンクを横並びにする場合 */
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.2em;
}

/* モバイル用ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px;
}

.slideshow-container {
  position: relative;
  /* catchphraseを中央に配置するためにrelativeを指定 */
  max-width: 100%;
  height: 100vh;
  /* 画面の高さに合わせる */
  margin: auto;
  overflow: hidden;
}

/* スライドショーの画像 */
.mySlides img {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  /* 画像がスライドショーにフィットするように調整 */
  animation: zoomIn 10s ease-in-out infinite;
}

/* キャッチフレーズの背景と位置 */
.catchphrase-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 80%;
  /* コンテナの幅を設定 */
}

.catchphrase {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-block;
  padding: 20px;
  text-align: center;
  max-width: 90%;
  /* モバイルで幅がはみ出さないようにする */
  box-sizing: border-box;
  /* パディング込みの幅計算 */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.catchphrase p {
  position: relative;
  z-index: 2;
  font-size: 1em;
  color: #333;
  margin: 0;
}

/* スライドのフェードイン・アウト効果 */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

/* ズームインアニメーション */
@keyframes zoomIn {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.customer-message {
  text-align: center;
  /* テキストを中央揃え */
  font-size: 1.2em;
  /* フォントサイズを調整 */
  color: #282828;
  /* テキストの色を指定 */
  margin: 20px 10px;
  /* 上下の余白を追加 */
}

#promo-section {
  background-color: #626458;
  display: flex;
  align-items: center;
  padding: 20px 0;
}

.promo-image {
  height: 121px;
  margin-left: 20px;
}

.promo-text {
  display: flex;
  flex-direction: row;
  margin-left: 20px;
  color: white;
  font-size: 1.2em;
}

.promo-text span {
  margin-right: 40px;
}

#service-details {
  position: relative;
  /* 子要素を絶対配置するために必要 */
  background-image: url('../images/texture-grainy.webp');
  background-repeat: repeat;
  background-size: 720px 720px;
}

#service-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  /* 必要に応じて調整 */
  height: 100%;
  background-image: url('../images/service-bg-left.webp');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
}

#service-details::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: 0;
  width: 200px;
  /* 必要に応じて調整 */
  height: 100%;
  background-image: url('../images/service-bg-right.webp');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
}

#service-details .content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 2;
  /* コンテンツが画像の上に表示されるように */
  display: flex;
  flex-direction: column;
  gap: 40px;
}

#service-details .service-step {
  display: flex;
  flex-direction: row;
  /* 横並びにする */
  align-items: center;
  /* 中央揃え */
  gap: 20px;
  /* 画像とテキストの間のスペース */
}

#service-details .service-step img {
  width: 40%;
  /* 画像の横幅を指定、調整可能 */
}

#service-details .service-step .service-text {
  width: 60%;
  /* テキストの横幅を指定、調整可能 */
}

.service-step {
  display: flex;
  align-items: center;
  gap: 20px;
}

.service-step:nth-child(even) {
  flex-direction: row-reverse;
}

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

.disposal-container img {
  max-width: 50%;
  /* 画像の幅を50%に制限 */
  margin-left: 20px;
  /* 画像の左側に余白を追加 */
}

.text-content {
  width: 50%;
}

.image-content {
  position: relative;
  width: 50%;
}

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

.background-box {
  position: absolute;
  bottom: -20px;
  /* 画像から少しずらす */
  right: 200px;
  /* 画像から少しずらす */
  width: 50%;
  height: 100%;
  background-color: #E9E9E6;
  z-index: -1;
  /* 画像の下に配置 */
}

#butsudan-disposal::before {
  content: '';
  background-image: url('../images/butsudan_trouble_bg.webp');
  /* アップロードした画像のパスに変更してください */
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 300px;
  /* 画像の高さを指定 */
  z-index: 1;
}

#butsudan-disposal {
  position: relative;
  background-color: #f5f5f5;
  /* 背景色 */
  padding-top: 300px;
  /* 画像の高さ分だけ上部にパディング */
  z-index: 2;
}

/* セクション全体のスタイル */
.features-section {
  background-color: #f5f5f5;
  padding: 50px 0;
}

/* 横幅いっぱいの画像 */
.full-width-image img {
  width: 100%;
  height: auto;
}

/* タイトルと横線 */
.features-container {
  width: 90%;
  margin: 0 auto;
}

.features-container h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-divider {
  border: 0;
  height: 1px;
  background-color: #E9E9E6;
  margin-bottom: 40px;
}

/* 特徴のスタイル */
.feature {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.feature-image img {
  width: 500px;
  height: auto;
  margin-right: 30px;
}

.feature-text h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature-text p {
  margin: 0;
  font-size: 16px;
}

.review-container {
  padding: 10px;
  border: 1px solid #e9e9e6;
  border-radius: 8px;
  margin-bottom: 10px;
  background-color: #fff;
}

.icon-and-name {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #0488D1;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  margin-right: 10px;
}

.name-and-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.name-and-meta h4,
.name-and-meta .review-meta {
  margin: 0;
  text-align: left;
  /* 名前とメタ情報を左寄せ */
}

.review-meta {
  font-size: 12px;
  color: gray;
}

.review-text {
  font-size: 14px;
  color: #333;
  text-align: left;
}












iframe {
  width: 600px;
}

.footer-section {
  background-color: #333333;
  /* headerと同じ背景色 */
  color: #ffffff;
  /* headerと同じ文字色 */
  padding: 20px 0;
  padding-bottom: 80px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-info {
  text-align: left;
}

.footer-info h3 {
  margin-bottom: 10px;
}

.footer-info p {
  margin: 5px 0;
}



/* 固定ボタンのスタイル */
.fixed-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  background-color: #0A398D;
  z-index: 1000;
  /* 他の要素より前に表示する */
}

.fixed-button {
  width: 50%;
  padding: 15px;
  text-align: center;
  color: white;
  background-color: #0A398D;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

.fixed-button.phone-button {
  border-right: 1px solid #ffffff;
  /* ボタン間の境界線 */
}

.fixed-button.email-button {
  border-left: 1px solid #ffffff;
  /* ボタン間の境界線 */
}




/* タブレット以上のサイズ向け */
@media (min-width: 768px) {
  h1 {
    font-size: 1.3em;
    /* タブレット向けに調整 */
  }

  .slideshow-container {
    height: 75vh;
    /* タブレットでは高さを調整 */
  }

  .mySlides img {
    height: 75vh;
  }
}

/* PC向けのフォントサイズ調整 */
@media (min-width: 1024px) {
  h1 {
    font-size: 1.5em;
    /* PCでのh1のフォントサイズを1.5emに設定 */
  }

  .slideshow-container {
    height: 100vh;
    /* PCでは全画面表示 */
  }

  .mySlides img {
    height: 100vh;
  }

  .catchphrase {
    font-size: 5.8em;
    /* PC用のキャッチフレーズサイズ */
  }

  #service-details .content-container {
    padding: 40px;
    /* PC表示時の余白を広げる */
  }
}

/* メニューが開かれたときのスタイル */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* 初期状態で非表示 */
    flex-direction: column;
  }

  .hamburger {
    display: flex;
    /* モバイルではハンバーガーメニューを表示 */
    z-index: 4;
  }

  .navbar.open .nav-links {
    display: flex;
    /* openクラスが追加された時に表示 */
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background-color: #626458;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
  }

  .navbar.open .nav-links li {
    margin: 20px 0;
  }

  .slideshow-container {
    height: 40vh;
  }

  .mySlides img {
    width: 100%;
    height: 40vh;
  }

  .catchphrase {
    top: 20vh;
    padding: 10px;
    /* モバイルで余白を縮小 */
    font-size: 1.3em;
    /* モバイル用にフォントサイズを小さく */
    max-width: 90%;
    /* 幅を画面に収める */
  }

  #promo-section {
    flex-direction: column;
    align-items: flex-start;
    /* 縦に並べる */
    padding: 10px;
  }

  .promo-image {
    margin-left: 0;
    /* モバイル時に左側の余白を削除 */
    margin-bottom: 10px;
    /* 画像下に余白を追加 */
  }

  .promo-text {
    flex-direction: column;
    /* テキストを縦並びに */
    margin-left: 0;
    font-size: 1em;
    /* テキストサイズを少し小さく */
  }

  .promo-text span {
    margin-right: 0;
    margin-bottom: 10px;
    /* 各テキストに下部余白を追加 */
  }

  #service-details::before {
    width: 100px;
    /* モバイル時の幅を小さくする */
    height: 50%;
    /* モバイル時の高さを調整 */
    left: 70%;
    top: 10%;
  }

  #service-details::after {
    width: 100px;
    /* モバイル時の幅を小さくする */
    height: 50%;
    /* モバイル時の高さを調整 */
    bottom: -20%;
  }

  #service-details .service-step {
    flex-direction: column;
    /* 縦並びに変更 */
    text-align: center;
    /* 中央揃え */
  }

  #service-details .service-step img {
    width: 100%;
    /* 画像を全幅に */
    margin-bottom: 15px;
    /* 画像とテキストの間にスペースを追加 */
  }

  #service-details .service-step .service-text {
    width: 100%;
    /* テキストも全幅に */
  }

  #butsudan-disposal {
    padding-top: 150px;
  }

  #butsudan-disposal::before {
    height: 20%;
  }

  .disposal-container {
    flex-direction: column;
    text-align: center;
  }

  .text-content,
  .image-content {
    width: 100%;
  }

  .background-box {
    right: 100px;
  }

  .feature {
    flex-direction: column;
    text-align: center;
  }

  .feature-image {
    margin-bottom: 15px;
  }

  .feature-image img {
    width: 100%;
    height: auto;
    margin-right: 0;
  }








  iframe {
    width: 300px;
  }

  .footer-section {
    padding: 20px;
  }

  .footer-container {
    flex-direction: column;
    /* 小さい画面では縦並びにする */
    align-items: flex-start;
    /* 左寄せにする */
    text-align: left;
  }

  .footer-info {
    margin-top: 20px;
  }

  iframe {
    width: 100%;
    /* マップが画面幅にフィットする */
    height: auto;
    max-height: 300px;
    /* 高さの上限を設定 */
  }




  .fixed-button {
    font-size: 16px;
    padding: 10px;
  }

}

.swiper {
  /*  height: 470px; */
  height: 170px;
}

.swiper-container {
  width: 100%;
  height: auto;
  /* スライダー全体の高さを指定 */
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;

  /* スライド内の画像を100%の幅で表示 */
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  width: 100%;
  /* 画像の幅をスライドに合わせる */
  height: auto;
  /* 高さは自動調整 */
}

@media (max-width: 768px) {

  .swiper {
    height: 230px;
  }

}

/* アニメーション前の状態 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* アニメーションを適用した後の状態 */
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Additional Services Section */
.additional-services-section {
  padding: 60px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.additional-services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.additional-services-section h2 {
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 30px;
  line-height: 1.4;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.service-cards {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.service-card {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  max-width: 400px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.service-card h3 {
  font-size: 1.5rem;
  color: #626458;
  margin-bottom: 20px;
  font-weight: bold;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 30px;
}

.service-button {
  display: inline-block;
  background-color: #626458;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.service-button:hover {
  background-color: #4a4e42;
}

/* Responsive */
@media (max-width: 768px) {
  .additional-services-section h2 {
    font-size: 1.8rem;
  }
  
  .intro-text {
    font-size: 1rem;
  }
  
  .service-cards {
    flex-direction: column;
    gap: 30px;
  }
  
  .service-card {
    max-width: 100%;
    padding: 30px 20px;
  }
}

.faq-section {
  background-color: #f5f5f5;
  padding: 40px 20px;
}

.faq-container {
  max-width: 1200px;
  margin: 0 auto;
}

.faq-container h2 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 20px;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.faq-answer {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
}

/* PC用のスタイル */
section#butsudan-guide {
  background-color: #f5f5f5;
  padding: 40px 20px;
}

.butsudan-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.butsudan-image-content,
.butsudan-text-content {
  width: 50%;
}

.butsudan-container.reverse {
  flex-direction: row-reverse;
  /* 画像が右、テキストが左 */
}

/* モバイル用のスタイル (768px以下の場合) */
@media (max-width: 768px) {
  .butsudan-container {
    flex-direction: column;
    /*  text-align: center; */
  }

  .butsudan-container.reverse {
    flex-direction: column;
  }

  .butsudan-image-content,
  .butsudan-text-content {
    width: 100%;
  }

  .butsudan-image-content img {
    width: 100%;
    height: auto;
    margin-right: 0;
  }

}

.blog-section {
  text-align: center;
  padding: 40px 20px;
  background: #f5f5f5;
}

/* 横スクロール可能な領域 */
#latest-posts {
  display: flex;
  overflow-x: auto;
  /* 横スクロールを有効にする */
  white-space: nowrap;
  padding: 10px;
}

#latest-posts li {
  list-style-type: none;
  margin-right: 20px;
  flex-shrink: 0;
  width: 400px;
  /* 画像と同じ幅に設定 */
  text-align: center;
  box-sizing: border-box;
  overflow-wrap: break-word;
  /* 幅を超えた文字列を強制的に改行 */
  word-wrap: break-word;
  /* 旧ブラウザ対応のため */
  white-space: normal;
  /* テキストの改行を許可 */
}

#latest-posts img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  /* 画像を正方形に収める */
  border-radius: 10px;
  /* 角丸にする */
}

#latest-posts a {
  display: block;
  margin-top: 10px;
  text-decoration: none;
  /* color: #06A55B; */
  font-weight: bold;
  font-size: 25px;
  width: 100%;
  word-wrap: break-word;
  /* タイトルが画像の幅を超えた場合の改行処理 */
  overflow-wrap: break-word;
  /* 改行を強制 */
  text-align: left;
}

@media (max-width: 768px) {
  #latest-posts li {
    width: 150px;
  }

  #latest-posts img {
    width: 150px;
    height: 150px;
  }

  #latest-posts a {
    font-size: 14px;
  }
}

.latest-posts-section {
  text-align: center;
  padding: 40px 20px;
  background: #dddfd3;
}

.work-section {
  text-align: center;
  padding: 40px 20px;
  background: #f5f5f5;
  ;
}

#latest-work {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px;
}

#latest-work li {
  list-style-type: none;
  margin-right: 20px;
  flex-shrink: 0;
  width: 400px;
  text-align: center;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
}

#latest-work img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

#latest-work a {
  display: block;
  margin-top: 10px;
  text-decoration: none;
  /* color: #06A55B; */
  font-weight: bold;
  font-size: 25px;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: left;
}

@media (max-width: 768px) {
  #latest-work li {
    width: 150px;
  }

  #latest-work img {
    width: 150px;
    height: 150px;
  }

  #latest-work a {
    font-size: 14px;
}
}

/* プライバシーポリシーページ用スタイル */
.privacy-page {
  background-color: #f8f9fa;
  min-height: 100vh;
  padding: 20px 0;
}

.privacy-page .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.privacy-page h1 {
  text-align: center;
  color: #626458;
  margin-bottom: 30px;
  font-size: 2.5em;
  padding: 20px 0;
  border-bottom: 3px solid #626458;
}

.privacy-content {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
}

.privacy-content .last-updated {
  text-align: right;
  color: #666;
  font-size: 0.9em;
  margin-bottom: 30px;
  font-style: italic;
}

.privacy-content section {
  margin-bottom: 40px;
}

.privacy-content h2 {
  color: #626458;
  font-size: 1.8em;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.privacy-content p {
  margin-bottom: 15px;
  color: #333;
  font-size: 1.1em;
}

.privacy-content ul {
  margin: 15px 0 15px 20px;
  list-style-type: disc;
  padding-left: 20px;
}

.privacy-content ul li {
  margin-bottom: 8px;
  color: #333;
  font-size: 1.1em;
}

.contact-info {
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  border-left: 5px solid #626458;
  margin-top: 20px;
}

.contact-info p {
  margin-bottom: 8px;
}

.contact-info strong {
  color: #626458;
}

.contact-info a {
  color: #626458;
  text-decoration: none;
  font-weight: bold;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ロゴのリンクスタイル */
.logo a {
  color: white;
  text-decoration: none;
}

.logo a:hover {
  color: #f0f0f0;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .privacy-page h1 {
    font-size: 2em;
  }
  
  .privacy-content {
    padding: 20px;
  }
  
  .privacy-content h2 {
    font-size: 1.5em;
  }
  
  .privacy-content p,
  .privacy-content ul li {
    font-size: 1em;
  }
  
  .contact-info {
    padding: 15px;
  }
}