body {
    margin: 0;
    font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", sans-serif;
}

ul {
    padding-left: 0px;
}

li {
    list-style: none;
}

/* ヘッダー */
.header {
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: rgb(239, 122, 11);
}
/* ヘッダーテキスト */
.header__title {
    margin-top: 0;
    margin-bottom: 0;

    text-align: center;
    color: white;
    font-size: x-large;
    font-weight: bold;
}
@media screen and (max-width: 1030px) {
    .header__title {
        font-size: 16px;
    }
}

/* コンテンツ全体 */
.survey-body {
    /* max-width: 1005px; */
    max-width: 800px;
    margin: 0px auto;
    display: block;
}

/* アクティブのアンケートのみ、表示 */
.main-question,
.sub-question {
    transition: all 1s;
    opacity: 0;
    height: 0;
    overflow: hidden;
}
.main-question-active,
.sub-question-active {
    /*display: block;*/
    opacity: 1;
    height: auto;
    overflow: visible;
}

/* 上下の余白調整 */
.main-question__title > p,
.sub-question__title > p,
.sub-question__items {
    margin-top: 0;
    margin-bottom: 0;
}
.sub-question__sub-title > p {
    margin-top: 0;
    margin-bottom: 0;

    padding-top: 10px;
    padding-bottom: 10px;
}

/* メインタイトル */
.main-question.main-question-active {
    padding-top: 0;
    padding-bottom: 30px;
}
@media screen and (max-width: 1030px) {
    .main-question.main-question-active {
        padding-left: 10px;
        padding-right: 10px;
    }
}
.main-question__title {
    border-left: 3px solid #464646;
}
.main-question__title > p {
    padding-left: 10px;

    color: #4e4e4e;
    font-size: larger;
}
.main-question__title > p .title {
    float: left;
}
.main-question__title > p .text {
    margin-left: 2.5em;
    display: block;
}
.main-question__title > p .text.q10 {
    margin-left: 3em;
}

/* サブ項目 タイトル */
.sub-question .sub-question__title {
    padding: 10px;

    background-color: rgb(239, 122, 11);

    color: white;
    font-weight: bolder;
}

/* サブタイトル・選択肢グループ */
.sub-question .sub-question__items {
    background-color: white;
}
/* PC版 */
@media screen and (min-width: 1031px) {
    .sub-question .sub-question__items {
        border-top: 1px solid rgb(218, 218, 218);
        border-left: 1px solid rgb(218, 218, 218);
    }
    .sub-question .sub-question__items > li {
        display: flex;
        flex-direction: row;
    }
}

/* 選択肢名 ※先頭一列のみ */
/* SP版 */
@media screen and (max-width: 1030px) {
    .sub-question .sub-question__items .sub-question__choices-titles {
        display: none;
    }
}
/* PC版 */
@media screen and (min-width: 1031px) {
    .hovered {
        background-color: #FFF0DC;
    }
    .sub-question .sub-question__items .sub-question__choices-titles {
        padding-left: calc(100% - 235px);
        border-right: 1px solid rgb(218, 218, 218);
        border-bottom: 1px solid rgb(218, 218, 218);
    }
    .sub-question .sub-question__items .sub-question__choices-titles .sub-question__choice-title-wrap {
        width: 100%;
        margin: 0;

        display: flex;
        flex-direction: row;
        justify-content: space-between;
        background: #F3F3F2;
        border-right: 1px solid rgb(218, 218, 218);
    }
    .sub-question .sub-question__items .sub-question__choices-titles .sub-question__choice-title-wrap .sub-question__choice-title {
        font-size: small;
        text-align: left;
        writing-mode: vertical-rl;
        padding: 5px 1em;
        box-sizing: border-box;
        border-left: 1px solid rgb(218, 218, 218);
        margin: 0;
        width: 47px;
    }
}

/* サブタイトル */
.sub-question .sub-question__items .sub-question__sub-title {
    padding-left: 10px;
    padding-right: 15px;
    background-color: #F3F3F2;
}
/* PC版 */
@media screen and (min-width: 1031px) {
    .sub-question .sub-question__items .sub-question__sub-title {
        width: calc(100% - 235px);
        border-bottom: 1px solid rgb(218, 218, 218);
        box-sizing: border-box;
    }
    .sub-question .sub-question__items .sub-question__choices.hovered .sub-question__sub-title {
        background-color: #FFF0DC;
    }
}

/* 回答選択肢 wrap */
.sub-question .sub-question__items .sub-question__choices-wrap {
    border-bottom: 1px solid rgb(218, 218, 218);
}
/* PC版 */
@media screen and (min-width: 1031px) {
    .sub-question .sub-question__items .sub-question__choices-wrap {
        width: 235px;
        box-sizing: border-box;
        border-right: 1px solid rgb(218, 218, 218);
    }
}

