.progress-bar {
    font-size: 14px;
    padding: 0;
    display: flex;
    flex-direction: row;    /* 横方向 */
    align-items: center;    /* 縦方向 */
}

.progress-step {
    margin: 0.1rem;
    display: flex;
    flex-wrap: nowrap; /* 1ステップは折り返さない */
    flex: 1;
}

.progress-box,
.progress-arrow {
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.progress-box {
    width: 3rem;
    height: 3rem;
    color: #fff;
    background-color: #c4c4c4;
    border: 1px solid #c4c4c4;
    padding: 0 0.25rem;
    text-align: center;
    flex: 1;
}

.progress-arrow {
    width: 0;
    height: 0;
    border-top: 1.5rem solid transparent;
    border-bottom: 1.5rem solid transparent;
    border-left: 0.5rem solid #c4c4c4;
}

.progress-box.current {
    background-color: #78be21;
    color: #fff;
    border: 1px solid #78be21;
}

.progress-arrow.current {
    border-left: 0.75rem solid #78be21;
}

.bg-success {
    background-color: #78be21 !important;
}

.bg-info {
    color: #0d6efd !important;
    border-style: solid;
    border-width: 0.1rem;
    background-color: #ffffff !important;
}

.bg-warning {
    background-color: #ffc04b !important;
}

/*ラベルのデフォルトは太字、例外には直接fw-normalを付与*/
label{
    line-height: 1.75;
    font-weight: 700;
}

/*ラベルの上下中央揃え、余白等を調整*/
.form-check {
    display: flex;         /* 1行ごとに横方向に並べる */
    align-items: center;   /* チェックとラベルを上下中央揃え */
}

.form-check .form-check-label{
    display: inline-block;
    white-space: normal;
    word-break: break-word;
}

.form-check-inline{
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
}

.form-check-inline-checkbox {
    margin: 0 0 0 -1.5rem; /*チェックボックス開始位置*/
}

.form-check-inline-radio {
    margin: 0 0 0 0.3rem; /*ラジオボタン開始位置*/
}

input[type="checkbox"].form-check-input ~ .form-check-label{
    margin-left: 0.5rem;        /* チェックボックスとの間隔 */
    max-width: calc(100% - 1.5rem);
}

input[type="radio"].form-check-input ~ .form-check-label {
    margin: 0 0.8em 0 0.5rem;        /* ラジオボタンとの間隔 */
}

.form-check-input {
    flex-shrink: 0;
}

input[type="radio"].form-check-input {
    font-size: 1.2rem;
    margin-top: 0rem;
}

/*ラジオボタン色変更*/
input[type="radio"].form-check-input:checked {
  background-color: #ffffff;
  border-color: #78be21;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3ccircle cx='8' cy='8' r='6' fill='%2378be21'/%3e%3c/svg%3e");
}

input[type="checkbox"].form-check-input {
    font-size: 1.5rem;
    margin: 0;
}

/*チェックボックス色変更*/
input[type="checkbox"].form-check-input:checked {
    background-color: #78be21;
    border-color: #78be21;
}

/* 必須マーク */
form span.required::after,
label.required::after {
    content: "必須";
    color: #ffffff;
    background-color: #ff0000;
    font-size: 14px;
    font-weight: 700;
    margin-left: 0.25rem;
    padding: 4px;
    display: inline-block;
    border-radius: 5px;
    line-height: 1;
}

.alert-dialog {
    display: inline-flex;
    align-items: center;
}

/*赤丸に！の注記マーク*/
.alert-dialog:before {
    content: url("data:image/svg+xml;charset=utf-8,%3Csvg width='20' height='20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23ff0000'/%3E%3Cpath d='M9.589 12.127h.819l.156-5.512.039-1.352h-1.21l.04 1.352.156 5.512zm.403 3.042c.48 0 .858-.364.858-.897s-.377-.923-.858-.923c-.468 0-.858.39-.858.923s.39.897.858.897z' fill='%23ffffff'/%3E%3C/svg%3E");
    margin-right: 0.25rem;
    display: inline-block;
    width: 20px;
    height: 20px
}

.text-danger {
    color: #ff0000 !important;
}

/*各ページタイトル*/
h1, h2 {
    color: #005560;
}

/*確認画面ページタイトル*/
h5 {
    color: #78be21;
}

h6 {
    color:#333333;
}

/*設問ブロック*/
.form-area{
    color: #333333;
    background-color: #ffffff;
    padding: 0.75rem;
}

.btn
{
    padding: 0.5rem;
    font-weight: 550;
    text-align: center;
    min-width: 8.5rem;
    --bs-btn-border-width: 0.15rem;
    border-radius: 3.75rem;
    box-sizing: border-box;
}

/*進むボタン*/
.btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #78be21;
    --bs-btn-border-color: #78be21;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #78be21CC;
    --bs-btn-hover-border-color: #78be21;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #78be21cc;
    --bs-btn-active-border-color: #78be21;
}

