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

:root {
    --color-1: #667eea;
    --color-2: #764ba2;
    --color-3: #f093fb;
    --color-4: #4facfe;

    /* Animation timing */
    --transition-duration: 1000ms;
    --entry-duration: 1.125s;
    --exit-duration: 0.375s;
    --entry-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* power2.out */
    --exit-easing: cubic-bezier(0.55, 0.085, 0.68, 0.53); /* power2.in */
}

html {
    overflow: hidden;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Common animation classes */
.animate-entry {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity var(--entry-duration) var(--entry-easing),
                transform var(--entry-duration) var(--entry-easing);
}

.animate-entry-active {
    opacity: 1;
    transform: translateY(0);
}

.animate-exit {
    opacity: 0;
    transform: translateY(-100px);
    transition: opacity var(--exit-duration) var(--exit-easing),
                transform var(--exit-duration) var(--exit-easing);
    transition-delay: 0s;
}

/* Fullpage Wrapper (transform-based like fullpage.js) */
.fullpage-wrapper {
    height: 100vh;
    width: 100%;
    position: relative;
    transition: transform var(--transition-duration) cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
}

/* Individual Sections */
.section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Section 1 / Hero - No gradient, uses background images */
#section1 {
    background: #000000;
    overflow: hidden;
}

/* Section 2 / Philosophy */
#section2 {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.section-philosophy .philosophy-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px 0 120px;
    width: 100%;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    transform: translateY(-20px);
    margin-bottom: 120px;
}

.philosophy-text-wrapper {
    text-align: left;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-philosophy.active .philosophy-text-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.section-philosophy:not(.active) .philosophy-text-wrapper {
    opacity: 0;
    transform: translateY(-100px);
    transition: opacity 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53),
                transform 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition-delay: 0s;
}

.philosophy-header {
    margin-bottom: 3rem;
}

.section-philosophy .philosophy-content {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-philosophy.active .philosophy-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.section-philosophy:not(.active) .philosophy-content {
    opacity: 0;
    transform: translateY(-100px);
    transition: opacity 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53),
                transform 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition-delay: 0s;
}

.philosophy-heading {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(4rem, 10vw, 8rem);
    color: #333;
    font-weight: 400;
    line-height: 0.9;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.philosophy-subtitle {
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 0.2em;
    font-weight: 300;
    margin-bottom: 0;
}

.philosophy-title {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #333;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: normal;
    text-align: right;
}

.philosophy-accent {
    color: #ff6b6b;
}

.philosophy-description {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    color: #666;
    line-height: 2;
    letter-spacing: 0.08em;
    font-weight: 300;
    margin-bottom: 0;
}

.philosophy-description .takumi {
    color: #000000;
    font-weight: 700;
}

/* Philosophy Scrolling Text */
.philosophy-scroll-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    padding: 40px 0;
    z-index: 10;
}

.scroll-text-inner {
    display: inline-flex;
    white-space: nowrap;
    animation: scrollText 120s linear infinite;
    will-change: transform;
}

.scroll-text-inner span {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(3rem, 7.5vw, 6rem);
    color: rgba(0, 0, 0, 0.08);
    font-weight: 200;
    font-style: italic;
    padding-right: 3rem;
    letter-spacing: -0.02em;
    display: inline-block;
}

@keyframes scrollText {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Philosophy Grid */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.philosophy-block {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: transform, opacity;
}

.section-philosophy.active .philosophy-block {
    opacity: 1;
    transform: translateY(0);
}

.section-philosophy.active .philosophy-block:nth-child(1) {
    transition-delay: 1s;
}

.section-philosophy.active .philosophy-block:nth-child(2) {
    transition-delay: 1.1s;
}

.section-philosophy.active .philosophy-block:nth-child(3) {
    transition-delay: 1.2s;
}

.section-philosophy.active .philosophy-block:nth-child(4) {
    transition-delay: 1.3s;
}

.philosophy-block img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
    will-change: opacity;
}

/* Section 3 / Company - Light gray background with subtle bg-05 */
#section3 {
    background: #f5f5f5;
    position: relative;
}

