/* 🌸 装備セット一覧テーブル（ジョブ・更新日・操作） */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
}
th, td {
  border: 1px solid #aaa;
  padding: 4px;
  font-size: 90%;
}
thead th {
  background-color: #ffe4e1;
  color: #880e4f;
  font-weight: bold;
}
.set-name-cell {
  max-width: 320px;
  text-align: left;
}
.job-col {
  max-width: 50px;
  width: 8%;
  text-align: center;
}
.author-col {
  max-width: 80px;
  width: 10%;
  text-align: center;
}
.created-col {
  max-width: 100px;
  width: 12%;
  text-align: center;
}
.op-edit-col, .op-delete-col {
  max-width: 40px;
  width: 6%;
  text-align: center;
  vertical-align: middle;
  padding: 2px;
}
.icon-button {
  width: 16px;
  height: 16px;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin: 0px;
}
.icon-button:hover {
  transform: scale(1.2);
}

/* 🌸 詳細行や内容エリア */
.details-row {
  background-color: #fff;
  display: none;
  position: relative;
  z-index: 1;
}
.details-row-content {
  padding: 10px;
  background-color: #fff;
}
.slot-and-summary-wrapper {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  padding: 10px;
}

/* 🌸 ヘッダー */
.header-area {
  background: #ffe4e1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  border-bottom: 2px solid #ffb6c1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
}
.header-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInSlide 0.8s ease forwards;
}
@keyframes fadeInSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.header-title-img {
  height: 48px;
}
.header-gif {
  height: 64px;
}

