﻿@import url("reset.css");

/*------------------------------------------------------
 Base (Mobile First)
------------------------------------------------------*/
h1 {
    font-size: 2em;
}
 
h2 {
    font-size: 1.5em;
}
 
h3 {
    font-size: 1.17em;
}
 
h4 {
    font-size: 1.12em;
}
 
h5 {
    font-size: .83em;
}
 
h6 {
    font-size: .75em;
}
 
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.4;
}

a {
    color: #0000ee;
    text-decoration: none;
}

b, strong {
    font-weight: bold;
}
 
img{
    width: 100%;
    vertical-align: bottom;
}
 
/* clearfix */
.clearfix:before,
.clearfix:after {
    content: '';
    display: table;
}
 
.clearfix:after {
    clear: both;
}
 
/* For IE 6/7 only */
.clearfix {
    *zoom: 1;
}

.lrgscrn {
    display: none;
}

.smlscrn {
    display: inline;
}

header {
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 2.5em;
    background-color: #000;
    color: #fff;
}

#header_menu {
    display: flex;
    height: 2.5em;
    margin: 0 auto;
    padding: 0;
}

#header_menu > li {
    width: 25%;    /* 100 / 4  */
}

#header_menu li {
    position: relative;
    list-style: none;
}

#header_menu li a {
    display: block;
    text-align: center;
    color: #fff;
    background: #000;
    width: auto;
    height: 2.5em;
    padding-top: 0.5em;
    border-right: solid 1px #cef;
}

#header_menu li:last-child a {
    border-right: none;
}

/* プルダウン表示 */
#header_menu > li > ul:before {
    border: solid 5px transparent;
    border-top: solid 5px #ff0;
    content: "";
    position: absolute;
    top: 2.25em;
    left: 47.5%;
}

/* 以下子メニュー */
#header_menu li ul {
    margin: 0;
    padding: 0;
}

#header_menu li li {
    height: 0;
    overflow: hidden;
    transition: 0.5s;
}

#header_menu li li a {
    border-top: solid 1px #cdefff;
    height: 2.5em;
}

#eye {
    position: relative;
    margin-top: 2.5em;
    width: auto;
    height: 460px;
}

#topbg1, #topbg2, #topbg3, #topbg4 {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 460px;
    max-height: 460px;
    opacity: 0;
    visibility: hidden;
    transition: .6s linear;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

#topbg1.show, #topbg2.show, #topbg3.show, #topbg4.show {
    opacity: 1;
    visibility: visible;
}

#topbg1 {
    background: url("../img/bg1.jpg");
    transform: scale(.2);
    background-position: left 50% top 45%;
}

#topbg1.show {
    transform: scale(1);
}

#topbg2 {
    background: url("../img/bg2.jpg");
    transform: scaleY(0);
    background-position: left 50% top 45%;
}

#topbg2.show {
    transform: scaleY(1);
}

#topbg3 {
    background: url("../img/bg3.jpg");
    transform: translateY(-100%);
    background-position: left 50% top 37.5%;
}

#topbg3.show {
    transform: translateY(0);
}

#topbg4 {
    background: url("../img/bg4.jpg");
    transform: translateX(-100%);
    background-position: left 50% top 39%;
}

#topbg4.show {
    transform: translateX(0);
}

#topics {
    font-size: 1.2em;
    position: absolute;
    bottom: 1.5em;
    right: 2px;
}

#topics div {
    border: solid 2px #000;
    border-radius: 8px;
    background-color: #fef;
    margin: 0.5em;
    padding: 0.5em 1em;
}

#topics div:hover {
    background-color: #ffa;
}

#topics a {
    font-weight: bold;
    color: #000;
}

#topics div a em {
    color: #f00;
}

#counseling {
    position: fixed;
    top: 3em;
    left: 2px;
    z-index: 2;
}

#counseling div {
    position: relative;
    border: solid 2px #000;
    border-radius: 8px;
    background-color: #ff8;
    box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.3);
    margin: 0.5em;
    padding: 0.5em 1em;
    text-align: center;
}

#counseling div a {
    color: #000;
    font-weight: bold;
    font-size: 1.2em;
}

#counseling div:hover {
    background-color: #ff4;
}

#titles {
    position: absolute;
    padding: 0.1em 0.2em;
    bottom: 1.5em;
    left: 2px;
}

#titles img {
    max-width: 114px;
    max-height: 114px;
    width: auto;
    height: 100%;
    margin: 0 auto;
    padding: 0;
}

#page-top {
    position: fixed;
    bottom: 64px;
    right: 16px;
}

#page-top a {
    background: #363636;
    text-decoration: none;
    text-align:center;
    padding: 0.2em 0.3em;
    color: #fff;
    width: 128px;
    border-radius: 5px;
    border: solid 1px #000;
}

#page-top a:hover {
    background: #888;
}

#footer_lv {
    display: flex;
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #000;
    z-index: 2;
}

#footer_lv div {
    position: relative;
    width: 33%;
    text-align: center;
    border-right: solid 1px #cef;
}

#footer_lv div:last-child {
    border-right: none;
}

