@charset "UTF-8";

html {
    font-size: 10px;
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans JP", san-serif;
    color: var(--color-text);
    margin: 0;
}

body.is-locked {
    overflow: hidden;
}

html,
body {
    overscroll-behavior-y: none;
}

:root {
    /* colors */
    --color-text: #051515;
    --color-tag: #868D8D;
    --color-modal: #121515;
    --color-white: #FFFFFF;

    /* typography */
    /*34px-68px*/
    --text-h2: clamp(3.2rem, 1.9324rem + 3.3803vw, 6.8rem);
    /*28px-56px*/
    --text-h3: clamp(2.6rem, 1.5437rem + 2.8169vw, 5.6rem);
    /*18px-36px*/
    --text-h4: clamp(1.7rem, 1.031rem + 1.784vw, 3.6rem);
    /*14px-24px*/
    --text-footer: clamp(1.3rem, 0.9127rem + 1.0329vw, 2.4rem);
    /*24px-48px*/
    --text-lg: clamp(2.2rem, 1.2845rem + 2.4413vw, 4.8rem);
    /*18px-36px*/
    --text-md: clamp(1.7rem, 1.031rem + 1.784vw, 3.6rem);
    /*16px-32px*/
    --text-sm: clamp(1.5rem, 0.9014rem + 1.5962vw, 3.2rem);
    /*14px-28px*/
    --text-xs: clamp(1.3rem, 0.7718rem + 1.4085vw, 2.8rem);
    /* 12px-24px */
    --text-xxs: clamp(1.1rem, 0.6423rem + 1.2207vw, 2.4rem);

    /* weight */
    --medium: 500;
    --bold: 600;
    --heavy: 700;

    /* space */
    --space-360: 360px;
    --space-240: 240px;
    --space-180: 180px;
    --space-160: 160px;
    --space-120: 120px;
    --space-80: 80px;
    --space-60: 60px;
    --space-40: 40px;
    --space-30: 30px;

    /* logo */
    --logo-hero: 94.8vw;
    --logo-header: 75.8vw;
}

button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    appearance: none;
    color: inherit;
}

.font-EN {
    font-family: lato, sans-serif;
}

.font-Noto-CJK {
    font-family: "Noto Sans CJK JP", sans-serif;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-lg {
    font-size: var(--text-lg);
}

.text-md {
    font-size: var(--text-md);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-xs {
    font-size: var(--text-xs);
}

.text-medium {
    font-weight: var(--medium);
}

.text-bold {
    font-weight: var(--bold);
}

.text-heavy {
    font-weight: var(--heavy);
}

h2 {
    font-size: var(--text-h2);
    font-weight: var(--heavy);
    margin: 0;
}

hr {
    border: 0;
    border-bottom: 1px solid var(--color-text);
    width: clamp(35.5rem, -0.0903rem + 94.9074vw, 97rem);
}

a {
    text-decoration: none;
    color: var(--color-text);
}

/* section */
header,
#about,
#works,
#musicLibrary,
#contact {
    width: 94.8%;
    margin: 0 auto;
    padding: 6rem 0 8rem;
}


/* hero */
#hero {
    position: relative;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
}

.hero__logo {
    position: fixed;
    top: 50%;
    left: 50%;

    width: 94.8%;
    z-index: 100;

    transform: translate(-50%, -50%);
    transform-origin: center center;

    will-change: transform;
}

.hero__logo.is-active {
    transform:
        translate(-50%, -165%) scale(0.8);
}

.hero__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* header */
header {
    position: relative;
    margin: 0 auto;
}

.header__logo {
    position: relative;
    width: 75.8%;
    aspect-ratio: 520/88;
    opacity: 0;
}

h1 {
    margin: 0 0 3rem;
    padding-bottom: 3rem;
}

.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.container img {
    width: 100%;
}

header p {
    position: absolute;
    bottom: 80px;
    right: 0;
    margin: 0;
    font-size: var(--text-lg);
    font-weight: var(--medium);
}

/* header画像クロスフェード用 */
header .container .crossfade-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.crossfade-item .cf-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 800ms ease;
}

/* about */
.about__intro {
    margin: 0;
    padding: 4rem 0 8rem;
}

.menu {
    display: grid;
    grid-auto-flow: column;
    gap: 1rem;
}

.menu-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.menu-item__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(8rem, -0.0357rem + 21.4286vw, 12.8rem);
    aspect-ratio: 1;
}

.menu-item__bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--color-text);
    transition: .3s;
}

