/* -----------------
クイズ
------------------ */

:root {
  --accent: #f94306;

  --round: min(15vw, 80px);
}
main {
  padding-bottom: 0;
  border: none;
}

img {
  vertical-align: bottom;
}

a:link,
a:link {
  color: #0182b5;
}

a:hover {
  color: #72bad7;
}

h1 {
  visibility: hidden;
  display: none;
}

/* 背景 */
body {
   background: url(images/patty_bg.webp) repeat center / 30vw, #fff;
    background-attachment: fixed;
}

/* 大枠 */
.quiz_container {
    width: 88%;
    margin-inline: auto;
    max-width: 500px;
    box-shadow: 2px 10px 25px rgba(68, 50, 1, 0.2);
}


/* 余白 */
.quiz_container .container {
    padding-inline: 20px;
}

.quiz_container div:has(>img) {
  margin-inline: -20px;
}
/* 補足 */
.quiz_container .hosoku {
    padding-left: 1.5rem;
}

.quiz_container .hosoku li {
  list-style: none;
  font-size: 0.7rem;
  text-indent: -0.4rem;
}
.quiz_container .hosoku li::before {
  display: inline-block;
  content: '※';

}

/* --- ヘッダー --- */
.quiz_container .header_area {
    padding: 0 0 0.5rem;
    background-color: #13a8e2;
    text-align: center;
    position: relative;
    z-index: 1;
}

.quiz_container .header_area::after {
  display: block;
  position: absolute;
  content: '';
  width: var(--round);
  height: var(--round);
  background: url(images/round02b.svg) no-repeat center;
  bottom: calc(0.5px - var(--round));
  left: 9.5px;
}
.quiz_container .header_area img {
    margin: 1rem 0 0.3rem;
}

/* --- フッター --- */

.quiz_container footer {
    background-color: #5c3d24;
    text-align: center;
    box-shadow: 2px 10px 25px rgba(68, 50, 1, 0.2);
}

.quiz_container address {
    margin: 0;
    padding-top: 1rem;
}
.quiz_container .footer_add_area {
    font-style: normal;
    text-align: center;
}
.quiz_container .copyright {
    margin: 0;
    font-size: min(3vw, 0.8rem);
    padding-block: 1rem;
}

/* --- メイン --- */


.quiz_top {
  padding-top: 1rem;
    padding-bottom: min(9vw,45px);
    position: relative;
    top: -0.5px;
}

.quiz_top::before {
  display: block;
  position: absolute;
  content: '';
  width: 10px;
  height: 100%;
  background:#13a8e2;
  bottom: -0.5px;
  left: -0.5px;
}

.quiz_top::after {
  display: block;
  position: absolute;
  content: '';
  width: var(--round);
  height: var(--round);
  background: url(images/round02a.svg) no-repeat center;
  bottom: -0.5px;
  left: 9.5px;
}

.quiz_top .kakomi {
  background-color: #e5f1f6;
  border: none;
  margin-left: 10px;
}

/* 問題 
--------------------- */

/* --- 問題の角丸 --- */

.ques_card {
    background-color: #fffdd1;
    padding: min(15vw,100px) 0;
    position: relative;
}

.ques_card:nth-child(4n+1) {
    background-color: #13a8e2;
}

.ques_card:nth-child(4n+3) {
    background-color: #11c3cc;
}

.ques_card::before,
.ques_card::after {
  display: block;
  position: absolute;
  content: '';
  width: var(--round);
  height: var(--round);
}

/* 1番目 */
.ques_card:nth-child(4n+1)::before {
  background: url(images/round01b.svg) no-repeat center;
  top: -0.5px;
  right: -0.5px;
}

.ques_card:nth-child(4n+1)::after {
  background: url(images/round01a.svg) no-repeat center;
  bottom: -0.5px;
  right: -0.5px;
}

/* 2番目 */
.ques_card:nth-child(4n+2)::before {
  background: url(images/round02b.svg) no-repeat center;
  top: -0.5px;
  left: -0.5px;
}

.ques_card:nth-child(4n+2)::after {
  background: url(images/round03a.svg) no-repeat center;
  bottom: -0.5px;
  left: -0.5px;
}
  /* 3番目 */
  .ques_card:nth-child(4n+3)::before {
    background: url(images/round01b.svg) no-repeat center;
    top: -0.5px;
    right: -0.5px;
  }
  
  .ques_card:nth-child(4n+3)::after {
    background: url(images/round01a.svg) no-repeat center;
    bottom: -0.5px;
    right: -0.5px;
  }
  /* 4番目 */
  .ques_card:nth-child(4n)::before {
    background: url(images/round03b.svg) no-repeat center;
    top: -0.5px;
    left: -0.5px;
  }
  
  .ques_card:nth-child(4n)::after {
    background: url(images/round02a.svg) no-repeat center;
    bottom: -0.5px;
    left: -0.5px;
  }

  /* 始まり */
  .ques_card:nth-child(4n+1):first-child::before {
    background: url(images/round04b.svg) no-repeat center;
  }

  /* 終わり */
  .ques_card:nth-child(4n+2):last-child::after  {
    background: url(images/round04a.svg) no-repeat center;
  }


