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

body {
  color: #ffffff;
  font-family: "Yuji Syuku", serif;
}
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff; /* 背景色 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* 最前面に */
}

/* ロゴのボアッと登場 */
.loading-logo {
  width: 380px;
  opacity: 0;
  transform: scale(0.8);
  animation: logoAppear 2s ease-out forwards;
}

@keyframes logoAppear {
  0% {
    opacity: 0;
    transform: scale(0.8);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* スライド部分 */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* 画面いっぱい */
  overflow: hidden;
}

/* 背景スライド画像 */
.slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画面いっぱいに表示 */
  opacity: 0;
  transition: opacity 1.5s ease;
}

.slideshow img.active {
  opacity: 1;
}

/* 中央の文字画像 */
.hero-text {
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.hero-text img {
  width: 80%; /* 必要に応じて調整 */
  max-width: 600px;
  height: auto;
}

/* 下の白背景部分 */
#blue-scroll {
  background-color: #fff;
  padding: 80px 10% 80px 10%;
  position: relative;
  overflow: hidden;
}
#blue-scroll .blue-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 25%;
  height: 0; /* ←最初は見えない（高さ0） */
  background: #001e62;
  transition: height 0.2s ease-out;
  z-index: 1;
}

#blue-scroll h1{
   font-size: 2.3rem;
  margin-bottom: 50px;
  color: #001e62;
}
#blue-scroll h2 {
  font-size: 1.6rem;
  line-height: 3.1;
  margin-bottom: 40px;
  color: #3b3b3b;
}

#fade-section {
  position: relative;
  height: 90vh;
  background: url('images/haikei00001.jpg') center/cover no-repeat;
  overflow: hidden;
  padding: 80px 10%;
}

#fade-section .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
}

#fade-section .text {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block; 
  text-shadow: 0 0 20px rgba(0,0,0,0.7);
  background: rgba(255, 255, 255, 0.25);/* ← 半透明白背景 */
  padding: 20px;                        /* 背景を少し広げる */                 /* 角を丸くする */
  backdrop-filter: blur(4px); 
}
#fade-section .text h1{
  font-size: 2.5rem;
    margin-bottom: 20px;
}
#fade-section .text h2{
  font-size: 1.5rem;
   line-height: 2.3;
}
#fade-section .text h3{
  font-size: 1.7rem;
   line-height: 2.5;
   color: #fff
}
#fade-section .text h3 span{
  font-size: 1.7rem;
   line-height: 2.5;
   color: #f1c400;
}
#fade-section .text a {
  color: #c63527;
  font-size: 2.2rem;
  line-height: 2.5;
}
.slider {
  display: flex;
  align-items: flex-start;
  gap: 150px;        /* 少し小さめに */
  padding: 40px 10% 0px;
  flex-wrap: wrap;  /* ← 画面が狭い時に折り返せるので絶対に必要！ */
  overflow: hidden; 
}

.slider img {
  width: 35%;        /* ← 少し小さくする */
  min-width: 250px;  /* ← 画像が小さい画面で潰れないように */
  height: auto;
}

.setsumei {
  flex: 1;
  min-width: 300px;  /* ← 文字エリアが2文字にならないよう最低幅を設定 */
  color: #3b3b3b;
  text-align: left;
}
.setsumei h1{
  margin: 0 0 10px;
  padding: 0;
  white-space: normal; 
  font-size: 1.6rem;
  line-height: 2.3;
  color: #277f95;
}
.setsumei h2{
  margin: 0 0 10px;
  padding: 0;
  white-space: normal; 
  font-size: 1.4rem;
  line-height: 2.3;
}
.setsumei h3 {
  margin: 0 0 10px;
  padding: 0;
  white-space: normal; 
  font-size: 1.6rem;
  line-height: 2.3;
}

/* スライドを横に並べる */
.slide-track {
  display: flex;
  width: calc(500px * 12); /* 画像幅×画像枚数（6×2=12） */
  animation: scroll 20s linear infinite;
}

