/* ページ専用：お問い合わせ（contact.html） */
@media (max-width:768px) {
  .steps li {
    grid-template-columns: 44px 1fr;
    padding: 20px;
  }
}

.steps li {
  position: relative;
  padding: 14px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #A5A5A5;
  transition: color .4s;
}

p.jp-wrap {
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

.cf {
  padding-top: clamp(72px,7vw,112px);
  padding-bottom: clamp(80px,8vw,120px);
  background: radial-gradient(60% 50% at 0% 0%,rgba(228,0,25,.06),transparent 70%);
}

.cf__g {
  display: grid;
  grid-template-columns: minmax(0,4fr) minmax(0,8fr);
  gap: clamp(32px,5vw,88px);
  align-items: start;
}

@media (max-width:900px) {
  .cf__g {
    grid-template-columns: 1fr;
  }
}

.cf__side {
  position: sticky;
  top: 120px;
}

@media (max-width:900px) {
  .cf__side {
    position: static;
  }
}

.cf__lead {
  margin: 20px 0 0;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 2;
  color: #2A2A2A;
}

.cf__notes {
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #E6E6E6;
  list-style: none;
}

.cf__notes li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.9;
}

.cf__notes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.cf__card {
  padding: clamp(28px,3.4vw,52px);
}

@media (max-width:640px) {
  .cf__card {
    padding: 24px 20px;
  }
}

.cf__form {
  display: grid;
  gap: 30px;
}

.fld {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.fld__lb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
}

.fld__lb em {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.3;
}

.fld__lb em.opt {
  color: #666;
}

.fld-row {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 30px 20px;
}

@media (max-width:640px) {
  .fld-row {
    grid-template-columns: 1fr;
  }
}

.inp {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  transition: box-shadow .25s,background .25s;
}

.inp::placeholder {
  color: #A8A8A8;
}

.inp:focus {
  outline: 0;
}

.inp--ta {
  height: auto;
  min-height: 180px;
  padding: 16px 18px;
  line-height: 1.85;
  resize: vertical;
}

.fld__hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--sub);
}

.fld__err {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
}

.fld__err:empty {
  display: none;
}

.fld__other {
  margin-top: 12px;
}

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

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 700;
  transition: background .25s,color .25s,box-shadow .25s;
}

.chip span::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #BDBDBD;
  transition: box-shadow .25s;
}

.chip input:checked + span {
  background: #fff;
}

.chip input:checked + span::before {
  box-shadow: inset 0 0 0 5px var(--red);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.cf__agree {
  padding-top: 6px;
  border-top: 1px solid #EDEDED;
}

.chk {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.chk input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #BDBDBD;
  transition: background .2s,box-shadow .2s;
  cursor: pointer;
}

.chk input:checked {
  background: var(--red) no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.2l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: none;
}

.chk input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.cf__btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  height: 64px;
  padding: 0 40px;
  border: 0;
  border-radius: var(--r);
  background: var(--red);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .14em;
  cursor: pointer;
  transition: background .3s;
}

@media (max-width:640px) {
  .cf__btn {
    justify-self: stretch;
    min-width: 0;
  }
}

.cf__btn:hover {
  background: #C70016;
}

.cf__btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.cf__btn.is-busy {
  opacity: .6;
  cursor: wait;
}

.cf__done h3 {
  margin: 10px 0 0;
  font-family: var(--min);
  font-weight: 600;
  font-size: clamp(24px,2.4vw,32px);
  line-height: 1.5;
}

.cf__done p {
  margin: 16px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
}

.cf__back {
  display: inline-flex;
  align-items: center;
  height: 52px;
  margin-top: 28px;
  padding: 0 28px;
  border-radius: var(--r);
  box-shadow: inset 0 0 0 1px var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  transition: background .3s,color .3s;
}

.cf__back:hover {
  background: var(--ink);
  color: #fff;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cf__side .h2 span {
  display: inline-block;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 6px;
  margin: 0 0 clamp(28px,3vw,40px);
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 2px;
  background: #ECECEC;
  transition: background .5s;
}

.steps li.is-past {
  color: #555;
}

.steps li.is-past::before {
  background: #1E1E1E;
}