#section3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/photos/bg-05.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    opacity: 0.1;
    z-index: 0;
}

#section3 > * {
    position: relative;
    z-index: 1;
}

/* Section 4 / Business Guide - Blue paint background */
#section4 {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.3) 100%),
                url('../img/photos/bg-04.jpg') center right no-repeat;
    background-size: cover;
    position: relative;
}

/* Business Guide Section Styles */
.section-business .business-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 0 120px;
    width: 100%;
}

.section-business .business-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-business .business-images {
    position: relative;
    height: 600px;
}

.section-business .business-image-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.section-business .stack-image {
    position: absolute;
    width: 70%;
    height: 450px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.section-business .stack-image-1 {
    top: 0;
    right: 0;
    transform: translateY(100px) rotate(-3deg);
    z-index: 2;
}

.section-business .stack-image-2 {
    bottom: 0;
    left: 0;
    transform: translateY(100px) rotate(3deg);
    z-index: 1;
}

.section-business.active .stack-image-1 {
    opacity: 1;
    transform: translateY(0) rotate(-3deg);
    transition-delay: 0.7s;
}

.section-business.active .stack-image-2 {
    opacity: 1;
    transform: translateY(0) rotate(3deg);
    transition-delay: 0.9s;
}

.section-business:not(.active) .stack-image {
    opacity: 0;
    transform: translateY(-100px) rotate(0deg);
    transition: opacity 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53),
                transform 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition-delay: 0s;
}

.section-business .business-text {
    text-align: left;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-business.active .business-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.section-business:not(.active) .business-text {
    opacity: 0;
    transform: translateY(-100px);
    transition: opacity 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53),
                transform 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition-delay: 0s;
}

.section-business .business-text h2 {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(4rem, 10vw, 8rem);
    color: #333;
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 0.9;
}

.section-business .business-text .subtitle {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 3rem;
    letter-spacing: 0.2em;
}

.section-business .business-text p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

.section-business .read-more {
    display: inline-block;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-top: 2rem;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.section-business .read-more::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-business .read-more:hover {
    color: #ff6b6b;
    transform: translateX(5px);
}

.section-business .read-more:hover::after {
    width: calc(100% - 30px);
}

/* Section 5 / Environment */
#section5 {
    background: url('../img/photos/environment-bg.jpg') center center no-repeat;
    background-size: cover;
    position: relative;
}

#section5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 0;
}

.section-environment .environment-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.section-environment .environment-header {
    text-align: center;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-environment.active .environment-header {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.section-environment:not(.active) .environment-header {
    opacity: 0;
    transform: translateY(-100px);
    transition: opacity 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53),
                transform 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition-delay: 0s;
}

.section-environment .environment-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 1200px;
}

.section-environment .environment-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: 2px solid rgba(255, 255, 255, 0.7);
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-environment.active .environment-card {
    opacity: 1;
    transform: translateY(0);
}

.section-environment.active .environment-card:nth-child(1) {
    transition-delay: 0.6s;
}

.section-environment.active .environment-card:nth-child(2) {
    transition-delay: 0.7s;
}

.section-environment.active .environment-card:nth-child(3) {
    transition-delay: 0.8s;
}

.section-environment.active .environment-card:nth-child(4) {
    transition-delay: 0.9s;
}

.section-environment:not(.active) .environment-card {
    opacity: 0;
    transform: translateY(-80px);
    transition: opacity 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53),
                transform 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition-delay: 0s;
}

.section-environment .card-content {
    padding: 50px 30px;
    text-align: center;
}

