@charset "utf-8";
/* CSS Document */

/* shinseikai.jp - himari
-----------------------------------------------------*/
#title {
    position: relative;
    height: 490px;
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;
}
#title p {
    width: 1200px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}
#title p img {
    width: 100%;
}
@media (max-width: 1100px) {
    #title {
        height: 44.5vw;
    }
    #title p {
        width: 109vw;
    }
}
@media (max-width: 700px) {
    #title {
        height: 395px;
    }
    #title p {
        width: 700px;
    }
}
@media (max-width: 610px) {
    #title {
        height: 64vw;
    }
    #title p {
        width: 115vw;
    }
}

/* ==============================================
    message
============================================== */
#message {
    display: grid;
    grid-template-columns: 24% auto;
    /*width: 100%;
    max-width: 990px;*/
    width: 990px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.125em;
}


#message .center {
    margin-top: 35px;
    padding-right: 5px;
}
#message .center img {
    width: 100%;
    margin-bottom: 0.7em;
}
#message .text {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 345px;
    padding-right: 40px;
    padding-bottom: 10px;
    background: url("image/top_message.png") no-repeat top right;
    background-size: 100% 100%;
    line-height: 1.7;
}
#message .text p {
    width: 85%;
    max-width: 595px;
    max-width: 605px;
}

@media (max-width: 1055px) {
    #message {
        margin-left: 0;
        margin-right: -30px;
    }
}
@media (max-width: 1020px) {
    #message {
        width: calc(100% + 30px);
    }
}
@media (701px <= width <= 730px)  {
    #message {
        font-size: 1em;
    }
}
@media (max-width: 730px) {
    #message {
        grid-template-columns: 160px auto;
    }
    #message .text {
        height: 300px;
        /*padding-right: 25px;*/
    }
}
@media (max-width: 650px) {
    #message {
        display: block;
        width: 100%;
        margin-right: auto;
    }
    #message .center img {
        width: 150px;
    }
    #message .text {
        width: 100%;
        height: auto;
        margin-top: 1.5em;
        padding: 2em 8%;
        border-radius: 2em;
        background-image: url("image/top_message_sp.png");
    }
    #message .text p {
        width: 100%;
        max-width: 100%;
    }
}

/* ==============================================
    staff
============================================== */
#staff > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 0 3%;
}
#staff .staff {
    height: 100%;
    padding: 2em 9%;
    background: #fef9ca;
    border-radius: 30px;
}
#staff .staff img {
    width: 170px;
}
#staff .staff h3 {
    display: flex;
    justify-content: center;
    text-align: left;
    margin-top: 0.6em;
}
#staff .staff h3 br {
    display: none;
}
@media (max-width: 1000px) {
    #staff > div {
        grid-gap: 0 3%;
    }
    #staff .staff {
        padding: 1.5em 8% 2em;
    }
}
@media (max-width: 900px) {
    #staff > div {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 2.5vw 2.5vw;
    }
}
@media (max-width: 900px) and (min-width: 701px) {
    #staff .staff h3 {
        text-align: center;
        margin-left: -0.6em;
        margin-right: -0.6em;
    }
    #staff .staff h3 br {
        display: block;
    }
}
@media (max-width: 700px) {
    #staff .staff img {
        width: clamp(7.5rem, 3.333rem + 16.67vw, 10.625rem);
    }
}
@media (max-width: 550px) {
    #staff > div {
        grid-template-columns: 1fr;
        grid-gap: 1em 0;
    }
}
@media (max-width: 490px) {
    #staff .staff h3 {
        text-align: center;
        margin-left: -0.6em;
        margin-right: -0.6em;
    }
    #staff .staff h3 br {
        display: block;
    }
}

/* ==============================================
    osusume
============================================== */
#osusume h2 br {
    display: none;
}
@media (max-width: 600px) {
    #osusume h2 br {
        display: block;
    }
}

#osusume div {
    position: relative;
    padding-left: 250px;
}
#osusume div p {
    position: absolute;
    top: 0;
    left: 0;
}
#osusume div p img {
    width: 213px;
}
@media (max-width: 900px) {
    #osusume div {
        padding-left: clamp(13.125rem, 4.375rem + 20vw, 15.625rem);
    }
    #osusume div p img {
        width: clamp(8.75rem, 0.156rem + 27.5vw, 15.625rem);
    }
}
@media (max-width: 700px) {
    #osusume div {
        padding-left: 0;
    }
    #osusume div p {
        position: static;
        margin-bottom: 1em;
    }
}
