@charset "utf-8";

/*====================================
ここからメイン
====================================*/
/* 共通 */

@font-face {
    font-family: 'nexa_demobold';
    src: url('../font/nexademo-bold-webfont.woff') format('woff');

    font-weight: normal;
    font-style: normal;
}

body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    color: #333;
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    letter-spacing: 0.07em;
}

.topbox {
    width: 100%;
    position: relative;
}

.topbox:before {
    width: 50%;
    height: 100%;
    top: 0;
    left: 50%;
    content: '';
    position: absolute;
    background-image: url(../images/top.gif);
    z-index: -999;
}

.endbox {
    width: 100%;
    position: relative;
}

.endbox:before {
    width: 50%;
    height: 100%;
    top: 0;
    right: 50%;
    content: '';
    position: absolute;
    background-image: url(../images/top.gif);
    background-position: 100%;
    z-index: -999;
}

#wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    min-height: 100vh;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.one {
    background-color: #f00;
    color: #fff;
}

.two {
    background-color: #fff;
    color: #004eff;
}

.three {
    background-color: #004eff;
    color: #fff;
}


h1 {
    font-family: "nexa_demobold";
    font-size: 6rem;
}

h2 {
    font-family: "nexa_demobold";
    font-size: 2rem;
    line-height: 1.5em;
}

#nav_toggle {
    display: none;
}

/********** ヘッダー **********/

