
html {
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 0;
	border: 0;
    font-family: "ヒラギノ明朝 ProN W3", "HiraMinProN-W3", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
    line-height: 1.5;
    background: #ffffff ;
    color: #666666;
}

.frame {
    margin: 0 auto;
    position: relative;
    text-align: left;
    max-width: 1020px;
    background-color: white;
}

#main {
    display: block;
    float: right;
	width: calc(100% - 160px);
    margin-top: 30px;
}

#main img  {
    width: 100%;
    height: auto;
}

#main .right img {
    padding-right: 5px;
}

#sidemenu {
    display: block;
    float: left;
	width: 160px;
	text-align: center;
    margin-top: 5px;
}

#sidemenu img  {
    width: 100%;
    height: auto;
	object-fit: contain;
}

#slideshow{
    float: left;
    width: 400px;
    margin-top: 50px;
    margin-left: 50px;
    padding: 0px;
}

#explain{
    float: left;
    width: 340px;
    margin-top: 50px;
    padding-left: 40px;    
    padding-right: 0px;
    font-size: 14px;
}

.frame:after {
    display: block;
    height: 0;
    font-size: 0;
    clear: both;
    visibility: hidden;
    content: " ";
}

.clearfix:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}

div.content {
	margin: 0;
    position: relative;
}

#main .name {
    margin-left: 20px;
    width: 300px;
    height: 20px;
    width: inherit;
    clear: both;
}

#main .content .left #profile_photo {
    width: calc(100% - 50px);
    height: auto;
    margin: 0 10px 0 20px;
    object-fit: contain;
}

#main .content .center {
    width: 100%;
    float: left;
}

#main .content .right {
    width: 50%;
    float: right;
}

#main .content .left {
    width: 50%;
    float: left;
}

#main .content .works_s {
    width: calc(33.33% - 26px);
    display: inline-block;
    vertical-align: bottom;
    margin: 10px 13px 30px 13px;
}

#main .content .works_w {
    width: calc(66.66% - 26px);
    display: inline-block;
    vertical-align: bottom;
    margin: 10px 13px 30px 13px;
}

#main .content .case_name {
    padding-top: 10px;
    text-align: center;
    font-size: 14px;
}

#omoi_top {
    background-image: url(../images/omoi_title.jpg);
    background-repeat: no-repeat;
    background-size:contain;
    width: 215px;
    height: 40px;
    margin: 40px 0px 0px 20px;
}

#sekkei_top {
    background-image: url(../images/sekkei_title.jpg);
    background-repeat: no-repeat;
    width: 215px;
    height: 40px;
    margin: 40px 0px 0px 20px;
}

#works_top {
    background-image: url(../images/works_title.jpg);
    background-repeat: no-repeat;
    width: 190px;
    height: 40px;
    margin: 40px 0px 0px 20px;
}

#profile_top {
    background-image: url(../images/profile_title.jpg);
    background-repeat: no-repeat;
    width: 200px;
    height: 40px;
    margin: 40px 0px 0px 20px;
}

#to_kominka {
    width: 90%;
    height: 35px;
    margin: 0px 13px 0px 20px;
    background-image: url(../images/to_kominka.jpg);
    background-repeat: no-repeat;
    background-size: contain;
}

a {
    color: #3F72D8;
    text-decoration: none;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

h1{
    font-size: 20px;
    color: #777777;
}

h2{
    margin: 40px 20px 30px 20px;
    font-size: 16px;
    color: #777777;
}

h3{
    margin: 20px 0px 10px 20px;
    font-size: 14px;
    text-decoration: underline;
    color: #777777;
}

h4{
    margin: 0px 0px 0px 40px;
    font-size: 16px;
    color: #777777;
}


#main .main_image {
    margin: 0px 0px 0px 0px;
}


#main .content .right .go_top,
#main .content .left .go_top,
#main .content .works_r .go_top,
#main .go_top{
    float: right;
    width: 50px;
    margin-top: 20px;
}

#sidemenu h3 {
    width: 100%;
    height: 73px;
    margin: 30px 10px 0px 0px;
    background-image: url(../images/logo.jpg);
    background-size:contain;
    background-repeat: no-repeat;
}

ul {
    list-style-type: none;
    padding: 0px;
    margin: 0px;
    text-indent:100%;
    white-space:nowrap;
    overflow:hidden;
}

