body {
    font-family: Arial, sans-serif;
    background-color: #0097b2;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

form {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    background-color: #fff;
/*    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    display:block;
    margin-bottom: 5px;
    font-weight: bold;
}

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

button {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

.gallery {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* align-items: left を flex-start に修正 */
    padding: 20px;
}

.row {
    display: flex;
    justify-content: flex-start; /* justify-content: left を flex-start に修正 */
    margin: 10px 0;
    flex-wrap: wrap;
}

.image-container {
    width: 30%;
    margin: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.image-container:hover {
    transform: scale(1.05);
}

.thumbnail {
    width: 100%;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checkboxes {
    margin-top: 10px;
    display: block;
    justify-content: center;
    gap: 10px;
}

label input {
    margin-right: 5px;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0,0,0,0.8);
}

footer {
    background-color: #333;
    color: white;
    padding: 20px;
/*    position: fixed;*/
    bottom: 0;
    width: 100%;
    text-align: center;
}

/* スマホで表示されたときにコンテナの余白を無くす */
@media (max-width: 600px) {
    .container {
        margin: 0;
        padding: 10px;
    }

    form {
        margin-top: 10px;
        padding: 10px;
    }

    .gallery {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* align-items: center を flex-start に修正 */
        padding: 2px;
    }

    .row {
        display: flex;
        justify-content: flex-start; /* justify-content: center を flex-start に修正 */
        margin: 0px 0;
        flex-wrap: wrap;
    }

    .image-container {
        width: 42%;
        margin: 10px;
        text-align: center;
        transition: transform 0.3s ease;
    }

    .image-container:hover {
        transform: scale(1);
    }
}
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* 横スクロールを防ぐ */
}