/* ==========================================================================
   Contact Page (contact.html)
   ========================================================================== */

/* ==========================================================================
   Contact Info Cards (4枚カード)
   ========================================================================== */
.contact-info-section {
  padding: 80px 0 0;
  background: #fff;
}
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.contact-info-card {
  background: #f7f7f7;
  padding: 32px 28px;
  border-top: 3px solid #0a0a0a;
}
.cic-label {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #666;
  margin-bottom: 12px;
}
.cic-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0a0a0a;
  margin-bottom: 16px;
  line-height: 1.4;
}
.contact-info-card p {
  font-size: 13px;
  line-height: 1.85;
  color: #444;
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */
.contact-form-section {
  padding: 100px 0;
  background: #fff;
}
.contact-form-h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-top: 16px;
  margin-bottom: 24px;
  color: #0a0a0a;
}
.contact-form-intro {
  font-size: 15px;
  line-height: 2;
  color: #444;
  margin-bottom: 56px;
}
.req-note {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
}

/* Form block (cards) */
.contact-form-block {
  display: block;
}
.form-section {
  background: #fafafa;
  padding: 40px;
  margin-bottom: 24px;
  border-left: 3px solid #0a0a0a;
}
.form-section-label {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #0a0a0a;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.form-row:last-child,
.form-section .form-group:last-child {
  margin-bottom: 0;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}
.form-group:last-child {
  margin-bottom: 0;
}
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.req {
  display: inline-block;
  background: #d22;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 6px;
  letter-spacing: 0.1em;
  vertical-align: 2px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0;
  color: #0a0a0a;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #0a0a0a;
}
.form-textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.7;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230a0a0a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ==========================================================================
   File Upload UI
   ========================================================================== */
.file-upload-info {
  background: #fff;
  border: 1px dashed #999;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.file-upload-info-title {
  font-size: 13px;
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.file-upload-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.file-upload-info li {
  font-size: 12.5px;
  line-height: 1.85;
  color: #444;
  padding-left: 14px;
  position: relative;
}
.file-upload-info li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: #0a0a0a;
}
.file-upload-info strong {
  color: #0a0a0a;
}

/* File input */
.file-input-wrapper {
  position: relative;
}
.form-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.file-input-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px dashed #999;
  padding: 36px 24px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  margin-bottom: 0;
}
.file-input-label:hover,
.file-input-label.dragover {
  border-color: #0a0a0a;
  background: #f0f0f0;
}
.file-input-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #0a0a0a;
  color: #fff;
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 12px;
  border-radius: 50%;
}
.file-input-text {
  font-size: 14px;
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 4px;
}
.file-input-hint {
  font-size: 12px;
  color: #666;
}

/* File list */
.file-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.file-list:empty {
  margin: 0;
}
.file-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e5e5e5;
  margin-bottom: 8px;
  font-size: 13px;
}
.file-list-item .file-icon {
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 700;
  background: #0a0a0a;
  color: #fff;
  padding: 4px 8px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.file-list-item .file-name {
  flex: 1;
  font-size: 13px;
  color: #0a0a0a;
  word-break: break-all;
}
.file-list-item .file-size {
  font-size: 12px;
  color: #666;
  font-family: 'Archivo', sans-serif;
  flex-shrink: 0;
}
.file-list-item .file-remove {
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
}
.file-list-item .file-remove:hover {
  color: #d22;
}
.file-list-item.error {
  border-color: #d22;
  background: #fef0f0;
}
.file-list-item.error .file-icon {
  background: #d22;
}
.file-list-item .file-error-msg {
  display: block;
  font-size: 11px;
  color: #d22;
  margin-top: 2px;
}

.file-size-summary {
  font-size: 12px;
  color: #666;
  margin-top: 12px;
  font-family: 'Archivo', sans-serif;
}
.file-size-summary.warning {
  color: #d22;
}

/* Checkbox */
.form-checkbox-group {
  margin-top: 16px;
}
.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1.7;
  color: #333;
}
.form-checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #0a0a0a;
  cursor: pointer;
}
.form-checkbox-label strong {
  color: #0a0a0a;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */
.form-submit-wrapper {
  text-align: center;
  margin-top: 16px;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #0a0a0a;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 22px 56px;
  border: 1px solid #0a0a0a;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
  min-width: 320px;
}
.form-submit:hover {
  background: #fff;
  color: #0a0a0a;
}
.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #0a0a0a;
  color: #fff;
}
.form-submit.loading {
  pointer-events: none;
}
.form-submit.loading .submit-text::after {
  content: '...';
  display: inline-block;
  animation: dots 1.5s steps(4, end) infinite;
}
@keyframes dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}
.submit-arrow {
  font-family: 'Archivo', sans-serif;
  font-size: 18px;
}

.form-note {
  font-size: 12px;
  color: #666;
  line-height: 1.85;
  margin-top: 20px;
}

