@font-face {
  font-family: "Noto Sans JP";
  src: url("fonts/woff/NotoSansJP-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans JP";
  src: url("fonts/woff/NotoSansJP-Medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans JP";
  src: url("fonts/woff/NotoSansJP-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

/* No.1 */
:root {
  --Sumi-100: #f1f1f4;
  --Sumi-300: #d8d8db;
  --Sumi-500: #949497;
  --Sumi-900: #1a1a1c;
}
body {
  color: var(--Sumi-900);
  background-color: #ffffff;
}

/* No.2 */
html {
  font-family: "Noto Sans JP", sans-serif;
}

/* No.3 */
:root {
  /* line-height */
  --lh-s: 1.4;
  --lh-m: 1.5;
  --lh-l: 1.7;
  /* letter-spacing */
  --ls-s: 0.02em;
  --ls-m: 0.04em;
  /* font-weight */
  --fw-r: 400;
  --fw-m: 500;
  --fw-b: 700;
}
h1 {
  font-size: 36px;
  font-weight: var(--fw-r);
  line-height: var(--lh-s);
  letter-spacing: var(--ls-m);
}
h2 {
  font-size: 32px;
  font-weight: var(--fw-r);
  line-height: var(--lh-m);
  letter-spacing: var(--ls-m);
}
h3 {
  font-size: 28px;
  font-weight: var(--fw-r);
  line-height: var(--lh-m);
  letter-spacing: var(--ls-m);
}
h4 {
  font-size: 24px;
  font-weight: var(--fw-r);
  line-height: var(--lh-m);
  letter-spacing: var(--ls-m);
}
h5 {
  font-size: 20px;
  font-weight: var(--fw-r);
  line-height: var(--lh-m);
  letter-spacing: var(--ls-m);
}
h6 {
  font-size: 16px;
  font-weight: var(--fw-b);
  line-height: var(--lh-l);
  letter-spacing: var(--ls-m);
}

/* No.4 */
body {
  font-size: 16px;
  font-weight: var(--fw-r);
  line-height: var(--lh-l);
  letter-spacing: var(--ls-m);
}

/* No.5 */
body {
  margin: auto;
  max-width: 1120px;
}
@media (max-width: 767px) {
  body {
    margin: auto 16px;
  }
}

/* No.6 */
h1 {
  margin-top: 64px;
  margin-bottom: 24px;
}
h2 {
  margin-top: 64px;
  margin-bottom: 24px;
}
h3 {
  margin-top: 40px;
  margin-bottom: 24px;
}
h4 {
  margin-top: 40px;
  margin-bottom: 16px;
}
h5 {
  margin-top: 40px;
  margin-bottom: 16px;
}

/* No.8 */
:root {
  --Sea-800: #0017c1;
  --Sea-800-dk13: #000f7f;
  --Sea-900: #000082;
  --Wood-600: #cd820a;
}
a {
  margin: 2px;
  text-decoration: underline;
  color: var(--Sea-800) !important;
}
/*
a:focus {
	margin: 0px;
	border: 2px solid var(--Wood-600);
	border-radius: 4px;
}
*/
a:visited,
a:hover,
a:active {
  color: var(--Sea-900);
}
a[target="_blank"]:after {
  margin: 4px;
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("./125_arr_hoso.png");
  background-size: contain;
  vertical-align: middle;
}

/* No.9 */
button {
  background-color: var(--Sea-800);
  font-size: 16px;
  font-weight: var(--fw-b);
  line-height: var(--lh-m);
  min-width: 96px;
  height: 42px;
}
button:hover:enabled {
  background-color: var(--Sea-800-dk13);
}
button:focus:enabled {
  background-color: var(--Sea-800-dk13);
}
button:active:enabled {
  background-color: var(--Sea-800-dk13);
}
button.secondary {
  font-size: 16px;
  font-weight: var(--fw-b);
  line-height: var(--lh-m);
  min-width: 96px;
  height: 42px;
}

/* No.11 */
input {
  margin: 1px;
}
input:focus {
  margin: 0px;
}

/* No.12 */
.tableContainer {
  padding: 10px;
  overflow-x: auto;
}

/* No.13 */
details > summary {
  font-size: 20px;
  font-weight: var(--fw-r);
  text-decoration: none;
  text-align: left;
  color: var(--Sumi-900);
  box-shadow: unset;
  margin: unset;
  padding-left: 40px;
  background-color: unset;
  border-bottom: solid 2px var(--Sumi-300);
}
details > summary:hover {
  background-color: var(--Sumi-100);
}
details > summary:before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px dotted var(--Sumi-500);
  border-radius: 4px;
}
details > summary:after {
  content: "";
  width: 20px;
  height: 20px;
  border: 0;
  border-bottom: solid 2px var(--Sumi-900);
  border-right: solid 2px var(--Sumi-900);
  position: absolute;
  top: 50%;
  left: unset;
  right: 30px;
  margin-top: -12px;
  transform: rotate(45deg);
}
details[open] > summary {
  background-color: var(--Sumi-100);
}
details[open] > summary:after {
  content: "";
  width: 20px;
  height: 20px;
  border: 0;
  border-bottom: solid 2px var(--Sumi-900);
  border-right: solid 2px var(--Sumi-900);
  position: absolute;
  top: 50%;
  left: unset;
  right: 30px;
  margin-top: 0px;
  transform: rotate(225deg);
}

/* 装飾に関する記述 */
h1#title {
  margin: 0px 0px 24px;
  font-size: 28px;
  background-image: url("/css/titlebase.jpg");
  background-color: rgba(255, 255, 255, 0.5);
  background-blend-mode: lighten;
  height: 200px;
  position: relative;
}
h1#title img#aichilogo {
  position: absolute;
  right: 0px;
  bottom: 0px;
}
body {
  text-indent: unset;
}
h2 {
  box-shadow: unset;
  border-radius: unset;
  border: 0px;
  border-left: solid 10px var(--Sea-800);
  padding: 0px 20px;
  background: unset;
}
h5 {
  margin-top: 10px;
}
p.right {
  text-align: right;
}
ol {
  margin: 10px 10px;
}
ul {
  margin-left: 40px;
}
div.detailSecondary {
  margin: 0px 40px;
}
details.secondary > summary {
  font-size: 16px;
  font-weight: var(--fw-r);
  text-decoration: none;
  text-align: left;
  color: var(--Sumi-900);
  box-shadow: unset;
  margin: 0px;
  padding-left: 40px;
  background-color: unset;
  border-bottom: solid 2px var(--Sumi-300);
}
details.secondary > summary:hover {
  background-color: var(--Sumi-100);
}
details.secondary > summary:after {
  content: "";
  width: 20px;
  height: 20px;
  border: 0;
  border-bottom: solid 2px var(--Sumi-900);
  border-right: solid 2px var(--Sumi-900);
  position: absolute;
  top: 50%;
  left: unset;
  right: 30px;
  margin-top: -12px;
  transform: rotate(45deg);
}
details.secondary[open] > summary {
  background-color: var(--Sumi-100);
}
details.secondary[open] > summary:after {
  content: "";
  width: 20px;
  height: 20px;
  border: 0;
  border-bottom: solid 2px var(--Sumi-900);
  border-right: solid 2px var(--Sumi-900);
  position: absolute;
  top: 50%;
  left: unset;
  right: 30px;
  margin-top: 0px;
  transform: rotate(225deg);
}
details p {
  margin: 5px 40px 20px;
}
dt {
  /*
	margin-left: 40px;
*/
  margin-left: 2em;
}
dd {
  /*
	margin-inline-start: 80px;
*/
  margin-inline-start: 1em;
}
dl {
  margin-bottom: 0.5em !important;
}
footer {
  text-align: right;
}
pre {
  margin: 10px;
  padding: 6px 10px;
  font-family: "Noto Sans JP";
}

/* jquery-ui.cssを上書き */
.ui-widget {
  font-family: unset;
}
.ui-widget.ui-widget-content {
  border: unset;
}
.ui-tabs .ui-tabs-nav li.ui-tabs-active,
.ui-tabs .ui-tabs-nav li.ui-state-focus {
  background-color: #fff;
  border-color: var(--Sea-800) #f0f0f0 #fff;
  border-style: solid;
  border-width: 4px 1px 0px;
  color: var(--Sumi-900);
}
.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,
.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,
.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor {
  border-bottom: 0px;
}
.ui-state-active a,
.ui-state-active a:link {
  color: var(--Sumi-900);
}

/* datatables.min.cssを上書き */
table.dataTable {
  border-collapse: collapse;
}

/* マップあいちについてを開く／閉じるの設定 */
h2#about > button {
  display: inline;
  position: relative;
  left: 20px;
  top: -7px;
}
details {
  display: ; /* デフォルトで開く */
}

