@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;
}
/* ---------- コンテンツ ---------- */
.contents {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* ---------- 左写真カルーセル ---------- */
.left-photo-wrapper, .left-photo {
    position: relative;
    width: 50%;
    height: calc(100vh - 80px);
    overflow: hidden;
    top: 80px;
    object-fit: cover;
}

.left-photo img.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.left-photo img.slide.active {
    display: block;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.7);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

/* ---------- 右記事 ---------- */

.back-btn{
    height: 30px;
}
.flower-article {
    width: 50%;
    height: calc(100vh - 80px);
    padding-left: 150px;
    padding-right: 87px;
    padding-top: 20px;
    overflow: auto;
    text-align: left;
    box-sizing: border-box;
    background-color: white;
    top: 80px;
    position: relative;
}
.retrun{
    float: right;
}

/* おすすめ画像+テキスト */
.osusume-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.osusume {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.text p {
    line-height: 2.4;
}

.back-btn{
    color:black;
}

/* ---------- タブ ---------- */
.plant-tabs {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.tab-btn {
    padding: 10px 20px;
    cursor: pointer;
    background: #eee;
    border: none;
    border-radius: 5px;
}

.tab-btn.active {
    background: #8d8a4f;
    color: white;
}

.plant-detail {
    display: none;
}

.plant-detail.active {
    display: block;
}

.plant-detail img{
    height: 400px;
    padding-top: 10px;
}
/* ---------- メディアクエリ ---------- */
@media screen and (max-width: 768px) {
    .logo_img, .logo_name1 {
        height: 60px;
        position: static;
        margin: 10px 10px;
    }

    .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;   
    }
    #header-menu li {
    width: 100%;
    border-bottom: 1px solid #ccc;
    }

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

    .left-photo {
        width: 100%;
        height: 300px;
        top: 80px;
        position: sticky;
    }

    .left-photo img {
        position: relative;
        width: 100%;
        height: 300px;
    }
    .plant-tabs{
        width: 300px;
    }

    .plant-detail img{
        width: 95%;
    }

    .flower-article {
        width: 100%;
        height: auto;
        padding-right: 0px;
        right: 0;
        padding-left: 10px;
    }

    .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; }
    
    .tab-btn.active { background-color: #706c38; color: white; }
}




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


}