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


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .container {
            max-width: 1000px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            overflow: hidden;
        }

        .container header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px;
            text-align: center;
        }

        .container header h2 {
            font-size: 2em;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .container header p {
            opacity: 0.9;
            font-size: 1.1em;
        }

        .version-badge {
            display: inline-block;
            background: rgba(255,255,255,0.2);
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.8em;
            margin-top: 10px;
        }

        .container .content {
            padding: 30px;
        }

        .settings-bar {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            flex-wrap: wrap;
            align-items: center;
        }

        .settings-bar select {
            padding: 10px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 14px;
            background: white;
            cursor: pointer;
            transition: all 0.3s;
        }

        .settings-bar select:hover {
            border-color: #667eea;
        }

        .input-section {
            margin-bottom: 30px;
        }

        .file-upload-area {
            border: 3px dashed #e0e0e0;
            border-radius: 15px;
            padding: 30px;
            text-align: center;
            transition: all 0.3s;
            cursor: pointer;
            background: #f8f9fa;
        }

        .file-upload-area:hover {
            border-color: #667eea;
            background: #f0f4ff;
        }

        .file-upload-area.dragover {
            border-color: #667eea;
            background: #e8efff;
            transform: scale(1.02);
        }

        .file-upload-area input[type="file"] {
            display: none;
        }

        .upload-icon {
            font-size: 3em;
            margin-bottom: 15px;
            color: #667eea;
        }

        textarea {
            width: 100%;
            min-height: 250px;
            padding: 20px;
            border: 2px solid #e0e0e0;
            border-radius: 15px;
            font-size: 15px;
            font-family: inherit;
            resize: vertical;
            transition: all 0.3s;
        }

        textarea:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .button-group {
            display: flex;
            gap: 15px;
            margin-top: 20px;
            flex-wrap: wrap;
        }

        .container button {
            padding: 15px 30px;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            font-family: inherit;
        }

        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            flex: 1;
            min-width: 200px;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
        }

        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .btn-secondary {
            background: white;
            color: #667eea;
            border: 2px solid #667eea;
        }

        .btn-secondary:hover {
            background: #667eea;
            color: white;
        }

        .status {
            padding: 15px;
            border-radius: 10px;
            margin: 20px 0;
            font-weight: 500;
            text-align: center;
        }

        .status.ready { background: #e8f5e9; color: #2e7d32; }
        .status.analyzing { background: #fff3e0; color: #e65100; }
        .status.done { background: #e3f2fd; color: #1565c0; }
        .status.warning { background: #fff9c4; color: #f57f17; }

        .result-section {
            display: none;
            margin-top: 30px;
        }

        .result-section.show {
            display: block;
            animation: fadeIn 0.5s;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .score-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin: 20px 0;
        }

        .score-card {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            position: relative;
            overflow: hidden;
        }

        .score-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
            animation: shimmer 3s infinite;
        }

        @keyframes shimmer {
            0%, 100% { transform: translate(0, 0); }
            50% { transform: translate(-20%, -20%); }
        }

        .score-card h3 {
            font-size: 14px;
            color: #666;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            z-index: 1;
        }

        .score-display {
            font-size: 3em;
            font-weight: 700;
            margin: 10px 0;
            position: relative;
            z-index: 1;
        }

        .score-display.low { color: #4caf50; }
        .score-display.medium { color: #ff9800; }
        .score-display.high { color: #f44336; }

        .score-bar {
            height: 10px;
            background: rgba(255,255,255,0.5);
            border-radius: 5px;
            overflow: hidden;
            margin-top: 10px;
            position: relative;
            z-index: 1;
        }

        .score-bar-fill {
            height: 100%;
            border-radius: 5px;
            transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .score-bar-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            animation: barShine 2s infinite;
        }

        @keyframes barShine {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        .level-badge {
            display: inline-block;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            margin-top: 10px;
            position: relative;
            z-index: 1;
        }

        .level-badge.low { background: #4caf50; color: white; }
        .level-badge.medium { background: #ff9800; color: white; }
        .level-badge.high { background: #f44336; color: white; }

        .confidence-indicator {
            font-size: 12px;
            color: #666;
            margin-top: 5px;
            position: relative;
            z-index: 1;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin: 20px 0;
        }

        .stat-item {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            transition: all 0.3s;
        }

        .stat-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .stat-item .label {
            font-size: 12px;
            color: #666;
            margin-bottom: 5px;
        }

        .stat-item .value {
            font-size: 24px;
            font-weight: 700;
            color: #333;
        }

        .tabs {
            display: flex;
            gap: 10px;
            margin: 30px 0 20px;
            border-bottom: 2px solid #e0e0e0;
            overflow-x: auto;
        }

        .tab {
            padding: 12px 24px;
            background: transparent;
            border: none;
            border-bottom: 3px solid transparent;
            cursor: pointer;
            font-weight: 600;
            color: #666;
            transition: all 0.3s;
            white-space: nowrap;
        }

        .tab.active {
            color: #667eea;
            border-bottom-color: #667eea;
        }

        .tab-content {
            display: none;
            padding: 20px 0;
        }

        .tab-content.active {
            display: block;
            animation: fadeIn 0.3s;
        }

        .highlight-text {
            line-height: 2.2;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 10px;
            white-space: pre-wrap;
            word-wrap: break-word;
            font-size: 15px;
        }

        .highlight {
            padding: 3px 5px;
            border-radius: 4px;
            position: relative;
            cursor: pointer;
            transition: all 0.2s;
        }

        .highlight:hover {
            transform: scale(1.02);
            z-index: 10;
        }

        .highlight.ai-pattern {
            background: rgba(255, 152, 0, 0.25);
            border-bottom: 2px solid #ff9800;
        }

        .highlight.copy-pattern {
            background: rgba(244, 67, 54, 0.25);
            border-bottom: 2px solid #f44336;
        }

        .highlight.quality-issue {
            background: rgba(33, 150, 243, 0.25);
            border-bottom: 2px solid #2196f3;
        }

        .tips-list {
            list-style: none;
        }

        .tips-list li {
            padding: 15px;
            margin: 10px 0;
            background: #f8f9fa;
            border-left: 4px solid #667eea;
            border-radius: 5px;
            transition: all 0.3s;
        }

        .tips-list li:hover {
            transform: translateX(5px);
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        }

        .tips-list li strong {
            color: #667eea;
            display: block;
            margin-bottom: 5px;
        }

        .factor-list {
            list-style: none;
        }

        .factor-item {
            padding: 12px;
            margin: 8px 0;
            background: #f8f9fa;
            border-radius: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s;
        }

        .factor-item:hover {
            background: #e8efff;
        }

        .factor-name {
            flex: 1;
        }

        .factor-impact {
            font-weight: 700;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 14px;
            margin-left: 10px;
        }

        .factor-impact.positive {
            background: #ffebee;
            color: #c62828;
        }

        .factor-impact.negative {
            background: #e8f5e9;
            color: #2e7d32;
        }

        .factor-detail {
            font-size: 12px;
            color: #666;
            margin-top: 5px;
        }

        .analysis-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
        }

        .analysis-table th,
        .analysis-table td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #e0e0e0;
        }

        .analysis-table th {
            background: #f8f9fa;
            font-weight: 600;
            color: #666;
        }

        .analysis-table tr:hover {
            background: #f8f9fa;
        }

        .disclaimer {
            margin-top: 30px;
            padding: 20px;
            background: #fff9c4;
            border-left: 4px solid #f57f17;
            border-radius: 5px;
            font-size: 14px;
            color: #666;
        }

        .privacy-note {
            margin-top: 10px;
            padding: 15px;
            background: #e8f5e9;
            border-left: 4px solid #4caf50;
            border-radius: 5px;
            font-size: 14px;
            color: #666;
        }

        .legend {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            margin-top: 15px;
            font-size: 13px;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .legend-box {
            width: 30px;
            height: 20px;
            border-radius: 3px;
        }

        @media (max-width: 768px) {
            body {
                padding: 10px;
            }

            header h1 {
                font-size: 1.5em;
            }

            .content {
                padding: 20px;
            }

            .score-cards {
                grid-template-columns: 1fr;
            }

            .tabs {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            .factor-item {
                flex-direction: column;
                align-items: flex-start;
            }

            .factor-impact {
                margin-left: 0;
                margin-top: 5px;
            }
        }

        .loading-spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .sample-text-btn {
            margin-top: 10px;
            padding: 8px 16px;
            background: #e8efff;
            color: #667eea;
            border: 1px solid #667eea;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
        }

        .sample-text-btn:hover {
            background: #667eea;
            color: white;
        }