/* ===========================
   Zen Modern - LP Sample 3
   =========================== */

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

/* CSS Variables */
:root {
    --color-bg: #f5f2ed;
    /* 生成り */
    --color-text: #2b2b2b;
    /* 墨色 */
    --color-gray: #6b6b6b;
    --color-accent: #c9a96e;
    /* 古金 */
    --font-main: 'Noto Serif JP', serif;
    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Washi Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/bg_washi.png');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: -2;
    pointer-events: none;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii43NSIgc3RpdGNoVGlsZXM9InN0aXRjaCIgdHlwZT0iZnJhY3RhbE5vaXNlIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxwYXRoIGQ9Ik0wIDBoMzAwdjMwMEgweiIgZmlsdGVyPSJ1cmwoI2EpIiBvcGFjaXR5PSIuMDUiLz48L3N2Zz4=');
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

/* Base */
body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 2;
    overflow-x: hidden;
    letter-spacing: 0.05em;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.6;
}

/* Vertical Text */
.t-vert {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    padding-left: 2rem;
    border-left: 2px solid var(--color-accent);
    letter-spacing: 0.2em;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    mix-blend-mode: difference;
    color: white;
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo__mark {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-text);
    border-radius: 50%;
    position: relative;
}

.logo__mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 1px;
    background: var(--color-text);
}

.logo__text {
    font-size: 0.9rem;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.menu-btn__line {
    width: 40px;
    height: 1px;
    background: var(--color-text);
    position: relative;
}

.menu-btn__line::before,
.menu-btn__line::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--color-text);
    left: 0;
    transition: 0.3s;
}

.menu-btn__line::before {
    top: -8px;
}

.menu-btn__line::after {
    top: 8px;
}

.menu-btn__text {
    font-size: 0.8rem;
    font-family: var(--font-main);
}

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.nav-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.nav-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.nav-list a {
    font-size: 2rem;
    letter-spacing: 0.2em;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row-reverse;
    /* Vertical text flows right to left */
    gap: 4rem;
    height: 60vh;
}

.hero__title {
    font-size: 4rem;
    line-height: 1.5;
    display: flex;
    flex-direction: row-reverse;
    gap: 1rem;
}

.hero__lead {
    font-size: 1.2rem;
    line-height: 2.5;
    color: var(--color-gray);
    border-right: 1px solid var(--color-gray);
    padding-right: 2rem;
}

.hero__visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vh;
    height: 60vh;
    z-index: 1;
    opacity: 0.8;
    mix-blend-mode: multiply;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: float 10s ease-in-out infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: var(--color-text);
}

/* Concept */
.concept__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6rem;
}

.concept__img {
    width: 300px;
    mix-blend-mode: multiply;
}

.ink-art {
    width: 100%;
    height: auto;
    transform: rotate(-10deg);
}

.concept__text {
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Works */
.works__scroll {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.works__scroll::-webkit-scrollbar {
    display: none;
}

.works__list {
    display: flex;
    gap: 4rem;
    padding: 0 2rem;
    width: max-content;
}

.work-item {
    display: flex;
    flex-direction: row-reverse;
    gap: 1.5rem;
    align-items: flex-start;
    flex-shrink: 0;
}

.work-item__img {
    width: 300px;
    height: 400px;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s var(--ease-out);
}

.work-item:hover .placeholder-img {
    transform: scale(1.05);
}

.work-item__info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.work-item__info p {
    font-size: 0.9rem;
    color: var(--color-gray);
}

/* Contact */
.contact__inner {
    display: flex;
    gap: 6rem;
    align-items: flex-start;
}

.contact__form {
    flex: 1;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.5);
    padding: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-gray);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--color-text);
}

.btn-submit {
    background: var(--color-text);
    color: var(--color-bg);
    border: none;
    padding: 1rem 3rem;
    font-family: var(--font-main);
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-submit:hover {
    opacity: 0.8;
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    z-index: 2;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}

.t-vert.fade-in {
    transform: translateY(0) translateX(-20px);
    /* Slide from left for vertical text */
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
        min-height: 600px;
        padding: 0;
        display: block;
        overflow: hidden;
    }

    .hero__content {
        display: block;
        height: 100%;
        width: 100%;
        position: relative;
        z-index: 2;
    }

    .hero__title {
        position: absolute;
        top: 18%;
        right: 12%;
        flex-direction: row-reverse;
        font-size: 3.2rem;
        line-height: 1.4;
        gap: 1.5rem;
        margin: 0;
        align-items: flex-start;
    }

    .t-vert {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
    }

    .hero__title .t-vert {
        writing-mode: vertical-rl;
        text-orientation: upright;
    }

    .section-title {
        border-left: none;
        border-bottom: 1px solid var(--color-accent);
        padding-left: 0;
        padding-bottom: 1rem;
        width: fit-content;
        margin: 0 auto 3rem;
    }

    .hero__lead {
        position: absolute;
        top: 35%;
        left: 8%;
        border-right: 1px solid var(--color-gray);
        padding-right: 1.5rem;
        max-width: none;
        margin: 0;
        line-height: 2.2;
        font-size: 0.95rem;
        writing-mode: vertical-rl;
        text-orientation: upright;
        height: auto;
        color: var(--color-text);
        letter-spacing: 0.1em;
        bottom: auto;
    }

    .hero__visual {
        position: absolute;
        top: auto;
        bottom: -5%;
        right: -15%;
        left: auto;
        transform: none;
        width: 85vw;
        max-width: 380px;
        height: auto;
        margin: 0;
        opacity: 0.6;
        z-index: 1;
        pointer-events: none;
    }

    .concept__inner {
        flex-direction: column;
        gap: 3rem;
    }

    .concept__text {
        height: auto;
        text-align: center;
    }

    .works__list {
        flex-direction: column;
        width: 100%;
        gap: 3rem;
    }

    .work-item {
        flex-direction: column;
        width: 100%;
    }

    .work-item__img {
        width: 100%;
        height: 250px;
    }

    .contact__inner {
        flex-direction: column;
        gap: 3rem;
    }
}