/*戻るボタン*/
.btn-secondary{
    --bs-btn-color: #78be21;
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: #78be21;
    --bs-btn-hover-color: #78be21cc;
    --bs-btn-hover-bg: #ffffff;
    --bs-btn-hover-border-color: #78be21;
    --bs-btn-active-color: #78be21cc;
    --bs-btn-active-bg: #ffffff;
    --bs-btn-active-border-color: #78be21;
}

.btn-warning {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #ffc04b;
    --bs-btn-border-color: #ffc04b;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #ffc04bCC;
    --bs-btn-hover-border-color: #ffc04b;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #ffc04bcc;
    --bs-btn-active-border-color: #ffc04b;
}

.btn-area{
    margin: 2rem auto 2rem;
}

.btn-area .btn{
    margin-bottom: 1rem;
}

/*幅が狭いときボタン上下反転*/
@media (max-width: 767px) {
  .btn-area .row {
    display: flex;
    flex-direction: column-reverse;
  }
}

div .description ul {
    margin: 0;
    padding: 0 0.25rem;
}

div .description li {
  margin-bottom: 0.5em;
  line-height: 1.25;
}

ul.list-unstyled > li::before {
  content: "・";
  margin-right: 0.5em;
}

a {
    color: #78be21;
    text-decoration-line: underline;
    font-weight: 500;
}

.list-group a{
    color: #333333;
    text-decoration-line: none;
    font-weight: 400;
}

a.button-more{
    text-decoration-line: none;
}

.download-link {
    color: #005560;
    font-weight: 700;
}

.list-group-item{
    padding : 0.75rem 0.5rem;
}

.description {
    color: #005560;
    background-color: #f7fbf2;
    border: none;
    padding: .375rem .75rem;
}

.description-box {
    border: 1px solid #005560;
    border-left: 0.75rem solid #005560;
}

.form-text{
    color: #888888;
    margin: 0;
}

.p-faq-navi-item{
    color: #005560;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    text-decoration: none;
}

.p-faq-navi-list{
    border-top: 1px solid #e0e0e0;
}

/* 書類登録 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.customConfirm {
    display: none;
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30rem;
    height: 12rem;
    background: white;
    padding: 1rem;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.customConfirm p {
    font-size: 1.2rem;
}

.successAlert {
    display: none;
    position: fixed;
    font-size: 1.2rem;
    top: 5%;
    left: 15%;
    width: 70%;
    z-index: 1000;
    opacity: 0.8;
}

#confirmYes {
    width: 5rem;
}

.example-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: none;
}

.example-image {
    max-width: 80vw;
    max-height: 80vh;
    display: block;
}

/* confirmForm(disabled → readonly) */
#confirmForm input.form-control[readonly],
#confirmForm input.form-check-input[readonly],
#confirmForm select.form-select[readonly],
#confirmForm label
{
    pointer-events: none;
}

#confirmForm label.confirmed{
    pointer-events: auto;
}

#confirmForm input.form-control[readonly],
#confirmForm textarea.form-control[readonly],
#confirmForm select.form-select[readonly] {
    background-color: var(--bs-secondary-bg);
    opacity: 1;
}
#confirmForm input.form-check-input[readonly],
#confirmForm input.form-check-input[readonly] + label{
    opacity: .5;
}
