/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

:root {
  --color-primary: #00a356;
  --color-primary-light: #d9f2d6;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
html {
  font-size: 62.5%;
}
body {
  line-height: 1.6;
  color: #333333;
}
/*****  formParts  *****/
input[type="checkbox"] {
  background-color: #fff;
  border: 4px solid #afafaf;
  border-radius: 6px;
  -webkit-appearance: none;
  height: 34px;
  margin: 0 34px 0 0;
  position: relative;
  vertical-align: middle;
  width: 34px;
}
input[type="checkbox"]:checked::before {
  position: absolute;
  left: -3px;
  top: 18px;
  display: block;
  content: "";
  width: 15px;
  height: 4px;
  background: var(--color-primary);
  transform: rotate(45deg);
  transform-origin: right center;
}
input[type="checkbox"]:checked::after {
  display: block;
  position: absolute;
  left: 10px;
  top: 19px;
  content: "";
  width: 24px;
  height: 4px;
  background: var(--color-primary);
  transform: rotate(-53deg);
  transform-origin: left center;
}
input[type="radio"] {
  display: none;
}
input[type="radio"] + label {
  padding-left: 44px;
  position: relative;
}
input[type="radio"] + label::before {
  border: 1px solid #afafaf;
  border-radius: 100%;
  content: "";
  display: block;
  position: absolute;
  top: 5px;
  left: 0;
  height: 21px;
  width: 21px;
}
input[type="radio"]:checked + label {
  color: var(--color-primary);
}
input[type="radio"]:checked + label::after {
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 100%;
  content: "";
  display: block;
  position: absolute;
  top: 5px;
  transform: scale(0.55);
  left: 0;
  height: 21px;
  width: 21px;
}
button {
  cursor: pointer;
}
/*****  fontStyle  *****/
.errormsg {
  color: #e03835;
  padding-bottom: 10px;
}
.hdg_ttl04 {
  border-left: solid 4px var(--color-primary);
  padding-left: 22px;
  font-size: 1.8rem;
  font-weight: 600;
}
.hdg_ttl05 {
  border-left: solid 4px #003399;
  padding-left: 22px;
  font-size: 1.8rem;
  font-weight: 600;
}
/*****  layoutSet  *****/
#page {
  padding: 0 !important;
  width: auto !important;
}
#page * {
  box-sizing: border-box;
}
.inner {
  margin: 0 auto;
  max-width: 1000px;
}
#header {
  border-bottom: 5px solid var(--color-primary);
}
#header .inner {
  padding: 31px 0 27px;
}
#contents .inner {
  padding: 60px 0;
}
#contents .counter {
  background-color: #F2DCDB;
  display: table;
  margin: .5em 0;
  padding: .5em 1em;
}
#contents p + .counter {
  margin-top: -0.5em;
}
#stepHeader {
  font-size: 1.8rem;
  text-align: center;
}
#stepHeader .sbiTitle {
  border: 1px solid #afafaf;
  margin: 38px auto 57px;
  max-width: 720px;
  padding: 65px 25px;
  text-align: center;
}
#stepHeader .sbiTitle > p {
  font-size: 2.2rem;
  margin-bottom: 28px;
}
#stepHeader .steps > ul {
  display: flex;
  justify-content: space-between;
  max-width: 790px;
  margin: 0 auto;
}
#stepHeader .steps > ul li {
  border: 1px solid #eeeeee;
  color: #868686;
  background-color: #eeeeee;
  font-size: 1.6rem;
  line-height: 1.2;
  font-weight: 600;
  position: relative;
  width: 100%;
  padding: 20px 0;
}
#stepHeader .steps > ul li:not(:last-child) {
  margin-right: 24px;
}
#stepHeader .steps > ul li:not(:last-child):after {
  color: #868686;
  content: ">";
  display: inline-block;
  font-size: 1.8rem;
  font-weight: normal;
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
}
#stepHeader .steps > ul li .num {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #868686;
  font-size: 1.5rem;
  line-height: 1;
  vertical-align: bottom;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: solid 1px #FFF;
}
#stepHeader .steps > ul li .num span {
  font-size: 2.0rem;
  margin-left: 4px;
}
#stepHeader .steps > ul li .num + p {
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 6.13496933%;
  height: 58.28220859%;
  line-height: 1.8;
}
#stepHeader .steps > ul li.current {
  background-color: #1269de;
  border-color: #1269de;
  color: #FFF;
}
#stepHeader .steps > ul li.current::after {
  color: #00a3ea;
}
#stepHeader .steps > ul li.current .num {
  color: #fff;
}
.stepTitle {
  background-color: var(--color-primary);
  color: #fff;
  font-size: 2.6rem;
  padding: 25px 0;
  text-align: center;
}
#stepContents {
  background-color: #eeeeee;
  font-size: 2.2rem;
  line-height: 1.5;
  text-align: center;
}
#stepContents .inner {
  max-width: 956px;
}
#stepContents p {
  margin-bottom: 1em;
}
#stepContents .hdg_ttl02 {
  color: var(--color-primary);
  margin: 1.5em auto 1em;
  border-left: solid 4px var(--color-primary);
  padding-left: 22px;
  font-size: 1.8rem;
  font-weight: 600;
  height: 22px;
  line-height: 22px;
}
#stepContents .entryForm {
  background-color: #fff;
  font-size: 2rem;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid #afafaf;
  width: calc(860/956*100%);
}
#stepContents .entryForm dl dt {
  color: var(--color-primary);
  font-size: 2.4rem;
  margin-bottom: 1.0em;
  background: var(--color-primary-light);
  padding: 15px 10px;
}
#stepContents .entryForm dl dd {
  width: 80%;
  margin: 0 auto;
}
#stepContents .entryForm dl dd ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
#stepContents .entryForm dl dd ul li {
  margin-bottom: 0.8em;
  text-align: left;
  white-space: nowrap;
  width: 50%;
}
#stepContents .entryForm dl dd ul::after {
  content: "";
  display: block;
  width: 50%;
}
#stepContents .inputtedTbl {
  background: #fff;
  font-size: 2rem;
  margin: 0 auto;
  padding: 1.2em;
  width: calc(860/956*100%);
}
#stepContents .inputtedTbl th,
#stepContents .inputtedTbl td {
  border: 1px solid #afafaf;
  padding: 1em;
  text-align: left;
}
#stepContents .inputtedTbl th {
  color: var(--color-primary);
}
#stepContents .inputtedTbl td {
  padding-left: 2em;
}
#stepContents .inputtedTbl + .entryForm {
  margin-top: 36px;
}
#stepContents .inputtedTbl + .inputtedTbl,
#stepContents .inputtedTbl + .entryForm {
  margin-top: 36px;
}
#refuseContents {
  background-color: #eee;
  color: #e03835;
  font-size: 2.4em;
  margin-bottom: 72px;
  text-align: center;
}
#refuseContents .inner {
  max-width: 956px;
  padding: 70px 0;
}
#refuseContents p {
  font-weight: bold;
  line-height: 1.7;
}
#stepFooter .query {
  color: #333333;
  font-size: 2.4rem;
  margin-bottom: 1.5em;
  text-align: center;
}
#stepFooter .navLinks {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  width: 78.3%;
}
#stepFooter .navLinks li {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.2;
  width: 47.2541507%;
}
#stepFooter .navLinks li > * {
  position: relative;
  width: 100%;
  height: 9rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  background-color: transparent;
  border: 2px solid #9a9a9a;
  font-size: inherit;
  font-weight: 600;
  color: #666;
  text-align: center;
  text-decoration: none;
  vertical-align: baseline;
}
#stepFooter .navLinks li > * span {
  font-size: 1.4rem;
  margin-top: .3em;
}
#stepFooter .navLinks li > * span br {
  display: none;
}
#stepFooter .navLinks li.next > * {
  background-color: var(--color-primary);
  border-width: 0;
  color: #fff;
  position: relative;
}
#stepFooter .navLinks li.next > *::before {
  border: 1px solid rgba(255, 255, 255, 0.5);
  content: "";
  display: block;
  height: calc(100% - 16px);
  left: 7px;
  position: absolute;
  top: 7px;
  width: calc(100% - 16px);
}
#stepFooter .navLinks li.next > *::after {
  position: absolute;
  content: ">";
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 100%;
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: normal;
}
#footer {
  border-top: 2px solid #0a3e86;
  color: #333333;
}
#footer .inner {
  display: flex;
  justify-content: space-between;
  padding: 40px 0 50px;
}
#footer .copyright small {
  font-size: 1.5rem;
}
/* Tayori用 */
#tayori-form {
  font-size: 2.0rem;
  line-height: 1.5;
  text-align: center;
}
.tayori-content{
  border-bottom:2px solid var(--color-primary);
}
.tayori-content p{
  margin:0px !important;
}
#tayori-form .form-parts {
  display: flex;
  align-items: stretch;
  border-top:2px solid var(--color-primary);
  border-left:2px solid var(--color-primary);
  border-right:2px solid var(--color-primary);
}