.section-environment .card-content h3 {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-environment .card-title-en {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1b5e20;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
    font-style: normal;
}

.section-environment .card-title-ja {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: #555;
    letter-spacing: 0.12em;
    line-height: 1.6;
    font-style: normal;
}

.section-environment .card-content p {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    color: #555;
    line-height: 2;
    letter-spacing: 0.05em;
    font-weight: 300;
    font-style: normal;
}

.section-environment h2 {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 400;
    line-height: 0.9;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    background: linear-gradient(120deg, #0d47a1 0%, #42a5f5 20%, #00bcd4 40%, #1b5e20 60%, #4caf50 80%, #0d47a1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    text-shadow: none;
    position: relative;
}

.section-environment .subtitle {
    display: block;
    font-size: 0.9rem;
    color: #1b5e20;
    letter-spacing: 0.2em;
    font-weight: 400;
    text-shadow: none;
}

/* Environment Scrolling Text */
.environment-scroll-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    background: transparent;
    padding: 40px 0;
    z-index: 10;
}

.environment-scroll-text .scroll-text-inner {
    display: inline-flex;
    white-space: nowrap;
    animation: scrollText 120s linear infinite;
    will-change: transform;
}

.environment-scroll-text .scroll-text-inner span {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(3rem, 7.5vw, 6rem);
    color: rgba(27, 94, 32, 0.15);
    font-weight: 200;
    font-style: italic;
    padding-right: 3rem;
    letter-spacing: -0.02em;
    display: inline-block;
}

/* Section 6 / Recruit - Light gray background */
#section6 {
    background: #f5f5f5;
}

/* Recruit Section Styles */
.section-recruit .recruit-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 0 120px;
    width: 100%;
}

.section-recruit .recruit-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-recruit .recruit-text {
    text-align: left;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-recruit.active .recruit-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.section-recruit:not(.active) .recruit-text {
    opacity: 0;
    transform: translateY(-100px);
    transition: opacity 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53),
                transform 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition-delay: 0s;
}

.section-recruit .recruit-text h2 {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(4rem, 10vw, 8rem);
    color: #333;
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 0.9;
}

.section-recruit .recruit-text .subtitle {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 3rem;
    letter-spacing: 0.2em;
}

.section-recruit .recruit-text p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

.section-recruit .recruit-link {
    display: inline-block;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-top: 2rem;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.section-recruit .recruit-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-recruit .recruit-link:hover {
    color: #ff6b6b;
    transform: translateX(5px);
}

.section-recruit .recruit-link:hover::after {
    width: calc(100% - 30px);
}

.section-recruit .recruit-images {
    position: relative;
    height: 600px;
    width: 100%;
}

.section-recruit .recruit-circle {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.section-recruit .recruit-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.section-recruit .recruit-circle-1 {
    top: 30px;
    left: 0;
    z-index: 3;
}

.section-recruit .recruit-circle-2 {
    top: 200px;
    right: 40px;
    z-index: 2;
    width: 280px;
    height: 280px;
}

.section-recruit .recruit-circle-3 {
    bottom: 40px;
    left: 200px;
    z-index: 1;
    width: 180px;
    height: 180px;
}

.section-recruit.active .recruit-circle-1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.section-recruit.active .recruit-circle-2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.section-recruit.active .recruit-circle-3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1s;
}

.section-recruit:not(.active) .recruit-circle {
    opacity: 0;
    transform: translateY(-100px);
    transition: opacity 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53),
                transform 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition-delay: 0s;
}

/* Section 7 / News - White background */
#section7 {
    background: #ffffff;
}

/* News Section Styles */
.section-news .news-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.section-news .news-header {
    text-align: center;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-news.active .news-header {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.section-news:not(.active) .news-header {
    opacity: 0;
    transform: translateY(-100px);
    transition: opacity 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53),
                transform 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition-delay: 0s;
}

.section-news .news-header h2 {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(4rem, 10vw, 8rem);
    color: #333;
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 0.9;
}

.section-news .news-header .subtitle {
    display: block;
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 0.2em;
}

.section-news .news-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.section-news .news-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.section-news.active .news-card {
    opacity: 1;
    transform: translateY(0);
}

.section-news.active .news-card:nth-child(1) {
    transition-delay: 0.3s;
}

.section-news.active .news-card:nth-child(2) {
    transition-delay: 0.35s;
}

.section-news.active .news-card:nth-child(3) {
    transition-delay: 0.4s;
}

.section-news.active .news-card:nth-child(4) {
    transition-delay: 0.45s;
}

.section-news.active .news-card:nth-child(5) {
    transition-delay: 0.5s;
}

.section-news.active .news-card:nth-child(6) {
    transition-delay: 0.55s;
}

.section-news:not(.active) .news-card {
    opacity: 0;
    transform: translateY(-60px);
    transition: opacity 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53),
                transform 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition-delay: 0s;
}


