/*
Theme Name: mitizuka-farm
*/

@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    width: 100%;
    vertical-align: bottom;
}

li {
    list-style: none;
}

/* =========
    基本変数
========= */
:root {
  --header-height: 130px;
}

/* =========
    body
========= */
html, body {
    font-family: "M PLUS Rounded 1c",sans-serif;
    background: #F4F1E8;
    overflow-x: hidden;
    color: #754C2E;
}

html {
    height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* =========
    main
========= */
main {
    flex: 1;
}

section {
    scroll-margin-top: var(--header-height);
    margin: 50px auto;
    padding: 0 30px;
    max-width: 1000px;
}

h2 {
    font-family: "Noto Serif JP", serif;
    margin-bottom: 25px;
    font-size: 28px;
}

h3 {
    font-size: 16px;
    margin: 10px 0;
}

a {
    text-decoration: none;
    color: #754C2E;
}

a:hover {
    opacity: 0.8;
}

p {
    line-height: 2.5;
    font-size: 14px;
}

/* =========    
    header
========= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 88px;
    background: rgb(244, 241, 232, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
}

/* ========
    logo
======== */
.logo p {
    font-size: 12px;
    line-height: normal;
    font-weight: bold;
    font-family: "Noto Serif JP", serif;
}

.logo h1 {
    font-size: 36px;
    color: #C97A30;
    text-align: center;
    letter-spacing: 0.1em;
    font-weight: normal;
}

/* ========
    sp_logo
======== */
.sp-logo h1 a,
.pc-logo h1 a{
    color: #C97A30;
}

/* =========
    PC用ナビ（最初は非表示）
========= */
.pc-nav {
    display: none;
}

/* ========
    ハンバーガー
======== */
.hamburger {
    width: 48px;
    height: 48px;
    background: #C97A30;
    border-radius: 50%;
    padding: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 22px;
    height: 3px;
    background: #F4F1E8;
    border-radius: 2px;
    transition: 0.3s;
}

/* ×に変形 */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg); 
}

/* ========
    ドロワー
======== */
.drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100vh;
    height: 100dvh;
    background: #f7f7f3;
    padding-top: 120px;
    transition: 0.3s;
    z-index: 900;
    overflow-y: auto;
}

.drawer.open {
    right: 0;
}

.drawer ul {
    padding: 0 24px;
}

.drawer li {
    margin-bottom: 24px;
}

.drawer a {
    font-size: 18px;
}

/* =========    
    overlay
========= */
.overlay {
    position: fixed;
    inset: 0;
    background: rgb(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 800;
}

.overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* =========
    PC表示
========= */
main {
    padding-top: 88px;
}

.hero_pc {
    display: none;
}

.hero_sp {
    display: block;
}

/* =========
    section
========= */
.h2-orange,
.message-orange {
    color: #C97A30;
}

/* =========
    vegitable
========= */
.vegitable h2 {
    text-align: center;
}

.vegitable-flex {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.card {
    width: calc(50% - 7px);
    text-align: center;
}

.card img {
    max-width: 300px;
    height: auto;
}

.card h3 {
    text-align: center;
}

.pumpkin h3 {
    min-height: 3em;
}

.card p {
    line-height: 1.8;
    text-align: left;
}

.vegitable-right {
    display: flex;
    gap: 14px;
}

/* =========
    shop-btn
========= */
.shop-btn,
.contact-btn,
.thanks-btn {
    background-color: #C97A30;
    border-radius: 20px;
    width: 60%;
    text-align: center;
    margin-left: auto;
    margin-top: 50px;
}

.shop-btn p,
.contact-btn p,
.thanks-btn p {
    color: #f7f7f3;
}

/* =========
    news
========= */
.news-container {
    border-bottom: solid 1px #53846A;
    padding-bottom: 20px;
}

/* =========
    partation
========= */
.partation {
    margin-top: 25px;
}

/* =========
    message
========= */
.message img {
    width: clamp(100px, 15vw, 150px);
}

.message-p {
    margin: 25px 0;
    text-align: center;
    font-family: "Noto Serif JP", serif;
    font-weight: bold;
}

.message-p p {
    font-size: clamp(14px, 2.5vw, 40px);

}

.message-img-right {
    text-align: right;
}

/* =========
    about
========= */
.about img {
    height: clamp(240px, 20vw, 300px);
    object-fit: cover;
    object-position: left 70%;
    width: calc(100% + 50px);
    border-radius: 20px;
    margin-top: 25px;
}

/* =========
    img-0
========= */
.img-0 {
    margin-top: 50px;
    text-align: center;
}

.img-0 img {
   width: clamp(100px, 15vw, 150px);
}

/* =========
    event
========= */
.event h2 {
    text-align: center;
}

.event p,
.event-1 h3 {
    text-align: center;
}

.event-1 {
    margin: 25px auto;
}

.event-img-flex {
    text-align: center;
}

.event-img-flex img {
    max-width: 300px;
}

.event-img-1 {
    display: none;
}


/* =========
    address
========= */
address {
    font-style: normal;
}

.address-map {
    border: #53846A 1px solid;
    border-radius: 20px;
    overflow: hidden;
    width: calc(100% + 50px);
    margin-top: 25px;
}

.address-map iframe {
    width: 100%;
    height: clamp(240px, 20vw, 300px);
}

/* =========
    footer
========= */
footer {
    margin-top: 50px;
}

.bk-green {
    background: #53846A;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.bk-green small {
    font-size: 8px;
    color: #F4F1E8;
    text-align: center;
}

#page-top {
    position: fixed;
    right: 20px;
    bottom: 50%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    z-index: 999;
}

#page-top.show {
    opacity: 1;
    visibility: visible;
}

