.mw-contact-section {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 0 0 56px;
  background: #f7f9fc;
}

.mw-contact-section .by-article-list {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
  margin-bottom: 0;
  padding: 56px 0 32px;
  background: transparent !important;
  font-family: 'ヒラギノ角ゴ ProN', 'Meiryo', 'メイリオ', sans-serif;
}

.mw-contact-section .by-article-list-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.mw-contact-section__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.mw-contact-alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}

.mw-contact-alert--success {
  background: #eef7ee;
  border: 1px solid #cfe5cf;
  color: #215c2f;
}

.mw-contact-alert--error {
  background: #fff4f4;
  border: 1px solid #f0d4d4;
  color: #8d2d2d;
}

.mw-contact-form {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #dde5f0;
  border-radius: 18px;
  box-sizing: border-box;
}

.mw-contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.mw-contact-field {
  min-width: 0;
}

.mw-contact-field--full {
  margin-top: 18px;
}

.mw-contact-field--honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mw-contact-field__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #1a2f57;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}

.mw-contact-field__label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 8px;
  background: #eef4ff;
  color: #03408c;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.mw-contact-field__input,
.mw-contact-field__textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d9e2ee;
  border-radius: 12px;
  background: #fcfdff;
  color: #24354d;
  font-size: 15px;
  line-height: 1.6;
  box-sizing: border-box;
  appearance: none;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}

.mw-contact-field__input:focus,
.mw-contact-field__textarea:focus {
  border-color: #9fb6d9;
  box-shadow: 0 0 0 4px rgba(3, 64, 140, 0.08);
  background: #ffffff;
}

.mw-contact-field__textarea {
  min-height: 180px;
  resize: vertical;
}

.mw-contact-check {
  margin-top: 18px;
}

.mw-contact-check__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mw-contact-check__input {
  margin: 4px 0 0;
  flex: 0 0 auto;
}

.mw-contact-check__text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  color: #4e5b70;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 500;
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}

.mw-contact-check__label {
  color: #4e5b70;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}

.mw-contact-check__policy-link {
  color: #03408c;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 700;
  transition: opacity 0.2s ease, color 0.2s ease;
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}

.mw-contact-check__policy-link:visited {
  color: #03408c;
}

.mw-contact-check__policy-link:hover {
  color: #0b57b3;
  opacity: 0.9;
}

.mw-contact-actions {
  margin-top: 24px;
  text-align: center;
}

.mw-contact-actions__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 56px;
  padding: 0 28px;
  border: none;
  border-radius: 999px;
  background: #03408c;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}

.mw-contact-actions__button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .mw-contact-section {
    padding: 0 16px 44px;
  }

  
  
  .mw-contact-form {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .mw-contact-form__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mw-contact-field--full {
    margin-top: 14px;
  }

  .mw-contact-field__textarea {
    min-height: 160px;
  }

  .mw-contact-actions__button {
    width: 100%;
    min-width: 0;
  }
}
