html {
    color: #333;
}

header {
    background-color: #f5f5f5;
    padding: 0;
    margin: -10px;
}
body {
    font-family: "ＭＳ Ｐゴシック";
    margin: 0px;
    margin-top: 100px;
    padding: 0px;
    background-color: #f5f5f5;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.event-banner {
    width: 70%;
    height: auto;
    padding-left: 15%;
    padding-right: 15%;
    margin-bottom: 20px;
}

.description-container {
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.main-container {
    width: 90%;
    padding-top: 5%;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 5%;
    margin-bottom: 30px;
}

h1 {
    text-align: center;
}
h1,
h2,
h3 {
    margin: 0;
}

.sub-title {
    font-size: 1.75rem;
    text-align: center;
    margin: 8px 0 32px 0;
}

label {
    display: block;
    font-weight: bold;
    color: #555;
}

.event-title {
    margin: 0 0 88px;
}
.event-title h1 {
    margin: 0px;
    align-items: center;
    font-weight: bolder;
    text-align: center;
    font-size: 2.5rem;
    color: #333;
}

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

/* カテゴリの間隔 */
.team-section,
.player-section,
div[id^="player"][id$="-section"],
.upper-crab-account-section {
    margin: 0 0 88px;
}

/* 同一カテゴリ内の要素の間隔 */
form > div[id$="id-field"],
div[id$="-auth"],
div[id$="-section"],
div[class$="-section"] {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* 選手情報真下の余白 */
.players-header {
    margin-bottom: 36px;
}

/* 設問タイトルと入力欄の間隔 */
.input-pair {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

/* Twitter入力欄のスタイル */
.twitter-input {
    position: relative;
    width: 100%;
}

.twitter-input input {
    width: 100%;
    padding-left: 30px; /* @マークのスペース */
}

.twitter-input::before {
    content: "@";
    position: absolute;
    left: 10px;
    top: 48%;
    transform: translateY(-50%);
    color: #666;
    z-index: 1;
    pointer-events: none;
    font-size: 16px;
    font-family: "Arial", sans-serif;
}

input[type="submit"] {
    background-color: #4caf50;
    color: white;
    cursor: pointer;
    font-size: 18px;
    padding: 12px;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #45a049;
}

.required::after {
    content: " *";
    color: red;
}
@media (max-width: 600px) {
    .description-container {
        margin: 50px auto;
        padding: 10px;
    }

    .event-title h1 {
        font-size: 1.5em;
    }

    button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 20px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    select {
        font-size: 14px;
    }

    input[type="submit"] {
        font-size: 16px;
    }

    .twitter-input::before {
        font-size: 14px;
    }
}
#auth-message {
    max-width: 800px;
    margin: 20px auto;
    padding: 15px 40px 15px 15px; /* 右側にボタンのためのスペースを確保 */
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    position: relative; /* closeボタンの位置決めのため */
}

#auth-message.error {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #dc2626;
}

#auth-message.success {
    background-color: #dcfce7;
    border: 1px solid #22c55e;
    color: #16a34a;
}

.close-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    color: inherit;
}

.close-button:hover {
    opacity: 0.7;
}

.help-text {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}
