@charset "UTF-8";
body{
  font-family:"Noto Serif JP", serif;
  width: 100%;

}

body, h1, h2, h3, h4, ul, ol, li {
  margin: 0;
  padding: 0;
}


/* ヘッダー　*/
header{
  position: fixed;
  height: 80px;
  width: 100%;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  display: flex;
  z-index: 1000;
  box-shadow: 0 0 20px 2px rgba(0, 0, 0, 0.1);
  animation: slide_down_header 0.8s cubic-bezier(0.16, 1, 0.3, 1) ;
  background-color:#706c38 ;
  transition: background-color 0.4s ease;
}

header.scrolled {
  background-color: rgba(112,108,56, 0.95);
}

@keyframes slide_down_header {
  0% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.logo_img{
  position: absolute;
  left: 0.5em;
  height: 80px;
}

#menu-toggle {
  display: none; /* PCでは非表示 */
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 25px;
  right: 20px;
  z-index: 1100;
}
#header-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.nav1 {
  position: fixed;
  width: 100%;
  height: 80px;
  justify-content: center;
  display: flex;
}
ul {
  list-style: none;
}
.a1 {
  display: block;
  width: 125px;
  padding: 0;
  line-height: 80px;
  text-align: center;
  color: white;
  text-decoration: none;
}
.a1:hover{
  box-shadow: -5px 0 20px 0 rgba(0, 0, 0, 0.4);
}
.back_img{
  position: fixed;
  z-index: 10;
  height: auto;
  width: 4em;
  bottom: 2px;
  right: 10px;
  margin: 0;
  padding: 0;
  display: flex;
}



/* 写真スライド　*/
.slide-container {
  width:100%;
  max-width: 100%;
  margin: auto;
  display: flex;
  justify-content: center; 
  align-items: center;
  height: auto;
  overflow: hidden;
  flex-direction: row;
}
.slide-wrapper {
  display: flex;
  animation: slide-flow 40s linear infinite;
  width: calc(500px * 14); /* 画像7枚 x 2回繰り返し */
}
.slide{
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  border: 1px solid #ddd;
}



@keyframes slide-flow {
  0% {transform: translateX(0);} 
  100% {transform: translateX(-100%);}
}

  
/* トップ紹介 */
h3{
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 3em;
  margin-bottom: 1em;
}
.title {
  font-size: 1.8em;
  margin: 0;
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
  padding-top: 0.7em;
  padding-bottom: 0.7em;

}
.sub-title{
  font-size: 1em;
  writing-mode: vertical-rl;
  display: inline-block;
  padding: 1em;
  white-space: nowrap;
}

