@font-face {
    font-family: "manrope";
    src: url("./fonts/Manrope-Regular.ttf") format("opentype");
    font-weight: normal;
}

@font-face {
    font-family: "manrope";
    src: url("./fonts/Manrope-Bold.ttf") format("opentype");
    font-weight: bold;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body,
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    font-family: Arial, Meiryo, sans-serif;
    font-weight: normal;
    font-weight: 400;
    margin: 0 auto;
    line-height: 1.8;
    letter-spacing: 0.05em;
    color: #333;
    position: relative;
    background: #fff;
}

p {
    margin: 1em 0;
}

a {
    color: #0075c2;
    display: inline-block;
    transition: all 0.5s ease;
    text-decoration: none;
}

a:hover {
    color: #555;
    border: none;
    opacity: .75;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: top;
    aspect-ratio: 4 / 3;
}

@media (min-width:1024px) {

    body,
    html {
        font-size: 18px;
    }
}

.center {
    text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 2em 0 1em;
    font-weight: normal;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.4rem;
}

h5 {
    font-size: 1.2rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin: 1rem 0;
}

ul,
ol {
    margin: 1rem 2rem;
}

li {
    margin-bottom: 0.25rem;
}

.sub_text {
    font-size: 0.75em;
}

/*** LAYOUT ***/

.container {
    margin: 0 auto;
    width: 80%;
}

.inner {
    padding: 5vw;
}

.rows {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.col-4 {
    width: 25%;
}

.col-3 {
    width: 33%;
    width: calc(100% / 3);
}

.col-2 {
    width: 50%;
}

@media (max-width: 1023px) {

    .col-4,
    .col-3 {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .rows {
        display: block;
    }

    .col-2,
    .col-3 {
        width: 100%;
        display: block;
    }
}

/*** TARGET BLANK ***/
a[target="_blank"]:after {
    content: " ";
    display: inline-block;
    width: 1em;
    height: 1em;
    background: url(../img/blank.svg) no-repeat center center;
    background-size: 1em 1em;
    margin-left: 7px;
    vertical-align: text-top;
}

/*** HEADER ***/
#header {
    width: 100%;
    line-height: 1;
    z-index: 9;
    margin: 0 auto;
    padding: 1rem 5vw;
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.home #header {
    position: absolute;
    top: 0;
    left: 0;
}

#logo {
    width: 10rem;
    height: 4rem;
    display: block;
    overflow: hidden;
    position: relative;
    z-index: 99;
    max-width: calc(95% - 8rem);
}

#logo a {
    display: block;
    width: 100%;
    height: 100%;
    text-indent: -999%;
    transition: all 0s;
    background: url(./images/logo.png) no-repeat center center/contain;
}

.header_contact {
    display: flex;
}

.header_contact-item {
    width: 4rem;
    height: 4rem;
}

.header_contact-item a {
    display: block;
    width: 100%;
    height: 100%;
    background: #FFF;
    text-align: center;
    font-size: 0.6rem;
}

.header_contact-item a svg {
    height: 2.75rem;
    width: 4rem;
    padding: 0.5rem 0 0.25rem;
    fill: #0075c2;
}

#header_contact-item-tel a {
    background: #0075c2;
    color: #FFF;
}

#header_contact-item-tel a svg {
    fill: #FFF;
}

.tel_number,
.header_contact-tel-subtext {
    display: none;
}

@media screen and (min-width:769px) {
    #header_contact-item-tel {
        width: 15rem;
    }

    #header_contact-item-tel a span {
        display: none;
    }

    .tel_number,
    .header_contact-tel-subtext {
        display: block;
    }

    #header_contact-item-tel a svg {
        height: 1.75rem;
        width: 1.75rem;
        padding: 0;
        margin-right: 0.25rem;
    }

    .header_contact-tel-inner {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.75rem 0 0.25rem;
    }

    .tel_number {
        font-size: 1.5rem;
        font-family: 'manrope';
        font-weight: bold;
    }
}

/*** FOOTER ***/
#footer {
    background: #333;
    color: #FFF;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.75rem;
    font-family: 'manrope';
}

/******/
#keyvisual {
    width: 100%;
    min-height: 75vh;
    background: url(./images/keyvisual.jpg) no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem 10vw;
}

