.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;}

/* ===== Face Type UI (v2) =====
   - 既存fiq構造を崩さずに“それっぽいUI”へ底上げ
   - 依存なし（このCSSだけでも見栄えが成立）
*/
.fiq-root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:rgba(15,23,42,.10);
  --shadow:0 14px 40px rgba(15,23,42,.10);
  --radius:18px;

  --primary:#4f46e5;
  --primary2:#7c3aed;
  --ok:#16a34a;
  --err:#dc2626;

  --ring:0 0 0 4px rgba(79,70,229,.14);

  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  color:var(--text);
}

.fiq-root *{ box-sizing:border-box; }

.fiq-root{
  width:100%;
  padding:16px;
  background:linear-gradient(180deg, var(--bg), #fff 55%);
}

.fiq-grid{
  max-width:1080px;
  margin:0 auto;
  display:grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap:16px;
  align-items:start;
}

@media (max-width: 980px){
  .fiq-grid{ grid-template-columns: 1fr; }
}

/* Cards */
.fiq-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
  overflow:hidden;
}

.fiq-card-header{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:12px;
}

.fiq-card-title{
  font-weight:800;
  letter-spacing:.01em;
  font-size:18px;
  line-height:1.25;
}

.fiq-card-caption{
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

/* Labels & text */
.fiq-field-label{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  margin:10px 0 6px;
}

.subtle{ color:var(--muted); font-size:13px; line-height:1.6; }
.small-note{ color:var(--muted); font-size:12px; line-height:1.6; }

/* Inputs row */
.fiq-input-row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

/* File input – modern browsers */
#imageInput{
  flex:1 1 260px;
  min-width:220px;
  padding:8px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
}
#imageInput:focus{ outline:none; box-shadow: var(--ring); border-color: rgba(79,70,229,.55); }

#imageInput::file-selector-button{
  border:1px solid rgba(79,70,229,.28);
  background:linear-gradient(180deg, rgba(79,70,229,.10), rgba(79,70,229,.05));
  color:var(--text);
  font-weight:700;
  padding:10px 12px;
  border-radius:12px;
  margin-right:10px;
  cursor:pointer;
}
#imageInput::-webkit-file-upload-button{
  border:1px solid rgba(79,70,229,.28);
  background:linear-gradient(180deg, rgba(79,70,229,.10), rgba(79,70,229,.05));
  color:var(--text);
  font-weight:700;
  padding:10px 12px;
  border-radius:12px;
  margin-right:10px;
  cursor:pointer;
}

/* Buttons */
.fiq-btn{
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  padding:10px 14px;
  border-radius:14px;
  font-weight:800;
  cursor:pointer;
  transition: transform .06s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  user-select:none;
}

.fiq-btn:hover{ box-shadow: 0 10px 22px rgba(15,23,42,.10); border-color: rgba(15,23,42,.16); }
.fiq-btn:active{ transform: translateY(1px); }
.fiq-btn:disabled{ opacity:.55; cursor:not-allowed; box-shadow:none; }

.fiq-btn-primary{
  border-color: rgba(79,70,229,.28);
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color:#fff;
  box-shadow: 0 14px 26px rgba(79,70,229,.22);
}
.fiq-btn-primary:hover{ box-shadow: 0 18px 34px rgba(79,70,229,.26); }
.fiq-btn-primary:focus{ outline:none; box-shadow: var(--ring); }

/* Status pills */
.fiq-status{
  margin-top:10px;
  border-radius:14px;
  padding:10px 12px;
  font-size:13px;
  line-height:1.6;
  border:1px solid var(--border);
  background:rgba(15,23,42,.02);
}
.fiq-status.muted{ color:var(--muted); }
.fiq-status.ok{
  border-color: rgba(22,163,74,.20);
  background: rgba(22,163,74,.08);
  color: #14532d;
}
.fiq-status.err{
  border-color: rgba(220,38,38,.20);
  background: rgba(220,38,38,.08);
  color: #7f1d1d;
}

/* Preview */
#previewArea{
  position:relative;
  display:block;
  width:100%;
  max-width:560px;
  margin:0;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--border);
  background:
    radial-gradient(1200px 400px at 20% 0%, rgba(79,70,229,.10), transparent 60%),
    linear-gradient(180deg, rgba(15,23,42,.02), rgba(15,23,42,.01));
}

