body { font-family: sans-serif; padding: 20px; background-color: #f4f7f6; display: flex; justify-content: center; 
	 background-image: url("image/background.png");
     background-repeat: no-repeat; /* 背景画像を繰り返し表示させない */
     background-size: cover; /* 背景画像を全画面表示 */
     background-position: center; /* 背景画像の表示位置を中央に */	
	 background-attachment: fixed;/*スクロール時に固定。*/
}
.container { background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); width: 100%; max-width: 600px; }
.row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 10px; border: 1px solid #eee; border-radius: 5px; }
input[type="number"] { padding: 8px; border: 1px solid #ccc; border-radius: 4px; width: 75px; }

.btn-add { background: #fff; border: 1px solid #007bff; color: #007bff; width: 100%; padding: 10px; margin-bottom: 10px; cursor: pointer; border-radius: 4px; }
.btn-calc { background: #007bff; border: none; color: white; font-weight: bold; width: 100%; padding: 12px; cursor: pointer; border-radius: 4px; font-size: 1.1em; margin-top: 10px; }
.btn-delete { background: #ff4d4d; color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; }

.total-display { margin-top: 20px; font-size: 1.2em; text-align: center; padding: 15px; background: #e9ecef; border-radius: 5px; }

table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { border: 1px solid #ddd; padding: 12px; text-align: center; }
th { background-color: #f8f9fa; font-size: 0.85em; }
.ok { color: blue; font-weight: bold; }
.ng { color: red; font-weight: bold; }

/* 「合格（〇）になった呼称サイズの中で一番小さいサイズ」を強調表示 */
.best-fit {
    background-color: #fff3cd !important; /* 薄い黄色で強調 */
    outline: 2px solid #ffc107;
}

.recommend-label {
    font-size: 0.7em;
    display: block;
    color: #856404;
    font-weight: bold;
}

/* テーブル内の文字配置を少し調整 */
td { position: relative; }

/* 以下の行を追加または修正 */
.container h3 {
    font-size: 2em; /* フォントサイズを大きく */
    font-weight: bold; /* 太字に */
    text-align: center; /* 中央寄せ */
    color: #333; /* 濃いめの色 */
    margin-bottom: 25px; /* 下に余白 */
    border-bottom: 2px solid #007bff; /* 下線を追加 */
    padding-bottom: 10px; /* 下線とテキストの間に余白 */
}
/* ここからポップアップのCSSを追加 */
.modal {
    display: none; /* 初期状態では非表示（JavaScriptで表示を制御） */
    position: fixed; /* 画面に固定 */
    z-index: 1000; /* 他の要素より前面に */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* コンテンツがはみ出た場合にスクロール可能に */
    background-color: rgba(0,0,0,0.6); /* 半透明の黒い背景 */
    display: flex; /* 中央寄せのためにflexboxを使用 */
    align-items: center; /* 垂直方向中央 */
    justify-content: center; /* 水平方向中央 */
}

.modal-content {
    background-color: #fefefe;
    margin: auto; /* flexboxと併用で中央寄せ */
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* 幅の調整 */
    max-width: 500px; /* 最大幅を設定 */
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    text-align: center;
}

.modal-content h4 {
    margin: 5px 0;
    color: #007bff;
}

.modal-content .modal-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 15px;
    color: #333;
}

.modal-content p {
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #555;
}

#modal-ok-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 20px;
}

#modal-ok-btn:hover {
    background-color: #0056b3;
}
/* ここまでポップアップのCSS */