#logo {
    position: relative;
    width: calc(100% +10px);
    height: auto;
    margin: 0px 10px 0px 0px;
    background-image: url(http://pan.no-iroha.com/images/logo.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    color: rgba(33, 39, 98, 0.5);
}

#toppage{
    position: relative;
    width: calc(100% +10px);
    height: auto;
    margin: 0px 10px 0px 0px;
    background-image: url(http://pan.no-iroha.com/images/menu_top.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    color: rgba(33, 39, 98, 0.5);
}
#toppage:hover {
    background-image: url(http://pan.no-iroha.com/images/menu_top_on.jpg);
    background-repeat: no-repeat;
}

#omoi{
    position: relative;
    width: calc(100% +10px);
    height: auto;
    margin: 0px 10px 0px 0px;
    color: rgba(33, 39, 98, 0.5);
    background-image: url(../images/menu_omoi.jpg);
    background-size:contain;
    background-repeat: no-repeat;
}
#omoi:hover {
    background-image: url(../images/menu_omoi_on.jpg);
    background-repeat: no-repeat;
}
#hajimeni{
    position: relative;
    height: 30px;
    margin: 15px 10px 0px 0px;
    background-image: url(../images/menu_hajimeni.jpg);
    background-size:contain;
    background-repeat: no-repeat;
    color: rgba(33, 39, 98, 0.5);
}
#hajimeni:hover {
    background-image: url(../images/menu_hajimeni_on.jpg);
    background-size:contain;
    background-repeat: no-repeat;
}
#kimochi{
    position: relative;
    height: 30px;
    margin: 0px 10px 0px 0px;
    background-image: url(../images/menu_kimochi.jpg);
    background-size:contain;
    background-repeat: no-repeat;
    color: rgba(33, 39, 98, 0.5);
}
#kimochi:hover {
    background-image: url(../images/menu_kimochi_on.jpg);
    background-repeat: no-repeat;
}
#concept{
    position: relative;
    height: 30px;
    margin: 0px 10px 0px 0px;
    background-image: url(../images/menu_concept.jpg);
    background-size:contain;
    background-repeat: no-repeat;
    color: rgba(33, 39, 98, 0.5);
}
#concept:hover {
    background-image: url(../images/menu_concept_on.jpg);
    background-repeat: no-repeat;
}

#sekkei{
    position: relative;
    width: calc(100% +10px);
    height: auto;
    margin: 0px 10px 0px 0px;
    color: rgba(33, 39, 98, 0.5);
    background-image: url(../images/menu_sekkei.jpg);
    background-size:contain;
    background-repeat: no-repeat;
}
#sekkei:hover {
    background-image: url(../images/menu_sekkei_on.jpg);
    background-repeat: no-repeat;
}
#kentikushi{
    position: relative;
    height: 30px;
    margin: 15px 10px 0px 0px;
    background-image: url(../images/menu_kentikushi.jpg);
    background-size:contain;
    background-repeat: no-repeat;
    color: rgba(33, 39, 98, 0.5);
}
#kentikushi:hover {
    background-image: url(../images/menu_kentikushi_on.jpg);
    background-repeat: no-repeat;
}
#kentiku{
    position: relative;
    height: 30px;
    margin: 0px 10px 0px 0px;
    background-image: url(../images/menu_kentiku.jpg);
    background-size:contain;
    background-repeat: no-repeat;
    color: rgba(33, 39, 98, 0.5);
}
#kentiku:hover {
    background-image: url(../images/menu_kentiku_on.jpg);
    background-repeat: no-repeat;
}
#sekkeiryo{
    position: relative;
    height: 30px;
    margin: 0px 10px 0px 0px;
    background-image: url(../images/menu_sekkeiryo.jpg);
    background-size:contain;
    background-repeat: no-repeat;
    color: rgba(33, 39, 98, 0.5);
}
#sekkeiryo:hover {
    background-image: url(../images/menu_sekkeiryo_on.jpg);
    background-repeat: no-repeat;
}
#kominka{
    position: relative;
    height: 56px;
    margin: 0px 10px 0px 0px;
    background-image: url(../images/menu_kominka.jpg);
    background-size:contain;
    background-repeat: no-repeat;
    color: rgba(33, 39, 98, 0.5);
}
#kominka:hover {
    background-image: url(../images/menu_kominka_on.jpg);
    background-repeat: no-repeat;
}

