@charset "UTF-8";

/* =========================================
   Form Component
   ========================================= */

.form-group {
  width: 100%;
}
.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.form-input, 
.form-select select, 
.form-textarea {
  width: 100%;
  padding: 0 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  color: var(--color-text-primary);
  transition: border-color 0.3s;
  height: 44px;
  font-size: 14px;
  background-color: var(--color-bg-sub);
  border: 1px solid var(--color-border-primary);
  border-radius: 5px;
}

.form-input:focus, 
.form-textarea:focus {
  outline: none;
  border-color: #006adc;
}
::placeholder {
  color: var(--color-text-tertiary);
  opacity: 1; 
}
/* セレクト */
.form-select{ 
  position: relative;
  color-scheme: dark;
  width: 100%;
}
.form-select--helf { 
  width: 50%;
}
.form-select select { 
  width: 100%;
  color: var(--color-text-tertiary);
  cursor: pointer;
  padding-right: 0;
  appearance: none;
}
.form-select select:focus,
.form-select select:focus-visible {
  outline: none !important;
  border-color: #006adc;
  box-shadow: none;
}
.form-select::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 30%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: rotate(45deg);
}
.form-select:hover::after {
  border-right: 2px solid #888;
  border-bottom: 2px solid #888;
}

.form-select--line-output select{
  border: 1px solid #D42246;
}
.form-select--line-input input,
.form-select--line-input select{
  border: 1px solid #0F6A57;
}

/* チェックボックス */
.form-checkbox-label{
  border-radius: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
input[type="checkbox"]:checked {
  background-color: #2a95d4;
  border-color: #2a95d4;
}
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 1px solid #666;
  background-color:transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  opacity: 1 !important;
  z-index: 10;
}
input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  width: 3px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
input[type="checkbox"]:hover {
  border-color: #888;
}
.form-checkbox{
  accent-color: #007FFE;
  width: 15px;
  height: 15px;
}
.form-checkbox-text{
  color: var(--color-text-secondary);
  font-size: 14px;
}

/* ラジオボタン */
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #666;
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  transition: all 0.2s;
}
input[type="radio"]:checked {
  border-color: #006adc;
}
input[type="radio"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #006adc;
  transition: transform 0.2s ease-in-out;
}
input[type="radio"]:checked::after {
  transform: translate(-50%, -50%) scale(1);
}
input[type="radio"]:hover {
  border-color: #888;
}
.radio-label {
  margin-right: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-primary);
  font-size: 14px;
  cursor: pointer;
}

/* disabled 書類の読込完了などフォームを無効化する際のスタイル*/
.form-input input:disabled,
.form-select select:disabled,
.form-textarea textarea:disabled{
  background-color: #262626;
  color: var(--color-text-tertiary);
}
.form-select:has(select:disabled)::after {
  border-right: 2px solid #262626;
  border-bottom: 2px solid #262626;
}
.form-input__search{
  form-border-radius: 50px;
}
.form-link {
  color: #439DF6;
  font-size: 14px;
  text-decoration: underline;
  transition: opacity 0.3s;
}
.form-link:hover {
  opacity: 0.8;
}
.form-submit{}
/* バッジ */
.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
}
.badge--req { background-color: #ff4d4d; } /* 必須 */
.badge--opt { background-color: #2ecc71; } /* 任意 */

/* フォーム内アイコン */
.field-with-icon {
  position: relative;
  display: flex;
}
.field-with-icon__input {
  padding-right: 40px;
}
.field-with-icon__btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}
.form-icon {}
.form-icon--visibility {
  background-image: url('../../images/icon_visibility.svg');
  width: 20px;
  height: 13px;
}
.form-icon--visibility-off{
  background-image: url('../../images/icon_visibility_off.svg');
  width: 20px;
  height: 17px;
}
@media screen and (max-width: 768px) {
  .search-form__footer {
    flex-direction: column;
    align-items: stretch;
  }
  .search-form__period {
    justify-content: space-between;
  }
  .custom-select--date {
    flex: 1;
  }
  .form-select--helf { 
    width: 100%;
  }
}
/* =========================================
   form-layout
   ========================================= */
.form-row {
  display: flex;
  align-items: center;
  padding: 8px 0;
}
.config-box--right .form-row:first-child {
  border-bottom: 1px solid #2a2a2a;
  padding-top: 0;
}
.form-row:last-child {
  border-bottom: none;
}
.form-row__label {
  width: 180px;
  font-size: 15px;
  flex-shrink: 0;
}
.form-row__content {
  flex-grow: 1;
  display: flex;
  align-items: center;
}
/* 右側のセレクトボックスの幅調整 */
.form-row__content .form-select {
  width: 100%;
}

@media screen and (max-width: 767px) {
  .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .form-row__label {
    width: 100%;
  }
}



/* 2026-01-15 発送予定日エリア追加　ココから */
/* 日付入力欄の親要素 */
.input-with-icon {
  position: relative;
}
/* ブラウザ標準のアイコン（インジケーター）を全面に広げて透明にする */
input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  cursor: pointer;
  background: transparent; /* 元のアイコンを消す */
  color: transparent;      /* 文字も消す */
  z-index: 2;               /* 最前面に配置してクリックを奪う */
}
/* 入力欄本体 */
.input-with-icon .form-input {
  position: relative;
  z-index: 1;
}
/* 未入力時のフェイクテキストを表示 */
input[type="date"]::before {
  content: "日付を選択してください";
  color: var(--color-text-tertiary);
  font-size:14px;
  position: absolute;
  left: 16px;
}

/* 入力中（フォーカス時）や値がある時はフェイクテキストを消す */
input[type="date"]:focus::before,
input[type="date"]:valid::before {
  content: "";
  display: none;
}

/* 元の「年/月/日」は常に透明にしておく */
input[type="date"]::-webkit-datetime-edit {
  color: transparent;
}

/* 値が入った時だけ、元の入力内容を黒くして表示 */
input[type="date"]:focus::-webkit-datetime-edit,
input[type="date"]:valid::-webkit-datetime-edit {
  color: var(--color-text-tertiary);
  text-align: left
}
/* 2026-01-15 発送予定日エリア追加　ココまで */