/* http: //jigsaw.w3.org/css-validator/ */

body {
    color: #273427;
    margin: 0;
    padding: 0;
    line-height: 180%;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}
body > * {
    box-sizing: border-box;
}
.skip {
    position: absolute;
    left: -9000px;
}
.flex {
    display: flex;
    justify-content: space-between;
}
.flex.c2 > * {
    width: 450px;
    max-width: 48%;
}
.w1000 {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.sp {
    display: none;
}
.pc {
    display: block;
}

.nlm {
    list-style: none;
    padding: 0;
}
.beige {
    background: #F2F2ED;
}
.center {
    margin: 0 auto;
    text-align: center;
}
img {
    max-width: 100%;
}
table {
    border-collapse: collapse;
    margin: 2rem auto;
    border-top: 1px solid #CCCCCC;
    width: 100%;
}
th {
    white-space: nowrap;
}
td,
th {
    vertical-align: top;
    border-bottom: 1px solid #CCCCCC;
    text-align: left;
    padding: 0.5rem 1rem;
}
td span {
    margin: 0 1rem 0 0;
    display: inline-block;
}
.photobox{
    margin: 20px 20px 0;
    display: inline-block;
}
.photobox img{
    margin: 0 auto;
    display: block;
}
.page-pharmacy .photobox img{
    width: auto;
    max-height: 400px;
    max-width: 100%;
    height: auto;
}
.page-building .photobox img{
    width: 270px;
}
.kicon img,
.page-pharmacy th img{
    width: 1rem;
    vertical-align: middle;
    margin-right: 0.25rem;
    transform: translateY(-2px);
}

/*header*/
#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}
#logo {
    margin: 1rem 0;
    padding: 0;
    display: inline-block;
}
#logo a {
    text-decoration: none;
    color: #767676;
}
#logo span {
    font-weight: normal;
    font-size: 0.8rem;
    display: block;
}
#logo img {
    width: 230px;
    display: block;
    margin: 0.25rem 0;
}

/*menu*/
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    margin: 0;
    padding: 0;
}
#mainmenu{
    overflow: hidden;
}
#mainmenu li a {
    display: block;
    padding: 1rem 0.75rem;
    text-decoration: none;
    color: #273427;
    position: relative;
    transition: 0.5s;
}
#mainmenu li a::after {
    opacity: 0;
    content: '';
    position: absolute;
    display: block;
    height: 5px;
    width: 3em;
    margin: 0 auto;
    bottom: 0.5rem;
    left:calc(50% - 1.5em);
/*    background: center bottom no-repeat url("../img/menuon.svg");*/
    border-bottom: 3px solid #5cb531;
    transition: 0.5s;
}
#mainmenu a.on::after,
#mainmenu a:hover::after {
    opacity: 1;
}

/*mainvisual*/
#mainvisual {
    display: block;
    padding: 0 0 3em;
}
#mainvisual .w1000 {
    padding-top: 90px;
    height: 400px;
}
.textbox {
    position: relative;
    z-index: 100;
    font-size: 1em;
    line-height: 180%;
    font-family: 游明朝,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Hiragino Mincho Pro",HGS明朝E,メイリオ,Meiryo,serif;
}
.imagebox {
    position: absolute;
    width: calc((100% - 370px) + ((100vw - 1040px) / 2));
    left: 370px;
    bottom: 0;
    height: 490px;
    z-index: 50;
    border-radius: 10px 0 0 10px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url("../img/kamogawa.jpg");
}

.textbox img {
    display: block;
    margin: 0 0 3.5em;
}
.textbox p {
    margin: 2em auto;
}
.textbox strong {
    font-size: 240%;
    display: block;
    margin: 0 0 1em ;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/*maintitle*/
#maintitle {
    padding: 3rem 0;
}
#maintitle h1 {
    text-align: center;
    margin: auto;
    padding: 0;
    font-size: 1.6rem;
/*    background: center bottom no-repeat url("../img/h1bg.svg");*/
}
#maintitle h1::after{
    display: none;
    content:'';
    margin: 1rem auto;
    padding: 0;
    border: 2px solid #5cb531;
    width: 3em;
}

/*body*/
#main > div.beige {
    padding: 5em 0;
}
#main > div {
    padding-bottom: 5em;
}
h2 {
    font-size: 1.3rem;
    margin: 2em auto 1em;
    padding: 0.25rem 2rem;
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: left center;
    background-image: url("../img/h2bg.svg");
}
.flex.c2 .box {
    background-color: #fff;
    padding: 25.5% 30px 30px;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: contain;
    border-radius: 10px;
    width: 390px;
    max-width: calc(48% - 60px);
}
.pharmacy {
    background-image: url("../img/img-ph.jpg");
}
.building {
    background-image: url("../img/img-bu.jpg");
}
.box h2 {
    background: none;
    margin: 0 30px;
    text-align: center;
    margin: 1rem auto;
}
.box h2 img {
    margin: 0 auto;
    display: block;
    margin: 0 auto;
}
.box p {
    margin: 1rem auto 0;
}
.box a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 3em;
    line-height: 1em;
    text-decoration: none;
    color: #273427;
    vertical-align: baseline;
    transition: 0.5s;
}
.box a:hover {
    background-color: #ddd;
}
.box a::before {
    content: url("../img/linkbg.svg");
    display: inline-block;
    margin: 0 0.5rem 0 0;
    vertical-align: sub;
}
.catchcopy {
    color: #309100;
    font-weight: bold;
    font-size: 1.3rem;
    text-align: center;
    line-height: 200%;
    margin: 2em auto;
}
#googlemymap {
    width: 100%;
    position: relative;
    padding: 66% 0 0;
}
#googlemymap iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    border: none;
}
.go_gm{
    padding:0.5rem 1rem;
    border-radius:3em;
    margin:2rem auto 0;
    display: inline-block;
    line-height: 1em;
    text-decoration: none;
    color: #273427;
    vertical-align: baseline;
    transition: 0.5s;
}
.go_gm:hover{
    background-color: #ddd;
}
.go_gm::before{
    content: url("../img/linkbg.svg");
    display: inline-block;
    margin: 0 0.5rem 0 0;
    vertical-align: sub;
}
sup{
    margin-left: 0.125rem;
}
/*footer*/
#footer {
    padding: 2rem 0;
    background: #464D42;
    color: #fff;
    text-align: center;
}
#footer h2 {
    margin: 0 auto;
    padding: 0;
    background: none;
}
#footer a {
    color: #fff;
}
#footer img {
    filter: brightness(100);
    display: block;
    margin: 0 auto;
    max-width: 230px;
}
address {
    font-style: normal;
}
address span {
    display: inline-block;
    margin: 0 0.5rem;
}
footer a {
    margin: 0 0.5rem;
}

