.wrapper .block #inputBlock .table {
    width: 100%;
    display: table;
}

.wrapper .block #inputBlock .thead {
    display: table-header-group;
}

.wrapper .block #inputBlock .thead .tr {
    display: table-row;
}

.wrapper .block #inputBlock .thead .th {
    display: table-cell;
    color: #fff;
    background-color: #333;
    font-size: 125%;
    font-weight: 700;
    line-height: 1.3;
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 11px;
    padding-bottom: 11px;
    border-left: 2px solid #fff;
    border-bottom: 3px solid #fff;
}

.wrapper .block #inputBlock .tbody .td:first-child {
    border-left: none;
    width:25%;
}

.wrapper .block #inputBlock .tbody {
    display: table-row-group;
}

.wrapper .block #inputBlock .tbody .tr {
    display: table-row;
}

.wrapper .block #inputBlock .tbody .td {
    display: table-cell;
    font-weight: 700;
    line-height: 1.3;
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 16px;
    padding-bottom: 16px;
    border-bottom: 3px solid #fff;
    vertical-align: middle;
}

.wrapper .block #inputBlock .tbody .e {
    background-color: #eee;
    font-size: 125%;
    text-align: center;
}

.wrapper .block #inputBlock .tbody .v {
    background-color: #f9f9f9;
    font-size: 117%;
}




.wrapper .block #outputBlock .table {
    width: 100%;
    display: table;
}

.wrapper .block #outputBlock .tbody .td:first-child {
    border-left: none;
}

.wrapper .block #outputBlock .tbody {
}

.wrapper .block #outputBlock .tbody .tr {
}

.wrapper .block #outputBlock .tbody .td {
    display: block;
    width:100%;
    font-weight: 700;
    line-height: 1.3;
    padding-left: 4px;
    padding-right: 4px;
    vertical-align: middle;
    text-align: center;
    font-size: 117%;
    border-left: 2px solid #fff;
    border-bottom: 3px solid #fff;
    background-color: #eee;
	height:80px;
}
.wrapper .block #outputBlock .tbody .v {
    background-color: #f9f9f9;
}




	.wrapper .block #outputBlock .tbody .tr-responsive {
		display: grid!important;
	}
	.wrapper .block #outputBlock .tbody .td {
		width:100%;
		padding: 20px 0;
		        height: 100%;
	}



.form_txt{
	width:140px;
}

.label1 {
	font-weight: bold;
	font-size: 117%;
}

.label2 {
	font-size: 80%;
}

.value {
	font-weight: bold;
	color: #23ac38;
	font-size: 200%;
}

span.unit {
	font-size: 50%;
}

#inputBlock {
    background: #eff3f7;
	margin-bottom:40px;
}

#outputBlock {
    background: #fff;
}




.graphic{
	padding-top:30px;
	padding-bottom:0px;
}
.row {
	margin-bottom: 4px;
}
@keyframes expand {
	from {width: 0%;}
	to {width: 100%;}
}
@media screen and (min-width: 768px) {
	@keyframes expand {
		from {width: 0%;}
		to {width: calc(100%);}
	}
}
.chart {
	overflow: hidden;
	width: 0%;
	animation: expand 1.5s ease forwards;
	position: relative;
}
.row + .row .chart {
	animation-delay: .2s;
}
.row + .row + .row .chart {
	animation-delay: .4s;
}


.axisBlock1,
.axisBlock2{
	display: block;
	height: 12px;
	font-size: 14px;
	float: left;
	position: relative;
	overflow: hidden;
	opacity: 1;
	transition: opacity, .3s ease;
	cursor: pointer;
}
.axisBlock1 .blockValue,
.axisBlock2 .blockValue{
	display: none;
}
.axisBlock1 .blockLabel,
.axisBlock2 .blockLabel{
	display: block;
	line-height: 1em;
	position: absolute;
}
.axisBlock1 .blockLabel{
	font-size:12px;
	white-space: nowrap
}
.axisBlock1 .blockLabel:after{
	font-size:7px;
	content: "kg";
}
.axisBlock1 .blockLabelLast,
.axisBlock2 .blockLabelLast{
	display: block;
	line-height: 1em;
	position: absolute;
	right:0;
	font-size:12px;
	white-space: nowrap
}
.axisBlock1 .blockLabelLast:after{
	font-size:7px;
	content: "kg";
}


