@charset "UTF-8";

/* CSS Document */
.attBox {
  background: #f2f7fc;
  padding: 2rem;
  border-radius: 8px;
}

.contact-note-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
}

.contact-note-list li {
  line-height: 1.68;
  font-size: 15px;
  display: flex;
  column-gap: 0.5rem;
}

.contact-note-list li::before {
  content: "※";
  font-size: inherit;
  font-weight: bold;
  color: var(--header-color);
  flex-shrink: 0;
}

.formCover {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
}

.formItem {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  column-gap: 1rem;
  background: rgb(173 207 241 / 16%);
  padding: 2rem;
  border-radius: 8px;
}

.formLabel {
  max-width: 200px;
  width: 26%;
  align-items: center;
  padding-right: 16px;
  font-weight: bold;
  color: #535353;
  position: relative;
}

span.mustTag {
  font-size: var(--small-font-size);
  background: #ff7b7b;
  padding: 0px 6px;
  border-radius: 4px;
  margin-inline-start: 0.5rem;
  color: #fff;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.inputItem {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  width: 74%;
  padding-inline-start: 2rem;
  position: relative;
}

.inputItem::after {
  content: "";
  display: block;
  width: 2px;
  height: calc(100% + 2rem);
  border-inline-start: 2px dashed #b4c7ea;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.inputItem input,
.inputItem textarea,
.inputItem select {
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #424242;
  background-color: #ffffff;
  background-clip: padding-box;
  border: 1px solid #cfcfcf;
  border-radius: 0.5rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.inputItem select {
  cursor: pointer;
  appearance: none;
  width: 100%;
}

.inputItem select::after {
  content: "";
  display: block;
  background: url("../img/icon_arrow_blue.svg") no-repeat;
  background-size: 100% auto;
  width: 8px;
  aspect-ratio: 4 / 7;
  transform: rotate(-90deg);
  position: relative;
  right: 1rem;
}

.inputItem label {
  color: #535353;
  margin-right: 0.5rem;
}

.adressSec {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
  row-gap: 0.5rem;
}

.adressSec .innerBox {
  display: flex;
  flex-direction: column;
}

.adressSec .innerBox:nth-child(n-2) {
  width: 40%;
}

.adressSec .innerBox:nth-child(n+3) {
  width: 100%;
}

.adressSec .innerBox>label {
  font-size: var(--small-font-size);
  color: #595959;
}

.contactWay {
  display: flex;
  flex-direction: row;
  column-gap: 2rem;
}

/* チェックボックスのアイコン */
.inputItem input[type="radio"].checkbox,
.inputItem input[type="checkbox"].checkbox {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

label.checkboxLabel {
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
  display: flex;
  padding-inline-start: 0.5em;
  align-items: center;
  column-gap: 0.3rem;
}

label.checkboxLabel span {
  display: inline-block;
  vertical-align: middle;
  transform: translate3d(0, 0, 0);
  top: 1px;
}

label.checkboxLabel span {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  transform: scale(1);
  vertical-align: middle;
  border: 1px solid #9098A9;
  transition: all 0.2s ease;
  background: #fff;
}

.checkboxLabel span::before {
  content: "";
  width: 100%;
  height: 100%;
  background: #1c9bfe;
  display: block;
  transform: scale(0);
  opacity: 1;
  border-radius: 50%;
}

.checkboxLabel span svg {
  position: absolute;
  top: 3px;
  left: 2px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16px;
  stroke-dashoffset: 16px;
  transition: all 0.3s ease;
  transition-delay: 0.1s;
  transform: translate3d(0, 0, 0);
}

.inputItem input[type="radio"].checkbox:checked+.checkboxLabel span,
.inputItem input[type="checkbox"].checkbox:checked+.checkboxLabel span {
  background: #1c9bfe;
  border-color: #1c9bfe;
  animation: wave-46 0.4s ease;
}

.inputItem input[type="radio"].checkbox:checked+.checkboxLabel span svg,
.inputItem input[type="checkbox"].checkbox:checked+.checkboxLabel span svg {
  stroke-dashoffset: 0;
}

.inputItem input[type="radio"].checkbox:checked+.checkboxLabel span::before,
.inputItem input[type="checkbox"].checkbox:checked+.checkboxLabel span::before {
  transform: scale(3.5);
  opacity: 0;
  transition: all 0.6s ease;
}

@keyframes wave-46 {
  50% {
    transform: scale(0.9);
  }
}

.selectWrap {
    width: 100%;
    position: relative;
}
.selectWrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--header-color);
  border-bottom: 2px solid var(--header-color);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.inputItem.name {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.inputItem.name input {
  margin-inline-end: 1rem;
}

/* ボタン */
input.submitBtn {
  width: 80%;
  padding: 2rem;
  font-size: var(--header-font-size);
  color: #fff;
  border: none;
  background: #1c9bfe;
  border-radius: 8px;
  font-weight: bold;
  letter-spacing: 0.16em;
  cursor: pointer;
}

input.submitBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.telInqBox a.telBtn {
  background: #ffe3cb;
  border-radius: 8px;
  max-width: 700px;
  margin-inline: auto;
  margin-block: 0 0.8rem;
  display: flex;
  justify-content: center;
}

.telInqBox h3.inqTtl.secTopicHeader {
  text-align: center;
}

.errorMsg {
  font-size: var(--small-font-size);
  position: absolute;
  color: #e02f99;
  bottom: -1.5rem;
  margin-top: 0.25rem;
}

#mail+span.errorMsg {
  position: relative;
  bottom: 0.5rem;
}

#mailCon+span.errorMsg {
  position: relative;
  bottom: 0.5rem;
}

.inputItem input.is-invalid,
.inputItem textarea.is-invalid,
.inputItem select.is-invalid {
  border-color: #ff7b7b;
  box-shadow: 0 0 0 2px rgb(255 123 123 / 20%);
}

/* ============================================
   お問い合わせインデックス ナビボタン
   ============================================ */

.inqNavGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.inqNavGrid.oneColumn {
  grid-template-columns: 1fr;
  width: 80%;
  margin-block-end: 3rem;
}

.inqNavBtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  background: #fff;
  border: 4px solid #d4e3f5;
  border-radius: 12px;
  padding: 2.5rem 2rem 3rem;
  box-shadow: 0 3px 12px rgb(116 166 216 / 14%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  color: var(--header-color);
  gap: 0.75rem;
}

.inqNavGrid.oneColumn .inqNavBtn {
  padding: 1.5rem 2rem 2rem;
}

.inqNavBtn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgb(116 166 216 / 28%);
}

