.wrapper {
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
}

header{
    max-width: 375px;
    width: 100%;
    text-align: center;
}
.ahiru_img{
    width: 100%;
}
.comp{
    width: 100%;
}
.line_c{
    font-weight: bold;
    text-align: left;
    padding-left: 10px;
}
.tel{
    font-weight: bolder;
    color: red;
    font-size: large;
}
.menu_box{
    border-style: ridge;
    border-left-style: none;
    border-right-style: none;
    display: flex;
    justify-content: center;
   
} 

h5{
    color: green;
    margin-bottom: 0px;
    cursor: pointer;
    font-size: small;
}
.mine{
    color: rgba(128, 128, 128, 0.8);
}

.menu_child02 {
    background-color:white;
    font-weight: bold;
    color: blue;
    height: 0;
    opacity: 0;
    visibility: hidden;
    text-align: left;
    transition: .5s;
    font-size: x-small;
}

.menu_child02.active {
    height: 14rem;
    opacity: 1;
    visibility: visible;
    text-align: left;
    line-height: 3;
}

.menu_child03 {
  background-color: white;
  color: blue;
  font-weight: bold;
  height: 0;
  opacity: 0;
  visibility: hidden;
  text-align: left;
  transition: .3s;
  font-size: x-small;
}
.menu_child03.active {
  height: 8rem;
  opacity: 1;
  visibility: visible;
  text-align: left;
  line-height: 3;
}
.menu_child04 {
    background-color: white;
    color: blue;
    font-weight: bold;
    height: 0;
    opacity: 0;
    visibility: hidden;
    text-align: left;
    transition: .2s;
    font-size: x-small;
}
.menu_child04.active {
    height: 4rem;
    opacity: 1;
    visibility: visible;
    text-align: left;
    line-height: 3;
}
.container{
    text-align: center;
}
h2 span{
    font-size: medium;
}
h1 span{
    color: rgb(3, 117, 117);
    text-shadow: 2px 8px 3px silver;
    /*border-bottom:double 5px rgb(3, 117, 117);*/
}
.cars{
    width: 100%;
}
.car_name{
    font-size: medium;
    font-weight: 600;
    text-align: left;
}
.text_box{
    padding: 10px 0;
}
.photo{
    padding:10px auto;
}
.car_text{
    font-size:small;
    text-align: left;
    border-bottom-style:ridge ;
}


footer{
    border-top-style:ridge ;
    display: flex;
    flex-direction: column;
}
.name{
    background: rgb(53, 96, 170);
    height: 60px;
    line-height: 60px;
    border-radius: 20px;
    width: 80%;
    margin: 0 auto;
    font-weight:bold;
    text-decoration:none;
    text-align: center;
}
/*<a>タグでリンクが付いている文字列の色を変える
　:link ,:visited, :hover, :active の順番で記述する*/
.name :link {
    color:#fff;
    }
    
.name :visited {
    color:#fff;
    }
    
.name :hover {
    color:#FF0099;
    text-decoration:underline;
    }
    
.name :active {
    color:#33CC00;
}
.footer_left{
    text-align: center;
}
.company_map{
    text-align: center;
}


@media screen and (min-width:768px) and (max-width:1024px){
    .wrapper{
        width: 100%;
        max-width: 768px;
    }
    header{
        width: 100%;
        max-width:768px;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
       
    .comp{
        width: 55%;
        padding-left: 15px;
    }
    .line_c{
        font-weight: bold;
        text-align: left;
        padding-left: 10px;
    }
    
    .menu_box{
        width:768px;
        border-style: ridge;
        border-left-style: none;
        border-right-style: none;
        display: flex;
        justify-content: space-evenly;
        
    }
    h5{
        font-size: large;
    }
    .menu_child02, .menu_child03, .menu_child04{
        font-size: medium;
    }
    .menu_child02.active{
        height: 21rem;
    }
    .menu_child03.active{
        height: 12rem;
    }
    .menu_child04.active{
        height: 6rem;
    }
    .cars{
        border-bottom-style:ridge ;
    }
    .car_name{
        font-size: medium;
        font-weight: 600;
        text-align: left;
    }
    .text_box{
        padding: 10px 0;
        display: flex;
    }
    .photo{
        padding:10px auto;
    }
    .car_text{
        font-size:small;
        text-align: left;
        float: right;
        margin-left: 15px;
        text-indent: 1em;
        border-bottom-style:none ;
    }
 
    footer{
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
    }       
    .name{
        background: rgb(53, 96, 170);
        height: 50px;
        line-height: 50px;
        border-radius: 20px;
        width: 300px;
        margin: 0 auto;
        font-weight:bold;
        text-decoration:none;
    }
    .company_map{
        margin-top: 20px;
    }
}

@media screen and (min-width:1024px){
    .wrapper{
        width: 100%;
        max-width: 1024px;
    }
    header{
        width: 100%;
        max-width:1024px;
        display: flex;
        flex-wrap: wrap;
        justify-content:space-evenly;
    }
       
    .comp{
        width: 55%;
        padding-left: 15px;
    }
    .line_c{
        font-weight: bold;
        text-align: left;
        padding-left: 10px;
    }
    .tel{
        font-weight: bolder;
        color: red;
        font-size: large;
    }
    .menu_box{
        width:1024px;
        border-style: ridge;
        border-left-style: none;
        border-right-style: none;
        display: flex;
        justify-content: space-evenly;
        
    }
    h5{
        font-size: large;
    }
    .menu_child02, .menu_child03, .menu_child04{
        font-size: medium;
    }
    .menu_child02.active{
        height: 21rem;
    }
    .menu_child03.active{
        height: 12rem;
    }
    .menu_child04.active{
        height: 6rem;
    }
    .cars{
        border-bottom-style:ridge ;
    }
    .car_name{
        font-size: medium;
        font-weight: 600;
        text-align: left;
    }
    .text_box{
        padding: 10px 0;
        display: flex;
    }
    .photo{
        padding:10px auto;
    }
    .car_text{
        font-size:small;
        text-align: left;
        float: right;
        margin-left: 15px;
        text-indent: 1em;
        border-bottom-style:none ;
    }
    footer{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    }
    .name{
        background: rgb(53, 96, 170);
        height: 50px;
        line-height: 50px;
        border-radius: 20px;
        width: 300px;
        margin: 0 auto;
        font-weight:bold;
        text-decoration:none;
    }
    .company_map{
        margin-top: 20px;
    }
}