:root {
  --color_main: rgb(247, 248, 252);
  --color_sub: rgb(21, 96, 130);
  --color_button: rgb(124, 149, 161);
  --color_point: rgb(190, 75, 80);
  --color_neutral: rgb(213, 214, 220);
  --color_inv: rgb(255, 255, 255);
  --color_error: rgb(210, 110, 115);
  --color_error_bg: rgb(230, 162, 165);
  --height_input: 52px;
  --height_standard: 1.7em;
  --size_font: 16px;
  --size_space: 1.5em;
  --size_header_height: 7vh;
}

html,
body {
  background-color: var(--color_main);
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0;
  font-size: var(--size_font);
  font-family: "Zen Kaku Gothic", "Yu Gothic M", sans-serif;
  line-height: var(--height_standard);
}

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

main{
  flex: 1;
}

main,
.header {
  max-width: 700px;
  width: 90%;
  /*  margin: 16vh auto 64px; */
  margin: calc(var(--size_header_height) + 4em) auto;

  @media(min-width: 1020px) {
    width: 70%;
    min-width: 700px;
    max-width: 1200px;
  }
}

@media (max-width: 719px) {
  main {
    width: 720px;
    margin: calc(var(--size_header_height) + 4em) 20px;
  }
}

@media (min-width: 1981px) {
  main {
    width: 1980px;
    margin: calc(var(--size_header_height) + 4em) auto;
  }
}

section {
  /*  margin-bottom: 60px; */
  margin-bottom: calc(var(--size_space)*2);
}

main .flex {
  align-items: center;

  @media(min-width: 1020px) {
    display: flex;
  }
}

.logo {
  margin: 0 auto var(--size_space);
}

.logo img {
  width: 200px;
  display: block;
  margin: 0 auto;
}

img {
  max-width: 100%;
  height: auto;
}


h1 img {
  width: 200px;
}

h2 {
  margin: 0 0 1em;
  background-color: var(--color_sub);
  color: var(--color_main);
  line-height: calc(var(--size_font) * 5);
  font-size: calc(var(--size_font) * 1.3);
  font-weight: 600;
  padding-left: calc(var(--size_font) * 1.6);
}

h2+div,
.pagerInfo+div,
.err_box+div,
h2+div>p,
h2+p {
  margin-bottom: var(--size_space);
}

h3 {
  font-size: calc(var(--size_font)*1.2);
  line-height: calc(var(--size_font)*4);
  border-left: var(--color_sub) 10px double;
  margin: 0 0 var(--size_space);
  background-color: var(--color_inv);
}

h3+.dis_box{
  margin-bottom: var(--size_space);
}

h3::before {
  content: "";
  margin-right: 1.2em;
}

a {
  text-decoration: none;
  color: inherit;
}

p {
  margin: 0;
  overflow-wrap: anywhere;
  /*  margin: 5px 0; */
  font-size: var(--size_font);
  line-height: var(--height_standard);
}

p:has(+.form),
p:has(+.dis_box),
p:has(+.item_wrap) {
  margin-bottom: var(--size_space);
}

/*
p:last-of-type{
  margin-bottom: 0;
}
*/

select {
  box-sizing: border-box;
  border: none;
  outline: none;
  margin: 0;
  padding: 0;
  line-height: var(--height_input);
  border-bottom: 2px solid var(--color_neutral);
}

button {
  width: 100%;
  height: var(--height_input);
  line-height: var(--height_input);
  font-size: var(--size_font);
  font-weight: 400;
  /*
  margin: 10px 0;
  @media(min-width: 1020px){
    margin-bottom: 5px;
  }
*/
}

p span {
  font-size: 0.8em;
  padding: 0;
}

label span,
label p {
  font-size: var(--size_font);
}

.required {
  color: var(--color_inv);
  background-color: var(--color_point);
  border-radius: 5px;
  margin-left: 0.5em;
  padding: 1px 0.5em;
}

.exc {
  font-size: var(--size_font);
  color: inherit;
}

input[type="file"] {
  display: none;
}

.material-symbols-outlined {
  margin: 5px;
  padding: 10px;
  text-align: center;
  cursor: default;
}

.file_upload_button,
.file_delete_button {
  display: none;
}

