body {
    font-family: sans-serif;
    font-weight: 400;
}
a {
    color: var(--color-blue);
    transition: color 0.2s linear;
    text-decoration: none;
}

a:hover,
a:focus,
a:active {
    transition: color 0.2s ease-out;
    text-decoration: underline;
}

/* Overwrite */
.h1, h1{
    font-size: min(calc((1.375rem + 1.2vw) * 0.75),30px);
}
.h2, h2{
    font-size: calc((1.3rem + .6vw) * 0.75);
}
.h3, h3{
    font-size: unset;
}
.h4, h4{
    font-size: calc((1.275rem + .3vw) * 0.75);
}
.h5, h5{
    font-size: calc(1.25rem * 0.75);
}
.h6, h6{
    font-size: calc(1rem * 0.75);
}
.btn {
    --bs-btn-color: black;
}
legend {
    font-size: inherit;
    margin-bottom: unset;
}

/* Main */
.container {
    max-width: 1140px
}

.top-nav {
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
}

.top-nav-title {
    position: relative;
    display: block;
}

.title-logo {
    position: absolute;
    right: 20px;
    display: block;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
}

@media (max-width: 768px) {
    .title-logo {
        position: relative;
        top: unset;
        right: unset;
        margin: 0 auto 1rem;
        width: 110px;
        transform: unset;
    }
}

.content {
    padding: 30px 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.note {
    color: var(--color-red);
}

/* Forms */
.form-control,
.form-check-input,
.form-select {
    border: 1px solid #000
}

.form-radio-input,
.form-checkbox-input {
    width: 1em;
    height: 1em;
    border: 1px solid #000;
    margin-top: .25em;
    vertical-align: top;
}
.col-form-label .form-radio-input {
    margin-left: 1rem
}

.error {
    border-color: var(--color-form-invalid);
}

.error:focus {
    box-shadow: 0 0 0 .25rem rgba(var(--color-red),.25);
    border-color: var(--color-form-invalid);
}

.form-required, .error-message, .is-alert{
    color: var(--color-form-invalid);
}

/* Confirm */
form:not(.is-confirm) .is-only-confirm {
    display: none;
}
form.is-confirm .is-only-input {
    display: none;
}

/*** Header ***/
.is-border {
    border-bottom: 1px solid;
    margin-bottom: 15px
}

.is-title {
    background-color: var(--color-lightprimary);
    padding: 0 14px;
}

/*** Label ***/
.is-background-box {
    background-color: var(--color-lightgray);
    padding: 0 14px;
    font-weight: bold;
}

@media (max-width: 767.98px) {
    .is-background-box {
        margin-bottom: 7px;
        display: inline-block
    }
}

/* Custom styles for all disabled checkboxes and radios */
input[type="radio"]:disabled:checked,
input[type="radio"]:checked{
    appearance: none;
    border-radius: 50%;
    border-color: var(--color-primary);
    position: relative
}

input[type="radio"]:disabled:checked:before,
input[type="radio"]:checked:before{
    content: "";
    border-radius: 50%;
    background-color: var(--color-primary);
    position: absolute;
    display: block;
    width: 10px;
    height: 10px;
    top: 2px;
    left: 2px;
}

input[type="checkbox"] {
    appearance: none;
    border-color: var(--color-primary);
    border-style: solid;
    width: 1.2rem;
    height: 1.2rem;
    position: relative;
    border-radius: 2px;
    margin-right: 1rem;
    top: 0.2rem;
}

input[type="checkbox"]:disabled:checked::before,
input[type="checkbox"]:checked::before{
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.957 2.566a.738.738 0 00-1.054.004L6.285 9.707 3.736 7.16a.738.738 0 00-1.052-.003.84.84 0 000 1.184l3.527 3.54a.738.738 0 001.054 0l7.012-7.058a.84.84 0 00-.002-1.185z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
}

.form-control, .form-select {
    border-radius: 0 !important;
}

.form-control, .form-select {
    border-radius: 0 !important;
}

/* Customize */
.is-file .form-required {
    width: 4rem;
}
.is-file [id$="-sample"] {
    display: block;
    margin-bottom: 1rem;
}
[id$="-note"] {
    word-break: break-all;
}
.form-item.select [id$="-error"] {
    display: block;
    margin-left: 2rem;
}
.is-confirm .is-input-only,
.is-confirm [id$="-sample"],
.is-confirm [id$="-note"],
.is-confirm [id$="-details"],
.is-confirm .form-required {
    display: none !important;
}
.is-confirm-only {
    display: none;
}
.is-confirm .is-confirm-only {
    display: block !important;
}
label + [id$="-error"] {
    display: block;
}
.is-confirm [type=file] {
    display: none;
}
.fake-checkbox {
    display: inline-block;
    border-color: var(--color-primary);
    border-style: solid;
    width: 1.2rem;
    height: 1.2rem;
    position: relative;
    border-radius: 2px;
    top: 0.2rem;
}
.fake-checkbox.is-checked {
    content: "";
    background-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.957 2.566a.738.738 0 00-1.054.004L6.285 9.707 3.736 7.16a.738.738 0 00-1.052-.003.84.84 0 000 1.184l3.527 3.54a.738.738 0 001.054 0l7.012-7.058a.84.84 0 00-.002-1.185z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
}
.news-wrapper {
  border: 1px solid;
  margin-bottom: 1rem;
  padding: 1rem;
  max-width: 80%;
}
@media (max-width: 768px) {
  .news-wrapper {
    max-width: unset;
  }
}
@media (min-width: 941px) {
    .d-smd-block {
        display: block !important;
    }
    .d-smd-inline {
        display: inline !important;
    }
}
.block-alert {
    border: 2px solid var(--color-red);
    padding: 0.5rem;
    word-wrap: break-word !important;
    word-break: break-word !important;
}
.block-note {
    border: 2px solid var(--color-orange);
    padding: 0.5rem;
    word-wrap: break-word !important;
    word-break: break-word !important;
}
.btn-primary,.btn-secondary {
    color: var(--color-white);
}
@media (min-width: 769px) {
    .col-md.no-padding-md {
        padding:0;
    }
}

.is-disabled,
.is-disabled:focus {
    pointer-events: none !important; /* クリック無効 */
    opacity: 0.5 !important; /* 無効っぽく見せる */
    background-color: var(--color-gray) !important;
    border-color: var(--color-gray) !important;
}

.agreement {
    max-height: 300px; /* PC・スマホ共通 */
    overflow-y: auto;  /* 縦スクロールを有効 */
}

/* デフォルトではリンクを無効化（PC用） */
.tel-link {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
    color: inherit; /* 通常のテキストと同じ見た目に */
}

/* スマホ時（768px以下）にリンクを有効化 */
@media screen and (max-width: 768px) {
    .tel-link {
        pointer-events: auto;
        cursor: pointer;
        /*text-decoration: underline; /* 必要に応じて下線 */
        color: var(--color-blue); /* スマホ時はリンクらしい色に */
    }
}
@media (min-width: 769px) {
    .login-form {
        margin:0 auto;
        max-width: 800px;
    }

    .login-form legend {
        text-align: center;
    }
}

/* For screens up to 768px: Adjust .form-text layout */
@media screen and (max-width: 768px) {
  .form-text:has(button.is-only-input) button {
    display: flex;
    margin-bottom: 0.7rem;
  }
}

/* Remove underline on hover for primary and secondary buttons */
.btn-primary:hover,
.btn-secondary:hover,
.btn-primary:focus,
.btn-secondary:focus {
  text-decoration: none;
}

/* PCではtel:リンクを無効化 */
@media (min-width: 769px) {
    a[href^="tel:"] {
        pointer-events: none;
        cursor: default;
        text-decoration: none;
        color: inherit;
    }
}
/* CSS Block document */
.form-document {
    padding: 1rem 0;
    margin-left: -1rem;
}
.form-document .document-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}
.form-document .document-image {
    margin: 0 auto 0.5rem;
    width: 100%;
    max-width: 10.251rem;
}
.form-document .document-image img {
    display: block;
    width: 100%;
    height: auto;
}
.form-document .document-item {
    position: relative;
    text-align: center;
}
.form-document .document-block {
    border-radius: .8rem;
    background-color: #fff1ea;
    border: 1px solid #000;
    font-weight: 700;
    text-align: center;
}
.form-document .document-block strong {
    font-weight: 700;
    color: #f00;
}

