@charset "UTF-8";

@import url("https://cdn.jsdelivr.net/npm/yakuhanjp@3.3.1/dist/css/yakuhanjp.min.css");

body {
  font-family: YakuHanJP, -apple-system, BlinkMacTextFont, Segoe UI,
    Helvetica Neue, YuGothic, "Yu Gothic", "メイリオ", meiryo, sans-serif;
  border-top: solid 3px #00529f;
}

/* リセット用 */
dl,
dt,
dd,
ul,
ol,
li,
table,
h1,
h2,
h3,
h4,
h5,
h6,
p,
form,
fieldset,
legend {
  margin: 0;
  padding: 0;
}

ul,
ol,
li {
  list-style: none;
}

/* btn-primary */
.btn-primary {
  background-color: #1963a8 !important;
  border-color: #1963a8 !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #1c71c0 !important;
  border-color: #1c71c0 !important;
}

.btn-primary:active,
.btn-primary.active {
  background-color: #1963a8 !important;
  border-color: #1963a8 !important;
}


/* -- header ---------------- */
header {
  background-color: #fff !important;
  padding-top: clamp(1rem, 0.9rem + 0.5vw, 1.5rem) !important;
  padding-bottom: clamp(1rem, 0.9rem + 0.5vw, 1.5rem) !important;
  margin-bottom: 1.5rem !important;
  border-bottom: 1px solid #dee2e6 !important;
}

h1 {
  font-size: clamp(1.05rem, 1.01rem + 0.2vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 0;
}

h1 span {
  display: inline-block;
}

/* -- container ---------------- */
.container {
  max-width: 1040px;
  margin: 0 auto 45vh !important;
}

article {
 margin-bottom: clamp(2.188rem, 2.063rem + 0.63vw, 2.813rem) !important;
}

/* -- ステップバー ---------------- */
.step-bar {
  display: flex;
  justify-content: space-between;
  text-align: center;
  margin-bottom: 2rem;
}

.step {
  padding: 0.5rem 0;
  font-size: clamp(0.95rem, 0.93rem + 0.1vw, 1.05rem);
  font-weight: 700;
  color: #333 !important;
  position: relative;
  cursor: default;
  width: 25%;
  white-space: nowrap;
  opacity: 0.5 !important;
}

.step-3 {
  width: 33.3333%;
}

.step-4 {
  width: 25%;
}

.step::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0%;
  width: 100%;
  height: 3px;
  background-color: #eee;
}

.step.active {
  color: #1963a8;
  opacity: 1 !important;
}

.step.active::after {
  background-color: #1963a8;
}

@media (max-width: 575.98px) {
  .step {
  font-size: 0.825em;
  letter-spacing: -0.05em;
}
}

/* -- h2 ---------------- */

h2 {
  position: relative;
  margin: 2em 0 0.5em;
  padding: 0.3em 0 0.3em 0.7em;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
}

h2::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: clamp(0.188rem, 0.15rem + 0.19vw, 0.375rem);
  height: calc(100% - 4px);
  border-radius: 5px;
  background-color: #00529f;
}


/* -- 必須、任意 ---------------- */
.req {
  color: #dc3545;
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
}

.opt {
  color: #0d6efd;
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
}

/* -- form-section-heading ---------------- */
.form-section-heading {
  width: 100%;
  text-align: center;
  font-weight: bold;
  margin: 0;
  padding: 1rem 0;
  background-color: #f8f9fa;
  /* border-top: 1px solid #dee2e6; */
  border-bottom: 1px solid #ddd;
}

/* -- form-section-heading ---------------- */
.form-section-note {
  width: 100%;
  margin: 0;
  padding: 20px;
  font-size: 0.95em;
  background-color: #fff;
  /* border-top: 1px solid #dee2e6; */
  /* border-bottom: 1px solid #ddd; */
}

/* -- pay_info_wrap ---------------- */
.pay_info_wrap {
  width: 100%;
  margin: 0;
  padding: 20px;
  font-size: 0.95em;
  background-color: #fffcf8;
  /* border-top: 1px solid #dee2e6; */
  border-bottom: 1px solid #ddd;
}

@media (max-width: 575.98px) {
.pay_info_wrap {
  padding: 10px 5px 0px;
}
}

div.pay {
  width: 98%;
  margin: 0 auto;
  overflow: hidden;
  padding: 0;
  font-weight: 400;
  box-sizing: border-box;
}

table.pay-table{
  border-collapse: collapse !important;
  width: 100% !important;
}

table.pay-table > thead th {
  text-align: center;
  background-color: #686868;
  color: #fff;
}

table.pay-table tbody tr {
  width: 100% !important;
}

table.pay-table tbody tr td {
  font-weight: 400;
  color: #000;
  background-color: #ffffff;
}

table.pay-table tfoot th,table.pay-table tfoot td {
  background-color: #f2fffb;
}

@media (max-width: 768px) {
  table.pay-table tbody tr,
  table.pay-table tfoot tr {
    border: solid 1px #ccc !important;
  }

  table.pay-table tbody td,
  table.pay-table tfoot td {
    border: solid 1px rgb(245, 245, 245) !important;
    display: block;
    padding: 0.65rem 1rem !important;
    text-align: left !important;
  }

  table.pay-table tbody tr:hover,
  table.pay-table tfoot tr:hover {
    background: none !important;
  }

  table.pay-table tbody td::before,
  table.pay-table tfoot td::before {
    content: attr(data-label);
    color: #3366CC;
    display: block;
    margin-bottom: 0.25rem;
    font-weight: bold;
    background: #fafafa;
  }

  table.pay-table tfoot td::before {
    background: none !important;
  }

  td:nth-child(1),
  td:nth-child(2),
  td:nth-child(3),
  td:nth-child(4),
  td:nth-child(5),
  td:nth-child(6) {
    width: 100% !important;
  }

  .heading {
    display: none;
  }
}

/* -- 金額 ---------------- */
em {
  padding-left: 0.15em !important;
  padding-right: 0.35em !important;
}

/* -- フッター ---------------- */
footer {
  background-color: #00529f;
  text-align: center;
  padding: clamp(0.625rem, 0.5rem + 0.63vw, 1.25rem) 0;
  margin: 0;
  font-size: clamp(0.85rem, 0.84rem + 0.05vw, 0.9rem);
  color: #fff;
}
