/* All */

* {
    color: #333;
    box-sizing: border-box;
    font-family: "游ゴシック体", "YuGothic", "游ゴシック", "Yu Gothic", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
}

.hero .title {
    overflow: hidden;
    position: relative;
}

.hero .title:before {
    animation: img-wrap 2s cubic-bezier(.4, 0, .2, 1) forwards;
    background: #fff;
    bottom: 0;
    content: '';
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

@keyframes img-wrap {
    100% {
        transform: translateX(100%);
    }
}

.fade {
    transition: all 2000ms;
    opacity: 0;
    visibility: hidden;
    transform: translate(0px, 50px);
}

.fadein {
    opacity: 1;
    visibility: visible;
    transform: translate(0px, 0px);
}

h1 {
    font-size: 40px;
    line-height: 1.3;
    letter-spacing: 0.2rem;
    font-weight: 900;
}

h2 {
    font-size: 27px;
    line-height: 1.3;
    letter-spacing: 0.2rem;
    font-weight: 600;
}

h3 {
    font-size: 23px;
    line-height: 1.3;
    letter-spacing: 0.2rem;
    font-weight: 600;
}

p {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.1rem;
    margin-top: 10px;
}

dl {
    font-size: 20px;
}

.wrapper {
    /* max-width: 1300px; */
    margin: 0 auto;
}

/* sections */

header {
    display: flex;
    align-items: center;
    padding: 20px;
    width: 100%;
    background-color: white;
}

.top_icon {
    width: 100px;
}

.bottom_line {
    border-bottom: solid 3px #333;
    line-height: 2;
    letter-spacing: 0;
}

.section {
    margin-top: 80px;
}

.section_title {
    font-size: 40px;
    color: #333;
    padding-left: 3%;
}

/* hero */

.hero {
    position: relative;
    height: 800px;
}

.hero img {
    position: absolute;
    width: 100%;
    height: 800px;
    object-fit: cover;
}

.hero .title {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: column;
    left: 50%;
    top: 50%;
    padding: 10px;
    background-color: #FFF;
    transform: translate(-50%, -50%);
    width: 70%;
}

.hero h1, h2 {
    text-align: center;
}

/* description */

.description {
    background-image: url("../img/corp/2.jpg");
    background-size: cover;
    height: 900px;
    position: relative;
}

.description::before {
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: ' ';
}

.description .message {
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    transform: translateX(-50%) translateY(-50%);
}

.description h1 {
    color: #FFF;
    margin-bottom: 30px;
}

.description p {
    color: #FFF;
}

/* services */

.services .items {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding-top: 20px;
}

.services .item {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 30px;
    min-height: 500px;
}

.services img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.services h3 {
    margin-top: 18px;
    padding-left: 16px;
}

.services p {
    padding: 16px;
    text-align: left;
}

.services .btn {
    margin-left: 16px;
    border-radius: 4px;
    border: transparent;
    background-color: rgb(50, 50, 50);
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.1rem;
    width: 200px;
    box-shadow: 0px 4px 24px 0px rgb(0 0 0 / 14%);
}

.services .btn:hover {
    opacity: 0.8;
    transform: scale(1.02, 1.02);
    transition: 0.3s ease;
}

/* news */

.news .item {
    padding: 20px 40px;
}

.news .date {
    color: #999;
    margin-bottom: 4px;
}

/* about */

.about dl {
    padding: 40px 40px;
    min-height: 250px;
}

.about dt {
    float: left;
    clear: left;
    width: 160px;
    font-weight: 800;
    padding-bottom: 20px;
}

.about dd {
    float: left;
}

/* contact */

.contact {
    padding: 50px 0 80px 0;
    background-color: #E6F6EE;
    color: #FFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact .section_title {
    margin: 0 auto;
    letter-spacing: 0;
}

.contact .forms {
    width: 80%;
    max-width: 800px;
}

.contact p {
    margin: 40px 0 8px 8px;
}

.contact .form_text {
    width: 100%;
    height: 50px;
    font-size: 20px;
    padding: 10px;
    border: 1px solid #CCC;
}

.contact .form_textarea {
    margin-bottom: 40px;
    width: 100%;
    height: 200px;
    font-size: 20px;
    padding: 10px;
    border: 1px solid #CCC;
}

.contact .button {
    text-align: center;
}

.contact button {
    text-align: center;
    margin: 0 auto;
    border-radius: 4px;
    border: transparent;
    background-color: rgb(50, 50, 50);
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.1rem;
    width: 400px;
    box-shadow: 0px 4px 24px 0px rgb(0 0 0 / 14%);
}

.contact button:hover {
    opacity: 0.8;
    transform: scale(1.02, 1.02);
    transition: 0.3s ease;
}

/* footer */

footer {
    text-align: center;
    padding: 20px 0 40px 0;
    background-color: #E6F6EE;
    border-top: 1px solid #FFF;
}

footer .copy {
    color: #999;
}

@media screen and (max-width: 768px) {
    .section {
        margin-top: 40px;
    }
    h1 {
        font-size: 6.3vw;
    }
    h2 {
        font-size: 5.5vw;
    }
    h3 {
        font-size: 4.5vw;
    }
    p {
        font-size: 4.3vw;
    }
    .hero {
        height: 400px;
    }
    .hero img {
        height: 400px;
    }
    .hero .title {
        width: 90%;
    }
    .description {
        height: 500px;
    }
    .description .message {
        width: 83%;
        padding-right: 0;
    }
    .section_title {
        font-size: 9vw;
        padding-left: 20px;
    }
    .services .items {
        flex-direction: column;
        align-items: center;
        padding-top: 0;
    }
    .services .item {
        width: 90%;
        min-height: 200px;
        box-shadow: 0 0 0px gray;
        padding: 25px 0;
    }
    .services img {
        height: 250px;
    }
    .services .item:nth-child(1) {
        padding-top: 0;
    }
    .services .item:nth-child(n+2) {
        border-top: 1px dashed #CCC;
    }
    .services .item:last-child {
        padding-bottom: 0;
    }
    .services p {
        padding-top: 0;
    }
    .services .btn {
        margin-left: 16px;
    }
    .news .section_title {
        margin-bottom: -16px;
    }
    .news .item {
        padding: 10px 30px;
    }
    .about .section_title {
        margin-bottom: -16px;
    }
    .about dl {
        padding: 30px;
        font-size: 4.5vw;
    }
    .about dt {
        width: 100%;
        float: none;
        padding-bottom: 8px;
    }
    .about dd {
        margin-left: 0;
        padding-bottom: 20px;
    }
    .contact {
        margin-top: 80px;
        padding-top: 30px;
    }
    .contact .section_title {
        padding-left: 0;
    }
    .contact .forms {
        margin-top: 20px;
    }
    .contact p {
        margin-top: 20px;
    }
    .contact button {
        width: 80%;
    }
}