/* Form status (errors / success) */
.form-status {
  margin-top: 24px;
  padding: 0;
}
.form-status:not(:empty) {
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.7;
}
.form-status.error {
  background: #fef0f0;
  border-left: 3px solid #d22;
  color: #a11;
}
.form-status.success {
  background: #f0f9f0;
  border-left: 3px solid #2a8;
  color: #186;
}

/* ==========================================================================
   NDA Flow Section
   ========================================================================== */
.nda-flow-section {
  padding: 100px 0;
  background: #0a0a0a;
  color: #fff;
}
.nda-flow-section .section-label {
  color: #fff;
}
.nda-flow-section .section-label::before {
  background: #fff;
}
.nda-flow-h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-top: 16px;
  margin-bottom: 24px;
  color: #fff;
}
.nda-flow-intro {
  font-size: 15px;
  line-height: 2.1;
  color: rgba(255,255,255,0.8);
  max-width: 880px;
  margin-bottom: 64px;
}
.nda-flow-intro strong {
  color: #fff;
}

.nda-flow-steps {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: nowrap;
  margin-bottom: 64px;
}
.nda-step {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 28px 24px;
  position: relative;
  min-width: 0;
}
.nda-step-num {
  font-family: 'Archivo', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.nda-step-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 12px;
}
.nda-step-body p {
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(255,255,255,0.75);
}
.nda-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo', sans-serif;
  font-size: 24px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
  width: 24px;
}

/* Security notes */
.nda-security-notes {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 40px 48px;
}
.nda-security-notes h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  letter-spacing: 0.02em;
}
.nda-security-notes ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}
.nda-security-notes li {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255,255,255,0.8);
  padding-left: 16px;
  position: relative;
}
.nda-security-notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1px;
  background: #fff;
}
.nda-security-notes strong {
  color: #fff;
  font-weight: 600;
  display: inline-block;
  margin-right: 6px;
}

/* ==========================================================================
   Alt Contact Section
   ========================================================================== */
.alt-contact-section {
  padding: 100px 0;
  background: #fafafa;
}
.alt-contact-h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-top: 16px;
  margin-bottom: 48px;
  color: #0a0a0a;
}
.alt-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.alt-contact-card {
  background: #fff;
  padding: 36px 32px;
  border-top: 3px solid #0a0a0a;
}
.acc-label {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #666;
  margin-bottom: 12px;
}
.acc-value {
  font-family: 'Archivo', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  word-break: break-all;
}
.alt-contact-card p {
  font-size: 13px;
  line-height: 1.85;
  color: #444;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .contact-info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nda-flow-steps {
    flex-wrap: wrap;
  }
  .nda-step {
    flex: 1 1 calc(50% - 28px);
    min-width: 240px;
  }
  .nda-step-arrow {
    display: none;
  }
  .nda-security-notes ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-info-section {
    padding: 56px 0 0;
  }
  .contact-form-section {
    padding: 64px 0;
  }
  .contact-form-h2 {
    font-size: 22px;
  }
  .contact-form-intro {
    font-size: 13.5px;
    line-height: 1.95;
    margin-bottom: 40px;
  }
  .form-section {
    padding: 28px 24px;
  }
  .form-section-label {
    margin-bottom: 22px;
    padding-bottom: 12px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }
  .form-row .form-group {
    margin-bottom: 20px;
  }
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px; /* iOSズーム回避 */
    padding: 12px 14px;
  }
  .file-input-label {
    padding: 28px 16px;
  }
  .form-submit {
    width: 100%;
    min-width: 0;
    padding: 18px 24px;
    font-size: 15px;
  }
  .nda-flow-section {
    padding: 64px 0;
  }
  .nda-flow-h2 {
    font-size: 22px;
  }
  .nda-flow-intro {
    font-size: 13.5px;
    line-height: 1.95;
    margin-bottom: 40px;
  }
  .nda-step {
    flex: 1 1 100%;
    padding: 24px 20px;
  }
  .nda-step-num {
    font-size: 28px;
    margin-bottom: 12px;
  }
  .nda-step-body h3 {
    font-size: 15px;
    margin-bottom: 10px;
  }
  .nda-security-notes {
    padding: 28px 24px;
  }
  .nda-security-notes h3 {
    font-size: 14px;
  }
  .nda-security-notes li {
    font-size: 12.5px;
  }
  .alt-contact-section {
    padding: 64px 0;
  }
  .alt-contact-grid {
    grid-template-columns: 1fr;
  }
  .alt-contact-card {
    padding: 28px 24px;
  }
  .acc-value {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .contact-info-card {
    padding: 24px 20px;
  }
  .cic-title {
    font-size: 18px;
  }
  .form-section {
    padding: 24px 18px;
  }
  .file-upload-info {
    padding: 16px 18px;
  }
  .file-list-item {
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .file-list-item .file-name {
    flex: 1 1 100%;
    order: 2;
    margin-top: 4px;
  }
  .nda-step {
    padding: 20px 18px;
  }
}
