body {
    font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","游ゴシック Medium",YuGothic,YuGothicM,"Hiragino Kaku Gothic ProN",メイリオ,Meiryo,sans-serif;
}

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

.m-b-30 {
    margin-bottom: 30px;
}

.container {
    max-width: 980px;
}

.color-skyblue {
    color: #1fa8c1;
}

.color-blue {
    color: #287780;
}

#top {
    padding-top: 130px;
}

#top .container {
    padding-left: 0;
    padding-right: 0;
}

.top-sun {
    width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    text-align: center;
}

.top-sun img {
    width: 100%;
}

.top-message {
    margin-bottom: 30px;
}

.top-message p {
    font-size: 22px;
    text-align: center;
    letter-spacing: 2px;
    font-family: Georgia,游明朝,"Yu Mincho",YuMincho,"Hiragino Mincho ProN",HGS明朝E,メイリオ,Meiryo,serif;
}

.top-search {
    max-width: 90%;
    margin-bottom: 150px;
    margin-left: auto;
    margin-right: auto;
}

.top-search form {
    width: 100%;
    max-width: 400px;
    border: 1px solid #575757;
    margin: 0 auto;
    box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.3);
    vertical-align: middle;
}

.top-search .form-control {
    width: calc(100% - 45px);
    border: none;
    width: 100%;
    height: 40px;
    border-radius: 0px;
    font-size: 18px;
    background-color: #ffffff;
}

.top-search input.form-control:focus,
.top-search .input-group-btn button:focus{
    outline-color: transparent;
    outline-style: none;
    outline: none;
}

.top-search .input-group-btn {
    width: 40px;
}

.top-search .input-group-btn button {
    height: 40px;
    border: none;
    width: 40px;
    background-image: url('../img/search.png');
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #ffffff;
}

.top-family img {
    width: 100%;
    vertical-align: bottom;
}

#category,#message,footer,#register,#law {
    background-color: #d7edf1;
}

#category {
    padding-top: 60px;
}

.category-list-item {
    padding-top: 80px;
    padding-bottom: 30px;
    position: relative;
}

.category-list-item-img {
    width: 120px;
    height: 120px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    text-align: center;
}

.category-list-item-img img {
    max-width: 100%;
    max-height: 100%;
}

.category-list-item-title {
    margin-bottom: 20px;
}

.category-list-item-title h4 {
    font-size: 20px;
    text-align: center;
    font-weight: 600;
    font-family: Georgia,游明朝,"Yu Mincho",YuMincho,"Hiragino Mincho ProN",HGS明朝E,メイリオ,Meiryo,serif;
}

.category-list-item-description p {
    text-align: center;
    line-height: 25px;
}

.category-list-item > a {
    transition: background-color 0.3s;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
}

.category-list-item > a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#message {
    padding-top: 80px;
    padding-bottom: 120px;
}

#message .container {
    max-width: 860px;
}

#message h2 {
    font-size: 30px;
    text-align: center;
    border-bottom: 1px solid #3c818b;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-family: Georgia,游明朝,"Yu Mincho",YuMincho,"Hiragino Mincho ProN",HGS明朝E,メイリオ,Meiryo,serif;
}

#message p {
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 50px;
}

#message p:last-child {
    margin-bottom: 0;
}

#register {
    padding-bottom: 100px;
}

#register .register-btn {
    display: block;
    color: #ffffff;
    font-size: 24px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.3s;
    background: linear-gradient(#f99334, #dd7412);
    border: 1px solid #909090;
}

#register .register-btn:hover {
    background: linear-gradient(#dd7412, #f99334);
}

#register .law-link {
    color: #2d2d2d;
    text-decoration: underline;
}

footer .copyright {
    font-size: 14px;
    text-align: center;
    padding: 10px;
    border-top: 1px solid #000000;
}

@media screen and (max-width: 767px){
    .hidden-xs {
        display: none;
    }
    
    #top {
        padding-top: 50px;
    }
    
    .top-sun {
        width: 60%;
        max-width: 300px;
    }
    
    .top-message p {
        line-height: 35px;
    }
    
    .top-search {
        margin-bottom: 60px;
    }
    
    #category {
        padding-top: 30px;
    }

    #law th,
    #law td {
        display: block;
        border-bottom: none;
    }
    #law table tr:last-child td {
        border-bottom: 1px solid #4d4d4d;
    }
}

@media screen and (min-width: 768px){
    .visible-xs {
        display: none;
    }
}