#inputImage{
  width:100%;
  height:auto;
  display:block;
  border-radius:16px;
  background:transparent;
}

#overlayCanvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}

/* “Guide” text chip (canvas textが読みにくい端末用の保険) */
#previewArea::after{
  content:"顔を楕円の中心に合わせて撮影";
  position:absolute;
  left:10px;
  bottom:10px;
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  color: rgba(15,23,42,.76);
  background: rgba(255,255,255,.78);
  border:1px solid rgba(15,23,42,.10);
  backdrop-filter: blur(8px);
}

/* Score headline */
.score-main{
  font-size:28px;
  font-weight:900;
  letter-spacing:.01em;
}
.score-main span{ display:inline-block; }

/* Badges */
.fiq-badges{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }

.fiq-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(15,23,42,.04);
  border:1px solid rgba(15,23,42,.10);
  font-size:13px;
  color: rgba(15,23,42,.82);
}

/* Progress */
.fiq-progress{
  height:10px;
  background: rgba(15,23,42,.08);
  border-radius:999px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.08);
}
.fiq-progress > div{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  border-radius:999px;
  transition: width .45s ease;
}

/* Tabs */
.fiq-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
  padding:6px;
  border-radius:16px;
  border:1px solid var(--border);
  background: rgba(15,23,42,.02);
}

.fiq-tab{
  appearance:none;
  border:1px solid transparent;
  background:transparent;
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  font-size:14px;
  font-weight:800;
  color: rgba(15,23,42,.78);
  transition: background .16s ease, box-shadow .18s ease, transform .06s ease, border-color .16s ease;
}
.fiq-tab:hover{ background: rgba(15,23,42,.04); }
.fiq-tab:active{ transform: translateY(1px); }
.fiq-tab.active{
  background:#fff;
  border-color: rgba(79,70,229,.20);
  box-shadow: var(--ring);
  color: var(--text);
}

.fiq-tabpanel{
  margin-top:12px;
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  background:#fff;
  animation: fiqFade .18s ease;
}
@keyframes fiqFade{ from{ opacity:.55; transform: translateY(2px);} to{opacity:1; transform: translateY(0);} }

/* Advice content typography */
#tabPanel ul{ margin:8px 0 0 18px; padding:0; }
#tabPanel li{ margin:6px 0; }
#tabPanel a{ color: var(--primary); font-weight:800; text-decoration:none; }
#tabPanel a:hover{ text-decoration:underline; }

/* Chart container */
#radarChart{
  border-radius:16px;
  border:1px solid var(--border);
  background:
    radial-gradient(900px 300px at 20% 0%, rgba(79,70,229,.08), transparent 60%),
    linear-gradient(180deg, rgba(15,23,42,.01), rgba(15,23,42,.01));
}

/* Footer */
.fiq-footer{
  max-width:1080px;
  margin:14px auto 0;
  color: var(--muted);
  font-size:12px;
  line-height:1.6;
  padding:0 4px;
}

/* Dark mode */
@media (prefers-color-scheme: dark){
  .fiq-root{
    --bg:#0b1220;
    --card:#0f172a;
    --text:#e5e7eb;
    --muted:#9aa4b2;
    --border:rgba(226,232,240,.10);
    --shadow:0 18px 44px rgba(0,0,0,.45);
    --ring:0 0 0 4px rgba(99,102,241,.22);
  }
  .fiq-root{ background: radial-gradient(1400px 500px at 18% 0%, rgba(99,102,241,.18), transparent 55%), var(--bg); }
  #imageInput{ background: rgba(255,255,255,.04); color:var(--text); }
  #previewArea{ background: rgba(255,255,255,.03); }
  #previewArea::after{
    color: rgba(229,231,235,.82);
    background: rgba(15,23,42,.70);
    border-color: rgba(226,232,240,.12);
  }
  .fiq-status{ background: rgba(255,255,255,.03); }
  .fiq-tabpanel{ background: rgba(255,255,255,.02); }
  .fiq-tab.active{ background: rgba(255,255,255,.06); }
  .fiq-badge{ background: rgba(255,255,255,.04); color: rgba(229,231,235,.86); }
}