    :root {
      --bg-beige: #fbe9e7;
      --border-gray: #ddd;
      --text-dark: #333;
      --error-red: #e53935;
	  --color-btn: #fffcf8;
	  --color-orange: #ed7538;
      --color-orange-dark: #e65100;
	  --color-black: #0e1318;
    }
	body {
		  font-family: "Noto Sans JP";
	}
	.page-quiz {
      margin: 0;
      padding: 0;
      background: var(--bg-beige);
      display: flex;
      justify-content: center;
      align-items: flex-start;
      min-height: 100vh;
      padding: 40px;
      color: var(--text-dark);
      line-height: 1.5; 
	  }
    .quizSection {
      background: #ffffff;
      width: 800px;
	  margin:0 auto;
      max-width: 100%;
      padding: 0;
      border-radius: 20px; /* matches rounded corners from screenshot */
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      overflow: hidden;
    }

    /* ===== Header ===== */
    .quiz-header {
      background: var(--color-orange);
      color: #fff;
      text-align: center;
      padding: 28px 16px 16px;
      border-radius: 20px 20px 0 0;
    }
    .header-sub {
	  font-weight:300;
      font-size: 16px;
      line-height: 1.2;
      opacity: 1;
      margin-bottom: 4px;
    }
    .quiz-header h1 {
      margin: 0;
      font-size: 26px;
      font-weight: 600;
      line-height: 1.3;
    }

    .page-quiz .content {
      padding: 30px 60px;
    }

    /* ===== Step Indicator Row ===== */
    .step-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }
    .step-label {
      font-size: 14px;
      color: var(--text-dark);
      white-space: nowrap;
    }
    .step-label strong {
      color: var(--color-orange);
      font-weight: bold;
    }
    .step-row .progress-bar {
      flex: 1;
      margin-left: 12px;
    }

    /* ===== Progress Bar ===== */
    .page-quiz .progress-bar {
      height: 6px;
      background: #ddd;
      border-radius: 4px;
      overflow: hidden;
    }
    .page-quiz .progress {
      height: 100%;
      width: 0;
      background: var(--color-orange);
      transition: width 0.4s ease-in-out;
    }
    .page-quiz .page {
      display: none;
    }
    .page-quiz .page.active {
      display: block;
    }
    .page-quiz h2, 
	.page-quiz h3 {
      margin: 0 0 12px;
      font-size: 20px;
      color: var(--color-orange);
      font-weight: 500;
    }
	
    /* ===== Form Controls ===== */
    .page-quiz input, .page-quiz select {
      padding: 6px 8px;
      border-radius: 4px;
      border: 1px solid #ccc;
      width: 100%;
      box-sizing: border-box;
      font-size: 14px;
    }

    .page-quiz .error-msg {
      color: var(--error-red);
      font-size: 0.85em;
      margin-top: 3px;
      display: none;
    }
    .page-quiz input.invalid,
    .page-quiz select.invalid {
      border-color: var(--error-red);
      box-shadow: 0 0 5px rgba(229, 57, 53, 0.4);
    }

.page-quiz .options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 20px;
  margin-bottom: 10px;
}

