@font-face {
  font-family: 'KouzanMouhitu';
  src: url('./assets/fonts/KouzanMouhituFontOTF.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
p {
  font-family: "Zen Old Mincho", serif;
  font-style: normal;
}
div {
  font-family: "Zen Old Mincho", serif;
  font-style: normal;
}
a {
  color: #000000;
  text-decoration: none;
}
a:hover {
  opacity: 0.6;
}

img {
  object-fit: cover;
  object-position: center center;
  width: 100%;
}
@font-face {
  font-family: "hannari"; /*任意のフォントファミリー名でOK*/
  src: url("./fonts/hannari/HannariMincho-Regular.otf") format("opentype"); /*fontがあるパスを書いて、formatを指定*/
  font-display: swap; /*ダウンロード状況に応じてフォントの表示を変える
(「swap」はWebフォントが読み込まれるまでフォールバックフォントで表示し、読み込まれた時点で置き換えます。)*/
}
.bg_img {
  background-image: url(/img/bg01.jpg);
  background-size: cover;
  margin-top: 120px;
}
.top_text {
  padding: 0px 20px 20px;
}
.top_text_inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 100px 40px;
  background-color: #fff;
  border: 7px double #a4c3b2;
}
.top_text_title {
  font-size: 38px;
  margin-bottom: 40px;
  letter-spacing: 0.3em;
  line-height: 1.35;
}
.top {
  height: 100%;
}
.top_bg {
  margin: 0 auto;
}
.top_img {
  height: 420px;
  position: relative;
}
.top_img img{
  object-fit: cover;
  object-position: center center;
  width: 100%;
  object-fit: cover;
  height: 420px;
}
.top_hyougo {
  background: url('../img/hyougo_bg.png');
  background-size: cover;
  padding: 40px 40px;
  width: 100%;
  height: 375px;
  writing-mode: vertical-rl;
}
.top_hyougo_title {
  font-size: 35px;
  padding-right: 10%;
  padding-top: 50px;
  font-weight: bold;
  display: block;
}
.top_hyougo_text {
  margin-right: 300px;
}
.top_hyougo_text1 {
  font-size: 50px;
  font-weight: bold;
  margin-left: 25px;
  color: #E94709;
  height: auto;
  padding-top: 35px;
  font-family: "Yuji Syuku", serif;
}
.top_hyougo_text2 {
  font-size: 40px;
  line-height: 1.6;
  font-weight: 300;
  height: auto;
  font-family: "Yuji Syuku", serif;
  color: #3e3e3e
}
.top_hyougo_text1:nth-child(n+1) {
  margin-right: 30px;
}
.banner_inner {
  max-width: 1200px;
  margin: 0 auto;
}
.banner_item:nth-of-type(n+1) {
  margin-top: 25px;
}
/* 最初は透明で下に隠しておく */
.banner_item {
  opacity: 0;
  transform: translateY(50px); /* 下から50pxに配置 */
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* アニメーションが起きたときのスタイル */
.banner_item.visible {
  opacity: 1;
  transform: translateY(0); /* 元の位置に戻す */
}
.message_inner {
  display: flex;
  justify-content: space-between;
  height: 500px;
}
.message_img {
  width: 45%;
}
.message_text {
  width: 48%;
  line-height: 2.2;
  padding: 10px;
  background-color: #fff;
  padding: 30px;
  border: 1px solid #a4c3b2;
  box-shadow: 10px 10px 1px #a4c3b2;
}
.message_img {
  opacity: 0;
  transform: translateX(-150px); 
  transition: opacity 1s ease, transform 0.6s ease;
  padding: 1px 1px 1px 1px;
  box-shadow: 5px 5px 3px #bbbbbb;
  background: #000000;
}
.message_img img {
  padding: 10px 10px;
  background: #fff;
}

.message_text {
  opacity: 0;
  transform: translateX(150px); 
  transition: opacity 1s ease, transform 0.6s ease;
}

/* message_imgは画面内に入ると右にスライドして表示 */
.message_img.visible {
  opacity: 1;
  transform: translateX(0); /* 元の位置に戻す */
}

/* message_textは画面内に入ると左にスライドして表示 */
.message_text.visible {
  opacity: 1;
  transform: translateX(0); /* 元の位置に戻す */
}

.message_name {
  float: right;
}
.temple_inner {
  display: flex;
  justify-content: space-between;
}
.temple_img {
  max-width: 560px;
  object-fit: contain;
  padding: 1px 1px 1px 1px;
  box-shadow: 5px 5px 3px #bbbbbb;
  background: #000000;
}
.temple_img img {
  padding: 10px 10px;
  background: #fff;
}
.temple_lead {
  display: flex;
  flex-wrap: wrap;
  max-width: 600px;
  max-height: 600px;
  background-color: #fff;
  padding: 20px 40px 50px;
  border: 1px solid #a4c3b2;
  box-shadow: 10px 10px 1px #a4c3b2;
}
.temple_lead_title {
  display: flex;
  align-items: center;
  width: 180px;
  font-weight: bold;
  line-height: 1.6;
  padding: 30px 0;
  border-bottom: 1px solid #009655;
}
.temple_lead_text {
  display: flex;
  align-items: center;
  width: calc(100% - 180px);
  line-height: 1.6;
  padding: 20px 0;
  border-bottom: 1px solid #CCD3D3;
}
/* 最初は両要素とも画面外に配置 */
.temple_img, .temple_lead_inner {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* temple_imgは画面内に入ると右にスライドして表示 */
.temple_img {
  height: 500px;
  width: 100%;
  object-fit: cover;
  transform: translateX(-150px); /* 左に150pxオフセット */
}
.temple_img img {
  height: 500px;
}
.temple_img.visible {
  height: 500px;
  opacity: 1;
  transform: translateX(0); /* 元の位置に戻す */
}
/* temple_lead_innerは画面内に入ると左にスライドして表示 */
.temple_lead_inner {
  transform: translateX(150px); /* 右に150pxオフセット */
}

.temple_lead_inner.visible {
  opacity: 1;
  transform: translateX(0); /* 元の位置に戻す */
}
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 20px 0;
}
.section_title {
  font-size: 40px;
  font-weight: bold;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 60px;
  font-family: "Zen Old Mincho", serif;
  font-style: normal;
}
.parking {
  padding-top: 80px;
  max-width: 1000px;
  margin: 0 auto;
}
.parking_text {
  font-size: 20px;
  text-align: center;
  width: 70%;
  margin: 0 auto;
  line-height: 1.6;
}
.parking_img {
  width: 100%;
  height: 400px;
  margin: 60px auto 0;
  padding: 1px 1px 1px 1px;
  box-shadow: 5px 5px 3px #bbbbbb;
  background: #000000;
}
.parking_img img {
  padding: 10px 10px;
  background: #fff;
} 
.contact {
  padding-bottom: 60px;
}

@media (max-width: 1280px) {
  .top_txt_inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 100px 40px;
    background-color: #fff;
    border: 7px double #a4c3b2;
  }
  .banner_inner {
    max-width: 1000px;
    margin: 0 auto;
  }
  .temple_img {
    max-width: 500px;
  }
  .temple_lead {
    display: flex;
    flex-wrap: wrap;
    max-width: 500px;
    background-color: #fff;
    padding: 20px 30px 40px;
    border: 1px solid #a4c3b2;
    box-shadow: 10px 10px 1px #a4c3b2;
  }
  .section {
    max-width: 1100px;
    margin: 0 auto;
  }
}

@media (max-width: 1024px) {
  .top_hyougo {
    padding: 60px 40px 100px;
  }
  .top_text_inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 100px 40px;
    background-color: #fff;
    border: 7px double #a4c3b2;
  }
  .banner_inner {
    max-width: 800px;
    margin: 0 auto;
  }
  .message_inner {
    height: auto;
  }
  .message_text {
    width: 48%;
    font-size: 14px;
    line-height: 2.2;
    padding: 10px;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #a4c3b2;
    box-shadow: 10px 10px 1px #a4c3b2;
  }
  .temple_img {
    max-width: 387px;
  }
  .temple_lead {
    font-size: 14px;
    max-width: 400px;
    padding: 20px 20px 30px 40px;
  }
  .temple_lead_title {
    width: 150px;
    font-weight: bold;
    line-height: 1.6;
    padding: 30px 0;
    border-bottom: 1px solid #009655;
  }
  .section {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 0;
  }
}

