/*NISSYO Contact: shared PC/SP form stylesheet.
   - Edit --ns-panel-head-bg to change 01/02/03 section heading background.
   - NISSYO brand color: --ns-teal (#00A5D5).
   - Loaded by both contact/ and sp/contact/ (including complete.php).
   - Website-wide header/nav styles are maintained separately in style.css/style_sp.css.*/

.ns-contact {
  margin-top: 0;
  --ns-ink: #193650;
  --ns-teal: #00a5d5;
  --ns-mint: #00a5d5;
  --ns-muted: #586c79;
  --ns-edge: #dbe7ec;
  --ns-paper: #fff;
  --ns-panel-head-bg: #C6E8F4;
  --ns-panel-head-border: #ACD8E8;
  color: var(--ns-ink);
  font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
  line-height: 1.65;
  font-size: 15px;
  box-sizing: border-box;
}

.ns-contact *, .ns-contact *::before, .ns-contact *::after {
  box-sizing: inherit;
}

.ns-contact .ns-hero {
  padding: 20px 28px 19px;
  border-radius: 12px;
  background: linear-gradient(105deg,#00a5d5 0%,#00a5d5 72%,#0096c7 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
  margin: 8px 0 24px;
  min-height: 0;
  box-shadow: 0 6px 18px rgba(0,119,161,.10);
}

.ns-contact .ns-hero:after {
  content: "";
  position: absolute;
  right: -40px;
  top: -115px;
  width: 315px;
  height: 315px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(255,255,255,.055),0 0 0 100px rgba(255,255,255,.035);
  pointer-events: none;
}

.ns-contact .ns-eyebrow {
  letter-spacing: .22em;
  font-size: 11px;
  font-weight: 800;
  opacity: .88;
  margin: 0 0 2px;
}

.ns-contact .ns-hero h1 {
  color: #fff;
  font-size: clamp(23px,3vw,30px);
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: .06em;
  margin: 0 0 5px;
  text-shadow: none;
}

.ns-contact .ns-hero p.ns-summary {
  color: rgba(255,255,255,.94);
  font-size: 13px;
  margin: 0;
  position: relative;
  z-index: 1;
}

.ns-contact .ns-intro {
  color: #546b7a;
  margin: 0 0 20px;
  padding: 0 2px;
  font-size: 14px;
}

.ns-contact .ns-panel {
  background: #fff;
  border: 1px solid var(--ns-edge);
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(18,67,92,.035);
  margin-bottom: 20px;
  overflow: hidden;
}

.ns-contact .ns-panel-head {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--ns-panel-head-bg);
  padding: 15px 22px;
  border-bottom: 1px solid var(--ns-panel-head-border);
}

.ns-contact .ns-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #00a5d5;
  color: white;
  font-size: 12px;
  font-weight: 800;
  flex: none;
}

.ns-contact .ns-panel-head h2 {
  margin: 0;
  color: #224158;
  font-weight: 750;
  font-size: 16px;
  line-height: 1.3;
}

.ns-contact .ns-panel-body {
  padding: 22px 24px 24px;
}

.ns-contact .ns-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #273f51;
}

.ns-contact .ns-required {
  display: inline-block;
  color: #b43d49;
  background: #fff0f0;
  border: 1px solid #f2cfd1;
  font-size: 10px;
  border-radius: 4px;
  line-height: 1.4;
  padding: 2px 6px;
  vertical-align: middle;
  margin-left: 8px;
}

.ns-contact .ns-optional {
  color: #718b99;
  font-size: 11px;
  font-weight: 500;
  margin-left: 8px;
}

.ns-contact .ns-field {
  margin-bottom: 18px;
}

.ns-contact .ns-field:last-child {
  margin-bottom: 0;
}

.ns-contact .ns-field input[type=text], .ns-contact .ns-field input[type=email], .ns-contact .ns-field input[type=tel], .ns-contact .ns-field textarea {
  display: block;
  width: 100%;
  background: #fff;
  color: #203b4d;
  font: inherit;
  border-radius: 8px;
  border: 1px solid #c7d6df;
  padding: 12px 14px;
  min-height: 45px;
  outline: none;
  box-shadow: none;
  transition: border-color .16s,box-shadow .16s;
}

.ns-contact .ns-field textarea {
  resize: vertical;
  min-height: 166px;
}

.ns-contact .ns-field input:focus, .ns-contact .ns-field textarea:focus {
  border-color: #00a5d5;
  box-shadow: 0 0 0 3px rgba(0,165,213,.14);
}

.ns-contact .ns-field input::placeholder, .ns-contact .ns-field textarea::placeholder {
  color: #9aaeb8;
}

