html, body {
  scroll-behavior: smooth;
}

body {
  min-width: 1047px; /* 横幅:1027px+左右のmargin:10px、1027だと文字が左端にくっつく*/
  min-height: 100vh; /* スクロール不要な画面でフッターを一番下に表示するため */
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans JP', 'Noto Sans Mono';
  display: flex;
  flex-direction: column;
  line-height: 1.75;
}

button {
  font-family: 'Noto Sans JP', 'Noto Sans Mono';
}

header {
  width: 100%;
  height: auto;
  position: sticky; /* ヘッダーを上部に固定 */
  position: -webkit-sticky; /* Safariでヘッダーを上部に固定 */
  top: 0;
  background-color: #00118f;
  z-index: 1000;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 1027px;
  margin: 0 auto;
  height: 100%;
}

.header ul {
  padding: 5px;
  margin: 0;
}

.header .title {
  min-width: 100px;
  margin: 0;
  padding: 10px 0;
  justify-self: center;
  color: white;
  font-size: 16px;
}

.header a {
  text-decoration: none;
}

.header nav {
  height: auto;
}

footer {
  width: 100%;
  bottom: 0;
  padding-bottom: 30px;
  background-color: #37404a;
}

.footer {
  width: 1027px;
  margin: 0 auto;
  color: white;
  position: relative;
}

.footer .normal-text {
  color: white;
}

.footer .small-text {
  color: white;
}

.footer ul {
  padding-left: 10px;
  text-align: right;
}

.footer .float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer .float img {
  width: 25px;
  height: 25px;
}

/* iphoneだと指定しないとリンクになる */
#address a {
  color: white;
  text-decoration: none;
  pointer-events: none;
}

.not-allowed-js {
  color: red;
  font-weight: bold;
  padding: 20px 0;
}

.menu-group {
  list-style: none;
}

.menu-item {
  display: inline-block;
  padding: 5px;
}

.menu-item a,
.header .menu-item,
.footer .menu-item {
  color: white;
  font-size: 16px;
}

.footer .menu-item {
  text-decoration: underline;
}

.menu-item button {
  font-size: 16px;
}

.menu-item .secondary {
  width: 110px;
}

.menu-item .secondary label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu {
  display: none;
  position: absolute;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 5px;
  z-index: 1001;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu ul li {
  padding: 4px 2px;
  font-size: 16px;
}

.menu ul li a {
  text-decoration: none;
  color: #00118f;
}

ul li a {
  color: #00118f;
}

.content {
  max-height: auto;
  width: 1027px;
  margin: 20px auto;
  flex-grow: 1;
}


section {
  margin: 20px 0;
}

section ul {
  margin: 0;
  list-style: decimal;
}

section div {
  padding-left: 20px;
}

header .secondary {
  padding: 8px 6px;
}

.mobile {
  display: none;
}

.pc {
  display: block;
}

h1 {
  font-size: 36px;
  align-self: center;
}

h2#sub-title {
  font-size: 32px;
  margin: 64px 0 0 0;
}

.content h1 {
  white-space: normal;
}

h2, h3, h4 {
  margin-top: 0;
  margin-bottom: 5px;
}

h3 {
  font-size: 20px;
}

#faq h2 {
  margin-top: 25px;
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
}

.breadcrumb-item {
  margin-right: 5px;
  display: inline-flex;
  white-space: nowrap;
}

.breadcrumb-item::after {
  content: '>';
  margin-left: 5px;
  color: black;
  display: inline-flex;
  align-items: center;
  font-weight: normal;
}

.breadcrumb-item:last-child::after {
  content: '';
}

