.main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    height: 100%;
    border: none;
    border-radius: 5px;
}

.backhome-container {
    float: left;
    width: auto;
    text-decoration: none;
}

.backhome-container::after {
    content: "";
    display: block;
    clear: both;
}

.icon_back {
    display: block;
    width: 25px;
    margin: 0 auto;
}

.backhome-label {
    display: block;
    color: #9a9a9a;
    font-size: 11px;
    text-align: center;
}

.login-container,
.myEvent-container,
.customer-container,
.news-container,
.school-container,
.topEdit-container,
.video-container,
.event-container {
    padding: 10px;
    align-self: center;
    margin-bottom: 65px;
    width: 75%;
    border: none;
}

.contents-add-title {
    letter-spacing: 3px;
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.addEvent {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.form {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 410px;
    padding: 20px;
    border: none;
    border-radius: 8px;
}

.column {
    display: flex;
    flex-direction: column;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.input-form,
.input-textarea,
.new_section {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ddd;
    background: #ffffff;
    border-radius: 5px !important;
    color: #666;
    height: 38px;
    font-size: 12px;
}

.input-form::placeholder,
.input-textarea::placeholder,
.new_section::placeholder {
    color: #9a9a9a;
}

.input-textarea {
    height: 130px;
    min-height: 130px;
    resize: vertical;
    border: 1px solid #ddd;
}

.input-file {
    font-size: 12px !important;
}

.add-event {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    width: 100%;
    border: none;
}

.event-label {
    width: 100% !important;
    font-weight: 500;
    font-size: 15px;
    background-color: #4f4f4f;
    color: #fff;
    padding: 10px 40px;
    border-radius: 5px;
    cursor: pointer;
    width: auto;
    border: none;
    text-align: center;
    display: inline-block;
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-form {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.toggle-password img {
    width: 20px;
    height: auto;
}

.externalLinks-container {
    display: flex;
    align-items: center; /* 垂直方向に中央揃え */
    justify-content: space-between; /* 水平方向に両端揃え */
    margin-bottom: 5px;
}

.externalLinks {
    color: #d9d9d9;
    font-size: 11px;
    text-decoration: underline;
}

.confirm-message {
    text-align: center;
    margin: 20px 0;
    color: #4f4f4f;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-back,
.btn-submit {
    padding: 10px 30px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back {
    background-color: #ffffff;
    border: 2px solid #9a9a9a;
    color: #9a9a9a;
}

.btn-submit {
    background-color: #4f4f4f;
    border: 2px solid #4f4f4f;
    color: #ffffff;
}

.btn-back:hover {
    background-color: #9a9a9a;
    color: #ffffff;
}

.btn-submit:hover {
    background-color: #ffffff;
    color: #4f4f4f;
}

.error-message {
    color: #ff0000;
    font-size: 12px;
    margin-top: 5px;
}

.complete-message {
    text-align: center;
    margin: 30px 0;
    color: #4f4f4f;
    line-height: 1.8;
    font-size: 18px;
}

.complete-message p {
    margin: 10px 0;
}

.button-group a.btn-submit {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.note {
    font-size: 10px;
    color: #666;
    margin-top: 3px;
}

.note strong {
    font-weight: bold;
}

.phone-contact {
    margin-top: 40px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 5px;
    text-align: center;
}

.phone-contact h3 {
    font-size: 16px;
    font-weight: bold;
    color: #4f4f4f;
    margin-bottom: 10px;
}

.phone-number {
    font-size: 24px;
    font-weight: bold;
    color: #4f4f4f;
    margin-bottom: 5px;
}

.reception-hours {
    font-size: 12px;
    color: #666;
}

.form-description {
    text-align: center;
    margin: 20px 0;
    color: #4f4f4f;
    font-size: 14px;
}

@media screen and (max-width: 768px) {
    .login-container,
    .myEvent-container,
    .customer-container,
    .news-container,
    .school-container,
    .topEdit-container,
    .video-container,
    .event-container {
        width: 95%;
        padding: 5px;
    }

    .form {
        width: 100%;
        padding: 15px;
    }

    .contents-add-title {
        font-size: 20px;
        letter-spacing: 2px;
        margin-top: 20px;
    }

    .confirm-message,
    .complete-message {
        font-size: 16px;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn-back,
    .btn-submit {
        width: 100%;
    }

    .phone-contact {
        text-align: center;
    }

    .phone-contact {
        margin-top: 30px;
        padding: 15px;
    }

    .phone-contact h3 {
        font-size: 16px;
    }

    .phone-number {
        font-size: 20px;
    }

    .reception-hours {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .contents-add-title {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .confirm-message,
    .complete-message {
        font-size: 14px;
    }

    .event-label {
        padding: 8px 20px;
        font-size: 14px;
    }

    .input-form,
    .input-textarea {
        font-size: 12px;
    }

    .label {
        font-size: 13px;
    }

    .phone-contact {
        margin-top: 25px;
        padding: 12px;
    }

    .phone-contact h3 {
        font-size: 15px;
    }

    .phone-number {
        font-size: 18px;
    }

    .reception-hours {
        font-size: 12px;
    }
}
