/* =====================================
   コメント確認モーダル＋サンクス＋スピナー
   ===================================== */

.cc-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: inherit;
}
.cc-modal.active { display: flex; }

.cc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cc-modal.active .cc-overlay { opacity: 1; }

/* ===== コメント確認モーダル内スクロール対応 ===== */
.cc-modal-content {
  position: relative;
  background: #f2efe7;
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 520px;
  width: 90%;
  max-height: 80vh; /* 画面の8割までに制限 */
  overflow: hidden;  /* 外側にはみ出させない */
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  animation: cc-fadeIn 0.25s ease-out;
  z-index: 1;
}

/* コメント本文エリアのみスクロール可能に */
.cc-modal-body {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 4px; /* スクロールバーのための余白 */
  scrollbar-width: thin;
  scrollbar-color: #bbb transparent;
}

/* スクロールバーの装飾（Chrome/Safari用） */
.cc-modal-body::-webkit-scrollbar {
  width: 6px;
}
.cc-modal-body::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}
.cc-modal-body::-webkit-scrollbar-thumb:hover {
  background-color: #aaa;
}

@keyframes cc-fadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cc-title { font-size: 1.3rem; margin-bottom: 14px; text-align: center; color: var(--color_text_main, #340e12); font-weight: 600; }
.cc-modal-body p { margin: 8px 0; line-height: 1.6; color: #333; }
.cc-note { margin-top: 14px; color: #900; font-size: 1em; border-top: 1px dashed #ddd; padding-top: 10px; }
.cc-modal-actions { display: flex; justify-content: space-between; margin-top: 22px; }
.cc-btn { flex: 1; padding: 10px 14px; border-radius: 8px; border: none; cursor: pointer; font-size: 1em; transition: opacity 0.25s; }
.cc-btn + .cc-btn { margin-left: 12px; }
.cc-btn-edit { background: #ddd; color: #333; }
.cc-btn-send { background: var(--color_main, #340e12); color: #fff; }
.cc-btn:hover { opacity: 0.85; }

/* ========================================
   返信タイトル（◯◯ さんへの返信コメント）
   ======================================== */
.comment-reply-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color_text_main, #340e12);
  margin-bottom: 0.8em;
  text-align: center;
}
.comment-reply-title small {
  display: block;
  margin-top: 0.4em;
  font-size: 0.9rem;
}
#cancel-comment-reply-link {
  color: #666;
  text-decoration: underline;
}
#cancel-comment-reply-link:hover {
  color: var(--color_main, #340e12);
}

.p-commentArea__title.-for-write {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color_text_main, #340e12);
}
.p-commentArea__title.-for-write small {
  display: block;
  margin-top: 0.4em;
  font-size: 0.9rem;
}



/* ==============================
   スマホで文字を少し大きくする
   （読みやすさ＋ズーム防止両立）
   ============================== */
@media (max-width: 768px) {
  html {
    font-size: 15px; /* ← 通常16pxより6%アップ */
  }
}


/* ===== ローディングスピナー ===== */
.cc-loading {
  position: fixed; inset: 0; display: none;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.7); z-index: 10000;
}
.cc-loading.active { display: flex; }
.cc-spinner {
  width: 48px; height: 48px;
  border: 5px solid #ccc;
  border-top-color: var(--color_main, #340e12);
  border-radius: 50%;
  animation: cc-spin 0.9s linear infinite;
}
@keyframes cc-spin { to { transform: rotate(360deg); } }

/* ===== サンクスモーダル ===== */
.cc-thanks-content { text-align: center; }
.cc-thanks-text { line-height: 1.7; color: #444; margin-bottom: 20px; }

/* ===== スマホ入力ズーム防止 ===== */
input, textarea {
  font-size: 16px !important; /* iOSズーム対策 */
}
