@charset "UTF-8";
/*!
Theme Name: AmZ-design-Theme
Description: AmZ-design専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.2
*/
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&family=Noto+Serif+JP:wght@400;700&display=swap");
/*
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com
Twitter: @rich_clark
*/
/*要素のフォントサイズやマージン・パディングをリセットしています*/
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

/*行の高さをフォントサイズと同じにしています*/
body {
  line-height: 1;
}

/*新規追加要素のデフォルトはすべてインライン要素になっているので、section要素などをブロック要素へ変更しています*/
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

/*nav要素内ulのマーカー（行頭記号）を表示しないようにしています*/
/*nav ul {
    list-style:none;
}*/
ol, ul {
  list-style: none;
}

/*引用符の表示が出ないようにしています*/
blockquote, q {
  quotes: none;
}

/*blockquote要素、q要素の前後にコンテンツを追加しないように指定しています*/
blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

/*a要素のフォントサイズなどをリセットしフォントの縦方向の揃え位置を親要素のベースラインに揃えるようにしています*/
a {
  margin: 0;
  padding: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

/* ins要素のデフォルトをセットし、色を変える場合はここで変更できるようにしています */
ins {
  background-color: #ff9;
  color: #000;
  text-decoration: none;
}

/* mark要素のデフォルトをセットし、色やフォントスタイルを変える場合はここで変更できるようにしています
また、mark要素とは、文書内の検索結果で該当するフレーズをハイライトして、目立たせる際に使用するようです。*/
mark {
  background-color: #ff9;
  color: #000;
  font-style: italic;
  font-weight: bold;
}

/*テキストに打ち消し線が付くようにしています*/
del {
  text-decoration: line-through;
}

/*IEではデフォルトで点線を下線表示する設定ではないので、下線がつくようにしています
また、マウスオーバー時にヘルプカーソルの表示が出るようにしています*/
abbr[title], dfn[title] {
  border-bottom: 1px dotted;
  cursor: help;
}

/*隣接するセルのボーダーを重ねて表示し、間隔を0に指定しています*/
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/*水平罫線のデフォルトである立体的な罫線を見えなくしています*/
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #cccccc;
  margin: 1em 0;
  padding: 0;
}

/*縦方向の揃え位置を中央揃えに指定しています*/
input, select {
  vertical-align: middle;
}

/*画像を縦に並べた時に余白が出ないように*/
img {
  vertical-align: top;
  font-size: 0;
  line-height: 0;
}