.steps li.is-now {
  color: var(--ink);
}

.steps li.is-now::before {
  background: var(--red);
}

.cf__cfm {
  outline: 0;
}

.cf__done {
  outline: 0;
  padding: clamp(8px,1.6vw,20px) 0 4px;
}

.cf__ttl {
  margin: 0;
  font-family: var(--min);
  font-weight: 600;
  font-size: clamp(22px,2vw,28px);
  line-height: 1.5;
  letter-spacing: .04em;
}

.cf__sub {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
  color: #3A3A3A;
}

.cfm {
  margin: clamp(22px,2.4vw,32px) 0 0;
  border-top: 1px solid #E6E6E6;
}

.cfm div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 18px 2px;
  border-bottom: 1px solid #E6E6E6;
}

@media (max-width:640px) {
  .cfm div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 2px;
  }
}

.cfm dt {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  color: #555;
}

.cfm dd {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.cf__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: clamp(28px,3vw,40px);
}

@media (max-width:640px) {
  .cf__acts {
    flex-direction: column;
    align-items: stretch;
  }
}

.cf__back2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 32px;
  border: 0;
  border-radius: var(--r);
  background: #fff;
  box-shadow: inset 0 0 0 1px #CFCFCF;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink);
  cursor: pointer;
  transition: box-shadow .3s,background .3s;
}

@media (max-width:640px) {
  .cf__back2 {
    justify-content: center;
  }
}

.cf__back2:hover {
  box-shadow: inset 0 0 0 1px var(--ink);
}

.cf__back2:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.cf__acts .cf__btn {
  order: 2;
}

@media (max-width:640px) {
  .cf__acts .cf__btn {
    order: 0;
  }
}

.cf__mark {
  width: 56px;
  height: 56px;
  margin: 0 0 22px;
}

.cf__mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cf__mark circle {
  stroke-dasharray: 142;
  stroke-dashoffset: 142;
}

.cf__mark path {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
}

.cf__done:not([hidden]) .cf__mark circle {
  animation: cfDraw .9s cubic-bezier(.33,0,.15,1) .1s forwards;
}

.cf__done:not([hidden]) .cf__mark path {
  animation: cfDraw .5s cubic-bezier(.33,0,.15,1) .8s forwards;
}

@keyframes cfDraw {
  to { stroke-dashoffset:0 }
}

html.nomo .cf__mark circle,
html.nomo .cf__mark path {
  stroke-dashoffset: 0;
  animation: none;
}

.cf__small {
  margin: 14px 0 0 !important;
  font-size: 13.5px !important;
  line-height: 1.9 !important;
  color: var(--sub);
}

.cf__acts--done .cf__back {
  margin-top: 0;
}

@media (max-width:640px) {
  .cf__acts--done .cf__back {
    justify-content: center;
  }
}

.cf__card [hidden] {
  display: none !important;
}

/* ボット対策の欄（人には見せない・読み上げもしない） */
.cf__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* SP：種類の選択は2×2のまま（縦に4段にしない） */
@media (max-width:640px) {
  .chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .chip span {
    gap: 8px;
    height: 52px;
    padding: 0 10px;
    font-size: 12.5px;
    letter-spacing: .02em;
    line-height: 1.35;
    word-break: auto-phrase;
  }
  .chip span::before {
    width: 16px;
    height: 16px;
  }
}

/* SP（2026-10 改修）：セクションの間は56px */
@media (max-width:768px) {
  .cf {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

/* 共通の部品にそろえる（2026-10）：フォームの外枠は外のカード、入力欄は白・角丸12px・線1px・影なし */
.cf__card {
  background: var(--card);
  border-radius: var(--card-r);
  box-shadow: none;
}

.inp {
  background: #fff;
  border-radius: var(--inner-r);
  box-shadow: inset 0 0 0 1px var(--line-l);
}

.inp:focus {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.chip span {
  background: #fff;
  border-radius: var(--inner-r);
  box-shadow: inset 0 0 0 1px var(--line-l);
}

.chip:hover span {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.chip input:checked + span {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.inp:hover {
  background: #fff;
}

.fld__lb em.opt {
  background: var(--card);
}
