/* future-predictions.css */

/* =============================== */
/* === グローバルスタイル === */
/* =============================== */
body {
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
  background-color: #f0f2f5;
  color: #374151;
  line-height: 1.6;
}

/* =============================== */
/* === フォームコンテナ === */
/* =============================== */
.container {
  width: 100%;
  max-width: 800px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem 1.5rem;
  margin: 2rem auto 0;
  box-sizing: border-box;
}

.post-count-message {
  text-align: right;
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
}

/* =============================== */
/* === セレクトボックス === */
/* =============================== */
.select-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.select-wrapper {
  flex: 1;
  min-width: 200px;
}

.select-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #374151;
}

.custom-select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1em;
  line-height: 1.5;
  background-color: #f9fafb;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  box-sizing: border-box;
  min-height: 48px;
}

.custom-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* =============================== */
/* === フォーム === */
/* =============================== */
.future-prediction-form {
  font-family: inherit;
  color: inherit;
}

.future-prediction-form h2,
.future-prediction-form h3 {
  margin-top: 1.2em;
  margin-bottom: 0.6em;
  font-weight: 600;
  color: #1f2937;
}

.future-prediction-form p {
  margin-bottom: 1.2em;
  font-size: 1rem;
  color: #444;
}

.future-prediction-form p strong {
  color: #222;
}

.future-prediction-form label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.3em;
  font-size: 1.1em;
}

.future-prediction-form input[type="text"],
.future-prediction-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #bbb;
  border-radius: 4px;
  margin-top: 4px;
  margin-bottom: 15px;
  box-sizing: border-box;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.future-prediction-form input[type="text"] {
  min-height: 48px;
}

.future-prediction-form input[type="text"]:focus,
.future-prediction-form textarea:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.25);
  background: #f0f8ff;
}

.future-prediction-form textarea[name="free_note"] {
  min-height: 120px;
}

textarea.prefilled {
  background-color: #f3f4f6;
  border-color: #9ca3af;
  font-style: italic;
  color: #111827;
}

.future-prediction-form input[type="submit"],
.recreate-button {
  background-color: #4a90e2;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1.1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: inline-block;
  text-align: center;
  margin-top: 1em;
}

.future-prediction-form input[type="submit"]:hover,
.recreate-button:hover {
  background-color: #357ABD;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.future-prediction-form input[type="submit"]:active,
.recreate-button:active {
  background-color: #2a65a0;
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) inset;
}

/* =============================== */
/* === エラー表示 === */
/* =============================== */
.form-error-message {
  background-color: #fee2e2;
  border: 1px solid #ef4444;
  color: #dc2626;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.form-error-message ul {
  margin: 0;
  padding-left: 20px;
}

.form-error-message li {
  list-style-type: disc;
}

.recreate-button-wrapper {
  margin-top: 20px;
  text-align: right;
}

/* =============================== */
/* === 投稿一覧カード === */
/* =============================== */
.my-all-future-posts {
  display: grid;
  gap: 1.5em;
  margin-top: 2em;
}

.future-post-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.2em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}

.future-post-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.future-post-card h4 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.2em;
  color: #333;
}

.draft-label {
  color: #c00;
  font-size: 0.9em;
  margin-left: 0.5em;
  font-weight: bold;
}

.future-post-meta {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 1em;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5em;
}

.future-post-actions .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  justify-content: flex-end;
}