.page-quiz .options label {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 18px;
  color: var(--text-dark, #333);
  cursor: pointer;
  border: 1px solid #eee;
  padding: 6px 10px 6px 36px; /* 左邊留空給 checkbox */
  background-color: #fff;
  border-radius: 6px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.page-quiz .options label:hover {
  background-color: #fff7ef;
  border-color: #f37021;
}

.page-quiz .options input[type="checkbox"] {
  display: none;
}

/* 自訂 checkbox 的外框 */
.page-quiz .options label::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  background-color: #fff;
  border-radius: 4px;
  box-sizing: border-box;
}

/* 選取時套白色打勾 SVG + 橘色背景 */

.page-quiz .options label::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 1px solid #333;
  background-color: #fff;
  border-radius: 2px;
  box-sizing: border-box;
}
.page-quiz .options label:has(input:checked) {
  background-color: #fff7ef;
  border-color: #f37021;
}
.page-quiz .options label:has(input:checked)::before {
  content:"";
  background-color: #f37021;
  border-color: #f37021;
  color:#fff;
}
.page-quiz .options label:has(input:checked)::after {
  content:"";
  position: absolute;
  left: 16px;
  top: calc(50% - 7px);
  width: 7px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

    /* ===== Buttons ===== */
    .page-quiz .buttons {
      display: flex;
      justify-content: center;
      gap: 10px 20px;
      margin-top: 10px;
      flex-wrap: wrap;
    }
   .page-quiz button {
      background: var(--color-orange);
      color: var(--color-btn);
      border: none;
      border-radius: 4px;
      padding: 8px 18px;
      font-size: 14px;
      cursor: pointer;
      transition: background 0.3s ease;
    }
.page-quiz button#prevBtn {
    background: #eda87e;
}
.page-quiz button#submitBtn {
	  font-size: 18px;
}	
    .page-quiz button:hover {
      background: var(--color-orange-dark);
    }
    .page-quiz button:disabled {
      background: #ccc;
      cursor: not-allowed;
    }
    /* consent checkbox inline */
    .consent-wrap {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding-bottom: 10px;
    }
    .consent-wrap input[type="checkbox"] {
      margin-top: 2px;
      flex-shrink: 0;
	  width: auto;
    }
.page-quiz p.remind{
    color: var(--color-orange);
    font-size: 12px;
    padding-bottom: 10px;
    margin-top: -4px;
}
	
/*===== RWD ==*/
@media (max-width: 570px) {
.page-quiz { padding: 40px 20px;}
.page-quiz .content {padding: 30px 20px;}
.quizSection { width: 100%; }
.page-quiz .options { gap: 4px 12px; }
}

/* ===== Result Page ===== */
.result-active .quiz-header,
.result-active .step-row,
.result-active #prevBtn {
  display: none !important;
}
.result-active .page-quiz .quizSection { 
	position:relative;
	background: #fbf4e2;
    width: 800px;
    margin: 0 auto;
    max-width: 100%;
    padding: 0;
    border-radius: 0px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.result-active .page-quiz .quizSection:before {
    content: "";
    position: absolute;
    z-index: 1;	
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    width: 100%;
    height: 100%;
    display: block;
}
.result-active .page-quiz .quizSection h2{ 
	color: #e4783d;
    font-size: 72px;
	text-align:center;
    padding-bottom: 0px;
}
.result-active .page-quiz .content { 
	position:relative;
    z-index: 2;	
    padding: 30px 60px;
	
}
.result-active .page-quiz .buttons {
    justify-content: center;
}
.result-active .page-quiz .buttons button{
    font-size: 30px;
}


/* ==== 結果樣式 ==== */
#section-result {
    padding-bottom: 15px;
}
.page-quiz .result-header {
  background-color: #f37021;
  border-radius: 20px 20px 0 0;
  padding: 0px;
  text-align: center;
}
.page-quiz .result-header h3 {
	display: flex;
    align-items: center;
    justify-content: center;
  font-weight: bold;
  font-size: 32px;
  letter-spacing: 2px;
  color: white;
  margin:0;
}
.page-quiz .result-header h3 .type {
  position: relative;
  font-size: 180px;
  width: 180px;
  padding-left:20px;
}
.page-quiz .result-header h3 .type p{
  position: relative;
  z-index:2
}
.page-quiz .result-type-tag {
    position: absolute;
    bottom: -40px;
    right: 20px;
    background: var(--color-orange);
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    border-radius: 16px;
    border: 2px solid var(--color-orange);
    text-align: center;
    line-height: 48px;
    padding: 10px 24px;
}
.page-quiz .result-section {
  background:#fff;
  padding: 20px 40px;
  padding-bottom: 100px;
  color:var(--color-black);
}
.page-quiz .result-section .result-list{
  padding-bottom: 28px;
  font-size:24px;
}
.page-quiz .result-section .result-list h4{
  color:var(--color-orange);
  font-size:20px;
  margin-bottom:6px;
}
.page-quiz .result-section .col-sympton ul {
  padding-left: 20px;
  margin: 0;
}
.page-quiz .result-section .col-sympton li {
	margin-left: 12px;
    list-style: initial;
    font-size: 24px;
    line-height: 1.4;
    padding-bottom: 0px;
}
.page-quiz .result-section .col-sympton li:last-child {
    padding-bottom: 0px;
}
.page-quiz .result-section .result-list.col-sympton {
  padding-bottom: 24px;
}
.page-quiz .result-section .col-sympton ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.page-quiz .result-section .col-sympton li {
	margin-right: 30px;
}

