* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    letter-spacing: 0.1em;
}

[hidden] {
    display: none !important;
}

body {
    font-family: "Yu Gothic Medium", "Hiragino Sans", "Meiryo", sans-serif;
    font-weight: 300;
    line-height: 1.6;
    background: none;
}

:root {
    --header-pr: 3em;
}

header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2em var(--header-pr);
}

header>nav {
    margin-left: auto;
    position: relative;
}

.name a {
    color: #000;
    text-decoration: none;
    margin-left: -1.3em;
    margin-top: 6px;
    display: inline-block;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
    position: relative;
    display: inline-block;
}

.nav-menu li {
    margin: 0.8em 0;
}

.nav-menu a {
    text-decoration: none;
    color: #111;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: lowercase;
}

.nav-menu a:hover {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.nav-menu::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: calc(-0.6 * var(--header-pr));
    width: 7px;
    background: #AA3636;
}

@media (min-width: 768px) {
    header>nav {
        margin-right: 2em;
    }

    .name a {
        margin-left: -0.5em;
    }

    .nav-menu::after {
        right: calc(-0.75 * var(--header-pr));
    }
}

.work-item img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.work-item img:hover {
    filter: brightness(0.78);
    transform: scale(1.02);
}

@media (min-width: 768px) {
    .work-item img:hover {
        transform: scale(1.01);
    }
}

.product7 {
    display: flex;
    align-items: flex-end;
    gap: 48px;
    margin-top: 200px;
}

.product7 img {
    width: clamp(240px, 56vw, 820px);
    /* 参考値：430px */
    height: auto;
    display: block;
}

.product7 p {
    font-size: 13px;
    margin: 0;
    transform: rotate(-90deg);
    transform-origin: left bottom;
    white-space: nowrap;
    line-height: 1.6;
}

.product6 {
    margin-top: 250px;
    text-align: right;
}

.product6 img {
    display: block;
    width: clamp(300px, 78.125vw, 1120px);
    /* 参考値：600px */
    height: auto;
    margin-left: auto;
    margin-right: 0;
}

.product6 p {
    font-size: 13px;
    text-align: right;
    margin-top: 8px;
    margin-right: 8px;
}

.product5 {
    position: relative;
    width: max-content;
    margin: 200px auto 0;
}

.product5 img {
    display: block;
    width: clamp(200px, 44.27vw, 680px);
    /* 参考値：340px */
    height: auto;
    margin: 0;
}

.product5 p {
    position: absolute;
    bottom: 0;
    left: -8px;
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    white-space: nowrap;
    transform: rotate(-90deg);
    transform-origin: left bottom;
}

.product4 {
    --w: clamp(260px, 65.10vw, 980px);
    text-align: right;
    margin-top: 250px;
}

.product4 img {
    display: block;
    width: var(--w);
    /* 参考値：500px */
    height: auto;
    margin-left: auto;
}

.product4 p {
    display: block;
    width: var(--w);
    /* 参考値：500px */
    margin-left: auto;
    margin-top: 8px;
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
}

.product3 {
    margin-top: 200px;
    text-align: right;
}

.product3 img {
    display: block;
    width: clamp(310px, 80.7vw, 1150px);
    /* 参考値：620px */
    height: auto;
    margin-left: auto;
    margin-right: 0;
}

.product3 p {
    font-size: 13px;
    text-align: right;
    margin-top: 8px;
    margin-right: 8px;
}

.product2 {
    --w: clamp(320px, 84.64vw, 1200px);
    margin-top: 200px;
    text-align: center;
}

.product2 img {
    display: block;
    width: var(--w);
    /* 参考値：650px */
    height: auto;
    margin: 0 auto;
}

.product2 p {
    display: block;
    width: var(--w);
    /* 参考値：650px */
    margin: 8px auto 0;
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
}

.product1 {
    position: relative;
    width: max-content;
    margin: 200px auto;
    margin-bottom: 250px;
}

.product1 img {
    display: block;
    width: clamp(180px, 39.06vw, 600px);
    /* 参考値：300px */
    height: auto;
    margin: 0 auto;
}

.product1 p {
    position: absolute;
    bottom: 0;
    left: calc(100% + 48px);
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    white-space: nowrap;
    transform: rotate(-90deg);
    transform-origin: left bottom;
}

.work-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.work-modal.is-open {
    display: flex;
}