.needs {
  position: absolute;
  width: fit-content;
  padding: 0.5rem 1rem;
  border: 2px solid var(--header-color);
  border-radius: 4px;
  top: -2rem;
  background: #ffe4e4;
  font-size: 12px;

  &::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 15px;
    height: 15px;
    box-sizing: border-box;
    background-color: #ffe4e4;
    /* 背景色と同じ色を指定 */
    rotate: 135deg;
    translate: -50% 0;
  }

  &::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 15px;
    height: 15px;
    box-sizing: border-box;
    border: 2px solid;
    border-color: var(--header-color) var(--header-color) transparent transparent;
    rotate: 135deg;
    translate: -50% 0;
  }
}

a.inqNavBtn:has(.icon2.inqNavBtn__icon) .needs {
  background: #feffe4;

  &::before {
    background: #feffe4;
  }
}


.inqNavBtn__icon {
  width: 56px;
  height: 56px;
}

.inqNavBtn__icon.icon2 {
  width: 40px;
  height: 40px;
}

.inqNavBtn__icon.icon3 {
  width: 35px;
  height: 35px;
}

.inqNavBtn__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.inqNavBtn__label {
  font-weight: bold;
  font-size: clamp(15px, calc(14px + 0.3vw), 18px);
  display: block;
}

