@charset "utf8";

/* --------Base Style-------- */

html {
    font-size: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    line-height: 1.6;
    color: #3a2f2f;
    background-color: #fffaf5;
}

a {
    text-decoration: none;color: inherit;
}

/* --------SECTIONHEADING共通-------- */

.section-heading {
    text-align: center;
    margin: 20px;
}


/* --------HEADER-------- */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: url(../images/header-sky.jpg) center / cover;
    color: #eef5ec;
}

.header-logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.header-nav ul {
    display: flex;
}

.header-nav li {
    margin-left: 20px;
}

.header-nav a {
    color: #eef5ec;
    font-weight: bold;
}

/* --------HERO-------- */

.hero {
    display: flex;
    flex-wrap: wrap;
    padding: 60px 40px;
    background: url(../images/forest.jpg) center / cover;
}

.hero-text {
    flex: 1 1 400px;
    margin-left: 20px;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: #eef5ec;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    color: #eef5ec;
    margin-bottom: 20px;   
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #6b4f3b;
    color: #fff;
    border-radius: 5px;
}

.hero-image {
    flex: 1 1 400px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* --------PRODUCT-------- */

.section-contacts {
    margin: 0 auto;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: #fffaf5;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    opacity: 0.7;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-card h3 {
    margin-bottom: 10px;
    color: #3a2f2f;
}

.product-card p {
    font-size: 0.95rem;
    color: #5a4b3c;
}

.section-link {
    display: block;
    text-align: center;
    margin: 40px auto;
    font-size: 18px;
    color: #3a2f2f;
    text-decoration: none;
}

.section-link:hover {
    opacity: 0.7;
} 

/* --------CONTACT-------- */

.section-contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.section-contact label {
    margin-bottom: 5px;
    color: #3a2f2f;
}

.section-contact input,
.section-contact textarea {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.section-contact button {
    padding: 10px 20px;
    background-color: #3a2f2f;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    margin-bottom: 20px;
}

.section-contact button:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

/* --------FOOTER-------- */

.site-footer {
    padding: 20px 40px;
    background-color: #6b4f3b;
    color: #fff;
    text-align: center;
}

/* --------RESPPNSIVE-------- */

@media (max-width: 900px) {
    .product-list {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 600px) {
    .product-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width:768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-right: 0;
        align-items: center;
    }

    .hero-list {
        flex-direction: column;
        align-items: center;
    }
}