@import url('https://fonts.googleapis.com/earlyaccess/nicomoji.css');

:root {
    --color_text: #333;
    --color_textW: #ccc;
    --color_1: #fff4be;
    --color_2: #fd5933;
    --color_3: #b6e000;
    --color_4: #78cee8;
    --color_5: #ffbbd4;
    --color_back: #e3e3e3;
    font-size: 62.5%;
}

input[type="number"]::-webkit-outer-spin-button, 
input[type="number"]::-webkit-inner-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

input[type="number"] { 
    -moz-appearance:textfield; 
}

.mono {
    font-family: Menlo, Monaco, 'Courier New', Consolas, monospace;;
}

body {
    background-color: var(--color_back);
}

.wrapper {
    width: 80%;
    max-width: 500px;
    min-width: 300px;
    min-height: calc(100vh - 3rem);
    margin-right: auto;
    margin-left: auto;
    padding-bottom: 10rem;
    background-color: var(--color_back);
    font-family: "ヒラギノ角ゴ ProN", YuGothic, "Yu Gothic medium", Meiryo, sans-serif;
    color: var(--color_text);
    font-size: 1.6rem;
    text-align: center;
}

h1.title {
    font-family: "Nico Moji";
    text-align: center;
    font-size: 6rem;
    color: var(--color_2);
    padding-top: 20%;
    padding-bottom: 15%;
}

h1.title span {
    display: block;
    font-size: 1.4rem;
    line-height: 0;
}

.btn_toHome, .btn_toQtop {
    width: 14rem;
    height: 6rem;
    margin: 2rem auto 2rem auto;
    padding-top: 2rem;
    background-color: #aaa;
    color: #eee;
    border-radius: 1.5rem;
}

.btn_make {
    width: 14rem;
    height: 6rem;
    margin: 2rem auto 2rem auto;
    padding-top: 2rem;
    background-color: var(--color_4);
    border-radius: 1.5rem;
}

.btn_toShare {
    width: 14rem;
    height: 6rem;
    margin: 2rem auto 2rem auto;
    padding-top: 2rem;
    background-color: var(--color_1);
    color: #4b5a5e;
    border-radius: 1.5rem;
}

.btn_toAnswer, .btn_answer {
    width: 14rem;
    height: 6rem;
    margin: 2rem auto 2rem auto;
    padding-top: 2rem;
    background-color: var(--color_5);
    color: #8a4c4c;
    border-radius: 1.5rem;
}

.top h2 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
}

.top .answer p span{
    font-weight: bold;
}

.top p.or {
    margin-top: 1.6rem;
    margin-bottom: 1.6rem;
    color: #555;
}

.top .box_q_code {
    width: 280px;
    height: 5rem;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #555;
    border-radius: 0.6rem;
    background-color: #fff;
}

.top .box_q_code input {
    width: 100%;
    height: 100%;
    font-size: 2rem;
    letter-spacing: 0.3rem;
    padding-left: 1rem;
}

.top .btn_q_code {
    width: 14rem;
    height: 6rem;
    margin: 2rem auto 2rem auto;
    padding-top: 2rem;
    background-color: var(--color_5);
    border-radius: 1.5rem;
}

.top hr {
    width: 40%;
    margin: 4rem auto 4rem auto;
    background-color: var(--color_text);
}

.top .original_list {
    margin-top: 5rem;
    width: 75%;
    margin-left: auto;
    margin-right: auto;
}

.top .original_q_list li {
    border: 1px solid #000;
    padding: 0.5rem 2rem 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 4rem;
}

.top .original_q_list a {
    display: inline-block;
    width: 100%;
    height: 100%;
}

.make .explain .theme {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.make .explain .option {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 1.5rem;
}

.make .enter .q_statement {
    width: 75%;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    text-align: left;
}

.make .enter .q_statement textarea {
    width: 100%;
    height: 14rem;
    background-color: #fff;
    padding: 1.2rem;
    border-radius: 0.8rem;
}

.make .enter .caution {
    padding-top: 0.8rem;
    font-size: 1rem;
    color: #666;
}

.make .q_answer {
    margin-bottom: 3rem;
}

.make .q_answer p {
    font-size: 2rem;
}

.make .q_option {
    font-size: 1.8rem;
}

.make input[type=radio] {
    display: none;
}

.make .q_option label {
    display: inline-block;
    width: 40%;
    height: 8rem;
    margin: 1rem;
    padding: 1rem;
    background-color: #f3f3f3;
    border: 2px solid var(--color_3);
    border-radius: 1.2rem;
}

.make .q_option input:checked + label {
    background-color: var(--color_3);
    color: #fff;
}

.make .q_option .radio_wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.make .name {
    width: 75%;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    text-align: left;
}

.make .name p {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.make .name textarea {
    width: 100%;
    height: 3.9rem;
    background-color: #fff;
    padding: 1rem;
    border-radius: 0.8rem;
}

.q_home .explain {
    margin-top: 2rem;
    margin-bottom: 4rem;
    padding-left: 2rem;
}

.q_home .statement {
    font-size: 2rem;
    margin-bottom: 4rem;
}

.q_home .user_name {
    text-align: left;
}

.q_home .a_rate {
    text-align: left;
}

.wrapper.answer {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.answer .q_statement {
    font-size: 3rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.answer .q_option {
    font-size: 1.8rem;
    margin-bottom: 5rem;
}

.answer input[type=radio] {
    display: none;
}

.answer .q_option label {
    display: inline-block;
    width: 40%;
    height: 8rem;
    margin: 1rem;
    padding: 1rem;
    background-color: #f3f3f3;
    border: 2px solid var(--color_3);
    border-radius: 1.2rem;
}

.answer .q_option input:checked + label {
    background-color: var(--color_3);
    color: #510000;
}

.answer .q_option .radio_wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a_wrapper {
    text-align: center;
    font-family: "ヒラギノ角ゴ ProN", YuGothic, "Yu Gothic medium", Meiryo, sans-serif;
    font-size: 1.6rem;
}

.a_wrapper .true_or_false {
    font-size: 6rem;
    font-weight: bold;
    color: var(--color_text);
    margin-top: 15rem;
    margin-bottom: 10rem;
}

.share h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.share .qr_code {
    width: 65%;
    height: auto;
    margin: 0 auto 4rem auto;
    padding: 2rem;
    background-color: #fff;
    & canvas {
        width: 100%;
        height: 100%;
    }
}

.share .code {
    font-size: 3rem;
}

.share .url {
    width: 14rem;
    height: 6rem;
    margin: 2rem auto 8rem auto;
    padding-top: 1.8rem;
    background-color: #fff;
    color: #333;
    border: 3px solid var(--color_3);
    border-radius: 3rem;
}

footer {
    text-align: center;
    color: var(--color_text);
    font-size: 1.2rem;
    position: relative;
    bottom: 0;
    padding-bottom: 1rem;
}

.msg {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translate(-50%, 0);
    padding: 1.2rem 2.4rem 1rem;
    font-size: 2rem;
    border-radius: 0.5rem;
    color: #fff;
    text-align: center;
}