@charset "UTF-8";

/* Styles for SUSTAINA Story page */

body {
    margin: 0;
    padding: 0;
    font-family: "M PLUS 1p", sans-serif;
    background-color: #ffffff;
    color: #0f0f0f;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.sustaina-about-wrap {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
}

.sustaina-header {
    width: 100%;
    height: 100px;
    background-color: #000000;
    display: flex;
    align-items: center;
    padding: auto;
}

.sustaina-nav {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    box-sizing: border-box;
    position: relative;
}

.sustaina-nav__logo {
    display: flex;
    align-items: center;
}

.sustaina-nav__logo img {
    height: 35px;
    width: auto;
}

.sustaina-nav__actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    position: relative;
}

.sustaina-nav__tabs {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sustaina-nav__contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 0 15px;
    background-color: #e94709;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap;
    margin-right: -32px;
    gap: 8px;
}

.sustaina-nav__contact--mobile {
    display: none;
}

.sustaina-nav__contact-icon {
    width: 18px;
    height: auto;
}

.sustaina-nav__menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    background: url("/images/products/sustaina/menu_btn.svg") center center / 30px 30px no-repeat;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.sustaina-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.sustaina-nav__tab {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 10px 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.sustaina-nav__tab::before {
    content: "▶︎";
    display: inline-block;
    margin-right: 4px;
}

.sustaina-nav__tab.is-active {
    color: #79f279;
}

.sustaina-nav__tab.is-active::before {
    content: "";
    display: none;
    margin-right: 0;
}

.sustaina-nav__tab:focus-visible {
    outline: 2px solid #79f279;
    outline-offset: 4px;
}

.sustaina-nav__logo-bar {
    height: 28px;
    margin: 20px;
    width: auto;
}

.sustaina-main {
    background: #ffffff;
    min-height: calc(100vh - 100px);
    flex: 1 0 auto;
    box-sizing: border-box;
}

.sustaina-content {
    max-width: none;
    margin: 0;
}

.sustaina-section {
    display: none;
    background: #ffffff;
}

.sustaina-section.is-active {
    display: block;
}

.sustaina-hero-wrap {
    position: relative;
}

.sustaina-hero-logo {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.sustaina-hero-logo img {
    height: 204px;
    width: auto;
}

.sustaina-hero {
    --sustaina-hero-zoom: 1700px;
    --sustaina-hero-pos-x: center;
    --sustaina-hero-pos-y: 2%;
    position: relative;
    height: 600px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) -20%, rgba(255, 255, 255, 0.75) 40%, #ffffff 100%),
        url("/images/products/sustaina/story_top_bg.png");
    background-position: var(--sustaina-hero-pos-x) var(--sustaina-hero-pos-y);
    background-repeat: no-repeat;
    background-size: var(--sustaina-hero-zoom) auto;
}

.hero-tagline {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 350px;
    width: 100%;
    color: #1e707b;
    font-size: clamp(30px, 5vw, 35px);
    font-weight: 500;
    letter-spacing: 20px;
    text-indent: 20px;
    text-align: center;
    font-family: "M PLUS 1p", sans-serif;
    line-height: 1.1;
    margin: 0 auto;
    white-space: nowrap;
    z-index: 2;
    box-sizing: border-box;
}

.hero-description {
    position: absolute;
    left: 0;
    right: 0;
    top: 440px;
    width: min(1080px, 92vw);
    color: #000000;
    font-size: clamp(15px, 2.2vw, 20px);
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.08em;
    text-align: center;
    margin: 0 auto;
    padding: 0 16px;
    z-index: 2;
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.hero-description__image {
    width: 140px;
    max-width: 32vw;
    height: auto;
    flex-shrink: 0;
}

.hero-description__text {
    text-align: left;
    letter-spacing: 0.25em;
}

.sustaina-story-timeline {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
}

.story-era {
    --story-era-bg-x: center;
    --story-era-bg-y: 50%;
    --story-era-bg-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 400px;
    background-size: var(--story-era-bg-size);
    background-position: var(--story-era-bg-x) var(--story-era-bg-y);
    background-repeat: no-repeat;
    color: #ffffff;
    overflow: hidden;
    text-decoration: none;
}

.story-era::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0.45) 100%);
    z-index: 0;
}

