@charset "UTF-8";
html, body, ul, ol, li { 
  font-family:"Noto Serif JP", serif; /* フォントファミリー*/
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}
/* ヘッダー　*/
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;
}

/*アニメ*/
.container{
  width: 100%;
  height:700px; 
  background-position: center;
  object-fit: cover;
  position: relative;
  overflow: hidden;
}
#head_meg{
  width: 100%;
  height:700px; 
  object-fit: cover;
}
.text-animation {
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 10;
    font-size: 1.8em;
    color: white;
}
.char {
    display: flex;
    writing-mode: horizontal-tb;
    text-orientation: upright;
    white-space: nowrap;
    gap: 0.5em;
}
.char span {
    display: inline-block;
    opacity: 0;
    animation: fadeInFromBottom 1s ease forwards;
}
/* animation-delay を使って、各文字の出現タイミングをずらす */
.char span:nth-child(1) { animation-delay: 0.0s; } 
.char span:nth-child(2) { animation-delay: 0.1s; }
.char span:nth-child(3) { animation-delay: 0.2s; }
.char span:nth-child(4) { animation-delay: 0.3s; }
.char span:nth-child(5) { animation-delay: 0.4s; }
.char span:nth-child(6) { animation-delay: 0.5s; }
.char span:nth-child(7) { animation-delay: 0.6s; }
.char span:nth-child(8) { animation-delay: 0.7s; }
.char span:nth-child(9) { animation-delay: 0.8s; }
/*アニメ*/

/* タイトル */
h3{
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 5em;
}
.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;
  margin-left: 0.8em;
}
.sub-title{
  font-size: 1em;
  writing-mode: vertical-rl;
  display: inline-block;
  padding: 0.5em;
  white-space: nowrap;
}
/* タイトル */


/* タイトル枠 */
.head-border {
  color: #444;
  font-size: 1.8em;
  display: flex;
  align-items: center;
  padding-top: 1em;
}
.head-border::after {
  margin-left: 0.4em;
  background: linear-gradient(90deg, #888, transparent);
}
.head-border::before {
  margin-right: 0.4em;
  background: linear-gradient(90deg, transparent, #888);
}
.head-border::before, .head-border::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  display: block;
}
/* タイトル枠*/


#main{
  text-align: center;
  margin: 0 auto;
  align-items:center;
  display: flex;
  flex-direction: column;
}
.greenbg{
  background-color: #d4d18fcc; 
  width: 100%;
  z-index: -100;
  align-items:center;
  display: flex;
  flex-direction: column;
}
article{
  max-width: 960px;
  width: 100%;
}
p{
  text-align: center;
}
.img{
  height: auto;
  width: 80%;
  margin-bottom: 3em;
  margin-left: auto;
  margin-right: auto;
}


/* フッター*/ 
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;
  object-fit: cover;
}
.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;
}
/* フッター*/

/* アニメのキーフレーム定義 */
@keyframes fadeInFromBottom {
  0% {
      opacity: 0;
      transform: translateX(-50%);
  }
  100% {
      opacity: 1;
      transform: translateX(0);
  }
}
/* アニメのキーフレーム定義 */

/* ナビレスポンス*/
/*@media screen and (max-width: 768px) {
  .logo_img{
    height: 60px;
    position: static;
    margin: 10px 10px;
  }
  #menu-toggle {
    display: block;
  }
  #header-menu {
    display: none;
    flex-direction: column;
    background-color: #706c38CC;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 0;
    display: none;
    flex-direction: column;
    animation-fill-mode: forwards;
    margin: 0px;
  }
  #header-menu.show{
    display: flex;
  }
  @keyframes slide_down_menu2{
    0%{top: -80%;}
    100%{top: 9%;}
  }
  @keyframes slide_up_menu {
    0% {
      top: 80px;
      opacity: 1;
    }
    100% {
      top: -100%;
      opacity: 0;
    }
  }
  #header-menu.show {
    display: flex;
  }
  #header-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #ccc;
  }
  #header-menu li .a1 {
    line-height: 50px;
    font-size: 16px;
    color: white;
  }
  .nav1 ul {
    flex-direction: column;
    align-items: center;
    height: auto;
  }
  .nav1 ul li {
    width: 100%;
    text-align: center;
    background-color: #706c38CC;
    border-bottom: 1px solid #ccc;
  }
  .nav1 ul li .a1 {
    width: 100%;
    line-height: 50px;
    font-size: 16px;
    color: darkred;
  }
  /* ナビレスポンス*/

  /* アニメレスポンス*/
  /*.container{
  height: 500px;
  }
  #head_meg{
    height: 350px;
    margin-top: 79.4px;
  }
  /* アニメレスポンス*/
/*}*/



@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;
  }


}