.chartBlock {
	display: block;
	height: 80px;
	color: #fff;
	font-size: .75em;
	float: left;
	background-color: #FF8C01;
	position: relative;
	overflow: hidden;
	opacity: 1;
	transition: opacity, .3s ease;
	cursor: pointer;
}
.chartBlock:nth-of-type(2),
.legend li:nth-of-type(2):before {
	background-color: #FFAA1C;
}
.chartBlock:nth-of-type(3),
.legend li:nth-of-type(3):before {
	background-color: #FFE733;
}
.chartBlock:nth-of-type(4),
.legend li:nth-of-type(4):before {
	background-color: #006B3E;
}
.chartBlock:nth-of-type(5),
.legend li:nth-of-type(5):before {
	background-color: #FFE733;
}
.chartBlock:nth-of-type(6),
.legend li:nth-of-type(6):before {
	background-color: #FFAA1C;
}
.chartBlock:nth-of-type(7),
.legend li:nth-of-type(7):before {
	background-color: #FF8C01;
}
.chartBlock:nth-of-type(8),
.legend li:nth-of-type(8):before {
	background-color: #ED2938;
}
.chartBlock .blockValue {
	display: none;
}
.chartBlock:hover {
	opacity: .65;
}


/* 低体重 */
.judge1 {
	position: absolute;
	top: 40%;
	left: 3.5%;
	color:#000;
	font-weight: bold;
}
/* 普通体重 */
.judge2 {
	position: absolute;
	top: 40%;
	left: 17.5%;
	color:#fff;
	font-weight: bold;
}
/* 肥満(1度) */
.judge3 {
	position: absolute;
	top: 40%;
	left: 33.5%;
	color:#000;
	font-weight: bold;
}
/* 肥満(2度) */
.judge4 {
	position: absolute;
	top: 40%;
	left: 47.5%;
	color:#000;
	font-weight: bold;
}
/* 肥満(3度) */
.judge5 {
	position: absolute;
	top: 40%;
	left: 61.5%;
	color:#000;
	font-weight: bold;
}
/* 肥満(4度) */
.judge6 {
	position: absolute;
	top: 40%;
	left: 81.5%;
	color:#000;
	font-weight: bold;
}
@media screen and (max-width: 480px) {
	.axisBlock1 .blockLabel{
		font-size:8px;
	}
	.axisBlock1 .blockLabel:after{
		font-size:5px;
		content: "kg";
	}
	.axisBlock1 .blockLabelLast{
		font-size:8px;
	}
	.axisBlock1 .blockLabelLast:after{
		font-size:5px;
		content: "kg";
	}

	.axisBlock2 .blockLabel{
		font-size:10px;
	}
	.axisBlock2 .blockLabelLast{
		font-size:10px;
	}


	/* 低体重 */
	.judge1 {
		left: 2.5%;
		font-size:80%;
	}
	/* 普通体重 */
	.judge2 {
		left: 16.5%;
		font-size:80%;
	}
	/* 肥満(1度) */
	.judge3 {
		left: 32.5%;
		font-size:80%;
	}
	/* 肥満(2度) */
	.judge4 {
		left: 46%;
		font-size:80%;
	}
	/* 肥満(3度) */
	.judge5 {
		left: 60%;
		font-size:80%;
	}
	/* 肥満(4度) */
	.judge6 {
		left: 80.5%;
		font-size:80%;
	}
}





.bmiBlock {
	display: block;
	height: 26px;
	float: left;
	position: relative;
	overflow: hidden;
	opacity: 1;
	transition: opacity, .3s ease;
	cursor: pointer;
}
.bmiBlock .blockValue {
	display: none;
}
.bmiArrow {
	position: absolute;
}




.x-axis {
    text-align: center;
	padding: 0;
}
.x-axis .title{
	font-size:150%;
	font-weight:bold;
}
/* プルダウンの基本スタイル */
.wrapper .block #inputBlock select {
    width: auto;
    font-size: 117%;
    font-weight: 700;
    line-height: 1.5;
    padding: 12px;
    border: 2px solid #333;
    background-color: #f9f9f9;
    color: #333;
    border-radius: 4px;
    box-shadow: none;
    outline: none;
    appearance: none; /* デフォルトのプルダウン矢印を非表示にする */
}

/* プルダウンのホバー効果 */
.wrapper .block #inputBlock select:hover {
    border-color: #23ac38;
    background-color: #e8f5e9;
}

/* プルダウン選択時の効果 */
.wrapper .block #inputBlock select:focus {
    border-color: #4CAF50;
    background-color: #e8f5e9;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
}

/* プルダウン用の矢印の追加 */
.wrapper .block #inputBlock select::after {
    content: "▼";
    font-size: 0.8em;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* 矢印部分のクリックを無効化 */
}

/* モバイルでのスタイル調整 */
@media screen and (max-width: 480px) {
    .wrapper .block #inputBlock select {
        font-size: 100%;
        padding: 8px 6px;
    }
}


.form_txt_l {
    width: 140px;
}