#works{
    position: relative;
    width: calc(100% +10px);
    height: auto;
    margin: 0px 10px 0px 0px;
    color: rgba(33, 39, 98, 0.5);
    background-image: url(../images/menu_works.jpg);
    background-size:contain;
    background-repeat: no-repeat;
}
#works:hover {
    background-image: url(../images/menu_works_on.jpg);
    background-repeat: no-repeat;
}
#kodate{
    position: relative;
    height: 30px;
    margin: 15px 10px 0px 0px;
    background-image: url(../images/menu_kodate.jpg);
    background-size:contain;
    background-repeat: no-repeat;
    color: rgba(33, 39, 98, 0.5);
}
#kodate:hover {
    background-image: url(../images/menu_kodate_on.jpg);
    background-repeat: no-repeat;
}
#reform{
    position: relative;
    height: 30px;
    margin: 0px 10px 0px 0px;
    background-image: url(../images/menu_reform.jpg);
    background-size:contain;
    background-repeat: no-repeat;
    color: rgba(33, 39, 98, 0.5);
}
#reform:hover {
    background-image: url(../images/menu_reform_on.jpg);
    background-repeat: no-repeat;
}
#mansion{
    position: relative;
    height: 30px;
    margin: 0px 10px 0px 0px;
    background-image: url(../images/menu_mansion.jpg);
    background-size:contain;
    background-repeat: no-repeat;
    color: rgba(33, 39, 98, 0.5);
}
#mansion:hover {
    background-image: url(../images/menu_mansion_on.jpg);
    background-repeat: no-repeat;
}
#tenpo{
    position: relative;
    height: 30px;
    margin: 0px 10px 0px 0px;
    background-image: url(../images/menu_tenpo.jpg);
    background-size:contain;
    background-repeat: no-repeat;
    color: rgba(33, 39, 98, 0.5);
}
#tenpo:hover {
    background-image: url(../images/menu_tenpo_on.jpg);
    background-repeat: no-repeat;
}
#kominkamachiya{
    position: relative;
    height: 30px;
    margin: 0px 10px 0px 0px;
    background-image: url(../images/menu_kominkamachiya.jpg);
    background-size:contain;
    background-repeat: no-repeat;
    color: rgba(33, 39, 98, 0.5);
}
#kominkamachiya:hover {
    background-image: url(../images/menu_kominkamachiya_on.jpg);
    background-repeat: no-repeat;
}

#profile{
    position: relative;
    width: calc(100% +10px);
    height: auto;
    margin: 0px 10px 0px 0px;
    color: rgba(33, 39, 98, 0.5);
    background-image: url(../images/menu_profile.jpg);
    background-size:contain;
    background-repeat: no-repeat;
}
#profile:hover {
    background-image: url(../images/menu_profile_on.jpg);
    background-repeat: no-repeat;
}
#tanaka{
    position: relative;
    height: 30px;
    margin: 15px 10px 0px 0px;
    background-image: url(../images/menu_tanaka.jpg);
    background-size:contain;
    background-repeat: no-repeat;
    color: rgba(33, 39, 98, 0.5);
}
#tanaka:hover {
    background-image: url(../images/menu_tanaka_on.jpg);
    background-repeat: no-repeat;
}
#aoyama{
    position: relative;
    height: 30px;
    margin: 0px 10px 0px 0px;
    background-image: url(../images/menu_aoyama.jpg);
    background-size:contain;
    background-repeat: no-repeat;
    color: rgba(33, 39, 98, 0.5);
}
#aoyama:hover {
    background-image: url(../images/menu_aoyama_on.jpg);
    background-repeat: no-repeat;
}


#sansaku{
    position: relative;
    width: calc(100% +10px);
    height: auto;
    margin: 0px 10px 0px 0px;
    color: rgba(33, 39, 98, 0.5);
    background-image: url(../images/menu_sansaku.jpg);
    background-size:contain;
    background-repeat: no-repeat;
}
#sansaku:hover {
    background-image: url(../images/menu_sansaku_on.jpg);
    background-repeat: no-repeat;
}