@media (max-width: 768px) {
    html, body {
    min-width: unset !important;
    width: 100% !important;
    overflow-x: hidden;
  }
  body {
    min-width: auto;
  }

  input::placeholder,
  textarea::placeholder {
    color: transparent;
  }

  .header, .footer, .content {
    width: 100%;
    padding: 20px;
    margin: 0;
    box-sizing: border-box;
  }

  header {
    position: relative;
  }

  .header {
    height: auto;
    margin: 0;
  }

  .header .title {
    padding: 0;
  }

  #header-menu {
    display: none;
  }

  #header-menu .menu-item {
    display: block;
    padding: 5px;
  }

  .header .menu-item {
    color: #00118f;
  }

  .footer ul {
    padding-left: 0;
  }

  .footer .menu-item a {
    font-size: 18px;
  }

  .content {
    margin: 10px 0;
  }

  #title {
    scroll-margin-top: 150px;
  }

  section {
    scroll-margin-top: 0;
    margin: 0;
  }

  .mobile {
    display: block;
  }

  .pc {
    display: none;
  }

  body::-webkit-scrollbar {
    display: none;
  }

  #mobile-menu {
    display: flex;
    background: none;
    border: none;
    width: 40px;
    color: white;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
  }

  #mobile-menu img {
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
  }

  h1 {
    margin: 10px;
  }

  h2, h3 {
    margin: 20px 0 20px 0;
  }

  h2 {
    font-size: 25px;
  }

  h3 {
    font-size: 20px;
  }

  .breadcrumb-item {
    white-space: normal;
    margin-right: 5px;
  }

  .breadcrumb-item::after {
    display: inline;
  }
}

.link {
  color: #00118f;
}

.primary, .secondary, .download {
  padding: 8px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  text-align: center;
}

.primary {
  background-color: #00118f;
  color: white !important;
  border: 2px solid #00118f;
}

.primary:disabled {
  background-color: gray;
}

.secondary {
  background-color: white;
  color: #00118f !important;
  border: 2px solid #00118f;
}

.download {
  background-color: #f47630;
  color: white !important;
  border: 2px solid #f47630;
}

.primary img, .secondary img {
  margin-left: auto;
}

.col-approve .primary,
.col-delete .primary {
  padding: 20px;
}

.icon-circle {
  background-color: white;
  border-radius: 50%;
  padding: 3px;
  border-width: 2px;
  border-style: solid;
  border-color: #00118f;
}

.icon-circle.orange {
  border-color: #f47630;
}

.button-container,
.button-container-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  margin: 10px 0;
}

.button-container-center {
  justify-content: center;
}

.button-container .column {
  width: 49%;
  margin-bottom: 10px;
}

.button-container .column button {
  width: 100%;
}

button,
.button-container > a {
  position: relative;
  width: 49%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  text-align: center;
}

button,
button *,
a,
a * {
  cursor: pointer;
}

button:disabled,
button:disabled * {
  cursor: default;
}

.button-container > a {
  text-decoration: none;
}

.content button {
  margin: 10px 0;
}

.content .button-container .column button {
  margin: 5px 0;
}

button.responsive-button,
a.responsive-button {
  width: auto;
  padding: 0 20px;
}

button.responsive-button img,
a.responsive-button img {
  margin-left: 10px;
}

.big-button {
  min-height: 60px;
  font-size: 18px;
}

.small-button {
  min-height: 60px;
  font-size: 18px;
}

.button-text {
  flex-grow: 1;
  font-size: 18px;
}

@media (max-width: 768px) {

  .button-container.row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .button-container.row > * {
    width: 100%;
  }

  .button-container .download {
    height: auto;
    width: 95%;
  }

  .button-container .column {
    width: 100%;
  }

  .button-container .big-button {
    margin: 5px 0 5px 0;
    width: 100%;
    justify-content: center;
  }

  .footer button,
  .button-container button {
    margin-top: 10px;
  }

  .big-button {
    min-height: 40px;
    font-size: 14px;
  }

  button.download {
    width: 100%;
    padding: 0 20px;
  }

  .button-container-center button {
    width: 100%;
    max-width: 300px;
    margin: 5px 0;
  }

}

