@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding:0 40px;
    background-color: #fdf5e6;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

h1 {
    font-size: 40px;
    margin: 80px auto 100px;
    letter-spacing: 1rem;
    color: #ff6347;
}

h2 {
    font-size: 24px;
    margin-bottom: 80px;
    color: #ff6347;
}

section {
    margin: 0 auto 200px;
    max-width: 900px;
}

/* index */
.index {
    margin-bottom: 100px;
}

.index ul li {
    list-style: none;
    margin-bottom: 10px;
}

.index ul li a {
    color: #878787;
}

.index ul li a:hover {
    color: #ff6347
}

/* gallery */
.gallery div {
    display: flex;
    position: relative;
}

.gallery img {
    width: 50%;
    height: auto;
    object-fit: cover;
    display: block;
}

.gallery div:nth-of-type(odd) {
    justify-content: left;
}

.gallery div:nth-of-type(even) {
    justify-content: right;
}

.gallery div span {
    position: absolute;
    top: 6px;
    color: #fff;
    display: block;
    background: rgb(0, 0, 0, .2);
    padding: 10px;
    border: #fff 1px solid;
}

.gallery div:nth-of-type(odd) span {
    left: 6px;
}

.gallery div:nth-of-type(even) span {
    right: 6px;
}

/* totop */
.totop {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: #ff6347;
    opacity: .7;
}

.totop a {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    padding: 10px;
    font-size: 12px;
    font-weight: bold;
}

@media screen and (max-width:700px) {
    body {
        padding:0 16px;
    }

    section {
        margin-bottom: 100px;
    }

}