.ns-contact .ns-hint {
  display: block;
  color: #778b97;
  font-size: 12px;
  margin-top: 6px;
}

.ns-contact .ns-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ns-contact .ns-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ns-contact .ns-choice {
  position: relative;
  flex: 1 1 170px;
  margin: 0;
  cursor: pointer;
  min-width: 0;
}

.ns-contact .ns-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.ns-contact .ns-choice span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  min-height: 49px;
  color: #335369;
  background: #fbfdfe;
  border: 1px solid #ccdde4;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  transition: background .15s,border-color .15s,box-shadow .15s;
}

.ns-contact .ns-choice span:before {
  content: "";
  width: 17px;
  height: 17px;
  flex: none;
  border: 2px solid #93abb8;
  border-radius: 5px;
  background: #fff;
}

.ns-contact .ns-choice input:checked+span {
  background: #eefaff;
  border-color: #00a5d5;
  color: #007ca4;
  box-shadow: inset 0 0 0 1px rgba(20,154,175,.1);
}

.ns-contact .ns-choice input:checked+span:before {
  content: "✓";
  background: #00a5d5;
  border-color: #00a5d5;
  color: #fff;
  font-size: 12px;
  text-align: center;
  line-height: 14px;
}

.ns-contact .ns-choice input:focus-visible+span {
  outline: 3px solid rgba(0,165,213,.30);
  outline-offset: 2px;
}

.ns-contact .ns-submit-area {
  text-align: center;
  padding: 20px 20px 34px;
}

.ns-contact .ns-privacy {
  color: #607988;
  font-size: 12px;
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto 20px;
}

.ns-contact .ns-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(98deg,#0094c4,#00a5d5);
  color: white;
  font-size: 15px;
  font-weight: 750;
  font-family: inherit;
  padding: 14px 32px;
  min-width: 272px;
  min-height: 52px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,122,149,.2);
  cursor: pointer;
  text-decoration: none;
  transition: filter .15s,transform .15s;
}

.ns-contact .ns-button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  color: #fff;
}

.ns-contact .ns-button:focus-visible {
  outline: 3px solid #8ed7e0;
  outline-offset: 3px;
}

.ns-contact .ns-button:disabled {
  opacity: .65;
  cursor: wait;
}

.ns-contact .ns-button .ns-arr {
  font-size: 19px;
  line-height: 1;
}

.ns-contact .ns-message {
  color: #a82e39;
  background: #fff2f2;
  border: 1px solid #f0c6c9;
  padding: 11px 14px;
  margin: 0 0 18px;
  border-radius: 8px;
  display: none;
  text-align: left;
}

.ns-contact .ns-message[data-visible="true"] {
  display: block;
}

.ns-contact .ns-success {
  padding: 42px 24px 50px;
  text-align: center;
}

.ns-contact .ns-success-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: #e4f7f3;
  border-radius: 50%;
  font-size: 32px;
  color: #087f7d;
  margin-bottom: 14px;
}

.ns-contact .ns-success h2 {
  font-size: 23px;
  margin: 0 0 12px;
  color: #173b52;
}

.ns-contact .ns-success p {
  font-size: 14px;
  color: #536c78;
  margin: 0 auto 12px;
  max-width: 560px;
}

.ns-contact .ns-success .ns-button {
  margin-top: 16px;
}

.ns-contact .ns-honeypot {
  position: absolute;
  left: -10000px;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width:767px) {
  .ns-contact {
    font-size: 14px;
  }

  .ns-contact .ns-hero {
    margin: 5px 0 18px;
    border-radius: 9px;
    padding: 17px 18px 16px;
  }

  .ns-contact .ns-hero h1 {
    font-size: 23px;
  }

  .ns-contact .ns-hero .ns-summary {
    font-size: 12px;
  }

  .ns-contact .ns-intro {
    font-size: 13px;
    line-height: 1.8;
  }

  .ns-contact .ns-panel {
    border-radius: 10px;
    margin-bottom: 14px;
  }

  .ns-contact .ns-panel-head {
    padding: 13px 15px;
  }

  .ns-contact .ns-panel-body {
    padding: 17px 16px 18px;
  }

  .ns-contact .ns-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ns-contact .ns-choice {
    flex: 1 1 100%;
  }

  .ns-contact .ns-submit-area {
    padding: 15px 0 24px;
  }

  .ns-contact .ns-button {
    width: 100%;
    min-width: 0;
  }
}

/*Inline style moved from HTML for easier maintenance.*/

.ns-contact .ns-contact-lead-hint {
  margin: 0 0 14px;
}
