@charset "UTF-8";

body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
fieldset,
input,
textarea,
p,
blockquote,
table,
th,
td,
figure {
    margin: 0;
    padding: 0;
}

html {
    overflow-y: scroll;
    font-size: 62.5%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 100%;
    font-weight: normal;
}

ol,
ul {
    list-style: none;
}

fieldset,
img {
    border: 0 none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

caption,
th {
    text-align: left;
}

address,
caption,
cite,
code,
dfn,
em,
strong,
th,
var {
    font-style: normal;
    font-weight: normal;
}

object,
embed,
img {
    vertical-align: top;
}

p {
    font-size: 16px;
    color: #000;
    line-height: 1.4;
}

a {
    display: block;
    text-decoration: none;
}

a:hover {
    cursor: pointer;
}

img {
    border: 0px none #ffffff;
    width: 100%;
    height: auto;
}

body {
    font-family: 'Noto Sans JP', sans-serif, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
    background: #edf2f8;
}

.en {
    font-family: 'Inter', sans-serif;
}

@media (min-width: 768px) {
    .pc_none {
        display: none;
    }
}

/* ヘッダー */
.header {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    padding: 5px 10px 5px;
}

.header .header-box {
    width: 100%;
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.header .header-left {
    padding: 0 12px;
    display: flex;
    align-items: center;
}

.header .header-left .logo {
    width: 100%;
    max-width: 130px;
}

.header .header-left .logo a {
    transition: 0.2s;
    display: block;
}

.header .header-left .logo a:hover {
    transform: scale(0.9);
}

.header .header-left .logo-txt p {
    font-size: 12px;
    line-height: 1.4;
}

.header .header-left .logo-brand {
    width: 400px;
    height: 63px;
    position: absolute;
    top: 0;
    right: 330px;
    align-items: center;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.header .header-left .logo-brand .logo_realta img {
    width: 120px;
}

.header .header-tel {
    padding-right: 12px;
}

.header .header-tel a {
    display: flex;
    justify-content: center;
    color: #373582;
    font-size: 30px;
    line-height: 1.1;
    white-space: nowrap;
    align-items: center;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 700;
    transition: 0.2s;
}

.header .header-tel a svg {
    width: 35px;
    height: 20px;
    margin-right: 12px;
}

.header .header-tel a:hover {
    opacity: 0.7;
}

.header .header-tel .txt {
    font-size: 12px;
}

@media (min-width: 768px) {
    .header .header-box {
        position: relative;
    }

    .header .header-left .logo {
        padding-top: 20px;
    }

    .header .header-left .logo-txt {
        position: absolute;
        top: 0;
        left: 10px;
        margin-left: 0;
    }
}
@media (max-width: 890px) {
    .header .header-tel a {
        font-size: 26px;
    }

    .header .header-tel .txt {
        font-size: 12px;
    }
}
@media (max-width: 767px) {
    .header {
        padding: 5px 10px;
    }

    .header .header-left .logo {
        width: 100%;
        max-width: 100px;
    }

    .header .header-left .logo-brand {
        display: none;
    }

    .header .header-left .logo-brand img {
        max-width: 40px;
    }

    .header .header-left .logo-txt p {
        font-size: 12px !important;
    }

    .header .header-tel {
        padding-right: 0px;
    }

    .header .header-tel a {
        font-size: 22px;
    }

    .header .header-tel a svg {
        width: 25px;
        height: 25px;
        margin-right: 7px;
    }

    .header .header-tel .txt {
        font-size: 9px;
        white-space: nowrap;
    }
}
@media (max-width: 550px) {
    .header .header-left .logo-txt {
        display: none;
        margin-left: 0px;
    }
}

/* メインコンテンツ */

main.check {
    background: #edf2f8 url('images/bg.png') no-repeat;
    background-size: contain;
    background-position: center top;
    padding: 80px 40px;
    box-sizing: border-box;
}

main.check .main_ttl {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0.88px;
    color: #21336c;
    margin-bottom: 70px;
}

@media (max-width: 768px) {
    main.check {
        background: #edf2f8 url('images/bg_sp.png') no-repeat;
        background-size: contain;
        background-position: center top 15px;
        padding: 25px 20px;
    }

    main.check .main_ttl {
        font-size: 6vw;
        line-height: 1.4;
        margin-bottom: 25px;
    }
}

/* 質問コンテナ */
#question-container {
    background-color: #fff;
    border-radius: 8px;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.question h2 {
    background: #21336c;
    text-align: center;
    color: #fff;
    font-weight: 600;
    font-size: 28px;
    line-height: 1.4;
    position: relative;
    padding: 35px 20px 30px;
    box-sizing: border-box;
    margin-bottom: 50px;
    border-radius: 8px 8px 0 0;
    letter-spacing: 0.88px;
}

.question h2 .last_txt01 {
    display: inline-block;
    font-size: 18px;
    background: #fff;
    color: #21336c;
    padding: 2px 20px;
    border-radius: 100vh;
}

.question h2 .last_txt02 {
    display: block;
    font-size: 16px;
    margin: 10px 0 20px;
}

@media (min-width: 768px) {
    .question h2 span {
        position: absolute;
        left: 40px;
        top: 0;
        bottom: 0;
        margin: auto;
        width: 90px;
        height: 70px;
        font-family: 'Inter', sans-serif;
        font-size: 54px;
        margin-right: 20px;
    }
}

.answer-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 年収の質問（ID=4）用のスタイル */
.question[data-id='4'] .answer-options {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1000px;
}

.question[data-id='4'] .answer-option {
    padding: 20px 10px;
    font-size: 16px;
}

.answer-option {
    background: #fff;
    border: 2.5px solid #21336c;
    text-align: center;
    color: #21336c;
    font-size: 20px;
    font-weight: 600;
    padding: 35px 20px;
    box-sizing: border-box;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .answer-option:hover {
        background-color: #d6e9f7;
    }
}

@media (max-width: 768px) {
    .answer-option:active {
        background-color: #d6e9f7;
    }

    #question-container {
        padding-bottom: 25px;
    }

    .question h2 {
        font-size: 4.8vw;
        padding: 15px 20px 15px;
        margin-bottom: 20px;
        word-break: auto-phrase;
    }

    .question h2 span {
        font-family: 'Inter', sans-serif;
        font-size: 6vw;
        display: block;
        margin-bottom: 2px;
    }

    .question h2 .last_txt01 {
        font-size: 16px;
    }

    .question h2 .last_txt02 {
        font-size: 13px;
        margin: 10px 0 15px;
    }

    .answer-options {
        display: block;
        padding: 0 23px;
    }

    .answer-option {
        border: 2px solid #21336c;
        font-size: 4vw;
        padding: 25px 0;
        margin-bottom: 10px;
    }

    /* 年収の質問（ID=4）のモバイル表示 */
    .question[data-id='4'] .answer-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .question[data-id='4'] .answer-option {
        padding: 20px 5px;
        font-size: 3.5vw;
    }

    .answer-option:last-child {
        margin-bottom: 0;
    }
}

/* 診断完了画面 */

.question.thanks p {
    text-align: center;
    font-size: 24px;
    line-height: 1.5;
    color: #21336c;
    font-weight: 600;
    margin-bottom: 30px;
}

.question.thanks .btn-primary {
    color: #fff;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 1px;
    background: linear-gradient(to bottom, #f58800, #ff9717 50%, #f58800);
    padding: 30px 0;
    text-align: center;
    display: block;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    border-bottom: 4px solid #db7a00;
    border-radius: 100vh;
    cursor: pointer;
}

.question.thanks .btn-primary::after {
    content: '';
    display: block;
    background: url('images/btn_arrow.svg') no-repeat;
    background-size: contain;
    width: 18px;
    height: 18px;
    position: absolute;
    right: 40px;
    top: 4px;
    bottom: 0;
    margin: auto;
}

.question.thanks .btn-primary:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .question.thanks p {
        font-size: 4.2vw;
        padding: 0 20px;
        box-sizing: border-box;
        margin-bottom: 20px;
    }

    .question.thanks .btn-primary {
        font-size: 4.7vw;
        padding: 23px 0;
        width: 90%;
        border-bottom: 1px solid #db7a00;
    }

    .question.thanks .btn-primary::after {
        width: 15px;
        height: 15px;
        right: 20px;
        top: 3px;
    }
}

/* ナビゲーション */
.navigation {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* ボタン */
button {
    padding: 0;
    border: none;
    outline: none;
    font: inherit;
    color: inherit;
    background: none;
}

#prev-btn {
    text-align: center;
    color: #21336c;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    display: block;
}

#prev-btn::before {
    content: '<';
    display: inline-block;
    margin-right: 5px;
}

/* 診断結果 */
.result-container {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.result-type {
    text-align: center;
    padding: 20px;
    border-radius: 5px;
}

.result-type h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.result-type p {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
}

.result-type-a {
    background-color: #e8f4f8;
    border-left: 5px solid #3498db;
}

.result-type-b {
    background-color: #e8f8f5;
    border-left: 5px solid #2ecc71;
}

.result-type-c {
    background-color: #f8f4e8;
    border-left: 5px solid #f1c40f;
}

.result-type-d {
    background-color: #f6e8f8;
    border-left: 5px solid #9b59b6;
}

.result-type-e {
    background-color: #f8e8e8;
    border-left: 5px solid #e74c3c;
}

/* アクションボタン */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-top: 30px;
}

.action-buttons .btn {
    width: 250px;
    text-align: center;
}

/* フォーム */
.form-container {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.answers-display {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

/* フッター */
footer {
    background: #333333;
    padding: 20px;
    box-sizing: border-box;
}
footer p {
    text-align: center;
    color: #fff;
    font-size: 13px;
}

@media (max-width: 768px) {
    footer p {
        font-size: 10px;
    }
}

.footer ul {
	text-align: center;
}

.footer ul li a {
  text-align: center;
  font-size: 13px;
	color: #fff;
}

.footer ul li {
  margin: 0 5px 15px;
  display: inline-block;
}

.display_error {
    font-weight: 700;
    font-size: 18px;
    margin: 50px auto;
    max-width: 1300px;
    text-align: center;

    br {
        display: none;
    }
}

@media (max-width: 768px) {
    .display_error br {
        display: block;
    }
}
