

/* カルーセル全体 */
.carousel {
  width: 100%;              /* 100vw を 100% に変更して左右スクロールの可能性を低く */
  overflow: hidden;
  position: relative;
}

/* 並ぶ画像（2セット分を横につなげる） */
.carousel-track {
  display: flex;
  gap: 2rem;
  /* width: max-content; */  /* コメントアウトまたは不要なら削除 */
  animation: scroll 40s linear infinite;
}

/* 丸い画像 */
.carousel-track img {
  width: 200px !important;
  height: 200px !important;
  max-width: 200px;
  max-height: 200px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  display: block;
}


/* 完全無限ループアニメーション */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* スマホサイズ向け（768px以下など） */
@media (max-width: 768px) {
  .carousel-track img {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px;
    max-height: 120px;
  }

  .carousel-track {
    animation: scroll 20s linear infinite; /* 少し速め（例: 25秒） */
  }
}





<!--
  @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Noto+Sans+JP:wght@300;400&display=swap');

  body{
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    background: #f8f8f8;
    overflow-x: hidden;
  }

  /* 固定トップ背景 */
  .fixed-hero{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
  }
  .fixed-hero img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


  /* ヒーロー中央テキスト */
  .hero-text{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
    z-index: 10;
    transition: opacity 0.5s;
  }
  .hero-text h1{
  font-family: 'HannariMincho', "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 1.8rem;
    color: #fff;
    margin: 0;
  }

  /* ロゴ */
  .header{
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
  }
  .header img{
    display: block;
    width: 258px;
    height: auto;
  }

  /* セクション */
  .section{
    padding: 0px 20px;
    background: #fff;
    color: #666;
    text-align: center;
    position: relative;
  }
  .section h2{
  font-family: 'HannariMincho', "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 1.5rem;
    margin-bottom: 0px;
  }
  .section p{
  font-family: 'HannariMincho', "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
  }


  .section3{
    background: #fff;
  }

  /* スペーサー（セクション間の空白） */
  .spacer{
    height: 400px;
  }
  }
-->


   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    width: 100%;
  }

  .container {
    display: flex;
    width: 100%;
    margin-bottom: 0;
    align-items: center;
  }

  .container img {
    width: 50%;
    height: auto;
    display: block;
  }


  .container .text {
    width: 50%;
  font-size: 14px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  letter-spacing: 0.1em; /* 少し文字間を広げる */
  line-height: 1.6;       /* 読みやすく */
  margin-bottom: 1rem;    /* 下余白 */
  text-align: left;       /* ← 左揃え */
    padding: 0 20px;
    box-sizing: border-box;
  }

  /* 左画像・右文字 */
  .photo-left {
    justify-content: flex-start;
  }

  .photo-left img {
    order: 1;
  }

  .photo-left .text {
    order: 2;
  }

  /* 右画像・左文字 */
.photo-right {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* コンテナ全体を右寄せ */
}

.photo-right .text {
  text-align: left;      /* 文字は左揃え */
  max-width: 500px;      /* 文章の幅を制限 */
  margin-right: 20px;    /* 画像との間隔 */
}

.photo-right img {
  width: 50%;
  height: auto;
}
  /* スマホ対応：画像→文字、端寄せ維持、余白なし */
  @media (max-width: 600px) {
    .container {
      flex-direction: column;
      width: 100%;
    }

    .container img {
      width: 100%;
      order: 1 !important;
    }

    .container .text {
      width: 90%;
      order: 2 !important;
      padding: 5px 0; /* 最小限の余白 */
    }
  }






  .photo-container {
    position: relative;
    display: inline-block;
    max-width: 80vw; /* スマホでもはみ出さないように */
    overflow: visible;
  }

  .photo-container img {
    width: 100%;
    height: auto;
    display: block;
  }

  .overlay-text-box {
    position: absolute;
    bottom: 50px;
    right: -40px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 18px 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    color: #111;
    max-width: 80%;
  }

  /* メインテキストを2段にデザイン */
  .overlay-text-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    margin: 0 0 6px;
    letter-spacing: 0.03em;
  }

  .overlay-text-box p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
  }