#tayori-form .form-parts.flex-column {
  flex-direction: column;
}

#tayori-form .form-parts > div {
  text-align: left;
  padding:20px;
}

#tayori-form .form-parts.flex-column > div {
  text-align: center;
}

/* 横並びのときだけラベルを文字幅に */
#tayori-form .form-parts:not(.flex-column) > div:first-child {
  width:12em;
  flex-shrink: 0;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  display: flex;
  align-items: center;
}

/* 横並びのときだけ入力欄を残り幅いっぱいに */
#tayori-form .form-parts:not(.flex-column) > div:last-child {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap:30px;
  background-color: #fff;
}

/* 縦並び（flex-column）でも、ラベルの下のinput群は横並びにする */
#tayori-form .form-parts.flex-column > div:last-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 10px;
}

/* 「※お勤め先の電話番号は…」などの注記pは、input群とは別に下の行へ折り返す */
#tayori-form .form-parts.flex-column > div:last-child > p {
  flex-basis: 100%;
  /* margin-top: 10px; */
}

#tayori-form .field-note{
  margin-top: 8px;
}

/* 縦並びでもラベルの色は同じ */
#tayori-form .form-parts.flex-column{
  background-color: #fff;
}
#tayori-form .form-parts.flex-column > div:first-child {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  text-align:left;
}

