/* ==================================================
   VARIABLES
================================================== */

:root {

    --lime: #91c900;
    --lime-dark: #78a900;
    --lime-light: #eef7d5;

    --ivory: #faf9f4;
    --cream: #f4f1e7;

    --white: #ffffff;

    --text: #302c29;
    --text-light: #77716b;

    --border: #e5e1d8;

    --max-width: 1200px;

}


/* ==================================================
   RESET
================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;

    font-family:
        "Noto Sans JP",
        sans-serif;

    color: var(--text);

    background: var(--ivory);

    line-height: 1.8;
}

img {

    width: 100%;

    display: block;

}

a {

    color: inherit;

    text-decoration: none;

}


/* ==================================================
   HEADER
================================================== */

.header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 100;

    background: rgba(255,255,255,.96);

    border-bottom: 1px solid rgba(0,0,0,.04);

    backdrop-filter: blur(12px);

}

.header-inner {

    max-width: var(--max-width);

    height: 78px;

    margin: auto;

    padding: 0 32px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


/* Logo */

.logo {
    display: block;
    line-height: 0;
}

.logo img {
    display: block;
    width: 180px;
    height: auto;
    max-width: 100%;
}


/* Navigation */

.global-nav {

    display: flex;

    align-items: center;

    gap: 32px;

}

.global-nav > a {

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: .05em;

}

.global-nav > a small {

    font-size: 9px;

    color: var(--text-light);

    font-weight: 400;

}

.global-nav > a:not(.dlsite-button)::after {

    content: "";

    position: absolute;

    bottom: -29px;

    left: 50%;

    width: 0;

    height: 3px;

    background: var(--lime);

    transition: .3s;

}

.global-nav > a:hover::after {

    left: 0;

    width: 100%;

}


.dlsite-button {

    padding: 10px 22px;

    color: white !important;

    background: var(--lime);

    border-radius: 30px;

    transition: .3s;

}

.dlsite-button:hover {
    background: var(--lime-dark);
}


/* ==================================================
   HERO
================================================== */

.hero {

    position: relative;

    height: 100vh;

    min-height: 680px;

    overflow: hidden;

    color: white;

}

.hero-image {

    position: absolute;

    inset: 0;

    background-image:
        url("../img/about.jpg");

    background-size: cover;

    background-position: center;

    transform: scale(1.02);

}

.hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            -90deg,
            rgba(0,0,0,.62) 0%,
            rgba(0,0,0,.35) 42%,
            rgba(0,0,0,.05) 75%
        );

}

.hero-content {

    position: absolute;

    top: 50%;

    right: max(
        calc((100% - var(--max-width)) / 2),
        40px
    );
    left: auto;
    transform: translateY(-50%);
    max-width: 560px;

}

.hero-small {

    margin: 0 0 15px;

    font-family:
        "Playfair Display",
        serif;

    font-size: 20px;

    letter-spacing: .15em;

}

/* Hero Logo */

    .hero-logo {
        margin-bottom: 30px;
    }

    .hero-logo img {
        display: block;
        width: 360px;
        height: auto;
        max-width: 70vw;
    }

.hero h1 {

    margin: 0 0 35px;

    font-size: 18px;

    font-weight: 500;

    letter-spacing: .08em;

}


/* Hero buttons */

.hero-buttons {

    display: flex;

    gap: 14px;

}


/* ==================================================
   BUTTON
================================================== */

.button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 20px;

    min-width: 190px;

    padding: 13px 24px;

    border-radius: 30px;

    font-size: 13px;

    font-weight: 600;

    transition: .3s;

}

.button span {

    font-size: 20px;

    line-height: 0;

}

.button-primary {

    color: white;

    background: var(--lime);

}

.button-primary:hover {

    background: var(--lime-dark);

    transform: translateY(-2px);

}

.button-outline {

    color: white;

    border: 1px solid rgba(255,255,255,.8);

}

.button-outline:hover {

    color: var(--text);

    background: white;

}

.button-outline-dark {

    border: 1px solid #bbb;

}

.button-outline-dark:hover {

    color: white;

    background: var(--text);

}

.button-outline-green {

    color: var(--lime-dark);

    border: 1px solid var(--lime);

}

.button-outline-green:hover {

    color: white;

    background: var(--lime);

}


/* Hero bottom */

.hero-scroll {

    position: absolute;

    bottom: 28px;

    left: 50%;

    transform: translateX(-50%);

    text-align: center;

    font-size: 9px;

    letter-spacing: .3em;

}

.scroll-arrow {

    margin-top: 4px;

    font-size: 18px;

}

.hero-pagination {

    position: absolute;

    right: 50px;

    bottom: 35px;

    font-size: 11px;

    letter-spacing: .2em;

}


/* ==================================================
   COMMON SECTION
================================================== */

.section {

    max-width: var(--max-width);

    margin: auto;

    padding: 100px 32px;

}

