/* ========================================
   基本レイアウト設定
======================================== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #f8fff8;
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

/* メイン投稿フォームのコンテナ */
.post-container {
  max-width: 850px;
  margin: 0 auto;
  padding: 30px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* タイトル */
h2 {
  color: #4CAF50;
  font-size: 2.4rem;
  margin-bottom: 30px;
  text-align: center;
}

/* ========================================
   画像アップロードセクション
======================================== */
.image-select-btn {
  display: block;
  width: 100%;
  background-color: #fff;
  color: #2e5f3e; /* 深い緑 */
  padding: 14px 20px;
  margin: 10px auto;
  border: 1.5px solid #2e5f3e;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

.image-select-btn:hover {
  background-color: #f9f9f9;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}


/* ========================================
   設定トグルボタン
======================================== */
.settings-toggle-btn {
  background-color: #f0f0f0;
  color: #444;
  border: 1px solid #ccc;
  font-size: 1.2rem;
  font-weight: 500;
  border-radius: 6px;
  padding: 10px 16px;
  max-width: 240px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: background-color 0.3s ease;
}
.settings-toggle-btn:hover {
  background-color: #e7e7e7;
}

/* ========================================
   入力フォーム共通スタイル
======================================== */
textarea#theme {
  height: 25vh;
  min-height: 120px;
  resize: vertical;
}
.form-group {
  margin-bottom: 30px;
}
label {
  font-weight: bold;
  font-size: 1.6rem;
  margin-bottom: 10px;
  display: block;
}
select,
input[type="text"],
textarea {
  width: 100%;
  padding: 16px;
  font-size: 1.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

/* ========================================
   ボタンスタイル
======================================== */
.button-container {
  text-align: center;
  margin: 20px 0 40px;
}
.btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 16px 40px;
  font-size: 1.6rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  margin-bottom: 15px;
}
.btn:hover {
  background-color: #388e3c;
}

/* ========================================
   タイトル・投稿案リスト
======================================== */
.title-list label,
.post-list label {
  font-size: 1.4rem;
}
.radio-item,
.post-radio-item {
  background-color: #f0f8f0;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}
.radio-item input[type="radio"],
.post-radio-item input[type="radio"] {
  transform: scale(1.4);
  margin-right: 15px;
}
.radio-label-selected,
.post-radio-item.radio-label-selected {
  background-color: #e0f9e0;
  border: 2px solid #4CAF50;
  font-weight: bold;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
}

/* ========================================
  Instagram ボタン
======================================== */
.instagram-btn {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
  color: white;
  border: none;
  padding: 14px 24px;
  font-size: 1.4rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  transition: opacity 0.3s ease;
}
.instagram-btn:hover {
  opacity: 0.9;
}
.instagram-icon {
  margin-right: 8px;
  font-size: 1.5rem;
}

.help-icon{
  border: none;
}

/* ========================================
  ポップアップ系
======================================== */
#popupMessage {
  display: none;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4CAF50;
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  font-size: 1rem;
  z-index: 9999;
  text-align: center;
  transition: opacity 0.3s ease;
}
#popupMessage.error {
  background-color: #e53935;
}
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}
.popup-message {
  background: #fff;
  padding: 20px;
  max-width: 320px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.close-popup {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 18px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  z-index: 10000;
}

/* ========================================
  モバイル対応
======================================== */
@media (max-width: 600px) {
  html, body {
    font-size: 16px;
  }
  .post-container {
    padding: 16px;
    border-radius: 0;
    box-shadow: none;
  }
  h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  label,
  select,
  input[type="text"],
  textarea {
    font-size: 1.2rem;
  }
  .btn {
    font-size: 1.5rem;
    padding: 12px;
    margin-top: 8px;
  }
  .radio-label-selected {
    font-size: 1.2rem;
    padding: 12px;
  }
}