#tayori-form small {
  font-size: 1.7rem;
}

#tayori-form .error-message{
  color: #cc0000;
  font-size:0.8em;
  margin-top:12px;
}

#tayori-form input{
  height: 44px;
  border: 1px solid #dddddd;
  padding-left:10px;
  padding-right:10px;
}

#tayori-form input.company,
#tayori-form input.mail{
  width:100%;
}
#tayori-form input.birthday{
  width:20em;
}
/* 会社名・メールアドレス・生年月日：input1個+error-message1個なので、
   横並びにせず縦積みにしてしまう（余計な空白を防ぐ） */
#tayori-form .form-parts:not(.flex-column) > div:last-child:has(> input.company),
#tayori-form .form-parts:not(.flex-column) > div:last-child:has(> input.birthday),
#tayori-form .form-parts:not(.flex-column) > div:last-child:has(> input.mail) {
  flex-direction: column;
  align-items: stretch;
  gap: 0px;
}

/* 姓名・電話番号：input(last_name/first_name/tel01〜03)は中間divの中にある。
   中間divをflex化し、inputは均等に縮め、error-messageは下の行に全幅で折り返す */
#tayori-form .form-parts:not(.flex-column) > div:last-child > div,
#tayori-form .form-parts.flex-column > div:last-child > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  column-gap: 10px;
}
/* 姓名：中間divが2つ並ぶので、互いにflex:1で幅を分け合う */
#tayori-form .form-parts:not(.flex-column) > div:last-child > div {
  flex: 1;
}
/* 電話番号：中間divは1つだけなので、幅100%を占有 */
#tayori-form .form-parts.flex-column > div:last-child > div {
  width: 100%;
}
#tayori-form .last_name,
#tayori-form .first_name,
#tayori-form .last_name_kana,
#tayori-form .first_name_kana,
#tayori-form .personaltel01,
#tayori-form .personaltel02,
#tayori-form .personaltel03,
#tayori-form .tel01,
#tayori-form .tel02,
#tayori-form .tel03 {
  flex: 1;
  min-width: 0;
}
#tayori-form .form-parts:not(.flex-column) > div:last-child > div > .error-message,
#tayori-form .form-parts.flex-column > div:last-child > div > .error-message {
  flex-basis: 100%;
  white-space: nowrap;
  width: max-content;
}
#tayori-form #stepFooter.comfirm{
  display:none;
}
/* ===== Tayoriフォーム 確認画面（JS制御） ===== */
/* 確認用テキストはデフォルト非表示。showConfirm()実行時にJSで表示する */
#tayori-form .confirm-text {
  display: none;
  font-size: 1.8rem;
  color: #333;
  padding: 10px 0;
  word-break: break-all;
}
/* 電話番号の確認テキストは折り返しなしで見せる */
#tayori-form .tel_confirm_text {
  word-break: keep-all;
}

/* ===== 簡易チェック・送信エラーの全体メッセージ（.parts-error-message） ===== */
#tayori-form .parts-error-message {
  color: #cc0000;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}
