/*PC用*/
@media (min-width: 461px) {
    body {
        font-family: 'Roboto', sans-serif;
        background-color: #f7f7f7;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .container {
        width: 1100px;
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }

    header {
        background-color: #4caf50;
        color: white;
        padding: 20px 0;
        text-align: center;
        border-radius: 10px 10px 0 0;
    }
    h1{
        display: flex;
        align-items: flex-end;
        justify-content: center;
        font-size: 2.5rem;
    }
    .span_h1 {
        display: block;
        width: 200px;
        height: 80px;
    }
    
    main {
        padding: 20px;
        font-size: 1.4rem;
        line-height: 1.6;
    }

    section {
        margin: 30px 0;
        text-align: left;
    }

    h2 {
        font-weight: bold;
    }

    #wrapper {
        display: flex;
    }

    #wrapper p {
        width: 700px;
    }

    #usagi {
        width: 180px;
    }
    
    #usagi img {
        width: 180px;
    }

    .br_pc {
        display: block;
    }
    
    #modal {
        display: none;
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgb(0,0,0);
        background-color: rgba(0,0,0,0.4);
    }
    
    #modal-content {
        background-color: #fefefe;
        margin: 100px auto;
        padding: 20px;
        border: 1px solid #888;
        border-radius: 10px;
        width: 1060px;
        display:flex;
        flex-direction: row;
        justify-content: flex-end;
    }
    .close {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
    }
    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }
    #modal_p{width: 700px;}
    #modal_img{width: 300px; margin:0 20px;}
    #modal_title{font-weight: bold; font-size: 1.5rem; color: #4caf50;}

    .gallery .images {
        margin: 40px auto 60px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 1060px;
        justify-items: center;
        row-gap: 20px;
    }
    
    .gallery img {
        width: 330px;
        height: 200px;
        border-radius: 10px;
        transition: transform 0.3s ease;
    }
    #announce_container {
        width: 320px;
        height: 190px;
        border: 5px solid #4caf50;
        border-radius: 10px;
        transition: transform 0.3s ease;
        margin:0px;
        text-align: center;
        font-weight:bold;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .gallery img:hover {transform: scale(1.05);}
    #announce_container:hover {transform: scale(1.05);}
    #sale {margin-top: 30px;}

    footer {
        background-color: #333;
        color: white;
        padding: 10px 0;
        text-align: center;
        border-radius: 0 0 10px 10px;
    }

    footer p {
        font-size: 1.1rem;
    }


}

/*スマホ用*/
@media (max-width: 460px) {
    /* 共通スタイル */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    color: #333;
}

.container {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

header {
    width: 100%;
    background-color: #4caf50;
    color: white;
    text-align: center;
    padding: 20px 0;
    border-radius: 10px 10px 0 0;
}

h1 {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: 1.8rem;
}

.span_h1 {
    display: block;
    margin: 0 5px;
}

main {
    padding: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

section {
    margin: 20px 0;
    text-align: left;
}

h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

#usagi {
    width: 150px;
    margin: 20px auto;
}

#usagi img {
    width: 100%;
    height: auto;
}

#modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

#modal-content {
    background-color: #fefefe;
    margin: 100px auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    order:-1;
    text-align:right;
    height: 30px;
}

.close:hover, .close:focus {
    color: black;
}

.gallery .images {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.gallery img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

#announce_container {
    width: 100%;
    max-width: 320px;
    height: 190px;
    border: 5px solid #4caf50;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery img:hover, #announce_container:hover {
    transform: scale(1.05);
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    border-radius: 0 0 10px 10px;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

/* モバイル向けスタイル */
@media (max-width: 460px) {
    body {
        font-size: 0.9rem;
    }

    header {
        padding: 10px 0;
    }

    h1 {
        font-size: 1.3rem;
    }

    .gallery img {
        max-width: 100%;
    }

    #modal-content {
        width: 90%;
    }
    #modal_title{color:#4caf50; font-size:1.13rem; font-weight:bold;}
}
   
}

.bold{font-weight: bold;}

