/* ------------------------------
 * surface診断パーツ用CSS
 * ------------------------------ */
#search {
	position: relative;
	overflow: hidden;
	background: linear-gradient(
		90deg,
		#F3D3F0,
		#E0D3F0,
		#C6D3F1
	);
}
#search > .section_wrapper{
	position: relative;
    z-index: 2;
}
#search::before {
	content: "";
	position: absolute;
	inset: -20%;
	background:
		radial-gradient(
			circle,
			rgba(255,255,255,.35) 0%,
			transparent 60%
		);
	filter: blur(80px);
	animation: floatLight 5s ease-in-out infinite alternate;
}

@keyframes floatLight {
	from {
		transform: translateX(-5%);
	}

	to {
		transform: translateX(5%);
	}
}


/*診断フィルタ用*/
#ms .hidden{display:none!important;}
.products .product.accordion-hidden {
    display: none !important; 
}

/* 履歴 */

#ms #history {
    margin-top: 80px;
    display: flex;
    gap: 24px;
	min-height: 22px;
}
/*
#ms .history-item{
  background:#f5f7fa;
  padding:12px;
  margin-bottom:10px;
}
*/
#ms .history-label{
  font-size:12px;
  color:#666;
}

#ms .history-answer{
  font-size:13px;
}

/* 診断 */

#ms .question{
  margin-bottom:30px;
  animation:slideIn .5s cubic-bezier(0.39, 0.58, 0.57, 1);
  min-height: 200px;
}
#ms .question h2{
  margin-bottom:15px;
}
#ms .options{
	display: flex;
    gap: 32px;
	justify-content: center;
}
@keyframes slideIn {
  from{
    opacity:0;
    transform:translateX(15px);
  }
  to{
    opacity:1;
    transform:translateX(0);
  }
}
#ms .option-btn {
    min-width: calc(calc(60% - calc(32px * 1)) / 2);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
	justify-content: center;
    padding: 30px;
    border: none;
    border-radius: 3px;
    box-sizing: border-box;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .05);
    gap: 16px;
	transition: .3s ease;
}
#ms .option-btn:not(.disabled-option):hover {
    text-decoration: none;
    color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .11), 0 12px 32px rgba(0, 0, 0, .07);
}
#ms .option-btn span {
    width: calc(100% - 26px);
    font-size: 20px;
    text-align: center;
}
#ms .option-btn span small {
    font-size: 16px;
    margin-left: 8px;
}
#ms .option-btn.disabled-option{
	opacity:.4;
	cursor:default;
	background:#f5f5f5;
	color:#999;
}
#ms .option-btn.disabled-option span{
	width:100%;
}
#ms .option-btn:not(.disabled-option)::before {
    content: '';
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 3px;
    border: 3px solid #F0F0F0;
    box-sizing: border-box;
}
#ms .option-btn:not(.disabled-option):hover {
    text-decoration: none;
    color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .11), 0 12px 32px rgba(0, 0, 0, .07);
}
#ms .option-btn:not(.disabled-option):active{transform: translateY(2px);}
#ms .option-btn:not(.disabled-option):hover::before{border: 3px solid #0074C2;}
#ms .option-btn:not(.disabled-option):active::before{border: 3px solid #0074C2;background-color: #0074C2;}
#ms .question h4{ font-size: 34px;text-align: center;margin-bottom: 24px;}

/* 結果画面 */
#ms #stepEnd{
	display: flex;
    align-items: center;
    justify-content: center;
}
#ms #stepEnd p{
	text-align: center;
    border: 4px solid #fff;
    padding: 30px 50px;
    border-image: linear-gradient(301deg, #ef85e5, #c7a6ef, #88a7ef) 1;
}

/* プログレスバー */
#ms #progressBar {
    display: flex;
    align-items: flex-end;
    max-width: 500px;
    margin: 80px auto 30px;
}
#ms .progress-step {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    width: calc(24px + 22px);
}

#ms .progress-circle{
  width:20px;
  height:20px;
  border-radius:50%;
  background:#fff;
  box-sizing: border-box;
}

