
.m3sf {
  --m3sf-accent: #26b8ba;          
  --m3sf-ink: #121f32;
  --m3sf-chip-off: #a4a4a5;        
  --m3sf-chip-on: linear-gradient(142.5deg, #83d6bd 0%, #0066cc 100%);
  --m3sf-choice: #e5e5e5;

  box-sizing: border-box;
  width: 450px;
  max-width: 100%;

  min-height: 374px;
  padding: 33px 40px 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
  color: var(--m3sf-ink);

  font-family: 'ヒラギノ角ゴ W6 JIS2004','M3-W6', 'M3-W6', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .02em;
  text-align: left;
}
.m3sf *,
.m3sf *::before,
.m3sf *::after { box-sizing: border-box; }
.m3sf p,
.m3sf li,
.m3sf label,
.m3sf span,
.m3sf button,
.m3sf input {
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.m3sf-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.m3sf-sub::before,
.m3sf-sub::after {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url(/assets/step-form/slash.svg) no-repeat center / 100% 100%;
  mask: url(/assets/step-form/slash.svg) no-repeat center / 100% 100%;
}
.m3sf-sub::before { margin-right: 5px; }
.m3sf-sub::after { margin-left: 5px; transform: scaleX(-1); }
.m3sf-sub em {
  padding: 0 2px;
  font-family: Roboto, 'ヒラギノ角ゴ W6 JIS2004','M3-W6', 'M3-W6', sans-serif;
  font-size: 25px;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
}

.m3sf-head {
  margin: 5px 0 0;
  color: var(--m3sf-accent);
  font-size: 24px;
  line-height: 1.6;
  text-align: center;
}

.m3sf-steps {
  display: flex;
  width: 100%;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.m3sf-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  background: var(--m3sf-chip-off);
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;

  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
}
.m3sf-chip:nth-child(1) {
  flex-grow: 129;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}
.m3sf-chip:nth-child(2) { flex-grow: 121; margin-left: -8px; }
.m3sf-chip:nth-child(3) {
  flex-grow: 120;
  margin-left: -8px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 13px 50%);
}
.m3sf-chip.is-current { background: var(--m3sf-chip-on); }

.m3sf-panel[hidden] { display: none; }
.m3sf-q {
  margin: 25px 0 0;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.m3sf-radios {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 23px;
}
.m3sf-radios label { flex: 1 1 0; min-width: 0; max-width: 180px; margin: 0; cursor: pointer; }
.m3sf-radios input { position: absolute; width: 0; height: 0; opacity: 0; }
.m3sf-radios span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 66px;
  padding: 0 8px;
  border-radius: 99px;
  background: var(--m3sf-choice);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
  color: #000;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  transition: background .15s ease, color .15s ease;
}

.m3sf-radios span::before {
  content: '';
  flex: none;
  width: 28px;
  height: 28px;
  background: currentColor;
  -webkit-mask: url(/assets/step-form/check.svg) no-repeat center / 100% 100%;
  mask: url(/assets/step-form/check.svg) no-repeat center / 100% 100%;
}
.m3sf-radios label:hover span { background: #dcdcdc; }
.m3sf-radios input:checked + span { background: var(--m3sf-accent); color: #fff; }
.m3sf-radios input:focus-visible + span { outline: 2px solid var(--m3sf-accent); outline-offset: 2px; }

.m3sf-field { margin: 18px 0 0; }
.m3sf-label {
  display: block;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}
.m3sf-req {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 3px;
  background: #d8483f;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0;
  vertical-align: 2px;
}
.m3sf input[type='text'],
.m3sf input[type='email'],
.m3sf input[type='tel'] {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 6px;
  padding: 8px 12px;
  border: 1px solid #c9ced6;
  border-radius: 6px;
  background: #f7f8fa;
  color: var(--m3sf-ink);

  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.m3sf input::placeholder { color: #9aa3b0; font-weight: 400; }
.m3sf input:focus-visible { outline: 2px solid var(--m3sf-accent); outline-offset: 1px; }

.m3sf-agree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.m3sf-agree input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--m3sf-accent); }
.m3sf-agree a { color: var(--m3sf-accent); text-decoration: underline; }

.m3sf-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.m3sf button { font-family: inherit; cursor: pointer; }
.m3sf-next,
.m3sf-submit {
  width: 100%;
  max-width: 320px;
  min-height: 56px;
  padding: 8px 16px;
  border: none;
  border-radius: 99px;
  background: var(--m3sf-accent);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
  color: #fff;
  font-size: 17px;
  line-height: 1.4;
}
.m3sf-next[hidden] { display: none; }
.m3sf-next[disabled],
.m3sf-submit[disabled] { opacity: .55; cursor: not-allowed; }
.m3sf-prev {
  min-width: 140px;
  min-height: 40px;
  padding: 4px 20px;
  border: 1px solid #c9ced6;
  border-radius: 24px;
  background: #fff;
  color: #6b7482;
  font-size: 14px;
  line-height: 1.4;
}

.m3sf-err {
  margin: 14px 0 0;
  padding: 8px 12px;
  border: 1px solid #e7b7bb;
  border-radius: 4px;
  background: #fdecec;
  color: #a3232f;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}
.m3sf-err[hidden] { display: none; }

@media screen and (max-width: 690px) {
  .m3sf { padding: 26px 20px 30px; }
}

@media screen and (max-width: 400px) {
  .m3sf-head { font-size: 20px; }
  .m3sf-chip { font-size: 12px; }
  .m3sf-radios span { gap: 8px; font-size: 14px; }
  .m3sf-radios span::before { width: 24px; height: 24px; }
}

@media screen and (max-width: 345px) {
  .m3sf-chip { font-size: 11px; letter-spacing: 0; }
}