#page-top img {
    width: 50px;
    height: auto;
}

/* =========
    contact.html
========= */
.contact-p {
    text-align: center;
}

.contact h2, 
.thanks h2 {
    margin-top: 50px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: inline-block;
}

label, select {
    display: block;
}

.required {
    color: #C97A30;
    margin-left: 4px;
    /* display: inline; */
}

input, textarea {
    width: 100%;
    margin-top: 5px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

select {
    padding: 2px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.wpcf7-submit.btn {
    width: auto;
}

.btn {
    background: #C97A30;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 50px auto;
    font-size: 18px;

}

.btn:hover {
    opacity: 0.8;
}

/* =========
    thanks
========= */
.thanks p {
    text-align: center;
}

@media screen and (min-width:768px) {
    /* =========
        PC表示
    ========= */
    .sp-logo {
        display: none;
    }

    .hamburger {
        display: none;
    }

    .pc-nav {
        display: flex;
        align-items: last baseline;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
    }

    .nav-left,
    .nav-right {
        display: flex;
        gap: 24px;
    }

    .pc-logo {
        text-align: center;
        margin: 0 24px;
    }

    .hero_pc {
        display: block;
    }
    
    .hero_sp {
        display: none;
    }

    /* =========
        vegitable
    ========= */
    .vegitable-flex {
        gap: 50px 100px;
    }

    .card {
        width: 300px;
    }

    .vegitable-right {
        gap: 100px;
        margin-left: auto;
    }

    /* =========
        shop-btn
    ========= */
    .shop-btn,
    .contact-btn,
    .thanks-btn {
        max-width: 300px;
    }

    /* =========
        about
    ========= */
    .about,
    .address {
        display: flex;
        align-items: center;
    }

    .about-text,
    .address-text {
        min-width: 350px;
    }

    .about-text p br:last-child {
        display: none;
    }

    .about img {
        flex: none;
        margin-top: 0;
    }

    /* =========
        event
    ========= */
    .event-img-flex {
        display: flex;
        justify-content: center;
        gap: 50px;
    }

    .event-img-1 {
        display: block;
    }

    /* =========
        address
    ========= */
   .address-map {
        flex: none;              /* ←flexの計算から外す */
        width: calc(70% + 10px);
    }

    /* =========
        footer
    ========= */
    #page-top img {
        width: 70px;
    }

    /* =========
        contact.html
    ========= */
    .br-sp {
        display: none;
    }


}

@media screen and (min-width:1024px) {
    /* =========
        基本変数
    ========= */
    :root {
    --header-height: 300px;
    }

    /* =========
        main
    ========= */
    main {
        margin-top: 90px;
    }

    section {
        margin: 150px auto 0;
        padding: 0;
    }

    h2 {
        margin-bottom: 50px;
        font-size: 40px;
    }

    h3 {
        font-size: 25px;
        margin: 25px 0;
    }

    p {
        font-size: 20px;
        line-height: 2;
        /* font-weight: bold; */
    }

    /* =========    
        header
    ========= */
    .header {
        position: fixed;
        height: 180px;
    }

    .nav-left,
    .nav-right {
        font-size: 25px;
        font-weight: bold;
    }

    .pc-logo p {
        font-size: 30px;
    }

    .pc-logo h1 {
        font-size: 60px;
    }

    /* =========
        vegitable
    ========= */
    .vegitable-flex {
        gap: 50px 150px;
    }

    .card p {
        text-align: center;
    }

    .vegitable-right {
        gap: 150px;
    }

    .shop-btn,
    .contact-btn,
    .thanks-btn {
        margin-top: 100px;
    }

    /* =========
        partation
    ========= */
    .partation {
        margin-top: 0;
    }

    /* =========
        about
    ========= */
    .about-text,
    .address-text {
        min-width: 500px;
    }

    .about img {
        width: calc(100% + 20vw);
        height: 300px;
    }

    /* =========
        img-0
    ========= */
    .img-0 {
        margin-top: 150px;
    }

    /* =========
        address
    ========= */
    .address-map {
        width: calc(100% + 20vw);
        height: 300px;
        margin-top: 0;
    }

    /* =========
        footer
    ========= */
    footer {
        margin-top: 150px;
    }

    .bk-green small {
        font-size: 14px;
    }

    /* =========
        contact.html
    ========= */
    .contact h2 {
        margin-top: 150px;
    }

    .form-group {
        margin-bottom: 25px;
        font-size: 20px;
    }

    input, textarea {
        margin-top: 10px;
        font-size: 20px;
    }

    select {
        padding: 10px;
        font-size: 20px;
    }

    .btn {
        margin: 100px auto;
        font-size: 25px;
    }


}

