@charset "UTF-8";
/* CSS Document */
.consultants {
    max-width: 100%;
}
.consultants h1 {
    text-transform:capitalize;
}

.consultant01{
    background-image: url(../images/common/background.jpg);
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.consultants article li:first-child::after{
    content:'>';
    color: #ccc;
    margin: 0 30px;
}

.consultant02 h2::before {
    content: '';
    width: 20%;
    height: 1px;
    background: #282836;
    display: block;
}
.consultant02 h2::after {
    content: '';
    width: 20%;
    height: 1px;
    background: #282836;
    display: block;
}
.himeji, .minamiosaka, .kobe, .kyoto {
    background: #F7F7F2;
    margin-top: 200px;
    padding-bottom: 2rem;
}
.consultant02 .box01 figure {
    width: 45%;
    margin-top: -50px;
}
.consultant02 .box02{
    background: white;
    width: 50%;
    padding: 1rem;
    position: relative;
    margin-top: 2.5rem;
}
.consultant02 .box02 h3{
    background: #282836;
    padding: 1rem;
    color: white;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.5rem;
    position: absolute;
    display: block;
    width: 100%;
}
.consultant02 .box02 h4{
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.2rem;
}
.consultant02 dl{
    display: flex;
    flex-wrap: wrap;
    width: 80%;
}
.consultant02 dt{
    width: 20%;
    border-bottom: dashed 1px #ccc;
    border-right: solid 1px #ccc;
    margin-bottom: 1rem;
}
.consultant02 dd{
    width: 80%;
    padding-left: 1rem;
    border-bottom: dashed 1px #ccc;
    box-sizing: border-box;
    margin-bottom: 1rem;
}
.consultant02 .box03 figure{
    width: 20vw;    
}
.consultant02 .box03 p {
    width: 50vw;
    padding: 1vw;
    line-height: 2vw;
    font-size: 1.2vw;
}
.consultant02 .box03 h3::after {
    content: '';
    background: #282836;
    height: 1px;
    width: 105%;
    z-index: 10;
    position: absolute;
    top: 4vw;
    left: 50%;
    transform: translateX(-50%);
}
.consultant02 .box03 h3 span {
    position: relative;
    font-size: 1vw;
    margin-right: 3rem;
}
.consultant02 .box03 h3 span::after {
    content: '／';
    position: absolute;
    top: 10%;
    right: -2rem;
    font-size: 1.5rem;
}
.minamiosaka .box01,.kyoto .box01{
    flex-direction: row-reverse;
}
.minamiosaka .box03,.kyoto .box03{
    flex-direction: row-reverse;
}
.himeji .box02 h3, .kobe .box02 h3 {
    top: -4rem;
    left: -4rem;
}
.minamiosaka .box02 h3 , .kyoto .box02 h3{
    top: -4rem;
    right: -4rem;
}
.himeji .box03 h3, .kobe .box03 h3 {
    bottom: 1vw;
    left: 0;
    font-size: 2vw;
    padding: 1vw;
}
.minamiosaka .box03 h3, .kyoto .box03 h3 {
    bottom: 1vw;
    right: 0;
    font-size: 2vw;
    padding: 1vw;
}

@media screen and (max-width: 767px){
.consultant{
    padding-left: 0;
    max-width: 100%;
}
.himeji, .minamiosaka, .kobe, .kyoto {
    width: 90%;
    background: #F7F7F2;
    margin-top: 100px;
    padding-bottom: 2rem;
}
.consultant02 .box01{
    flex-direction: column;
}
.consultant02 .box01 figure {
    width: 100%;
    margin-top: -50px;
}
.consultant02 .box02 {
    background: white;
    width: 100%;
    padding: 1rem;
    position: relative;
    margin-top: 2.5rem;
}
.consultant02 .box02 h3 {
    background: #282836;
    padding: .5rem;
    color: white;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1rem;
    position: absolute;
    display: block;
    width: 100%;
    text-align: center;
}
.consultant02 .box03{
    flex-direction: column;
}
.consultant02 .box03 figure {
    width: 100%;
}
.consultant02 .box03 p {
    width: 100%;
    margin-top: 1rem;
    font-size: 4vw;
    line-height: 6vw;
}
.himeji .box02 h3, .kobe .box02 h3 {
    top: -4rem;
    left: 50%;
    transform: translateX(-50%);
}
.minamiosaka .box02 h3, .kyoto .box02 h3 {
    top: -4rem;
    right: unset;
    left: 50%;
    transform: translateX(-50%);
}
.himeji .box03 h3, .kobe .box03 h3 {
    bottom: -10vw;
    right: unset;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: 100%;
    font-size: 5vw;
}
.minamiosaka .box03 h3, .kyoto .box03 h3 {
    bottom: -10vw;
    right: unset;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: 100%;
    font-size: 5vw;
}
.consultant02 .box03 h3::after {
    content: '';
    background: #282836;
    height: 1px;
    width: 105%;
    z-index: 10;
    position: absolute;
    bottom: 2vw;
    left: 50%;
    transform: translateX(-50%);
    top: unset;
}
.consultant02 .box03 h3 span {
    position: relative;
    font-size: 3vw;
    margin-right: 15vw;
}

}
@media screen and (min-width:768px) and ( max-width:1024px) {
    .consultant{
        max-width: 100%;
    }
    .himeji, .minamiosaka, .kobe, .kyoto {
        width: 90%;
        background: #F7F7F2;
        margin-top: 100px;
        padding-bottom: 2rem;
    }
    .consultant02 .box01{
        flex-direction: column;
    }
    .consultant02 .box01 figure {
        width: 100%;
        margin-top: -50px;
    }
    .consultant02 .box02 {
        background: white;
        width: 100%;
        padding: 1rem;
        position: relative;
        margin-top: 2.5rem;
    }
    .consultant02 .box02 h3 {
        background: #282836;
        padding: .5rem;
        color: white;
        font-family: 'Times New Roman', Times, serif;
        font-size: 1rem;
        position: absolute;
        display: block;
        width: 100%;
        text-align: center;
    }
    .consultant02 .box03{
        flex-direction: column;
    }
    .consultant02 .box03 figure {
        width: 100%;
        height: 40vh;
    }
    .himeji .box03 figure img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        object-position: center 20%;
    }
    .minamiosaka .box03 figure img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        object-position: center center;
    }
    .kobe .box03 figure img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        object-position: center 20%;
    }
    .kyoto .box03 figure img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        object-position: center 20%;
    }
    .consultant02 .box03 p {
        width:  100%;
        padding: 1vw;
        line-height: 3vw;
        font-size: 2.2vw;
    }
    .himeji .box02 h3, .kobe .box02 h3 {
        top: -4rem;
        left: 50%;
        transform: translateX(-50%);
    }
    .minamiosaka .box02 h3, .kyoto .box02 h3 {
        top: -4rem;
        right: unset;
        left: 50%;
        transform: translateX(-50%);
    }
    .himeji .box03 h3, .kobe .box03 h3 {
        bottom: unset;
        top: 45vw;
        right: 0;
        display: block;
        width: 50%;
        left: unset;
    }
    .minamiosaka .box03 h3, .kyoto .box03 h3 {
        bottom: unset;
        right: unset;
        top: 45vw;
        left: 0;
        display: block;
        width: 50%;
    }
}