.section-en {

    margin: 0;

    font-family:
        "Playfair Display",
        serif;

    color: var(--lime-dark);

    font-size: 30px;

    line-height: 1;

}

.section-jp {

    margin: 3px 0;

    color: var(--lime-dark);

    font-size: 11px;

}


/* ==================================================
   NEWS
================================================== */

.news {

    display: grid;

    grid-template-columns: 170px 1fr auto;

    align-items: center;

    gap: 35px;

    padding-top: 60px;

    padding-bottom: 60px;

    border-bottom: 1px solid var(--border);

}

.news-list {

    border-left: 1px solid var(--border);

    padding-left: 30px;

}

.news-item {

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 8px 0;

    font-size: 12px;

}

.news-item time {

    color: var(--text-light);

    white-space: nowrap;

}

.news-item p {
    margin: 0;
}

.news-new {

    padding: 2px 8px;

    color: white;

    background: var(--lime);

    border-radius: 10px;

    font-size: 9px;

}


/* ==================================================
   SECTION TITLE
================================================== */

.section-title {

    position: relative;

    margin-bottom: 45px;

    text-align: center;

}

.section-title h2 {

    margin: 0;

    font-family:
        "Playfair Display",
        serif;

    font-size: 38px;

    font-weight: 500;

    letter-spacing: .08em;

}

.section-title span {

    color: var(--lime);

}

.section-title small {

    display: block;

    margin-top: 0;

    color: var(--lime-dark);

    font-size: 10px;

    letter-spacing: .2em;

}


/* ==================================================
   LATEST
================================================== */

.latest {

    max-width: 1200px;

}

.latest-card {

    display: grid;

    grid-template-columns: 1.15fr 1fr;

    background: white;

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 15px 50px rgba(60,50,30,0.06);

}

.latest-image img {

    height: 100%;

    min-height: 400px;

    object-fit: cover;

}

.latest-info {

    padding: 45px;

}

.new-label {

    display: inline-block;

    padding: 2px 10px;

    color: white;

    background: var(--lime);

    border-radius: 12px;

    font-size: 10px;

}

.latest-info h3 {

    margin: 12px 0;

    font-size: 28px;

    line-height: 1.5;

    font-weight: 600;

}

.credit {

    display: flex;

    gap: 20px;

    color: var(--lime-dark);

    font-size: 12px;

}

.latest-description {

    margin: 25px 0;

    color: #655f59;

    font-size: 13px;

}

.tags {

    display: flex;

    gap: 8px;

    flex-wrap: wrap;

    margin-bottom: 25px;

}

.tags span {

    padding: 4px 12px;

    color: var(--lime-dark);

    background: var(--lime-light);

    border-radius: 4px;

    font-size: 10px;

}

.latest-buttons {

    display: flex;

    gap: 10px;

}

.latest-buttons .button {

    min-width: auto;

    padding: 11px 17px;

    font-size: 11px;

}


/* ==================================================
   WORKS
================================================== */

.works {

    max-width: 1200px;

}

.works-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;

}

.work-card {

    overflow: hidden;

    background: white;

    border-radius: 7px;

    box-shadow:
        0 8px 30px rgba(50,40,20,0.05);

    transition: .3s;

}

.work-card:hover {

    transform: translateY(-6px);

    box-shadow:
        0 20px 40px rgba(50,40,20,0.09);

}

.work-image {

    position: relative;

    overflow: hidden;

}

.work-image img {

    aspect-ratio: 16 / 9;

    object-fit: cover;

    transition: .5s;
    
    backface-visibility: hidden;

}

.work-card:hover .work-image img {

    transform: scale(1.04);

}

.work-image .new-label {

    position: absolute;

    top: 10px;

    left: 10px;

}

.work-info {

    position: relative;

    padding: 17px 18px 20px;

}

.work-info h3 {

    margin: 0 0 6px;

    font-size: 15px;

    line-height: 1.6;

}

.work-meta {

    color: #999;

    font-size: 10px;

}

.work-tags {

    margin-top: 4px;

    color: var(--lime-dark);

    font-size: 9px;

}

.work-arrow {

    position: absolute;

    right: 18px;

    bottom: 20px;

    width: 27px;

    height: 27px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--lime);

    border: 1px solid var(--lime);

    border-radius: 50%;

}

.works-more {

    margin-top: 45px;

    text-align: center;

}


/* ==================================================
   ABOUT
================================================== */

.about {

    max-width: none;

    padding: 0;

    display: grid;

    grid-template-columns: 1fr 1fr;

    background: #eef3df;

}

.about-image img {

    height: 100%;

    min-height: 430px;

    object-fit: cover;

}

.about-content {

    max-width: 600px;

    padding: 80px;

}

.about-title {

    text-align: left;

    margin-bottom: 30px;

}

