/* ============================================
   严肃君 — Interior Design
   1:1 replica of i-in.jp layout & style
   ============================================ */

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", "Yu Gothic Medium", "游ゴシック Medium", YuGothic, -apple-system, "system-ui", "Hiragino Kaku Gothic ProN", meiryo, sans-serif;
    color: #212121;
    background: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

::selection {
    background: #212121;
    color: #fff;
}

/* ============ HEADER ============ */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 34px 144px 36px;
    height: 100px;
    background: #fff;
    transition: background 0.3s;
}

#header h1 {
    width: 14%;
    min-width: 60px;
}

#header h1 a {
    display: block;
    font-size: 0;
    /* Logo text fallback */
}

.logo-text {
    font-family: "Helvetica Neue", sans-serif;
    font-size: 24px;
    font-weight: 200;
    letter-spacing: 0.15em;
    color: #212121;
}

#global-nav ul {
    display: flex;
    gap: 48px;
}

#global-nav li {
    display: inline;
    position: relative;
}

#global-nav li a,
#global-nav li span {
    font-size: 14px;
    font-weight: 400;
    color: #212121;
    letter-spacing: 0.02em;
    transition: opacity 0.3s;
    cursor: pointer;
}

#global-nav li a:hover {
    opacity: 0.4;
}

#global-nav li.on span {
    color: #212121;
}

/* Mobile menu */
#sp-menu {
    display: none;
    width: 24px;
    height: 18px;
    cursor: pointer;
    position: relative;
    z-index: 200;
}

#sp-menu span {
    display: block;
    width: 100%;
    height: 1px;
    background: #212121;
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

#sp-menu span:nth-child(1) { top: 0; }
#sp-menu span:nth-child(2) { top: 8px; }
#sp-menu span:nth-child(3) { top: 16px; }

#sp-menu.active span:nth-child(1) { top: 8px; transform: rotate(45deg); }
#sp-menu.active span:nth-child(2) { opacity: 0; }
#sp-menu.active span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* ============ BRAND MARK (Homepage) ============ */
.brand-mark {
    padding: 140px 144px 60px;
}

.brand-cn {
    font-family: "Noto Serif SC", serif;
    font-size: 36px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #212121;
    line-height: 1;
    display: block;
}

.brand-en {
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.45em;
    color: #9e9e9e;
    text-transform: uppercase;
    display: block;
    margin-top: 10px;
}

/* ============ PROJECT LIST (Homepage) ============ */
.project_list {
    padding-top: 0;
}

.project_list > li {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 120px;
    padding: 0 144px;
    position: relative;
}

.project_list > li a {
    display: flex;
    align-items: center;
    width: 100%;
}

.project_text {
    width: 40%;
    padding-right: 4%;
    flex-shrink: 0;
}

.project_text h1 {
    font-size: 16px;
    font-weight: 400;
    color: #212121;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.project_text h2 {
    font-size: 14px;
    font-weight: 400;
    color: #9e9e9e;
    margin-top: 7px;
    line-height: 1.6;
}

.project_img {
    flex: 1;
    overflow: hidden;
}

.project_img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s;
}

.project_list > li a:hover .project_img img {
    transform: scale(1.02);
    opacity: 0.85;
}

/* ============ PROJECT DETAIL ============ */
.project-detail_hero {
    padding: 100px 144px 0;
}

.project-detail_hero img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.project-detail_contents {
    padding: 80px 144px 0;
}

.project-detail_contents header {
    margin-bottom: 48px;
}

.project-detail_contents header h1 {
    font-size: 16px;
    font-weight: 400;
    color: #212121;
    line-height: 1.6;
}

.project-detail_contents header h2 {
    font-size: 14px;
    font-weight: 400;
    color: #9e9e9e;
    line-height: 1.8;
}

.project-detail_contents header h3 {
    font-size: 14px;
    font-weight: 400;
    color: #9e9e9e;
    line-height: 1.8;
}

.project-description {
    display: flex;
    gap: 80px;
    margin-bottom: 60px;
}

.project-description .text-block {
    flex: 1;
    max-width: 60%;
}

.project-description p {
    font-size: 14px;
    color: #212121;
    line-height: 28px;
    margin-bottom: 20px;
}

.project-description p.ja {
    color: #666;
}

