@charset "utf-8";

/* ── CONTACT ── */
div#mfp_hidden {
	overflow: hidden;
	width: 1px;
	height: 1px;
	padding: 0px;
	margin: 0px;
}
div#mfp_hidden input {
	margin: 10px;
}
div#mfp_loading_screen {
	z-index: 20000;
	opacity: 0.8;
	display: none;
	background-color: #000;
	position: absolute;
}
div#mfp_loading {
	z-index: 20001;
	position: absolute;
	display: none;
	width: 40px;
	height: 40px;
	background-image: url(_images/mfp_loading.gif);
}
div#mfp_loading_screen {
	z-index: 20000;
	opacity: 0.8;
	display: none;
	background-color: #000;
	position: absolute;
}
div#mfp_overlay {
	position: absolute;
	display: none;
	z-index: 10001;
}
div#mfp_overlay_inner {
	background-color: #FFF;
	padding: 15px;
	margin: 0px auto;
	border-radius: 5px;
	box-shadow: 0px 0px 10px #000;
	width: 640px;
	max-width: 90%;
}
div#mfp_overlay_background {
	background-color: #000;
	position: absolute;
	display: none;
	z-index: 10000;
}
div#mfp_loading_screen {
	z-index: 20000;
	opacity: 0.8;
	display: none;
	background-color: #000;
	position: absolute;
}
#contact {
  padding-top: 120px;
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-header .label {
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.contact-header .label::before {
  display: none;
}

.contact-header .label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.contact-header .sub-text {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.8;
  text-align: left;
}

.contact-form-wrap {
  background: var(--card);
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-label-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.form-label {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.badge-required {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge-optional {
  background: var(--muted);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.mfp_err {
  color: #d9534f;
  font-size: 13px;
  margin-top: 8px;
  display: block;
}

.form-control {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
  font-family: var(--font-body);
  font-size: 16px; /* Prevents iOS zoom */
  color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
}

input[type="date"].form-control {
  cursor: pointer;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 63, 46, 0.1);
  background: #fff;
}

textarea.form-control {
  resize: none;
  min-height: 100px;
  width: 100% !important;
}

.form-check-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.form-check-input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.form-check-label {
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}
.form-note a {
  color: var(--accent2);
  text-decoration: underline;
}
.form-note a:hover {
  text-decoration: none;
}

.form-submit {
  text-align: center;
  margin-top: 32px;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 16px 20px;
}

@media screen and (min-width: 768px) {
  #contact {
    padding-top: 160px;
  }

  .contact-header {
    margin-bottom: clamp(40px, 6vw, 60px);
  }

  .contact-header .sub-text {
    font-size: 16px;
    text-align: center;
  }

  .contact-form-wrap {
    padding: clamp(30px, 6vw, 60px);
    border-radius: 16px;
  }

  .form-group {
    margin-bottom: clamp(24px, 4vw, 32px);
  }

  .form-label {
    font-size: 16px;
  }

  .badge-required, .badge-optional {
    font-size: 12px;
  }

  .form-control {
    padding: 16px;
  }

  textarea.form-control {
    min-height: 120px;
  }

  .form-check-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  .form-check-label {
    font-size: 16px;
  }

  .form-note {
    font-size: 13px;
  }

  .form-submit {
    margin-top: clamp(32px, 5vw, 48px);
  }

  .btn-submit {
    max-width: 320px;
    font-size: 18px;
    padding: 20px 40px;
  }
}

/* --- MFP CONFIRMATION SCREEN --- */
div#mfp_phase_confirm {
  display: none;
}

div#mfp_phase_confirm_inner {
  width: 100%;
}

div#mfp_phase_confirm_inner h4 {
  display: none; /* Hide generic title, context is clear */
}

table#mfp_confirm_table {
  display: block;
  width: 100%;
  border-collapse: collapse;
}

table#mfp_confirm_table tbody {
  display: block;
  width: 100%;
}

table#mfp_confirm_table tr {
  display: block;
  margin-bottom: clamp(24px, 4vw, 32px);
  border: none !important;
}

table#mfp_confirm_table th {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
  width: 100% !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

/* Default Required Badge */
table#mfp_confirm_table th::before {
  content: "必須";
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Override Optional Badges */
table#mfp_confirm_table th#th_basic_auth::before,
table#mfp_confirm_table th#th_delivery_date::before,
table#mfp_confirm_table th#th_remarks::before {
  content: "任意";
  background: var(--muted);
}

/* Inject Phone Note */
table#mfp_confirm_table th#th_phone::after {
  content: "※電話番号がない場合は「なし」と入力してください。";
  display: block;
  width: 100%;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-top: -4px;
}

/* Mock Input Field Box */
table#mfp_confirm_table td {
  display: block;
  width: 100% !important;
  padding: 14px;
  border: 1px solid var(--border) !important;
  border-radius: 8px;
  background: #fafafa;
  font-size: 16px;
  color: var(--ink);
  min-height: 54px;
  word-break: break-all;
  white-space: pre-wrap;
}

/* Buttons */
.mfp_buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: clamp(32px, 5vw, 48px);
}

button#mfp_button_send,
button#mfp_button_cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

button#mfp_button_send {
  background: var(--accent);
  color: #fff;
}

button#mfp_button_send:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

button#mfp_button_cancel {
  background: var(--muted);
  color: #fff;
  text-decoration: none;
}

button#mfp_button_cancel:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

@media screen and (min-width: 768px) {
  .mfp_buttons {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }
  
  button#mfp_button_send,
  button#mfp_button_cancel {
    max-width: 320px;
    font-size: 18px;
    padding: 20px 40px;
  }
}