/* 📱 スマホ用調整 */
@media (max-width: 600px) {

  .photo-container {
    position: relative;
    display: block;
    max-width: 100vw;  /* ← ここでOK！ */
    width: 100%;
    overflow: visible;
  }

  .photo-container img {
    width: 100%;
    height: auto;
    display: block;
  }

  .overlay-text-box {
    position: absolute;
    bottom: 10px;
    right: -12px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 18px 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    color: #111;
    max-width: 90%;
  }

  .overlay-text-box h2 {
    font-size: 0.9rem;
  }

  .overlay-text-box p {
    font-size: 0.6rem;
  }
}




/* ボックスサイズをパディング込みで計算 */
*,
*::before,
*::after {
  box-sizing: border-box;
}



/* 🔹 SERVICE専用セクション */
.service-section {
  display: flex;
  flex-direction: row; /* 横並び */
  width: 100%;
  min-height: 400px;
}

.service-section .image {
  flex: 1;
  background-image: url('../img/kure_b.png'); /* 画像パスを修正 */
  background-size: cover;
  background-position: center center;
  min-height: 400px;
}

.service-section .text {
  flex: 1;
  background-color: #11b7ce;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-section .text h2 {
  font-family: 'HannariMincho', "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 2.2rem;
    padding: 0px 0px; /* スマホではパディング狭め */
  color: #fff;
  letter-spacing: 0.05em;
} 

.service-section .text h3 {
  font-family: 'HannariMincho', "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.service-section .text p {
  font-family: 'HannariMincho', "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size:0.9rem;
  line-height: 2;
  color: #f9f9f9;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .service-section {
    flex-direction: column; /* 縦並び */
  }
  .service-section .image,
  .service-section .text {
    flex: 1 1 100%;
    width: 100%;
  }
  .service-section .text {
    padding: 20px 15px; /* スマホではパディング狭め */
  }
}




/* 左右ボックス */

.info-boxes {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  flex-wrap: wrap; /* スマホで縦並びに */
}

.info-box {
  flex: 1 1 48%;
  background-color: rgba(255,255,255,0.85);
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);

}

.info-box h3 {
  font-family: 'HannariMincho', "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.info-box p {
  font-family: 'HannariMincho', "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

/* 📱 スマホ対応 */
@media (max-width: 768px) {
  .info-box {
    flex: 1 1 100%; /* 縦並び */
    margin-bottom: 1rem;
  }
}





.banner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 30px 0;
}

.banner {
  position: relative;
  width: 80%;
  max-width: 350px;
  height: 100px;
  border: 1px solid #000;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #fff;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: "Noto Sans JP", sans-serif;
}

/* 背景画像（例） */
.banner-ijyu {
  background-image: url("../img/top_bc_d.png"); /* ←画像パス変更 */
}

.banner-teijyu {
  background-image: url("../img/rag_a.png"); /* ←画像パス変更 */
}

/* オーバーレイ */
.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45); /* 半透明の黒 */
  transition: background 0.3s ease;
}

/* テキスト中央 */
.banner-text {
  position: relative;
  z-index: 2;
  text-align: center;
}

.banner-text h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
}

.banner-text p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #fff;
}

/* ホバー時：少し明るく */
.banner:hover .banner-overlay {
  background: rgba(0,0,0,0.25);
}

.banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* 📱 スマホ対応 */
@media (max-width: 768px) {
  .banner-container {
    flex-direction: column;
  }

  .banner {
    width: 90%;
    height: 100px;
  }

  .banner-text h3 {
    font-size: 1rem;
  }

  .banner-text p {
    font-size: 0.8rem;
  }
}



p {
  text-align: left;
}


