.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だけでも見栄えが成立）
*/
  /* ===== ベーススタイル ===== */
  :root {
    --fiq-primary: #6366f1; /* Indigo */
    --fiq-primary-hover: #4f46e5;
    --fiq-bg: #f8fafc;
    --fiq-card-bg: #ffffff;
    --fiq-text-main: #1e293b;
    --fiq-text-sub: #64748b;
    --fiq-border: #e2e8f0;
    --fiq-accent-red: #f43f5e;
    --fiq-accent-orange: #f97316;
    --fiq-accent-green: #10b981;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  }

  .fiq-root {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--fiq-text-main);
    background-color: var(--fiq-bg);
    padding: 20px;
    line-height: 1.6;
    max-width: 680px; /* 縦配置で見やすい幅に調整 */
    margin: 0 auto;
    box-sizing: border-box;
  }
  .fiq-root * { box-sizing: border-box; }

  /* ===== レイアウト ===== */
  .fiq-grid {
    display: flex;
    flex-direction: column; /* 常に縦並び */
    gap: 24px;
    width: 100%;
  }

  /* ===== カード ===== */
  .fiq-card {
    background: var(--fiq-card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 24px;
    border: 1px solid var(--fiq-border);
    width: 100%;
  }
  .fiq-card-header { margin-bottom: 20px; }
  .fiq-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fiq-text-main);
    margin-bottom: 4px;
  }
  .fiq-card-caption {
    font-size: 0.85rem;
    color: var(--fiq-text-sub);
  }

  /* ===== 入力エリア（修正部分） ===== */
  .fiq-field-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: var(--fiq-text-main);
  }
  .fiq-input-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }
  /* 入力欄の余白修正：高さを自動(auto)にし、paddingを小さめに */
  input[type="file"] {
    font-size: 0.9rem;
    padding: 10px 12px; /* 余白をコンパクトに */
    background: #f1f5f9;
    border-radius: var(--radius-md);
    width: 100%;
    color: var(--fiq-text-sub);
    border: 1px solid #e2e8f0;
    height: auto; /* 高さが広がりすぎないように制限 */
    cursor: pointer;
  }
  input[type="file"]::file-selector-button {
    margin-right: 12px;
    border: none;
    background: #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--fiq-text-main);
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
  }
  input[type="file"]::file-selector-button:hover {
    background: #cbd5e1;
  }
  
  /* ボタン */
  .fiq-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }
  .fiq-btn-primary {
    background: var(--fiq-primary);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
  }
  .fiq-btn-primary:hover:not(:disabled) {
    background: var(--fiq-primary-hover);
    transform: translateY(-1px);
  }
  .fiq-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #cbd5e1;
  }

  /* ステータス表示 */
  .fiq-status {
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: #f1f5f9;
    color: var(--fiq-text-sub);
    border: 1px solid transparent;
  }
  .fiq-status.ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
  .fiq-status.err { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
  .fiq-status.muted { background: #f8fafc; color: #64748b; }

  /* ===== プレビュー ===== */
  #previewWrap { display: none; margin-top: 20px; animation: fadeIn 0.4s ease; }
  @keyframes fadeIn { from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
  
  #previewArea {
    position: relative;
    width: 100%;
    background: #0f172a;
    border-radius: var(--radius-md);
    overflow: hidden;
    line-height: 0;
  }
  #previewArea img { width: 100%; height: auto; display: block; opacity: 0.9; }
  #previewArea canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

  /* ===== 結果表示エリア ===== */
  .score-main {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--fiq-primary);
    line-height: 1.3;
    margin-bottom: 8px;
  }
  .fiq-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 99px;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.8rem;
    font-weight: 600;
  }
  .subtle { color: var(--fiq-text-sub); font-size: 0.95rem; }
  
  /* ピル（タグ） */
  .fiq-kv {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
  }
  .fiq-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 99px;
    background: #f1f5f9;
    color: var(--fiq-text-main);
    font-size: 0.85rem;
    border: 1px solid #e2e8f0;
  }
  .fiq-pill b { margin-left: 6px; color: var(--fiq-primary); }

  .fiq-hr {
    height: 1px;
    background: var(--fiq-border);
    margin: 32px 0;
    border: none;
  }

  /* プログレスバー */
  .fiq-progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 6px;
  }
  .fiq-progress > div {
    height: 100%;
    background: linear-gradient(90deg, var(--fiq-primary), #818cf8);
    width: 0%;
    transition: width 1s ease-out;
  }

  /* EChartsコンテナ */
  #gravityChart, #spaceChart {
    width: 100%;
    height: 200px;
    margin: 0 auto;
  }

  /* ===== パーツバランス用（グリッドデザイン） ===== */
  .parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* 幅に応じて自動折り返し */
    gap: 12px;
    width: 100%;
  }
  .parts-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .parts-label {
    font-size: 0.75rem;
    color: var(--fiq-text-sub);
    margin-bottom: 4px;
    font-weight: 600;
  }
  .parts-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fiq-text-main);
    line-height: 1.2;
  }
  .parts-sub {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 4px;
  }
  .parts-item.full-width {
    grid-column: 1 / -1; /* 全幅表示 */
  }

  /* ===== タブとアドバイス ===== */
  .fiq-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    overflow-x: auto;
  }
  .fiq-tab {
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fiq-text-sub);
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
    border-radius: var(--radius-md);
    transition: all 0.2s;
  }
  .fiq-tab:hover { color: var(--fiq-primary); background: #e0e7ff; }
  .fiq-tab.active {
    color: #fff;
    background: var(--fiq-primary);
  }
  .fiq-tabpanel {
    background: #f8fafc;
    padding: 20px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--fiq-text-main);
    border: 1px solid var(--fiq-border);
  }

  .small-note {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
  }
  
  /* フッター */
  .fiq-footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    padding-bottom: 20px;
  }