#footer_lv div a {
    color: #fff;
}

.story {
    margin: 100px auto;
    text-align:center;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: 2s;
}

.story .feature .clmn img {
    width: 70%;
    margin: 0 15%;
}

input {
    visibility: hidden;
}

#reading {
    display: none;
}

input:checked ~ * #reading {
    display: inline;
}

input:checked ~ * #unread {
    display: none;
}

.feature {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 16px 2em;
}

.feature .clmn {
    text-align: left;
    margin-bottom: 1em;
}

.feature .clmnsml {
    display: inline;
}

.feature .clmnlrg {
    display: none;
}

.feature .clmn h3,ul {
    margin-bottom: 1em;
}

.feature .clmn h2:after {
    content:"";
    display:block;
    height:4px;
    width:100%;
    background:-webkit-gradient(linear, left top, right bottom, from(#b4024a), to(#fff));
    background:-moz-linear-gradient(left, #b4024a, #fff);
    background:linear-gradient(to right, #b4024a, #fff);
    margin-bottom: 1em;
}

.feature .clmn .list li {
    text-indent: -5.5em;
    padding-left: 6em;
}

.fullcen {
    margin: 0 16px;
    text-align: left;
}

.fullcen ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: column;
}

.fullcen ul li {
    text-align: center;
    margin: 1em 0;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.25);
    border: solid 1px #000;
    border-radius: 8px;
    padding-bottom: 0.2em;
}

.fullcen ul li h3 {
    color: #fff;
    padding: 0.2em 0.5em;
    background: #b4024a;
    background:-moz-linear-gradient(rgba(192, 16, 88, 0.7), rgba(192, 16, 88, 0.9) 50%);
    background:-webkit-gradient(linear, 100% 0%, 100% 50%, from(rgba(192, 16, 88, 0.7)), to(rgba(192, 16, 88, 0.9)));
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.2em;
    text-align: center;
    text-shadow: 0 -1px 0 rgba(192, 16, 88, 0.8);
    box-shadow: 0px 1px 1px rgba(255, 255, 255, 0.3) inset;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0.2em;
}

.fullcen p {
    margin-bottom: 1em;
}

.fullcen div {
    text-align: center;
}

.fullcen img {
    margin: 0 auto;
    max-width: 620px;
}

.fullcen .steps {
    position: relative;
    border: solid 1px #000;
    padding: 0.5em 1em;
    margin-bottom: 2em;
    text-align: left;
}

.fullcen .steps:after {
    position: absolute;
    bottom: calc(-2em - 8px);
    left: 50%;
    border: solid 16px transparent;
    border-top: solid 16px #000;
    content: "";
}

.fullcen #noarrow {
    position: static;
    margin-bottom: 0;
}

.fullcen #noarrow:after {
    border: none;
}

.fullcen .steps div {
    text-align: left;
    text-indent: 1em;
}

.course {
    text-align: center;
}

.fullcen h2.course:after {
    content:"";
    display:block;
    height:4px;
    width:100%;
    background-image: -webkit-linear-gradient(left, transparent, #b4024a 25%, #b4024a 75%, transparent);
    background-image: linear-gradient(to right, transparent, #b4024a 25%, #b4024a 75%, transparent);
    margin-bottom: 1em;
}

.feature .clmn2, .feature .clmn3 {
    text-align: left;
    margin-bottom: 1em;
    display: flex;
    flex-direction: column;
}

.feature .clmn2, .feature .clmn3 {
    border: solid 2px #333;
}

.feature .clmn2 img, .feature .clmn3 img {
    width: calc(100% - 32px);
    margin: 0.8em 16px;
}

.feature .clmn2 div, .feature .clmn3 div {
    margin: 1em 16px;
    text-indent: 1em;
}

#howto, .feature .clmn2 .detail, .feature .clmn3 .detail {
    background: #000;
    margin: auto auto 1em;
    text-align: center;
    padding: 0.5em 0;
    width: 50%;
}

#howto {
    width: 100%;
}

#howto:hover, .feature .clmn2 .detail:hover, .feature .clmn3 .detail:hover {
    background: #222;
}

#howto, .feature .clmn2 .detail a, .feature .clmn3 .detail a {
    color: #fff;
}

.feature .clmn2 .thum {
    display: table;
    table-layout: fixed;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 300px;
}

.feature .clmn2 .thum .inner {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    max-height: 300px;
    width: 100%;
}

.feature .clmn2 .thum .inner img.interview {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    vertial-align: bottom;
}

.fullcen #newsheader {
    display: flex;
    justify-content: space-between;
    border-left: solid 8px #000;
    padding-left: 1em;
    border-bottom: solid 2px #000;
    margin-bottom: 2em;
}

.fullcen #backnews {
    margin-right: 2em;
    text-align: right;
}

.fullcen #news {
    display: flex;
    flex-wrap: wrap;
    text-align: left;
    line-height: 2em;
    margin-bottom: 3em;
    width: 100%;
}

.fullcen #news .date {
    width: 7em;
    padding-left: 8px;
}

