/* ========================================== */
/* アイコン付きボタン */
.icon-button {
  display: flex;
  align-items: center;
  border: none;
  padding: 8px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}
.icon-button.icon-only {
  border: none;
  padding: 2px;
  border-radius: 50%;
  cursor: pointer;
}
.icon-button:hover {
  opacity: 0.8;
}
.icon-button svg {
  fill: white;
}
.icon-button span {
  color: white;
  padding-left: 8px;
}
.icon-button.with-label {
  padding-right: 12px;
}

.icon-button.black {
  background: black;
}
.icon-button.green {
  background: #4caf50;
}
.icon-button.grey {
  background: #9e9e9e;
}
.icon-button.fill {
  background: white;
}

.icon-button.fill.black svg {
  fill: black;
}
.icon-button.fill.green svg {
  fill: #4caf50;
}
.icon-button.fill.grey svg {
  fill: #9e9e9e;
}

/* 通常ボタン */
.normal-button {
  padding: 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: white;
  font-weight: bold;
}
.normal-button:hover {
  opacity: 0.8;
}

.normal-button.black {
  background: black;
}
.normal-button.green {
  background: #4caf50;
}
.normal-button.blue {
  background: #2196f3;
}
.normal-button.red {
  background: #e91e63;
}
.normal-button.grey {
  background: #9e9e9e;
}
.normal-button.accent-red {
  background: #F44336;
}


/* 通常ボタンのアウトラインver */
.outline-button {
  padding: 8px;
  border: 1px solid black;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-weight: bold;
}
.outline-button:hover {
  opacity: 0.8;
}

.outline-button.blue {
  color: #2196f3;
  border: 1px solid #2196f3;
}

/* アクセントボタン */
.accent-button {
  height: 40px;
  padding: 8px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  color: white;
  font-weight: bold;
}
.accent-button:hover {
  opacity: 0.8;
}

.accent-button.blue {
  background: #2196f3;
}

/* アイコンのみのボタン */
.icon-only-button {
  padding: 2px;
  border: none;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.icon-only-button:hover {
  background: #f5f5f5;
}
.icon-only-button:active svg::after {
  background: #f5f5f5;
}

/* ========================================== */


/* ========================================== */
/* アイコン付きインプットテキスト */
.input-icon-text {
  display: flex;
  align-items: center;
  position: relative;
  border: 1px solid #9fa0a0;
  border-radius: 4px;
  padding: 8px;
  height: 20px;
}
.input-icon-text:focus-within {
  outline: none;
  box-shadow: 0px 0px 1px 1px #2196f3;
}
.input-icon-text input[type="text"] {
  width: 150px;
  border: none;
  border-radius: 4px;
  padding-right: 24px;
}
.input-icon-text input[type="text"]:focus {
  outline: none;
}
.input-icon-text svg {
  position: absolute;
  left: 100%;
  margin-left: -24px;
}

/* インプットテキスト */
.input-text {
  padding: 8px;
  height: 20px;
  border: 1px solid #9fa0a0;
  border-radius: 4px;
}
.input-text:focus {
  outline: none;
  box-shadow: 0px 0px 1px 1px #2196f3;
}

/* インプットパスワード */
.input-password {
  display: flex;
  align-items: center;
  position: relative;
  border: 1px solid #9fa0a0;
  border-radius: 4px;
  padding: 8px;
  height: 20px;
}
.input-password:focus-within {
  outline: none;
  box-shadow: 0px 0px 1px 1px #2196f3;
}
.input-password input[type="text"],
.input-password input[type="password"] {
  width: 100%;
  border: none;
  border-radius: 4px;
  padding-right: 24px;
}
.input-password input[type="text"]:focus,
.input-password input[type="password"]:focus {
  outline: none;
}
/* ========================================== */


/* ========================================== */
/* テキストエリア */
.input-textarea {
  padding: 8px;
  border: 1px solid #9fa0a0;
  border-radius: 4px;
}
.input-textarea:focus {
  outline: none;
  box-shadow: 0px 0px 1px 1px #2196f3;
}
/* ========================================== */


/* ========================================== */
/* ツールチップ */
.tooltip {
  position: relative;
}
.tooltip label {
  cursor: pointer;
}
.tooltip input[type="checkbox"] {
  display: none;
}
.tooltip .tooltip-comment {
  display: none;
  position: absolute;
  width: 200px;
  padding: 8px;
  background: #eeeeee;
  border: 1px solid #757575;
  border-radius: 4px;
  top: -90px;
  z-index: 10;
}
.tooltip #tooltip-toggle:checked+.tooltip-comment {
  display: inline-block;
}
.tooltip .tooltip-comment::before {
  content: "";
  position: absolute;
  top: 100%;
  width: 20px;
  height: 20px;
  clip-path: polygon(0 0, 50% 68%, 100% 0%);
  background-color: #757575;
}
.tooltip .tooltip-comment::after {
  content: "";
  position: absolute;
  top: calc(100% - 2px);
  width: 20px;
  height: 20px;
  clip-path: polygon(0 0, 50% 70%, 100% 0%);
  background-color: #eeeeee;
}
@media screen and (min-width:601px ) {
  .tooltip .tooltip-comment {
    left: -82px;
  }
  .tooltip .tooltip-comment::before,
  .tooltip .tooltip-comment::after {
    left: 50%;
    margin-left: -25px;
  }
}
@media screen and (max-width:600px ) {
  .tooltip .tooltip-comment {
    left: -180px;
  }
  .tooltip .tooltip-comment::before,
  .tooltip .tooltip-comment::after {
    left: 100%;
    margin-left: -35px;
  }
}