.project-credits {
    width: 200px;
    flex-shrink: 0;
}

.project-credits dl {
    margin-bottom: 16px;
}

.project-credits dt {
    font-size: 12px;
    color: #9e9e9e;
    margin-bottom: 2px;
}

.project-credits dd {
    font-size: 14px;
    color: #212121;
}

.project-gallery {
    padding: 40px 0 120px;
}

.project-gallery .gallery-item {
    display: block;
    width: 60%;
    margin-left: 40%;
    margin-bottom: 4px;
    overflow: hidden;
}

.project-gallery .gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: opacity 0.4s;
}

.project-gallery .gallery-item:hover img {
    opacity: 0.9;
}

/* ============ ABOUT PAGE ============ */
.about-content {
    padding: 140px 144px 120px;
    max-width: 800px;
}

.about-content h1 {
    font-size: 16px;
    font-weight: 400;
    color: #212121;
    margin-bottom: 48px;
}

.about-content p {
    font-size: 14px;
    color: #212121;
    line-height: 28px;
    margin-bottom: 28px;
}

.about-content p.secondary {
    color: #9e9e9e;
}

.about-profiles {
    margin-top: 80px;
}

.about-profiles .profile {
    margin-bottom: 48px;
}

.about-profiles .profile h2 {
    font-size: 14px;
    font-weight: 400;
    color: #212121;
    margin-bottom: 4px;
}

.about-profiles .profile p {
    font-size: 14px;
    color: #9e9e9e;
    line-height: 24px;
    margin-bottom: 0;
}

/* ============ CONTACT PAGE ============ */
.contact-content {
    padding: 140px 144px 120px;
    max-width: 600px;
}

.contact-content h1 {
    font-size: 16px;
    font-weight: 400;
    color: #212121;
    margin-bottom: 48px;
}

.contact-content p {
    font-size: 14px;
    color: #212121;
    line-height: 28px;
    margin-bottom: 20px;
}

.contact-content a {
    color: #212121;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1px;
    transition: border-color 0.3s;
}

.contact-content a:hover {
    border-color: #212121;
}

/* ============ FOOTER ============ */
#footer {
    padding: 44px 144px 20px;
    text-align: left;
}

#footer .copyright {
    font-size: 11px;
    color: #9e9e9e;
    font-weight: 400;
}

/* ============ FADE IN ANIMATION ============ */
.fadein {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fadein.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
    #header {
        padding: 24px 60px 26px;
    }
    .brand-mark {
        padding: 120px 60px 48px;
    }
    .project_list > li {
        padding: 0 60px;
        margin-bottom: 80px;
    }
    .project-detail_hero,
    .project-detail_contents,
    .about-content,
    .contact-content,
    #footer {
        padding-left: 60px;
        padding-right: 60px;
    }
}

@media (max-width: 768px) {
    #header {
        padding: 20px 24px 22px;
        height: 70px;
    }

    #global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 150;
    }

    #global-nav.open {
        right: 0;
    }

    #global-nav ul {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    #global-nav li a,
    #global-nav li span {
        font-size: 16px;
    }

    #sp-menu {
        display: block;
    }

    .brand-mark {
        padding: 100px 24px 32px;
    }

    .brand-cn {
        font-size: 28px;
    }

    .brand-en {
        font-size: 10px;
        letter-spacing: 0.35em;
        margin-top: 8px;
    }

    .project_list {
        padding-top: 0;
    }

    .project_list > li {
        padding: 0 24px;
        margin-bottom: 60px;
    }

    .project_list > li a {
        flex-direction: column;
    }

    .project_text {
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
        order: 2;
    }

    .project_img {
        width: 100%;
        order: 1;
        margin-bottom: 16px;
    }

    .project-detail_hero,
    .project-detail_contents {
        padding-left: 24px;
        padding-right: 24px;
    }

    .project-detail_contents {
        padding-top: 40px;
    }

    .project-description {
        flex-direction: column;
        gap: 32px;
    }

    .project-description .text-block {
        max-width: 100%;
    }

    .project-gallery .gallery-item {
        width: 100%;
        margin-left: 0;
    }

    .about-content,
    .contact-content,
    #footer {
        padding-left: 24px;
        padding-right: 24px;
    }
}