#keyvisual h1 svg {
    width: 75vw;
    height: 37.5vw;
}

@media screen and (min-width:1024px) {

    #keyvisual h1 svg {
        width: 50vw;
        height: 25vw;
    }
}

.section_header {
    padding: 2rem 0;
}

.section_header .header-title {
    color: #0075c2;
}

.section_header .header-title h2 {
    font-size: 1rem;
    margin: 0;
}

.section_header .header-title span {
    display: block;
    font-size: 2rem;
    font-family: 'manrope';
    font-weight: bold;
    line-height: 1.3;
}

.section_header.rows {
    align-items: center;
}

.section_header.rows p {
    flex: 1;
    margin: 0;
    font-size: 0.8rem;
}

.section_header.rows .header-title {
    margin: 0 2rem 1rem 0;
}

#services {
    margin-bottom: 5vw;
}

.service_item {
    width: 90%;
    margin: 0 auto;
    background: #e8f3fe;
    border-top: 5px solid #0075c2;
}

.service_item:not(.service_item-first) {
    margin-top: 2rem;
}

.service_item-inner {
    padding: 5vw;
}

.service_item-img figure {
    width: 100%;
    height: 100%;
    position: relative;
}

.service_item-img figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service_item h3 {
    margin-top: 0;
    font-weight: bold;
}

.service-block {
    background: #0075c2;
    color: #FFF;
    font-size: 0.8rem;
}

.service-block:nth-child(2) {
    background: #1792e4;

}

.service-block h4 {
    margin: 0;
    font-weight: bold;
}

.service-block h4 span {
    border: 2px solid #FFF;
    color: #FFF;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    font-size: 1rem;
    font-weight: normal;
}

.service-block p {
    margin-bottom: 0;
}

.service_detais .service_item-inner {
    padding: 0 5vw;
}

.service_detais details {
    background: #0075c2;
    color: #FFF;
    padding: 1rem 5vw;
    transition: all .5s;
}

.service_detais details summary {
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    text-decoration: underline;
}

.service_detais.service_item-third details {
    background: #dce1e5;
    color: #333;
}

details {
    &::details-content {
        @media (prefers-reduced-motion: no-preference) {
            transition-duration: 300ms;
            transition-property: content-visibility, opacity;
            transition-behavior: allow-discrete;
        }
    }

    &:not([open])::details-content {
        opacity: 0;
    }
}

#information .section_header {
    padding-top: 0;
}

#flow {
    padding: 0 5vw;
}

#flow h3 {
    margin: 0;
    font-weight: bold;
    font-size: 1.25rem;
}

.flow_item {
    margin-left: 3.5rem;
    border-left: 1px solid #0075c2;
    margin-bottom: 2rem;
    padding-left: 1rem;
    position: relative;
}

.flow_item i {
    position: absolute;
    top: 0;
    left: -3.5rem;
    font-size: 2rem;
    color: #0075c2;
    line-height: 1;
    font-family: 'manrope';
    width: 2rem;
    text-align: right;
}

#outline {
    background: #333;
    color: #FFF;
    padding: 0 2.5vw;
}

#outline .section_header .header-title {
    color: #FFF;
}

#outline table {
    width: 100%;
    border-spacing: 0;
}

#outline table th,
#outline table td {
    padding: 1rem;
    border-bottom: 1px solid #555;
}

#outline table th {
    vertical-align: top;
    text-align: left;
    color: #CCC;
    font-weight: normal;
}

#contact {
    background: url(./images/keyvisual.jpg) no-repeat center center/cover;
}

#contact .contact-inner {
    background: rgba(29, 39, 68, 0.5);
    padding: 5vw 0;
    text-align: center;
    color: #FFF;
    fill: #FFF;
}

#contact .header-title {
    color: #FFF;
}

.contact_tel {
    font-size: 2rem;
    font-family: 'manrope';
    font-weight: bold;
    display: inline-block;
    padding-left: 2.5rem;
    position: relative;
    line-height: 2rem;
}

.contact_tel svg {
    width: 2rem;
    height: 2rem;
    position: absolute;
    top: 0;
    left: 0;
}

.contact_tel a {
    color: #FFF;
}

#contact .form_block {
    padding: 5vw;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    margin-bottom: 3rem;
}

#contact .form_block form {
    margin-top: 2rem;
}