.badge input {appearance: auto;}

  /* ====== Modern UI / Layout ====== */
  .fiq-root{
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    color:#0f172a;
    max-width:960px;
    box-sizing:border-box;
  }
  .fiq-header{
    margin-bottom:16px;
  }
  .fiq-title{
    font-size:20px;
    font-weight:600;
    display:flex;
    align-items:center;
    gap:8px;
  }
  .fiq-pill{
    font-size:11px;
    padding:2px 8px;
    border-radius:999px;
    background:#e0f2fe;
    color:#0369a1;
    font-weight:600;
  }
  .fiq-subtitle{
    font-size:13px;
    color:#6b7280;
    margin-top:4px;
  }

  .fiq-grid{
    display:grid;
    grid-template-columns:minmax(0,1.1fr) minmax(0,1.2fr);
    gap:16px;
  }
  @media(max-width:800px){
    .fiq-grid{grid-template-columns:minmax(0,1fr);}
  }

  .fiq-card{
    background:#ffffff;
    border-radius:16px;
    box-shadow:0 18px 45px rgba(15,23,42,0.09);
    border:1px solid #e5e7eb;
    padding:16px 18px;
    box-sizing:border-box;
  }
  .fiq-card-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:8px;
  }
  .fiq-card-title{
    font-size:14px;
    font-weight:600;
  }
  .fiq-card-caption{
    font-size:11px;
    color:#9ca3af;
  }

  .fiq-field-label{
    font-size:12px;
    font-weight:500;
    color:#4b5563;
    margin-bottom:4px;
  }

  .fiq-input-row{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
    margin-bottom:8px;
  }

  #imageInput{
    display:inline-block;
    padding:6px 8px;
    font-size:13px;
  }

  .fiq-status{
    font-size:11px;
    margin-top:4px;
  }
  .fiq-status.ok{color:#16a34a;}
  .fiq-status.err{color:#dc2626;}
  .fiq-status.muted{color:#6b7280;}

  .fiq-privacy{
    font-size:11px;
    color:#6b7280;
    margin-top:4px;
  }

  .fiq-btn{
    padding:7px 16px;
    border-radius:999px;
    border:1px solid transparent;
    font-size:13px;
    cursor:pointer;
    font-weight:500;
    display:inline-flex;
    align-items:center;
    gap:6px;
    transition:background .15s ease,transform .05s ease,box-shadow .15s ease;
  }
  .fiq-btn-primary{
    background:linear-gradient(135deg,#4f46e5,#6366f1);
    color:#fff;
    box-shadow:0 10px 25px rgba(79,70,229,0.35);
  }
  .fiq-btn-primary:hover{
    transform:translateY(-1px);
    box-shadow:0 16px 35px rgba(79,70,229,0.4);
  }
  .fiq-btn-primary:disabled{
    opacity:0.55;
    cursor:not-allowed;
    box-shadow:none;
    transform:none;
  }

  /* ====== Preview ====== */
  #previewArea{
    position:relative;
    display:none;          /* ← 画像ロードまで非表示 */
    max-width:100%;
    border-radius:18px;
    overflow:hidden;
    background:#020617;
    box-shadow:0 22px 45px rgba(15,23,42,0.45);
  }
  #inputImage{
    max-width:100%;
    display:block;
  }
  #overlayCanvas{
    position:absolute;
    top:0;
    left:0;
    pointer-events:none;
  }

  /* ====== Metrics / Score ====== */
  .metrics-list{
    list-style:none;
    padding-left:0;
    margin:0;
  }
  .metrics-list li{
    margin-bottom:6px;
    font-size:13px;
  }
  .metric-label{
    font-weight:600;
    margin-right:4px;
  }
  .subtle{
    color:#6b7280;
    font-size:11px;
  }

  .score-main{
    font-size:22px;
    font-weight:700;
    letter-spacing:0.03em;
    margin-bottom:6px;
  }
  .score-main span{
    font-variant-numeric:tabular-nums;
  }
  .score-badge{
    display:inline-flex;
    align-items:center;
    gap:4px;
    font-size:11px;
    padding:3px 8px;
    border-radius:999px;
    background:#eef2ff;
    color:#4f46e5;
    margin-left:6px;
  }

  .grid{
    width:100%;
    border-collapse:collapse;
    font-size:12px;
  }
  .grid th,.grid td{
    border:1px solid #e5e7eb;
    padding:6px 8px;
  }
  .grid th{
    background:#f9fafb;
    font-weight:600;
  }

  #radarChart{
    width:100%;
    max-width:480px;
    height:320px;
  }

  footer.fiq-footer{
    margin-top:16px;
    font-size:11px;
    color:#6b7280;
  }