.page-quiz .result-section .col-diet ul{
  padding-left: 20px;
  margin: 0;
}
.page-quiz .result-section .col-diet li{
	margin-left: 20px;
    list-style: initial;
    font-size: 22px;
    line-height: 1.4;
    padding-bottom: 10px;
}
.page-quiz .result-section .col-diet li:last-child{
    padding-bottom: 0px;
}
.page-quiz .result-section .col-diet li span{
  color:var(--color-orange);
}

.page-quiz .result-section .col-product{
    border: 1px solid #ccc;
    padding: 16px;
    margin: 0 -10px;
    margin-bottom: 24px;
}
.page-quiz .result-section .col-product .pd-info{
    font-weight: bold;
    font-size: 28px;
	line-height:1.2;
    padding-bottom: 15px;
}
.page-quiz .result-section .col-product .pd-info a{
    font-size: 32px;
	color:var(--color-orange);
	padding-left: 4px;
}
.page-quiz .result-section .col-product .pd-info.symptonType{
	color:var(--color-orange);
    font-size: 24px;
}
.page-quiz .result-section .result-info{
    font-size: 20px;
	color:var(--color-black);
}
.page-quiz .result-section .result-info a{
	color:var(--color-orange);
}
.page-quiz .result-brand-footer {
  background: var(--color-orange);
  color: white;
  padding: 20px 24px 24px 30px;
  border-radius: 0 0 20px 20px;
  display:flex;
}
.page-quiz .result-brand-footer .brand-logo {
  position:relative;
  width:30%;
  top:10px;
}
.page-quiz .result-brand-footer .brand-logo img {
    position: absolute;
    max-width: 140px;
	height:auto;
    bottom: 0px;
    padding: 10px;
    border-radius: 10px 10px 0;
    background: var(--color-orange);
}
.page-quiz .result-brand-footer .brand-text{
  padding-left: 20px;
  font-size: 20px;
  line-height: 1.6;
  width:70%;
}
.page-quiz .result-btn-restart {
  display: block;
  margin: 20px auto 0;
  background: var(--color-orange);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  cursor: pointer;
}

/*=== RWD-result ==*/
@media (max-width: 991px) {
.result-active .page-quiz .quizSection h2 {
    font-size: 48px;
}
.result-active .page-quiz .content {
    padding: 30px 40px;
}
.result-active .page-quiz .buttons button {
    font-size: 24px;
}
.page-quiz .result-header h3 {
  font-size: 28px;
  letter-spacing: 2px;
}
.page-quiz .result-header h3 .type {
	font-size: 88px;
	width: 100px;
	padding-left: 20px;
}
.page-quiz .result-type-tag {
	bottom: -24px;
	right: 4px;
	font-size: 16px;
	line-height: 30px;
	padding: 6px 20px;
	border-radius: 12px;
}
.page-quiz .result-section {
  padding: 20px 30px;
  padding-bottom: 80px;
}
.page-quiz .result-section .result-list{
  padding-bottom: 28px;
  font-size:20px;
}
.page-quiz .result-section .result-list h4 {
    font-size: 20px;
}
.page-quiz .result-section .col-sympton ul {
  padding-left: 20px;
  margin: 0;
}
.page-quiz .result-section .col-sympton li {
	margin-left: 12px;
    font-size: 20px;
    padding-bottom: 10px;
}
.page-quiz .result-section .col-diet ul {
  padding-left: 20px;
  margin: 0;
}
.page-quiz .result-section .col-diet li {
	margin-left: 12px;
    font-size: 18px;
    padding-bottom: 10px;
}
.page-quiz .result-section .col-product .pd-info{
    font-size: 24px;
}
.page-quiz .result-section .col-product .pd-info a{
    font-size: 28px;
}
.page-quiz .result-section .result-info{
    font-size: 16px;
}
.page-quiz .result-brand-footer {
  padding: 30px 30px;
  border-radius: 0 0 20px 20px;
}
.page-quiz .result-brand-footer .brand-logo {
  position:relative;
  width:27%;
  top:10px;
}
.page-quiz .result-brand-footer .brand-logo img {
    max-width: 120px;
	height:auto;
	padding-bottom: 0;
}
.page-quiz .result-brand-footer .brand-text{
  padding-left: 0px;
  font-size: 18px;
  line-height: 1.4;
  width:76%;
}
.page-quiz .result-btn-restart {
  margin: 20px auto 0;
  padding: 10px 24px;
  font-size: 14px;
}
}