h4{
  color: #444;
  font-size: 1.8em;
  display: flex;
  align-items: center;
  padding-top: 1em;
}
h4::before{
  margin-right: 0.4em;
  background: linear-gradient(90deg, transparent, #888);
}
h4::after{
  margin-left: 0.4em;
  background: linear-gradient(90deg, #888, transparent);
}
h4::before,
h4::after{
  content: "";
  flex-grow: 1;
  height: 1px;
  display: block;
}

#main{
  text-align: center;
  margin: 0 auto;
  align-items:center;
  display: flex;
  flex-direction: column;
}
article{
  max-width: 960px;
  width: 100%;
  margin-bottom: 4em; 
}
p {
  line-height: 1.8;
  color: #333;
  font-weight: 550;
  font-size: 17px;
  text-align: center;
}

.img{
  height: auto;
  width: 80%;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: auto;
  margin-right: auto;
}
h3, h4 {
  font-weight: 600;
  letter-spacing: 0.05em;
}


/* 詳しくボタン　*/
.about-button{
  justify-content: center;
  display: inline-block;
  width: 30%;
  height: 70px;
  line-height: 70px;
  padding: 0 20px;
  font-size: 16px;
  position: relative;
  color: black;
  border: solid  1px #8d8a4f;
  overflow: hidden;
  z-index: 0;
  margin: 2em;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
.about-button:hover{
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}
.about-button::before {
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #8d8a4f;/* スライドしてくる色 */
  transition: left 0.4s ease;
  z-index: -1;
}

.about-button:hover::before {
  left: 0;
}

.about-button:hover {
  color: white; /* ホバー時の文字色 */
}
.link-button{
  text-align: center;
  z-index: 10;
  position: relative;
}
a{
  text-decoration: none;
}


/* フッター*/ 
footer{
  height: auto;
  width: 100%;
  padding-top: 1em;
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  background-color: #706c38CC;  
}
#footer-top{
  width: 100%;
  height:200px; 
  background-position: center;
  object-fit: cover;
  position: relative;
  background-image: url(../images/out3after.jpeg);
}
#inner-message{
  font-size:larger;
  width: 100%;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
  margin: 0;
  font-size: 2em;
  color: white;
}
.footer-img{
  width: 100%;
  object-fit: cover;
  height: 200px;
  background-position: center;
}
.nav2{
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
}
.nav2 .ul2 {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}
.nav2 .ul2 .li2 {
  margin: 0 0.5em;
}
.li2{
  float: left;
}
.li2:hover {
  background-color: #706c38;
}
.ul2 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.logo{
  display: flex;
  height: 6em;
  width: 12em;
  margin-top: 0.5em;
}
.footer-info {
  width: 100%;
  padding: 0.5em 0;
  text-align: center;
  color: #fff;
  clear: right;
}
.footerlink{
  display: flex;
  width: 3em;
  height: 3em;
  margin: 0.5em;
}

.fadein {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}
.fadein.active {
  opacity: 1;
  transform: translateY(0);
}




@media screen and (min-width: 769px) {
  .slides {
    animation: slide-flow 18s infinite linear;
  }
  .controls {
    display: none;
  }
}


/* ーーーーーー レスポンシブ ーーーーーー */

@media screen and (max-width: 768px) {
  .logo_img{
    height: 60px;
    position: static; /* 固定解除して自然な配置に */
    margin: 10px 10px;
  }
  
  #menu-toggle {
    display: block;
    line-height: 20px;
    color:white;
  }
  header{
    background-color:  #706c38;
  }
  #header-menu {
    display: none;
    flex-direction: column;
    background-color: #706c38;
    position: fixed;
    top: 80px;                 /* ヘッダーのすぐ下 */
    right: -100%;              /* 初期は画面外の右側 */
    width: 100%;                /* メニュー幅 */
    z-index: 999;
    padding: 0;
    animation-fill-mode: forwards; /* アニメーション後の状態を維持 */
  }
  #header-menu.show{
    display: flex;
    right: 0;   
  }
  @keyframes slide_down_menu {
    0% { right: -100%; opacity: 0; }
    100% { right: 0; opacity: 1; }
  }
  @keyframes slide_up_menu {
    0% { right: 0; opacity: 1; }
    100% { right: -100%; opacity: 0; }
  }
  @keyframes slide_down_menu2{
    0%{top: -80%;}
    100%{top: 9%;}
  }

  #header-menu.show {
    display: flex;
  }
  #header-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #ccc;
  }

  #header-menu li a {
    line-height: 50px;
    font-size: 16px;
    color: white;
  }

  /* ナビゲーションのulを縦並びに */
  .nav1 ul {
    flex-direction: column;
    align-items: center;
    height: auto;
  }

  .nav1 ul li {
    width: 100%;
    text-align: center;
    background-color: #706c38;
    border-bottom: 1px solid #ccc;
  }

  .nav1 ul li .a1 {
    width: 100%;
    line-height: 50px;
    font-size: 16px;
    color: darkred;
  }

  /* スライド */
  .slide {
    max-width: 100%;
    height: auto;
  }
  .slide-wrapper {
    display: flex;
    flex-direction: row;
    animation: slide-flow 18s infinite linear 1s both;
  }


}