@charset "UTF-8";

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 15px;
    background-color: #f9f9f9;
    color: #333;
}
#tool-body {
  margin: auto;
  max-width: 480px;
}
#text-body {
  margin: auto;
  max-width: 960px;
  background-color: #fcfcfc;
  color: #666;
}
h1 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
    margin: 10px 0 15px;
    text-align: center;
    font-size: 1.5em;
}
h2 {
    margin-top: 30px;
}
/* (変更) 説明文セクション用にh2のマージントップを調整 */
h2, #explanation-section h2, #usage-section h2 {
    margin-top: 0px; 
    color: #333;
}
h3 {
     margin-top: 20px;
     padding-bottom: 5px;
     color: #333;
}
strong, b {
  color: #333;
}
p {
    margin: 0px 0 1em;
    line-height: 1.6;
}
#man-body p {
    margin-bottom: 0.75em;
    line-height: 1.2;
}
/* 入力欄を横並びにする */
.input-container {
    display: flex;
    gap: 10px; /* 項目間のスペース */
    flex-wrap: wrap; /* 画面が狭い場合は折り返す */
    justify-content: center;
    margin-bottom: 1em;
}
.input-group {
    display: flex;
    flex-direction: column;
}
label {
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #555;
}
input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    width: 64px; /* 入力欄の幅を調整 */
}

select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    width: 80px; /* 選択肢が見える幅に */
    background-color: #fff;
    /* input[type="text"]の実質的な高さ(padding 10*2 + font 16 + border 2 = 38px)に合わせる */
    height: 40px; 
    box-sizing: border-box; /* paddingとborderを高さに含める */
}

hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 15px 0;
}
#results {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    min-height: 100px;
}

/* ▼▼▼ ここから追加 ▼▼▼ */
#volume-calculated {
    font-size: 1.1em; /* 比重(1.5em)より控えめに */
    font-weight: bold;
    color: #333; /* 比重(#005a9c)より控えめな色に */
    margin-right: 5px; /* 右側に少しマージン */
}
.separator {
    font-size: 1.1em;
    font-weight: normal;
    color: #ccc;
    margin-right: 10px; /* 右側にマージン */
    margin-left: 5px;  /* 左側にマージン */
}
/* ▲▲▲ ここまで追加 ▲▲▲ */

#specific-gravity {
    font-size: 1.5em;
    font-weight: bold;
    color: #005a9c;
}

#reference-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    table-layout: fixed; /* カラム幅の固定のため */
}
#reference-table th, 
#reference-table td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    vertical-align: middle;
}
#reference-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    text-align: center;
}

/* 列ごとのテキスト寄せと幅 */
#reference-table td:nth-child(1) {
    text-align: center; /* 素材 */
    width: 35%;
}
#reference-table td:nth-child(2) {
    text-align: right; /* 比重 */
    width: 30%;
}
#reference-table td:nth-child(3) {
    text-align: right; /* 重量 */
    width: 35%;
    font-weight: bold; /* 重量を目立せる */
}

.info-section {
    margin-top: 20px; 
    background-color: #fff; 
    padding: 20px; 
    border-radius: 8px; 
    border: 1px solid #ddd;
}
.info-section ul, .info-section ol {
     padding-left: 20px;
}
.info-section li {
    margin-bottom: 0.75em;
}

#footer {
  margin: 20px 0 0;
  padding: 8px 0;
  font-size: 12px;
  text-align: center;
}
#footer a {
  color: #666666;
}