.fullcen #news .update {
    width: calc(100% - 7em - 24px);
    margin-right: 16px;
}

.fullcen #news_topics a:hover {
    color: #8080ee;
}

.fullcen #news div {
    display: none;
    width: 100%;
    height: auto;
    margin: 0.2em 16px 1em;
    text-indent: 1em;
    padding: 0.2em 0.5em;
    border: solid 1px #b4024a;
    border-radius: 8px;
    text-align: left;
}

.fullcen #news div p {
    margin: 1em 0;
}

.fullcen #news input {
    display: none;
}

.fullcen #news label {
    color: #0000ee;
}

.fullcen #news label:hover {
    text-decoration: underline;
    color: #44f;
}

footer {
    margin: 1em auto 5em;
    text-align: center;
    font-size: 0.5em;
}

footer ul {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin-bottom: 2em;
}

footer ul li {
    font-size: 2em;
    padding: 0.5em 0;
}

body{
    color: #333;
    width: 100%;
    line-height: 1.6em;
    -webkit-text-size-adjust: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "游ゴシック体", YuGothic, "Yu Gothic Medium", "Meiryo", sans-serif;
    font-feature-settings: "pkna" 1;
}

/*------------------------------------------------------
 Tablet ~
------------------------------------------------------*/
@media screen and (min-width:768px) {
    .lrgscrn {
        display: inline;
    }

    .smlscrn {
        display: none;
    }

    header {
        height: 3.5em;
    }

    #header_menu {
        height: 3.5em;
    }

    #header_menu li a {
        height: 3.5em;
        padding-top: 0.25em;
        border: none;
    }

    /* 上下センタリング */
    .ver-cen {
        line-height: 3.5em;
    }

    .shrnk {
        font-size: 0.8em;
    }

    /* 以下子メニュー */
    #header_menu li li a {
        height: 3.5em;
    }

    #header_menu li:hover > ul > li {
        height: 3.5em;
        overflow: visible;
    }

    /* 以下孫メニュー */
    #header_menu li li:hover > ul > li.lrgli, #header_menu li li li.lrgli a {
        height: 5em;
    }

    #header_menu li ul li ul {
        left: 100%;
        position: absolute;
        top: 0;
        width: 120%;
        border-left: solid 1px #cdefff;
    }

    /* 補足説明 */
    .dsc {
        font-size: 0.75em;
    }

    /* プルダウン表示 */
    #header_menu > li > ul:before {
        top: 3.25em;
    }

    #header_menu li ul li ul:before {
        border: solid 5px transparent;
        border-left: solid 5px #ff0;
        content: "";
        position: absolute;
        top: 1.75em;
        left: -10px;
    }

    /* 階層毎に彩度調整 */
    /* 親選択、子 */
    #header_menu li:hover a, #header_menu li li a {
        background: #222;
    }

    /* 子選択、孫 */
    #header_menu li li:hover a, #header_menu li li li a {
        background: #333;
    }

    /* 孫選択 */
    #header_menu li li li:hover a {
        background: #445;
    }

    #eye {
        margin-top: 3.5em;
    }

    #counseling {
        top: 4em;
        left: auto;
        right: 4px;
    }

    #titles {
        bottom: auto;
        top: 4px;
    }

    #footer_lv div {
        border: none;
    }

    .story .feature .clmn img {
        width: 100%;
        margin: 0;
    }

    /* 枠組み */
    .feature {
        flex-wrap: wrap;
        flex-direction: row;
        margin: 0 60px 2em;
    }

    .feature .clmn {
        width: calc(60% - 32px);
        margin: 16px;
    }

    .feature .clmn_img {
        width: calc(40% - 32px);
    }

    .feature .clmn_text {
        width: calc(50% - 32px);
    }

    /* 8 + 2*2 (border) */
    .feature .clmn2 {
        width: calc(50% - 16px);
        margin: 4px;
    }

    .feature .clmn3 {
        width: calc(33.3% - 16px);
        margin: 4px;
    }

    .feature .clmnsml {
        display: none;
    }

    .feature .clmnlrg {
        width: calc(40% - 32px);
        display: inline;
    }

    .fullcen {
        margin: 0 60px;
    }

    .fullcen ul {
        flex-wrap: wrap;
        flex-direction: row;
    }

    .fullcen ul li {
        width: calc(50% - 25px);
        margin: 1em 8px;
    }

    .feature .clmn2 .detail, .feature .clmn3 .detail {
        width: 80%;
    }

    .fullcen #news .date {
        padding-left: 4em;
    }

    .fullcen #news .update {
        width: calc(100% - 11em - 16px);
    }

    .fullcen #news div {
        margin-left: 4em;
        width: calc(100% - 11em - 16px);
    }

    footer {
        font-size: 0.75em;
    }

    footer ul {
        flex-wrap: wrap;
        flex-direction: row;
    }

    footer ul li {
        font-size: 1.2em;
        padding: 0;
    }

/*------------------------------------------------------
 PC
------------------------------------------------------*/
@media screen and (min-width:920px) {
    .shrnk {
        font-size: 1em;
    }
}
