* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
background-color: #ffffff;
color: #3d230d;
min-height: 100%;
display: flex;
flex-direction: column;
}
.header {
    /* position: fixed; */
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 40px;
background-color: rgb(153, 84, 38);
}

.logo {
font-size: 28px;
font-weight: bold;
color: white;
font-family: 'Georgia', serif;
}

.spidy {
font-size: 32px;
color: #6e1212;
}

.menu {
display: flex;
justify-content: center;
gap: 40px;
padding: 15px 40px;
background-color: rgb(153, 84, 38);
}

.menu a {
text-decoration: none;
color: white;
font-weight: bold;
padding: 5px;
font-size: 18px;
}

.act {
background-color: rgb(175, 108, 64);
border-bottom: 2px solid #e2d89f;
}

main {
    flex: 1;
    width: 100%;
    margin: 40px 0;
}


h1 {
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    font-size: 40px;
    padding-bottom: 20px;
}

h2 {
    color: #8a4a16;
    margin: 25px 0 20px;
    font-size: 30px;
    text-align: center;
}

h3 {
    color: #000000;
    margin: 0 0 15px;
    font-size: 25px;
    text-align: center;
}

p {
    margin-bottom: 40px;
    font-size: 20px;
    margin: 30px;
}

.r {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    background-color: rgb(237, 227, 213);
    padding: 30px;
    border-radius: 5px;
    border: 1px solid #ede3d5;
}

.s {
    width: 120px;
    height: 120px;
    margin-right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    border: 2px solid #8a4a16e1;
}

.ri {
    flex: 1;
}

.ri h1 {
    text-align: left;
    margin-bottom: 20px;
    border-bottom: none;
    padding-bottom: 0;
}

.ri p {
    font-size: 1.3rem;
}

.pc {
    position: relative;
    height: 400px;
    margin: 20px 0;
    overflow: hidden;
}

.pb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
    opacity: 0.8;
}

/* .po {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
} */


.boxs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 20px;
}

.box {
    background-color: #ede3d5;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ede3d5;
    font-size: 25px;
}

.box p {
    font-size: 20px;
    margin-bottom: 0;
}

.back {
    display: inline-block;
    background-color: #8a4a16;
    color: white;
    padding: 15px 30px;
    border-radius: 3px;
    text-decoration: none;
    margin-top: 30px;
    font-size: 22px;
    margin-left: 40px;
}


footer {
    background-color: #8a4a16;
    color: white;
    text-align: center;
    padding: 30px 0;
    width: 100%;
    margin-top: 60px;
    border-top: 1px solid #8a4a16;
    font-size: 25px;
}

@media (max-width: 768px) {
    .header, .menu {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .menu {
        gap: 20px;
        padding: 12px 20px;
    }
    
    .menu a {
        font-size: 16px;
    }
    
    .r {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        margin: 20px;
    }
    
    .s {
        margin-right: 0;
        margin-bottom: 20px;
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .ri h1 {
        text-align: center;
        font-size: 28px;
    }
    
    .ri p {
        font-size: 16px;
    }
    
    .boxs {
        grid-template-columns: repeat(2, 1fr);
        margin: 20px;
        gap: 15px;
    }
    
    .box {
        font-size: 20px;
        padding: 15px;
    }
    
    .box p {
        font-size: 16px;
    }
    
    h1 { font-size: 32px; margin-bottom: 20px; }
    h2 { font-size: 26px; margin: 15px 0; }
    h3 { font-size: 21px; }
    
    p {
        margin: 20px;
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .back {
        margin: 20px;
        padding: 12px 24px;
        font-size: 18px;
        display: block;
        text-align: center;
    }
    
    .pc {
        height: 300px;
    }
    
    .pb {
        background-attachment: scroll;
    }
    
    footer {
        font-size: 20px;
        padding: 20px 0;
        margin-top: 40px;
    }
    
    .logo { font-size: 24px; }
    .spidy { font-size: 28px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .boxs {
        grid-template-columns: repeat(2, 1fr);
        margin: 30px;
        gap: 20px;
    }
    
    .r {
        padding: 25px;
        margin: 30px;
    }
    
    h1 { font-size: 40px; }
    h2 { font-size: 29px; }
    
    p {
        margin: 25px;
        font-size: 18px;
    }
    
    .pc {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .boxs {
        grid-template-columns: 1fr;
        margin: 15px;
        gap: 12px;
    }
    
    .box {
        font-size: 18px;
        padding: 12px;
    }
    
    .box p {
        font-size: 14px;
    }
    
    .r {
        padding: 15px;
        margin: 15px;
    }
    
    .s {
        width: 80px;
        height: 80px;
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    h3 { font-size: 19px; }
    
    .ri h1 { font-size: 24px; }
    .ri p { font-size: 14px; }
    
    p {
        margin: 15px;
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .back {
        margin: 15px;
        padding: 10px 20px;
        font-size: 16px;
    }
    
    .pc {
        height: 250px;
    }
    
    .menu a { font-size: 14px; }
    .logo { font-size: 22px; }
    .spidy { font-size: 26px; }
    footer { font-size: 18px; }
}





