/* 共通 */
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;
}
/* メイン */
.fadein-text1 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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


/* お米のライン */
.rice-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
    z-index: 1;
    position: relative;
    margin-top: 80px;
}

.rice-line .line {
    flex: 1;
    height: 2px;
    background: #e4d9cc;
    opacity: 0.9;
}

.rice-img {
    width: 20px;
    height: auto;
}

.feature-section {
    max-width: 1000px;
    display: flex;
    align-items: center;
    gap: 120px;
    margin: 100px auto;
    width: 90%;
}

.feature-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-heading h2 {
    font-size: 2rem;
    color: #678032;
    /* padding-left: 120px; */
}

.feature-heading p {
    margin: 0 auto;
}

.feature-text {
    font-size: 1rem;
    line-height: 1.7;
}

.feature-text ul {
    margin: 1rem 0;
    padding-left: 1.2rem;
    list-style: disc;
}

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

.feature-img img {
    width: 300px;
    height: 220px;
    object-fit: cover;
    border-radius: 3%;
}

h4 {
    color: #678032;
}

h3 {
    color: #c79d6d;
    margin: 5px auto;
}

.feature-container-text,
h5 {
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
    padding-top: 20px;
}
strong{
    color: #ff701e;
    opacity: 0.8;
}
.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: 1rem;
        top: 50%;
        transform: translate(-50%, -50%);
        line-height: 1.4;
        white-space: nowrap;
    }


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

/* メイン */
    .feature-section {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .feature-heading {
        align-items: center;
    }

    .feature-heading h2 {
        font-size: 1.5rem;
    }

    .feature-heading p {
        margin-top: 0.2rem;
    }

    .feature-text {
        font-size: 0.9rem;
        text-align: left;
    }
    .feature-text li{
        margin-left: 5.5rem;
    }

    .feature-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .feature-img img {
        width: 90%;
        height: auto;
        border-radius: 5px;
    }

    .feature-container-text {
        font-size: 0.9rem;
        padding: 0 1rem;
        text-align: left;
    }

    .rice-line {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        width: 90%;
        margin: 40px auto;
    }

    .rice-img {
        width: 16px;
    }

    .vertical-title {
        writing-mode: horizontal-tb;
        font-size: 2rem;
        top: 50%;
        transform: translate(-50%, -50%);
        line-height: 1.4;
    }

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

    h3 {
        font-size: 1.1rem;
    }

    h4 {
        font-size: 0.9rem;
    }

    h5 {
        font-size: 0.85rem;
        margin-top: 1rem;
    }

.instagram_icon{
    margin-top: 100px;
}

    /* フッター */
    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;
  }
}