/* ==========================================================================
   contact.html — dedicated page styles (independent of import.css)
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #222;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: #e84a52;
  text-decoration: underline;
}

a:hover {
  opacity: 0.85;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.contact-page {
  padding: 48px 0 80px;
  background: #fff;
}

.contact-page__inner {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
}

.contact-page__title {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
  text-align: center;
}

.contact-page__lead {
  margin: 0 0 36px;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

.contact-page__lead p + p {
  margin-top: 0.4em;
}

.mailform_required {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 3px;
  background: #e84a52;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: middle;
}

.contact-page__lead .mailform_required {
  margin-left: 0;
  margin-right: 4px;
}

/* Form rows */
.contactform_mailform_item {
  margin-bottom: 28px;
}

.contactform_mailform_item_title h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #222;
}

.contact-topic-hint {
  margin: -4px 0 14px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #888;
}

.contactform_mailform_item_input {
  width: 100%;
}

/* Topic chips */
.contact-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-topic {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px 12px 42px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #333;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.contact-topic input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.contact-topic span {
  display: block;
}

.contact-topic::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  border: 1.5px solid #c8c8c8;
  border-radius: 4px;
  background: #fff;
  transform: translateY(-50%);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.contact-topic::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 20px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: translateY(-60%) rotate(45deg);
  transition: opacity 0.15s ease;
}

@media (hover: hover) {
  .contact-topic:hover {
    border-color: #f0a0a6;
    background: #fff8f8;
  }
}

.contact-topic:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(232, 74, 82, 0.18);
}

.contact-topic:has(input:checked) {
  border-color: #e84a52;
  background: #fff5f6;
  color: #222;
  box-shadow: inset 0 0 0 1px #e84a52;
}

.contact-topic:has(input:checked)::before {
  border-color: #e84a52;
  background: #e84a52;
}

.contact-topic:has(input:checked)::after {
  opacity: 1;
}

/* mfp label.css / input.css より特異度を上げて上書き */
form#mailformpro
  .contactform_mailform_item--radio
  .contactform_mailform_item_input
  label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  cursor: pointer;
}

form#mailformpro
  .contactform_mailform_item--radio
  .contactform_mailform_item_input
  input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #c8c8c8;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  resize: none;
  vertical-align: middle;
  cursor: pointer;
}

form#mailformpro
  .contactform_mailform_item--radio
  .contactform_mailform_item_input
  input[type="radio"]:checked {
  border-color: #e84a52;
  background-image: radial-gradient(
    circle,
    #e84a52 0 55%,
    transparent 56%
  );
}

form#mailformpro .contactform_mailform_item_input input[type="text"],
form#mailformpro .contactform_mailform_item_input input[type="tel"],
form#mailformpro .contactform_mailform_item_input input[type="email"],
form#mailformpro .contactform_mailform_item_input textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

form#mailformpro .contactform_mailform_item_input textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  /* ブラウザ既定の inset 感を打ち消し、他入力と揃える */
  field-sizing: fixed;
}

form#mailformpro .contactform_mailform_item_input input[type="text"]:focus,
form#mailformpro .contactform_mailform_item_input input[type="tel"]:focus,
form#mailformpro .contactform_mailform_item_input input[type="email"]:focus,
form#mailformpro .contactform_mailform_item_input textarea:focus {
  outline: none;
  border-color: #e84a52;
  box-shadow: 0 0 0 3px rgba(232, 74, 82, 0.15);
}

form#mailformpro .contactform_mailform_item--radio .contactform_mailform_item_input {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.mfp_err {
  margin-top: 6px;
  color: #c00;
  font-size: 13px;
  line-height: 1.5;
}

.contact-page__privacy {
  display: flex;
  justify-content: center;
  margin: 36px 0 28px;
}

form#mailformpro .contact-privacy-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  cursor: pointer;
  text-align: left;
}

form#mailformpro .contact-privacy-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #c8c8c8;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  resize: none;
  vertical-align: middle;
  cursor: pointer;
}

form#mailformpro .contact-privacy-check input[type="checkbox"]:checked {
  border-color: #e84a52;
  background: #e84a52
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M1.5 5.2 4.6 8.2 10.5 1.8'/%3E%3C/svg%3E")
    center / 12px 10px no-repeat;
}

.contact-privacy-check a {
  color: #e84a52;
}

/* Submit */
.contactform_mailform_submit {
  margin-top: 8px;
  text-align: center;
}

.contactform_mailform_submit-btn {
  --submit-ink: #e84a52;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
  width: min(360px, 100%);
  min-height: 56px;
  padding: 14px 24px;
  border: 1px solid var(--submit-ink);
  border-radius: 999px;
  background: linear-gradient(90deg, #fc6067 0%, #f48491 100%);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.9s cubic-bezier(0.09, 0.99, 0.15, 0.99);
}

.contactform_mailform_submit-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.09, 0.99, 0.15, 0.99);
  pointer-events: none;
}

@media (hover: hover) {
  .contactform_mailform_submit-btn:hover {
    color: var(--submit-ink);
  }
  .contactform_mailform_submit-btn:hover::before {
    transform: scaleX(1);
  }
}

/* Phone CTA */
.contact-phone {
  margin-top: 64px;
  padding: 32px 24px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
  text-align: center;
}

.contact-phone__label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #555;
}

.contact-phone__number {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
  text-decoration: none;
}

.contact-phone__number:hover {
  opacity: 1;
  color: #e84a52;
}

.contact-phone__hours {
  margin: 10px 0 0;
  font-size: 13px;
  color: #777;
}

@media (max-width: 767px) {
  .contact-page {
    padding: 32px 0 56px;
  }

  .contact-page__inner {
    width: calc(100% - 32px);
  }

  .contact-page__title {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .contact-page__lead {
    margin-bottom: 28px;
    font-size: 14px;
  }

  .contactform_mailform_item {
    margin-bottom: 24px;
  }

  .contact-topic-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-topic {
    min-height: 46px;
    font-size: 13.5px;
  }

  form#mailformpro .contactform_mailform_item--radio .contactform_mailform_item_input {
    flex-direction: column;
    gap: 10px;
  }

  form#mailformpro .contact-privacy-check {
    font-size: 13px;
  }

  .contactform_mailform_submit-btn {
    font-size: 15px;
    min-height: 52px;
  }

  .contact-phone {
    margin-top: 48px;
    padding: 24px 16px;
  }

  .contact-phone__number {
    font-size: 22px;
  }
}