option {
  width: inherit;
}


/****ヘッダー部分*****************/
header .flex {
  display: flex;
  align-items: center;
}

header {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid var(--color_sub);
  background-color: var(--color_inv);
}

.header {
  margin: 0 auto;
  padding: 20px 50px;
  height: var(--size_header_height);
  justify-content: space-between;
  /* border-radius: 5px; */
}

.header .material-symbols-outlined {
  margin-right: 1em;
  width: 3.5em;
  height: 3.8em;
  align-self: center;
}

.header .material-symbols-outlined p {
  line-height: .5em;
}

.header .material-symbols-outlined:last-child {
  margin-right: 0;
}

.header .material-symbols-outlined:hover {
  background-color: var(--color_button);
  /* color: var(--color_inv); */
  border-radius: 5px;
}

/********ホーム部分*************/

.home_menu {
  margin-bottom: var(--size_space);
}

.home_item {
  display: flex;
  align-items: center;
  min-width: 15em;
}

.home_item img {
  margin-right: .5em;
}

.home_menu .form:has(.type2) {
  display: block;
}

@media (min-width: 768px) {
  .home_item {
    margin: 0 1em 0 0;
  }

  .home_menu {
    display: flex;
  }

  .home_menu>div {
    flex: 1;
    min-width: 0;
  }

  .home_menu .form .type4 {
    margin: calc(var(--size_space)*0.25) 0;
  }
}

@media(min-width: 1020px) {
  .home_menu .form {
    display: flex;
  }

  .home_menu .form .type2 {
    flex: 0 0 calc((100% - 15px) /2);
  }

  .home_menu .form button {
    width: 50%;
  }

  .home_menu .form:has(.type2) {
    display: flex;
  }
}

/********コントロール部分サンプル*************/
.textbox,
textarea,
select,
.dropdown,
.dt-field,
.d-field,
.t-field {
  border: none;
  outline: none;
  border: 1px solid var(--color_neutral);
  border-bottom: 2px solid var(--color_neutral);
  box-sizing: border-box;
  height: var(--height_input);
  border-radius: 5px;
  font-size: var(--size_font);
  /*  padding: 12px; */
  padding: 0 var(--size_space);
}

textarea {
  padding: var(--size_space);
  height: 10em;
  overflow: auto;
  resize: none;
}

.textbox,
textarea,
select,
.dropdown {
  width: 100%;
}

.notice {
  font-size: 0.7em;
  padding: 0;
  margin: 0.2em 0 0.5em;
  height: .5em;
}

.textbox:last-of-type {
  margin-right: 0;
}

.textbox:focus,
.select:focus {
  border-bottom-color: var(--color_point);
}

.midium {
  width: 15em;
}

/*
.dt-field,
.d-field,
.t-field{
  padding: 5px;
}
*/

.item_name .flex .dt-field {
  width: calc(50% - 1em);
  min-width: 0;
}

/* @media (min-width: 1020px) and (max-width: 1055px){
  .dt-field{
    width: calc((100% - 2em) / 2);
    min-width: 0;
  }
} */

.four {
  /*  width: 4em; */
  width: calc(var(--size_space)*4);
}

.mini {
  width: 2em;
}

input[type="checkbox"]{
  transform: scale(1.2);
}

input[type="checkbox"],
input[type="radio"] {
  margin-right: 1em;
}

.label_text {
  display: inline-block;
  min-width: 5em;
}

.choice {
  padding: 0 1em;
}

.choice label {
  margin-right: 2em;
}

table {
  min-width: 400px;
  width: 100%;
  border-collapse: collapse;
  /*  margin-bottom: 40px; */
}

.scroll {
  overflow-x: auto;
  /* 横スクロールを有効化 */
  overflow-y: hidden;
  /* 縦スクロールは不要 */
  white-space: nowrap;
  /* 行が折り返されないようにする */
}

th,
td {
  padding: 3px 12px;
  border-bottom: 1px solid var(--color_neutral);
  height: var(--height_input);
  text-align: center;
}

th {
  background-color: var(--color_neutral);
}

table td select {
  display: block;
  margin: 0 auto;
  text-align: center;
}

.wide {
  width: 100%;
  box-sizing: border-box;
  display: block;
}

