body {
    font-family: 'Inter', sans-serif;
    background-color: #add8e6; /* 背景色をadd8e6に設定 */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.site-header {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-inner {
    max-width: 600px;
    margin: 0 auto;
}


#site-title {
    font-size: 2rem;
    font-weight: 700;
    font-family: cursive;
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    font-size: 2rem;
}

.form-container {
    background-color: #ffffff; /* コンテナの背景色を白に設定 */
    padding: 2.5rem;
    border-radius: 1.5rem; /* 角を丸くする */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* 要素間のスペース */
}

.form-container > form > div {
    width: 100%;
}

.input-field {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background-color: #ffffff;
    outline: none;
    box-sizing: border-box;
    padding: 10px;
    font-size: 1rem;
}
.selection-field {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background-color: #ffffff;
    outline: none;
    box-sizing: border-box;
    padding: 10px;
    font-size: 1rem;
}

.input-field:focus {
    border-color: #a78bfa; /* フォーカス時のボーダー色 */
}

.submit-button {
    padding: 1rem;
    background-color: #ff69b4; /* ボタンの色をff69b4に設定 */
    color: white;
    border: none;
    border-radius: 0.75rem; /* 角を丸くする */
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, background-color 0.2s;
}

.cancel-button {
    text-decoration: none;
    padding: 1rem;
    background-color: #ff69b4;
    border: none;
    border-radius: 0.75rem; /* 角を丸くする */
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, background-color 0.2s;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.submit-button:hover {
    transform: scale(1.03); /* ホバー時に少し膨らむ */
    background-color: #ff4d9a; /* ホバー時のボタンの色を少し濃くする */
}

.header-text {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
}

.label-text {
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 0.25rem;
    display: block;
}

.icon-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.icon-placeholder {
    width: 80px;
    height: 80px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: #9e9e9e;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.icon-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-upload-input {
    display: none;
}

/* ボタン横並び */
.button-row {
    display: flex;
    gap: 3rem;
    width: 100%;
    max-width: 400px;
    justify-content: center;
    margin-top: 1.5rem;
}

.button-row .submit-button,
.button-row .cancel-button {
    flex: 1;                /* 横幅を揃える */
    text-align: center;
}


/* 画面幅が600px以下（スマホサイズ）ならこのCSSが適用される */
@media (max-width: 600px) {
    .form-container {
        padding: 1.5rem;
        border-radius: 1rem;
        width: 90%;
        max-width: none;
        flex-direction: column;
        overflow-x: visible;
    }

    .header-text {
        font-size: 1.5rem;
    }

    .icon-placeholder {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    .input-field{
        width: 90%;
    }
    .button-row {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .button-row .submit-button,
    .button-row .cancel-button {
        padding: 0.6rem;
        font-size: 0.85rem;   /* ← ここ重要 */
        border-radius: 0.6rem;
        width: 100%;
        max-width: 200px;
    }
}