/* 画像の設定 */
.slide-track img {
  width: 500px;    /* 画像幅（調整可） */
  height: auto;
  object-fit: cover;
  margin-right: 10px;
  margin-bottom: 40px;
}

/* 無限スクロールアニメーション */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-1800px); /* 画像幅×6枚分を左に移動 */
  }
}
.fade-in {
  opacity: 0;
  transform: translateY(20px); /* ちょっと下にずらす（浮かび上がる感） */
  transition: all 1s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
.omamori {
    display: flex;
    align-items: center;     /* 画像と文字を縦方向の中央揃え */
    gap: 100px;               /* 要素間の余白 */
    padding: 5% 10%;
    flex-wrap: wrap;
  }

  .omamori img {
    width: 30%;            /* 必要に応じて調整 */
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;          /* 画像の縮小を抑える */
    margin: 40px ;
    min-width: 250px;
  }

  .omamori .moji{
    flex: 1;                 /* 文字側を残り幅で伸ばす */
    color: #3b3b3b;
    min-width: 300px;
  }
  .omamori .moji h1{
   font-size: 1.6rem;
   line-height: 2.3;
   white-space: normal;
   color: #277f95;
  }
  .omamori .moji h2{
   font-size: 1.4rem;
   line-height: 2.3;
   white-space: normal;
  }
   .omamori .moji h3{
   font-size: 1.6rem;
   line-height: 2.3;
   white-space: normal;
  }
@media (min-width:1px) and (max-width:767px){
  * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #ffffff;
  font-family: "Yuji Syuku", serif;
}
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff; /* 背景色 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* 最前面に */
}

/* ロゴのボアッと登場 */
.loading-logo {
  width: 75%;
  opacity: 0;
  transform: scale(0.8);
  animation: logoAppear 2s ease-out forwards;
}

@keyframes logoAppear {
  0% {
    opacity: 0;
    transform: scale(0.8);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* スライド部分 */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* 画面いっぱい */
  overflow: hidden;
}

/* 背景スライド画像 */
.slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画面いっぱいに表示 */
  opacity: 0;
  transition: opacity 1.5s ease;
}

.slideshow img.active {
  opacity: 1;
}

/* 中央の文字画像 */
.hero-text {
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.hero-text img {
  width: 130%; /* 必要に応じて調整 */
  height: auto;
}

/* 下の白背景部分 */
#blue-scroll {
  background-color: #fff;
  padding: 7% 7% 5% 5%;
  position: relative;
  overflow: hidden;
}
#blue-scroll .blue-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 7%;
  height: 0; /* ←最初は見えない（高さ0） */
  background: #001e62;
  transition: height 0.2s ease-out;
  z-index: 1;
}

#blue-scroll h1{
   font-size: 1.3rem;
  line-height: 1.6;
  color: #001e62;
}
#blue-scroll h2 {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 40px;
  color: #3b3b3b;
}

#fade-section {
  position: relative;
  height: 80vh;
  background: url('images/haikei03.jpg') center/cover no-repeat;
  overflow: hidden;
  padding: 5%;
}

#fade-section .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
}

#fade-section .text {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block; 
  text-shadow: 0 0 20px rgba(0,0,0,0.7);
  background: rgba(255, 255, 255, 0.25);/* ← 半透明白背景 */
  padding: 10px 15px;                        /* 背景を少し広げる */                 /* 角を丸くする */
  backdrop-filter: blur(4px); 
}
#fade-section .text h1{
  font-size: 1.1rem;
    margin-bottom: 20px;
}
#fade-section .text h2{
  font-size: 0.8rem;
   line-height: 2.3;
}
#fade-section .text h3{
  font-size: 1rem;
   line-height: 2.5;
   color: #fff
}
#fade-section .text h3 span{
  font-size: 1rem;
   line-height: 2.5;
   color: #f1c400;
}
#fade-section .text a {
  color: #c63527;
  font-size: 1.2rem;
  line-height: 2.5;
}
.slider {
  display: flex;
  align-items: flex-start;
  padding: 5% 5% 0;
  gap: 20px;
}

