body {
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}
/*ヘッダー関係*/
/* ヘッダー全体 */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -8px;
  margin-left: -8px;
  margin-right: -8px;
  padding: 10px 40px;
  background-color: #dfdcd4;
  position: relative;   /* ロゴの基準 */
  height: 72px;         /* ヘッダー本体の高さ（中央にロゴが来るように調整） */
  box-sizing: border-box;
}

/* ロゴ画像 */
.logo {
  margin-left: -60px;
  position: relative;
  z-index: 1;           /* ナビより手前に表示 */
}

.logo img {
  height: 100px;               /* ヘッダーより大きくして上下に飛び出させる */
  width: auto;
  display: block;
  transform: translateY(0%); /* 上方向への飛び出し */
}

/* ナビゲーション */
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin-left: 20px;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-family: "SawarabiGothic", sans-serif;
    font-weight: 400;
    font-size: 16px;
}

.main-nav a:hover {
  color: #9c2124;
}

/* スマホ対応 */
/* スマホ対応 */
@media (max-width: 768px) {
  .site-header {
    flex-direction: row;      /* ヘッダーは横並びのまま */
    justify-content: space-between; /* 左右に配置 */
    align-items: flex-start;  /* 上揃え */
    padding: 20px;
    height: auto;
  }
  .logo {
  margin-left: -35px;
  position: relative;
  z-index: 1;           /* ナビより手前に表示 */
  }
  .logo img {
    transform: translateY(0); /* 飛び出し量をスマホ向けに調整 */
    height: 80px;             /* スマホで少し小さく */
  }

  .main-nav ul {
    flex-direction: column;  /* 縦並び */
    margin: 0;
    padding: 0;
    align-items: flex-end;   /* 右揃え */
  }

  .main-nav li {
    margin: 5px 0;
  }
  .main-nav a {
  text-decoration: none;
  color: #333;
  font-family: "SawarabiGothic", sans-serif;
    font-weight: 400;
    font-size: 14px;
}
}
/*ヘッダー関係*/


.head{
  position: fixed;
  width:100%;
  height: 80px;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  /*background: black;*/
}

@media (max-width: 800px) {/* スマホサイズに調節 */
  .container {
    width: 100%;       /* 幅いっぱいに広げる */
    padding: 7vw;     /* 余白をやや広く */
    max-width: none;   /* 固定幅の制限を解除 */
  }

}
/*トップの画像*/
.topimg {
  margin-top: -8px;
  margin-left: -8px;
  margin-right: -8px;
}
.topimg img {
  width: 100%;
  height: auto;
  display: block;
}

/*メイン*/
.container {
  max-width: 1920;  
  margin: 0 auto;     /* 中央揃え */
  padding-right: 10vw; 
  padding-left: 10vw;
  box-sizing: border-box;
}

.atmrg{
  margin-top: 15vw;
  margin-bottom: 30vw;
}
.mrg{
  margin-top: 25vw;
  margin-bottom: 20vw;
}

.mrgs{
  margin-top: 7vw;
  margin-bottom: 7vw;

}
.lead-mrg{
  display: flex;              /* 子要素を横並びにする */
  flex-direction: column;
  margin-left: 15vw;
  margin-right: 15vw;
  gap: 0px;
}

.lrmrg{
  margin-left: 15vw;
  margin-right: 15vw;
}
.lrmrgs{
  margin-left: 5vw;
  margin-right: 5vw;
}
.lrmrgl{
  margin-left: 25vw;
  margin-right: 25vw;
}

@media (width < 800px) {
  .lead-mrg{
  margin-left: 0vw;
  margin-right: 0vw;
}
  .lrmrg{
  margin-left: 0vw;
  margin-right: 0vw;
  }

}


ul {
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 20px;
    unicode-bidi: isolate;
}