/* scrollTopボタン */
img#scrollTop {
  width: 64px;
  position: fixed;
  bottom: 20px;
  right: 40px;
}
img#scrollTop:hover {
  opacity: 50%;
}

/* マップ一覧のテーブル */
.tableContainer th {
  white-space: normal; /* ヘッダセルのテキスト折り返しを許可 */
}
.tableContainer th:nth-child(4) {
  width: 60px !important; /* マップ更新日のカラム幅を固定 */
}

/* mobileでの表示を調整（このセクションは最後に） */
@media (max-width: 767px) {
  body {
    font-size: 14px;
    margin: auto;
  }
  h1#title {
    padding: 10px;
    height: 120px;
    margin: 0px 0px 24px;
    font-size: 20px;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.5);
    background-blend-mode: lighten;
  }
  h1#title > img {
    height: 50px;
  }
  h1#title > img#aichilogo {
    height: 40px;
    margin-bottom: 15px;
  }
  button {
    font-size: 14px;
  }
  button.secondary {
    font-size: 14px;
  }
  h1 {
    font-size: 24px;
    font-weight: var(--fw-r);
    line-height: var(--lh-s);
    letter-spacing: var(--ls-m);
  }
  h2 {
    font-size: 20px;
    font-weight: var(--fw-r);
    line-height: var(--lh-m);
    letter-spacing: var(--ls-m);
  }
  h3 {
    font-size: 16px;
    font-weight: var(--fw-r);
    line-height: var(--lh-m);
    letter-spacing: var(--ls-m);
  }
  h4 {
    font-size: 16px;
    font-weight: var(--fw-r);
    line-height: var(--lh-m);
    letter-spacing: var(--ls-m);
  }
  h5 {
    font-size: 14px;
    font-weight: var(--fw-r);
    line-height: var(--lh-m);
    letter-spacing: var(--ls-m);
  }
  h6 {
    font-size: 14px;
    font-weight: var(--fw-b);
    line-height: var(--lh-l);
    letter-spacing: var(--ls-m);
  }
  details {
    margin: 10px auto;
  }
  details.secondary {
    margin: 10px;
  }
  details > summary {
    font-size: 14px;
  }
  details.secondary > summary {
    font-size: 14px;
  }
  div.detailSecondary {
    margin: 0px 10px;
  }
  .ui-tabs .ui-tabs-nav .ui-tabs-tab a.ui-tabs-anchor {
    padding: 1px;
  }

  /* マップ一覧のテーブルの組み方を変更 */
  .tableContainer {
    overflow-x: none;
  }
  .tableContainer table {
    width: 100% !important;
  }
  .tableContainer thead th {
    display: ; /* 項目ソートを実装すべくヘッダ行を復活させるために指定なし */
  }
  .tableContainer th {
    /* display: block; */ /* 次のセルを回り込ませる設定 */
    white-space: normal; /* ヘッダセルのテキスト折り返しを許可 */
    word-break: break-all; /* ヘッダセルのテキスト折り返しを許可（単語の途中でも） */
  }
  .tableContainer th:first-child {
    color: #ffffff;
    background-color: var(--Sea-800);
    margin-top: 5px;
  }
  .tableContainer th:nth-child(1) {
    display: none; /* モバイル時にIDのカラムを非表示 */
    border: 0px;
  }
  .tableContainer th:nth-child(1):before {
    content: "ID : ";
  }
  .tableContainer th:nth-child(2) {
    display: ; /* モバイル時にマップ名のカラムを表示 */
    border-right: 0px;
    width: 60%;
  }
  .tableContainer th:nth-child(2):before {
    /* content: "マップ名 : "; */ /* 指摘により項目名を表示しない */
  }
  .tableContainer td {
    /* display: block; */ /* 次のセルを回り込ませる設定 */
  }
  .tableContainer th:nth-child(3) {
    display: none; /* モバイル時に作成所属のカラムを非表示 */
  }
  .tableContainer td:nth-child(3) {
    display: none; /* モバイル時に作成所属のカラムを非表示 */
  }
  .tableContainer td:nth-child(3):before {
    content: "作成所属 : ";
  }
  .tableContainer td:nth-child(4) {
    display: ; /* モバイル時に更新日のカラムを非表示→表示に変更 */
    width: 25%;
  }
  .tableContainer td:nth-child(4):before {
    /* content: "マップ更新日 : "; */
  }
  .tableContainer td:nth-child(4):after {
    /* content: " 更新"; */
  }
  .tableContainer th:nth-child(5) {
    display: none; /* モバイル時にカテゴリのカラムを非表示 */
  }
  .tableContainer td:nth-child(5) {
    display: none; /* モバイル時にカテゴリのカラムを非表示 */
  }
  .tableContainer td:nth-child(5):before {
    content: "カテゴリ : ";
  }
  .tableContainer td:nth-child(6) {
    border-left: 0px;
    margin-bottom: 10px;
    width: 15%;
  }
  .tableContainer td:nth-child(6):before {
    /*	content: "詳細・問い合わせ先 : "; */
  }

  /* index.html内のjavascriptと連動してbefore/after要素を削除するための記述 */
  .thNoBeforeAfter:before {
    display: none !important;
  }
  .thNoBeforeAfter:after {
    display: none !important;
  }

  .tableContainer td > form {
    display: inline;
  }
  /* 詳細ボタン */
  form {
    margin: 0px;
  }
  button.secondary {
    min-width: 0px;
    height: 32px;
  }
  table.dataTable.display > tbody > tr:first-child > th:first-child {
    border-top: 1px solid #000000;
  }
  dt {
    margin-left: 10px;
  }
  dd {
    margin-inline-start: 20px;
  }

  h2#about > button {
    top: -2px;
  }
  .dataTables_paginate {
    margin-bottom: 10px;
  }

  /* カテゴリリストをタブじゃなくてボタンっぽくする */
  ul.ui-tabs-nav {
    border: 0px;
    background: none;
  }
  .ui-tabs .ui-tabs-nav li {
    border: 1px solid #666666;
    border-radius: 3px;
    margin: 2px 3px;
  }
  .ui-tabs .ui-tabs-nav li.ui-tabs-active,
  .ui-tabs .ui-tabs-nav li.ui-state-focus {
    border-width: 1px;
    border-color: #666666;
  }
  .ui-tabs .ui-tabs-nav .ui-tabs-tab a.ui-tabs-anchor {
    border-bottom: 0px;
  }
}

