/* 同行者募集掲示板 専用CSS
   - store.css を読み込んだ上で追加で使う
   - 既存のピンクグラデ（#eb5353 → #ff8a80, #e8458b → #f06292）を踏襲
*/

/* === 店舗ページ用CTA（旧LINEボタンの位置に置く） === */
.board-cta-wrap {
  text-align: center;
  padding: 0 16px 16px;
}
.board-cta-sub {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}
.board-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e8458b, #f06292);
  color: #fff;
  padding: 16px 32px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(232, 69, 139, 0.35);
  letter-spacing: 0.02em;
}
.board-cta-badge {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 12px;
  margin-left: 6px;
}

/* === 募集投稿カード === */
.recruit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.recruit-card {
  background: #fff;
  border: 1px solid #f0d4cc;
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
}
.recruit-card-male {
  border-left: 4px solid #4a5bd9;
}
.recruit-card-female {
  border-left: 4px solid #e8458b;
}

.recruit-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 6px;
}
.recruit-time-badge .time-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.recruit-time-tonight .time-dot { background: #4caf50; }
.recruit-time-tomorrow .time-dot { background: #2196f3; }
.recruit-time-future .time-dot { background: #9e9e9e; }
.recruit-time-tonight { color: #2e7d32; }
.recruit-time-tomorrow { color: #1565c0; }
.recruit-time-future { color: #666; }

.recruit-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
}
.recruit-author {
  font-weight: bold;
  color: #333;
}
.recruit-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  background: #f0f0f0;
  color: #666;
}
.recruit-tag-male {
  background: #e3f2fd;
  color: #1565c0;
}
.recruit-tag-female {
  background: #fce4ec;
  color: #c2185b;
}
.recruit-tag-sample {
  background: linear-gradient(135deg, #fff8e1, #fff3e0);
  color: #e65100;
  font-weight: bold;
  border: 1px solid #ffd180;
}

.recruit-message {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* === 募集カード フッター（コメントボタン） === */
.recruit-card-footer {
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
}
.recruit-toggle-comments {
  background: linear-gradient(135deg, #fff5f5, #fff0f6);
  border: 1px solid #f0c0d0;
  color: #c2185b;
  padding: 8px 14px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.recruit-toggle-comments:hover {
  background: linear-gradient(135deg, #ffe0e8, #ffd0e0);
}
.recruit-comment-count {
  font-size: 11px;
  color: #888;
}

/* === コメントエリア === */
.recruit-comments-area {
  margin-top: 12px;
  padding: 12px;
  background: #fafafa;
  border-radius: 8px;
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.comment-item {
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #f0f0f0;
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 12px;
}
.comment-author {
  font-weight: bold;
  color: #333;
}
.comment-time {
  color: #999;
  margin-left: auto;
  font-size: 11px;
}
.comment-text {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.comment-empty {
  text-align: center;
  font-size: 12px;
  color: #999;
  padding: 12px;
}

.recruit-tag-op {
  background: linear-gradient(135deg, #e8458b, #f06292);
  color: #fff;
  font-weight: bold;
}

/* === コメント投稿フォーム === */
.comment-form-wrap {
  border-top: 1px solid #e8e8e8;
  padding-top: 10px;
}
.comment-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  min-height: 60px;
  resize: vertical;
  box-sizing: border-box;
}
.comment-input:focus {
  outline: none;
  border-color: #e8458b;
}
.comment-form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  gap: 8px;
}
.comment-note {
  font-size: 10px;
  color: #999;
}
.comment-submit-btn {
  padding: 6px 16px;
  background: linear-gradient(135deg, #e8458b, #f06292);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  flex-shrink: 0;
}
.comment-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.comment-error {
  margin-top: 6px;
  padding: 6px 10px;
  background: #ffebee;
  border-radius: 6px;
  color: #c62828;
  font-size: 12px;
}

.recruit-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 11px;
  color: #999;
}
.recruit-report-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.recruit-empty {
  text-align: center;
  padding: 24px 16px;
  background: #fafafa;
  border-radius: 12px;
  color: #666;
  font-size: 14px;
}
.recruit-empty-cta {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #e8458b, #f06292);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
}

/* === 18歳確認モーダル === */
.age-verify-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 16px;
}
.age-verify-modal {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
}
.age-verify-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
}
.age-verify-text {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}
.age-verify-warning {
  background: #fff3e0;
  border: 1px solid #ffd180;
  color: #e65100;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 16px;
  line-height: 1.6;
}
.age-verify-buttons {
  display: flex;
  gap: 8px;
}
.age-verify-yes {
  flex: 2;
  padding: 12px;
  background: linear-gradient(135deg, #e8458b, #f06292);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}
.age-verify-no {
  flex: 1;
  padding: 12px;
  background: #f0f0f0;
  color: #666;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  cursor: pointer;
}

/* === 投稿フォーム === */
.board-form {
  background: #fff;
  margin: 16px;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.board-form-section {
  margin-bottom: 20px;
}
.board-form-label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}
.board-form-label-required::after {
  content: " *";
  color: #e8458b;
}
.board-form-help {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
  margin-bottom: 8px;
  line-height: 1.5;
}
.board-form-input,
.board-form-select,
.board-form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  box-sizing: border-box;
}
.board-form-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}
.board-form-input:focus,
.board-form-select:focus,
.board-form-textarea:focus {
  outline: none;
  border-color: #e8458b;
  box-shadow: 0 0 0 2px rgba(232, 69, 139, 0.15);
}
.board-form-row {
  display: flex;
  gap: 8px;
}
.board-form-row > * {
  flex: 1;
}
.board-form-radio-group {
  display: flex;
  gap: 8px;
}
.board-form-radio {
  flex: 1;
  position: relative;
}
.board-form-radio input {
  position: absolute;
  opacity: 0;
}
.board-form-radio label {
  display: block;
  padding: 12px;
  text-align: center;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.board-form-radio input:checked + label {
  background: linear-gradient(135deg, #fff5f5, #fff0f6);
  border-color: #e8458b;
  color: #c2185b;
  font-weight: bold;
}
.board-form-counter {
  text-align: right;
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}
.board-form-counter.over {
  color: #e8458b;
  font-weight: bold;
}
.board-form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}
.board-form-checkbox-row input {
  margin-top: 3px;
  flex-shrink: 0;
}
.board-form-checkbox-row a {
  color: #e8458b;
  text-decoration: underline;
}
.board-form-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #e8458b, #f06292);
  color: #fff;
  border: none;
  border-radius: 28px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(232, 69, 139, 0.35);
}
.board-form-submit:disabled {
  background: #ccc;
  box-shadow: none;
  cursor: not-allowed;
}
.board-form-submit-line {
  background: #06C755;
  box-shadow: 0 4px 16px rgba(6, 199, 85, 0.35);
}
.board-form-notice {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  margin-top: 12px;
}

/* === 店舗選択（投稿フォーム用、検索可能） === */
.store-picker {
  position: relative;
}
.store-picker-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.store-picker-results.hidden { display: none; }
.store-picker-item {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  font-size: 13px;
}
.store-picker-item:hover,
.store-picker-item.active {
  background: #fce4ec;
}
.store-picker-item-area {
  color: #999;
  font-size: 11px;
  margin-left: 8px;
}
.store-picker-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(135deg, #fff5f5, #fff0f6);
  border: 1px solid #e8458b;
  border-radius: 8px;
}
.store-picker-clear {
  background: none;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
}

/* === 掲示板トップのエリアグリッド === */
.board-area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.board-area-card {
  display: block;
  padding: 14px 12px;
  background: #fff;
  border: 1px solid #f0d4cc;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  text-align: center;
}
.board-area-card-name {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
}
.board-area-card-count {
  font-size: 11px;
  color: #999;
}
.board-area-card-count strong {
  color: #e8458b;
  font-size: 16px;
}

/* === 完了画面 === */
.board-thanks {
  text-align: center;
  padding: 32px 16px;
}
.board-thanks-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.board-thanks-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}
.board-thanks-text {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* === ローディング/エラー === */
.board-loading {
  text-align: center;
  padding: 32px 16px;
  color: #999;
  font-size: 13px;
}
.board-error {
  background: #ffebee;
  border: 1px solid #ef9a9a;
  color: #c62828;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  margin: 12px 0;
}

/* レスポンシブ */
@media (max-width: 380px) {
  .board-form { margin: 8px; padding: 16px; }
  .board-area-grid { grid-template-columns: 1fr; }
}
