/* Reference: cursorrules */
/* PC/Tablet width: 1170px (content 1140px) */
/* Breakpoint: 768px */

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

body {
    font-family: "Noto Sans JP", sans-serif;
    color: #444444;
    background-color: #F9F8F2;
    line-height: 1.8;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

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

h2 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.4;
}

@media screen and (max-width: 599px) {
    h2 {
        font-size: 32px;
        line-height: 1.4;
    }
}

h3 {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.8;
}

@media screen and (max-width: 599px) {
    h3 {
        font-size: 24px;
    }
}

h4 {
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0.1em;
}

@media screen and (min-width: 600px) {
    h4 {
        font-size: 16px;
    }
}

/* Utilities */
.sp-only {
    display: none;
}

@media screen and (max-width: 599px) {
    .sp-only {
        display: block;
    }
}

.pc-only {
    display: block;
}

@media screen and (max-width: 599px) {
    .pc-only {
        display: none;
    }
}

.text-center {
    text-align: center;
}


.text-green {
    color: #CCE5B0;
}

.mb-100 {
    margin-bottom: 110px;
}

.mb-140 {
    margin-bottom: 140px;
}

@media screen and (max-width: 599px) {

    .mb-100,
    .mb-140 {
        margin-bottom: 48px;
    }
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container,
.l-container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

@media screen and (max-width: 599px) {

    .container,
    .l-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Animations */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes scroll-down {
    0% {
        transform: translateY(-100%);
    }

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

@keyframes vertical-line-grow {
    0% {
        height: 0;
    }

    100% {
        height: 100px;
    }
}


/* Background Decor */
.layer-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.layer-decor__circle {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    border: 40px solid rgba(204, 229, 176, 0.15);
    transition: transform 0.1s linear;
}

.layer-decor__texture {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    mix-blend-mode: multiply;
    background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
}

/* Header & Main */
#js-header {
    position: relative;
    z-index: 100;
}

.main {
    position: relative;
    z-index: 1;
    padding: 0;
}

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

.hero__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent, transparent);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    text-align: left;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out;
}

@media screen and (max-width: 599px) {
    .hero__content {
        padding: 0 20px;
    }
}

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

.hero__logo {
    margin-bottom: 40px;
    opacity: 0.9;
    display: flex;
    justify-content: flex-start;
}

.hero__logo img {
    height: 60px;
    width: auto;
}

@media screen and (min-width: 600px) {
    .hero__logo img {
        height: 80px;
    }
}

.hero__title {
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-size: 42px;
    font-weight: 600;
    line-height: 64px;
    letter-spacing: 0.15em;
    margin-bottom: 40px;
}

@media screen and (min-width: 600px) {
    .hero__title {
        font-size: 48px;
    }
}

.hero__subtitle {
    font-size: 16px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: 0.15em;
    color: white;
    opacity: 0.9;
}

@media screen and (min-width: 600px) {
    .hero__subtitle {
        font-size: 32px;
        line-height: 72px;
    }
}