.section-news .news-card-date {
    font-size: 0.85rem;
    color: #999;
    letter-spacing: 0.1em;
    font-weight: 400;
}

.section-news .news-card-title {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    line-height: 1.6;
    letter-spacing: 0.03em;
    font-weight: 600;
    flex: 1;
    transition: color 0.2s ease;
}

.section-news .news-card:hover {
    border-color: #999;
}

.section-news .news-card:hover .news-card-title {
    color: #ff6b6b;
}

.section-news .news-card-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #333;
    font-size: 1.2rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.section-news .news-card:hover .news-card-arrow {
    transform: translateX(5px);
    color: #ff6b6b;
}

.section-news .news-more-link {
    display: inline-block;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                color 0.3s ease;
}

.section-news.active .news-more-link {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.2s;
}

.section-news:not(.active) .news-more-link {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53),
                transform 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition-delay: 0s;
}

.section-news .news-more-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-news .news-more-link:hover {
    color: #ff6b6b;
    transform: translateX(5px);
}

.section-news .news-more-link:hover::after {
    width: calc(100% - 30px);
}

/* News Loading Skeleton */
.news-card-skeleton {
    pointer-events: none;
    cursor: default;
}

.news-card-skeleton .skeleton-date,
.news-card-skeleton .skeleton-title,
.news-card-skeleton .skeleton-arrow {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.news-card-skeleton .skeleton-date {
    width: 80px;
    height: 14px;
    display: inline-block;
}

.news-card-skeleton .skeleton-title {
    width: 100%;
    height: 20px;
    margin: 15px 0;
}

.news-card-skeleton .skeleton-arrow {
    width: 20px;
    height: 20px;
    display: inline-block;
    align-self: flex-end;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* News Error State */
.news-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.news-error .retry-button {
    margin-top: 20px;
    padding: 12px 30px;
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: background 0.3s ease;
}

.news-error .retry-button:hover {
    background: #ff6b6b;
}

/* News Empty State */
.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1rem;
}

/* News Detail Modal */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.news-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.news-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    cursor: pointer;
}

.news-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.3) translateY(-50px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    z-index: 1;
}

.news-modal.active .news-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.news-modal.active .news-modal-content.loading {
    transform: scale(0.95) translateY(0);
}

.news-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-modal-close:hover {
    background: #ff6b6b;
    color: white;
    transform: rotate(90deg);
}

.news-modal-body {
    padding: 60px;
    overflow-y: auto;
    max-height: 90vh;
    transition: opacity 0.3s ease;
}

.news-modal-body .news-detail-category {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    color: #666;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    border-radius: 3px;
}

.news-modal-body .news-detail-date {
    color: #999;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.news-modal-body .news-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.news-modal-body .news-detail-images {
    margin: 30px auto;
    text-align: center;
}

.news-modal-body .news-detail-images img {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-modal-body .news-detail-content {
    color: #333;
    line-height: 1.8;
    font-size: 1rem;
}

.news-modal-body .news-detail-content p {
    margin-bottom: 1.5em;
}

.news-modal-body .news-detail-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2em 0 1em;
    color: #333;
}

.news-modal-body .news-detail-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5em 0 0.8em;
    color: #333;
}

.news-modal-body .news-detail-content img {
    max-width: 100%;
    height: auto;
    margin: 2em 0;
    border-radius: 4px;
}

.news-modal-body .news-detail-content ul,
.news-modal-body .news-detail-content ol {
    margin: 1em 0 1.5em 1.5em;
}

.news-modal-body .news-detail-content li {
    margin-bottom: 0.5em;
}

.news-modal-body .news-detail-content a {
    color: #ff6b6b;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 107, 107, 0.3);
    transition: all 0.2s ease;
}

