:root {
    /* Colors */
    --bg-color: #F8F8F6;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --accent-blue: #0A58CA;
    --accent-light: #EBF2FF;
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
    
    /* Spacing */
    --section-pad: 120px 0;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* For custom cursor */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-primary);
}
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(26, 26, 26, 0.4);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    z-index: 100;
    mix-blend-mode: difference;
    color: white;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    letter-spacing: 0.05em;
}
.nav {
    display: flex;
    gap: 40px;
}
.nav-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.lang-icon {
    display: flex;
    align-items: center;
    opacity: 0.7;
}
.lang-btn {
    background: none;
    border: none;
    color: inherit;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
    padding: 2px 4px;
}
.lang-btn:hover, .lang-btn.active {
    opacity: 1;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-color);
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    z-index: 2;
    padding-top: 80px;
}
.hero-text {
    position: relative;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: 5.5vw;
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 2.5rem;
}
.reveal-line {
    display: block;
    overflow: hidden;
}
.reveal-inner {
    display: block;
    transform: translateY(100%);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero.visible .reveal-inner {
    transform: translateY(0);
}
.hero-title .italic-accent {
    font-style: italic;
    color: var(--accent-blue);
}
.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 450px;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s 0.6s, transform 1s 0.6s;
}
.hero.visible .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}
.hero-visual {
    position: relative;
    width: 100%;
    height: 60vh;
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1.5s 0.3s, transform 1.5s 0.3s;
}
.hero.visible .hero-visual {
    opacity: 1;
    transform: translateX(0);
}
.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1.5s ease-in-out;
    transform: scale(1.1);
}
.slide.active {
    opacity: 1;
    transform: scale(1);
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scroll-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transition: opacity 1s 1s;
}
.hero.visible .scroll-indicator {
    opacity: 1;
}
.line-down {
    width: 60px;
    height: 1px;
    background-color: var(--text-primary);
    position: relative;
    overflow: hidden;
}
.line-down::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    animation: scrollLine 2s infinite ease-in-out;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
}

/* About Section */
.about {
    padding: var(--section-pad);
    background-color: #fff;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-description {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}
.about-details {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}
.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.detail-item strong {
    font-weight: 500;
}
.detail-item span {
    color: var(--text-secondary);
    font-weight: 300;
}
.about-visual {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: var(--bg-color);
    overflow: hidden;
}
.abstract-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 400px;
    border: 1px solid var(--text-primary);
    border-radius: 100px;
}

/* Service Section */
.service {
    padding: var(--section-pad);
}
.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 4rem;
}
.service-catchphrase {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.service-desc {
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 2rem;
}
.feature-list {
    list-style: none;
    margin-bottom: 3rem;
}
.feature-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-weight: 300;
}
.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--accent-blue);
    border-radius: 50%;
}
.release-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--accent-light);
    color: var(--accent-blue);
    font-size: 0.85rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    font-weight: 500;
}
.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: var(--accent-blue);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.primary-btn:hover {
    transform: translateY(-3px);
    background-color: #084298;
}

/* Service Gallery / Mockups */
.service-gallery {
    position: relative;
    height: 600px;
}
.mockup-img {
    position: absolute;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background-color: white;
}
.main-mockup {
    width: 280px;
    height: 580px;
    right: 0;
    top: 0;
    z-index: 2;
}
.secondary-mockup {
    width: 260px;
    height: 540px;
    right: 150px;
    top: 60px;
    z-index: 1;
    opacity: 0.8;
}
.img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 0.85rem;
}
.img-placeholder::after {
    content: attr(data-label);
}

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

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

/* Tab Interface */
.content-tabs {
    padding: var(--section-pad);
    background-color: #fff;
}
.tab-controls {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 80px;
    border-bottom: 1px solid #eee;
}
.tab-btn {
    background: none;
    border: none;
    padding: 20px 0;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}
.tab-btn.active {
    color: var(--text-primary);
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-blue);
}

.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
    animation: fadeIn 0.8s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Works Tab Refinement */
.works-grid {
    display: flex;
    flex-direction: column;
    gap: 120px;
}
.work-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.work-visual {
    position: relative;
    height: 500px;
}
.work-visual.empty {
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.coming-soon {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #999;
    letter-spacing: 0.2em;
}
.work-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}
.text-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

/* Philosophy Tab Layout */
.philosophy-layout {
    max-width: 900px;
    margin: 0 auto;
}
.large-text {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    line-height: 1.4;
    margin-bottom: 4rem;
}
.origin-story {
    margin-bottom: 60px;
}
.origin-story h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}
.value-mini {
    margin-bottom: 2rem;
}
.value-mini h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

/* Insight Tab List */
.insight-list {
    max-width: 800px;
    margin: 0 auto;
}
.insight-item {
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}
.insight-item .date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.5rem;
    display: block;
}
.insight-item h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Values Section */
.values {
    padding: var(--section-pad);
    background-color: var(--bg-color);
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 4rem;
}
.value-card {
    background-color: #fff;
    padding: 60px 40px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}
.value-card:hover {
    transform: translateY(-10px);
}
.value-number {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--accent-blue);
    margin-bottom: 2rem;
    display: block;
}
.value-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}
.value-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
}

/* Process Section */
.process {
    padding: var(--section-pad);
    background-color: #fff;
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    margin-top: 4rem;
}
.step {
    position: relative;
}
.step-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #ccc;
    margin-bottom: 1rem;
    display: block;
}
.step-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
}
.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 300;
}

/* FAQ Section */
.faq {
    padding: var(--section-pad);
    background-color: var(--bg-color);
}
.faq-list {
    max-width: 800px;
    margin-top: 4rem;
}
.faq-item {
    margin-bottom: 3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}
.faq-question {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 400;
}
.faq-answer {
    color: var(--text-secondary);
    font-weight: 300;
}

/* Contact Section */
.contact {
    padding: var(--section-pad);
    background-color: #fff;
    text-align: center;
}
.contact-card {
    max-width: 700px;
    margin: 0 auto;
}
.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    font-weight: 300;
}
.contact-email {
    font-family: var(--font-serif);
    font-size: 2.5vw;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}
.contact-email:hover {
    color: var(--accent-blue);
}
.contact-email::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 80px 0 40px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 60px;
    margin-bottom: 40px;
}
.footer-brand h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}
.footer-brand p {
    color: #999;
    font-weight: 300;
}
.footer-link {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
}
.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: white;
    transition: width 0.3s ease;
}
.footer-link:hover::after {
    width: 100%;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.85rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 12vw; }
    .hero-subtitle { margin-left: 0; margin-top: 2rem; }
    .about-grid, .service-content { grid-template-columns: 1fr; }
    .header-inner { flex-direction: column; gap: 20px; }
    .nav { gap: 20px; }
    .main-mockup { right: 50%; transform: translateX(50%); width: 240px; height: 500px; }
    .secondary-mockup { display: none; }
    .cursor-dot, .cursor-outline { display: none; }
}