.sub-content {
  background-color: #f1f8f8;
}

.content h1 {
  margin: 10px 0;
  color: #1a1a1c;
}

.content h3 {
  color: #00118f;
}

.bold {
  font-weight: bold;
}

.normal-text {
  color: #1a1a1c;
  font-size: 18px;
}

.normal-text-margin {
  color: #1a1a1c;
  font-size: 18px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .select-count.small-text {
    font-size: 14px;
  }

  .pagination.small-text {
    font-size: 14px;
  }

}

.small-text {
  color: #1a1a1c;
  font-size: 16px;
}

.small-text-margin {
  color: #1a1a1c;
  font-size: 16px;
  margin-top: 24px;
}

.gray-text {
  color: gray;
}

.annotation-text {
  font-size: 16px;
}

@media (max-width: 768px) {
  .annotation-text {
    padding: 10px 0;
  }

  .footer .normal-text {
    font-size: 25px;
  }
}

.p {
  padding: 10px 0;
}

.p2 {
  padding-top: 5px;
}

.p3 {
  padding-top: 20px;
  padding-bottom: 10px;
}

.p4 {
  padding: 0;
  margin: 0;
}

.m {
  margin-bottom: 10px;
}

.m2 {
  margin-top: 5px;
}

.menu-group li:last-child::after {
  display: none;
}

.date {
  padding-right: 20px;
  flex-shrink: 0;
}

.column {
  display: flex;
  flex-direction: column;
}

