:root {
    --mainColor: #201F20;
    --textColor: #656464;
}

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

body {
    background: #f5f5f0;
    margin: 0 auto;
    font-family: 'Red Hat Display', sans-serif;
    color: var(--textColor);
    letter-spacing: .12em;
    font-size: 14px;
    font-weight: bold;
}

main {
    max-width: 1440px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 7px 11px #d9d9d9;
}

a {
    text-decoration: none;
    color: inherit;
}


/* ---タイトル--- */

#logo {
    background: var(--mainColor);
    padding: .7em 1em .3em;
}

#logo img {
    width: 29px;
}

.title-block {
    background-color: #fff;
}

#title {
    width: 90%;
    max-width: 420px;
    max-height: 289px;
    margin-left: 5vw;
    margin-top: 3vh;
    display: block;
    position: absolute;
}

video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    padding-top: 10vh;
}

@media (orientation: landscape) {
    video {
        object-fit: contain;
    }
}


/* ---写真--- */

section {
    margin-bottom: 3em;
}

section:last-child {
    padding-bottom: 3em;
    margin-bottom: 0;
}

#intro {
    margin-bottom: 3em;
}

#intro>img {
    position: sticky;
    top: 50vh;
    z-index: 11;
    width: 90%;
    margin: 0 auto;
    display: flex;
    height: 3em;
}

section img,
.intro img.photo {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
}

.primary img {
    height: 70vh;
    object-fit: contain;
}

.primary {
    position: relative;
    overflow: hidden;
}


/* メイン写真位置指定 */

@media (orientation: landscape) {
    #u2 .primary {
        width: 42vw;
    }
    #w2 .primary {
        width: 42vw;
    }
    #u3 .primary {
        width: 49vw;
    }
    #w3 .primary {
        width: 39vw;
    }
    #u4 .primary {
        width: 48vw;
    }
    #w4 .primary {
        width: 37vw;
    }
    #u5 .primary {
        width: 37vw;
    }
    #w5 .primary {
        width: 43vw;
    }
}

@media (orientation: portrait) {
    #u2 .primary img {
        object-position: 6vw;
    }
    #w2 .primary img {
        object-position: 22vw;
    }
    #u3 .primary img {
        object-position: -12vw;
    }
    #w3 .primary img {
        object-position: 40vw;
    }
    #u4 .primary img {
        object-position: -11vw;
    }
    #w4 .primary img {
        object-position: 36vw;
    }
    #u5 .primary img {
        object-position: 6vw;
    }
    #w5 .primary img {
        object-position: 35vw;
    }
}

.secondary {
    display: flex;
    margin: 1.5em auto 0 1em;
    z-index: 11;
}


/* イメージ写真位置指定 */

.imagePhoto {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 11;
    width: 100vw;
}

.right .imagePhoto {
    left: 0;
}

.imagePhoto.fadePhoto img {
    animation: fadeImage 2s .2s forwards;
    height: 70vh;
    object-fit: none;
    opacity: 0;
}

.right .imagePhoto.fadePhoto img {
    animation-name: fadeImageRight;
}


/* ------------------------追記------------------------ */

#u2 .imagePhoto img {
    object-position: 50% 0%;
}

#w2 .imagePhoto img {
    object-position: 99% 98%;
}

#u3 .imagePhoto img {
    object-position: 15% 10%;
}

#w3 .imagePhoto img {
    object-position: 52% 63%;
}

#u4 .imagePhoto img {
    object-position: 65% 13%;
}

#w4 .imagePhoto img {
    object-position: 6% 50%;
}

#u5 .imagePhoto img {
    object-position: 45% 50%;
}

#w5 .imagePhoto img {
    object-position: 30% 3%;
}


/* ------------------------/追記------------------------ */

@keyframes fadeImage {
    from {
        width: 100vw;
        transform: translateX(0);
        opacity: 0;
    }
    to {
        width: 10vw;
        transform: translateX(90vw);
        opacity: 1;
        /* width: 20vw;
        transform: translateX(80vw); */
    }
}

