.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 {
    display: table-row-group;
}

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

.wrapper .block #outputBlock .tbody .td {
    display: table-cell;
    width:25%;
    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;
}


@media screen and (max-width: 480px) {
	.wrapper .block #outputBlock .tbody .tr-responsive {
		display: grid!important;
	}
	.wrapper .block #outputBlock .tbody .td {
		width:100%;
        height: auto;
        vertical-align: middle;
        padding:12px 0;
	}
}



.form_txt{
	width:100px;
}

.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:20px;
}

#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: 100%;
    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;
    }
    #display {
      font-size: clamp(4rem, 10vw, 8rem);
    }
}

        body {
        }
        
        #pomodoroBody {
            text-align: center;
            padding: 30px;
            border-radius: 15px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
            transition: background-color 0.3s, color 0.3s;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        #pomodoroBody.dark {
            background-color: #2d2d2d;
            color: #f5f5f5;
        }
        
        #pomodoroBody.light {
            background-color: #ffffff;
            color: #333;
        }
        
        #display {
            font-size: 5.5rem;
            margin: 25px 0;
            font-weight: bold;
            font-family: 'Courier New', monospace;
        }
        
        #statusDisplay {
            font-size: 1.8rem;
            margin-bottom: 25px;
            font-weight: 500;
        }
        
        #cycleDisplay {
            font-size: 1.3rem;
            margin-bottom: 25px;
            opacity: 0.8;
        }
        
        .control-group {
            margin: 25px 0;
        }
        
        #pomodoroBody .btn {
            padding: 12px 25px;
            font-size: 1.1rem;
            margin: 0 12px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
        }
        
        #pomodoroBody.dark .btn {
            background-color: #3a3a3a;
            color: #fff;
        }
        
        #pomodoroBody.light .btn {
            background-color: #e0e0e0;
            color: #333;
        }
        
        #pomodoroBody .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        
        #pomodoroBody .btn:active {
            transform: translateY(0);
        }
        
        .opt-btn {
            padding: 10px 18px;
            font-size: 1rem;
            margin: 8px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        #pomodoroBody.dark .opt-btn {
            background-color: #3a3a3a;
            color: #fff;
        }
        
        #pomodoroBody.light .opt-btn {
            background-color: #e0e0e0;
            color: #333;
        }
        
        .opt-btn:hover {
            background-color: #2196F3;
            color: white;
        }
        
        /* 設定パネルのスタイル */
        .settings-panel {
            display: none;
            margin: 25px auto;
            padding: 25px;
            border-radius: 12px;
            max-width: 450px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .dark .settings-panel {
            background-color: #3a3a3a;
            border: 1px solid #444;
        }
        
        .light .settings-panel {
            background-color: #ffffff;
            border: 1px solid #e0e0e0;
        }
        
        .settings-panel h3 {
            margin-top: 0;
            margin-bottom: 25px;
            padding-bottom: 12px;
            border-bottom: 1px solid;
            font-size: 1.3rem;
            font-weight: 500;
        }
        
        .dark .settings-panel h3 {
            border-color: #444;
            color: #f5f5f5;
        }
        
        .light .settings-panel h3 {
            border-color: #e0e0e0;
            color: #333;
        }
        
        /* 設定行のスタイル */
        .settings-row {
            display: flex;
            align-items: center;
            margin: 18px 0;
            padding: 10px 0;
        }
        
        .settings-label {
            flex: 1;
            font-size: 1rem;
            margin-right: 20px;
            color: inherit;
        }
.settings-input {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid;
    width: 80px;
    text-align: center;
    font-size: 0.95rem;
}

.dark .settings-input {
    background-color: #2a2a2a;
    border-color: #4a4a4a;
    color: #f0f0f0;
}
.dark .settings-input option {
    color: #f0f0f0;
}

.light .settings-input {
    background-color: #f9f9f9;
    border-color: #ddd;
    color: #333;
}

/* セレクトボックスのスタイル */
.settings-input[type="number"] {
    -moz-appearance: textfield;
}

.settings-input[type="number"]::-webkit-outer-spin-button,
.settings-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

select.settings-input {
    padding: 8px 8px;
    width: 90px;
}
        /* スピンボックススタイル */
        .spinbox-container {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .spinbox {
            display: flex;
            align-items: center;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        
        .dark .spinbox {
            border-color: #444;
        }
        
        .light .spinbox {
            border-color: #ddd;
        }
        
        .spinbox-input {
            width: 60px;
            padding: 10px 12px;
            text-align: center;
            border: none;
            font-size: 1rem;
            -moz-appearance: textfield;
            font-weight: 500;
        }
        
        .spinbox-input::-webkit-outer-spin-button,
        .spinbox-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        
        .dark .spinbox-input {
            background-color: #2d2d2d;
            color: #f5f5f5;
        }
        
        .light .spinbox-input {
            background-color: #f9f9f9;
            color: #333;
        }
        
        .spinbox-button {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background-color: #2196F3;
            color: white;
            border: none;
            cursor: pointer;
            font-size: 1.1rem;
            transition: all 0.2s;
        }
        
        .spinbox-button:hover {
            background-color: #0d8bf2;
        }
        
        .spinbox-button:active {
            background-color: #0b7ad1;
        }
        
        .spinbox-button.decrement {
            border-right: 1px solid rgba(255,255,255,0.2);
        }
        
        .spinbox-button.increment {
            border-left: 1px solid rgba(255,255,255,0.2);
        }
        
        .unit {
            margin-left: 8px;
            font-size: 0.95rem;
            color: inherit;
            opacity: 0.8;
        }
        
        /* 音設定のスライダー */
        .volume-control {
            display: flex;
            align-items: center;
            gap: 15px;
            width: 100%;
        }
        
        .volume-slider {
            flex: 1;
            -webkit-appearance: none;
            height: 6px;
            border-radius: 3px;
            outline: none;
        }
        
        .dark .volume-slider {
            background: #444;
        }
        
        .light .volume-slider {
            background: #ddd;
        }
        
        .volume-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #2196F3;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .volume-slider::-webkit-slider-thumb:hover {
            transform: scale(1.2);
        }
        
        .volume-slider::-moz-range-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #2196F3;
            cursor: pointer;
        }
        
        .volume-value {
            width: 45px;
            text-align: center;
            font-size: 0.95rem;
            font-weight: 500;
        }
        
        /* トグルスイッチのスタイル */
        .sound-toggle {
            display: flex;
            align-items: center;
            gap: 15px;
            width: 100%;
            justify-content: space-between;
        }
        
        .toggle-container {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 26px;
        }
        
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 34px;
        }
        
        .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        
        #pomodoroBody input:checked + .slider {
            background-color: #2196F3;
        }
        
        #pomodoroBody input:checked + .slider:before {
            transform: translateX(24px);
        }
        
        .toggle-status {
            font-size: 0.95rem;
            width: 40px;
            text-align: center;
            font-weight: 500;
        }
        
        /* モード別の色 */
        .focus-mode {
            color: #e74c3c;
        }
        
        .break-mode {
            color: #2ecc71;
        }
        
        .long-break-mode {
            color: #3498db;
        }
        
        /* レスポンシブ対応 */
        @media (max-width: 500px) {
            #pomodoroBody {
                padding: 20px;
            }
            
            #display {
                font-size: 4.5rem;
            }
            
            #statusDisplay {
                font-size: 1.5rem;
            }
            
            .settings-panel {
                padding: 20px;
            }
            
            .settings-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }
            
            .settings-label {
                margin-right: 0;
                margin-bottom: 8px;
            }
            
            .sound-toggle, .volume-control {
                width: 100%;
            }
            
            .spinbox-container {
                width: 100%;
                justify-content: space-between;
            }
            
            #pomodoroBody .btn {
                padding: 10px 20px;
                margin: 0 8px;
            }
        }