/* 🌸 共通ボタンスタイル */
button,
.edit-btn, .delete-btn, .new-registration-btn, .submit-button {
  font-size: 13px;
  font-weight: bold;
  font-family: "Comic Sans MS", cursive, sans-serif;
  padding: 4px 10px;
  border: 2px solid transparent;
  border-radius: 20px;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 🌸 編集ボタン（ピンク系） */
.edit-btn {
  background: linear-gradient(145deg, #ffc1da, #ff9ac2);
  color: white;
  border-color: #ff9ac2;
}
.edit-btn:hover {
  background: linear-gradient(145deg, #ffaecb, #ff74af);
  transform: scale(1.05);
}

/* 🌸 削除ボタン（青系） */
.delete-btn {
  background: linear-gradient(145deg, #a4caff, #75aefb);
  color: white;
  border-color: #75aefb;
  text-decoration: none;
}
.delete-btn:hover {
  background: linear-gradient(145deg, #93bcfd, #6599f5);
  transform: scale(1.05);
}

/* 🌸 新規登録ボタン（ピンク系） */
.new-registration-btn {
  background: linear-gradient(145deg, #ff99cc, #ff66b2);
  color: #fff;
  border-color: #ff66b2;
}
.new-registration-btn:hover {
  transform: scale(1.05);
  box-shadow: 4px 4px 10px rgba(0,0,0,0.3);
  background: linear-gradient(145deg, #ff80bf, #ff3385);
}

/* 🌸 送信ボタン */
.submit-button {
  margin-top: 20px;
  background: linear-gradient(145deg, #ff99cc, #ff66b2);
  color: #fff;
  border-color: #ff66b2;
}
.submit-button:hover {
  transform: scale(1.05);
  background: linear-gradient(145deg, #ff80bf, #ff3385);
  box-shadow: 4px 4px 10px rgba(0,0,0,0.3);
}


/* 🌸 その他補助 */
.toggle-detail, .toggle-button, #toggleHelpBtn {
  cursor: pointer;
}
.toggle-detail {
  font-size: 85%;
  color: #b03060;
  margin-top: 4px;
}
.toggle-detail:hover {
  color: #880e4f;
}
.toggle-help-btn {
  background: none;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  color: #b03060;
}
.usage-help {
  display: none;
  padding: 10px;
  margin-top: 10px;
}
.record-count {
  text-align: right;
  margin-bottom: 10px;
  color: #ad1457;
  font-weight: bold;
}
.sort-link {
  color: #b03060;
  text-decoration: none;
  font-weight: bold;
  font-size: 90%;
  margin-left: 4px;
}
.sort-link:hover {
  text-decoration: underline;
  color: #880e4f;
}
.slot-details {
  display: none;
}

/* 🌸 ページ送りナビゲーション（下部・右寄せ） */
.pagination-container-bottomright {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 0;
  padding-right: 16px;
}
.pagination-inline {
  display: flex;
  gap: 6px;
  font-weight: bold;
  align-items: center;
  flex-wrap: wrap;
}
.pagination-inline a,
.pagination-inline strong {
  display: inline-block;
  min-width: 0px;
  padding: 6px 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  background-color: transparent;
  color: #000;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}
.pagination-inline a:hover {
  text-decoration: underline;
  color: #b03060;
}
.pagination-inline strong {
  background-color: #f8bbd0;
  color: white;
  pointer-events: none;
}

/* 🌸 戻るバナー（右下固定） */
.return-banner-wrapper {
  position: fixed;
  bottom: 0px;
  right: 16px;
  z-index: 1000;
}
.return-banner-img {
  height: 40px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

/* 🐙 たこくんと新規登録ボタンの横並び表示 */
.tako-walk-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 10px;
  padding-left: 20px; /* 左に少し余白 */
}

/* 🐙 たこくんGIF（スライドで入場） */
.tako-walker {
  height: 50px;
  opacity: 1;
}

/* アニメーション付与用クラス（後から追加） */
.start-walk {
  animation: takoSlideIn 9s ease-out forwards;
  animation-fill-mode: forwards;
}

/* 🐙 横方向にぬるっとスライドしてくる */
@keyframes takoSlideIn {
  0%   { transform: translateX(400px); }
  100% { transform: translateX(0); }
}

body {
  overflow-x: hidden;
}

/* 🌸 ジョブリンクパネル */
.job-link-panel {
  margin: 20px 10px;
  font-size: 90%;
}

.job-link-title {
  font-weight: bold;
  color: #c71585;
  font-size: 15px;
  font-family: "Comic Sans MS", cursive;
}

/* 🌸 ジョブリンク（文字だけ） */
.job-links a.job-link {
  color: #b03060;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  margin: 0 4px;
  transition: color 0.2s ease;
}

/* 🌸 hover時にちょっとだけ色を濃く */
.job-links a.job-link:hover {
  color: #800040;
  text-decoration: underline;
}

/* 🌸 選択中（active）ジョブだけ色強調 */
.job-links a.job-link.active-job {
  color: #e60073;
  text-decoration: underline;
}

/* 🌸 ジョブリンク全体の並び調整 */
.job-links,
.job-links.job-line-1,
.job-links.job-line-2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0; /* 区切りがあるので gap は不要 */
  margin-bottom: 6px;
  font-size: 14px;
}

/* 🌸 区切りの「｜」 */
.job-links .job-separator {
  color: #999;
  margin: 0 4px;
}

/* 🌸 一覧表示のリンク */
.job-link-header-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}

.job-reset-link {
  font-size: 13px;
  color: #b03060;
  text-decoration: none;
  border-bottom: 1px dashed #b03060;
}

.job-reset-link:hover {
  color: #e60073;
  border-bottom: 1px solid #e60073;
}

/* 🌸 ジョブリンクアイコン */
.job-icon {
  height: auto;
  width: auto;
  vertical-align: middle;
  margin-right: 4px;
}

/* 🌸 区切り（・） */
.job-link-separator {
  margin: 0 10px;
  color: #888;
  font-weight: bold;
}

/* 🌸 区切り線 ｜ */
.job-sep {
  margin: 0 5px;
  color: #bbb;
}

/* 🌸 リンク（シンプルに） */
.job-links a.job-link {
  color: #c71585;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
}
.job-links a.job-link:hover {
  text-decoration: underline;
}

/* 🌸 一覧リンク */
.job-reset-link {
  font-size: 13px;
  background: none;
  color: #880e4f;
  padding: 0 6px;
  border-radius: 0;
  text-decoration: none !important; /* ← 絶対消したいなら !important */
  border: none;
  box-shadow: none;
}

/* 🌸 セット名ジョブ用 */
.job-reset-link:hover {
  text-decoration: underline;
}

.comment-board {
  background-color: #fff8fc;
  padding: 20px;
  margin-top: 40px;
  border-top: 2px dashed #ff99cc;
}


/* 🌸 付箋メモ用 */
/* 🌸 最終統一版：付箋メモ用スタイル + 投稿フォーム + リプライ一覧 完全見本再現 */

/* 🌸 入力欄：名前・メモ・パスワード・返信用（共通デザイン） */
.sticky-name,
.sticky-msg,
.reply-pass,
.reply-name,
.reply-msg,
.reply-input {
  padding: 6px 10px;
  border-radius: 16px;
  border: 2px dashed #ff99cc;
  background-color: transparent;
  font-size: 90%;
  font-family: "Comic Sans MS", cursive;
  color: #333;
  box-shadow: none;
  box-sizing: border-box;
}

/* ✅ メモ欄幅指定（placeholderが改行されないように） */
.sticky-msg,
.reply-msg {
  width: 360px !important;
  resize: vertical;
  line-height: 1.4;
}

/* 🌸 投稿フォーム */
.sticky-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 20px;
  max-width: 660px;
  width: 100%;
}

/* 🌸 個別サイズ（見本通り） */
.reply-name,
.reply-pass {
  flex: 0 0 120px;
}

.reply-select {
  width: 90px;
}

/* 🌸 送信ボタン */
.sticky-submit,
.reply-submit {
  background: #ff99cc;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-weight: bold;
  font-family: "Comic Sans MS", cursive;
  cursor: pointer;
}

/* 🌸 付箋メモ本体 */
.sticky-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

.sticky-note {
  border-radius: 16px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
  width: 180px;
  padding: 10px;
  position: relative;
  font-family: "Comic Sans MS", cursive;
  transform: rotate(-1.5deg);
}

.sticky-pin {
  position: absolute;
  top: -10px;
  left: 8px;
  font-size: 18px;
}

.sticky-message {
  font-size: 90%;
  color: #555;
  margin-bottom: 10px;
  white-space: pre-wrap;
  max-height: 90px; /* ← 高さ制限（3行程度） */
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}


.sticky-meta {
  font-size: 75%;
  color: #999;
  text-align: right;
}

.sticky-note-pink     { background: #ffe4e1; border: 2px dashed #ff99cc; }
.sticky-note-yellow   { background: #fffacd; border: 2px dashed #ffcc66; }
.sticky-note-green    { background: #e0ffe0; border: 2px dashed #66cc66; }
.sticky-note-blue     { background: #e0f7ff; border: 2px dashed #66ccff; }
.sticky-note-lavender { background: #f0e8ff; border: 2px dashed #cc99ff; }

/* 🌸 編集・削除・返信ボタン左下揃え */
.memo-actions {
  margin-top: 6px;
  display: flex;
  gap: 6px;
}

.icon-btn {
  width: 16px;
  height: 16px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* 🌸 返信フォーム・リスト */
.reply-form,
.reply-form-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

.reply-list {
  margin-top: 10px;
  margin-left: 10px;
  border-left: 2px dashed #ccc;
  padding-left: 10px;
}

.reply-item {
  margin-bottom: 6px;
  font-size: 85%;
  background: #ffffffcc;
  padding: 6px;
  border-radius: 8px;
}

.reply-message {
  color: #333;
}

.reply-meta {
  font-size: 75%;
  color: #777;
  text-align: right;
}

/* 🌸 強調効果 */
.highlight {
  border: 2px solid #ff66b2 !important;
  box-shadow: 0 0 6px #ff99cc;
}

.deleted-reply {
  color: #999;
  text-decoration: line-through;
  font-style: italic;
}

/* 🌸 textarea 専用ラッパーで行確保 */
.sticky-msg-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

/* 🌸 パスワード欄の枠も他と同じピンクぽっぷに */
input[type="password"].reply-input,
input.reply-pass {
  border: 2px dashed #ff99cc !important;
  background-color: transparent;
  color: #333;
  border-radius: 16px;
  padding: 6px 10px;
  font-family: "Comic Sans MS", cursive;
  box-sizing: border-box;
}

input.reply-input:focus {
  outline: none;
  box-shadow: 0 0 4px #ff99cc;
}

/* 🌸 編集したもふ */
.memo-toast {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffccdd;
  color: #800040;
  padding: 10px 20px;
  border: 2px dashed #ff99cc;
  border-radius: 16px;
  font-family: "Comic Sans MS", cursive;
  font-size: 15px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
  z-index: 9999;

  /* animation: fadeOutToast 3.5s ease forwards; ← 一時停止して */
}

/* 🌸 返信用 */
.reply-original-box {
  background-color: #fff0f5;
  border: 2px dashed #ff99cc;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  font-family: "Comic Sans MS", cursive;
  color: #555;
}

/* 🌸 モーダル全体（編集・返信・削除共通） */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(255, 255, 255, 0.85); /* 白くふんわり */
}

/* 🌸 モーダルの中身（編集・返信・削除・展開すべて） */
.modal-content {
  position: relative; /* close-btnのabsolute位置の基準に！ */
  background-color: #fff0f5;
  margin: auto;
  padding: 30px;
  border: 3px solid #ff66b2;
  width: 320px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* 🌸 閉じるボタン（右上 ×） */
.close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 24px;
  font-weight: bold;
  color: #888;
  background: none;
  border: none;
  padding: 8px; /* ← クリックしやすくなる！ */
  border-radius: 8px;
  z-index: 10001; /* 最前面に */
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.close-btn:hover {
  color: #333;
  background-color: rgba(0, 0, 0, 0.05); /* ホバー時のやさしい背景 */
}


/* 🌸 各モーダルタイトルカラー */
.modal-title {
  white-space: nowrap;
}

.edit-title {
  color: #d63384;
}

.reply-title {
  color: #d63384;
  white-space: nowrap;
}

.delete-title {
  color: #3058a0;
}

/* 🌸 削除ボタン（ピンク系 or 青系選べる） */
.delete-submit {
  background: #ff6699;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-weight: bold;
  font-family: "Comic Sans MS", cursive;
  cursor: pointer;
}
.delete-submit:hover {
  background: #e35b8a;
}

/* 🌸 削除モーダルだけ別カラー（ふんわり青） */
#deleteMemoModal .modal-content {
  background: linear-gradient(135deg, #f0f6ff, #e6f0fe); /* ふんわり青 */
  border: 3px solid #478af8;
}

/* 🌸 マイナスの表示 */
.negative-value {
  color: #c2185b; /* 濃いピンク系 or 赤系（マイナスの警告風） */
  font-weight: bold;
}

/* 🌸 「使い方をみる」ボタン：すっきりリンク風 */
#toggleHelpBtn {
  background: none;
  border: none;
  border-radius: 0;
  font-size: 14px;
  color: #b03060;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
  display: inline-block;
  margin-bottom: 10px;
  box-shadow: none;
}
#toggleHelpBtn:hover {
  color: #880e4f;
}

/* 🌸 使い方カード本体（カード風） */
.usage-help {
  position: relative;
  background-color: #fff0f5; /* ← この色に変更！ */
  border: 2px solid #ffc0cb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(255, 192, 203, 0.3);
  color: #663347;
  font-size: 14px;
  line-height: 1.6;
  max-width: 600px;
  margin: 12px auto 20px;
  display: none;
}

/* 🌸 使い方カード右上の × ボタン */
.close-help-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  background-color: transparent;
  color: #b03060;
  border: none;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}
.close-help-btn:hover {
  background-color: #ffe6f0;
}

.edit-btn,
.delete-btn,
.new-registration-btn {
  text-decoration: none;
}