@media screen and (max-width: 767.98px) {
    .form-document .document-wrapper {
        font-size: 0.8rem;
        padding-bottom: 1rem;
    }
    .form-document .document-block {
        font-size: .9rem;
        max-width: 26rem;
        margin: 0 auto;
        padding: .7rem 1rem .8rem;
    }
}
@media (min-width: 768px) {
    .form-document {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    .form-document .document-wrapper {
        flex: 0 0 auto;
        font-size: 0.95rem;
        padding-bottom: 1rem;
    }
    .form-document .document-block {
        width: 33.3rem;
        font-size: 1.2rem;
        padding: .6rem 1rem .8rem;
    }
}

/* CSS Block identification */
.form-identification {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: -1rem;
}
.form-identification .form-note {
    margin-bottom: 0.5rem;
    color: #ed1c24;
}
.form-identification .identification-image {
    width: 100%;
    margin-bottom: 0.5rem;
}
.form-identification .identification-image img {
    display: block;
    width: 100%;
    height: auto;
}
.form-identification .identification-text {
    width: 100%;
    text-align: right;
}
@media screen and (max-width: 767.98px) {
    .form-identification .identification-text {
        font-size: 0.7rem;
    }
    .form-identification .form-note {
        font-size: 0.9rem;
    }
}
@media (min-width: 768px) {
    .form-identification .identification-text {
        font-size: 0.95rem;
        max-width: 40.251rem;
    }
    .form-identification .form-note {
        font-size: 1.26rem;
    }
    .form-identification .identification-image {
        max-width: 40.251rem;
    }
}
@media screen and (max-width: 767.98px) {
    .form-text:has(button.is-only-input) {
        display: flex;
        justify-content: center;
    }
    .form-text button {
        margin: 0.3rem 0 1rem -1rem;
    }
}
.form-details .is-only-input {
    margin-left: 10px;
}
@media screen and (max-width: 767.98px) {
    .form-details .is-only-input {
        display: block;
        width: fit-content;
        margin-top: 5px;
    }

    .form-details button[type="button"] {
        padding-top: 2px;
    }
}
