/* 共通 */
html {
    font-size: 62.5%;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    color: #47476b;
    margin-top: 10rem;
}

.inner {
    width: 116rem;
    margin: 0 auto;
}

p {
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

.section-title span {
    font-family: "Roboto Slab", sans-serif;
    font-size: 4rem;
    font-weight: 500;
    color: #696969;
    display: inline-flex;
    align-items: center;
}

.section-title span::before {
    content: "";
    width: 12rem;
    height: 0.2rem;
    display: inline-block;
    background-color: #696969;
    margin-right: 1.5rem;
}

#about,
#works,
#contact {
    scroll-margin-top: 10rem;
}

.fadeIn {
    opacity: 0;
    transition: 2s;
}

.fadeIn.show {
    opacity: 1;
}

/* ヘッダー */
.header {
    height: 10rem;
    background-color: #fff;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.header-inner {
    max-width: 116rem;
    height: inherit;
    display: flex;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    width: 10rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.header-logo a {
    height: inherit;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-nav {
    height: inherit;
    display: flex;
    align-items: center;
}

.header-nav-list {
    display: flex;
}

.header-nav-list a {
    text-decoration: none;
    margin-right: 2rem;
}

.header-nav-item {
    list-style: none;
    font-size: 1.6rem;
    font-weight: 500;
    font-family: "Roboto Slab", sans-serif;
    letter-spacing: 0.01em;
    color: #696969;
}

.header-nav-item a {
    transition: 0.3s;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.header-nav-item a:hover {
    opacity: 0.7;
}

/* mv */
.mv {
    background: url(../img/mv.jpg) no-repeat center / cover;
    height: calc(70vh - 10rem);
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.mv::before {
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.mv-title-wrapper {
    z-index: 10;
}

.mv-title {
    font-family: "Roboto Slab", sans-serif;
    font-size: 5rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    color: #fff;
}

.mv-text {
    margin-top: 2.3rem;
    font-size: 2rem;
    font-weight: 500;
    color: #fff;
}

/* aboutセクション */
.about {
    padding: 5rem 0 5rem;
    background-color: #f8f8ff;
}

.about-info {
    margin-top: 4.5rem;
}

.info-item {
    display: flex;
    margin-top: 2rem;
}

.info-item dt {
    width: 13%;
    font-size: 1.8rem;
    border-right: 1px solid #696969;
}

.info-item dd {
    font-size: 1.8rem;
    margin-left: 2rem;
}

/* worksセクション */

.works {
    padding: 5rem 0 5rem;
    background-color: #fff;
}

.works-category {
    margin-top: 4.5rem;
}

.works-cards {
    margin-top: 4.5rem;
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 2rem;
}

.works-card-item {
    width: 32rem;
    text-decoration: none;
    background-color: #f8f8ff;
}

.works-card-item img {
    height: 32rem;
}

.works-title {
    color: #47476b;
    font-size: 1.8rem;
    padding: 1rem 0 1rem 1rem;
}

.works-item h3 {
    font-size: 1.6rem;
}

.works-list {
    display: flex;
    gap: 20px;
}

.works-category a {
    margin-right: 10px;
    color: #333;
    text-decoration: none;
    font-size: 1.4rem;
}

.works-more {
    margin-top: 30px;
    text-align: center;
    font-size: 1.4rem;
}

.works-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.works-nav a {
    text-decoration: none;
}

.works-category span {
    background: #333;
    color: #fff;
    padding: 4px 8px;
    margin-right: 5px;
    font-size: 12px;
}

.works-back {
    margin-top: 40px;
}

.works-back a {
    text-decoration: none;
}

.works-content h2 {
    font-size: 2rem;
    margin-top: 30px;
    border-left: 4px solid #696969;
    padding-left: 10px;
}

.works-detail {
    margin-top: 30px;
    padding: 20px;
    background-color: #F8F8FF;
    border-radius: 10px;
}

.works-detail a {
    color: #fff;
    background: #696969;
    padding: 5px 10px;
    border-radius: 5px;
}

.works-detail li {
    font-size: 1.6rem;
    margin-bottom: 10px;
    display: flex;
}

.works-detail li span {
    width: 120px;
    font-weight: bold;
}

.works-home {
    margin-top: 20px;
    text-align: center;
}

.works-home a {
    text-decoration: none;
    color: #696969;
}

/* コンタクトセクション */
.contact {
    padding: 5rem 0 5rem;
    background-color: #f8f8ff;
}

.contact-title {
    text-align: center;
}

.contact-title span::before {
    width: 6rem;
}

.contact-title span::after {
    content: "";
    width: 6rem;
    height: 0.2rem;
    display: inline-block;
    background-color: #696969;
    margin-left: 1.5rem;
}

.contact-text {
    margin-top: 4.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.contact-text span {
    color: coral;
    text-align: center;
}

.form {
    margin-top: 2rem;
    background-color: #fff;
    padding: 8.5rem 15rem 5rem;
    border-radius: 3rem;
}

.form-item:nth-child(n + 2) {
    margin-top: 2rem;
}

.form-title-wrapper {
    display: flex;
    align-items: center;
}

.form-title {
    font-size: 1.8rem;
}

.required {
    font-size: 1.8rem;
    color: coral;
    margin-left: 0.1rem;
}

.form-input-wrapper {
    margin-top: 0.5rem;
}

.form-input-wrapper input[type="text"],
.form-input-wrapper input[type="email"],
.form-input-wrapper input[type="tel"],
.form-input-wrapper textarea {
    width: 100%;
    font-size: 1.8rem;
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    border: 1px solid #696969;
}

.form-radio {
    position: relative;
    margin-top: 1rem;
}

.form-radio label {
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    position: relative;
}

.form-radio label::before {
    content: "";
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 1px solid #696969;
    border-radius: 50%;
    margin-right: 1rem;
}

.form-radio input[type="radio"]:checked + label::after {
    content: "";
    display: inline-block;
    width: 1.3rem;
    height: 1.3rem;
    background-color: #696969;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0.345rem;
}

.form-radio input[type="radio"] {
    opacity: 0;
    position: absolute;
}

.message-wrapper {
    width: 100%;
}

.form-input-wrapper textarea {
    resize: none;
    width: inherit;
}

.form-agree {
    margin-top: 2rem;
    font-size: 1.8rem;
    text-align: center;
}

.form-btn {
    margin-top: 2rem;
    text-align: center;
}

.btn {
    background-color: #696969;
    border: none;
    padding: 2.5rem 10.5rem;
    border-radius: 5px;
    color: #f8f8ff;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    opacity: 0.7;
}

/* フッター */
.footer {
    background-color: #fff;
    width: 100%;
    padding-bottom: 2rem;
}

.footer-logo {
    text-align: center;
}

.footer-logo a {
    display: inline-block;
    width: 8rem;
}

.footer-logo img {
    width: inherit;
}

.footer-nav {
    text-align: center;
    align-items: center;
}

.footer-nav-list {
    list-style: none;
    display: inline-flex;
    padding: 0;
}

.footer-nav-item {
    font-size: 1.4rem;
    font-weight: 500;
    font-family: "Roboto Slab", sans-serif;
    letter-spacing: 0.01em;
    color: #696969;
}

.footer-nav-item:nth-child(n + 2) {
    margin-left: 2rem;
}

.footer-nav-item a {
    text-decoration: none;
    transition: 0.3s;
}

.footer-nav-item a:hover {
    opacity: 0.7;
}

/* 画面幅1210px以下のとき */
@media screen and (max-width: 1210px) {
    html {
        font-size: calc(10 / 1210 * 100vw);
    }
}

/* 画面幅767px以下のとき */
@media screen and (max-width: 767px) {
    html {
        font-size: 62.5%;
    }

    body {
        margin-top: 7rem;
    }

    .inner {
        width: 90%;
    }

    .section-title span {
        font-size: 3.5rem;
    }

    .section-title span::before {
        width: 9rem;
    }

    #about,
    #works,
    #contact {
        scroll-margin-top: 7rem;
    }

    /* ヘッダー */
    .header {
        height: 7rem;
    }

    .header-inner {
        max-width: 95%;
    }

    .header-logo {
        width: 7rem;
    }

    .header-nav-list {
        padding-left: 0;
    }

    .header-nav-item:last-child a {
        margin-right: 0;
    }

    .header-nav-item {
        font-size: 1.3rem;
    }

    /* mv */
    .mv {
        height: calc(70vh - 7rem);
    }

    .mv-title {
        font-size: 4rem;
        font-weight: 500;
    }

    .mv-text {
        font-size: 1.8rem;
        font-weight: 400;
    }

    /* about */
    .info-item dt {
        width: 20%;
        min-width: 15rem;
    }

    /* works */
    .works-cards {
        grid-template-columns: 1fr;
        row-gap: 1rem;
        width: 32rem;
        margin: 4.5rem auto 0;
    }

    .works-list {
        flex-direction: column;
        gap: 20px;
    }

    .works-item img {
        width: 100%;
        height: auto;
    }

    .works-category {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* contact */
    .contact-title span::before,
    .contact-title span::after {
        width: 5rem;
    }

    .form {
        padding: 8.5rem 2rem 5rem;
    }

    /* フッター */

    .footer-logo a {
        width: 7rem;
    }

    .footer-nav-item {
        font-size: 1.2rem;
    }
}