.slider img {
  width: 60%;        /* ← 少し小さくする */
  height: auto;
  margin: 30px auto 0;
}

.setsumei {
  min-width: 300px;  /* ← 文字エリアが2文字にならないよう最低幅を設定 */
  color: #3b3b3b;
  text-align: left;
}

.setsumei h1{
  margin: 0 5% 0;
  padding: 0;
  white-space: normal; 
  font-size: 1.1rem;
  line-height: 2.3;
  text-align: center;
  color: #277f95;
}
.setsumei h2{
  margin: 0 5% 0;
  padding: 0;
  white-space: normal; 
  font-size: 0.8rem;
  line-height: 2.3;
  text-align: center;
}
.setsumei h3 {
  margin: 0 5% 0;
  padding: 0;
  white-space: normal; 
  font-size: 0.9rem;
  line-height: 2.3;
  text-align: center;
}

/* スライドを横に並べる */
.slide-track {
  display: flex;
  width: calc(408px * 12); /* 画像幅×画像枚数（6×2=12） */
  animation: scroll 20s linear infinite;
  margin-top: 20px;
}

/* 画像の設定 */
.slide-track img {
  width: 400px;     /* 画像幅（調整可） */
  height: auto;
  object-fit: cover;
  margin-right: 8px;
}

/* 無限スクロールアニメーション */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-1800px); /* 画像幅×6枚分を左に移動 */
  }
}
.fade-in {
  opacity: 0;
  transform: translateY(20px); /* ちょっと下にずらす（浮かび上がる感） */
  transition: all 1s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
.omamori {
    display: flex;
    padding: 5% 5%;
    gap: 20px;
  }

.omamori img {
    width: 60%;            /* 必要に応じて調整 */
    height: auto;
    flex-shrink: 0;          /* 画像の縮小を抑える */
    margin: 0 auto;
  }
 .omamori .moji{
    color: #3b3b3b;
    min-width: 300px;
  }
  .omamori .moji h1{
   font-size: 1.1rem;
   line-height: 2.3;
   white-space: normal;
   text-align: center;
   color: #277f95;
  }
  .omamori .moji h2{
   font-size: 0.8rem;
   line-height: 2.3;
   white-space: normal;
   text-align: center;
  }
   .omamori .moji h3{
   font-size: 0.9rem;
   line-height: 2.3;
   white-space: normal;
   text-align: center;
  }
}

@media  (min-width: 768px) and (max-width: 1000px) {
   * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #ffffff;
  font-family: "Yuji Syuku", serif;
}
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff; /* 背景色 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* 最前面に */
}

/* ロゴのボアッと登場 */
.loading-logo {
  width: 65%;
  opacity: 0;
  transform: scale(0.8);
  animation: logoAppear 2s ease-out forwards;
}

@keyframes logoAppear {
  0% {
    opacity: 0;
    transform: scale(0.8);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* スライド部分 */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* 画面いっぱい */
  overflow: hidden;
}

/* 背景スライド画像 */
.slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画面いっぱいに表示 */
  opacity: 0;
  transition: opacity 1.5s ease;
}

.slideshow img.active {
  opacity: 1;
}

/* 中央の文字画像 */
.hero-text {
  position: absolute;
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.hero-text img {
  width: 110%; /* 必要に応じて調整 */
  height: auto;
}

/* 下の白背景部分 */
#blue-scroll {
  background-color: #fff;
  padding: 7% 10% 5% 5%;
  position: relative;
  overflow: hidden;
}
#blue-scroll .blue-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 10%;
  height: 0; /* ←最初は見えない（高さ0） */
  background: #001e62;
  transition: height 0.2s ease-out;
  z-index: 1;
}