.work-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.work-modal__content {
    position: relative;
    width: min(92vw, 520px);
    height: 92svh;
    background: transparent;
    padding: 0;
    box-shadow: none;
    overflow: hidden;
    border-radius: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.work-modal__close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 16px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.work-modal__close::before,
.work-modal__close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 1.5px;
    background-color: #ffffff;
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(45deg);
}

.work-modal__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.work-modal__close:hover::before,
.work-modal__close:hover::after {
    opacity: 0.6;
}

.work-modal__main {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

.work-modal__image-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
    margin: 0;
    position: relative;
}

.work-modal__image-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: scale(0.8);
    transform-origin: center;
}

.work-modal__blackbox {
    flex: 1 1 auto;
    overflow-y: auto;
    background: #000;
    color: #fff;
    padding: 16px 14px 18px;
}

.work-modal__thumbs {
    background: transparent;
    padding: 0;
    margin-bottom: 14px;
}

.work-modal__thumbs-track {
    display: flex;
    gap: 6px;
    padding: 0 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.work-modal__thumbs-track::-webkit-scrollbar {
    display: none;
}

.work-modal__thumb,
.work-modal__thumb img {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
}

.work-modal__thumb {
    flex: 0 0 22%;
    aspect-ratio: 1 / 1;
    scroll-snap-align: start;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    overflow: hidden;
    opacity: 0.45;
    filter: brightness(0.75);
    transition: opacity 0.25s ease, filter 0.25s ease
}

.work-modal__thumb.is-active {
    opacity: 1;
    filter: brightness(1.25) contrast(1.05);
}

.work-modal__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: none;
}

.work-modal__thumb.is-active {
    opacity: 1;
}

.work-modal__text {
    padding: 0;
    color: #fff;
    text-align: left;
}

.work-modal__text h2 {
    font-size: 15px;
    font-weight: 300;
    margin-bottom: 6px;
    letter-spacing: 0.12em;
    line-height: 1.6;
    color: #fff;
}

.work-modal__meta {
    font-size: 11px;
    margin-bottom: 10px;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.65);
}

.work-modal__desc {
    font-size: 12px;
    margin-bottom: 8px;
    line-height: 2.1;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.9);
}

.work-modal__credit {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.75);
}

.work-modal__credit:empty {
    display: none;
}

@media (max-width: 480px) {
    .work-modal__content {
        width: 94%;
        padding: 16px 12px 22px;
    }

    .work-modal__text h2 {
        font-size: 15px;
    }

    .work-modal__desc {
        font-size: 11.5px;
    }
}

@media (min-width: 768px) {
    .work-modal__content {
        width: min(96vw, 1100px);
        height: auto;
        max-height: 90vh;
    }

    .work-modal__main {
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }

    .work-modal__image-main {
        flex: 0 0 50%;
        aspect-ratio: 1 / 1;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

    .work-modal__image-main img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transform: scale(0.8);
    }

    .work-modal__blackbox {
        flex: 0 0 50%;
        aspect-ratio: 1 / 1;
        height: auto;
        overflow-y: auto;
        padding: 24px 20px;
        background: #000;
        color: #fff;
    }

    .work-modal__thumb {
        flex: 0 0 20%;
    }
}

footer {
    position: relative;
    background: #A54542;
    color: #fff;
    padding: 30px 40px;
    font-family: "Yu Gothic Medium", "Hiragino Sans", sans-serif;
    text-align: center;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    text-align: left;
}

.footer-menu li {
    margin: 0;
}

.footer-menu li+li {
    margin-top: 10px;
}

.footer-menu a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    line-height: 1;
    height: 12px;
    padding: 0;
    text-decoration: none;
    color: #fff;
}

.footer-menu a span:hover {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-menu a::before {
    content: "";
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.footer-menu a:not(.current)::before {
    background: url("images/icon.png") center / contain no-repeat;
}

.footer-menu a.current::before {
    content: ">";
    font-size: 12px;
    line-height: 1;
}

.insta-link {
    position: absolute;
    top: 30px;
    right: 30px;
}

.insta-link img {
    width: 36px;
    height: auto;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.insta-link img:hover {
    opacity: 0.75;
}

footer small {
    display: block;
    text-align: center;
    margin-top: 36px;
    font-size: 10px;
    letter-spacing: 0.1em;
    line-height: 1.8;
    opacity: 0.8;
}

.credit {
    display: block;
    text-align: center;
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 0.1em;
    line-height: 1.8;
    opacity: 0.8;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s, opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: rgba(0, 0, 0, 0.8);
}