.news-modal-body .news-detail-content a:hover {
    color: #ff5252;
    border-bottom-color: #ff5252;
    background-color: rgba(255, 107, 107, 0.05);
}

.news-detail-loading {
    text-align: center;
    padding: 100px 20px;
    color: #999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.news-detail-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tablet Footer Adjustments (768px-1024px) */
@media (max-width: 1024px) {
    .footer-container {
        padding: 0 40px;
        gap: 40px;
    }

    .footer-top {
        display: none;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-main::before {
        display: none;
    }

    .footer-menu {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-menu-link {
        font-size: 0.9rem;
    }

    .footer-company-name {
        font-size: 1rem;
    }

    .footer-address p,
    .footer-contact-info p {
        font-size: 0.8rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .footer-bottom p,
    .footer-privacy-link {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {

    .news-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .news-modal-body {
        padding: 40px 30px;
    }

    .news-modal-body .news-detail-title {
        font-size: 1.5rem;
    }

    .news-modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}

/* Section 8 / Footer Section */
.section-footer {
    background: #333333;
}

.footer-container {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 80px;
    margin: 0 auto;
    gap: 80px;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-footer.active .footer-container {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.section-footer:not(.active) .footer-container {
    opacity: 0;
    transform: translateY(-100px);
    transition: opacity 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53),
                transform 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition-delay: 0s;
}

/* Footer Top - Logo */
.footer-top {
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.footer-logo-section {
    flex-shrink: 0;
}

.footer-logo {
    height: 45px;
    width: auto;
}

/* Footer Main - Company Info & Menu */
.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
}

.footer-main::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

.footer-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 3rem;
    justify-items: start;
}

.footer-menu-link {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.footer-menu-link:hover {
    color: #ff6b6b;
    transform: translateX(5px);
}

.footer-company-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
}

.footer-company-name {
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin: 0;
}

.footer-address,
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-address p,
.footer-contact-info p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin: 0;
}

.footer-contact-info {
    margin-top: 10px;
}

.footer-offices-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-offices-link:hover {
    color: #ff6b6b;
    transform: translateX(5px);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.footer-privacy-link {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-privacy-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Hero Section Styles */
.section-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 0.1s ease-out;
    z-index: 0;
    opacity: 0;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transition: clip-path 1.5s cubic-bezier(0.645, 0.045, 0.355, 1),
                opacity 0.3s ease-out;
}

.section-hero .hero-bg.active {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.section-hero .hero-bg.next {
    z-index: 1;
}

#hero-bg-1 {
    background-image: url('../img/photos/bg-01.jpg');
}

#hero-bg-2 {
    background-image: url('../img/photos/bg-02.jpg');
}

#hero-bg-3 {
    background-image: url('../img/photos/bg-03.jpg');
}

.section-hero .hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.section-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-tagline {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(3.5rem, 9vw, 9rem);
    font-weight: 400;
    line-height: 0.9;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline span {
    display: block;
}

/* Hero Text Animation - All from right */
.hero-tagline span {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-hero.active .hero-tagline span {
    opacity: 1;
    transform: translateX(0);
}

.section-hero.active .hero-tagline span:nth-child(1) {
    transition-delay: 0.5s;
}

.section-hero.active .hero-tagline span:nth-child(2) {
    transition-delay: 0.65s;
}

.section-hero.active .hero-tagline span:nth-child(3) {
    transition-delay: 0.8s;
}

.section-hero.active .hero-tagline span:nth-child(4) {
    transition-delay: 0.95s;
}

.section-hero.active .hero-tagline span:nth-child(5) {
    transition-delay: 1.1s;
}

/* Leaving section - fade out to left */
.section-hero:not(.active) .hero-tagline span {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53),
                transform 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition-delay: 0s;
}

/* Beauty accent color */
.hero-tagline .accent-text {
    color: #ff6b6b;
}

/* Japanese text */
.hero-tagline .japanese-text {
    font-size: clamp(0.7rem, 1.8vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 0.8em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
    margin-top: 2rem;
}

/* Company Section Styles */
.section-company .company-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 0 120px;
    width: 100%;
}

.section-company .company-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-company .company-image {
    position: relative;
    height: 600px;
    max-width: 90%;
    margin: 0 auto;
    overflow: hidden;
    opacity: 0;
    transform: translateY(100px) rotate(-3deg);
    transition: opacity 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.section-company.active .company-image {
    opacity: 1;
    transform: translateY(0) rotate(-3deg);
    transition-delay: 0.7s;
}

.section-company:not(.active) .company-image {
    opacity: 0;
    transform: translateY(-100px) rotate(-3deg);
    transition: opacity 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53),
                transform 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition-delay: 0s;
}

.section-company .company-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.section-company .company-text {
    text-align: left;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-company.active .company-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.section-company:not(.active) .company-text {
    opacity: 0;
    transform: translateY(-100px);
    transition: opacity 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53),
                transform 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition-delay: 0s;
}

.section-company .company-text h2 {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(4rem, 10vw, 8rem);
    color: #333;
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 0.9;
}

.section-company .company-text .subtitle {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 3rem;
    letter-spacing: 0.2em;
}

.section-company .company-text p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

.section-company .read-more {
    display: inline-block;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-top: 2rem;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.section-company .read-more::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-company .read-more:hover {
    color: #ff6b6b;
    transform: translateX(5px);
}

.section-company .read-more:hover::after {
    width: calc(100% - 30px);
}

/* Section Content */
.section-content {
    text-align: center;
    color: white;
}

.section-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94), /* power2.out */
                transform 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-description {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94), /* power2.out */
                transform 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Active section - animate in with delay */
.section.active .section-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s; /* Same as GSAP delay */
}

.section.active .section-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s; /* Same as GSAP delay */
}

/* Leaving section - fade out with upward movement */
.section:not(.active) .section-title,
.section:not(.active) .section-description {
    opacity: 0;
    transform: translateY(-100px);
    transition: opacity 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53), /* power2.in for exit */
                transform 0.375s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition-delay: 0s;
}


/* Header with Hamburger Menu */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 1400px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    transition: all 0.3s ease;
}

/* Logo */
header .logo {
    height: 32px;
    width: auto;
    display: block;
    position: relative;
    z-index: 1001;
    transition: opacity 0.3s ease;
}

/* Hamburger Menu Button */
.hamburger {
    position: relative;
    width: 20px;
    height: 16px;
    cursor: pointer;
    z-index: 1002;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.5s ease, background-color 0.3s ease;
}

header.dark .hamburger span {
    background-color: #333333;
}

header.menu-open .hamburger span {
    background-color: #333333;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 7px;
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

/* Hamburger menu active animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 7px;
    background-color: #333333;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 7px;
    background-color: #333333;
}

/* Navigation Menu */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 40px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 998;
    transform: translateY(-103%);
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

#nav.active {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

#nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none;
}

#nav.active::before {
    width: 150vmax;
    height: 150vmax;
}

