@charset "UTF-8";

/* 全体の設定 */
html,body,h1,h2,h3,p,ul,li {
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* 汎用のボタン */
/* 大きさと形だけ定義している */
/* 色は別途、クラスで指定すること */
/* （従って、CSS内で最初の方に定義すること） */
.buttonGeneral {
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    background-color: #AAA;
    border: none;
    border-radius: 5rem;
    display: block;
    margin: 1.5rem auto 0;
    padding: 1.2rem 6.5rem;
    position: relative;
    outline: none;
    cursor: pointer;
    width: 20rem;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    border: none;
    vertical-align: bottom;
    vertical-align:bottom;
    max-width: 100%;
}

html {
    height: 100%;
    font-size: 62.5%;
    box-sizing: border-box;
}

body {
    height: 100%;
    background: #fff;
    color: #333;
    font-size: 1.6rem;
    font-family:"Noto Sans CJK JP","Meiryo","Hiragino Kaku Gothic ProN", sans-serif;
    background-image: url(../assets/bg.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

h2 {
    color: #1b6eb0;
    font-size: 2rem;
    vertical-align: text-bottom;
}
/*
    20/10/9
    設問の冒頭にあるリード（lead）文のタイトル
*/
.leadTitle {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
}
/* リード文の本文 */
.leadText {
    font-weight: bold;
    text-align: center;
    padding-bottom: 1.5rem;
}
/* 改行位置をコントロールする */
.leadText span {
    display: inline-block;
 }

/*
    20/10/8
    ”DQ”などテスト形式のタイトル用
    左と下のボーダー線＋背景無地
*/
/* 生徒用・保護者用でまとめて定義 ⇒ 保護者だけ色を上書きする */
.heading_student, .heading_parents {
    font-size: 1.6rem;
    font-weight: bold;
    padding: 0.1rem 1rem;

    border-left: 4px solid #f44e74;
    border-bottom: 1px solid #f99eb3;

    border-radius: 2px
}
/* 保護者用に色を上書き */
.heading_parents {
    border-left: 4px solid #1b6eb0;
    border-bottom: 1px solid #AAA;
}

/* トップページ */
.bodyContainer {
	position: relative;
    height: 100%;
    display: grid;
    grid-template-rows: 60px 1fr 20px;
    grid-template-columns: 1fr;

    display: -ms-grid;
    -ms-grid-rows: 60px 1fr 20px;
    -ms-grid-columns: 1fr;
}
.header {
    grid-row: 1;
    -ms-grid-row: 1;
}
.wrapper {
    position: relative;
    grid-row: 2;
    -ms-grid-row: 2;
}
.footer {
    grid-row: 3;
    -ms-grid-row: 3;
}


/* ヘッダー */
.header {
    width: 100%;
    height: 60px;
    position: fixed;
    z-index: 1;
    background-color: #fff;
}
/* ヘッダー　ロゴ */
.headerInner {
    height: 100%;
    position: relative;
}
.logo {
    width: 140px;
    height: 30px;
    /* display: inline-block; */
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    background-image: url("../assets/logo_small.jpg");
    background-size: contain;
}
/*  アンケートページ　ヘッダータイトル */
.title {
    /* font-size: 0.8rem; */
    color: #fff;
    background-color: #1b6eb0;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    display: inline-block;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
}
.title_student {
    background-color: #f44e74;    
}
.colorParents {
    background-color: #1b6eb0;    
}

/* トップページ　ラッパー */
.wrapper {
    position: relative;
    z-index: 0;
    overflow: scroll;
    overflow-x: hidden;

}
.mainContainer {
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 1.8rem;
    padding: 2rem 2rem;
    margin: 2rem 1.5rem;
}
.mainContainer img {
    display: block;
    margin: 0 auto;
    padding-bottom: 1rem;
    width: 3.5rem;
}
.mainContainer h2 {
    padding-bottom: 2.5rem;
    text-align: center;
}
.logInText {
    font-size: 1.2rem;
    padding-bottom: 2.5rem;
    text-align: center;

}
/* ログインIDエリア */
.logInArea {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    border: 1px solid rgb(211, 210, 210);
    border-radius: 1.4rem;
    padding: 3rem 0;
    position: relative;
}
.logInArea input {
    margin-bottom: 16px;
}

.id {
    padding: 1rem;
    width: 10rem;
    background-color: #e6e6e6;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    outline: 0;
    box-shadow: inset 0 0 0.4rem rgba(165, 165, 165, 0.8);
}
input[type="text"]:focus {
    border: 2px #1b6eb0 solid;
}

/* ログインアラート */
.alertHide,
.logInAlertIdHide,
.logInAlertPasswordHide {
    display: none;
}
.alertShow,
.logInAlertIdShow,
.logInAlertPasswordShow {
    font-size: smaller;
    color: #fff;
    background-color: #f44e74;
    border: solid 1px  #f44e74;
    border-radius: 20px;
    position: relative;
    top: 0;
    display: block;
    text-align: center;
    width: 26rem;
    padding: 0.5rem;
    margin: 0 auto 1rem;
}

.alertShow::before,
.logInAlertIdShow::before,
.logInAlertPasswordShow::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -15px;
    border: 10px solid transparent;
    border-top: 10px solid #f44e74;
}

/* 入力画面の未入力エラーの吹き出し */
.boxErrorMessage {
    font-size: smaller;
    color: #fff;
    background-color: #f44e74;
    border: solid 1px  #f44e74;
    /* border-radius: 20px; */
    border-radius: 8px;
    position: absolute;
    /* top: -40px;
    left: 60px; */
    top: -40px;
    left: -5px;
    display: block;
    text-align: center;
    /* width: 26rem; */
    width: 20rem;
    padding: 0.5rem;
    /* margin: 0 auto 1rem; */
}
.boxErrorMessage::before {
    content: "";
    position: absolute;
    top: 100%;
    /* left: 50%; */
    left: 29px;
    margin-left: -15px;
    border: 10px solid transparent;
    border-top: 10px solid #f44e74;
}

/* 次へ ボタン */
.button {
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(to right, #35a1d0 0%, #1b6eb0 100% );
    border: none;
    border-radius: 5rem;
    display: block;
    margin: 1.5rem auto 0;
    padding: 1.2rem 6.5rem;
    position: relative;
    outline: none;
    cursor: pointer;
}
.button::after {
    content: "";
    display: block;
    position: absolute;
    border-top: 1.5px solid #fff;
    border-right: 1.5px solid #fff;
    width: 0.6rem;
    height: 0.6rem;
    transform: rotate(45deg) translateY(-50%);
    margin-left: 3rem;
    bottom: 0.2rem;
    top: 50%;
    right: 2rem;
}
.buttonYes:hover,
.buttonNo:hover,
.button:hover {
    opacity: 0.7;
}

/* はい ボタン */
.buttonYes {
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(to right, #f66e8d 0%, #bf0c35 100% );
    border: none;
    border-radius: 5rem;
    display: block;
    margin: 1.5rem auto 0;
    padding: 1.2rem 6.5rem;
    position: relative;
    outline: none;
    cursor: pointer;
    width: 20rem;
}
/* いいえ ボタン */
.buttonNo {
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(to right, #35a1d0 0%, #1b6eb0 100% );
    border: none;
    border-radius: 5rem;
    display: block;
    margin: 1.5rem auto 0;
    padding: 1.2rem 6.5rem;
    position: relative;
    outline: none;
    cursor: pointer;
    width: 20rem;
}

.textHyperbole {
    /* font-size: 2.5rem; */
    color:#f11e4e;
}
.buttonContainer {
    margin: 0 auto;
    display: flex;
    justify-content: center;
}
.buttonInner:first-child {
    margin-right: 16px;
}

/* フッター */  
footer {
    background-color: #1b6eb0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.copyRight {
    font-size: smaller;
    color: #fff;
    padding: 0;
}

/* アンケートページ */
/* 番号 フォント */
.questNum {
    background: linear-gradient(to right, #1b6eb0 0%,   #35a1d0 100% );
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    margin-top: 0.5rem;
    position: relative;
}
.questNum p{
    font-size: 2rem;
    font-weight: lighter;
    color: #fff;
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%,50%);
}
.questText h3{
    font-size: 1.6rem;
    font-weight: bold;
    padding: 0 1rem 1rem;
}
.questRadioBox {
    text-align: center;
}


/* ラジオボタン */
input[type="radio"] {
    display: none;
}
input[type="radio"] + label {
    background-color: rgb(236, 236, 236);
    padding: 1rem 2rem;
    margin: 1rem;
    border-radius: 2rem;
    display: block;
    cursor: pointer;
}
input[type="radio"]:hover + label {
    background-color: #b3b3b3;
}
input[type="radio"]:checked + label {
    color: #fff;
    background-color: #1b6eb0;
}

/* 質問ごとの仕切り線 */
.line {
    border: dotted 1px #e9e9e9;
    margin: 10px 0;
}

/* アンケートページ　配置 */
.questContainer {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 2rem auto;
    display: grid;

    display: -ms-grid;
}
.questNum {
    grid-column: 1/2;
    grid-row: 1/2;

    -ms-grid-column:1;
    -ms-grid-row: 1;
}
.questText {
    grid-column: 2/3;
    grid-row: 1/2;

    -ms-grid-column:2;
    -ms-grid-row: 1;
}
.questRadioBox {
    position: relative;
    grid-column: 1/3;
    grid-row: 2/3;

    -ms-grid-column: 1;
    -ms-grid-column-span: 2;
    -ms-grid-row: 2;

}
/* 終了画面 */
.exitContainer {
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 1.8rem;
    padding: 2rem 2rem;
    margin: 2rem 1.5rem;
}
.exitMsg {
    padding-bottom: 2rem;
}
.exitText {
padding-bottom: 2rem;
text-align: center;
}
.exitContainer img {
    width: 20rem;
    display: block;
    margin: 2rem auto;
}
.exitMsg {
    text-align: center;
}

/* メディアクエリ */
/* iphone5 */
@media screen and (max-width: 320px) {
    .spSpace {
        margin-bottom: 1rem;
    }
    
    .mainContainer {
        margin: 1rem;
        padding: 1rem;
    }
    .exitContainer {
        margin: 1rem;
        padding: 1rem;
    }
    .exitContainer p {
        padding-bottom: 1rem;
    }
    
    .exitContainer img {
        width: 20rem;
        display: block;
        margin: 2rem auto 1rem;
    }    

    .buttonContainer {
        flex-direction: column;
    }
    .buttonInner:first-child {
        margin-right: 0px;
    }
}

/* タブレット */

@media screen and (min-width: 321px) and (max-width: 959px) {
    .spSpace {
        margin-bottom: 1rem;
    }

    .buttonContainer {
        flex-direction: column;
    }
    .buttonInner:first-child {
        margin-right: 0px;
    }

    .bodyContainer {
        height: 100%;
        display: grid;
        grid-template-rows: 100px 1fr 40px;
        grid-template-columns: 1fr;
    }
    
    /* ヘッダー　ロゴ */
    .header {
        height: 100px;
    }
    .headerInner {
        max-width: 600px;
        height: 100%;
        margin: 0 auto;
        position: relative;
    }
    .logo {
        width: 300px;
        height: 43px;
        position: absolute;
        left: 1rem;
        background-image: url("../assets/logo_medium.jpg");
    }
    
    /* トップページ */
    .mainContainer {
        max-width: 600px;
        margin: 4.5rem auto;
    }
    .mainContainer h2 {
        font-size: 2.2rem;
    }
    .logInText {
        font-size: 1.6rem;
    }    
    /*  アンケートページ　ヘッダータイトル */
    .title {
    font-size: 1.6rem;
    position: absolute;
    right: 1rem;   
    padding: 0.5rem 2rem; 
    }
    /* アンケートページ */
    /* 配置 */
    .questContainer {
        grid-template-columns: 5rem 1fr;
        max-width: 600px;
    }
    .questNum {
        margin: 0;
        align-self: center;
    }
    .questText {
        width: 1fr;
        align-self: center;
    }
    .questText h3 {
        padding-bottom: 0;
    }
    
    .questRadioBox {
        grid-column: 2/3;
        grid-row: 2/3;
        text-align: unset;
    }
    input[type="radio"] + label {
        background-color: rgb(236, 236, 236);
        padding: 1rem 2rem;
        margin: 1rem;
        border-radius: 2rem;
        width: 200px;
        box-sizing: border-box;
        display: inline-block;
        text-align: center;
    }
    /* 終了画面 */
    .exitContainer {
        max-width: 600px;
        margin: 4.5rem auto 2rem;
    }
    .exitMsg br {
        /* display: none; */
    }
}

/* PC */
@media screen and (min-width: 960px) {
    h2 {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    /* ヘッダー、ラッパー、フッターの配置 */
    .bodyContainer {
        height: 100%;
        display: grid;
        grid-template-rows: 100px 1fr 40px;
        grid-template-columns: 1fr;

        display: -ms-grid;
        -ms-grid-rows: 100px 1fr 40px;
        -ms-grid-columns: 1fr;
    }
    
    /* ヘッダー　ロゴ */
    .header {
        height: 100px;
    }
    .logo {
        width: 300px;
        height: 43px;
        top: 50%;
        left: 50%;
        transform: translate(-430px, -50%);
        background-image: url("../assets/logo_medium.jpg");
    }
    /* トップページ */
    .mainContainer h2 {
        font-size: 2.2rem;
    }
    .logInText {
        font-size: 1.6rem;
    }    
    /*  アンケートページ　ヘッダータイトル */
    .title {
        font-size: 1.6rem;
        top: 50%;
        right: 50%;
        transform: translate(400px, -50%);
        padding: 0.5rem 2rem; 
    }
    
    /* wrapper　*/
    /* メインの白枠 */
    .mainContainer {
        max-width: 800px;
        padding: 5rem 2rem;
        margin: 4.5rem auto;
        }
    .mainContainer h2 br {
        display: none;
    }
    /* ログインのグレーのボーダー */
    .logInArea {
        width: 400px;
        margin: 0 auto;
    }
    /* 次へボタン */
    .button {
        margin: 2rem auto 0;
    }
    /* アンケートページ */
    /* 配置 */
    .questContainer {
        grid-template-columns: 5rem 1fr;
        -ms-grid-columns: 5rem 1fr;
    }
    .questNum {
        margin: 0;
        align-self: center;
    }
    .questText {
        width: 1fr;
        align-self: center;
    }
    .questText h3 {
        padding-bottom: 0;
    }
    
    .questRadioBox {
        grid-column: 2/3;
        grid-row: 2/3;

        -ms-grid-column: 2;
        -ms-grid-row: 2;

        text-align: left;
    }
    input[type="radio"] + label {
        background-color: rgb(236, 236, 236);
        padding: 1rem 2rem;
        margin: 1rem;
        border-radius: 2rem;
        width: 200px;
        box-sizing: border-box;
        display: inline-block;
        text-align: center;
    }
    /* 終了画面 */
    .exitContainer {
        text-align: center;
        max-width: 800px;
        padding: 5rem 2rem;
        margin: 4.5rem auto 2rem;

    }
    .exitContainer img {
        margin: 5rem auto 2rem;
    }
    .exitMsg br {
        display: none;
    }

}