@charset "UTF-8";

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Zen Kaku Gothic New", "M PLUS Rounded 1c", sans-serif;
    font-size: 1.25rem;
    background-color: #3A7D44;
    color: #695418;
    overflow-x: hidden;
}

/* Navigation Bar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fdf5dc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  width: 60px;
  height: auto;
  cursor: pointer;
  display: block;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.nav-logo a {
  font-size: 1.6rem;
  font-weight: 800;
  color: #3c6e47;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease, transform 0.3s ease;
}

.nav-logo a:hover {
  color: #DE5A5A;
  transform: scale(1.1);
}

.nav-icon {
  cursor: pointer;
}

.nav-icon:hover {
  transform: scale(1.1);
}

/* Sidebar */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    right: 0;
    background-color: #2d3748;
    overflow-x: hidden;
    transition: width 0.4s ease;
    padding-top: 80px;
    z-index: 2000;
    box-shadow: -3px 0 8px rgba(0, 0, 0, 0.3);
}

.sidebar a {
    padding: 1.5rem 2rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    display: block;
    transition: background 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar a:hover {
    background: #4e7c50;
    color: #fff;
}

.sidebar .closebtn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}

/* Overlay (background blur) */
.overlay {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1500;
}

img {
    vertical-align: bottom;
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
}

:root {
    --white: #F8F5E9;
    --green: #3A7D44;
    --accent1: #DE5A5A;
}

/***header***/
header {
    background-color: pink;
}


/***body***/
.herb-list-hero {
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero-deco {
    position: absolute;
    width: 40%;
    max-width: 600px;
    z-index: -1;
}

.hero-deco:nth-child(1) {
    top: 40px;
    right: 0;
}

.hero-deco:nth-child(2) {
    left: 0;
    bottom: 40px;
    rotate: 180deg;
}

.title-area {
    color: var(--white);
}

.search {
    position: relative;
    margin-top: 65px;
}

.sect-title {
    padding-top: 65px;
    font-size: 2.125rem;
    text-align: center;
}

.search-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sect-sub-title {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 65px;
    font-weight: bold;
}

#searchInput {
    border: 3px #1E4624 solid;
    background-color: var(--white);
    padding: 6px 1rem 7px 75px;
    width: 100%;
    border-radius: 30px;
    font-size: 1.625rem;
}

.search-icon {
    position: absolute;
    left: 40px;
    top: 50%;
    translate: 0 -50%;
}

#filterChips {
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 18px;
    padding-bottom: 25px;
}

#filterChips button {
    background-color: var(--accent1);
    padding: 18px 24px;
    position: relative;
    color: #fff;
    font-weight: bold;
    margin-right: 10px;
}

#filterChips button::before {
    position: absolute;
    content: "";
    background: inherit;
    width: 10px;
    height: 100%;
    top: 0;
    right: 0;
    translate: calc(100% - 1px) 0;
    clip-path: polygon(0% 0%, 1px 0%, 100% 50%, 1px 100%, 0% 100%);
}

#filterChips button.selected {
    translate: -2px -4px;
    background-color: #fff;
    color: var(--accent1);
    filter: drop-shadow(2px 4px 0px var(--accent1));
}

/***herbListGrid***/
#herbListGrid {
    display: flex;
    flex-wrap: wrap;
    /* column-gap: 30px; */

    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    /* 背景が繰り返されるように最小高さを設定 */
}

#herbListGrid::after {
    content: "";
    width: 100%;
    height: 45px;
}

.bottle-top {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.bottle-cap {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: all 0.2s;
}

.herb-bottle {
    position: relative;
    max-width: 400px;
    transform-origin: center;
    margin: 95px 15px 0;
    cursor: pointer;
}

/* hover-animation */
.herb-bottle:hover .bottle-cap {
    translate: 0 -70px;
}


.bottle-inner {
    position: absolute;
    width: 60%;
    height: 68%;
    top: 25%;
    left: 20%;
    overflow-y: auto;
    z-index: 3;
}

.herb-name {
    font-size: 2.125rem;
    margin-bottom: 5px;
    font-weight: normal;
}

.herb-img {
    display: block;
    width: 80%;
    margin: 0 auto;
    max-height: 45%;
    object-fit: contain;
}

.bottle-text {
    margin-bottom: 35px;
}

.readmore {
    color: #fff;
    background-color: var(--accent1);
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: bold;
    width: fit-content;
    margin: auto 0 auto auto;
    font-weight: bold;
}

.readmore-arrow {
    vertical-align: middle;
    width: 28px;
    margin-left: 5px;
}

.white-guy-lie{

}
.white-guy-lie img{
    width:45%;
    display: block;
    margin:auto 10% 20px auto;
}



/***footer***/
#footer {
    background-color: var(--white);
    padding: 40px 0 35px;
}

.footer-content {
    margin-bottom: 5px;
}

.link-button {
    color: #fff;
    background-color: var(--accent1);
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: bold;
    width: fit-content;
    font-size: 1.125rem;
    font-weight: bold;
    display: block;
    box-sizing: content-box;
}

.link-button img {
    height: 1.2em;
    vertical-align: middle;
    margin-left: 2px;
}

.wdc-logo {
    width: 45px;
}

.wdc-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.copy {
    font-size: 1.125rem;
    text-align: center;
}

/*responsive*/
@media screen and (max-width:768px) {
    .hero-deco {
        width: 60%;
    }

    .herb-name {
        font-size: 1.25rem;
    }

    .bottle-text {
        margin-bottom: 12px;
    }

    #searchInput {
        padding: 10px 1rem 10px 60px;
    }

    .search-icon {
        left: 30px;
    }

    #filterChips {
        row-gap: 14px;
        column-gap: 10px;
    }

    #filterChips button {
        padding: 14px 20px;
    }

    .herb-bottle {
        max-width: 350px;
    }

    .white-guy-lie img{
        width:65%;
    }
}