#ms .progress-step.completed .progress-circle{
  background:#0074C2;
}

#ms .progress-step.current .progress-circle{
  background: unset;
  border:4px solid #0074C2;
}

#ms .progress-label{
  margin-bottom:8px;
  font-size:18px;
}
#ms .progress-step.completed > .progress-label,
#ms .progress-step.current > .progress-label{color: #0074C2;font-weight: bold;}

#ms .progress-line {
    flex: 1;
    height: 3px;
    background: #fff;
    margin-bottom: 10px;
    border-radius: 2px;
}
#ms .progress-step.completed + .progress-line{
	background: #0074C2;
}


/* 戻る・リセットボタン */
#ms .navigation{text-align: center;	min-height: 30px;}
#ms #backButton,
#ms #resetButton{ border: none;cursor: pointer;}
#ms #backButton:hover,
#ms #resetButton:hover{color:#0074C2;}
#ms #resetButton img{vertical-align: middle;margin-bottom: 2px;}
#ms #resetButton:hover img{opacity:0.7}

/* 候補数 */
#ms .count{
  margin:20px 0;
  font-size:22px;
  font-weight:bold;
}
#ms .count span{font-size: 30px;margin-right: 3px;}
#ms .products{
	display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 20px;
	position: relative;
}
.products:has(> .accordion-hidden):after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 140px;
    background: linear-gradient(to bottom, #F3D3F0 0%, #E0D3F0 40%, #C6D3F1 100%);
    pointer-events: none;
    background: linear-gradient(90deg, #F3D3F0, #E0D3F0, #C6D3F1);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 80%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 80%);
}

/* 商品リスト */
#ms .product {
    display: grid;
    column-gap: 40px;
    padding: 32px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    grid-template-columns: 260px 1fr;
    grid-template-rows: auto 1fr;
    row-gap: 12px;
}

/* 左エリア */
#ms .product-image-area {
    width: 260px;
    grid-row: span 2 / span 2;
}

#ms .product-image-area img {
    width: 100%;
    display: block;
    margin-bottom: 16px;
}

#ms .btn-detail,
#ms .btn-compare {
    display: block;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 3px;
    padding: 12px;
    margin-bottom: 12px;
}

#ms .btn-detail {
    background: #006fbe;
    color: #fff;
}

#ms .btn-detail:hover {
    background: #005ca0;
}

#ms .btn-compare {
    background: #fff;
    color: #006fbe;
    border: 1px solid #006fbe;
}

#ms .btn-compare:hover {
    background: #f4f9ff;
}

/* 右エリア */
#ms .product-spec {
    flex: 1;
}

#ms .product-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

#ms .product-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #222;
	padding:0;
}
#ms .product-header h3:before {
	display:none;
}


#ms .product-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#ms .badge {
    color: #ff0000;
    border: 1px solid #ff0000;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 14px;
    line-height: 1;
}

/* スペック表 */
#ms .spec-list {
    display: grid;
    grid-template-columns: 130px 1fr;
    row-gap: 8px;
    column-gap: 16px;
    margin: 0;
    font-size: 14px;
}

#ms .spec-list dt {
    margin: 0;
    font-weight: 700;
    color: #333;
}

#ms .spec-list dd {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

/* 比較ボタン非表示 */
#ms .btn-compare{display: none;}

#ms button#more-btn{
    margin: auto;
    cursor: pointer;
    display: block;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    padding: 12px 24px;
    margin-bottom: 12px;
    background: #fff;
    color: #006fbe;
    border: 1px solid #006fbe;
    width: 25%;
    font-size: 15px;
    font-weight: 600;
}
#ms button#more-btn:after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 23px;
    width: 9px;
    height: 9px;
    margin: auto;
    border-top: 2px solid var(--color-primary);
    border-right: 2px solid var(--color-primary);
    transform: rotate(135deg);
    box-sizing: border-box;
}
#ms button#more-btn:hover {
    text-decoration: none;
    background: #f9f9f9;
	transform: translateY(-1px);
    opacity: 0.9;
}

