/* 全体レイアウト */
body {
  font-family: Arial, sans-serif;
  background-color: #f7f7f7;
  padding: 20px;
  color: #333;
}

.container {
  max-width: 800px;
  margin: auto;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* セクション間の余白 */
.container > * {
  margin-bottom: 25px;
}

/* タイトル */
h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
}

/* 言語選択 */
.language-select {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.language-select label {
  font-weight: bold;
}
.language-select select {
  font-size: 16px;
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* 入力エリア */
textarea {
  width: 100%;
  height: 100px;
  font-size: 16px;
  padding: 15px;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 5px;
}

/* ファイルアップロード */
.file-upload {
  margin-top: 10px;
}

/* コントロール部分 */
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

/* 分類・変換セクション間の余白 */
.analysis-section,
.conversion-section {
  margin-top: 30px;
}

/* ボタン共通スタイル（前回の緑系デザインに戻す） */
.primary-btn {
  font-size: 16px;
  padding: 10px 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.primary-btn:hover {
  background-color: #45a049;
}

/* Convertセクション：横並びに */
.conversion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

/* 変換タイプボタン（横並びでも綺麗に見えるよう微調整） */
.conversion-types {
  display: flex;
  gap: 10px;
}

/* 選択タイプボタン（ハイライトあり） */
.convert-type {
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid #999;
  border-radius: 5px;
  background-color: #f9f9f9;
  cursor: pointer;
}

.convert-type:hover {
  background-color: #e6f0ff;
}

.convert-type.selected {
  background-color: #cce5ff;
  border-color: #337ab7;
  font-weight: bold;
}


/* Convertボタン */
#convertBtn {
  margin-top: 10px;
  background-color: #007bff;
}

#convertBtn:hover {
  background-color: #0069d9;
}


/* 出力結果セクション */
.output {
  border: 1px solid #ccc;
  background-color: #f0f8ff;
  padding: 20px;
  border-radius: 8px;
}

/* 出力ボックス（変換文表示） */
.output-box {
  margin-top: 10px;
  padding: 10px;
  background-color: white;
  border: 1px solid #aaa;
  border-radius: 5px;
  min-height: 60px;
  white-space: pre-wrap;
  font-size: 16px;
}

/* 出力ブロック内のオリジナル文 */
.output p .originalText {
  display: inline-block;
  margin-left: 8px;
  font-style: italic;
  color: #555;
}

.multi-output {
  display: flex;
  flex-direction: column;
  gap: 20px;
}