.flex:has(.type3) .wide {
  width: 98%;
}


.flex:has(.wide) .type3 {
  flex-shrink: 0;
}


/********ボタン部分サンプル*************/
.type1,
.type3,
.type4 {
  appearance: none;
  border-radius: 5px;
  border: 1px solid var(--color_button);
  background-color: var(--color_button);
  color: var(--color_inv);
}

.type1 {
  @media(max-width: 1019px) {
    margin: 0;
  }
}

.type3 {
  margin: 0 auto;
  margin-right: 0;
  width: 150px;
}

.type4 {
  /*  height: 3rem; */
  font-size: large;
  /*  margin: 10px 0; */
  margin: 0 0 calc(var(--size_space)*0.5) 0;
  width: auto;
}

.spe {
  background-color: var(--color_inv);
  color: var(--color_sub);
}

.form:not(.dis_box) button {
  width: 100%;
}

.dis_box {
  justify-content: space-between;
  gap: 15px;
  /*  margin: 5px 0; */
}

textarea+.dis_box:has(.spe) {
  margin-bottom: .5em;
}

.dis_box button {
  flex: 1 1 0%;
  min-width: 0;
  box-sizing: border-box;
}

.dis_box .type2 {
  flex: 0 0 calc((100% - 15px * 3) /4);
  visibility: hidden;
}

.dis_box.flex {
  @media(max-width: 1019px) {
    display: flex;
  }
}

button:hover,
button:active {
  background-color: var(--color_inv);
  border: 1px solid var(--color_button);
  color: inherit;
  transform: 1s;
}

.spe:hover,
.spe:active {
  background-color: var(--color_neutral);
  color: inherit;
  transform: 1s;
}

.form {
  gap: 15px;
}

.form:has(.choice) .type1 {
  width: calc((100% - 15px * 3) /4);
}

.form:has(.type2) {
  display: flex;
}


/********イベント・セミナー一覧**********/
.list {
  width: 100%;
  border-collapse: collapse;
}

.list th,
.list td {
  max-width: 9rem;
  padding: 10px;
  border-bottom: 1px solid var(--color_neutral);

  @media(min-width: 1020px) {
    max-width: none;
  }
}

.list tbody tr:hover {
  background: var(--color_inv);
}

.more-btn {
  border: none;
  background: transparent;
  font-size: 1.2em;
}

.listArea {
  margin-bottom: .5em;
}

/* ===== パネル（共通メニュー） ===== */
.panel {
  position: absolute;
  z-index: 50;
  background: var(--color_inv);
  border: 1px solid var(--color_neutral);
  border-radius: 5px;
  box-sizing: border-box;
  /* max-width: calc(100vw - 16px); */
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable both-edges;
  padding: 8px 10px;
}

