/* ==========================================
   全角・半角変換ツール 専用スタイル
   （共通ヘッダーと共存できるよう調整）
   ========================================== */

/* HTML・BODYの高さ設定 */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background-color: #f0f0f0;
}

/* メイン全体の配置（共通ヘッダーがあるためmainだけ中央寄せ） */
main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 120px); /* ヘッダー・フッター分の余白確保 */
  padding: 2rem 1rem;
  box-sizing: border-box;
}

/* メインボックス（中央のカード） */
.container {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 25px;
  width: 90%;
  max-width: 700px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ヘッダー（ツールタイトル） */
.container > header {
  text-align: center;
}

.container > header h1 {
  font-size: 1.8em;
  color: #333333;
  margin: 0;
}

/* テキストエリア部分 */
.textarea-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: stretch;
}

/* テキストエリア共通デザイン */
textarea {
  width: 100%;
  height: 110px;
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 1em;
  resize: none;
  background-color: #f9f9f9;
  box-sizing: border-box;
}

/* 出力エリアは読み取り専用で色を変える */
textarea[readonly] {
  background-color: #eeeeee;
}

/* ボタン部分 */
.button-container {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

/* ボタン共通スタイル */
button {
  padding: 10px 16px;
  font-size: 1em;
  background-color: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
button:hover {
  background-color: #000000;
  color: #ffffff;
}

/* 使い方ページの説明スタイル */
.description {
  text-align: left;
  margin: 20px 0;
}
.description h2 {
  font-size: 1.2em;
  color: #333333;
}
.description ul {
  padding-left: 20px;
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
}
.description ul li {
  list-style-type: disc;
  margin-bottom: 10px;
}

/* リンク（右下） */
.link-container {
  text-align: right;
  padding-right: 10px;
}
.link-container a {
  color: #007bff;
  text-decoration: none;
  font-size: 0.9em;
}
.link-container a:hover {
  text-decoration: underline;
}

/* コピー完了通知 */
.copy-notice {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #333;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9em;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}
.copy-notice.show {
  opacity: 1;
}

/* ======= スマホ対応 ======= */
@media (max-width: 600px) {
  main {
    padding: 1rem;
  }

  .container {
    padding: 15px;
  }

  .container > header h1 {
    font-size: 1.3em;
  }

  textarea {
    height: 100px;
  }

  .button-container {
    flex-direction: column;
    align-items: stretch;
  }

  button {
    width: 100%;
  }

  .description h2 {
    font-size: 1em;
  }

  .description ul {
    font-size: 0.9em;
  }

  .link-container {
    text-align: center;
    padding: 0;
  }
}