/*box-sizingを全ブラウザに対応*/
*, *:before, *:after {
  -webkit-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

*, *::before, *::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  -ms-text-size-adjust: none;
      text-size-adjust: none;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul[role=list], ol[role=list] {
  list-style: none;
}

body {
  min-height: 100vh;
  line-height: 1.5;
}

h1, h2, h3, h4, button, input, label {
  line-height: 1.1;
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

a:not([class]) {
  -webkit-text-decoration-skip: ink;
          text-decoration-skip-ink: auto;
  color: currentColor;
}

img, picture {
  max-width: 100%;
  display: block;
}

input, button, textarea, select {
  font: inherit;
}

textarea:not([rows]) {
  min-height: 10em;
}

:target {
  scroll-margin-block: 5ex;
}

body {
  background: url(../images/bg.jpg) no-repeat center center/cover;
  font-family: "line", "Noto Sans JP", "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 1.5;
  color: #222;
  background-color: #fff;
  overflow-x: hidden;
}

a {
  color: #222;
  text-decoration: none;
}

button, a {
  cursor: pointer;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}
button:hover, a:hover {
  opacity: 0.75;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  cursor: pointer;
}

.login-body {
  width: 100dvw;
  height: 100dvh;
  overflow: hidden;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}

.login-container {
  max-width: 100%;
  padding: 40px;
  background-color: #fff;
  -webkit-box-shadow: 0 0px 10px rgba(255, 255, 255, 0.5);
          box-shadow: 0 0px 10px rgba(255, 255, 255, 0.5);
}
.login-container h1 {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 0.005em;
  font-family: din-condensed, "Noto Sans JP", "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-size: 75px;
  font-weight: 900;
}
.login-container h1 span {
  color: #f4bc1b;
}
.login-container h1 img {
  width: 75%;
}
.login-container h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 16px;
  font-weight: 100;
}
.login-container form {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 10px;
}
.login-container form .field {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}
.login-container form .field label {
  width: 120px;
}
.login-container form .field input {
  -webkit-box-flex: 1;
  -webkit-flex-grow: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  padding: 0.5em 0.5em;
}
.login-container form .submit-btn {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-top: 30px;
}
.login-container form .submit-btn button {
  background-color: #f4bc1b;
  color: #fff;
  border-radius: 5px;
  border: none;
  padding: 0.75em 2em;
}

header.header {
  background-color: #f4bc1b;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 0.75em 1em;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  height: 60px;
}
header.header h1 {
  font-size: 24px;
  font-weight: 900;
  font-family: din-condensed, "Noto Sans JP", "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}
header.header .header-right {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
}

.index {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  padding: 20px 20px;
  gap: 20px;
}
.index-list {
  width: 80%;
}
.index-search {
  width: 20%;
}

.index-list-header {
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0.75em 1em;
  color: #fff;
}
.index-list-header .arrow-btn {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
}
.index-list-header__info {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
}
.index-list-header__info div {
  font-size: 14px;
  font-weight: 400;
}
.index-list-header__info a {
  background-color: #f4bc1b;
  border: 0;
  border-radius: 3px;
  display: inline-block;
  padding: 0 0.5em;
}
.index-list-table {
  background-color: #fff;
  border-radius: 3px;
  overflow-x: auto;
}
.index-list-table table {
  width: 100%;
  border-collapse: collapse;
}
.index-list-table table tr {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}
.index-list-table table thead {
  background-color: #f4bc1b;
  font-size: 13px;
  font-weight: 400;
}
.index-list-table table thead th {
  padding: 0.5em 0.5em;
  text-align: left;
}
.index-list-table table tbody tr:nth-child(even) {
  background-color: #f5f5f5;
}
.index-list-table table th, .index-list-table table td {
  padding: 0.5em 0.5em;
  margin: 0;
  border: none;
  border-bottom: 1px solid #ccc;
  font-size: 14px;
  white-space: nowrap; /* 横幅のMAXに達しても改行しない */
  overflow: hidden; /* 溢れた部分を隠す */
  text-overflow: ellipsis; /* 「…」と省略 */
}
.index-list-table table th.customer_no, .index-list-table table td.customer_no {
  width: 80px;
  text-align: center;
}
.index-list-table table th.customer_no a, .index-list-table table td.customer_no a {
  color: #1976d2;
}
.index-list-table table th.contract_summary, .index-list-table table td.contract_summary {
  width: 110px;
  text-align: left;
}
.index-list-table table th.contract_summary ul, .index-list-table table td.contract_summary ul {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  gap: 1px;
}
.index-list-table table th.contract_summary ul li, .index-list-table table td.contract_summary ul li {
  display: inline-block;
  background-color: #f4bc1b;
  color: #fff;
  border-radius: 10px;
  width: 1.5em;
  height: 1.5em;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 12px;
}
.index-list-table table th.contract_summary ul li[data-type=G], .index-list-table table td.contract_summary ul li[data-type=G] {
  background-color: #4285f4;
}
.index-list-table table th.contract_summary ul li[data-type=W], .index-list-table table td.contract_summary ul li[data-type=W] {
  background-color: #0f9d58;
}
.index-list-table table th.contract_summary ul li[data-type=L], .index-list-table table td.contract_summary ul li[data-type=L] {
  background-color: #f4a623;
}
.index-list-table table th.contract_summary ul li[data-type=O], .index-list-table table td.contract_summary ul li[data-type=O] {
  background-color: #888;
}
.index-list-table table th.status, .index-list-table table td.status {
  width: 120px;
  text-align: center;
}
.index-list-table table th.status span, .index-list-table table td.status span {
  display: inline-block;
  background-color: tomato;
  color: #fff;
  border-radius: 5px;
  padding: 0 0.5em;
  font-size: 13px;
  width: 80px;
}
.index-list-table table th.status span[data-status=進行中], .index-list-table table td.status span[data-status=進行中] {
  background-color: #1976d2;
}
.index-list-table table th.status span[data-status=契約中], .index-list-table table td.status span[data-status=契約中] {
  background-color: #1976d2;
}
.index-list-table table th.status span[data-status=見込み], .index-list-table table td.status span[data-status=見込み] {
  background-color: #2e7d32;
}
.index-list-table table th.status span[data-status=休眠], .index-list-table table td.status span[data-status=休眠] {
  background-color: #888;
}
.index-list-table table th.status span[data-status=月額], .index-list-table table td.status span[data-status=月額] {
  background-color: #6a1b9a;
}
.index-list-table table th.status span[data-status=解約], .index-list-table table td.status span[data-status=解約] {
  background-color: #d32f2f;
}
.index-list-table table th.status span[data-status=その他], .index-list-table table td.status span[data-status=その他] {
  background-color: #455a64;
}
.index-list-table table th.name1, .index-list-table table td.name1 {
  width: 250px;
}
.index-list-table table th.name2, .index-list-table table td.name2 {
  width: 250px;
}
.index-list-table table th.phone, .index-list-table table td.phone {
  width: 120px;
}
.index-list-table table th.contract_zip, .index-list-table table td.contract_zip {
  width: 120px;
}
.index-list-table table th.contract_address, .index-list-table table td.contract_address {
  width: 200px;
}
.index-list-table table th.representative_name, .index-list-table table td.representative_name {
  width: 100px;
}
.index-list-table table th.account_manager_name, .index-list-table table td.account_manager_name {
  width: 100px;
}
.index-list-table table th.update, .index-list-table table td.update {
  width: 100px;
  text-align: center;
}

.index-search {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 5px;
}
.index-search form {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 10px;
}
.index-search form .search-box {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}
.index-search form .search-box input {
  width: 100%;
  padding: 0.5em 0.5em;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
}
.index-search form .search-box .search-icon {
  color: #fff;
}
.index-search form .search-btns {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.index-search form .search-btns button {
  background-color: #f4bc1b;
  border-radius: 3px;
  border: none;
  width: 70%;
  padding: 0.5em;
  font-size: 14px;
}
.index-search form .search-btns .reset-btn {
  background-color: #ccc;
  color: #fff;
  width: 30%;
  font-size: 13px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.fake-input {
  background: #fff;
  border: 1px solid #cfd6df;
  border-radius: 6px;
  padding: 10px 12px;
  min-height: 42px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  line-height: 1.4;
  white-space: pre-wrap; /* 改行も表示したい場合 */
  word-break: break-word;
}

.label {
  color: #e8f1ff;
  font-size: 14px;
}

.show {
  padding: 20px;
  color: #222;
}

.show-info {
  background-color: rgba(0, 0, 0, 0.25);
  padding: 25px;
  border-radius: 5px;
}
.show-info__header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 16px;
  color: #fff;
}
.show-info__header h2 {
  font-size: 20px;
  font-weight: 700;
}
.show-info__actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}
.show-info__updated {
  font-size: 13px;
  color: #555;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 10px;
  line-height: 1;
  white-space: nowrap;
}
.show-info__body {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 20px;
  -webkit-box-align: stretch;
  -webkit-align-items: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}
.show-info__left, .show-info__right {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.show-info__right {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
}
.show-info__right .show-table {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  height: 100%;
}
.show-info__right .show-table tbody {
  height: 100%;
}
.show-info__right .show-table tr {
  height: 100%;
}
.show-info__right .show-table td {
  height: 100%;
  vertical-align: top;
  background-color: #fff;
}

.show-table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 3px;
}
.show-table tr {
  margin-bottom: 3px;
}
.show-table th, .show-table td {
  padding: 8px 10px;
  border: none;
  border-radius: 3px;
  font-size: 14px;
  vertical-align: top;
  background-color: #fff;
}
.show-table th {
  width: 120px;
  font-weight: 700;
  white-space: nowrap;
  background-color: #f4bc1b;
}

.show-memo-cell {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
}

.badge-list {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 3px;
}
.badge-list li {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 0.5em 1em;
  border-radius: 1000px;
  line-height: 1;
  color: #fff;
  font-size: 12px;
  background-color: #f4bc1b;
}
.badge-list li[data-type=G] {
  background-color: #4285f4;
}
.badge-list li[data-type=W] {
  background-color: #0f9d58;
}
.badge-list li[data-type=L] {
  background-color: #f4a623;
}
.badge-list li[data-type=O] {
  background-color: #888;
}

.status-badge {
  display: inline-block;
  color: #fff;
  border-radius: 5px;
  padding: 0 0.5em;
  font-size: 13px;
  background-color: tomato;
}
.status-badge[data-status=進行中] {
  background-color: #1976d2;
}
.status-badge[data-status=契約中] {
  background-color: #1976d2;
}
.status-badge[data-status=見込み] {
  background-color: #2e7d32;
}
.status-badge[data-status=休眠] {
  background-color: #888;
}
.status-badge[data-status=月額] {
  background-color: #6a1b9a;
}
.status-badge[data-status=解約] {
  background-color: #d32f2f;
}
.status-badge[data-status=その他] {
  background-color: #455a64;
}

.btn--edit {
  background-color: #f4bc1b;
  border: none;
  border-radius: 5px;
  padding: 6px 14px;
  font-size: 14px;
}
.btn--edit i {
  margin-right: 4px;
}

.btn--accent {
  background-color: #f4bc1b;
  border: none;
  border-radius: 5px;
  padding: 6px 14px;
  font-size: 14px;
}

.show-tabs {
  margin-top: 24px;
}
.show-tabs__nav {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 0;
  border-bottom: 2px solid #f4bc1b;
}
.show-tabs__btn {
  padding: 8px 20px;
  border: none;
  background: #eee;
  font-size: 14px;
  font-weight: 700;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
}
.show-tabs__btn.is-active {
  background-color: #f4bc1b;
}
.show-tabs__panel {
  display: none;
  padding: 16px 0;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 25px;
  border-radius: 0 0 5px 5px;
}
.show-tabs__panel.is-active {
  display: block;
}
.show-tabs__panel-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}
.show-tabs__table-wrap {
  overflow-x: auto;
}

.show-contracts-table {
  width: 100%;
  border-collapse: collapse;
}
.show-contracts-table thead {
  background-color: #f4bc1b;
}
.show-contracts-table thead th {
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
}
.show-contracts-table tbody tr {
  background-color: #f3f3f3;
}
.show-contracts-table tbody tr:nth-child(4n+1), .show-contracts-table tbody tr:nth-child(4n+2) {
  background-color: #fff;
}
.show-contracts-table tbody td {
  padding: 6px 10px;
  font-size: 14px;
  border-bottom: 1px solid #ddd;
  white-space: nowrap;
}
.show-contracts-table tbody td input[type=text] {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
}
.show-contracts-table .col-content {
  min-width: 220px;
  white-space: normal;
}
.show-contracts-table .col-date {
  width: 95px;
}
.show-contracts-table .col-status {
  width: 80px;
  text-align: center;
}
.show-contracts-table .col-period {
  min-width: 160px;
}
.show-contracts-table .col-price {
  width: 90px;
}
.show-contracts-table .col-actions {
  width: 130px;
  white-space: nowrap;
}

.contract-status {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.contract-status[data-status=進行中] {
  background-color: #1976d2;
}
.contract-status[data-status=完了] {
  background-color: #2e7d32;
}
.contract-status[data-status=休止中] {
  background-color: #888;
}

.show-history__form {
  margin-bottom: 20px;
}
.show-history__form form {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
      -ms-flex-align: start;
          align-items: flex-start;
}
.show-history__form form textarea {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  resize: vertical;
}
.show-history__timeline {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 12px;
}
.show-history__item {
  border-left: 3px solid #f4bc1b;
  padding: 10px 14px;
  background: #fafafa;
  border-radius: 0 6px 6px 0;
}
.show-history__meta {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 4px;
  font-size: 12px;
  color: #888;
}
.show-history__date {
  font-weight: 700;
}
.show-history__author {
  color: #555;
}
.show-history__actions {
  margin-left: auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 6px;
}
.show-history__body {
  font-size: 14px;
  line-height: 1.6;
}
.show-history__edit-form {
  margin-top: 6px;
}
.show-history__edit-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  resize: vertical;
}

.history-edit-btns {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.history-btn {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 4px;
  border: none;
  font-size: 12px;
  cursor: pointer;
}
.history-btn i {
  font-size: 11px;
}
.history-btn--edit {
  background-color: #e3f0ff;
  color: #1976d2;
}
.history-btn--edit:hover {
  background-color: #bbdefb;
}
.history-btn--delete {
  background-color: #fdecea;
  color: #d32f2f;
}
.history-btn--delete:hover {
  background-color: #ffcdd2;
}
.history-btn--save {
  background-color: #f4bc1b;
  color: #fff;
}
.history-btn--save:hover {
  opacity: 0.85;
}
.history-btn--cancel {
  background-color: #eee;
  color: #555;
}
.history-btn--cancel:hover {
  background-color: #ddd;
}

.form-page {
  padding: 20px;
  color: #fff;
}
.form-page__header {
  margin-bottom: 16px;
}
.form-page__header h2 {
  font-size: 20px;
  font-weight: 700;
}

.form-error-summary {
  background-color: #fdecea;
  border: 1px solid #d32f2f;
  border-radius: 5px;
  padding: 10px 14px;
  margin-bottom: 16px;
  color: #d32f2f;
  font-size: 14px;
}

.customer-form {
  width: 100%;
}

.form-body {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 20px;
  -webkit-box-align: stretch;
  -webkit-align-items: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}
.form-body__left {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}
.form-body__right {
  width: calc((100% - 20px) / 2);
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
}
.form-body__right .form-group--memo {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
}
.form-body__right .form-group--memo .form-row {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
}
.form-body__right .form-group--memo .form-field--wide {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
}
.form-body__right .form-group--memo textarea {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-height: 200px;
}

.form-group {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 20px;
  background-color: rgba(0, 0, 0, 0.21);
}
.form-group legend {
  font-size: 15px;
  font-weight: 700;
  padding: 0 8px;
  color: #f4bc1b;
}

.form-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}
.form-row:last-child {
  margin-bottom: 0;
}

.form-field {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}
.form-field input[type=text],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}
.form-field textarea {
  resize: vertical;
}
.form-field--wide {
  -webkit-box-flex: 2;
  -webkit-flex: 2;
      -ms-flex: 2;
          flex: 2;
}