.panel .flex {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.panel button {
  /* align-items: center; */
  justify-content: center;
  margin: 10px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}


/********インポート/エクスポートサンプル*************/
/*
.inout {
  padding: 1em 0;
}
*/

.inout .flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inout .type3 {
  margin: 0;
  width: 150px;
  flex-shrink: 0;
}

.inout .textbox {
  width: calc(100% - 150px);
}

/****参加者申込まわり**************/
/* .flow {
  display: flex;
  list-style: none;
  gap: 0;
  padding: 0;
  margin: 20px auto;
  counter-reset: step;
}

.flow_item {
  position: relative;
  flex: 1;
  padding: 14px 0;
  text-align: center;
  background: #e5e7eb;
  border-right: 2px solid #e5e7eb;
}

.flow_item:nth-child(2){
  background-color: #f6f6f6;
  border-right: 2px solid #f6f6f6;
}

.flow_item:nth-child(2)::after{
  border-left: 18px solid #f6f6f6;
}

.flow_item::after {
  content: "";
  position: absolute;
  top: 0;
  right: -20px;
  width: 0;
  height: 0;
  border-top: 26px solid transparent;
  border-bottom: 26px solid transparent;
  border-left: 18px solid #e5e7eb;
  z-index: 1;
}

.flow_item:first-child {
  border-radius: 6px 0 0 6px;
}

.flow_item:last-child {
  border-radius: 0 6px 6px 0;
}

.flow_item:last-child::after {
  content: none;
}

.flow_item[aria-current="page"] {
  background: var(--color_sub);
  color: var(--color_inv);
  font-weight: 700;
}

.flow_item[aria-current="page"]::after {
  border-left-color: var(--color_sub);
} */


/****セミナー一覧まわり**************/
/* .seminar {
  margin-bottom: 30px;
}　*/

/* ページネーション */
.pagerInfo {
  /* display: flex; */
  /* flex-direction: column; */
  /* align-items: flex-start;  */
  /* gap: 8px; */
  /* padding-top: calc(1.4em + 16px + 2px); */
  margin: 1em 0;
}

.selPageRows {
  padding: 4px 8px;
  width: 5.5em;
}

.pagerMain {
  width: fit-content;
  padding: calc(var(--size_space)*0.5) 0;
  margin: calc(var(--size_space)*0.5) auto;
  background-color: var(--color_inv);
  border: var(--color_neutral) 1px solid;
  border-radius: 5px;
}

.pagerMain ul {
  height: auto;
  list-style: none;
  padding: 0;
  margin: 0;
  height: 1.4em;
  gap: 4px;
  display: flex;
}

.pagerMain li {
  border-radius: 5px;
  min-width: 30px;
  text-align: center;
  background-color: var(--color_inv);
  border: 1px solid transparent;
}

.pagerMain li a {
  /* display: block; */
  padding: 4px 8px;
  text-decoration: none;
}

.pagerMain li.current {
  background-color: var(--color_sub);
}

.pagerMain li.current a {
  color: var(--color_inv);
}

.disabled {
  pointer-events: none;
  color: #676767;
  background-color: var(--color_neutral);
}

.pagerMain li.disabled {
  opacity: 0.2;
  pointer-events: none;
}

.pagerMain li:hover:not(.current):not(.disabled) {
  border: var(--color_neutral) 1px solid;
  background-color: var(--color_neutral);
}

.indication .flex {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.item_wrap {
  /* margin: 1.4em 0 2em; */
  width: 100%;
  margin-bottom: var(--size_space);
}

.item_wrap:last-of-type {
  margin-bottom: 0;
}

.item_box .add.flex,
.item_box:has(.add) .flex,
.item_box .row.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.item_wrap:has(.textbox),
.item_wrap:has(textarea),
.item_wrap:has(select),
.item_wrap:has(.dropdown),
.item_wrap:has(.choice),
.item_wrap:has(.filename),
.item_wrap:has(.filename),
.item_box .add.flex,
.item_wrap:has(input[type="date"]),
.item_wrap:has(input[type="time"]),
.item_wrap:has(input[type="datetime-local"]) {
  @media(min-width: 1020px) {
    display: flex;
    align-items: flex-start;
  }
}

.item_wrap:has(.textbox) .item,
.item_wrap:has(select) .item,
.item_wrap:has(.dropdown) .item,
.item_wrap:has(.choice) .item,
.item_wrap:has(.filename) .item,
.item_box .add.flex .item,
.item_wrap:has(input[type="date"]) .item,
.item_wrap:has(input[type="time"]) .item,
.item_wrap:has(input[type="datetime-local"]) .item {
  @media(min-width: 1020px) {
    padding-top: 12.5px;
  }
}

/*.item_wrap:has(.filename) .item
{
 @media(min-width: 1020px) {
    padding-top: 11.9px;
  }
}*/

.item_wrap:has(textarea) .item {
  @media(min-width: 1020px) {
    padding-top: 65.5px;
  }
}

.item_wrap .item {
  text-align: left;
  min-width: 18em;
}

.item {
  flex-shrink: 0;
  font-weight: 700;
  margin-left: 1em;
  min-width: 12em;
}

.item p {
  margin: 0;
}

.login .item {
  min-width: 9em;
}


.item_name {
  text-align: left;
  flex: 1 1 auto;
  min-width: 0;
}

.item_name select,
.item_name .choice {
  line-height: var(--height_input);
}

.item_name .flex,
.item_name.flex {
  display: flex;
  gap: .5em;
}

.indication .item {
  width: 18em;
}

.item_box {
  border: var(--color_neutral) 1px solid;
  background-color: var(--color_inv);
  padding: var(--size_space);
  margin-bottom: var(--size_space);
  border-radius: 5px;
}

.login.item_box {
  width: 50%;
  margin: 0 auto;
}


.item_box:has(+.pagerMain) {
  margin-bottom: 0;
}

.item_box.wrap {
  @media(min-width: 1350px) {
    display: grid;
    grid-template-columns: 40% 40% 1fr;
    gap: 1rem;
    align-items: center;
  }
}

.item_box.wrap:has(input[type="checkbox"]),
.item_box.wrap:has(.check) {
  display: grid;
  align-items: center;
  grid-template-columns: 5% 1fr;
}

.item_box.wrap:has(input[type="checkbox"])>div,
.item_box.wrap:has(.check)>div {
  @media(min-width: 1150px) {
    display: grid;
    grid-template-columns: 45% 1fr;
    align-items: center;
  }
}

.btn_group {
  display: flex;
  flex-direction: column;
  gap: .4em;
  min-width: 150px;
  width: 100%;
  /*  margin: 15px auto 10px; */
  margin-top: var(--size_space);

  @media(min-width: 1350px) {
    width: 150px;
    margin: auto;
    /*    margin-right: 1em; */
  }
}

.btn_group .type3 {
  margin: 0.2em auto 0;
  width: 100%;

  @media(min-width: 1350px) {
    margin: 0 auto;
    width: 150px;
  }
}

.item_box .add {
  margin-bottom: var(--size_space);
}

.add .type3 {
  margin-bottom: 0;
}

.add:last-of-type {
  margin-bottom: 0;
}

.item_box .flex {
  display: flex;
}


/* 画面幅が小さいときだけ縦並びにする */
@media (max-width: 1020px) {
  .item_box:not(:has(.row, .add)) {
    flex-direction: column;
  }

  .item_box:has(.inout)>.flex {
    display: block;
  }
}


/****エラー部分*****************/
.err_box {
  display: flex;
  /* align-items: center; */
  background-color: var(--color_error);
  border: var(--color_point) 2px solid;
  font-weight: 700;
  padding: 1em;
  border-radius: 5px;
  margin-bottom: var(--size_space);
}

.err_box img {
  margin-right: 1em;
}

.err_box p {
  margin: 0;
  color: var(--color_inv);
}

.error,
.textbox.error-target {
  color: var(--color_point);
  /* margin: .8em 0 0; */
  /* line-height: 1em; */
  font-weight: 700;
}

.item_wrap:has(.error) .item_name .textbox,
.textbox.error-target,
.item_wrap:has(.error) textarea,
.item_wrap:has(.error) select,
.item_wrap:has(.error) .item_name .dropdown,
.item_wrap:has(.error) .choice,
.import:has(.error) .item_box:has(.inout),
.item_wrap:has(.error) input[type="date"],
.item_wrap:has(.error) input[type="time"],
.item_wrap:has(.error) input[type="datetime-local"] {
  background-color: var(--color_error_bg);
  border-radius: 5px;
}

.item_name:has(.error) .choice {
  width: fit-content;
}

input:disabled,
select:disabled,
textarea:disabled {
  color: #676767;
  background-color: var(--color_neutral);
  opacity: 1;
}

.lp {
  display: block;

  @media(min-width: 1020px) {
    display: flex;
    gap: 24px;
  }
}

.first_view,
.register {
  @media(min-width: 1020px) {
    width: 50%;
  }
}

.first_view img {
  width: 100%;
  object-fit: contain;
  text-align: center;
  line-height: 230px;
}

.register .form {
  margin-top: 3em;
}

.register .item_wrap {
  display: block;
}

.link {
  border-bottom: 1px solid var(--color_sub);
  color: var(--color_sub);
}

p:has(.link) {
  text-align: center;
}

.event_md h3{
  margin: var(--size_space) 0 .5em;  
}

.event_md h3:first-of-type{
  margin-top: 0;
}


/****フッター部分*****************/
footer {
  width: 100%;
  text-align: center;
  padding: 1em 0;
  margin-top: auto;
  color: var(--color_inv);
  background-color: var(--color_sub);
  min-width: 720px;
  top: auto;
}