@media (max-width: 576px) {
.result-active .page-quiz .quizSection h2 {
    font-size: 38px;
}
.result-active .page-quiz .content {
	padding: 20px 20px 30px;
}
.result-active .page-quiz .quizSection:before {
    background-repeat: repeat-y;
    background-size: contain;
}
.page-quiz .result-header h3 {
  font-size: 4.5vw;
  letter-spacing: 0px;
}
.page-quiz .result-header h3 .type {
	font-size: 20vw;
	width: 16.7vw;
	padding-left: 0px;
}
.page-quiz .result-type-tag {
	bottom: -20px;
	right: 4px;
	font-size: 16px;
	line-height: 20px;
	padding: 6px 20px;
	border-radius: 12px;
}
.page-quiz .result-section {
  padding: 20px 16px;
  padding-bottom: 40px;
}
.page-quiz .result-section .result-list{
  padding-bottom: 28px;
  font-size:20px;
}
.page-quiz .result-section .result-list h4 {
    font-size: 16px;
}
.page-quiz .result-section .col-sympton ul {
  padding-left: 20px;
  margin: 0;
}
.page-quiz .result-section .col-sympton li {
	margin-left: 12px;
    font-size: 20px;
    padding-bottom: 10px;
}
.page-quiz .result-section .col-sympton li {
        padding-bottom: 4px;
        font-size: 20px;
        margin-left: 6px;
}
.page-quiz .result-section .col-diet ul {
  padding-left: 20px;
  margin: 0;
}
.page-quiz .result-section .col-diet li {
	margin-left: 12px;
    font-size: 18px;
    padding-bottom: 10px;
}
.page-quiz .result-section .col-product {
    padding: 16px 10px;
    margin: 0 -4px;
	margin-bottom:24px;
}
.page-quiz .result-section .col-product .pd-info{
    font-size: 20px;
}
.page-quiz .result-section .col-product .pd-info a{
    font-size: 24px;
}
.page-quiz .result-section .col-product .pd-info.symptonType{
    font-size: 20px;
}
.page-quiz .result-section .col-product .pd-info:last-child{
    padding-bottom: 0px;
}

.page-quiz .result-section .result-info{
    font-size: 16px;
}
.page-quiz .result-brand-footer {
  padding: 15px 12px 15px 0;
  border-radius: 0 0 20px 20px;
}
.page-quiz .result-brand-footer .brand-logo {
  top:0px;
  width:32%;
}
.page-quiz .result-brand-footer .brand-logo img {
	width: 94%;
    padding: 8px;
	padding-bottom: 0;
}
.page-quiz .result-brand-footer .brand-text{
  font-size: 14px;
  width:68%;
}
.page-quiz .result-btn-restart {
  margin: 20px auto 0;
  padding: 10px 24px;
  font-size: 14px;
}
}