/* ========================================== */


/* ========================================== */
/* セレクトボックス */
.input-select {
  display: flex;
  align-items: center;
  position: relative;
  border: 1px solid #9fa0a0;
  border-radius: 4px;
  padding: 8px;
  height: 20px;
}
.input-select:focus-within {
  outline: none;
  box-shadow: 0px 0px 1px 1px #2196f3;
}
.input-select select {
  -webkit-appearance: none;
  background: transparent;
  border: none;
  outline: none;
  padding-right: 24px;
  z-index: 2;
  color: black;
  width: 100%;
}

.input-select svg {
  position: absolute;
  left: 100%;
  margin-left: -24px;
  z-index: 1;
}

/* ========================================== */


/* ========================================== */
/* アンカーリンク風テキスト */
.like-anchor {
  font-weight: bolder;
  color: #2196f3;
  cursor: pointer;
}
.like-anchor:hover {
  text-decoration: underline;
}
/* ========================================== */


/* ========================================== */
/* ラジオボタン */
.input-radio {
  display: block;
  cursor: pointer;
}

.input-radio input[type="radio"] {
  display: none;
}

.input-radio-text::before {
  content: "";
  display: inline-block;
  position: relative;
  width: 8px;
  height: 8px;
  top: 1px;
  margin-right: 6px;
  border-width: 1px;
  border-style: solid;
  border-radius: 50%;
  padding: 2px;
  background-clip: content-box;
}

.input-radio input[type="radio"]:not(:checked) + .input-radio-text::before {
  border-color: #707070;
}
.input-radio input[type="radio"]:checked + .input-radio-text::before {
  border-color: #2196f3;
  background-color: #2196f3;
}
/* ========================================== */

/* ========================================== */
/* チェックボックス */
.input-check input[type=checkbox] {
  display:none;
}
.input-check label {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.input-check label .input-check-checked {
  fill: #2196f3;
}
.input-check label .input-check-blank {
  fill: #707070;
}
.input-check input[type=checkbox] + label:before {
  display: inline-block;
}
.input-check input[type=checkbox] + label .input-check-blank {
  display: block;
}
.input-check input[type=checkbox] + label .input-check-checked {
  display: none;
}

.input-check input[type=checkbox]:checked + label .input-check-blank {
  display: none;
}
.input-check input[type=checkbox]:checked + label .input-check-checked {
  display: block;
}

.input-check.invalidate {
  opacity: 0.3;
}
/* ========================================== */


/* ========================================== */
/* ファイルインプット */
.input-file {
  height: 36px;
}
.input-file label span {
  cursor: pointer;
  padding: 10px;
  height: 20px;
  color: white;
  background: #707070;
  border-radius: 4px;
}
.input-file input {
  display: none;
}

.input-file-parts {
  display: flex;
  align-items: center;
}
.input-file-name {
  width: 300px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-left: 4px;
}
.input-file svg {
  margin-left: 16px;
  padding: 6px 16px;
  border-radius: 4px;
  fill: white;
  background: #707070;
}

@media screen and (min-width:961px ) {
  .input-file {
    display: flex;
    align-items: center;
  }
}
@media screen and (min-width: 601px) and (max-width: 960px) {
  .input-file {
    display: flex;
    align-items: center;
  }
  .input-file-name {
    width: 200px;
  }
}
@media screen and (max-width:600px ) {
  .input-file {
    display: block;
  }
  .input-file-name {
    margin-top: 12px;
    width: 150px;
  }
}
/* ========================================== */


/* ========================================== */
/* インプットカレンダー */
.input-date-wrapper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #9fa0a0;
  border-radius: 4px;
}
.input-date-wrapper:focus-within {
  box-shadow: 0px 0px 1px 1px #2196f3;
}
.input-date {
  height: 20px;
  padding: 8px;
  text-align: center;
  border-radius: 4px;
  border: none;
  outline: none;
}
/* ========================================== */


/* ========================================== */
/* インプットタイム */
.input-time {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #9fa0a0;
  border-radius: 4px;
}
.input-time:focus-within {
  box-shadow: 0px 0px 1px 1px #2196f3;
}
.input-time input {
  width: 35px;
  height: 20px;
  padding: 8px;
  border-radius: 4px;
  border: none;
  text-align: center;
}
.input-time input[type="text"]:focus {
  outline: none;
}
/* ========================================== */

/* ========================================== */
/* ソートボタン */
.sort-button {
  width: 20px;
  height: 20px;
}
.sort-button button {
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background-color: initial;
}
/* ========================================== */

/* ========================================== */
/* エラーメッセージスタイル */
.error_message {
  color: #F44336;
}
@media screen and (min-width:961px ) {
  .error_message {
    font-size: 14px;
  }
}
@media screen and (min-width: 601px) and (max-width: 960px) {
  .error_message {
    font-size: 14px;
  }
}
@media screen and (max-width:600px ) {
  .error_message {
    font-size: 12px;
  }
}

.success_message {
  color: #1E88E5;
}
@media screen and (min-width:961px ) {
  .success_message {
    font-size: 14px;
  }
}
@media screen and (min-width: 601px) and (max-width: 960px) {
  .success_message {
    font-size: 14px;
  }
}
@media screen and (max-width:600px ) {
  .success_message {
    font-size: 12px;
  }
}
/* ========================================== */