/* 選択肢 <ul>内 */
.sub-question .sub-question__items .sub-question__choices-wrap .sub-question__choices {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 15px;
}
.sub-question .sub-question__items .sub-question__choices-wrap .sub-question__choices input {
    margin-right: 0;
}
/* SP版 */
@media screen and (max-width: 1030px) {
    .sub-question .sub-question__items .sub-question__choices-wrap .sub-question__choices {
        display: flex;
        flex-direction: column;
    }
    .sub-question .sub-question__items .sub-question__choices-wrap .sub-question__choices input {
        margin-top: 0;
        vertical-align: middle;
    }
}
/* PC版 */
@media screen and (min-width: 1031px) {
    .sub-question .sub-question__items .sub-question__choices-wrap .sub-question__choices {
        padding-left: 0px;
        padding-right: 0px;

        display: flex;
        flex-direction: row;

        height: 100%;
        padding-top: 0;
        padding-bottom: 0;
        justify-content: space-between;
        width: 235px;
    }
}
/* <li>内 */
.sub-question__choices-item {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 4px;
}
@media screen and (max-width: 1030px) {
    /* labelの横幅を最大限広げて、ラジオボタンを選択しやすくする */
    .sub-question__choices-item > label {
        display: inline-block;
        width: calc(100% - 30px);
    }
}
@media screen and (min-width: 1031px) {
    .sub-question__choices-item {
        box-sizing: border-box;
        text-align: center;
        padding: 10px 0;
        width: 47px;
        border-left: 1px solid rgb(218, 218, 218);
    }
    /* PC版は、ラジオボタンのラベル非表示 */
    .sub-question__choices-item > label {
        display: none;
    }
}

/* ページングボタン(前へ・次へ) */
.paging-btn {
    padding-top: 50px;
    padding-bottom: 50px;

    text-align: center;
}
.paging-btn__prev,
.paging-btn__next {
    height: 50px;
    width: 250px;

    margin-left: 10px;
    margin-right: 10px;

    border: none;

    font-size: large;
}
.paging-btn__prev:hover,
.paging-btn__next:hover {
    opacity: .8;
}
.paging-btn__prev {
    background-color: grey;
    color: white;
}
.paging-btn__next {
    background-color: rgb(239, 122, 11);
    color: white;
    cursor: pointer;
}

.progress-wrapper {
    width: 100%;
    text-align: center;
    margin-top: 45px;
    margin-bottom: 22px;
    line-height: 32px;
}
.progress-bar {
    width: 56%;
    border: 1px solid rgb(218, 218, 218);
    display: inline-block;
    height: 30px;
    vertical-align: top;
    margin-right: 5px;
    background: #fff;
}
.progress-gauge {
    background: #999999;
    height: 100%;
    transition: width .5s linear;
}

/* 汎用系 */
.cf:before,
.cf:after {
    content: " ";
    display: table;
}
.cf:after {
    clear: both;
}
.cf {
    *zoom: 1;
}
.language-switcher {
    display: block;
    font-size: 16px;
    margin-left: auto;
    padding: 5px;
}
@media screen and (max-width: 1030px) {
    .language-switcher {
        margin-top: 20px;
    }
}
.language-switcher a.current {
    background: #999;
    border-radius: 50%;
}
a {
    text-decoration: none;
}
dd {
    margin-left: 0;
    margin-bottom: 15px;
}
input[type="text"],
input[type="password"] {
    padding: 5px;
    font-size: 14px;
}
.login-fail {
    margin: -30px 0 0;
    color: #f00;
}
.btn-area {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 20px;
}
.btn-area button {
    background-color: rgb(239, 122, 11);
    color: white;
    cursor: pointer;
    height: 50px;
    width: 250px;
    margin-left: 10px;
    margin-right: 10px;
    border: none;
    font-size: large;
}
/* ログインページ */
@media screen and (min-width: 1031px) {
    /* PCのみ */
    .login-wrapper {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 500px;
        height: 300px;
        background: rgb(218, 218, 218);
        transform: translate(-50%, -50%);
        border: 1px solid #ccc;
        padding: 30px;
        box-sizing: border-box;
    }
    .login-wrapper input {
        width: 350px;
    }
    .login-wrapper dd {
        clear: right;
        margin-left: 70px;
        text-align: right;
    }
    .login-wrapper dt {
        float: left;
        margin-bottom: 15px;
    }
}
@media screen and (max-width: 1030px) {
    .login-wrapper {
        max-width: 320px;
        margin: 0 auto;
        box-sizing: border-box;
        padding-left: 20px;
        padding-right: 20px;
    }
    .login-wrapper input {
        width: 100%;
        box-sizing: border-box;
    }
}
/* 説明ページ */
@media screen and (min-width: 1031px) {
    .howto-wrapper p {
        max-width: 80%;
        margin: 60px auto;
        font-size: 18px;
    }
}
@media screen and (max-width: 1030px) {
    .howto-wrapper p {
        padding: 0 20px;
    }
}
/* 属性ページ */
@media screen and (min-width: 1031px) {
    #attribute-body .radios li {
        width: 33.3333%;
        float: left;
        position: relative;
    }
    #attribute-body .radios li input[type="radio"]:checked:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}
#attribute-body .main-question,
#attribute-body .sub-question {
    transition: none;
    padding-bottom: 10px;
    padding-top: 50px;
}
#attribute-body .progress-wrapper + .main-question {
    padding-top: 0;
}
#attribute-body .radios {
    margin: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 15px;
    background-color: #fff;
    border-bottom: 1px solid rgb(218, 218, 218);
}
#attribute-body .radios li {
    padding-top: 5px;
    padding-bottom: 5px;
}
/* 完了ページ */
@media screen and (min-width: 1031px) {
    .thanks-wrapper p {
        max-width: 80%;
        margin: 100px auto 30px;
        text-align: center;
    }
}
@media screen and (max-width: 1030px) {
    .thanks-wrapper p {
        padding: 0 20px;
        margin: 50px auto 30px;
        text-align: center;
    }
}
body {
    min-height: 100vh;
    position: relative;
}
footer {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 25px;
    line-height: 25px;
    text-align: center;
    background: #999999;
    color: #fff;
    width: 100%;
}