#hanshin{
    position: relative;
    width: calc(100% +10px);
    height: auto;
    margin: 0px 10px 0px 0px;
    color: rgba(33, 39, 98, 0.5);
    background-image: url(../images/menu_hanshin.jpg);
    background-size:contain;
    background-repeat: no-repeat;
}
#hanshin:hover {
    background-image: url(../images/menu_hanshin_on.jpg);
    background-repeat: no-repeat;
}

#contact{
    position: relative;
    width: 100%;
    height: auto;
    margin: 0px 10px 0px 0px;
    color: rgba(33, 39, 98, 0.5);
    background-image: url(../images/menu_contact.jpg);
    background-size:contain;
    background-repeat: no-repeat;
}
#contact:hover {
    background-image: url(../images/menu_contact_on.jpg);
    background-repeat: no-repeat;
}

p {
    font-family: "ヒラギノ明朝 ProN W3", "HiraMinProN-W3", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
    font-size: 12px;
    line-height: 1.8em;
    margin: 10px 20px 10px 20px;
}

.p_center {
    margin: 35px 10px 20px 0px;
    text-align: center;
    padding: 0px;
}

#catch_copy {
    width: 90%;
    height: 35px;
    margin-top: 50px;
    margin-left: 20px;
    color: transparent;
    background-image: url(../images/catch_copy.jpg);    
    background-repeat: no-repeat;
    background-size:contain;
}

hr{
    margin: 0;
    height: 1px;
    background-color: #aaa;
    color: #aaa;
    border: none;
}

footer {
    margin-top: 20px;
    margin-right: 20px;
    text-align: right;
    font-size: 12px;
}

/*
 *	Media Queries
 *-------------------------------------------------------------------------*/

@media only screen and (max-width: 910px) {
    #slideshow{
        width: 45%;
        margin-left: 25px;
    }
    #explain{
        width: 38%;
        margin-left: 20px;
        padding-left: 0px;
    }
}

@media only screen and (max-width: 569px) {
    #main {
        width: 72%;
    }
    #sidemenu {
        width: 28%;
    }
    #main .content .works_s {
        width: calc(50% - 26px);
        vertical-align: top;
    }
    #main .content .works_w {
        width: calc(100% - 26px);
        vertical-align: top;
    }
    #main .content .case_name {
        padding-top: 5px;
        text-align: center;
        font-size: 14px;
    }
    #main .name {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    #main .content .left #profile_photo {
        width: 90%;
        height: auto;
        margin: 0 5% 0 5%;
        object-fit: contain;
    }
    #slideshow{
        width: 100%;
        height: 100%;
        margin: 0px;
        margin-top: 10px;
        padding: 0px;
    }
    #explain{
        float: left;
        width: 100%;
        margin: 0px;
        padding: 10px;
    }
    #main .content .right {
        width: 100%;
        float: right;
    }
    #main .content .left {
        width: 100%;
        float: right;
    }
    #omoi_top {
        width: calc(215px * 0.7);
        height: calc(40px * 0.7);
        margin: 20px 0px 0px 5%;
        background-size: contain;
    }
    #sekkei_top {
        width: calc(215px * 0.7);
        height: calc(40px * 0.7);
        margin: 20px 0px 0px 5%;
        background-size: contain;
    }
    #works_top {
        width: calc(190px * 0.7);
        height: calc(40px * 0.7);
        margin: 20px 0px 0px 5%;
        background-size: contain;
    }
    #profile_top {
        width: calc(200px * 0.7);
        height: calc(40px * 0.7);
        margin: 20px 0px 0px 5%;
        background-size: contain;
    }
    #main .name {
        margin-left: 5%;
        width: 90%;
        object-fit: contain;
    }
    h2{
        margin: 30px 5% 20px 5%;
    }
    h3{
        margin: 20px 0px 10px 5%;
    }
    h4{
        margin: 0px 0px 0px 10%;
        font-size: 12px;
        font-weight: bold;
    }
    #catch_copy {
        width: calc(340px * 0.64);
        height: calc(45px * 0.64);
        margin-left: 5%;
        background-image: url(../images/catch_copy_mini.jpg);   
        background-size:contain;
    }
    #to_kominka {
        width: calc(310px * 0.7);
        height: calc(80px * 0.7);
        background-image: url(../images/to_kominka_mini.jpg);
        background-size: contain;
    }
    p {
        margin: 10px 5% 10px 5%;
    }
    footer {
        margin-right: 5%;
    }
    #main .left img {
        padding-right: 5px;
    }
}
