/* =====================================================
   REVIEW MODAL - PROFESSIONAL EDITION
===================================================== */

/* transform影響の完全遮断（WordPressテーマ対策） */
.modal,
.modal * {
  transform: none !important;
}

.modal {
  font-family:
    "Inter",
    "Noto Sans JP",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    "Yu Gothic UI",
    Meiryo,
    sans-serif;

}

/* -----------------------------
   MODAL BASE
----------------------------- */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.65);
  overflow-y: auto;
}

.modal.is-open {
  display: block;
}

body.modal-open {
  overflow: hidden;
}

/* -----------------------------
   MODAL CONTENT
----------------------------- */

.modal-content {
  background: #fff;
  margin: 48px auto;
  width: 640px;
  max-width: calc(100% - 32px);
  max-height: calc(100vh - 96px);
  border-radius: 10px;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  animation: modalFadeUp .25s ease;
}

@keyframes modalFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -----------------------------
   HEADER / FOOTER
----------------------------- */

.modal-header {
  padding: 18px 20px;
  text-align: center;
  font-size: 15px;
  /*font-weight: 600;*/
  border-bottom: 1px solid #eee;
  letter-spacing: 0.04em;
}

.modal-footer {
  padding: 14px 20px;
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: #888;
  border-top: 1px solid #eee;
}

/* close */
.close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 26px;
  cursor: pointer;
  color: #aaa;
  line-height: 1;
}

.close:hover {
  color: #000;
}

/* -----------------------------
   FORM
----------------------------- */

form {
  padding: 20px 22px 10px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 13px;
  /*font-weight: 600;*/
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

/* input / textarea / select 統一 */
.form-group input[type="text"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

/* focus */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #999;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}

/* -----------------------------
   RATING
----------------------------- */

.rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.rating input {
  display: none;
}

.rating label.star {
  font-size: 28px;
  color: #ddd;
  cursor: pointer;
  line-height: 1;
  transition: color .15s;
}

.rating label.star:hover,
.rating label.star:hover ~ label.star,
.rating input:checked ~ label.star {
  color: #ffc107;
}

/* -----------------------------
   SUBMIT BUTTON
----------------------------- */

/* クラス指定ボタンを尊重しつつ中央寄せ */
.modal-content button[type="submit"] {
  display: block;
  margin: 30px auto 0;
  text-align: center;
}

/* 幅指定が無い場合の保険 */
.modal-content button[type="submit"]:not([style*="width"]) {
  min-width: 240px;
}

/* disabled / sending */
.modal-content button[type="submit"][disabled] {
  opacity: .6;
  cursor: not-allowed;
}

/* -----------------------------
   RESULT / MESSAGE
----------------------------- */

#result {
  display: none;
  padding: 24px 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: #333;

  background: transparent;
  border: none;
  box-shadow: none;

  white-space: pre-line;
}

/* SP微調整 */
@media (max-width: 768px) {
  #result {
    font-size: 13px;
    padding: 20px 16px;
  }

  #result::before {
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
  }
}

/* -----------------------------
   RESPONSIVE
----------------------------- */

@media (max-width: 768px) {

  .modal-content {
    margin: 20px auto;
    max-height: calc(100vh - 40px);
  }

  form {
    padding: 18px 16px 8px;
  }

  .rating label.star {
    font-size: 24px;
  }
}