/* NOB文書編集 - 共通スタイル */

html, body {
  margin: 0;
  padding: 0;
  background-color: #fdfaf3;
  color: #222222;
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", "MS PGothic", sans-serif;
  font-size: 22px;
  line-height: 1.9;
}

* {
  box-sizing: border-box;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px 24px;
}

header.site-header {
  text-align: center;
  padding: 20px 0 24px 0;
}

header.site-header .logo {
  font-size: 24px;
  font-weight: bold;
  color: #1b4d6b;
  letter-spacing: 0.05em;
  text-decoration: none;
}

header.site-header .logo:hover,
header.site-header .logo:focus {
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #1b4d6b;
  font-size: 20px;
  text-decoration: none;
}

h1 {
  font-size: 28px;
  color: #1b4d6b;
  text-align: center;
  margin: 0 0 30px 0;
}

/* TOPページ：メニュー */

nav.menu {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

nav.menu a {
  display: block;
  background-color: #ffffff;
  border: 2px solid #dfe6ea;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  color: #1b4d6b;
  font-size: 28px;
  font-weight: bold;
  box-shadow: 0 4px 0 #dfe6ea;
}

nav.menu a:hover,
nav.menu a:focus {
  background-color: #eef5f9;
}

/* 「作業」カテゴリ内のボタン（ルビ／送り仮名／校正）は横幅を短くする */
.category nav.menu {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.category nav.menu a {
  width: 220px;
  padding: 24px 16px;
}

.category {
  position: relative;
  border: 3px solid #1b4d6b;
  border-radius: 20px;
  padding: 44px 24px 28px 24px;
  margin-top: 44px;
  background-color: #eef5f9;
}

.category-title {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1b4d6b;
  color: #ffffff;
  font-size: 22px;
  font-weight: bold;
  padding: 10px 32px;
  border-radius: 999px;
  white-space: nowrap;
}

footer.site-footer {
  text-align: center;
  margin-top: 50px;
  font-size: 17px;
  color: #666666;
}

/* プロンプト生成ページ：ステップ・カード */

.step-title {
  display: block;
  margin: -32px -28px 18px -28px;
  padding: 20px 28px;
  background-color: #1b4d6b;
  color: #ffffff;
  font-size: 23px;
  font-weight: bold;
  border-radius: 14px 14px 0 0;
}

.step-icon {
  display: block;
  width: 120px;
  height: 120px;
  margin: 8px auto 16px auto;
}

.step-screenshot {
  display: block;
  max-width: 480px;
  width: 100%;
  height: auto;
  margin: 8px auto 16px auto;
  border: 2px solid #dfe6ea;
  border-radius: 10px;
}

.step-image-full {
  display: block;
  width: 100%;
  height: auto;
  margin: 8px 0 16px 0;
  border: 2px solid #dfe6ea;
  border-radius: 10px;
}

.step-image-native {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 8px 0 16px 0;
  border: 2px solid #dfe6ea;
  border-radius: 10px;
}

.no-border {
  border: none;
  border-radius: 0;
}

.card {
  background-color: #ffffff;
  border: 2px solid #1b4d6b;
  border-radius: 16px;
  padding: 32px 28px;
  margin-bottom: 34px;
}

label {
  display: block;
  font-size: 22px;
  font-weight: bold;
  color: #1b4d6b;
  margin-bottom: 8px;
}

.help-text {
  font-size: 19px;
  color: #555555;
  margin: 0 0 14px 0;
}

input[type="text"] {
  width: 100%;
  font-size: 22px;
  padding: 14px 16px;
  border: 2px solid #bcd0da;
  border-radius: 10px;
  font-family: inherit;
  background-color: #f8f8f8;
}

input[type="text"]:focus {
  outline: 3px solid #e07a2c;
  border-color: #e07a2c;
}

.submit-button {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 22px;
  background-color: #e07a2c;
  color: #ffffff;
  font-size: 23px;
  font-weight: bold;
  text-align: center;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 0 #b25e1c;
  cursor: pointer;
}

.submit-button:hover,
.submit-button:focus {
  background-color: #cf6c22;
}

.select-button {
  display: inline-block;
  margin: 4px 0 8px 0;
  padding: 10px 22px;
  background-color: #1b4d6b;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  border: none;
  border-radius: 8px;
  box-shadow: 0 3px 0 #123549;
  cursor: pointer;
}

.select-button:hover,
.select-button:focus {
  background-color: #163f58;
}

.result-title {
  font-size: 22px;
  font-weight: bold;
  color: #1b4d6b;
  margin: 26px 0 14px 0;
}

textarea.result-box {
  width: 100%;
  height: 320px;
  font-size: 20px;
  line-height: 1.7;
  padding: 16px;
  border: 2px solid #bcd0da;
  border-radius: 10px;
  font-family: inherit;
  background-color: #f8f8f8;
  resize: vertical;
}

/* プロンプトが新しく作られたときに、テキストエリアの背景色を
   一瞬だけ変えて「更新されました」と分かりやすくするアニメーション */
@keyframes resultBoxUpdated {
  0% {
    background-color: #fff3b0;
  }
  100% {
    background-color: #f8f8f8;
  }
}

textarea.result-box.updated {
  animation: resultBoxUpdated 1s ease-out;
}

.copy-button {
  display: inline-block;
  margin-top: 16px;
  padding: 16px 32px;
  background-color: #1b4d6b;
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.copy-button:hover,
.copy-button:focus {
  background-color: #163f58;
}

.copy-message {
  display: inline-block;
  margin-left: 16px;
  font-size: 19px;
  color: #1b4d6b;
}

.error-text {
  margin: 14px 0 0 0;
  padding: 14px 18px;
  background-color: #fdeceb;
  border: 2px solid #c0392b;
  border-radius: 10px;
  color: #a5281a;
  font-size: 19px;
  font-weight: bold;
}

.codex-note {
  display: inline-block;
  margin-left: 16px;
  padding: 12px 20px;
  background-color: #fff3e0;
  border: 2px solid #e07a2c;
  border-radius: 10px;
  color: #b25e1c;
  font-size: 20px;
  font-weight: bold;
  vertical-align: middle;
}