.hero__scroll {
    position: absolute;
    bottom: 48px;
    right: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

@media screen and (max-width: 599px) {
    .hero__scroll {
        bottom: 20px;
        right: 20px;
    }
}

.hero__scroll-line {
    width: 1px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.hero__scroll-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: white;
    animation: scroll-down 2s infinite;
}

.hero__scroll-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: white;
    margin-bottom: 12px;
    opacity: 0.7;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Intro */
.intro {
    padding: 120px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

@media screen and (max-width: 599px) {
    .intro {
        padding: 60px 0 60px;
    }
}

.intro__line {
    width: 1px;
    height: 100px;
    background-color: #CCE5B0;
    margin-bottom: 60px;
    transform-origin: top;
    animation: vertical-line-grow 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.intro__title {
    font-size: 48px;
    font-weight: 600;
    line-height: 64px;
    letter-spacing: 0.15em;
    margin-bottom: 32px;
}

@media screen and (max-width: 599px) {
    .intro__title {
        font-size: 40px;
        line-height: 60px;
    }
}

.intro__desc {
    font-size: 14px;
    font-weight: 500;
    line-height: 26px;
    letter-spacing: 0.1em;
    color: #444444;
}

@media screen and (min-width: 600px) {
    .intro__desc {
        font-size: 16px;
    }
}

/* Features */
.features {
    padding: 0 0 120px;
}

@media screen and (max-width: 599px) {
    .features {
        padding: 0 0 60px;
    }
}

.features__header {
    text-align: center;
    margin-bottom: 80px;
}

.features__title {
    font-size: 48px;
    font-weight: 500;
    line-height: 64px;
    letter-spacing: 0.1em;
}

@media screen and (max-width: 599px) {
    .features__title {
        font-size: 32px;
        line-height: 42px;
    }
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: end;
}

@media screen and (max-width: 599px) {
    .features__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.card {
    text-align: center;
    align-self: start;
}

.card__img-shape {
    width: 100%;
    margin: 0 auto 24px;
    aspect-ratio: 3/2;
    /* Keep landscape ratio */
    border-radius: 0;
    overflow: hidden;
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); */
    position: relative;
}

.card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__badge {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: #CCE5B0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.card__title {
    margin-bottom: 16px;
    border-bottom: 1px dotted #CCE5B0;
    display: inline-block;
}

.card__desc {
    color: #222;
}

/* Flex Row */
.flex-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 80px;
}

@media screen and (max-width: 599px) {
    .flex-row {
        flex-direction: column;
        gap: 16px;
    }
}

.flex-row-reverse {
    display: flex;
    flex-wrap: wrap-reverse;
    align-items: center;
    gap: 80px;
}

@media screen and (max-width: 599px) {
    .flex-row-reverse {
        flex-direction: column-reverse;
        gap: 16px;
    }
}

.img-wrap,
.text-wrap {
    flex: 1;
    min-width: 300px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.rounded-img-full {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 0;
    overflow: hidden;
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); */
}

.section-title {
    text-align: center;
    margin-bottom: 64px;
    font-size: 48px;
    font-weight: 500;
    line-height: 64px;
    letter-spacing: 0.1em;
}

@media screen and (max-width: 599px) {
    .section-title {
        font-size: 32px;
        line-height: 42px;
    }
}

.text-title {
    font-size: 36px;
    font-weight: 500;
    line-height: 48px;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

@media screen and (max-width: 599px) {
    .text-title {
        font-size: 24px;
        line-height: 38px;
        margin-bottom: 16px;
    }
}

.text-desc {
    color: #444444;
}

/* Partnership */
.partnership {
    padding: 120px 0;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

@media screen and (max-width: 599px) {
    .partnership {
        padding: 60px 0;
    }
}

.partnership::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: white;
    z-index: -2;
}


/* Mid Headline */
.mid-headline {
    background-color: white;
    padding: 0;
}

.mid-headline__title {
    font-size: 36px;
    font-weight: 500;
    line-height: 48px;
    letter-spacing: 0.1em;
    text-align: center;
}

@media screen and (max-width: 599px) {
    .mid-headline__title {
        font-size: 24px;
        line-height: 38px;
    }
}

.mid-headline__line {
    display: none;
    width: 60px;
    height: 2px;
    background-color: #CCE5B0;
    margin: 24px auto 0;
}

/* Biophilic */
.biophilic {
    padding: 120px 0;
    background-color: #2A351D;
    color: #F9F8F2;
    position: relative;
    overflow: hidden;
}

@media screen and (max-width: 599px) {
    .biophilic {
        padding: 60px 0;
    }
}

.biophilic__bg-decor {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(204, 229, 176, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.biophilic__header {
    text-align: center;
    /* Reduced from 100px */
    margin-bottom: 50px;
}

.biophilic__subtitle {
    font-size: 12px;
    letter-spacing: 0.5em;
    font-weight: 700;
    color: #CCE5B0;
    display: block;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.biophilic__title {
    color: #FFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-size: 48px;
    font-weight: 500;
    line-height: 64px;
    letter-spacing: 0.1em;
}

@media screen and (max-width: 599px) {
    .biophilic__title {
        font-size: 32px;
        line-height: 42px;
    }
}

.biophilic__line {
    display: none;
    width: 100px;
    height: 1px;
    background-color: #CCE5B0;
    margin: 40px auto 0;
    opacity: 0.5;
}

.biophilic__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}


.biophilic__col-left {
    padding-top: 20px;
}

.biophilic__col-right {
    padding-top: 80px;
}




.biophilic__logo-area {
    margin-bottom: 40px;
    color: #fff;
}

.biophilic__logo-small {
    font-size: 14px;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1;
}

@media screen and (min-width: 600px) {
    .biophilic__logo-small {
        font-size: 16px;
    }
}

.biophilic__logo-large {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.biophilic__logo-katakana {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.biophilic__card {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 0;
    overflow: hidden;
    /* box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4); */
    position: relative;
}

.biophilic__card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, #2A351D);
}

/* Specific adjustment for first image to be larger and overlap */
.biophilic__col-left .biophilic__card:first-of-type {
    width: 160%;
    aspect-ratio: 1/1;
    z-index: 0;
    margin-bottom: -80px;
    margin-right: -100px;
    /* box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5); */
}

@media screen and (max-width: 599px) {
    .biophilic__col-left .biophilic__card:first-of-type {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0;
        aspect-ratio: 4/3;
    }
}

/* Specific adjustment for second image (right bottom) */
.biophilic__col-right .biophilic__card {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    margin-left: -30px;
    width: 100%;
}

@media screen and (max-width: 599px) {
    .biophilic__col-right .biophilic__card {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* Utils within biophilic */
.mb-30 {
    margin-bottom: 30px;
}

.mt-minus-30 {
    margin-top: 30px;
    z-index: 3;
    position: relative;
    /* Ensure it sits visibly if overlapped */
}

/* Right top text adjustment */
.spacer-top {
    margin-top: 100px;
    margin-left: -40px;
    /* Overlap left image slightly */
    position: relative;
    z-index: 2;
    /* Text on top of image */
}

@media screen and (max-width: 599px) {
    .spacer-top {
        margin-top: 40px;
        margin-left: 0;
    }
}

.biophilic__text-box {
    border-left: none;
    padding-left: 0;
}

.biophilic__text-box--courtyard {
    margin-top: 100px;
    /* Align with right image slightly higher than bottom */
}

.biophilic__text-title {
    color: #fff;
    font-size: 36px;
    font-weight: 500;
    line-height: 48px;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

@media screen and (max-width: 599px) {
    .biophilic__text-title {
        font-size: 24px;
        line-height: 38px;
    }
}

.biophilic__text-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0.1em;
}

@media screen and (min-width: 600px) {
    .biophilic__text-desc {
        font-size: 16px;
    }
}


/* Footer Override */
#js-footer .footer {
    background-color: white;
    color: #999;
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    border-top: 1px solid #eee;
    padding: 48px 0;
}

/* Scroll Fade-in Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* --- Mobile Specific Overrides (Biophilic) --- */
@media screen and (max-width: 599px) {
    .biophilic__grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .biophilic__col-left,
    .biophilic__col-right {
        display: contents;
    }

    .biophilic__logo-area {
        order: 1;
        margin-bottom: 0 !important;
    }

    .biophilic__col-left .biophilic__card {
        order: 2;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .biophilic__col-right .biophilic__text-box {
        order: 3;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .biophilic__col-right .biophilic__card {
        order: 4;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .biophilic__col-left .biophilic__text-box--courtyard {
        order: 5;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .spacer-top,
    .mt-minus-30 {
        margin-top: 0 !important;
    }
}