.menu-item__svg {
    position: relative;
    width: clamp(4.3rem, -0.2201rem + 12.0536vw, 7rem);
    z-index: 1;
}

.menu-item__icon:hover .menu-item__bg {
    transform: scale(1.08);
}

.about__text-discription {
    margin: 0;
    padding: 6rem 0 4rem;
}

/* composition */
#composition {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h4 {
    margin: 0;
    padding: 4rem 0;
    font-size: var(--text-md);
    font-weight: var(--medium);
}

.menu-item--large .menu-item__icon {
    width: clamp(9.6rem, 0.0576rem + 25.4464vw, 15.3rem);
}

.menu-item--large .menu-item__svg {
    width: clamp(6.1rem, -0.0942rem + 16.5179vw, 9.8rem);
}

.about__text-composition {
    padding: 4rem 0 0;
}

/* works */
.works__viewport {
    overflow: hidden;
    width: 100%;
    padding: 4rem 0 6rem;
    transition: height 400ms ease;
}

.works__track {
    display: flex;
    align-items: flex-start;
    transition: transform 500ms cubic-bezier(.65, 0, .35, 1);
}

/* 1ページ分のグリッド */
.works__page {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-content: start;
    gap: 1rem;
}

.works__item {
    cursor: pointer;
    padding-bottom: 2rem;
}

.works__item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.works__item-title {
    margin: 0;
    font-size: var(--text-xxs);
    font-weight: var(--bold);
}

.works__item-category {
    margin: 0.4rem 0 0;
    font-size: var(--text-xxs);
    font-weight: var(--bold);
    color: var(--color-tag);
}

/* ページ送りボタン */
.works__pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.works__pager button {
    font-size: var(--text-lg);
    color: var(--color-text);
}

.works__pager button:disabled {
    opacity: 0.3;
    cursor: default;
}

.works__pager-status {
    font-size: var(--text-md);
    padding: 0 5rem;
}

.works__modal-main {
    display: block;
    height: clamp(20.7rem, 0.0602rem + 52.9226vw, 54.2rem);
    width: auto;
    max-width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    padding: 10rem 0 1rem;
    margin: 0 auto;
}

.modal__content .works__modal-title {
    padding-bottom: 1rem;
}

.modal__content .works__modal-category {
    font-size: var(--text-xxs);
    padding-bottom: 1rem;
}

.works__modal-link {
    text-align: right;
}

.works__modal-link a {
    color: var(--color-white);
    text-decoration: underline;
}

.works__modal-sub {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 4rem 0 8rem;
}

.works__modal-sub img {
    display: block;
    width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
}


/* musicLibrary */
#musicLibrary p {
    margin: 0;
    padding: 4rem 0;
    font-size: var(--text-xs);
}


.music__layout {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.music__video-frame {
    position: relative;
    width: clamp(33.6rem, -0.0227rem + 89.6605vw, 91.7rem);
    aspect-ratio: 16 / 9;
    margin: 0 auto;
}

.music__video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.music__link {
    padding: 0;
}

/* contact */
#contact p {
    margin: 0;
    padding: 4rem 0 12rem;
}

#contact .contact__address {
    padding: 0 0 10.5rem;
}

/* footer */
footer {
    margin: 0 auto;
    padding: 20rem 0 9rem;
}

footer .copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
}

footer P {
    display: flex;
    flex-direction: column;
}

/* modal */
.modal {
    position: fixed;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 1000;
}

.modal.is-open {
    visibility: visible;
    opacity: 1;
}

.modal__overlay {
    width: 100%;
    height: 100%;
    background: rgba(18, 21, 21, 0.95);
    overflow-y: auto;
}

.modal__content {
    position: relative;
    width: 79.4%;
    margin: 10rem auto 0;
    color: var(--color-white);
}

.modal__close {
    position: absolute;
    left: -2rem;

    display: inline-flex;
    align-items: center;
    gap: .5rem;

    padding: 0;
    border: none;
    background: transparent;

    color: var(--color-white);
    font-size: var(--text-md);
    font-weight: var(--bold);
    cursor: pointer;
}

.modal__heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 8rem 0 4rem;
}

.modal__heading .menu-item__svg {
    width: 3.6rem;
    flex-shrink: 0;
}

.modal__heading h3 {
    margin: 0;
    font-size: var(--text-h3);
    color: var(--color-white);
}

.modal__content p {
    margin: 0;
    padding-bottom: 2.4rem;

    font-size: var(--text-sm);
    line-height: 1.5;
}

.modal__content p:last-child {
    padding-bottom: 0;
}