@media (max-width: 767px) {
  .bg_img {
    margin-top: 80px;
  }
  .top_img img {
    width: 100%;
  }
  .top_hyougo {
    width: 100%;
    padding: 50px 30px;
  }
  .top_hyougo_title {
    font-size: 24px;
  }
  .top_hyougo_text {
    margin-right: 120px;
  }
  .top_hyougo_text1 {
    font-size: 30px;
  }
  .top_hyougo_text2 {
    font-size: 22px;
  }
  .top_text {
    padding: 0 20px;
  }
  .top_text2 {
    font-size: 14px;
  }
  .top_text_inner {
    max-width: 600px;
    padding: 60px 20px;
  }
  .top_text_title {
    font-size: 20px;
    margin-bottom: 30px;
    letter-spacing: 0.3em;
    line-height: 1.35;
  }
  .section {
    padding: 60px 20px 0;
  }
  .section_title {
    font-size: 30px;
    margin-bottom: 40px;
  }
  .banner_item:nth-child(n+1) {
    margin-top: 15px;
  }
  .message_inner {
    display: block;
  }
  .message_img {
    width: 70%;
    margin: 0 auto;
    height: 400px;
  }
  .message_img img{
    height: 400px;
  }
  .message_text {
    width: 90%;
    line-height: 2.2;
    padding: 10px;
    background-color: #fff;
    padding: 20px 20px 40px 20px;
    border: 1px solid #a4c3b2;
    box-shadow: 10px 10px 1px #a4c3b2;
    margin: 30px auto 0;
  }
  .message_name {
    float: right;
  }
  .sp-none {
    display: none;
  }
  .temple_inner {
    display: block;
  }
  .temple_img {
    width: 80%;
    margin: 0 auto;
    height: auto;
  }
  .temple_lead {
    max-width: 570px;
    margin: 30px auto 0;
    padding: 5px 20px 30px 20px;
  }
  .temple_lead_title {
    display: flex;
    align-items: center;
    width: 120px;
    font-weight: bold;
    line-height: 1.6;
    padding: 15px 0;
    border-bottom: 1px solid #009655;
  }
  .temple_lead_text {
    display: flex;
    align-items: center;
    width: calc(100% - 120px);
    line-height: 1.6;
    padding: 20px 0;
    border-bottom: 1px solid #CCD3D3;
  }
  /* temple_imgは画面内に入ると右にスライドして表示 */
.temple_img {
  height: 400px;
}
.temple_img img {
  height: 400px;
}
.temple_img.visible {
  height: 400px;
}
  .parking {
    padding-top: 60px; 
  }
  .parking_text {
    font-size: 18px;
    width: 80%;
  }
  .parking_img {
    height: 100%;
  }
}
/* フォーム全体のスタイル */
.wpcf7-form {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 20px 0 20px;
  border-radius: 10px;
}
.wpcf7-label-wrapper {
  margin-bottom: 10px;
  display: block;
}
.wpcf7-form label {
  display: block;
  margin-bottom: 10px; /* ラベル間の余白を40pxに設定 */
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  margin-top: 10px;
}
/* 入力フィールドのデザイン */
.wpcf7-text,
.wpcf7-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-size: 16px;
}
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select {
  background-color: #fff;
}
.wpcf7 input[type="submit"] {
  background-color: #a4c3b2;
  color: #fff; /* 白文字にすると読みやすい */
  border: none;
  width: 200px;
  padding: 12px 25px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}
