/* 共通 */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f0f8ff;
}


/* pre-registration.blade.php */
.registration-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 200px;
    /* min-height: 100vh; */
}

.registration-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 25px;
    box-shadow: 0 0 25px rgba(0, 91, 172, 0.3);
    padding: 2rem;
    position: relative;
}

.registration-container .registration-form-area {
    flex: 1;
    min-width: 280px;
}

.registration-container h2 {
    font-size: 1.8rem;
    color: #e50012;
    margin-bottom: 1rem;
}

.registration-container input {
    width: 100%;
    padding: 0.9rem;
    /* margin-bottom: 1rem; */
    border: 2px solid #0068b7;
    border-radius: 12px;
    background: #f8f8f8;
    font-size: 1rem;
    transition: 0.3s;
}

.registration-container input:focus {
    outline: none;
    box-shadow: 0 0 10px #0068b7;
}

.registration-container button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #e50012, #0068b7);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.registration-container button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #005bac;
}

.registration-container ul,
.registration-container p.message {
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem;
}

.registration-mascot-wrapper {
    position: absolute;
    top: -70px;
    right: 15px;
    z-index: 2;
    pointer-events: none;
}

.registration-mascot {
    width: 150px;
    height: auto;
    animation: float-subtle 4s ease-in-out infinite;
}

.error-list li {
    color: red;
}

.success-msg {
    color: green;
}

.backpage-link {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.backpage-link a {
    color: #555;
    text-decoration: underline;
}

#back-button {
    all: unset;
    cursor: pointer;
    display: inline;
    text-align: center;
    font-size: 0.85rem;
    margin-top: 1rem;
    color: #555;
    text-decoration: underline;
}

#registration-loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
}

@keyframes float-subtle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media screen and (max-width: 768px) {
    .registration-container {
        padding: 1.5rem;
    }

    .registration-mascot {
        width: 130px;
    }

    .registration-container h2 {
        font-size: x-large;
    }
}

@media screen and (max-width: 768px) {
    .header-wrapper {
        width: 100%;
        left: 0;
    }
}

.registration-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 200px;
    /* min-height: 100vh; */
    padding: 175px 5px 100px 5px;
}

.registration-container h2 {
    font-size: 1.8rem;
    color: #e50012;
    margin-bottom: 1rem;
    font-weight: bold;
}

.registration-mascot-wrapper {
    position: absolute;
    top: -100px;
    right: 5px;
    z-index: 2;
    pointer-events: none;
}

.registration-agree {
    font-size: 0.8em;
    margin: 15px 0;
    text-align: center;
    line-height: 1.3;
}

.registration-agree a {
    white-space: nowrap;
}


/* thanks.blade.php */
.thanks-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* padding: 40px 20px; */
    padding: 25px;
    max-width: 500px;
    margin: 50px auto;
    text-align: center;
}

.thanks-container h1 {
    font-size: 2em;
    /* margin-bottom: 1em; */
    color: #007acc;
}

.thanks-container p {
    font-size: 1.2em;
    /* margin-bottom: 2em; */
}

.thanks-container .note {
    font-size: 0.8em;
}

.thanks-form-img1 {

    width: 100px;
    height: auto;
    z-index: 10;
    position: relative;
}

.btn-back {
    background: #007acc;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-back:hover {
    background: #005f99;
}

.thanks-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.thanks-form-img2 {
    width: 100px;
    height: auto;
    margin-top: -16px;
    z-index: 1;
    position: relative;
}

.btn-back-wrapper {
    margin-top: 30px;
}

.note strong {
    color: #3498db;
}

.thanks-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    max-width: 600px;
    margin: 50px auto;
    text-align: center;
    width: 100%;
    /* ← 追加ポイント！ */
}

/* スマホだけ余白を調整 */
@media (max-width: 768px) {
    .thanks-container {
        max-width: calc(100% - 40px);
        /* ← 画面幅 - 20px * 2 */
    }
}