@charset "UTF-8";

/* form step */
.c-form-step {
  display: flex;
  margin: 28px 0 60px;
  list-style-type: none;
  max-width: 100%;
}

.c-form-step__caption {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 223px;
  box-sizing: border-box;
  position: relative;
  color: #333;
  background-color: #cccccc;
  font-size: 1.6rem;
  padding: 10px 20px 10px 40px;
  text-align: center;
}

@media screen and (max-width: 1099px) {
  .c-form-step__caption {
    padding: 10px 10px 10px 20px;
  }
}

.c-form-step__caption:first-child {
  padding-left: 20px;
}

@media screen and (max-width: 1099px) {
  .c-form-step__caption:first-child {
    padding-left: 10px;
  }
}

.c-form-step__caption--current {
  background-color: #ffe600;
  font-weight: 500;
}

.c-form-step__caption::after,
.c-form-step__caption::before {
  content: "";
  display: block;
  position: absolute;
  width: 18px;
  height: 100%;
  top: 0;
  right: -18px;
  clip-path: polygon(0 0, 2px 0, 100% 50%, 2px 100%, 0 100%);
}

@media screen and (max-width: 519px) {
  .c-form-step__caption::after,
  .c-form-step__caption::before {
    width: 10px;
    right: -10px;
    clip-path: polygon(0 0, 1px 0, 100% 50%, 1px 100%, 0 100%);
  }
}

.c-form-step__caption::before {
  right: -16px;
  background: #cccccc;
  z-index: 3;
}

@media screen and (max-width: 519px) {
  .c-form-step__caption::before {
    right: -9px;
  }
}

.c-form-step__caption.c-form-step__caption--current::before {
  background: #ffe600;
}

.c-form-step__caption::after {
  background: #fff;
  z-index: 1;
}

.c-form-step__caption:last-child::before,
.c-form-step__caption:last-child::after {
  display: none;
}

/* select要素のオプションハイライト色のカスタマイズ */
:root {
  --select-option-hover-bg: #666;
  --select-option-hover-color: #fff;
  --select-option-default-bg: #fff;
  --select-option-default-color: #333;
}

.c-form__control[id="request_type"] {
  /* select要素自体のスタイル調整 */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* Font Awesomeアイコンを使用するため背景画像は削除 */
  background-image: none;
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
  padding-right: 32px;
}

/* select要素の親コンテナにFont Awesomeアイコンを配置 */
.c-form__content {
  position: relative;
}

.c-form__content .select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.c-form__content .select-wrapper::after {
  content: '\f078'; /* Font Awesome chevron-down */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
  font-size: 14px;
}

/* select要素の幅調整 */
.select-wrapper select {
  width: 100%;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .c-form__content .select-wrapper::after {
    right: 8px;
    font-size: 12px;
  }
}

/* Firefox用スタイル */
@-moz-document url-prefix() {
  select#request_type.c-form__control option {
    background-color: var(--select-option-default-bg) !important;
    color: var(--select-option-default-color) !important;
    padding: 8px 12px !important;
  }
  
  select#request_type.c-form__control option:hover,
  select#request_type.c-form__control option:focus {
    background-color: var(--select-option-hover-bg) !important;
    color: var(--select-option-hover-color) !important;
  }
}

/* Safari用スタイル */
@supports (-webkit-marquee-repetition: infinite) and (not (-ms-ime-align: auto)) {
  select#request_type.c-form__control option:hover,
  select#request_type.c-form__control option:focus {
    background: var(--select-option-hover-bg) !important;
    background-color: var(--select-option-hover-bg) !important;
    color: var(--select-option-hover-color) !important;
    -webkit-text-fill-color: var(--select-option-hover-color) !important;
  }
}

/* 全ブラウザ共通 - 最大優先度 */
html[lang] body form#inquiryForm select#request_type.c-form__control[data-form-name]:not([disabled]) option {
  background: var(--select-option-default-bg) !important;
  background-color: var(--select-option-default-bg) !important;
  color: var(--select-option-default-color) !important;
  padding: 8px 12px !important;
  border: none !important;
  outline: none !important;
}

html[lang] body form#inquiryForm select#request_type.c-form__control[data-form-name]:not([disabled]) option:hover,
html[lang] body form#inquiryForm select#request_type.c-form__control[data-form-name]:not([disabled]) option:focus,
html[lang] body form#inquiryForm select#request_type.c-form__control[data-form-name]:not([disabled]) option:active {
  background: var(--select-option-hover-bg) !important;
  background-color: var(--select-option-hover-bg) !important;
  background-image: none !important;
  color: var(--select-option-hover-color) !important;
  -webkit-text-fill-color: var(--select-option-hover-color) !important;
  text-shadow: none !important;
  border: none !important;
  outline: none !important;
}