.inqNavBtn__sub {
  font-size: 13px;
  color: #777;
  display: block;
  line-height: 1.6;
}

.inqNavBtn::after {
  content: "";
  display: block;
  background: url("../img/btn_arrow-circle.svg") no-repeat center;
  background-size: 100% auto;
  width: 1.5rem;
  height: 1.5rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 1rem;
}

.inqNavSmall {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
  display: flex;
  justify-content: flex-end;
}

.inqNavSmall .min-linkBtn {
  justify-content: center;
  text-decoration: none;
  background: #fff;
  border: 4px solid #d4e3f5;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 3px 12px rgb(116 166 216 / 14%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  color: var(--header-color);
  gap: 0.75rem;
  margin-block: 0;
}


/* ============================================
   お急ぎのお問い合わせ先リスト
   ============================================ */

.contactListWrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.contactListItem {
  background: rgb(173 207 241 / 16%);
  border-radius: 8px;
  padding: 1.5rem 2rem;
}

.contactCompanyName {
  margin-bottom: 0.5rem;
}

.contactProcedure {
  color: #555;
  font-size: var(--small-font-size);
  margin-bottom: 1rem;
}

/* PC：dt／dd を2カラムグリッドで横並び */
.contactTelBlock {
  display: grid;
  grid-template-columns: 36% 1fr;
  column-gap: 1.5rem;
  row-gap: 1.5rem;
  align-items: center;
  background: #fff;
  padding: 1rem;
}

.contactTelBlock dt {
  font-weight: bold;
  color: #535353;
  font-size: var(--small-font-size12-15);
  letter-spacing: 0.05em;
}

.contactTelBlock dd {
  color: #333;
  margin-inline: 0;
}

.contactTelBlock dd a {
  color: #1c9bfe;
  font-weight: bold;
  text-decoration: none;
  font-size: var(--subHeader-font-size);
}

.contactTelBlock dd a:hover {
  text-decoration: underline;
}

p.note {
  text-align: center;
  font-size: var(--small-font-size);
  color: #e82d2d;
  line-height: 1.4;
  margin-block-end: 2rem;
}

@media screen and (max-width: 768px) {
  ul.contact-note-list {
    padding-inline: 0;
  }

  .attBox {
    padding: 4vw;
  }

  .inqNavGrid.oneColumn {
    width: 100%;
  }

  .formItem {
    flex-direction: column;
    width: 100%;
    align-items: center;
    row-gap: 2rem;
  }

  .formLabel {
    padding-inline: 0;
    width: 100%;
    max-width: unset;
    text-align: center;
  }

  .inputItem {
    width: 100%;
    padding-inline: 0;
    justify-content: center;
    padding-block-start: 2rem;
  }

  .inputItem::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    border-block-start: 2px dashed #b4c7ea;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }

  .inputItem.name {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .inputItem.name label {
    margin-right: 2vw;
    width: calc(7% - 2vw);
  }

  .inputItem.name input {
    margin-inline-end: 0;
    width: 90%;
  }

  /* SP：inqNavGrid を1カラムに */
  .inqNavGrid {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3.5rem;
  }

  .inqNavBtn {
    flex-direction: row;
    text-align: left;
    padding: 1.25rem 3rem 1.25rem 1.25rem;
    gap: 1rem;
    justify-content: flex-start;
    justify-content: center;
  }

  .inqNavBtn__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .inqNavBtn__sub {
    font-size: 12px;
  }

  .inqNavBtn::after {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    right: 1rem;
  }

  /* SP：contactTelBlock を1カラムに */
  .contactListItem {
    padding: 1.25rem;
  }

  .contactTelBlock {
    grid-template-columns: 1fr;
    row-gap: 0.25rem;
  }

  .contactTelBlock dt {
    margin-top: 0.75rem;
  }

  .contactTelBlock dd a {
    font-size: 26px;
  }

  .contactTelBlock dt:first-child {
    margin-top: 0;
  }
}