.form-required {
  display: inline-block;
  background-color: #d32f2f;
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}

.form-checkbox-group {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 14px;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
  padding-top: 4px;
}

.form-checkbox {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  font-size: 14px;
  cursor: pointer;
}
.form-checkbox input[type=checkbox] {
  width: auto;
  margin: 0;
}
.form-checkbox__badge {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  background-color: #f4bc1b;
}
.form-checkbox__badge[data-type=G] {
  background-color: #4285f4;
}
.form-checkbox__badge[data-type=W] {
  background-color: #0f9d58;
}
.form-checkbox__badge[data-type=L] {
  background-color: #f4a623;
}
.form-checkbox__badge[data-type=O] {
  background-color: #888;
}

.form-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.btn--back {
  background-color: #888;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 6px 14px;
  font-size: 14px;
}
.btn--back i {
  margin-right: 4px;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.85);
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
      -ms-flex-align: start;
          align-items: flex-start;
  padding: 40px 20px;
  overflow-y: auto;
  color: #fff;
}
.modal-overlay.is-open {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.modal {
  background: rgba(0, 0, 0, 0.85);
  border-radius: 8px;
  width: 100%;
  -webkit-box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
          box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.modal__header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #ddd;
  background-color: #f4bc1b;
  border-radius: 8px 8px 0 0;
}
.modal__header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.modal__close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  padding: 0 4px;
}
.modal__close:hover {
  opacity: 0.7;
}
.modal__body {
  padding: 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}