/* 共通 */
html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Zen Kaku Gothic New', sans-serif;

    /* background-color: #fffff9; */
    color: #787878;
    background-image: url("../img/wagara.jpg");
    background-repeat: repeat;
    background-size: 100% auto;
    background-position: center top;
    background-attachment: fixed;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

h1,
h2,
h3,
h4,
.hero-overlay p {
    font-family: 'Zen Maru Gothic', sans-serif;
}

/* ヘッダー */
.top-visual {
    position: relative;
    width: 100%;
    height: 100vh; 
    overflow: hidden;
  }

  .top-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-logo {
    position: absolute;
    top: 3%;
    left: 2%;
    width: 50px;
    z-index: 1000000;
}

.nav {
    margin-top: 0;
    position: absolute;
    top: 3%;
    right: 2%;
    z-index: 100000;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav a {
    color: #c79d6d;
    text-decoration: none;
    font-size: 1rem;
    /* text-shadow: 0 0 3px rgba(0, 0, 0, 0.5); */
    white-space: nowrap;
}

.nav img {
    width: 30px;
}

.nav img:hover {
    transform: scale(1.3);
}

.nav a:hover {
    color: #fff;
    font-size: 1.05rem;
}

.vertical-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* writing-mode: vertical-rl; */
    font-size: 3rem;
    color: #fff;
    letter-spacing: 0.2em;
    margin-top: 20px;
    letter-spacing: 0.2em;
    line-height: 1.6;
    text-shadow: #fc0 1px 0 10px;
}

