@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
@import "variables.css";
@import "customize.css";

@font-face {
  font-family: "SpicaNeueP";
  src:
    url("/static/fonts/SpicaNeueFontFamily/SpicaNeueP-Light.ttf") format("truetype");
  font-weight: lighter
}

@font-face {
  font-family: "SpicaNeueP";
  src:
    url("/static/fonts/SpicaNeueFontFamily/SpicaNeueP-Regular.ttf") format("truetype");
  font-weight: normal
}

@font-face {
  font-family: "SpicaNeueP";
  src:
    url("/static/fonts/SpicaNeueFontFamily/SpicaNeueP-Bold.ttf") format("truetype");
  font-weight: bold
}


html, body {
  height: 100%;
}

html {
  font-size: 16px;
}

body {
  font-family: "Lato", "SpicaNeueP", YuGothic, "Yu Gothic", sans-serif;
  background-color: var(--gray-subtlest) !important;
  color: var(--gray-dark);
  font-size: var(--font-size-16);
}

main {
  overflow: hidden;
}

h1 {
  font-size: var(--font-size-32);
}

h2 {
  font-size: var(--font-size-30);
}

h3 {
  font-size: var(--font-size-28);
}

h4 {
  font-size: var(--font-size-24);
}

h5 {
  font-size: var(--font-size-22);
}

h6 {
  font-size: var(--font-size-20);
}

a {
  text-decoration: none;
}

i.bi {
  padding-right: 0.5rem;
}

.pagination i.bi {
  padding-right: 0px;
}

.color-lightblue {
  color: var(--blue) !important;
}

.footer-space {
  padding-bottom: 10rem;
}

/* 768px以下のとき */
@media screen and (max-width: 768px) {
  .footer-space {
    padding-bottom: 20rem;
  }
}

/* ログイン */
.form-admin-login {
  max-width: 520px;
  padding: 16px;
}

/* ログインページフッター */
.login-footer {
  padding: 16px 24px 20px 24px;
}

.login-footer figure {
  margin: 0px;
}

.login-footer figure img {
  width: 150px;
  padding-bottom: 4px;
  margin-right: 24px;
}

.login-footer figcaption {
  font-size: var(--font-size-12);
}

.login-footer ul,
.login-footer li {
  margin: 0px;
  padding: 0px;
  list-style: none;
}

.login-footer li:not(:last-child) {
  margin-right: 24px;
}

.external-icon {
  width: 20px;
  height: 22px;
  padding-bottom: 2px;
}

/* 768px以下のとき */
@media screen and (max-width: 768px) {
  .login-container {
    max-height: calc(100vh - 3rem);
  }

  .login-footer {
    padding: 8px 12px;
    position: relative;
  }

  .login-footer figure img {
    width: 80px;
    padding-bottom: 4px;
    margin-right: 8px;
  }

  .login-footer figcaption {
    font-size: var(--font-size-8);
  }

  .login-footer ul,
  .login-footer li {
    font-size: var(--font-size-14);
  }
}

/* ヘッダー */
header {
  min-height: 40px;
  line-height: normal;
  background-color: var(--accent-blue);
}

header h1 {
  font-size: var(--font-size-24);
  color: #fff;
  margin: 0px;
}

header i {
  font-size: var(--font-size-20);
}

/* サイドバー */
nav.sidebar {
  width: 230px;
  min-height: calc(100vh - 40px);
  background-color: var(--gray-darker);
  color: #fff;
}

nav.sidebar .nav li {
  list-style: none;
  transition: all 0.4s ease;
}

nav.sidebar .nav li:not(:first-child) {
  margin-top: -1px;
}

nav.sidebar .nav li i.arrow {
  padding-right: 0px;
}

nav.sidebar .nav li.show_menu i.arrow {
  transform: rotate(-180deg);
}

