﻿.index-why-box{
    width: 1920px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
}
.index-why-all-box{
    width: 1300px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-size: 0;
    box-sizing: border-box;
    padding-top: 60px;
}
.index-why-title-box h2{
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #93221b;
    line-height: 40px;
    text-align: center;
}
.index-why-text-box{
    font-size: 16px;
    line-height: 40px;
    letter-spacing: 0.06em;
    text-align: center;
    margin-top: 40px;
}

.index-why-icon{
    width: calc(100% / 4);
    display: inline-block;
    vertical-align: top;;
    text-align: center;
}
.index-why-icon span{
    width: 140px;
    height: 140px;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.7);
    border-radius: 50%;
    display: inline-flex;
    display: -webkit-inline-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction: column;
    position: relative;
    top: 70px;
}




.index-why-info-box{
    width: 100%;
    display: block;
    background-color: #93221b;
}
.index-why-info-all-box{
    width: 1300px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    font-size: 0;
}
.index-why-info{
    width: calc(100% / 4);
    height: 365px;
    box-sizing: border-box;
    padding: 0 10px;
    padding-top: 80px;
    vertical-align: top;
    display: inline-block;
    border-left: 1px solid #fff;
    position: relative;
}
.index-why-info:last-child{
    border-right: 1px solid #fff;
}
.index-why-info-name{
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 0.06em;
    color: #fff;
    text-align: center;
    display: block;
    width: 100%;
}
.index-why-info-text{
    font-size: 14px;
    color: #fff;
    letter-spacing: 0.06em;
    line-height: 40px;
    text-align: justify;
}
.index-why-info-border{
    width: 1px;
    height: 100%;
    position: absolute;
    top: 0;
    left: -1px;
    overflow: hidden;
}
.index-why-info-border.border-right{
    left: inherit;
    right: -1px;
}
.index-why-info-border:after{
    content: '';
    width: 100%;
    height: 100%;
    display: block;
    border-left: 6px dotted #93221b;
    opacity: 0.6;
}
.rwd-index-why-icon{
    display: none;
}

@media only screen and (max-width: 1300px){
    .index-why-all-box,
    .index-why-info-all-box{
        width: 1200px;
    }
}
@media only screen and (max-width: 1200px){
    .index-why-all-box,
    .index-why-info-all-box{
        width: 1000px;
    }
    .index-why-info{
        height: 400px;
    }
}
@media only screen and (max-width: 1000px){
    .index-why-all-box,
    .index-why-info-all-box{
        width: 750px;
    }
    .index-why-info{
        width: 50%;
        height: inherit;
        position: static;
        border: none;
        padding-top: 0;
        padding: 20px 10px;
    }
    .index-why-info-border{
        display: none;
    }
    .index-why-info:nth-child(1) .index-why-info-border{
        left: 0;
        display: block;
        background-color: #fff;
    }
    .index-why-info:nth-child(2) .index-why-info-border{
        left: calc(50% - 1px);
        display: block;
        background-color: #fff;
    }
    .index-why-info:nth-child(3) .index-why-info-border{
        left: inherit;
        right: 0;
        display: block;
        background-color: #fff;
    }
    .index-why-info:nth-child(4) .index-why-info-border{
        width: 100%;
        height: 1px;
        left: 0;
        top: calc(50% - 1px);
        display: block;
        background-color: #fff;
    }
    .index-why-info:nth-child(4) .index-why-info-border:after{
        border-left: none;
        border-top: 6px dotted #93221b;
        opacity: 1;
    }
    .index-why-info:nth-child(4) .index-why-info-border.border-right{
        display: none;
    }
    .index-why-info:nth-child(4){
        border-right: none;
    }
    .index-why-icon{
        display: none;
    }
    .rwd-index-why-icon{
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    .rwd-index-why-icon span{
        top: 0;
    }
    .index-why-text-box{
        margin: 40px 0;
    }
}
@media only screen and (max-width: 750px){
    .index-why-all-box,
    .index-why-info-all-box{
        width: 550px;
    }
    .index-why-title-box h2 {
        font-size: 26px;
        line-height: 36px;
    }
    .index-why-info-name{
        font-size: 18px;
    }
}
@media only screen and (max-width: 550px){
    .index-why-all-box{
        width: 400px;
        padding-top: 20px;
    }
    .index-why-info-all-box{
        width: 400px;
    }
    .index-why-title-box h2 {
        font-size: 20px;
        line-height: inherit;
    }
    .index-why-text-box{
        margin: 20px 0;
        font-size: 14px;
        line-height: 2;
    }
    .index-why-icon span{
        width: 100px;
        height: 100px;
    }
    .index-why-info{
        width: 100%;
    }
    .index-why-info:nth-child(n) .index-why-info-border{
        display: none;
    }
    .index-why-info-name{
        font-size: 16px;
    }
    .index-why-info-text{
        font-size: 12px;
        line-height: 2;
    }
}
@media only screen and (max-width: 400px){
    .index-why-all-box,
    .index-why-info-all-box{
        width: 300px;
    }
}



@media only screen and (min-width: 1000px){
    .index-why-title-box h2,
    .index-why-text-box p,
    .index-why-icon,
    .index-why-info{
        opacity: 0;
    }
    .index-why-title-box.anima h2{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .index-why-text-box.anima p{
        animation: fade 1s ease 0s 1 both;
    }
    .index-why-icon-box.anima .index-why-icon:nth-child(1){
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .index-why-icon-box.anima .index-why-icon:nth-child(2){
        animation: fadeInDown 1s ease 0.1s 1 both;
    }
    .index-why-icon-box.anima .index-why-icon:nth-child(3){
        animation: fadeInDown 1s ease 0.2s 1 both;
    }
    .index-why-icon-box.anima .index-why-icon:nth-child(4){
        animation: fadeInDown 1s ease 0.3s 1 both;
    }
    .index-why-info-all-box.anima .index-why-info:nth-child(1){
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .index-why-info-all-box.anima .index-why-info:nth-child(2){
        animation: fadeInUp 1s ease 0.1s 1 both;
    }
    .index-why-info-all-box.anima .index-why-info:nth-child(3){
        animation: fadeInUp 1s ease 0.2s 1 both;
    }
    .index-why-info-all-box.anima .index-why-info:nth-child(4){
        animation: fadeInUp 1s ease 0.3s 1 both;
    }
}