/* 固定nav  */
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0.6rem 0;
    /* background-color: #c79d6d; */
    background-color: rgba(199, 157, 109, 0.9);
    backdrop-filter: blur(6px);
    z-index: 10002;
    pointer-events: none;
    transform: translateY(-100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fixed-nav.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.fixed-nav ul {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
}

.fixed-nav li a {
    display: block;
    font-size: 1rem;
    color: #fff;
    padding: 1rem 1.2rem;
    white-space: nowrap;
    position: relative;
    transition: color 0.3s ease;
}

.fixed-nav li a::after {
    content: "";
    position: absolute;
    bottom: 0.6rem;
    left: 20%;
    width: 60%;
    height: 2px;
    opacity: 0.5;
    background-color: #678032;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.fixed-nav li a:hover::after {
    transform: scaleX(1);
}

.fixed-nav img {
    width: 20px;
}

/* ******************************************** */
.about-section {
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    margin: 100px auto;
    width: 90%;
}


.about-heading h3{
    color: #c79d6d;
    text-align: center;
}

/* .about-text {
    line-height: 1.7;
} */

.about-container {
    max-width: 1000px;
    margin: 100px auto;
    display: flex;
    align-items: center;
    gap: 30px;
    width: 90%;
}

.about-images {
    position: relative;
}
.fadein-text1 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fadein-text1.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.about-heading h2 {
    font-size: 2rem;
    color: #678032;
    text-align: center;
}

.about-img01 {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.about-img02 {
    position: absolute;
    bottom: -100px;
    z-index: 2;
}

.about-message {
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    justify-content: center;
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
    padding: 100px 0;
    gap: 80px;
}

/* .about-text01 p { */
    /* flex: 1; */
    /* color: #c79d6d; */
    /* line-height: 1.7; */
    /* max-width: 600px; */
/* } */

.about-img img {
    max-width: 400px;
    width: 100%;
    height: 500px;
    border-radius: 10px;
    object-fit: cover;
}
.about-img2 img {
    max-width: 400px;
    width: 100%;
    height: 500px;
    border-radius: 10px;
    object-fit: cover;
}
.about-text01 img{
    border-radius: 10px;
}
.about-store {
    max-width: 1000px;
    margin: 0px auto;
    width: 90%;
}

.about-store img {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    border-radius: 10px;
    height: auto;
    display: block;
}

.about-store-text {
    /* color: #c79d6d; */
    text-align: center;
    /* line-height: 1.7; */
    margin-top: 50px;
}


.about-farmer {
    max-width: 1000px;
    margin: 100px auto;
    width: 90%;
}

.about-farmer {
    max-width: 1000px;
    margin: 100px auto;
    width: 90%;
    border-radius: 10px;
}

.section-title  {
    font-size: 2rem;
    color: #678032;
    text-align: center;
    margin-bottom: 50px;
}

.farmer-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.farmer-text {
    flex: 1;
    text-align: left;
    /* color: #c79d6d; */
    /* line-height: 1.7; */
}

.farmer-image {
    flex: 1;
    min-width: 500px;
    text-align: center;
}

.farmer-image img {
    /* width: 100%;
    max-width: 300px; */
    width: 500px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.farmer-block.reverse {
    flex-direction: row-reverse;
}
.fadein-textright {
    opacity: 0;
    transform: translateX(30px);
    transition: all 1s ease-out;
}

.fadein-textright.is-visible {
    opacity: 1;
    transform: translateX(0);
}
.fadein-textleft {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 1s ease-out;
}

.fadein-textleft.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.about-no_additives {
    max-width: 1000px;
    margin: 100px auto;
    width: 90%;
    text-align: center;
}

.about-no_additives p {
    margin-top: 50px;
    /* line-height: 1.7; */
}


/* フェードイン */
.no_additives-item-wrapper {
    display: flex;
    justify-content: flex-start;
    margin: 60px 0;
}

.no_additives-item-wrapper.right {
    justify-content: flex-end;
}

.no_additives-item {
    opacity: 0;
    transition: all 0.8s ease;
    max-width: 600px;
    width: 100%;
    border-radius: 10px;
    transform: translateX(0);
}

.no_additives-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.fade-in {
    opacity: 1;
    transform: translateX(0);
}


/* トップへ戻る */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 60px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
}


/* インスタグラム */
.instagram_icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.musubi-logo {
    margin: 10px auto;
}

.musubi-logo img {
    display: block;
    width: 800px;
    margin: 0 auto;
}

.musubi-logo h1 {
    font-size: 1.5rem;
    color: #678032;
}

.musubi-logo h2 {
    font-size: 1rem;
    color: #A67C52;
}

.instagram_icon h1:hover,
.instagram_icon h2:hover {
    color: #678032;
    opacity: 0.8;
}

.instagram_icon a img {
    width: 50px;
    transition: transform 0.3s;
}

.instagram_icon a img:hover {
    transform: scale(1.3);
}


/* フッター */
.footer-wrapper {
    display: flex;
    flex-wrap: wrap;
    /* justify-content: space-around; */
    justify-content: center;
    align-items: center;
    margin: 50px auto;
    width: 900px;
    gap: 80px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.footer-info h3{
    color: #A67C52;
}

.contact-button {
    display: inline-block;
    background: none;
    border: 1px solid #a67c52;
    padding: 8px 20px;
    margin: 5px;
    border-radius: 30px;
    color: #a67c52;
    text-decoration: none;
    transition: 0.3s;
}

.contact-button:hover {
    background-color: #a67c52;
    color: #fff;
}

small {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .hamburger {
        position: fixed;
        top: 25px;
        right: 32px;
        cursor: pointer;
        width: 32px;
        height: 24px;
        z-index: 10001;
    }

    .hamburger span {
        position: absolute;
        height: 2px;
        background-color: #c79d6d;
        width: 100%;
        transition: all 0.3s;
    }

    .hamburger span:nth-of-type(1) {
        /*上の線の位置*/
        top: 4px;
    }

    .hamburger span:nth-of-type(2) {
        /*真ん中の線の位置*/
        top: 12px;
    }

    .hamburger span:nth-of-type(3) {
        /*下の線の位置*/
        top: 20px;
    }

    /* 開いたときのアニメーション */
    .hamburger.open span:nth-of-type(1) {
        transform: rotate(45deg);
        top: 12px;
    }

    .hamburger.open span:nth-of-type(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-of-type(3) {
        transform: rotate(-45deg);
        top: 12px;
    }

    #nav-menu {
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #fdfcf4;
        z-index: 999;
        padding-top: 80px;
        text-align: center;
    }

    #nav-menu.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    #nav-menu ul {
        margin: 0;
        list-style: none;
        padding-bottom: 80px;
    }

    #nav-menu li {
        margin: 20px 0;
    }

    #nav-menu a {
        text-decoration: none;
        color: #c79d6d;
        font-size: 1.2rem;
    }

    #nav-menu a:hover {
        color: #678032;
        /* text-shadow: 0 0 5px rgba(216, 216, 216, 0.9); */
        opacity: 0.8;
        transition: opacity 0.3s ease;
    }

    .nav,
    .fixed-nav {
        display: none;
    }

    .vertical-title {
        writing-mode: horizontal-tb;
        font-size: 2rem;
        top: 50%;
        width: 80%;
        padding-left: 1.5rem;
        line-height: 1.4;
    }


    .nav-instagram-icon {
        width: 24px !important;
        height: auto !important;
        vertical-align: middle;
        margin-right: 8px;
    }

    .fixed-nav {
        display: none !important;
    }

    .fixed-nav ul {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .fixed-nav li a {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .about-section,
    .about-container,
    .about-message,
    .about-store,
    .about-farmer,
    .about-no_additives {
        flex-direction: column;
        text-align: center;
        margin: 100px auto;
        gap: 30px;
    }

    .about-text p,
    .about-text01 p{
        font-size: 0.9rem;
    }
    .about-store-text p {
        font-size: 0.75rem;
        width: 100%;
    }
    /* .about-images{
    } */

    .about-img02 {
        position: relative;
        bottom: 39px;
    }

    .about-message {
        padding-top: 0;
        padding-bottom: 0;
        flex-direction: column-reverse;
    }

    .about-img img {
        height: auto;
        width: 70%;
        transform: translateX(50px);
        
    }
    .about-img2 img {
        height: auto;
        width: 100%;
        border-radius: 10px;
        
    }
    .about-text01 img{
        width: 70%;
        transform: translateX(-50px);
    }
    .section-title{
        font-size: 1.5rem;
    }
    .farmer-image img {
        width: 100%;
        max-width: 600px;
        height: auto;
        border-radius: 10px;
        object-fit: cover;
        display: block;
        margin: 0 auto;
    }
    
    .farmer-image {
        width: 100%;
        min-width: unset; /* ← ここが重要 */
        text-align: center;
    }
    
    .farmer-block {
        flex-direction: column;
        align-items: center;
    }

    .farmer-block.reverse{
        flex-direction: column;
        align-items: center;
    }

    .farmer-text {
        width: 100%;
        text-align: left;
        margin-top: 20px;
    }
    #farmer-text{
        text-align: center;
        border-bottom: solid 1px;
        display: block;
        margin-bottom: 1rem;
    }
    .farmer-text {
        width: 100%;
        text-align: left;
        margin-top: 20px;
    }
    #section-title{
        width: 100%;
        font-size: 0.75rem;
    }

    /* フッター */
footer {
    overflow-x: hidden;
}

.footer-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    gap: 10px;
}

.footer-info,
.footer-contact {
    text-align: center;
    align-items: center;
}

.footer-info h3 {
    color: #A67C52;
    font-size: 1.3rem;
    font-weight: bolder;
}

.footer-info p {
    margin-top: 10px;
    font-size: 0.9rem;
}

.footer-contact {
    align-items: center;
    margin-top: 30px;
}

.footer-contact a {
    white-space: nowrap;
    font-size: 1rem;
}

.contact-button {
    width: 100%;
    max-width: 280px;
    margin: 5px auto;
    text-align: center;
}
}

@media screen and (min-width: 769px) {
    #hamburger,
    #nav-menu {
        display: none;
    }
}


@media screen and (max-width: 1024px) and (orientation: landscape) {
    #asagohan_footer .asagohan_footer_logo img {
        width: 20% !important;
        transform: translate(0%, -220%) !important;
    }

    #nav-menu {
        overflow-y: auto;
        max-height: 100vh;
    }
}