nav.sidebar .nav .link {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav.sidebar .nav .link a {
  width: 100%;
  padding-left: 12px;
}

nav.sidebar .nav .link a.active {
  background-color: var(--gray);
}

nav.sidebar .nav li i {
  height: 60px;
  width: 60px;
  text-align: center;
  line-height: 60px;
  color: #fff;
  font-size: var(--font-size-20);
  cursor: pointer;
  transition: all 0.3s ease;
}

nav.sidebar a {
  color: #fff;
}

nav.sidebar a:hover {
  color: #fff;
}

nav.sidebar li:hover {
  background-color: var(--gray);
}

nav.sidebar .nav li .sub-menu {
  padding-left: 48px;
  background: var(--gray);
  display: none;
}

nav.sidebar .nav li.show_menu .sub-menu {
  display: block;
}

nav.sidebar .nav li .sub-menu a {
  display: block;
  padding: 12px 0;
  white-space: nowrap;
  opacity: 0.7;
  transition: all 0.3s ease;
}

nav.sidebar .nav li .sub-menu li.active a {
  opacity: 1;
}

nav.sidebar .nav li .sub-menu a:hover {
  opacity: 1;
}

nav.sidebar .nav li.nav-logo {
  pointer-events: none;
  position: fixed;
  align-items: center;
  width: 230px;
  bottom: 0;
  padding: 16px;
  text-align: center;
  transition: unset;
}

@media screen and (max-width: 991px) {
  nav.sidebar {
    width: 100%;
    min-height: auto;
  }

  nav.sidebar .nav li.nav-logo {
    position: static;
    width: 100%;
  }
}

/* メイン */
@media screen and (max-width: 991px) {
  main.content {
    min-height: calc(100vh - 300px);
  }
}

.footer_padding {
  padding-bottom: 8rem;
}

@media screen and (max-width: 991px) {
  .footer_padding {
    padding-bottom: 16rem;
  }
}

/* 利用規約 */
#terms-area,
#service-area {
  margin-bottom: 160px;
}

#terms-area ul,
#terms-area li,
#terms-area ol,
#service-area ul,
#service-area li,
#service-area ol {
  list-style-type: none;
}

#terms-area h3,
#service-area h3,
#terms-area h4,
#service-area h4 {
  font-weight: bold;
}

/* テーブル */
thead>tr>th {
  --bs-table-bg: var(--gray-subtler);
}

table.link-list>tbody>tr:hover {
  --bs-table-bg: var(--bluegreen-subtle);
  cursor: pointer;
}

table>tbody>tr:hover {
  --bs-table-bg: var(--yelloworange-subtle);
}

td, th {
  vertical-align: middle;
}

a.link-item {
  color: var(--blue);
  font-weight: bold;
  text-decoration: none;
}

a.link-item:hover {
  color: var(--purpleblue);
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 4px;
}

table>tbody>tr:has(.has-unread) {
  --bs-table-bg: #fef4f4;
}

table>tbody>tr:has(.has-unread):hover {
  --bs-table-bg: #fdeff2;
}


/*---------------------------------------------------
 forms
----------------------------------------------------*/
.section-title {
  display: flex;
  align-items: center;
  font-weight: bold;
}

.section-title::after {
  content: "";
  height: 1px;
  flex-grow: 1;
  background-color: var(--gray-subtle);
}

.section-title:after {
  margin-left: 24px;
}

.form-item {
  margin-bottom: 40px;
}

.label-required::before {
  content: "必須";
  background-color: var(--red);
  color: #fff;
  font-size: 0.875rem;
  font-weight: bold;
  min-width: 10px;
  padding: 4px 8px 3px 8px;
  margin: -4px 10px 0px 0px;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
  text-align: center;
  border-radius: 3px;
  display: inline-block;
}

.label-optional::before {
  content: "任意";
  background-color: var(--gray);
  color: #fff;
  font-size: 0.875rem;
  font-weight: bold;
  min-width: 10px;
  padding: 4px 8px 3px 8px;
  margin: -4px 10px 0px 0px;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
  text-align: center;
  border-radius: 3px;
  display: inline-block;
}

a.link-text {
  color: var(--blue);
  font-weight: bold;
  line-height: normal;
  text-decoration: underline;
  text-underline-offset: 4px;
}

a.link-text:hover {
  color: var(--purpleblue);
}

/* モーダル */
.order-modal h2 {
  color: var(--accent-red);
}

.order-modal .modal-content {
  border: 5px solid var(--accent-red);
}

.modal-img {
  width: 100%;
  object-fit: cover;
}

/*---------------------------------------------------
 依頼一覧
----------------------------------------------------*/
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.radio-inline__input {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
}

.radio-inline__label {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  margin-right: 8px;
  border-radius: 50px;
  transition: all .2s;
  font-weight: normal;
  cursor: pointer;
}