#nav ul {
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

#nav ul li {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    list-style: none;
}

#nav.active ul li {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#nav.active ul li:nth-child(1) {
    transition-delay: 0.15s;
}

#nav.active ul li:nth-child(2) {
    transition-delay: 0.25s;
}

#nav.active ul li:nth-child(3) {
    transition-delay: 0.35s;
}

#nav.active ul li:nth-child(4) {
    transition-delay: 0.45s;
}

#nav.active ul li:nth-child(5) {
    transition-delay: 0.55s;
}

#nav.active ul li:nth-child(6) {
    transition-delay: 0.65s;
}

#nav.active ul li:nth-child(7) {
    transition-delay: 0.75s;
}

#nav.active ul li:nth-child(8) {
    transition-delay: 0.85s;
}

#nav ul li a {
    display: block;
    font-family: 'Abril Fatface', cursive;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    color: #333333;
    padding: 1rem 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

#nav ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 3px;
    background: #333333;
    transition: width 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

#nav ul li a:hover {
    padding-left: 2.5rem;
    letter-spacing: 0.1em;
    color: #000000;
    text-shadow: none;
    transform: translateX(5px);
}

#nav ul li a:hover::before {
    width: 60px;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 997;
    backdrop-filter: blur(0px);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(5px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
}

.scroll-text {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    writing-mode: vertical-rl;
    letter-spacing: 3px;
    transition: color 0.3s ease;
}

