* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Josefin Sans', sans-serif;
}
/***追従するトップへ戻るボタン***/
#page-top {
    position: fixed;
    right: 5px;
    bottom: 20px;
    height: 50px;
    text-decoration: none;
    font-weight: bold;
    transform: rotate(90deg);
    font-size: 90%;
    line-height: 1.5rem;
    color: #737373;
    padding: 0 0 0 35px;
    border-top: solid 1px;
}
#page-top::before {
    content: "";
    display: block;
    position: absolute;
    top: -1px;
    left: 0px;
    width: 15px;
    border-top: solid 1px;
    transform: rotate(35deg);
    transform-origin: left top;
}
/***トップへ戻るボタンここまで***/

/* header */
header {
    width: 1150px;
    margin: 0 auto;
    display: flex;
    height: 70px;
}
nav {
    flex: 3;
    margin-top: 40px;
}
nav ul {
    display: flex;
    justify-content: right;
    gap: 40px;
    padding-right: 1rem;
}
nav li {
    list-style-type: none;
    font-size: 20px;
}
nav li a:link, nav li a:visited {
    color: #253958;
    text-decoration: none;
}
nav li a:hover {
    opacity: 0.6;
    text-decoration: none;
}
nav li a:active {
    opacity: 0.6;
    text-decoration: none;
}
h1 {
    color: #253958;
    flex: 2;
    margin-top: 25px;
    font-weight: 700;
    font-size: 40px;
}
h1 a:link, h1 a:visited {
    color: #253958;
    text-decoration: none;
}
h1 a:hover {
    opacity: 0.6;
}

/* main */
.wrapper {
    width: 1150px;
    margin: 0 auto;
}
.kye-box {
    width: 100%;
    height: auto;
    position: relative;
}
iframe {
    position: absolute;
    width: 100%;
    height: 100%;
}
img {
    width: 100%;
}
section {
    margin-bottom: 40px;
}
h2 {
    font-size: 30px;
    text-align: center;
    margin: 40px 0 25px;
    position: relative;
    display: inline-block;
    padding: 0 55px;
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
}
h2:before,
h2:after {
    content: '';
    position: absolute;
    top: 50%;
    display: inline-block;
    width: 50px;
    height: 5px;
    background-color: #666;
}
h2:before {
    left: 0;
}
h2:after {
    right: 0;
}
.h2 {
    text-align: center;
}

.profile-box {
    display: flex;
    margin: 0 auto;
}
.profile-img {
    flex: 1;
    text-align: center;
    margin-right: 10px;
}
.profile-text {
    flex: 1;
    line-height: 1.8;
}
.items {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}
.item img {
    box-shadow: 0 5px 10px 0 rgba(48, 48, 48, 0.5);
}
.sites {
    display: flex;
    margin: 0 auto;
    gap: 30px;
}
.site-box {
    max-width: 300px;
    margin: 0 auto;
}
.sec2 .site-box-img {
    text-align: center;
    margin-bottom: 15px;
    box-shadow: 0 10px 15px 0 rgba(0, 0, 0, .5);
}
.site-box-img a:hover {
    opacity: 0.7;
}


/* footer */
footer p {
    text-align: center;
    background-color: #253958;
    color: #fff;
    padding: 30px 0;
    margin-top: 20px;
    margin-bottom: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* モバイル対応 */
@media(max-width: 767px) {
    .wrapper {
        width: auto;
        padding: 0 4%;
    }
    header {
        width: auto;
        display: block;
        height: auto;
        margin-bottom: 10px;
    }
    h1 {
        text-align: center;
        margin-bottom: 10px;
        font-size: 35px;
    }
    nav {
        flex: 4;
        margin-top: 0;
    }
    nav ul {
        justify-content: center;
        gap: 30px;
        padding-right: 0;
    }
    .key-img img {
        max-width: 100%;
    }
    h2 {
        margin: 20px 0 25px;
        font-size: 25px;
    }
    .profile-box {
        display: block;
    }
    .items {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .sites {
        display: block;
    }
    .site-box {
        margin-bottom: 30px;
    }

    iframe {
        width: 100%;
    }
    .kye-box {
        width: 100%;
    }
}