/* タブレット */
@media (min-width:600px) {

    /* section */
    header,
    #about,
    #works,
    #musicLibrary,
    #contact {
        width: 90%;
        padding: 10rem 0 12rem;
    }

    /* header */
    header {
        padding: 9rem 0 12rem;
    }

    .container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }

    h1 {
        padding-bottom: 6rem;
        margin-bottom: 4.5rem;
    }

    header p {
        bottom: 115px;
    }

    /* about */
    .about__text-discription {
        padding: 9rem 0 6rem;
    }

    h4 {
        padding: 6rem 0;
    }

    /* works */
    .works__page {
        gap: 3rem;
    }

    .works__item {
        padding-bottom: 0;
    }

    /* musicLibrary */
    #musicLibrary p {
        padding: 6rem 0;
    }

    /* contact */
    #contact p {
        padding: 6rem 0 18rem;
    }

    /* footer */
    footer P {
        flex-direction: row;
        gap: 1rem;
    }
}


/* デスクトップ */
@media (min-width:1024px) {

    hr {
        width: clamp(86.7rem, -0.0429rem + 84.7098vw, 162.6rem);
    }

    header,
    #about,
    #works,
    #musicLibrary,
    #contact {
        width: 84.7%;
        padding: 12rem 0 16rem;
    }

    /* hero */

    .hero__logo {
        width: 51.3%;
    }

    .hero__logo.is-active {
        transform: translate(-50%, -175%) scale(0.8);
    }

    /* header */
    header {
        padding: 12rem 0 16rem;
    }

    .header__logo {
        width: 41.1%;
        margin-bottom: 6rem;
    }

    h1 {
        padding-bottom: 6rem;
    }

    h1 img {
        width: 41.1%;
    }

    .container {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 0;
    }

    header p {
        bottom: 155px;
    }

    /* about */
    .about__intro {
        padding: 8rem 0 16rem;
    }

    .menu {
        gap: 8rem;
        justify-content: center;
    }

    .menu-item {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .menu-item__icon {
        width: clamp(12.6rem, 0rem + 8.75vw, 16.8rem);
    }

    .menu-item__svg {
        width: clamp(6.9rem, 0rem + 4.7917vw, 9.2rem);
    }

    .about__text-discription {
        margin: 0;
        padding: 12rem 0 8rem;
    }

    /* composition */
    h4 {
        padding: 8rem 0;
    }

    .menu-item--large .menu-item__icon {
        width: clamp(15rem, 0rem + 10.4167vw, 20rem);
    }

    .menu-item--large .menu-item__svg {
        width: clamp(9.6rem, 0.3rem + 6.4583vw, 12.7rem);
    }

    .about__text-composition {
        padding: 8rem 0 0;
    }

    /* works */
    .works__viewport {
        padding: 6rem 0 9rem;
    }

    .works__page {
        grid-template-columns: repeat(3, 1fr);
        gap: 6rem;
    }

    .works__viewport {
        padding: 8rem 0 12rem;
    }

    .works__pager-status {
        padding: 0 8rem;
    }

    .works__modal-main {
        padding: 14rem 0 1rem;
    }

    #modal-work .modal__content {
        width: 50%;
    }

    #modal-work .modal__close {
        left: -26rem;
    }


    /* musicLibrary */
    #musicLibrary p {
        margin: 0;
        padding: 8rem 0;
    }

    .music__layout {
        display: grid;
        grid-template-columns: 1fr auto;
        /* 動画は可変、リンクは内容に応じた幅 */
        column-gap: 4rem;
        row-gap: 6rem;
        align-items: center;
    }

    .music__description {
        grid-column: 1 / -1;
        /* 説明文は全幅を使って独立した1行に */
    }

    .music__video {
        grid-column: 1;
    }

    .music__video-frame {
        width: clamp(49.7rem, -0.1286rem + 48.6607vw, 93.3rem);
    }

    .music__link {
        grid-column: 2;
        white-space: nowrap;
        /* リンクの文言が折り返さないように */
    }

    /* contact */
    #contact p {
        margin: 0;
        padding: 8rem 0 24rem;
    }

    #contact .contact__address {
        padding: 0 0 20rem;
    }

    /* footer */
    footer {
        padding: 40rem 0 3rem;
    }

    /* modal */
    .modal__close {
        left: -5rem;
    }

    .modal__heading {
        gap: 2rem;
        padding: 10rem 0 4rem;
    }

    .modal__heading .menu-item__svg {
        width: 7.2rem;
    }

}