@media screen and (max-width: 1040px) {
    .imagebox {
        width: 65%;
        left: 35%;
    }
    .textbox {
        font-size: 0.95em;
    }
}

@media screen and (max-width: 780px) {
    .pc {
        display: none;
    }
    .sp {
        display: block;
    }

    #ocbt {
        padding: 5px 0;
        display: block;
        text-decoration: none;
        color: #202020;
        font-size: 0.8rem;
        text-align: center;
        margin: 0 auto;
        width: 35px;
        border-bottom: none !important;
    }
    #ocbt span.bar,
    #ocbt span.bar::after,
    #ocbt span.bar::before {
        content: "";
        width: 25px;
        border-top: 2px solid #5b4f45;
        display: block;
        margin: 7px auto 4px;
    }

    #closebt {
        text-decoration: none;
        color: #fff;
        font-size: 0.8rem;
        display: block;
        z-index: 600;
        position: fixed;
        right: 20px;
        transform: translateX(calc(15em + 40px));
        top: 15px;
        width: 35px;
        height: 25px;
        margin: 0 0 1rem;
        padding: 1rem 0;
        transition: 0.5s;
    }
    .menuon #closebt {
        transform: translateX(0);
    }

    #closebt span::after,
    #closebt span::before {
        content: "";
        width: 25px;
        border-top-color: rgba(255, 255, 255, 1);
        border-top-style: solid;
        border-top-width: 2px;
        display: block;
        margin: 7px auto 11px;
        transition: 0.5s;
    }

    #closebt:hover span::after,
    #closebt:hover span::before {
        border-top-color: rgba(255, 255, 255, 0.5);
    }

    #closebt span::after {
        transform: rotate(45deg);
        margin-top: -13px;
    }

    #closebt span::before {
        transform: rotate(-45deg);
    }
    #mainmenu ul {
        flex-direction: row;
        display: block;
        position: fixed;
        top: 0;
        z-index: 500;
        right: 0;
        transform: translateX(calc(15em + 40px));
        width: 15em;
        height: 100vh;
        overflow: hidden;
        padding: 105px 20px 20px;
        background: rgba(39, 52, 39, 0.95);
        transition: 0.5s;
    }
    #mainmenu ul a {
        display: block;
        padding: 1rem 0.5rem;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }
    #mainmenu ul a:hover {
        background-color: rgba(255, 255, 255, 0.5);
    }
    #mainmenu ul li:first-child a {
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }
    #mainmenu li a::after {
        display: none;
    }
    .menuon #mainmenu ul {
        transform: translateX(0);
    }

    #mainvisual {
        padding-bottom: 0;
    }
    #mainvisual .w1000 {
        height: 100vw;
        padding-top: 0;
    }
    .imagebox {
        width: 100%;
        left: 0;
        height: 100vw;
        border-radius: 0;
        background-position: center top;
        background-image: url("../img/kamogawa_sp.jpg");
    }
    .imagebox::before {
        content: '';
        display: block;
        height: 50px;
        position: absolute;
        top: 0;
        width: 100%;
        z-index: 200;
        background: linear-gradient(rgba(255,255,255,1),rgba(255,255,255,0));
    }
    .textbox {
        padding-top: 5vw;
    }
    .textbox img {
        margin: 7vw 0;
    }
    .c2 td,
    .c2 th {
        display: block;
    }
    .c2 th {
        border-bottom: none;
        padding-bottom: 0;
    }

}
@media screen and (max-width: 580px) {
    #mainvisual .w1000 {
        padding-bottom: 10vw;
    }
    .flex {
        flex-wrap: wrap;
    }
    .flex.c2 > * {
        width: 100%;
        max-width: 100%;
        margin: 1em auto;
    }
    .flex.c2 .box {
        padding-top: 55%;
        width: 100%;
        max-width: 100%;
        margin: 1em auto;
    }
    td,
    th {
        display: block;
    }
    th {
        border-bottom: none;
        padding-bottom: 0;
    }
    #googlemymap {
        width: 100%;
        position: relative;
        padding: 100% 0 0;
    }
}
@media screen and (max-width: 440px) {
    #mainvisual .w1000 {
        padding-bottom: 19vw;
    }
    .textbox strong{
        font-size: 200%;
    }
    .textbox {
        padding-top: 10vw;
    }
    #mainvisual img{display: none;}
}