#tayori-form .parts-error-message:empty {
  display: none;
}
#tayori-form select{
  width: 100%;
  height: 45px;
  margin: 0px;
  padding: 0 15px 0 8px;
  border: solid 1px #dddddd;
  border-radius: 5px;
  line-height: 45px;
}
#tayori-form .branch-container{
  font-size: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: start !important;
}
#tayori-form div:has(> .branch){
  display: flex;
  flex-direction: column;
  gap: 10px !important;
}
#tayori-form .field-note,
#tayori-form .field-supplement{
  font-size:0.8em;
  margin-top:8px !important;
}
@media screen and (max-width: 768px) {
  .hdg_ttl04 {
    font-size: 1.6rem;
  }
  .hdg_ttl05 {
    font-size: 1.6rem;
  }
  input[type="checkbox"] {
    height: 20px;
    margin-right: 20px;
    width: 20px;
    border: 2px solid #afafaf;
  }
  input[type="checkbox"]:checked::before {
    height: 3px;
    left: 0;
    top: 10px;
    width: 7px;
  }
  input[type="checkbox"]:checked::after {
    height: 3px;
    left: 6px;
    top: 10px;
    width: 12px;
  }
  input[type="radio"] + label {
    padding-left: 32px;
    display: inline-block;
  }
  input[type="radio"] + label::before {
    height: 15px;
    width: 15px;
  }
  input[type="radio"]:checked + label::after {
    height: 15px;
    width: 15px;
  }
  img {
    max-width: 100%;
  }
  .inner {
    margin: 0 10px;
  }
  #header .inner {
    padding: 10px 0;
  }
  #header .inner .header_logo {
    height: 22px;
  }
  #header .inner .header_logo img {
    height: 100%;
  }
  #contents .inner {
    padding: 28px 0;
  }
  #stepHeader {
    font-size: 1.6rem;
  }
  #stepHeader .sbiTitle {
    margin: 20px auto;
  }
  #stepHeader .sbiTitle > p {
    font-size: 1.4rem;
  }
  #stepHeader .sbiTitle > p + img {
    display: block;
    margin: 0 auto;
    max-width: 90%;
  }
  #stepHeader .steps > ul {
    display: block;
  }
  #stepHeader .steps > ul li {
    padding: 10px 0;
    text-align: center;
    width: auto;
  }
  #stepHeader .steps > ul li::before {
    content: none;
  }
  #stepHeader .steps > ul li:not(:last-child) {
    margin-bottom: 40px;
    margin-right: 0;
  }
  #stepHeader .steps > ul li:not(:last-child)::after {
    font-size: 3rem;
    top: calc(100% + 4px);
    left: 50%;
    transform: rotate(90deg) translateY(50%);
    width: 40px;
  }
  #stepHeader .steps > ul li p {
    display: block !important;
    position: static;
    margin: 0 auto;
    width: auto;
  }
  #stepHeader .steps > ul li .num {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }
  #stepHeader .steps > ul li .num + p br {
    display: none;
  }
  #stepHeader .steps + * {
    margin-top: 28px;
  }
  .stepTitle {
    font-size: 1.8rem;
    padding: 10px;
  }
  #stepContents {
    font-size: 1.6rem;
  }
  #stepContents .hdg_ttl02 {
    padding-left: 12px;
  }
  #stepContents .entryForm {
    font-size: 1.6rem;
  }
  #stepContents .entryForm dl dt {
    font-size: 1.8rem;
  }
  #stepContents .entryForm dl dd ul {
    display: block;
  }
  #stepContents .entryForm dl dd ul li {
    white-space: normal;
    width: auto;
  }
  #stepContents .inputtedTbl {
    display: block;
    border: 1px solid #afafaf;
    padding: 0.5em;
  }
  #stepContents .inputtedTbl tbody,
  #stepContents .inputtedTbl tr {
    display: block;
  }
  #stepContents .inputtedTbl th,
  #stepContents .inputtedTbl td {
    border-width: 0;
    display: block;
    font-size: 1.6rem;
    padding: 0;
    width: auto !important;
    text-align: center;
  }
  #stepContents .inputtedTbl tr + tr th {
    margin-top: 0.5em;
  }
  #stepContents .inputtedTbl + .inputtedTbl,
  #stepContents .inputtedTbl + .entryForm {
    margin-top: 18px;
  }
  #refuseContents {
    font-size: 1.7rem;
    margin-bottom: 36px;
  }
  #refuseContents p br {
    display: none;
  }
  #stepFooter .navLinks {
    display: flex;
    flex-flow: column-reverse;
    flex-wrap: wrap;
    min-width: 300px;
  }
  #stepFooter .navLinks li:last-of-type {
    margin-bottom: 10px;
  }
  #stepFooter .navLinks li {
    font-size: 1.8rem;
    width: auto;
  }
  #stepFooter .navLinks li > * {
    height: auto;
    padding: 24px 0;
  }
  #stepFooter .navLinks li > * span br {
    display: inline;
  }
  #footer .copyright small {
    font-size: 1rem;
  }

  /* Tayori用 */
  #tayori-form .form-parts{
    flex-direction: column;
  }
  #tayori-form .form-parts:not(.flex-column) > div:first-child {
    width:100%;
    border-bottom:2px solid var(--color-primary);
  }
  #tayori-form .form-parts:not(.flex-column) > div:last-child {
    gap:15px;
  }
  #tayori-form small {
    font-size: 0.8em;
  }
  #tayori-form .confirm-text {
    font-size: 1.6rem;
  }
  #tayori-form .parts-error-message {
    font-size: 1.4rem;
  }
}
