/* ManeCon 申込フォーム（HubSpot に送る自前のフォーム）2026-12-02
   使うページ：/contact/ /counseling/ /fpcounseling/ /entry/ */

.mc-page { max-width: 720px; margin: 0 auto; }
.mc-page .heading + * { margin-top: 40px; }
.mc-lead { line-height: 1.9; }
.mc-lead + .mc-lead { margin-top: 1em; }

.mc-box { margin-top: 32px; padding: 24px; background: #F5F5F5; border-radius: 12px; line-height: 1.8; }
.mc-box__title { font-weight: 700; color: #000; margin-bottom: 8px; }
.mc-box ul { padding-left: 1.2em; list-style: disc; }
.mc-box li + li { margin-top: 4px; }
.mc-box a, .mc-lead a, .mc-note a { color: #0F141A; text-decoration: underline; }

.mc-steps { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; padding: 0; list-style: none; counter-reset: mcstep; }
.mc-steps li { position: relative; display: flex; align-items: center; padding: 14px 16px 14px 56px; border: 1px solid #D9D9D9; border-radius: 12px; line-height: 1.6; counter-increment: mcstep; }
.mc-steps li::before { content: counter(mcstep); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: #0F141A; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
@media (min-width: 768px) { .mc-steps { flex-direction: row; } .mc-steps li { flex: 1; } }

.mc-note { margin-top: 12px; font-size: 0.875em; line-height: 1.7; color: #666; }

.mc-form-wrap { margin-top: 56px; }
.mc-form-title { font-size: 1.25em; font-weight: 700; color: #000; margin-bottom: 24px; }
.mc-form { display: flex; flex-direction: column; gap: 24px; }
.mc-row { display: flex; gap: 16px; }
.mc-row > .mc-field { flex: 1; min-width: 0; }
.mc-field { display: flex; flex-direction: column; gap: 8px; }
.mc-label { font-weight: 700; color: #000; line-height: 1.5; }
.mc-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.mc-tag--req { background: #B52034; color: #fff; }
.mc-tag--opt { background: #E8E8E8; color: #444; }
.mc-help { font-size: 0.875em; color: #666; line-height: 1.6; }

.mc-form input[type="text"], .mc-form input[type="email"], .mc-form input[type="tel"], .mc-form textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: #222;
  background: #fff; border: 1px solid #D9D9D9; border-radius: 8px; box-sizing: border-box; -webkit-appearance: none; appearance: none;
}
.mc-form textarea { min-height: 140px; resize: vertical; line-height: 1.7; }
.mc-form input:focus, .mc-form textarea:focus { outline: 2px solid #0F141A; outline-offset: 0; border-color: #0F141A; }
.mc-form .is-error input, .mc-form .is-error textarea { border-color: #B52034; }

.mc-choices { display: flex; flex-direction: column; gap: 10px; }
.mc-choice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid #D9D9D9; border-radius: 8px; cursor: pointer; line-height: 1.6; }
.mc-choice input { margin-top: 4px; width: 18px; height: 18px; accent-color: #0F141A; flex-shrink: 0; }
.mc-choice small { display: block; color: #666; font-size: 0.8125em; }
.mc-choice:has(input:checked) { border-color: #0F141A; background: #F5F5F5; }
.mc-check { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; cursor: pointer; }
.mc-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: #0F141A; flex-shrink: 0; }

.mc-error { color: #B52034; font-size: 0.875em; line-height: 1.5; }
.mc-error:empty { display: none; }
.mc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.mc-submit { margin-top: 8px; max-width: 360px; width: 100%; align-self: center; }
.mc-submit[disabled] { opacity: .6; cursor: wait; }
.mc-form-msg { color: #B52034; line-height: 1.6; }
.mc-form-msg:empty { display: none; }

.mc-thanks { margin-top: 56px; padding: 28px 24px; border: 1px solid #D9D9D9; border-radius: 12px; line-height: 1.9; }
.mc-thanks[hidden] { display: none; }
.mc-thanks__title { font-size: 1.25em; font-weight: 700; color: #000; margin-bottom: 8px; }
.mc-meeting { margin-top: 24px; }
.mc-meeting .meetings-iframe-container { min-height: 640px; }
.mc-booked { line-height: 1.9; }
.mc-booked p + p { margin-top: 8px; }

@media (max-width: 767px) {
  .mc-row { flex-direction: column; gap: 24px; }
  .mc-box { padding: 20px 16px; }
  /* 2026-12-02 スマホでは予約カレンダーを画面の幅いっぱいに広げる（せまいと左右が見切れるため） */
  /* お礼の枠は、スマホでは左右の線と余白をなくす（画面いっぱいのカレンダーと線が重ならないように） */
  .mc-thanks { padding: 24px 0; border-left: 0; border-right: 0; border-radius: 0; }
  .mc-meeting { width: 100vw; margin-left: calc(50% - 50vw); }
  .mc-meeting iframe { min-width: 0 !important; width: 100% !important; }
  /* 予約が確定したあとの文は、ふつうの幅にもどす */
  .mc-meeting.is-booked { width: auto; margin-left: 0; }
}