.btn {
  border: none;
  border-radius: 6px;
  padding: 0.5em 1em;
  font-size: 0.9em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease, opacity 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-view { background-color: #2a9d8f; color: white; }
.btn-publish { background-color: #0073aa; color: white; }
.btn-draft { background-color: #aaa; color: white; }
.btn-delete { background-color: #e63946; color: white; }

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.card-link-area {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 0.2em 0;
}

/* =============================== */
/* === レスポンシブ対応 === */
/* =============================== */
@media (max-width: 768px) {
  .container { padding: 20px; }
  .select-group { flex-direction: column; gap: 15px; }
  .future-prediction-form label { font-size: 1em; }
  .future-prediction-form input[type="text"],
  .future-prediction-form textarea {
    padding: 8px;
    font-size: 0.95em;
  }
  .custom-select {
    padding: 10px 12px;
    font-size: 1em;
    min-height: 50px;
  }
  .future-prediction-form input[type="submit"],
  .recreate-button {
    padding: 10px 20px;
    font-size: 1em;
  }
  .future-post-actions .button-row {
    flex-direction: column;
    align-items: flex-end;
  }
  .btn {
    width: 100%;
    box-sizing: border-box;
  }
}

/* =============================== */
/* === 管理画面向けスタイル === */
/* =============================== */
body.wp-admin .future-prediction-form {
  background-color: #fcfdff;
  padding: 24px;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  margin-top: 20px;
}

body.wp-admin .future-prediction-form textarea,
body.wp-admin .future-prediction-form input[type="text"] {
  background-color: #f8fbff;
  border-color: #c3dafe;
}

body.wp-admin .future-prediction-form textarea:hover,
body.wp-admin .future-prediction-form input[type="text"]:hover {
  border-color: #60a5fa;
}

body.wp-admin .future-prediction-form textarea:focus,
body.wp-admin .future-prediction-form input[type="text"]:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.25);
  background-color: #eef6ff;
}




-----マイページ及びマイ投稿のCSS-----

.future-block {
  max-width: 800px;
  margin: 0 auto;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  padding: 20px 12px;
}

.future-heading {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  border-left: 4px solid #888;
  background-color: #f7f7f7;
  padding: 10px 14px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.future-item {
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fafafa;
  padding: 16px;
  margin-bottom: 16px;
}

.future-label {
  font-weight: bold;
  color: #333;
  margin-bottom: 6px;
  font-size: 16px;
}


.future-content {
  color: #444;
  margin-left: 16px;
  font-size: 14px;
  }

.future-no-data {
  text-align: center;
  color: #888;
  font-style: italic;
  margin-top: 10px;
  font-size: 14px;
}

.future-submit-button {
  display: block;
  margin: 30px auto 0;
  padding: 10px 24px;
  background-color: #555;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.future-submit-button:hover {
  background-color: #444;
}



/* 入力済み項目数の表示 */
.filled-count {
  text-align: right;
  font-weight: bold;  /* 強調したい場合 */
  margin-top: 10px;   /* お好みで上下マージン調整 */
  color: #333;        /* 文字色の調整もお好みで */
}




/* 投稿日と最終更新日時のスタイル */
.article-body .post-date,
.article-body .last-updated {
    text-align: right;
    font-size: 0.9em;    /* ここを 0.9em に変更 */
    color: #777;
    margin-top: 2px;
    margin-bottom: 2px;
    line-height: 1.2;
}
}





/*-----投稿ページに違反報告ボタン------*/



.future-report-button {
  margin: 0.3em 0;
  font-size: 0.8em;
  line-height: 1.3;
  color: #666;
}

.future-report-button .report-link {
  float: right;
  font-size: 0.8em;
  color: #666;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.future-report-button .report-link:hover {
  color: #000;
}

.future-report-button::after {
  content: "";
  display: table;
  clear: both;
}


/*-----違反報告フォーム------*/
/* 違反報告フォーム 全体ラップ */
.aiir-report-form {
  max-width: 800px;
  margin: 2em auto;
  padding: 2em;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: sans-serif;
  color: #333;
}

/* 各ラベル */
.aiir-label {
  font-weight: bold;
  margin-bottom: 0.5em;
  display: block;
  font-size: 1rem;
}

/* テキストエリア */
.aiir-textarea-large {
  width: 100%;
  max-width: 100%;
  padding: 1em;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  box-sizing: border-box;
  resize: vertical;
  margin-bottom: 1.5em;
}

/* 送信ボタン */
.aiir-submit {
  background-color: #444;
  color: #fff;
  border: none;
  padding: 0.75em 1.5em;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.aiir-submit:hover {
  background-color: #222;
}

/* 投稿情報ボックス */
.aiir-post-box {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 1em;
  border-radius: 6px;
  margin-bottom: 1.5em;
}

.aiir-post-link {
  color: #0073aa;
  text-decoration: none;
  font-weight: bold;
}

.aiir-post-link:hover {
  text-decoration: underline;
}

.aiir-post-excerpt {
  margin: 0.5em 0;
  font-size: 0.95rem;
  color: #555;
}

.aiir-post-meta {
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.2em;
	text-align:right;
}

/* エラーメッセージ */
.aiir-error {
  color: #b00020;
  background-color: #ffeef0;
  border: 1px solid #f5c2c7;
  padding: 1em;
  border-radius: 5px;
  text-align: center;
  margin: 2em 0;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
  .aiir-report-form {
    padding: 1.2em;
    margin: 1em;
  }

  .aiir-textarea-large {
    font-size: 0.95rem;
    padding: 0.8em;
  }

  .aiir-submit {
    width: 100%;
    padding: 0.8em;
  }
}
