.tool-section {
  margin-top: 24px;
}
.tool-control-panel {
  border: 1px solid #ddd;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.tool-control-panel h2 {
margin-top:0;
}

.tool-control-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.tool-control-row label {
  min-width: 120px;
}
.tool-control-row input[type="number"] {
  max-width: 160px;
}
.tool-drop-area-wrapper {
  margin-bottom: 16px;
}
.drop-area {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 32px 16px;
  text-align: center;
  cursor: pointer;
}
.drop-area.is-dragover {
  border-color: #999;
  background-color: #fafafa;
}
.drop-area input[type="file"] {
  display: none;
}
.tool-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.status-text {
  font-size: 0.9rem;
  color: #666;
}
.result-area {
  margin-top: 24px;
}
.result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.result-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
.result-info p {
  margin: 2px 0;
}
.result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.download-link {
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}
@media (max-width: 767px) {
  .tool-control-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .result-item {
    flex-direction: column;
    gap: 8px;
  }
}
#optimizeButton,
.optimize-button {
  font-size: 16px;
  padding: 0.9em 2.5em;
  border-radius: 4px;
}

#downloadAllButton {
  margin-left: 8px;
  padding: 0.7em 1.6em;
  font-size: 14px;
}
.result-actions-footer {
margin-top: 30px;
    text-align: right;
}
@media (max-width: 767px) {
.result-actions-footer {
    text-align: left;
}
}
/* ===== 説明セクション（list / h2 / ol / ul）の読みやすさ向上 ===== */

/* h2 とリストの間を広く（ページに余白を作る） */
.tool-body h2 {
  margin-top: 42px;
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 600;
}

/* ul / ol の左インデント（読みやすく） */
.tool-body ul,
.tool-body ol {
  padding-left: 1.4em;
}

/* 各行の上下に余白・読みやすい行間 */
.tool-body ul li,
.tool-body ol li {
  margin: 0.6em 0;   /* 上下の余白 */
  line-height: 1.75; /* 行間 */
  font-size: 15px;
}

/* 最初の h2 は少しだけマージン調整（上に空きすぎないように） */
.tool-body h2:first-of-type {
  margin-top: 10px;
}