@keyframes fadeImageRight {
    from {
        width: 100vw;
        transform: translateX(100vw);
        opacity: 0;
    }
    to {
        width: 10vw;
        transform: translateX(0);
        opacity: 1;
        /* width: 20vw; */
    }
}

@media (orientation: landscape) {
    .imagePhoto.fadePhoto img {
        height: 100vh;
    }
}


/* ---PC--- */

@media (orientation: landscape) {
    #title {
        margin-left: 8vw;
        margin-top: 15vh;
    }
    video {
        padding-top: 0;
    }
    #intro>div {
        display: flex;
        justify-content: center;
    }
    #intro div>img {
        width: 100%;
    }
    section,
    section .products {
        display: flex;
        align-items: flex-end;
    }
    .right .products {
        flex-direction: row-reverse;
    }
    .primary img {
        height: 100vh;
    }
    .right {
        flex-direction: row-reverse;
    }
    .secondary {
        margin: 0 5em 18vh 5em;
    }
}


/* ---スペック--- */

.spec_wrapper {
    margin-left: 1em;
    width: 230px;
}


/* スペック文字指定 */

.spec_data {
    margin-bottom: 1em;
}

.spec_data p {
    line-height: 1.1;
    line-height: 1;
    font-size: 1.2em;
    letter-spacing: .05em;
}

.spec_data p:first-child {
    /* font-size: 1.5em;
    letter-spacing: .2em; */
    font-style: italic;
}

.spec_data :nth-child(3) {
    font-weight: 400;
}

.spec_data p.more {
    font-style: italic;
    font-size: .8em;
    display: flex;
    margin-top: .8em;
    background-position: 6em center;
    background-repeat: no-repeat;
    background-size: 2em;
    padding: .6em .6em .6em 1.5em;
    transition: .3s;
    border-radius: 100vh;
    width: 9em;
    background-color: var(--textColor);
    color: #eee;
    background-image: url(../img/d_arrow.svg);
}

.spec_data a:hover .more {
    background-color: #222 !important;
}


/* 文字色指定 */

#u2 .spec_data {
    color: #0089CA;
}

#u2 .spec_data p.more {
    background-color: #0089CA;
}

#w2 .spec_data {
    color: #46507A;
}

#w2 .spec_data p.more {
    background-color: #46507A;
}

#u3 .spec_data {
    color: #8C8480;
}

#u3 .spec_data p.more {
    background-color: #8C8480;
}

#w3 .spec_data {
    color: #749CB1;
}

#w3 .spec_data p.more {
    background-color: #749CB1;
}

#u4 .spec_data {
    color: #B5C549;
}

#u4 .spec_data p.more {
    background-color: #B5C549;
}

#w4 .spec_data {
    color: #D74768;
}

#w4 .spec_data p.more {
    background-color: #D74768;
}

#u5 .spec_data {
    color: #0D5F69;
}

#u5 .spec_data p.more {
    background-color: #0D5F69;
}

#w5 .spec_data {
    color: #615657;
}

#w5 .spec_data p.more {
    background-color: #615657;
}


/* ---フッター--- */

footer {
    text-align: center;
    background: #787b7e;
}

footer a {
    background: var(--mainColor);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em 0;
    color: white;
}

footer a:hover {
    color: #ffeda9;
    transition: .5s;
}

footer a::before {
    content: url(../img/d_arrow.svg);
    width: 1.3em;
    margin-right: 1em;
    margin-top: .2em;
    display: inline-block;
}

footer p {
    font-size: .7em;
    letter-spacing: 0;
    padding: 1em 0;
}


/* ugoku */

.fadeUp {
    animation-name: fadeUpAnime;
    animation-duration: .7s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeLeft {
    animation-name: fadeLeftAnime;
    animation-duration: 1.3s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeLeftAnime {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fadeUpTrigger,
.fadeLeftTrigger {
    opacity: 0;
}