/* CSS Document */

article{
    padding-bottom: 80px; 
}

#fv{
    margin-bottom: 50px; 
}
#fv h2{
    text-align: left;
    color: #fff;
    padding: 30px 0 30px 20px;
    background: rgba(89, 134, 198, .8);
    font-size: 140%;
    margin-bottom: 50px;
}

#contact{
    margin-bottom: 50px; 
}
#contact h3 {
    font-size: 140%;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 2px;
    color: #5986C6;
    align-items: center;
    gap: 10px;
    padding: 0 5px 15px;
    position: relative;
    margin-bottom: 20px;
}
#contact h3::after {
    content: '';
    display: block;
    width: 100%;
    height: 5px;
    background: #5986C6;
    border-radius: 3px;
    position: absolute;
    bottom: 0;
    left: 0;
}
#contact h4 {
    font-size: 120%;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 2px;
    color: #5986C6;
    margin-bottom: 15px;
}

#contact #support .img{
    text-align: center;
    margin-bottom: 30px;
}

#contact #support #access .map-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin: 30px auto;
  max-width: 900px;
}
#contact #support #access  .map-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 340px;
  text-align: center;
}

#contact #support #access  .map-item p {
  margin-top: 10px;
  line-height: 1.6;
  font-size: 95%;
}

#contact table {
    border-collapse: collapse;
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    table-layout: fixed;
}


#contact table th, 
#contact table td {
    border-bottom: 2px solid #c1c7c6;
    padding: 1em;
    vertical-align: top;
}
#contact table th {
    border-bottom: 2px solid #5986C6;
    font-weight: bold;
    text-align: center;
    width: 30%;
}
#contact table td .row {
    display: flex;
    justify-content:flex-start;
    gap: 10px;
    margin-bottom: 5px;
}

#contact table td .label {
    white-space: nowrap;
    width: 200px;
}

#contact table td .tel {
    white-space: nowrap;
}

#contact #support .supportDetail {
    table-layout: fixed;
    max-width: 1100px;
    margin: 0 auto 50px;    
}
#contact #support .supportDetail th,
#contact #support .supportDetail td{
    text-align: left;
}
#contact #support .supportDetail th{
    background-color: #f4f7fb;
}
#contact #support .supportDetail th:nth-child(1),
#contact #support .supportDetail td:nth-child(1) { width: 68%;} /* お問い合わせ内容 */
#contact #support .supportDetail th:nth-child(2),
#contact #support .supportDetail td:nth-child(2) { width: 16%; } /* 電話 */
#contact #support .supportDetail th:nth-child(3),
#contact #support .supportDetail td:nth-child(3) { width: 16%; } /* FAX */

#contact #support .supportDetailG th:nth-child(1),
#contact #support .supportDetailG td:nth-child(1) { width: 50%;} /* お問い合わせ内容 */
#contact #support .supportDetailG th:nth-child(2),
#contact #support .supportDetailG td:nth-child(2) { width: 18%;} /* グループ */
#contact #support .supportDetailG th:nth-child(3),
#contact #support .supportDetailG td:nth-child(3) { width: 16%; } /* 電話 */
#contact #support .supportDetailG th:nth-child(4),
#contact #support .supportDetailG td:nth-child(4) { width: 16%; } /* FAX */

#contact #founding p a{
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    background: #4A7EBE;
    border-radius: 5px;
    padding: 15px 50px;
    display: flex;
    align-items: baseline;
    vertical-align: baseline;
    gap: 7px;
    position: relative;
    color: #fff;
    width: fit-content;
    margin: 10px 0;
}
#contact #founding p a::before {
    content: url("../module/img/arrow3.svg");
    width: 7px;
    line-height: 0;
}

#contact #automobile p a{
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    background: #4A7EBE;
    border-radius: 5px;
    padding: 15px 50px;
    display: flex;
    align-items: baseline;
    vertical-align: baseline;
    gap: 7px;
    position: relative;
    color: #fff;
    width: fit-content;
    margin: 10px 0;
}
#contact #automobile p a::before {
    content: url("../module/img/arrow3.svg");
    width: 7px;
    line-height: 0;
}

@media screen and (max-width: 480px) {
    #contact table,
    #contact tbody,
    #contact tr,
    #contact th,
    #contact td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    #contact table {
        margin: 30px 0;
    }

    #contact table tr {
        margin-bottom: 20px;
        border: 2px solid #5986C6;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
    }

    #contact table th {
        background-color: #5986C6;
        color: #fff;
        padding: 0.8em 1em;
        border: none;
        width: auto;
        text-align: center;
    }

    #contact table td {
        border: none;
        border-top: 1px solid #c1c7c6;
        padding: 1em;
        word-break: break-word;
    }

    #contact table td a {
        word-break: break-all;
        display: inline-block;
        overflow-wrap: anywhere;
    }

    #contact table td p {
        width: 100%;
        margin: 0;
    }
    
    #contact table td .row {
        justify-content: space-between;
    }

    #contact #support .supportDetail,
    #contact #support .supportDetail tbody,
    #contact #support .supportDetail tr,
    #contact #support .supportDetail th,
    #contact #support .supportDetail td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }
    #contact #support .supportDetail {
        margin: 0 0 40px;
        border: none;
    }
    #contact #support .supportDetail tr {
        border: 2px solid #5986C6;
        border-radius: 10px;
        margin-bottom: 20px;
        overflow: hidden;
        background: #fff;
    }
    #contact #support .supportDetail tr:first-child {
        display: none;
    }
    #contact #support .supportDetail td {
        border: none;
        border-top: 1px solid #e0e6eb;
        padding: 0.8em 1em;
        text-align: left;
        position: relative;
    }
    #contact #support .supportDetail td::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        color: #5986C6;
        margin-bottom: 0.3em;
    }
    #contact #support .supportDetail td:first-of-type {
        border-top: none;
        padding-top: 1.2em;
    }
    #contact #support .supportDetail td {
        font-size: 90%;
        line-height: 1.6;
    }
	
}