/*テキスト系*/
.zen-kaku-gothic-new-regular {
  font-family: "ZenKakuGothicNew", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.sawarabi-gothic-regular {
  font-family: "SawarabiGothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}


.lead-lettrer{
	letter-spacing: 0.05em;
	line-height: 2.5em;
	font-size: 28px;
	text-align: center;
	text-align-last: center;
	font-family: "SawarabiGothic", sans-serif;
  	font-weight: 500;
  	font-style: normal;
}

.main-lettrer{
	letter-spacing: 0.05em;
	line-height: 2em;
	font-size: 21px;
	text-align: left;
	font-family: "SawarabiGothic", sans-serif;
  	font-weight: 400;
  	font-style: normal;
	
}
h1{
  font-size: 25px;
  text-align: center;
  text-align-last: center;
  font-family: "SawarabiGothic", sans-serif;
    font-weight: 600;
    font-style: normal;
}
@media (width < 800px){
  .lead-lettrer{
  letter-spacing: 0.05em;
  line-height: 1.5em;
  font-size: 18px;
  text-align: center;
  text-align-last: center;
  font-family: "SawarabiGothic", sans-serif;
    font-weight: 450;
    font-style: normal;
  }
  .main-lettrer{
  letter-spacing: 0.05em;
  line-height: 2em;
  font-size: 14px;
  text-align: left;
  font-family: "SawarabiGothic", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  h1{
  font-size: 20px;
  text-align: center;
  text-align-last: center;
  font-family: "SawarabiGothic", sans-serif;
    font-weight: 600;
    font-style: normal;
  }
}
p{
  margin-top: -0.5em;
}


/* -------------------------
   ボックス全体の設定
------------------------- */

/*横並びの箱*/
.btn-image {
  position: relative;
  display: inline-block;
  width: 76%%;
  height: auto;
  overflow: hidden;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s; /* 影のアニメーション追加 */
}
/* 画像本体 */
.btn-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}
.btn-image:hover {
  transform: scale(1.02);               /* 少し拡大 */
  box-shadow: 0 20px 40px rgba(0,0,0,0.1); /* 下に影 */
}

.bigbox{
  position: relative;
  display : flex;
  justify-content: center;
  padding-left: 12%;
  padding-right: 12%;
  padding-bottom: 2%;
}

@media (max-width:800px) {
  .bigbox{
  position: relative;
  display : flex;
  justify-content: center;
  width: 96%;
  margin-left: 2%;
  margin-right: 2%;
  padding: 2%;
  }
}
.wrap {
  position: relative;
  display : flex;
  flex-wrap: wrap;
  width:76%;
  text-align: center;
  margin-inline: auto;
}

.box-l {
  position: relative;
  width: 45%;
  padding-top:5%;
  padding-right: 5%;
  padding-bottom: 5%;
}
.box-r {
  width: 45%;
  padding-top:5%;
  padding-left: 5%;
  padding-bottom: 5%;
}

@media (width<800px) {
  .wrap {
  box-sizing: border-box;
  width:100%;
  margin-left: 2%;
  margin-right: 2%;
  }
  .box-l {
    width: 96%;
    padding: 2%;
    margin-top: 4vw;
  }
  .box-r {
    width: 96%;
    padding: 2%;
    margin-top: 4vw;
  }
}

.btn-label {
  position: absolute;
  color: #fff;
  padding: 4px 8px;
  font-family: "SawarabiGothic", sans-serif;
    font-weight: bold;
    font-size: 16px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7); 
}

/* 画像ごとの文字位置調整 */
.btn-large .btn-label {
  top: 8px;
  left: 50%;
  margin-left: -108.45px;
  font-size: 1.4rem;
}

.btn-medium .btn-label {
  top: 6px;
  left: 10px;
  font-size: 1.1rem;
}
@media (width<800px) {
  .btn-large .btn-label {
  top: 10px;
  left: 10px;
  margin-left: 0px;
  font-size: 1.2rem;
  }
}



/*ボタン*/
.pst {
  display: inline-block;
  width: 13vw;
  height: auto;
  aspect-ratio: 3 / 1; /* 画像比率に合わせると便利 */
  background: url("../image/arrow01.webp") no-repeat center / contain;
  transition: background-image 0.3s ease;
  align-self: flex-end; /* 右寄せ */
}

.pst:hover {
  background-image: url("../image/arrow02.webp");
}

.pagetop {
  position: fixed;
  bottom: 3vw;
  right: 10px;
  display: block;
  width: 50px;
  aspect-ratio: 1 / 1; /* 正方形アイコン */
  background: url("../image/ue01.svg") no-repeat center / contain;
  transition: background-image 0.3s ease;
  z-index: 1000;
}

.pagetop:hover {
  background-image: url("../image/ue02.svg");
}

/* スマホサイズ */
@media (width < 800px) {
  .pagetop {
    width: 25px;
  }
}

.footer {
  background-image: url("../image/footer.webp"); /* 背景画像のパス */
  background-size: cover;       /* 全体に広げる */
  background-position: top center;  /* 画像を中央寄せ */
  background-repeat: no-repeat; /* 画像を繰り返さない */
  padding: 350px 12% 80px 12%;
  margin-top: 150px;
  margin-left: -8px;
  margin-right: -8px;
  margin-bottom: -12px;
}
.footer img{
  width: 100%;
  height: 100%;
  display: block;
}

.footer-text{
  color: #ffffff;                  /* テキストを見やすく白にする */
  padding-left: 12%; 
  padding-right: 12%;  
  padding-bottom: 0%;           /* 上下に余白 */
  margin-bottom: 0%;

  text-align: left;           /* 中央揃え（任意） */
  font-family: "SawarabiGothic", sans-serif;
    font-weight: 380;
    font-size: 14px;
}

@media screen and (max-width: 768px) {
  .footer {
    padding: 300px 8% 50px 8%;  /* スマホ向けに余白を狭める */
  }

  .footer-text p {
    font-size: 14px;   /* 文字を小さくして収まりを良くする */
  }
}

@media screen and (max-width: 480px) {
  .footer {
    padding: 200px 5% 50px 5%;
  }

  .footer-text p {
    font-size: 12px;
  }
}



.footer2{
  background-image: url("../image/footer.webp"); /* 背景画像のパス */
  background-size: cover;       /* 全体に広げる */
  background-position: top center;  /* 画像を中央寄せ */
  background-repeat: no-repeat; /* 画像を繰り返さない */
  padding: 350px 12% 80px 12%;
  margin-left: -8px;
  margin-right: -8px;
  margin-bottom: -12px;
}
.footer2 img{
  width: 100%;
  height: 100%;
  display: block;
}

@media screen and (max-width: 768px) {
  .footer2 {
    padding: 150px 8% 50px 8%;  /* スマホ向けに余白を狭める */
  }
}

@media screen and (max-width: 480px) {
  .footer2 {
    padding: 100px 5% 50px 5%;
  }
}