.announcement-column {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.row {
  display: flex;
  flex-direction: row;
}

.row-half {
  display: flex;
  flex-direction: row;
  width: 50%;
}

@media (max-width: 768px) {
  .row-half {
    width: 100%;
  }
}

.grid-container {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 3px;
}

.row h3 {
  width: 100px;
  flex-shrink: 0;
  padding: 8px;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .footer .row {
    display: block;
  }

  .grid-container {
    display: block;
    justify-content: space-between;
  }

  .footer .menu-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .footer .menu-item {
    box-sizing: border-box;
    min-width: 50%;
    flex: 1 1 auto;
    text-align: left;
    padding: 10px 10px 10px 0;
  }

  .row.pc {
    flex-direction: column;
  }

  .row h3 {
    width: auto;
    margin-right: 0;
  }
}

.required {
  background-color: red;
  color: white;
  height: 20px;
  width: 35px;
  padding: 0;
  margin: 0 5px;
  padding: 0 5px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.input-area {
  width: 70%;
}

.input-password {
  width: 48%;
}

.password-display {
  min-width: 50px;
  height: 45px;
  line-height: 45px;
}

@media (max-width: 768px) {
  .input-area {
    width: 100%;
  }

  .input-password {
    width: 100%;
  }
}

.input-field {
  background-color: #f2f2f2;
  border: 2px solid #00118f;
  padding: 12px 16px;
  border-radius: 5px;
  height: auto;
  width: 100%;
  font-size: 16px;
  box-sizing: border-box;
  position: relative;
}

.combo-box {
  position: relative;
  display: flex;
  display: inline-block;
}

.combo-box .input-field {
  padding-right: 50px;
}

.combo-box::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 49px;
  height: calc(100% - 6px);
  width: 2px;
  background-color: #00118f;
  transform: translate(-50%, -50%);
}

.arrow-down-icon {
  position: absolute;
  top: 35%;
  right: 14px;
  pointer-events: none;
}

.eye-icon {
    margin-left: 3px;
    margin-top: 8px;
}

.select-field {
  position: relative;
}

/* iphoneだと指定しないと青になる */
select {
  color: #1a1a1c;
}

.select-field::before, .select-field::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.select-field::before {
  content: "";
  position: absolute;
  top: 2px;
  right: 50px;
  width: 2px;
  height: calc(100% - 4px);
  background-color: #00118f;
}

.select-field::after {
  position: absolute;
  top: 30%;
  right: 30px;
  width: 8px;
  height: 8px;
  content: url('../img/arrow_down_fill_blue.svg')
}

.select-field select {
  background-color: #f2f2f2;
  border: 2px solid #00118f;
  padding: 12px 16px;
  border-radius: 5px;
  appearance: none;
  width: 100%;
  height: auto;
  font-size: 16px;
  cursor: pointer;
}

.accordion {
  max-width: 100vh;
  margin-bottom: 10px;
  border: 2px solid #00118f;
  border-radius: 5px;
  transition: border 1s ease-in-out;
}

.accordion summary {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 5px 10px;
  color: #1a1a1c;
}

.accordion summary img {
  margin-left: auto;
}

.accordion p {
  display: flex;
  transform: translateY(-10px);
  opacity: 0;
  margin: 0;
  padding: 5px 10px;
  color: #1a1a1c;
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
  overflow-wrap: break-word;
}

.accordion[open] p {
  transform: none;
  opacity: 1;
}

.accordion[open] summary img {
  content: url('../img/arrow_up_fill_blue.svg') /* cssからの相対パス */
}

.question {
  background-color: blue;
  color: white;
  border-radius: 50%;
  padding: 5px;
  margin-right: 1em;
  min-width: 40px;
  height: 24px;
  text-align: center;
}

.answer {
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 5px;
  margin-right: 1em;
  min-width: 40px;
  height: 24px;
  text-align: center;
}

.error-msg,
.auth-caution-msg {
  color: red;
  display: none;
}

.table-container {
  overflow-x: auto;
}

@media (max-width: 768px) {
  .table-container img {
    max-width:initial;
  }

  .table-container::-webkit-scrollbar {
    height:10px;
  }

  .table-container::-webkit-scrollbar-track {
    background:white;
  }

  .table-container::-webkit-scrollbar-thumb {
    background:lightgray;
  }
}

.table-container-get {
  overflow-x: auto;
  width: 50%;
}

@media (max-width: 768px) {
  .table-container-get {
    overflow-x: auto;
    width: 100%;
  }

  .table-container-get img {
    max-width:initial;
  }

  .table-container-get::-webkit-scrollbar {
    height:10px;
  }

  .table-container-get::-webkit-scrollbar-track {
    background:white;
  }

  .table-container-get::-webkit-scrollbar-thumb {
    background:lightgray;
  }
}

table {
  width: 100%;
  margin: 20px 0;
  border: 1px solid black;
}

table .row {
  cursor: pointer;
}

th, td {
  border: 1px solid black;
  padding: 8px;
  text-align: left;
}

th {
  background-color: lightgray;
  color: black;
  justify-content: space-between;
}

th .row {
  text-decoration: underline;
}

th .sort-button {
  background-color: transparent;
  border: none;
  margin: 0 0 0 auto;
  padding: 0;
  width: auto;
  display: none;
}

.highlight {
  background-color: #d9e6ff;
}

.select-count {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 20px auto 0 0;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 20px 0 0 0;
}

.pagination .primary {
  width: 40px;
  margin: 0 5px;
}

.pagination .primary img {
  margin-left: 0;
}

.pagination span {
  margin: 0 5px;
}

.filter {
  display: flex;
  height: auto;
  width: 70%;
  border: 1px solid #1a1a1c;
  margin: 10px 0;
  padding: 10px 5px 20px 5px;
  position: relative;
}

.filter span {
  align-items: flex-start;
}

.filter div {
  padding-top:  10px;
}

.filter .date-and-time,
.filter .hour,
.filter .minute,
.filter .second {
  padding-top: 0;
}

.filter .center {
  display: flex;
  height: 100%;
  justify-content: center;
  margin: auto 0;
  padding-top: 20px;
}

@media (max-width: 768px) {
  .filter {
    width: 95%;
  }
}

.date-search-form .column {
  margin: 0 5px;
  width: 30%;
}

.date-search-form button {
  height: 60px;
  width: 30%;
  margin: auto 10px auto auto;
}

input[type="date"] {
  background-color: #f2f2f2;
  border: 2px solid #00118f;
  font-size: 16px;
  padding: 12px 16px;
  margin: auto 20px;
  border-radius: 5px;
  width: auto;
  height: auto;
  cursor: pointer;
}

@media (max-width: 768px) {
  .date-search-form label {
    margin-top: 5px;
  }

  input[type="date"] {
    width: 130px;
  }
}


.date-and-time {
  display: flex;
  align-items: center;
}

.date-and-time .year label {
  width: 120px;
}

.date-and-time label {
  width: 100px;
}

.date-and-time .normal-text {
  margin: auto 20px auto 5px;
}

@media (max-width: 768px) {
  .date-and-time {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

.select-file {
  position: relative;
  display: inline-block;
  height: 50px;
}

.select-file input[type="file"] {
  width: 100%;
  height: 100%;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  font-size: 16px;
}

.select-file button {
  position: absolute;
  right: 10px;
  top: 8px;
  padding: 5px;
  margin: 0;
  background-color: #00118f;
  color: #fff;
  border: none;
  cursor: pointer;
  text-align: center;
  width: 50px;
  z-index: 1;
}

.select-file .error-msg {
  margin-top: 15px;
}

input::-ms-reveal {
  display: none;
}

.help {
  color: gray;
}

.help .help-red {
  color: red;
}

input::placeholder,
textarea::placeholder {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  box-sizing: border-box;
  padding-right: 5px;
}

.item-text {
  color: #00118f;
  font-size: 23px;
}

.item-text-margin {
  color: #00118f;
  font-size: 23px;
  margin-top: 24px;
}

ol ul {
  margin-left: 20px;
  padding-left: 0;
  list-style-type: disc;
}

.paren-counter {
  counter-reset: item;
  list-style: none;
  margin-left: 1em;
}

.paren-counter li {
  counter-increment: item;
  position: relative;
}

.paren-counter li::before {
  content: "(" counter(item) ") ";
  position: absolute;
  left: -2em;
}

/* 全体 */
.CheckBox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: fit-content;
  font-size: 16px;
  cursor: pointer;
}

/* 枠 */
.CheckBox-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12.5%;
  flex-shrink: 0;
  margin-bottom: 24px;
}

/* input 本体 */
.CheckBox-input {
  margin: 0;
  appearance: none;
  width: 75%;
  height: 75%;

  /* 色 */
  --_base-color: #fff;
  --_accent-color: #00118f;
  --_border-color: #6b7280;

  background-color: var(--_base-color);
  border: 3px solid var(--_border-color);
  border-radius: 12.5%;
}

/* チェック時 */
.CheckBox-input:checked {
  background-color: var(--_accent-color);
  border-color: var(--_accent-color);
}

/* チェックマーク */
.CheckBox-input::before {
  display: none;
  width: 27px;
  height: 27px;
  content: "";
  background-color: #fff;
  transform-origin: left top;
  transform: scale(calc(27 / 14));
}

/* チェック形状 */
.CheckBox-input:checked::before {
  display: block;
  clip-path: path(
    "M5.6,11.2L12.65,4.15L11.25,2.75L5.6,8.4L2.75,5.55L1.35,6.95L5.6,11.2Z"
  );
}

/* hover */
.CheckBox-input:hover {
  border-color: #000;
}

/* フォーカス */
.CheckBox-input:focus {
  outline: 4px solid #000;
  outline-offset: 2px;
}

/* ラベル微調整 */
.CheckBox-label {
  padding-top: 10px;
  user-select: none;
}

#loginLink.disabled {
  pointer-events: none;
  opacity: 0.5;
  filter: grayscale(60%);
  cursor: not-allowed;
}