/* ひらがな→カタカナ変換 専用スタイル */

html, body { height: 100%; margin: 0; padding: 0; }

main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 2rem 1rem;
  background: #f0f0f0;
  box-sizing: border-box;
}

.container {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  padding: 24px;
  width: 92%;
  max-width: 760px;
  display: grid;
  gap: 18px;
}

.container > header { text-align: center; }
.container > header h1 { margin: 0; font-size: 1.6rem; color: #333; }

.textarea-wrapper { display: grid; gap: 12px; }
textarea {
  width: 100%; min-height: 140px; resize: vertical;
  padding: 12px; box-sizing: border-box;
  border: 1px solid #ccc; border-radius: 6px; background: #f9f9f9;
  font-size: 1rem; line-height: 1.8;
}
textarea[readonly] { background: #eee; }

.button-container {
  display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
}
button {
  padding: 10px 16px; font-size: 1em; cursor: pointer; border-radius: 6px;
  background: #fff; color: #000; border: 2px solid #000;
  transition: background .2s, color .2s;
}
button:hover { background: #000; color: #fff; }
button.ghost { border-color: #999; color: #444; }
button.ghost:hover { background: #444; color: #fff; }

.link-container { text-align: right; }
.link-container a { color: #007bff; text-decoration: none; font-size: .9em; }
.link-container a:hover { text-decoration: underline; }

.copy-notice {
  position: fixed; bottom: 20px; right: 20px;
  background: #333; color: #fff; padding: 8px 16px;
  border-radius: 6px; font-size: .9em; opacity: 0; transition: .3s;
  pointer-events: none; z-index: 1000;
}
.copy-notice.show { opacity: 1; }

.note {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  margin-top: -5px;
  margin-bottom: 5px;
  text-align: left;
}

@media (max-width: 640px) {
  main { padding: 1rem; }
  .container { padding: 16px; }
  textarea { min-height: 120px; }
  button { width: 100%; }
  .button-container { justify-content: stretch; }
}
