@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@300;400;500;800&display=swap");

* {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    font-size: 100%;
    vertical-align: baseline;
    box-sizing: border-box;
}

html {
    font-size: 28px;
    line-height: 2;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: "M PLUS Rounded 1c", Helvetica, Verdana, Arial, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "游ゴシック", "Yu Gothic", YuGothic, "メイリオ", Meiryo, "ＭＳ Ｐゴシック", sans-serif;
    font-weight: 400;
    color: #000;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

@media (hover: hover) {
    a:hover {
        opacity: 0.5;
    }
}

/* トップページ */
.top-page {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 0 1rem;
    width: 92.8571428571%;
    max-width: 1300px;
    margin: 0 auto;
    flex: 1;
}

header {
    margin-bottom: 1.5rem;
}

.logo a {
    display: block;
    width: 20rem;
}

.logo a svg {
    width: 100%;
    height: auto;
}

.main-nav {
    margin-bottom: 1rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.main-nav li {
    margin-top: 1.2rem;
}

.main-nav li:first-child {
    margin-top: 0;
}

.main-nav a {
    display: block;
}

.main-nav a svg {
    height: 3.5rem;
    width: auto;
}

.top-footer {
    margin-top: auto;
    width: 100%;
}

.top-footer .footerInner {
    width: 92.8571428571%;
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 0.5rem;
}

.top-footer p {
    font-size: 0.75rem;
    font-weight: 300;
    color: #000;
}

/* コンテンツセクション */
.content-section {
    display: none;
    min-height: 100vh;
}

.content-section:target {
    display: block;
}

.content-section:target ~ .top-page {
    display: none;
}

.section-inner {
    width: 92.8571428571%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.content-section h2 {
    margin-bottom: 1.6875rem;
}

.content-section h2 svg {
    height: 5rem;
    width: auto;
}

.section-body {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.section-body > p {
    font-size: 0.5714285714rem;
    font-weight: 400;
    line-height: 2;
    margin-top: 1.875rem;
}

.section-body > p:first-child {
    margin-top: 0;
}

.detail {
    margin-top: 1.875rem;
}

.detail h3 {
    margin-bottom: 1.875rem;
}

.detail h3 svg {
    height: 2.5rem;
    width: auto;
}

.detail p {
    font-size: 0.5714285714rem;
    font-weight: 400;
    line-height: 2;
}

.service-item {
    margin-top: 1.875rem;
}

.service-item:first-child {
    margin-top: 0;
}

.service-item h3 {
    margin-bottom: 1.875rem;
}

.service-item h3 svg {
    height: 2.5rem;
    width: auto;
}

.service-item p {
    font-size: 0.5714285714rem;
    font-weight: 400;
    line-height: 2;
}

.news-item {
    margin-top: 1.875rem;
}

.news-item:first-child {
    margin-top: 0;
}

.news-item time {
    display: block;
    font-size: 0.875rem;
    font-weight: 300;
    margin-bottom: 0.5em;
}

.news-item p {
    font-size: 0.5714285714rem;
    font-weight: 400;
    line-height: 2;
}

.contact-email {
    margin-top: 1.875rem;
}

.contact-email a {
    font-size: 0.5714285714rem;
    font-weight: 400;
    color: #000;
}

.back-link {
    font-size: 0.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #000;
    margin-top: 2rem;
}

/* レスポンシブ */
@media (max-width: 960px) {
    html {
        font-size: 5.3333333333vw;
        line-height: 1.75;
    }

    body {
        padding-bottom: 5.3571428571rem;
    }

    .top-page {
        width: 88.2352941176%;
        padding: 2rem 0 2rem;
    }

    header {
        margin-bottom: 2.5rem;
    }

    .main-nav li {
        margin-top: 1rem;
    }

    .main-nav a svg {
        height: 2.5rem;
    }

    .section-inner {
        width: 88.2352941176%;
        padding: 2rem 0 3rem;
    }

    .content-section h2 svg {
        height: 3.5rem;
    }

    .content-section h2 {
        margin-bottom: 1.5rem;
    }

    .section-body {
        padding: 0;
    }

    .detail h3 svg,
    .service-item h3 svg {
        height: 2rem;
    }

    .top-footer .footerInner {
        width: 88.2352941176%;
        padding-bottom: 1.7857142857rem;
    }

    .top-footer p {
        font-size: 0.7142857143rem;
    }
}