#blue-scroll h1{
   font-size: 1.6rem;
  line-height: 1.6;
  color: #001e62;
}
#blue-scroll h2 {
  font-size: 1.4rem;
  line-height: 1.5;
  margin-bottom: 40px;
  color: #3b3b3b;
}

#fade-section {
  position: relative;
  height: 80vh;
  background: url('images/haikei03.jpg') center/cover no-repeat;
  overflow: hidden;
  padding: 5%;
}

#fade-section .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
}

#fade-section .text {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block; 
  text-shadow: 0 0 20px rgba(0,0,0,0.7);
  background: rgba(255, 255, 255, 0.25);/* ← 半透明白背景 */
  padding: 20px 15px;                        /* 背景を少し広げる */                 /* 角を丸くする */
  backdrop-filter: blur(4px); 
}
#fade-section .text h1{
  font-size: 1.5rem;
    margin-bottom: 20px;
}
#fade-section .text h2{
  font-size: 1.3rem;
   line-height: 2.3;
}
#fade-section .text h3{
  font-size: 1.4rem;
   line-height: 2.5;
   color: #fff
}
#fade-section .text h3 span{
  font-size: 1.4rem;
   line-height: 2.5;
   color: #f1c400;
}
#fade-section .text a {
  color: #c63527;
  font-size: 1.5rem;
  line-height: 2.5;
}
.slider {
  display: flex;
  align-items: flex-start;
  padding: 5% 5% 0;
  gap: 20px;
}

.slider img {
  width: 70%;        /* ← 少し小さくする */
  height: auto;
  margin: 70px auto 0;
}

.setsumei {
  min-width: 300px;  /* ← 文字エリアが2文字にならないよう最低幅を設定 */
  color: #3b3b3b;
  text-align: left;
}

.setsumei h1{
  margin: 0 5% 0;
  padding: 0;
  white-space: normal; 
  font-size: 1.6rem;
  line-height: 2.3;
  text-align: center;
  color: #277f95;
}
.setsumei h2{
  margin: 0 5% 0;
  padding: 0;
  white-space: normal; 
  font-size: 1.4rem;
  line-height: 2.3;
  text-align: center;
}
.setsumei h3 {
  margin: 0 5% 0;
  padding: 0;
  white-space: normal; 
  font-size: 1.5rem;
  line-height: 2.3;
  text-align: center;
}

/* スライドを横に並べる */
.slide-track {
  display: flex;
  width: calc(608px * 12); /* 画像幅×画像枚数（6×2=12） */
  animation: scroll 20s linear infinite;
  margin-top: 20px;
}

/* 画像の設定 */
.slide-track img {
  width: 600px;     /* 画像幅（調整可） */
  height: auto;
  object-fit: cover;
  margin-right: 8px;
}

/* 無限スクロールアニメーション */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-1800px); /* 画像幅×6枚分を左に移動 */
  }
}
.fade-in {
  opacity: 0;
  transform: translateY(20px); /* ちょっと下にずらす（浮かび上がる感） */
  transition: all 1s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
.omamori {
    display: flex;
    padding: 5% 5%;
    gap: 20px;
  }

.omamori img {
    width: 60%;            /* 必要に応じて調整 */
    height: auto;
    flex-shrink: 0;          /* 画像の縮小を抑える */
    margin: 0 auto;
  }
 .omamori .moji{
    color: #3b3b3b;
    min-width: 300px;
  }
  .omamori .moji h1{
   font-size: 1.6rem;
   line-height: 2.3;
   white-space: normal;
   text-align: center;
   color: #277f95;
  }
  .omamori .moji h2{
   font-size: 1.4rem;
   line-height: 2.3;
   white-space: normal;
   text-align: center;
  }
   .omamori .moji h3{
   font-size: 1.5rem;
   line-height: 2.3;
   white-space: normal;
   text-align: center;
  }
}
