/* ------------------------------------------------------------------------------------------------------------------ */
/* 全体 */

.custom-apply-store-page {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans JP', sans-serif;
    background: #fff;
}

.cas-page-required-badge {
    background-color: #E9518E;
    white-space: nowrap;
    color: #ffffff;
    font-size: 12px;
    padding: 2px 6px;
    margin-left: 8px;
    border-radius: 10px;
    line-height: 1;
    display: inline-block;
}

.cas-error-message {
    font-size: 14px;
    color: #E9518E;
    display: block;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* フロー */

.cas-flow-content {
    height: 100%;
    overflow-y: auto;
}

.cas-flow-title {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.05em;
    color: #7D40A0;
    margin-top: 40px;
}

.cas-flow-subtitle {
    font-size: 12px;
    text-align: center;
    color: #7D40A0;
    letter-spacing: 0.1em;
    margin-top: 10px;
}

.cas-flow-steps {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cas-flow-step {
    display: flex;
    color: #535353;
    gap: 10px;
    align-items: center;
}

.cas-flow-step-number {
    background: #7D40A0;
    min-height: 50px;
    min-width: 50px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
}

.cas-flow-step-char {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    margin-top: 5px;
}

.cas-flow-step-number-digit {
    font-size: 24px;
    color: #fff;
    font-weight: 500;
    margin-top: -10px;
}

.cas-flow-text {
    font-size: 14px;
    color: #535353;
    flex: 1;
}

.cas-flow-button-wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.cas-flow-message {
    font-size: 14px;
    color: #535353;
    text-align: center;
    margin-top: 20px;
}


.cas-flow-button {
    position: relative;
    text-align: center;
    width: 250px;
    padding: 12px;
    background-color: #E9518E;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 10px auto 0 auto;
}

.cas-flow-button::before {
    position: absolute;
    display: block;
    content: "";
    top: 50%;
    right: 26px;
    width: 7px;
    height: 7px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    -webkit-transform: translatey(-50%) rotate(-135deg);
    transform: translatey(-50%) rotate(-135deg);
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* 利用規約 */

.cas-terms-content {
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cas-terms-title {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.05em;
    color: #7D40A0;
    margin-top: 40px;
}

.cas-terms-sentence {
    flex: 1;
    margin-top: 40px;
    font-size: 14px;
    border: 1px solid #AAAAAC;
    padding: 10px;
    overflow-y: auto;
}

#terms-end {
    display: block;
    height: 1px;
    visibility: hidden;
}

.cas-terms-button-wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.cas-terms-button {
    position: relative;
    text-align: center;
    width: 250px;
    padding: 12px;
    background-color: #E9518E;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0px auto 0 auto;
}

.cas-terms-button::before {
    position: absolute;
    display: block;
    content: "";
    top: 50%;
    right: 26px;
    width: 7px;
    height: 7px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    -webkit-transform: translatey(-50%) rotate(-135deg);
    transform: translatey(-50%) rotate(-135deg);
}

.cas-terms-button:disabled {
    background-color: #AAAAAC;
    opacity: 1;
    cursor: not-allowed;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* 反社規約 */

.cas-antisocial-content {
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cas-antisocial-title {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.05em;
    color: #7D40A0;
    margin-top: 40px;
}

.cas-antisocial-sentence {
    flex: 1;
    margin-top: 40px;
    font-size: 14px;
    border: 1px solid #AAAAAC;
    padding: 10px;
    overflow-y: auto;
}

#antisocial-end {
    display: block;
    height: 1px;
    visibility: hidden;
}

.cas-antisocial-button-wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.cas-antisocial-button {
    position: relative;
    text-align: center;
    width: 250px;
    padding: 12px;
    background-color: #E9518E;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0px auto 0 auto;
}

.cas-antisocial-button::before {
    position: absolute;
    display: block;
    content: "";
    top: 50%;
    right: 26px;
    width: 7px;
    height: 7px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    -webkit-transform: translatey(-50%) rotate(-135deg);
    transform: translatey(-50%) rotate(-135deg);
}

.cas-antisocial-button:disabled {
    background-color: #AAAAAC;
    opacity: 1;
    cursor: not-allowed;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* 署名 */

.cas-signature-content {
    height: 100dvh;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.cas-signature-title {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.05em;
    color: #7D40A0;
    margin-top: 40px;
}

.cas-signature-form-group {
    margin-top: 40px;
}

.cas-signature-form-group label {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
}

.cas-signature-canvas {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    border: 1px solid #AAAAAC;
    background-color: #f9f9f9;
    touch-action: none;
}

.signature-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.cas-signature-clear-button {
    padding: 8px 24px;
    width: 100px;
    font-size: 16px;
    background-color: #AAAAAC;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    display: block;
    margin-left: auto; 
}

.cas-signature-form-group-checkbox-section {
    display: flex;
    gap: 10px;
    flex-direction: column;
}


.cas-signature-form-group-checkbox-section label {
    position: relative;
    padding-left: 30px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}


.cas-signature-form-group-checkbox-section input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cas-signature-form-group-checkbox-section label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}


.cas-signature-form-group-checkbox-section input[type="checkbox"]:checked + label::before {
    background-color: rgb(233, 81, 142);
    border-color: rgb(233, 81, 142);
}


.cas-signature-form-group-checkbox-section label::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg) scale(0);
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transition: transform 0.3s ease;
}

.cas-signature-form-group-checkbox-section input[type="checkbox"]:checked + label::after {
    transform: translateY(-50%) rotate(45deg) scale(1);
}

.cas-signature-button-wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.cas-signature-button {
    position: relative;
    text-align: center;
    width: 250px;
    padding: 12px;
    background-color: #E9518E;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0px auto 0 auto;
}

.cas-signature-button::before {
    position: absolute;
    display: block;
    content: "";
    top: 50%;
    right: 26px;
    width: 7px;
    height: 7px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    -webkit-transform: translatey(-50%) rotate(-135deg);
    transform: translatey(-50%) rotate(-135deg);
}

.cas-signature-button:disabled {
    background-color: #AAAAAC;
    opacity: 1;
    cursor: not-allowed;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* 申請 */
 
.cas-fill-content {
    height: 100%;
    overflow-y: auto;
}

.cas-fill-title {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.05em;
    color: #7D40A0;
    margin-top: 40px;
    margin-bottom: 40px;
}

#cas-fill-form {
    display: flex;
    flex-direction: column;
}

.cas-fill-form-group {
    margin-bottom: 20px;
}

.cas-fill-form-group label {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
}

.cas-fill-form-group-label-note {
    font-size: 12px;
    margin-bottom: 8px;
    margin-top: -8px;
    color: #333;
}

.cas-fill-form-control-wrapper {
    margin-bottom: 0;
    position: relative;
}

.cas-fill-form-control-wrapper::before {
    position: absolute;
    display: block;
    content: "";
    top: 50%;
    right: 26px;
    width: 9px;
    height: 9px;
    border-top: 1px solid #6F6F6F;
    border-left: 1px solid #6F6F6F;
    transform: translatey(-50%) rotate(-135deg);
}

.cas-fill-form-group input,
.cas-fill-form-group select {
    width: 100%;
    color: #333;
    font-size: 14px
}

.cas-fill-form-group input {
    padding: 13px;
    margin-top: 5px;
    margin-bottom: 0;
    border: none;
    border-radius: 25px;
    background-color: #F5F5F5;
}

.cas-fill-form-group select {
    padding: 13px;
    border: none;
    border-radius: 25px;
    background-color: #F5F5F5;
    margin-top: 5px;
    margin-bottom: 0;
    color: #AAAAAC;
}

.cas-fill-form-group-checkbox-section {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}


.cas-fill-form-group-checkbox-section label {
    position: relative;
    padding-left: 30px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}


.cas-fill-form-group-checkbox-section input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cas-fill-form-group-checkbox-section label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}


.cas-fill-form-group-checkbox-section input[type="checkbox"]:checked + label::before {
    background-color: rgb(233, 81, 142);
    border-color: rgb(233, 81, 142);
}


.cas-fill-form-group-checkbox-section label::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg) scale(0);
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transition: transform 0.3s ease;
}