/*===welcome==*/
/* 預設 quiz 隱藏，歡迎頁顯示 */
.page-quiz {
  display: none;
}
.welcome-section {
  background: #f4a876;
  color: #333;
  padding: 40px 40px 80px;
  text-align: center;
}
.welcome-content {
  max-width: 800px;
  color: #fff;
  padding: 0px 20px 20px;
  text-align: left;
  margin: 0 auto;
}
.welcome-content:first-child {
  padding-bottom:0px;
}
.welcome-content p{
  font-size: 18px;
  line-height:1.4;
  padding-bottom:16px;
}
.welcome-inner {
  background: white;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 20px;
  padding: 40px 30px;
}
.welcome-title {
  color: var(--color-orange);
  font-size: 16px;
  font-weight:300;
  margin: 0 -10px;
  margin-bottom: 10px;
  position:relative;
}
.welcome-section h2 {
  color: var(--color-orange);
  font-size: 30px;
  margin-bottom: 20px;
}
.welcome-section p {
  font-size: 18px;
  line-height:1.4;
}
.welcome-section p.remind{
  color: var(--color-orange);
  font-size: 11px;
  padding-top:20px;
}
.welcome-section p.border-bottom{
  width:108px;
  height:4px;
  margin: 20px auto 20px;
  background:var(--color-orange);
}
.welcome-doc {
  margin: 20px auto;
  max-width: 600px;
  display:flex;
  align-items: center; 
}
.welcome-doc .image {
  width:36%;
}
.welcome-doc .image img{
  max-width:100%;
  height:auto;
  border-radius:50%;
}
.welcome-doc .text {
  width:64%;
  padding-left:20px;
  text-align:left;
  font-size:16px;
  color:var(--color-black);
}

#welcome-section button,
#startQuizBtn {
  background: var(--color-orange);
  color: #fff;
  font-size: 18px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  width: 100%;
  letter-spacing: 2px;
}

#welcome-section button:hover,
#startQuizBtn:hover {
  background: var(--color-orange-dark);
}

@media (max-width: 576px) {
.welcome-section {
  padding: 40px 20px;
  text-align: center;
}
.welcome-inner {
    border-radius: 16px;
    padding: 40px 20px;
}
.welcome-doc {
  flex-direction:column;
}
.welcome-doc .image {
  width:60%;
  margin: 20px auto;
}
.welcome-doc .text {
    width:100%;
    padding-left: 6px;
}
}

/*==Header/Footer==*/
header {
	background:#fff;
	height:auto;
	padding:20px 24px;
}
header .header-inner{
  max-width:280px;
  margin:0 auto;
  text-align:center;
  
}
header .header-inner img{
  width:100%;
  max-width:100%;
  height:auto;
}
footer {
	background:#ff9a50;
	padding:24px 24px;
	color:#fff;
  text-align:center;
  font-size:14px;
}
.result-back {
	padding:0px;
	text-align:center;
}
.result-back a{
    position: relative;
    display: flex;
    justify-content: center;
	padding:30px 0;
}
.result-back a button{
    display: flex;
    align-items: center;
	background:var(--color-orange);
    color: #fff;
    border: none;
    border-radius: 4px;
	font-size: 18px;
    padding: 0px 18px;
    height: 48px;
}
.result-back a:hover button{
	background:var(--color-orange-dark);
	text-decoration:none;
}
@media (max-width: 576px) {
.result-back a button{
	font-size: 16px;
}
}

/*== add 片假名 ==*/
.header-sub,
.header-sub span,
.welcome-title span{
  position:relative;
}
.header-sub span:before,
.welcome-title span:before{
  content:"";
  position:absolute;
  font-size:10px;
  color:#888;
  bottom:24px;
  font-weight:bold;
}
.header-sub span:before{
  color:rgba(255,255,255,0.8);
}
.header-sub span.txt01:before,
.welcome-title span.txt01:before{
  content:"ウェンシチュー";
  left:16px;
}
.header-sub span.txt02:before,
.welcome-title span.txt02:before{
  content:"ジンシン";
  left:3px;
}

/*FIX-1106*/
.page-quiz span.txt-note{
	display:block;
	font-size:12px;
	color:#888;
}
	