/* 詳細ページ */
table.mapInfo {
  margin-bottom: 50px;
}
table.mapInfo ol {
  margin: 0px;
}
table.mapInfo ol li {
  margin: 0px;
}
@media (max-width: 767px) {
  table#layer {
    overflow-x: none;
    width: 100% !important;
  }
  table#layer th {
    display: none;
    border-bottom: none;
  }
  table#layer td {
    display: block;
    border-bottom: none;
  }
  table#layer td:nth-child(1)::before {
    content: "ID : ";
  }
  table#layer td:nth-child(2)::before {
    content: "レイヤ名 : ";
  }
  table#layer td:nth-child(3)::before {
    content: "図形の種類 : ";
  }
  table#layer td:nth-child(4)::before {
    content: "属性情報 : ";
  }
  table#layer tr:last-child td:last-child {
    /* 最終行最終セルだけ */
    border-bottom: 1px solid #1a1a1c;
  }
}

@media screen and (max-width: 767px) {
  .dataTables_wrapper .dataTables_filter {
    margin-top: 0;
    text-align: right;
    float: right;
  }
  .dataTables_wrapper .dataTables_length {
    float: left;
    text-align: left;
  }
  .dataTables_wrapper .dataTables_length select {
    margin: 0 !important;
  }
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    float: left;
    width: 50%;
  }
  .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0 7px;
  }
  label {
    /*		padding-left:1.3em;*/
  }
  .tableContainer {
    padding: 2px !important;
  }
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    float: left;
    width: 50%;
  }
}

.popup {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0vw;
  left: 0vh;
  z-index: 9997 !important;
  display:none;
}
.popup-bg {
  background-color: #1119;
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 9998 !important;
}
.popup-content {
  background-color: #fff;
  width: 80vw;
  height: 70vh;
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 5px;
  transform: translate(-50%, -60%);
  z-index: 9999 !important;
}
.popup-close {
  text-align: center;
  position: absolute;
  bottom: 1em;
  width: 100%;
}

/* モバイルCSS状態でリロードして画面幅を大きくするとtableのelement styleにwidth: 0pxが入ってしまう対策（多分dataTable.jsとの衝突） */
/* この記述はモバイル対応の後、つまりほんとうの最後の最後に記述してください */
table.dataTable {
  width: 100% !important;
}