/* ホバー時に少し濃くするとアクセントになります */
.wpcf7 input[type="submit"]:hover {
  background-color: #8fae9f;
}
.wpcf7-list-item {
  margin: 0 !important;
}
.wpcf7-list-item:not(:first-child) {
  margin-left: 15px !important;
}
.wpcf7-form-control-wrap {
  margin-bottom: 20px;
  display: block;
}
.submit-button {
  width: 200px;
  margin: 0 auto;
  margin-top: 50px;
  text-align: center;
}
.contact {
  padding-bottom: 60px;
}
/* チェックが入ったときのスタイル */
.wpcf7-form input[type="checkbox"]:checked {
  background-color: #a4c3b2; /* チェック時の背景色 */
  border-color: #a4c3b2; /* チェック時の枠線色 */
}
@media (max-width: 645px) {
  .top_img img {
    width: 100%;
  }
  .top_hyougo {
    padding: 40px 30px;
  }
  .top_hyougo_title {
    font-size: 24px;
  }
  .top_hyougo_text {
    margin-right: 120px;
  }
  .top_hyougo_text1 {
    font-size: 30px;
  }
  .top_hyougo_text2 {
    font-size: 22px;
  }
  .top_text {
    padding: 0 20px;
  }
  .top_text2 {
    font-size: 14px;
  }
}
@media (max-width: 500px) { 
  .bg_img {
    margin-top: 60px;
  }
  .top_hyougo {
    padding: 40px 30px;
  }
  .top_hyougo_title {
    font-size: 24px;
  }
  .top_hyougo_text {
    margin-right: 80px;
  }
  .top_hyougo_text1 {
    font-size: 26px;
  }
  .top_hyougo_text2 {
    font-size: 18px;
  }
  .top_text_inner {
    padding: 30px 15px;
  }
  .top_text_title {
    font-size: 16px;
  }
  .message_text {
    font-size: 12px;
    padding: 20px 20px 60px 20px;
  }
  .message_name {
    margin-top: 10px;
  }
  .temple_lead {
    margin: 30px 20px 0;
    font-size: 12px;
  }
  .temple_img {
    height: 300px;
  }
  .temple_img img {
    height: 300px;
  }
  .temple_img.visible {
    height: 300px;
  }
  .parking_text {
    font-size: 12px;
    width: 90%;
  }
  .parking_img {
    margin: 40px auto 0;
  }
  .wpcf7-list-item {
    display: block !important; 
    padding-bottom: 5px;
  }
  .wpcf7-list-item:not(:first-child) {
    margin-left: 0 !important;
  }
  .wpcf7-form-control-wrap {
    margin-bottom: 30px;
  }
}
@media (max-width: 450px) {  
  .top_hyougo {
    padding: 40px 30px;
  }
  .top_hyougo_title {
    font-size: 24px;
  }
}