@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Kosugi+Maru&display=swap');
/**
 * ----------------------------------------------------------------------
 *  {form.css}  –  Secure Contact Form 2025
 *  Copyright (c) 2025 N.designs  All rights reserved.
 *  ライセンス   :  1ドメイン利用  / 再配布・再販・無断転載を禁じます。
 *  サポート窓口 :  https://n-designs.net/contact
 *  ※本ヘッダコメントおよび著作権表示は削除しないでください。（削除はライセンス違反となります）
 * ----------------------------------------------------------------------
 */

/* ===========================================================　
   ★ 変更可能箇所まとめ ★  （カラーのみ変更可）
   :root 内の変更だけでこのCSS全体に反映されます
   フォントや背景色の変更は自己責任で
/*  =========================================================== */


:root {
  --z-modal: 10000;/* モーダル表示用、被りにくい高めの値にしてありますが必要であればこちらを変更 */
  --nd-main: #4CAF50; /* ボタン・フォーカス色 */
  --nd-box: rgba(76, 175, 80, 0.3); /* box-shadow */
  --nd-main-dark: #45a049; /* ボタン hover         */
  --nd-error: #e53935; /* エラー文字・枠       */
}



body {
  font-family: 'Kosugi Maru', sans-serif;
  background-color: #B2F7EF;
  margin: 0;
  padding: 0;
}

/* スマホでのみ改行表示 */
.sp-only {
  display: none;
}

@media screen and (max-width: 768px) {
  .sp-only {
    display: inline;
  }
}

.ndesigns-form-section {
  max-width: 720px;
  margin: 40px auto;
  padding: 40px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.ndesigns-form-title {
  font-size: 1.8rem;
  margin-bottom: 46px;
  text-align: center;
  color: #333;
}

.ndesigns-form-intro {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.ndesigns-form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

label {
  font-weight: bold;
  margin-bottom: 6px;
  color: #444;
}

.ndesigns-input {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ndesigns-input:focus {
  border-color: var(--nd-main);
  box-shadow: 0 0 4px var(--nd-box);
  outline: none;
}

textarea.ndesigns-input {
  resize: vertical;
  min-height: 100px;
}

#ndesigns-message {
  height: 200px;
}

.ndesigns-input.short {
  max-width: 200px;
  width: 100%;
  margin-left: 0;
  margin-right: auto;
}

.ndesigns-required {
  color: var(--nd-error);
  margin-left: 4px;
  font-size: 0.9rem;
}

.ndesigns-checkbox {
  flex-direction: row;
  align-items: center;
}

.ndesigns-submit-button {
  background-color: var(--nd-main);
  color: #fff;
  padding: 12px 20px;
  font-size: 1rem;
  width: 200px;
  margin: 0 auto;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ndesigns-submit-button:hover {
  background-color: var(--nd-main-dark);
}

.ndesigns-error-message {
  color: var(--nd-error);
  font-size: 0.7rem;
  margin-top: 6px;
  margin-left: 2px;
  margin-bottom: 1rem;
}

.ndesigns-input.error,
.ndesigns-form-group.error input,
.ndesigns-form-group.error select,
.ndesigns-form-group.error textarea {
  border-color: var(--nd-error) !important;
  background-color: #fff0f0;
}

.ndesigns-flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.ndesigns-flex-row .ndesigns-form-group {
  flex: 1 1 200px;
  max-width: 320px;
}

@media (max-width: 600px) {
  .ndesigns-form-section {
    padding: 20px;
  }

  .ndesigns-form-title {
    font-size: 1.5rem;
  }

  .ndesigns-submit-button {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }

  .ndesigns-flex-row {
    flex-direction: column;
  }

  .ndesigns-flex-row .ndesigns-form-group {
    flex: 1 1 100%;
    max-width: 100%;
  }

}

.ndesigns-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
}

.ndesigns-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 300px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
}

.ndesigns-modal-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  text-align: center;
}

.ndesigns-confirm-body {
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.ndesigns-confirm-body p {
  margin: 8px 0;
}

.ndesigns-modal-actions {
  text-align: center;
}


.ndesigns-modal-actions button {
  background-color: var(--nd-main);
  color: #fff;
  padding: 10px 16px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 10 10px;
}


.ndesigns-modal-actions button:hover {
  background-color: var(--nd-main-dark);
}


.ndesigns-thanks-message {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 1rem;
}

#ndesigns-thanks-modal .ndesigns-modal-content {
  padding: 40px;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ndesigns-error-icon {
  font-size: 3rem;
  color: #d00000;
  margin-bottom: 1rem;
  text-align: center;
}



#ndesigns-error-modal .ndesigns-modal-content {
  padding: 40px;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

body.ndesigns-modal-open {
  overflow: hidden;
}

.ndesigns-modal[aria-hidden="false"] *:focus {
  outline: 2px solid var(--nd-main);
}

.ndesigns-error-message,
.ndesigns-thanks-message {
  aria-live: assertive;
}

.ndesigns-check-icon {
  width: 80px;
  height: 80px;
  display: block;
  margin: 0 auto 1rem;
}

.ndesigns-checkmark-circle {
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  animation: drawCircle 0.6s ease-out forwards;
}

.ndesigns-checkmark-check {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: drawCheck 0.4s 0.6s ease-out forwards;
}

@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.ndesigns-modal-close {
  background-color: var(--nd-main);
  color: #fff;
  padding: 12px 20px;
  font-size: 1rem;
  width: 200px;
  margin: 0 auto;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: block;
  transition: background-color 0.2s;
}

.ndesigns-modal-close:hover {
  background-color: var(--nd-main-dark);
}

.ndesigns-error-icon {
  width: 80px;
  height: 80px;
  display: block;
  margin: 0 auto 1rem;
  stroke: var(--nd-error);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.ndesigns-error-circle {
  stroke-dasharray: 282.743;
  stroke-dashoffset: 282.743;
  animation: drawErrorCircle 0.6s ease-out forwards;
}

.ndesigns-error-cross {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawErrorCross 0.4s 0.6s ease-out forwards;
}

@keyframes drawErrorCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawErrorCross {
  to {
    stroke-dashoffset: 0;
  }
}

.ndesigns-form-privacy-note {
  text-align: center;
  font-size: 0.75rem;
  color: #666;
  margin-top: -10px;
  margin-bottom: 20px;
  line-height: 1.6;
}


.fail-test-button-wrap {
  text-align: center;
  margin-top: 30px;
}
.fail-test-button-wrap button {
  background: #ff4d4f;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}
.fail-test-button-wrap button:hover {
  opacity: 0.85;
}