.about-content h3 {

    margin: 0 0 20px;

    font-size: 23px;

    line-height: 1.8;

}

.about-content p {

    margin-bottom: 30px;

    color: #69665e;

    font-size: 13px;

}


/* ==================================================
   CONTACT
================================================== */

.contact {

    text-align: center;

}

.contact h2 {

    margin: 10px 0;

    font-size: 30px;

}

.contact > p:not(.section-en) {

    margin-bottom: 30px;

    color: var(--text-light);

    font-size: 13px;

}


/* ==================================================
   FOOTER
================================================== */

.footer {

    color: #555;

    background: white;

    border-top: 1px solid var(--border);

}

.footer-inner {

    max-width: var(--max-width);

    margin: auto;

    padding: 60px 32px;

    display: grid;

    grid-template-columns: 250px 1fr;

    gap: 80px;

}

.footer-logo {
    display: block;
}

.footer-logo img {
    display: block;
    width: 150px;
    height: auto;
    max-width: 100%;
}

.footer-menu {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 40px;

}

.footer-menu div {

    display: flex;

    flex-direction: column;

    gap: 7px;

}

.footer-menu span {

    margin-bottom: 8px;

    color: var(--lime-dark);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .15em;

}

.footer-menu a {

    font-size: 11px;

}

.footer-menu a:hover {

    color: var(--lime-dark);

}

.copyright {

    padding: 13px;

    color: white;

    background: var(--lime);

    text-align: center;

    font-size: 9px;

    letter-spacing: .1em;

}


/* ==================================================
   TOP BUTTON
================================================== */

.top-button {

    position: fixed;

    right: 25px;

    bottom: 25px;

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    background: var(--lime);

    border-radius: 50%;

    z-index: 90;

    box-shadow:
        0 5px 15px rgba(60,50,30,0.08);

}


/* ==================================================
   MOBILE MENU
================================================== */

.menu-button {

    display: none;

    width: 42px;

    height: 42px;

    border: 0;

    background: none;

    cursor: pointer;

}

.menu-button span {

    display: block;

    width: 24px;

    height: 2px;

    margin: 5px auto;

    background: var(--text);

}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 900px) {

    .global-nav {

        gap: 15px;

    }

    .latest-card {

        grid-template-columns: 1fr;

    }

    .latest-image img {

        min-height: auto;

    }

    .works-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

    .about {

        grid-template-columns: 1fr;

    }

    .about-image img {

        min-height: 300px;

    }

    .about-content {

        max-width: none;

    }

}


/* ==================================================
   SMARTPHONE
================================================== */

@media (max-width: 700px) {

    .header-inner {

        height: 65px;

        padding: 0 20px;

    }

    .logo {

        font-size: 31px;

    }

    .global-nav {

        position: fixed;

        top: 65px;

        left: 0;

        width: 100%;

        padding: 30px;

        background: white;

        display: none;

        flex-direction: column;

        gap: 20px;

        box-shadow:
            0 10px 20px rgba(0,0,0,.08);

    }

    .global-nav.active {

        display: flex;

    }

    .global-nav > a:not(.dlsite-button)::after {

        display: none;

    }

    .menu-button {

        display: block;

    }


    .hero {

        min-height: 650px;

    }

    .hero-content {

    position: absolute;
    top: 50%;
    right: 25px;
    left: auto;
    transform: translateY(-50%);
    width: calc(100% - 50px);
    max-width: 1200px;
    text-align: right;

    }

    .hero-logo img {
        width: 280px;
        max-width: 75vw;
    }

    .hero h1 {

        font-size: 13px;

    }

    .hero-buttons {

        flex-direction: column;

        align-items: flex-end;

    }

    .hero-pagination {

        right: 20px;

    }


    .section {

        padding: 70px 20px;

    }


    .news {

        display: block;

    }

    .news-list {

        margin-top: 25px;

        padding-left: 0;

        border-left: 0;

    }

    .news-item {

        align-items: flex-start;

        flex-wrap: wrap;

        padding: 12px 0;

        border-bottom: 1px solid var(--border);

    }


    .latest-info {

        padding: 30px 22px;

    }

    .latest-info h3 {

        font-size: 23px;

    }

    .credit {

        flex-direction: column;

        gap: 0;

    }

    .latest-buttons {

        flex-direction: column;

    }


    .works-grid {

        grid-template-columns: 1fr;

        gap: 18px;

    }


    .about-content {

        padding: 60px 25px;

    }


    .footer-inner {

        padding: 50px 25px;

        grid-template-columns: 1fr;

        gap: 40px;

    }

    .footer-menu {

        grid-template-columns: 1fr 1fr;

    }

    .footer-logo img {
        width: 130px;
    }

}


/* ==========================================
   Scroll Animation
========================================== */

.fade-in {

    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity .8s ease,
        transform .8s ease;

}

.fade-in.show {

    opacity: 1;

    transform: translateY(0);

}