.scroll-indicator.dark .scroll-text {
    color: #333;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.scroll-indicator.dark .scroll-line {
    background: rgba(0, 0, 0, 0.3);
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: white;
    animation: scrollLineAnimation 2s ease-in-out infinite;
    transition: background 0.3s ease;
}

.scroll-indicator.dark .scroll-line::after {
    background: #333;
}

@keyframes scrollLineAnimation {
    0% {
        transform: translateY(-30px);
    }
    100% {
        transform: translateY(60px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-tagline {
        font-size: clamp(2rem, 12vw, 4rem);
    }

    .hero-tagline .japanese-text {
        font-size: clamp(0.6rem, 3vw, 1rem);
        letter-spacing: 0.6em;
        margin-top: 1rem;
    }

    .section-title {
        font-size: 2.5rem;
        transform: translateY(60px); /* Reduce animation distance */
    }

    .section-description {
        font-size: 1.2rem;
        transform: translateY(60px); /* Reduce animation distance */
    }

    .section:not(.active) .section-title,
    .section:not(.active) .section-description {
        transform: translateY(-60px);
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.875rem;
    }

    .scroll-indicator {
        left: 1rem;
    }

    header {
        width: calc(100% - 40px);
        padding: 0 15px;
    }

    header .logo {
        height: 28px;
    }

    .section-content {
        padding: 0 1rem;
    }

    .section-company .company-container {
        padding: 0 40px;
    }

    .section-company .company-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-company .company-image {
        height: 400px;
    }

    .section-company .company-text h2 {
        font-size: clamp(3rem, 8vw, 5rem);
    }

    .section-philosophy .philosophy-container {
        padding: 60px 40px;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .philosophy-header {
        margin-bottom: 2rem;
    }

    .philosophy-heading {
        font-size: clamp(3rem, 8vw, 5rem);
        margin-bottom: 0.5rem;
    }

    .philosophy-subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.15em;
    }

    .philosophy-title {
        font-size: clamp(2rem, 7vw, 3.5rem);
        margin-bottom: 1.5rem;
        letter-spacing: 0.4em;
    }

    .philosophy-description {
        font-size: 0.95rem;
    }

    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Business Guide Section */
    .section-business .business-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-business .business-images {
        height: 400px;
    }

    .section-business .stack-image {
        width: 80%;
        height: 350px;
    }

    /* Environment Section */
    .section-environment .environment-container {
        padding: 0 40px;
    }

    .section-environment .environment-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Recruit Section */
    .section-recruit .recruit-container {
        padding: 0 40px;
    }

    .section-recruit .recruit-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-recruit .recruit-images {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
        letter-spacing: -1px;
        transform: translateY(40px); /* Further reduce for mobile */
    }

    .section-description {
        font-size: 1rem;
        padding: 0 1rem;
        transform: translateY(40px); /* Further reduce for mobile */
    }

    .section:not(.active) .section-title,
    .section:not(.active) .section-description {
        transform: translateY(-40px);
    }

    header {
        width: calc(100% - 24px);
        padding: 0 12px;
        height: 50px;
    }

    header .logo {
        height: 24px;
    }

    .hamburger {
        width: 20px;
        height: 16px;
    }

    nav ul li a {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        padding: 1rem 2rem;
    }

    nav ul li a:hover {
        padding-left: 3rem;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-tagline {
        font-size: clamp(3.5rem, 15vw, 6rem);
    }

    .hero-tagline .japanese-text {
        font-size: clamp(0.85rem, 4vw, 1.4rem);
        letter-spacing: 0.5em;
        margin-top: 1.2rem;
    }

    .section-content {
        padding: 0 1.5rem;
    }

    .section-company .company-container {
        padding: 0 20px;
    }

    .section-company .company-image {
        height: 250px;
        transform: translateY(100px) rotate(0deg);
    }

    .section-company.active .company-image {
        transform: translateY(0) rotate(0deg);
    }

    .section-company .company-text h2 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .section-company .company-text p {
        font-size: 0.9rem;
    }

    .section-philosophy .philosophy-container {
        padding: 60px 25px 30px;
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: 100vh;
        display: grid;
        align-content: center;
    }

    .philosophy-header {
        margin-bottom: 1rem;
    }

    .philosophy-heading {
        font-size: clamp(2.5rem, 9vw, 4rem);
        margin-bottom: 0.3rem;
    }

    .philosophy-subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.12em;
    }

    .philosophy-title {
        font-size: clamp(1.8rem, 8vw, 3rem);
        margin-bottom: 0.8rem;
        letter-spacing: 0.25em;
    }

    .philosophy-description {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .footer-container {
        padding: 0 30px;
        gap: 50px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-bottom: 30px;
        border-bottom: none;
        display: none;
    }

    .footer-logo {
        height: 35px;
    }

    .footer-menu {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        justify-items: start;
        padding-left: 0;
        border-left: none;
        padding-top: 30px;
        border-top: none;
    }

    .footer-menu-link {
        font-size: 0.85rem;
        text-align: left;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-main::before {
        display: none;
    }

    .footer-company-name {
        font-size: 0.95rem;
    }

    .footer-address p,
    .footer-contact-info p {
        font-size: 0.75rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
        padding-top: 15px;
    }

    .footer-bottom p,
    .footer-privacy-link {
        font-size: 0.65rem;
    }

    /* News Section Responsive */
    .section-news .news-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .section-news .news-container {
        padding: 0 20px;
    }

    .section-news .news-card {
        padding: 12px 15px;
    }

    .section-news .news-card:nth-child(n+5) {
        display: none;
    }

    .section-news .news-card-title {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0;
    }

    .section-news .news-card-date {
        font-size: 0.65rem;
        margin-bottom: 0;
    }

    .section-news .news-card-arrow {
        font-size: 1rem;
    }

    /* Business Guide Section */
    .section-business .business-container {
        padding: 0 20px;
    }

    .section-business .business-text p {
        font-size: 0.85rem;
        line-height: 1.7;
    }

    .section-business .business-images {
        height: 240px;
    }

    .section-business .stack-image {
        width: 75%;
        height: 200px;
    }

    /* Environment Section */
    .section-environment .environment-container {
        padding: 0 20px;
    }

    .section-environment h2 {
        font-size: clamp(2.5rem, 8vw, 4rem);
        margin-bottom: 0.5rem;
    }

    .section-environment .subtitle {
        font-size: 0.75rem;
    }

    .section-environment .environment-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .section-environment .card-content {
        padding: 12px;
    }

    .section-environment .card-content h3 {
        margin-bottom: 0.4rem;
        gap: 0.25rem;
    }

    .section-environment .card-title-en {
        font-size: 0.9rem;
        margin-bottom: 0.15rem;
    }

    .section-environment .card-title-ja {
        font-size: 0.7rem;
        margin-bottom: 0;
    }

    .section-environment .card-content p {
        font-size: 0.75rem;
        line-height: 1.45;
    }

    .environment-scroll-text .scroll-text-inner span {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }

    /* Recruit Section */
    .section-recruit .recruit-container {
        padding: 0 20px;
    }

    .section-recruit .recruit-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-recruit .recruit-images {
        height: auto;
        gap: 0;
        justify-content: center;
        display: flex;
        order: -1;
    }

    .section-recruit .recruit-circle {
        width: 240px;
        height: 240px;
        position: static;
    }

    .section-recruit .recruit-circle-1 {
        display: block;
    }

    .section-recruit .recruit-circle-2,
    .section-recruit .recruit-circle-3 {
        display: none;
    }

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

    .section-recruit .recruit-text h2 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .section-recruit .recruit-text p {
        font-size: 0.8rem;
    }
}