.story-era__inner {
    position: relative;
    z-index: 1;
    width: min(1080px, 90vw);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.story-era__inner.align-left {
    margin-left: clamp(24px, 6vw, 80px);
    text-align: left;
}

.story-era__inner.align-right {
    margin-right: clamp(24px, 6vw, 80px);
    margin-left: auto;
    text-align: right;
}

.story-era__year {
    font-size: 160px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    color: #d0d0d0;
}

.story-era__year--suffix {
    position: relative;
    display: inline-block;
    padding-right: clamp(14px, 3vw, 24px);
}

.story-era__year-suffix {
    position: absolute;
    right: clamp(-10px, -1vw, 10px);
    bottom: clamp(8px, 1vw, 14px);
    transform: translate(32%, 25%);
    font-size: clamp(18px, 2vw, 28px);
    letter-spacing: 0.12em;
    color: #ffffff;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.story-era__title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.story-era__text {
    margin: 0;
    font-size: clamp(15px, 2.3vw, 18px);
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.9;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.story-era__paper {
    position: absolute;
    right: 60px;
    bottom: 80px;
    width: 150px;
    height: auto;
    z-index: 1;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.35));
}

.story-era--1879 {
    --story-era-bg-y: var(--story-era-1879-bg-y, 28%);
    background-image: url("/images/products/sustaina/story_1879.png");
}

.story-era--1950 {
    background-image: url("/images/products/sustaina/story_1950.png");
}

.story-era--1990 {
    --story-era-bg-y: var(--story-era-1990-bg-y, 65%);
    background-image: url("/images/products/sustaina/story_1990.png");
}

.story-era--2017 {
    --story-era-bg-x: var(--story-era-2017-bg-x, 100%);
    --story-era-bg-size: var(--story-era-2017-bg-size, 120% auto);
    background-image: url("/images/products/sustaina/story_2017.png");
    cursor: pointer;
}

.sustaina-footer {
    background: #000000;
    color: #ffffff;
    padding: 18px 24px;
    text-align: right;
    font-size: 14px;
    letter-spacing: 0.02em;
    overflow-wrap: break-word;
}

/* tablet */
@media (max-width: 1180px) {
    .sustaina-nav__logo-bar {
        display: none;
    }

    .sustaina-story-timeline {
        margin-top: 40px;
    }

    .story-era__inner {
        width: 92vw;
    }

    .sustaina-hero {
        height: 700px;
    }
}

/* mobile */
@media (max-width: 800px) {
    .sustaina-header {
        height: auto;
    }

    .sustaina-nav {
        flex-direction: row;
        align-items: center;
        gap: 0;
        padding: 16px;
    }

    .sustaina-nav__actions {
        width: auto;
        justify-content: flex-end;
    }

    .sustaina-nav__logo img {
        height: 18px;
    }

    .sustaina-nav__logo-bar {
        display: none;
    }

    .sustaina-nav__menu-toggle {
        display: inline-flex;
    }

    .sustaina-nav__tabs {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(0, 0, 0, 0.92);
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
        min-width: 270px;
        z-index: 10;
    }

    .sustaina-nav__actions.is-open .sustaina-nav__tabs {
        display: flex;
    }

    .sustaina-nav__tab {
        width: 100%;
        justify-content: flex-start;
    }

    .sustaina-nav__contact--desktop {
        display: none;
    }

    .sustaina-nav__contact--mobile {
        display: flex;
        width: 100%;
        height: 48px;
        margin-top: 4px;
        padding: 0 12px;
        justify-content: center;
        margin-right: 0;
    }

    .hero-tagline {
        bottom: 80px;
        top: 300px;
        padding-inline: clamp(6px, 3vw, 18px);
        font-size: clamp(14px, calc((100vw - 32px) / 14), 36px);
        letter-spacing: 0px;
        text-indent: 0;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }

    .hero-description {
        width: 92vw;
        font-size: clamp(12px, 4vw, 14px);
        line-height: 1.7;
        letter-spacing: 0.02em;
        top: 370px;
        gap: 12px;
        align-items: center;
    }

    .sustaina-hero{
        height: 500px;
    }

    .sustaina-hero-logo img {
        height: 150px;
    }

    .hero-description__image {
        width: 90px;
    }

    .sustaina-story-timeline {
        margin-top: 24px;
    }

    .story-era {
        min-height: 0px;   
        align-items: flex-start;
        padding: 40px 0 32px;
    }

    .story-era.story-era--1879 {
        min-height: 400px;
    }

    .story-era::before {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.55) 100%);
    }

    .story-era__inner {
        width: 90vw;
        gap: 12px;
    }

    .story-era__inner.align-left,
    .story-era__inner.align-right {
        margin: 0 auto;
    }

    .story-era__year {
        font-size: clamp(44px, 16vw, 74px);
    }

    .story-era__text {
        font-size: clamp(13px, 4vw, 15px);
        line-height: 1.7;
        margin-right: 110px;
    }

    .story-era__paper {
        bottom: 40px;
        right: 20px;
        width: 100px;
    }
}