/* --- 文字色 --- */
/* 1番目　3番目 */
.ques_card:nth-child(4n+1) :is(h2,h3,p),
.ques_card:nth-child(4n+3) :is(h2,h3,p) {
    color: #fff!important;
}
/* 2番目 */
.ques_card:nth-child(4n+2) :is(h2,h3,p) {
    color: #0182b5;
}
/* 4番目 */
.ques_card:nth-child(4n) :is(h2,h3,p) {
    color: #027d83;
}


/* Q */
.ques_card h2 {
    border-bottom: none;
    padding: 0;
    margin: 0 0 1rem!important;
    font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings:"wdth" 100;
  font-size: min(15vw, 4.5rem);
  line-height: 1;

}
/* 問題文 */
.ques_card h3 {
    border-bottom: none;
    padding: 0;
    margin-bottom: 2rem;
    background: none;
    font-size: min(5vw, 1.7rem);
    line-height: 2;
    margin-top: 0;
}

.ques_card h3 span {
  background: linear-gradient(0deg, #fff 2px, transparent 2px);
  padding-bottom: 3px;
}

/* 2番目 */
.ques_card:nth-child(4n+2) h3 span {
  background: linear-gradient(0deg, #0182b5 2px, transparent 2px);
}
/* 4番目 */
.ques_card:nth-child(4n) h3 span {
  background: linear-gradient(0deg, #027d83 2px, transparent 2px);
}

/* 回答文 */

.ques_card p {
    font-size: min(4.1vw, 1.3rem);
    margin-bottom: 0;
    line-height: 2.2;
}

.ques_card p input[type="text"] {
    height: 32px;
    margin-inline: 5px;
    border-color: #5e7a7e;
}

.ques_card p input[type="text"]::placeholder {
  color: #a2b9c2;
}
/* 参照ページ */
.ques_card .reference {
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 2rem;
}
.ques_card .reference span {
  border: 1px solid #fff;
  margin-right: 8px;
  padding: 3px 6px 2px;
  border-radius: 3px;
  display: block;
  margin-bottom: 0.3rem;
  width: fit-content;
}

/* 2番目 */
.ques_card:nth-child(4n+2) .reference span {
  border-color: #0182b5;
}

/* 4番目 */
.ques_card:nth-child(4n) .reference span {
  border-color: #027d83;
}

.ques_card .reference img {
  width: 0.7em;
  display: inline;
  margin: auto 7px 0.25em;
}


/* フォーム */


.quiz input {
    width: 180px;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.text-center {
    text-align: center;
}

/* お客様情報 */

.jyouhou {
  padding: 3rem 0;
  background-color: #eeeeec;
}

.jyouhou h3 {
    background-image: none;
    color: #54331e;
    margin-bottom: 0;
    padding: 0;
}

.jyouhou strong {
  color: var(--accent);
  font-size: 0.9em;
  margin-inline: 5px;
}

.jyouhou input[type="text"], input[type="email"], .jyouhou input[type="tel"] {
  box-sizing: border-box;
  width: 100%;
  padding: 5px 15px !important;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.jyouhou input[type="text"]::placeholder, input[type="email"]::placeholder, .jyouhou input[type="tel"]::placeholder {
  color: #aa988e;
}

.jyouhou input[type="date"] {
  box-sizing: border-box;
  padding: 5px 15px !important;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.jyouhou input[type="text"], .jyouhou  input[type="email"], .jyouhou  input[type="tel"] {
  box-sizing: border-box;
  width: 100%;
  padding: 25px 15px !important;
  font-size: 1rem;
  border: 1px solid #908d86;
  border-radius: 5px;
}

/* ラジオボタンとチェックボックス */
.jyouhou input[type="radio"], .jyouhou input[type="checkbox"] {
  margin-left: 30px;
  margin-right: 10px;
}

/*フォームボタン*/
.form_submit_btn {
  text-align: center;
  background-color: #eeeeec;
}

.jyouhou input[type="submit"], .jyouhou input[type="button"] {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  /* どこかで小さくした？ */
  color: #fff;
  border: unset;
  border-radius: 5px;
  background-color: var(--accent)!important;
}

/* .jyouhou input[type="submit"]:hover, .jyouhou input[type="button"]:hover {
  background-color: var(--accent);
  opacity: 0.7;
} */

input[type="submit"], input[type="button"] {
  background-color: var(--accent);
  margin: 1rem 0 4rem;
  }

input[type="submit"]:hover, input[type="button"]:hover {
  background-color: var(--accent);
  opacity: 0.7;
  }

@media (min-width:768px) {

    /* 余白 */
.quiz_container .container {
    padding-inline: 40px;
}


}
