@charset "utf-8";

html {
    height: 100%;
}

body{
    font-family: "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    color: #3f3f3f;
    height: 100%;
}

.wrap_content {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.content {
    flex-grow: 1;
}

a {
    cursor: pointer;
}

a:visited {
    color: #0062a9;
}

a:hover {
    color: #43C6FA;
}

.logo {
    display: flex;
    align-items: center;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    display: inline-block;
    margin-left: 20px;
}

.logo img {
    width: 180px;
}

.key_visual {
    height: 240px;
    background-image: url(../../img/pagettl_bg.jpg);
    background-size: cover;
    background-position: bottom;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1 {
    color: #fff;
    font-size: 2.5rem;
    text-align: center;
}

h1 span {
    display: block;
    font-size: 0.8rem;
}

.main_content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    padding: 25px;
}

#pagetop {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    text-decoration: none;
    display: none;
    color: #FFFFFF;
    text-align: center;
    font-size: 11px;
}

#pagetop a,
#pagetop a:visited {
    display: inline-block;
    transition: 0.5s;
    padding: 5px;
    background-color: #43C6FA;
    border-radius: 3px;
    color: #fff;
}

@media (hover: hover) {
  #pagetop a:hover {
        opacity: 0.4;
        color: #FFF;
    }
}

@media (hover: none) {
    #pagetop a:active {
        opacity: 0.4;
        color: #FFF;
    }
}

#pagetop a:before {
    content: "";
    background-image: url("../../img/chevron-up-solid.svg");
    padding: 5px 10px;
    background-position: center;
    background-repeat: no-repeat;
}

footer {
    background-color: #43C6FA;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 0.8rem;
}

.text_404 {
    padding: 5px;
}

.text_404 a:hover {
    color: #43C6FA;
}

/* スクリーンサイズが768px以下の場合（iPad/スマホ対応） */
@media screen and (max-width: 768px) {
    .logo {
        height: 50px;
    }
    
    .logo img {
        width: 140px;
    }
    
    .key_visual {
        height: 150px;
    }
    
    .key_visual h1 {
        font-size: 2rem;
    }
    
    .main_content {
        flex-direction: column;
    }
    
    footer {
        margin-top: 0;
    }
    
    .copyright span {
        display: block;
    }
}