.headerA {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 15px 15px 0 15px;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    font-family: "nexa_demobold";
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.headerA .logo a {
    font-size: 4rem;
    color: #fff;
    text-decoration: none;
}

.headerA .logo span {
    font-size: 1.5rem;
}

.headerA nav ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.headerA nav ul li {
    margin-left: 50px;
}

.headerA nav ul li a {
    display: block;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
}

.headerA nav ul li a:hover {
    color: #333;
}

.headerB {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 15px 15px 0 15px;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    font-family: "nexa_demobold";
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.headerB .logo a {
    font-size: 4rem;
    color: #f00;
    text-decoration: none;
}

.headerB .logo span {
    font-size: 1.5rem;
}

.headerB nav ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.headerB nav ul li {
    margin-left: 50px;
}

.headerB nav ul li a {
    display: block;
    font-size: 1rem;
    color: #f00;
    text-decoration: none;
}

.headerB nav ul li a:hover {
    color: #333;
}

.two nav ul li a {
    display: block;
    font-size: 1rem;
    color: #004eff;
    text-decoration: none;
}

.two .logo a {
    font-size: 4rem;
    color: #004eff;
    text-decoration: none;
}

.two .logo span {
    font-size: 1.5rem;
}

nav span {
    color: #fcc801;
}

/**********  コンテンツ **********/

article {
    max-width: 100%;
}

.unitA {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 30px;
    position: absolute;
    top: 38%;
    color: #f00;
}

.headline1 {
    margin: 0 auto;
    padding: 30px 0 0;
    border-bottom: 3px solid #fff;
    max-width: 1200px;
}

.headline2 {
    margin: 0 auto;
    padding: 30px 0 0;
    border-bottom: 3px solid #004eff;
    max-width: 1200px;
}

.unitB {
    max-width: 100%;
}

.unitB .container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.unitB img {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    filter: grayscale(100%);
}

.unitB img:hover {
    -webkit-filter: grayscale(0);
    -moz-filter: grayscale(0);
    -ms-filter: grayscale(0);
    -o-filter: grayscale(0);
    filter: grayscale(0);
}

.unitB img {
    max-width: 100%;
    height: auto;
}

.unitC {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
    color: #333;
}

.unitC {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 15px;
    position: absolute;
    top: 45%;
    right: 0%;
}

table {
    width: 500px;
    border-spacing: 0;
    border: none;
}

table th {
    padding: 10px 20px 10px 0;
    text-align: left;
    border-bottom: solid 1px #f00;
}

table td {
    padding: 10px 0 10px 50px;
    text-align: left;
    border-bottom: solid 1px #f00;
}

.item_box1 {
    max-width: 490px;
    padding: 65px 0 0;
}

.item_box2 {
    max-width: 350px;
    padding: 65px 0 0;
}

.item_box3 {
    max-width: 1200px;
    padding: 65px 0 0;
}

.title_box1 {
    margin: 20px 0;
    padding: 10px;
    text-align: center;
    border: 3px solid #fff;
}

.title_box2 {
    margin: 20px 0;
    padding: 10px;
    text-align: center;
    border: 3px solid #004eff;
}

.title_box3 {
    max-width: 500px;
    margin: 20px 0;
    padding: 10px;
    text-align: center;
    letter-spacing: 0.8em;
    border: 3px solid #f00;
}

.text_box {
    line-height: 1.5em;
    word-wrap: break-word;
}

.text_box2 {
    line-height: 2em;
    word-wrap: break-word;
    text-align: center;
}

/********** フッター **********/
footer {
    max-width: 100%;
    margin-top: auto;
    padding: 15px;
}

.corp_1 {
    padding-top: 50px;
    text-align: right;
    font-size: 0.8rem;
    color: #f00;
}

.corp_2 {
    padding-top: 50px;
    text-align: right;
    font-size: 0.8rem;
    color: #fff;
}

.corp_3 {
    padding-top: 50px;
    text-align: right;
    font-size: 0.8rem;
    color: #004eff;
}

.content_box2 {
    display: none;
}

/*====================================
メディアクエリ
====================================*/

@media (max-width: 1250px) {

    /*メニュー部分*/
    nav {
        display: none;
        position: absolute;
        top: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.8);
        left: 0;
        z-index: 99;
    }

    header nav ul {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        width: 90%;
        margin: auto;
        height: 350px;
        position: absolute;
        top: 0px;
        right: 0px;
        bottom: 0px;
        left: 0px;
    }

    .headerA nav ul li,
    .headerB nav ul li {
        margin: 0 auto;
        text-align: center;
    }

    .headerA nav ul li,
    .headerB nav ul li:last-child {
        border: none;
    }

    .headerA nav ul li a,
    .headerB nav ul li a,
    .two nav ul li a {
        font-size: 2rem;
        line-height: 2em;
    }

    .headerA nav ul li a,
    .headerB nav ul li a:hover {
        color: #fff;
    }

    /*開閉ボタン*/
    #nav_toggle {
        display: block;
        width: 40px;
        height: 40px;
        position: relative;
        top: 4px;
        z-index: 100;
    }

    #nav_toggle div {
        position: relative;
    }

    #nav_toggle span {
        display: block;
        height: 5px;
        background: #333;
        position: absolute;
        width: 100%;
        left: 0;
        -webkit-transition: 0.5s ease-in-out;
        -o-transition: 0.5s ease-in-out;
        transition: 0.5s ease-in-out;
    }


    #nav_toggle span:nth-child(1) {
        top: 0px;
    }

    #nav_toggle span:nth-child(2) {
        top: 12px;
    }

    #nav_toggle span:nth-child(3) {
        top: 24px;
    }

    /*開閉ボタンopen時*/
    .open #nav_toggle span:nth-child(1) {
        top: 12px;
        background: #fcc801;
        -webkit-transform: rotate(135deg);
        -ms-transform: rotate(135deg);
        transform: rotate(135deg);
    }

    .open #nav_toggle span:nth-child(2) {
        width: 0;
        left: 50%;
    }

    .open #nav_toggle span:nth-child(3) {
        top: 12px;
        background: #fcc801;
        -webkit-transform: rotate(-135deg);
        -ms-transform: rotate(-135deg);
        transform: rotate(-135deg);
    }

    .topbox:before {
        top: 0;
        left: 0;
        width: 100%;
        height: 50%;
        content: '';
        position: absolute;
        background-image: url(../images/top.gif);
        background-size: cover;
        z-index: -999;
    }

    .endbox:before {
        top: 0;
        left: 0;
        width: 100%;
        height: 50%;
        content: '';
        position: absolute;
        background-image: url(../images/top.gif);
        background-size: cover;
        z-index: -999;
    }

    .headerB {
        padding: 15px;
    }

    .unitA {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        padding: 0 20px;
        position: absolute;
        top: 60%;
        color: #f00;
    }

    h1 {
        font-size: 3.5rem;
    }

    .item_box_mini1 {
        padding-right: 10px;
    }

    .item_box_mini2 {
        padding-left: 10px;
    }

    .item_box_mini3 {
        padding: 0 10px 0;
    }

    .unitC .container {
        margin: 0 auto;
        padding-top: 50px;
        position: static;
        bottom: 0;
        right: 0;
    }

    .content_box {
        padding: 0 15px;
    }

    .content_box1 {
        display: none;
    }

    .unitD {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        width: 100%;
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
        -ms-flex-direction: column-reverse;
        flex-direction: column-reverse;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

    .unitD .container {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        max-width: 1200px;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    .title_box3 {
        max-width: 100%;
        margin: 0 0 15px;
        padding: 10px;
        font-size: 0.9rem;
        text-align: center;
        letter-spacing: 0.5em;
        border: 3px solid #f00;
    }

    .content_box {
        padding: 0 15px;
    }

    .content_box1 {
        display: none;
    }

    .content_box2 {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        width: 90%;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        position: absolute;
        top: 30%;
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.5);
    }

    .content_box2 ul li {
        border-bottom: solid 2px #f00;
        padding: 10px;
    }

}

@media (max-width: 800px) {
    h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 700px) {
    .unitB .container {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    table {
        width: 100%;
    }

}

@media (max-width: 400px) {

    .headerA .logo a,
    .headerB .logo a,
    .two .logo a {
        font-size: 3rem;
    }

    h1 {
        font-size: 2rem;
    }

}