.cas-fill-form-group-checkbox-section input[type="checkbox"]:checked + label::after {
    transform: translateY(-50%) rotate(45deg) scale(1);
}

.cas-fill-button {
    position: relative;
    text-align: center;
    width: 200px;
    padding: 12px;
    background-color: #E9518E;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 10px auto 0 auto;
    margin-bottom: 40px;
}

.cas-fill-button::before {
    position: absolute;
    display: block;
    content: "";
    top: 50%;
    right: 26px;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    -webkit-transform: translatey(-50%) rotate(-135deg);
    transform: translatey(-50%) rotate(-135deg);
}

#cas-business_license-preview-image img {
    max-width: 400px;
    height: auto;
    margin-top: 10px;
    padding: 4px;
    border-radius: 8px;
}

.cas-store-block-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.05em;
    color: #7D40A0;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* 完了 */

.cas-success-content {
    height: 100dvh;
    overflow: hidden;
}

.cas-success-title {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.05em;
    color: #7D40A0;
    margin-top: 40px;
}

.cas-success-message {
    font-size: 14px;
    color: #535353;
    text-align: center;
    margin-top: 40px;
}

.cas-success-button-wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.cas-success-button {
    position: relative;
    text-align: center;
    width: 250px;
    padding: 12px;
    border: solid 1px #7D40A0;
    background-color: #fff;
    color: #7D40A0;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 auto 0 auto;
    display: inline-block;
}

.cas-success-button::before {
    position: absolute;
    display: block;
    content: "";
    top: 50%;
    left: 10px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #7D40A0;
    border-left: 1px solid #7D40A0;
    -webkit-transform: translateY(-50%) rotate(45deg);
    transform: translateY(-50%) rotate(45deg);
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* 覚書案内 */

.cas-memorandum-flow-content {
    height: 100%;
    overflow-y: auto;
}

.cas-memorandum-flow-text {
    font-size: 14px;
    color: #535353;
    margin-top: 20px;
}

.cas-memorandum-flow-list {
  list-style: disc;
  margin: 8px 0 16px;
  padding-left: 1.25rem;
  line-height: 1.7;
}

.cas-memorandum-flow-list li {
  margin: 4px 0;
}

.cas-memorandum-flow-list--new {
  border-left: 3px solid #E9528E;
  padding-left: 10px;
}

.cas-memorandum-flow-list--old {
  border-left: 3px solid #AAAAAC;
  padding-left: 10px;
}

.cas-memo-bank-transfer {
  font-weight: bold;
  background: #FDF1FC;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* 署名 */

.cas-memorandum-signature-content {
    height: 100dvh;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