.radio-inline__input:checked+.radio-inline__label {
  background: #3C8DBC;
  color: #FFFFFF;
}

/* 依頼一覧 */
.badges {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  transition: all .2s;
  font-weight: bold;
}

.badges-temporary_save {
  background: var(--gray-light);
  color: #FFFFFF;
  font-weight: normal;
}

.badges-pending_request_approval {
  background: var(--orangered-subtle);
  color: var(--accent-red);
  border: solid 1px;
  border-color: var(--accent-red);
}

.badges-reception_confirmation {
  background: var(--blue);
  color: #FFFFFF;
}

.badges-modification_request {
  background: var(--yelloworange);
  color: #121618;
}

.badges-drawing_request {
  background: var(--greenyellow);
  color: #121618;
}

.badges-drawing_modification_request {
  background: var(--yellow);
  color: #121618;
}

.badges-drawing_completed {
  background: var(--orange);
  color: #121618;
}

.badges-pending_approval {
  background: var(--accent-red);
  color: #FFFFFF;
}

.badges-pending_final_approval {
  background: var(--accent-red);
  font-weight: normal;
  color: #FFFFFF;
}

.badges-approval_rejected {
  background: var(--red-subtle);
  color: var(--accent-red);
  border: solid 1px;
  border-color: var(--accent-red);
}

.badges-completed {
  background: var(--gray);
  color: #FFFFFF;
}

.badges-request_cancellation {
  background: var(--gray-subtler);
  border: solid 1px;
  border-color: var(--gray);
  font-weight: normal;
}

.approval-alert {
  background: var(--red-subtle);
  padding-inline: 24px;
  padding-block: 4px;
  height: 50px;
  display: table;
  width: 100%;
}

.approval-alert span {
  color: var(--accent-red);
}

.approval-alert p {
  display: table-cell;
  vertical-align: middle;
}


/*---------------------------------------------------
 依頼詳細
----------------------------------------------------*/
.spare-board-table>thead>tr>th {
  background: #FFFFFF;
}

.spare-board-table>*>tr {
  pointer-events: none;
}

/*---------------------------------------------------
 メッセージ
----------------------------------------------------*/
.message-card {
  border-radius: 1rem;
}

/* * * ツールチップ全体 * * */
.message-tooltip {
  /* 位置の情報 */
  position: relative;
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: -2px;
  margin-left: 4px;
  vertical-align: middle;
  /* 中身の情報 */
  background: var(--accent-blue);
  border-radius: 100%;
  /* * * ハテナマーク * * */
  /* * * 説明文 * * */
}

.message-tooltip::before {
  /* 位置の情報 */
  position: absolute;
  display: inline-block;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  /* 中身の情報 */
  content: '?';
  color: white;
  font-size: 100%;
  font-weight: bold;
}

.message-tooltip .text {
  /* 位置の情報 */
  position: absolute;
  display: block;
  width: 30rem;
  left: 50%;
  transform: translateX(-30%);
  bottom: 100%;
  /* 中身の情報 */
  background: var(--accent-blue);
  color: white;
  font-size: 14px;
  font-weight: normal;
  padding: 10px;
  line-height: 1.7;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  /* アニメーションの情報 */
  transition: all 0.4s ease;
  visibility: hidden;
  opacity: 0;
  bottom: 100%;
  /* * * 吹き出しのしっぽ * * */
}

.message-tooltip .text::after {
  /* 位置の情報 */
  position: absolute;
  display: block;
  width: 10px;
  height: 10px;
  left: 30%;
  bottom: -5px;
  transform: rotateZ(45deg) translateX(-50%);
  transform-origin: left;
  /* 中身の情報 */
  content: ' ';
  background: var(--accent-blue);
}

.message-tooltip:hover .text {
  /* アニメーションの情報 */
  visibility: visible;
  opacity: 1.0;
  bottom: calc(100% + 10px);
}

.message-attachment-file label {
  font-size: 0.875rem;
  font-weight: bold;
  margin: 0.25rem 0;
}

.message-attachment-file ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.message-attachment-file li:not(:last-child) {
  margin-bottom: 0.5rem;
}

@media screen and (max-width: 991px) {
  .message-attachment-file li:not(:last-child) {
    margin-bottom: 0.5rem;
  }

  .message-attachment-file ul {
    margin-bottom: 3rem;
  }
}

.link-text-color-red {
  color: var(--bs-alert-color);
}
