/* ========================================
   NSD Studio - Lauren Waller Inspired Design
======================================== */

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

:root {
    --primary: #6F8F76;
    --dark: #0a0a0a;
    --grey: #666666;
    --light: #999999;
    --bg: #f8f5f0;
    --white: #ffffff;
    --border-color: rgba(0,0,0,0.05);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration-fast: 0.2s;
    --duration-base: 0.4s;
    --duration-slow: 0.8s;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

/* モバイルブラウザのアドレスバー対応 */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin: 0;
}

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

/* Container - Lauren Waller Layout */
.container {
    display: flex;
    min-height: 100vh;
}

/* Left Column - Fixed Sidebar */
.left-fixed {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 40px;
    /* border-right: 1px solid rgba(111, 143, 118, 0.15); */
    background: var(--bg);
    position: relative;
    z-index: 10;
}

.left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 60px;
}

.catchcopy {
    margin: 0;
    color: var(--grey);
    font-size: 13px;
    line-height: 1.75;
    max-width: 240px;
}

.catchcopy-desktop {
    margin-top: 18px;
}

.catchcopy-mobile {
    display: none;
    margin: 0 0 18px;
}

.left-logo {
    width: clamp(60px, 15vw, 100px);
    height: auto;
    margin-bottom: 32px;
}

.left-text {
    min-height: 120px;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideInDown 1s var(--ease-out) 3.4s forwards;
    transition: opacity 0.6s var(--ease-out);
}

.left-text p {
    font-size: 14px;
    line-height: 1.85;
    color: var(--grey);
    margin: 0;
    padding: 0;
}

.left-footer {
    font-size: 12px;
    color: var(--light);
    margin-top: auto;
    padding-top: 20px;
}

/* Right Column - Dynamic Content */
.right-content {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
    background: var(--bg);
}

/* Page Sections - Lauren Waller Transitions */
.page-section {
    min-height: 100vh;
    padding: 100px 80px;
    display: none;
    will-change: transform;
}

.page-section.active {
    display: block;
}

.page-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 800;
    margin-bottom: 80px;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    animation: titleReveal 1s var(--ease-out) 0.2s forwards;
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Navigation Text (PC/SP共通) */
.mobile-nav-text {
    display: block;
    margin: 0 0 26px;
}

.mobile-nav-text p {
    font-size: clamp(18px, 2.5vw, 28px);
    line-height: 1.75;
    color: var(--dark);
    text-align: left;
    margin: 0;
    padding: 0;
}

/* Mobile Footer (スマホ専用) */
.mobile-footer {
    display: none; /* PCでは非表示 */
    padding: 30px 24px;
    text-align: center;
    font-size: 10px;
    color: var(--grey);
    border-top: none;
    margin-top: auto;
}

/* Navigation - Lauren Waller Style */
.main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 200px);
    gap: clamp(20px, 3vh, 40px);
    padding-left: 80px;
    padding-top: 60px;
}

.nav-link {
    font-size: clamp(48px, 9vw, 120px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--dark);
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(60px);
    transition: color var(--duration-base) var(--ease-out);
    will-change: transform, opacity;
}


.nav-link:hover {
    color: var(--primary);
    transform: translateX(20px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.4s var(--ease-out);
}

.nav-link:hover::after {
    width: 60px;
}

/* Back Button - Minimalist */
.back-btn {
    position: fixed;
    top: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: none;
    border: 1px solid var(--dark);
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
    border-radius: 50%;
    transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
    z-index: 100;
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

.back-btn.show {
    opacity: 1;
    transform: scale(1);
}

.back-btn:hover {
    background: var(--dark);
    color: white;
    transform: scale(1.1);
}

@media (min-width: 1025px) {
    .back-btn {
        position: fixed;
        top: 40px;
        right: 40px;
        z-index: 3000;
    }
}

/* Language Toggle */
.lang-switch {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 1000;
    font-size: 12px;
    font-weight: 500;
    opacity: 1;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--light);
    cursor: pointer;
    font-size: inherit;
    font-weight: inherit;
    transition: color 0.3s var(--ease-out);
}

.lang-btn.active {
    color: var(--dark);
}

.lang-btn:hover {
    color: var(--primary);
}

/* Work Page - Lauren Waller Grid */
#work {
    font-family: 'Montserrat', sans-serif;
}

#work .page-title {
    font-family: 'Montserrat', sans-serif;
}

.work-list {
    max-width: 1000px;
}

.work-item {
    display: flex;
    gap: 60px;
    padding: 50px 0;
    border-bottom: 1px solid rgba(111, 143, 118, 0.15);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.work-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.work-item:first-child {
    border-top: 1px solid rgba(111, 143, 118, 0.15);
}

.work-item:last-child {
    border-bottom: none;
}

.work-item:hover {
    transform: translateX(10px) translateY(0);
}

.work-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.15em;
    flex-shrink: 0;
    width: 160px;
    padding-top: 4px;
    line-height: 1;
}

.work-content h3 {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.work-content p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--grey);
    margin: 0;
}

/* About Page */
.about-intro {
    max-width: 900px;
    margin-bottom: 100px;
}

.text-large {
    font-size: clamp(18px, 2.5vw, 28px);
    line-height: 1.75;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s var(--ease-out) 0.4s forwards;
}

.stats {
    display: flex;
    gap: 60px;
    padding: 40px 0;
    border-top: 1px solid rgba(111, 143, 118, 0.2);
    border-bottom: 1px solid rgba(111, 143, 118, 0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s var(--ease-out) 0.6s forwards;
}

.stat-num {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--light);
    margin-top: 8px;
}

.about-approach {
    margin-top: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s var(--ease-out) 0.8s forwards;
}

.about-approach h3 {
    font-size: clamp(20px, 3vw, 28px);
    margin-bottom: 24px;
    line-height: 1.4;
}

.approach-list,
.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.approach-list li,
.skills-list li {
    font-size: 15px;
    line-height: 1.9;
    color: var(--grey);
    padding-left: 24px;
    position: relative;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.8s var(--ease-out) forwards;
}

.approach-list li:nth-child(1) { animation-delay: 1s; }
.approach-list li:nth-child(2) { animation-delay: 1.1s; }
.approach-list li:nth-child(3) { animation-delay: 1.2s; }
.approach-list li:nth-child(4) { animation-delay: 1.3s; }

.approach-list li:before,
.skills-list li:before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

.approach-list li:last-child,
.skills-list li:last-child {
    margin-bottom: 0;
}

/* Timeline */
.profile-section {
    margin-top: 0;
    max-width: 900px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s var(--ease-out) 1s forwards;
}

.profile-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.2;
}

.about-bio {
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.9;
    color: var(--grey);
    margin-bottom: 24px;
    max-width: 720px;
}

.about-bio:last-child {
    margin-bottom: 0;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(111, 143, 118, 0.15);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-year {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
    padding-top: 4px;
    line-height: 1;
}

.timeline-content p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--grey);
    margin: 0;
}

/* About Visual */
.about-header {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 80px;
}

.about-profile {
    padding-top: 12px;
}

.about-name-en {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--light);
    margin-bottom: 10px;
}

.about-name {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 18px;
}

.about-role {
    font-size: clamp(12px, 1.3vw, 14px);
    color: var(--grey);
    line-height: 1.7;
    margin-bottom: 8px;
}

.about-location {
    font-size: 11px;
    color: var(--light);
    letter-spacing: 0.06em;
}

.about-visual {
    margin-top: 80px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s var(--ease-out) 1.2s forwards;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.about-img {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 8px;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-skills h3 {
    font-size: clamp(20px, 3vw, 28px);
    margin-bottom: 24px;
    line-height: 1.4;
}

/* Service Page */
.service-list {
    max-width: 900px;
}

.service-item {
    display: flex;
    gap: 40px;
    padding: 50px 0;
    border-bottom: 1px solid rgba(111, 143, 118, 0.15);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.service-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-item:first-child {
    border-top: 1px solid rgba(111, 143, 118, 0.15);
}

.service-item:last-child {
    border-bottom: none;
}

.service-item:hover {
    transform: translateX(10px) translateY(0);
}

.service-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
    line-height: 1;
}

.service-item h3 {
    font-size: clamp(18px, 3vw, 24px);
    margin-bottom: 12px;
    line-height: 1.4;
}

.service-item p {
    font-size: 14px;
    line-height: 1.85;
    color: var(--grey);
    margin: 0;
}

/* Contact Page */
.contact-wrapper {
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s var(--ease-out) 0.4s forwards;
}

.contact-desc {
    font-size: clamp(14px, 1.8vw, 18px);
    line-height: 1.85;
    color: var(--grey);
    margin-bottom: 40px;
}

.contact-email {
    display: block;
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.4;
    color: var(--dark);
    text-decoration: none;
    margin-bottom: 60px;
    transition: color 0.3s var(--ease-out);
}

.contact-email:hover {
    color: var(--primary);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.input-group {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.input-group:nth-child(1) { animation-delay: 0.6s; }
.input-group:nth-child(2) { animation-delay: 0.7s; }
.input-group:nth-child(3) { animation-delay: 0.8s; }

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 20px 0;
    font-size: 16px;
    font-family: inherit;
    color: var(--dark);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(111, 143, 118, 0.15);
    outline: none;
    transition: border-color 0.3s var(--ease-out);
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary);
}

.input-group label {
    position: absolute;
    left: 0;
    top: 20px;
    font-size: 16px;
    color: var(--light);
    pointer-events: none;
    transition: all 0.3s var(--ease-out);
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 12px;
    color: var(--primary);
}

.input-group textarea {
    resize: vertical;
}

.submit-btn {
    padding: 16px 40px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    background: transparent;
    border: 1px solid var(--dark);
    cursor: pointer;
    transition: transform var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out);
    align-self: flex-start;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s var(--ease-out) 0.9s forwards;
}

.submit-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Form result messages */
.form-result {
    font-size: 15px;
    line-height: 1.9;
    padding: 40px 0;
}

.form-result--success {
    color: var(--primary);
}

.form-result--error {
    color: #cc3333;
}

/* Confirm Modal */
.confirm-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.confirm-modal.active {
    display: flex;
}

.confirm-modal-inner {
    background: var(--bg);
    padding: 40px;
    max-width: 480px;
    width: 100%;
    border-radius: 4px;
}

.confirm-modal-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.confirm-modal-body {
    font-size: 13px;
    line-height: 1.8;
    color: var(--grey);
    margin-bottom: 32px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.confirm-modal-body p {
    margin-bottom: 6px;
}

.confirm-modal-body p:last-child {
    margin-bottom: 0;
}

.confirm-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirm-modal-cancel {
    padding: 12px 24px;
    background: none;
    border: 1px solid rgba(0,0,0,0.15);
    font-size: 13px;
    cursor: pointer;
    color: var(--grey);
    transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
    border-radius: 2px;
}

.confirm-modal-cancel:hover {
    border-color: var(--dark);
    color: var(--dark);
}

.confirm-modal-send {
    padding: 12px 28px;
    background: var(--dark);
    border: 1px solid var(--dark);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
    border-radius: 2px;
}

.confirm-modal-send:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.confirm-modal-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Keep page internals stable; animate at page-level via JS */
.page-section .page-title,
.page-section .text-large,
.page-section .stats,
.page-section .about-header,
.page-section .about-approach,
.page-section .profile-section,
.page-section .about-visual,
.page-section .approach-list li,
.page-section .skills-list li,
.page-section .work-item,
.page-section .timeline-item,
.page-section .service-item,
.page-section .contact-wrapper,
.page-section .input-group,
.page-section .submit-btn {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* Touch Device Optimizations */
.touch-device .nav-link {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

.touch-device .nav-link:active {
    transform: translateX(10px);
    color: var(--primary);
}

.touch-device .back-btn:active,
.touch-device .lang-btn:active,
.touch-device .submit-btn:active {
    transform: scale(0.95);
}

/* 画像の遅延読み込み */
img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded,
img[src*="data:"] {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        min-height: 100vh;
    }

    .left-fixed {
        width: 100%;
        height: auto;
        padding: 24px 24px 20px;
        border-right: none;
        position: relative;
        background: var(--bg);
        z-index: 100;
    }

    .left-content {
        padding-bottom: 0;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }

    .catchcopy-desktop {
        display: none;
    }

    .catchcopy-mobile {
        display: block;
        max-width: none;
        color: var(--grey);
        font-size: 12px;
        line-height: 1.6;
        margin: 0 24px 14px;
    }

    .left-logo {
        width: 90px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .left-text {
        height: auto;
        min-height: auto;
        flex: 1;
        display: none; /* スマホでは非表示 */
        align-items: center;
        justify-content: flex-end;
        text-align: right;
    }

    .left-text p {
        font-size: 12px;
        line-height: 1.6;
        margin: 0;
    }

    .left-footer {
        display: none; /* タブレット・スマホでは非表示 */
    }

    .right-content {
        height: auto;
        overflow-y: visible;
        padding-top: 0;
        width: 100%; /* スマホでは全幅 */
        margin-left: 0;
    }

    .page-section {
        padding: 40px 24px 60px;
        min-height: calc(100vh - 120px);
    }

    .page-title {
        font-size: clamp(32px, 8vw, 48px);
        margin-bottom: 30px;
    }

    .mobile-nav-text {
        display: block; /* スマホで表示 */
    }

    .mobile-footer {
        display: block; /* スマホで表示 */
    }

    .main-nav {
        min-height: calc(100vh - 240px);
        gap: clamp(20px, 4vh, 35px);
        padding: 0 24px;
        justify-content: center;
    }

    .nav-link {
        font-size: clamp(32px, 9vw, 56px);
        line-height: 1.0;
        font-weight: 700;
    }

    .lang-switch {
        top: 20px;
        right: 20px;
        left: auto;
        font-size: 10px;
    }

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

    .stats {
        flex-wrap: wrap;
        gap: 30px;
        padding: 25px 0;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-bottom: 30px;
    }
    
    .timeline-year {
        font-size: 13px;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 8px;
    }

    .work-item,
    .service-item {
        flex-direction: column;
        gap: 16px;
        padding: 30px 0;
    }

    .work-category {
        width: auto;
        font-size: 9px;
        letter-spacing: 0.1em;
    }

    .back-btn {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lang-switch {
        top: 20px;
        right: 20px;
        font-size: 10px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    /* Header */
    .left-fixed {
        padding: 18px 20px;
    }

    .left-content {
        gap: 10px;
    }

    .left-logo {
        width: 44px;
    }

    .left-text,
    .left-footer {
        display: none;
    }

    .mobile-footer {
        display: block;
    }

    /* Language toggle */
    .lang-switch {
        position: fixed;
        top: 16px;
        right: 16px;
        left: auto;
        font-size: 10px;
        display: flex;
        align-items: center;
        gap: 3px;
    }

    .lang-btn {
        font-size: 11px;
        min-width: 30px;
        min-height: 30px;
        padding: 4px;
    }

    /* Back button */
    .back-btn {
        width: 36px;
        height: 36px;
        top: 72px;
        right: 16px;
        font-size: 16px;
    }

    /* Catchcopy above nav */
    .catchcopy-mobile {
        font-size: 10px;
        line-height: 1.7;
        color: var(--grey);
        margin: 0 0 20px;
    }

    .mobile-nav-text p {
        font-size: clamp(14px, 4vw, 18px);
        line-height: 1.7;
    }

    /* Inner page sections */
    .page-section {
        padding: 72px 20px 40px;
        min-height: calc(100vh - 80px);
    }

    .page-title {
        font-size: clamp(28px, 9vw, 44px);
        margin-bottom: 28px;
        font-weight: 800;
        line-height: 0.9;
    }

    /* Nav (non-home pages) */
    .main-nav {
        min-height: auto;
        gap: clamp(20px, 4vh, 36px);
        padding: 0 20px;
        justify-content: center;
    }

    .nav-link {
        font-size: clamp(32px, 10vw, 52px);
        line-height: 1.0;
        font-weight: 700;
        letter-spacing: -0.02em;
    }

    /* Home page */
    #home.page-section {
        padding: 20px 20px 16px;
        min-height: auto;
    }

    #home .main-nav {
        min-height: auto;
        gap: 8px;
        padding: 0;
        justify-content: flex-start;
    }

    #home .nav-link {
        font-size: clamp(44px, 13vw, 62px);
        line-height: 1.05;
        letter-spacing: -0.03em;
        font-weight: 800;
    }

    /* About */
    .about-header {
        grid-template-columns: 140px 1fr;
        gap: 24px;
        margin-bottom: 48px;
        align-items: center;
    }

    .about-name {
        font-size: clamp(22px, 6vw, 34px);
        margin-bottom: 12px;
    }

    .about-role {
        font-size: 12px;
    }

    .text-large {
        font-size: clamp(14px, 4.2vw, 18px);
        margin-bottom: 28px;
        line-height: 1.7;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }

    .stat {
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 12px;
    }

    .stat-num {
        font-size: clamp(22px, 7vw, 30px);
        font-weight: 800;
    }

    .stat-label {
        font-size: 10px;
        margin-top: 0;
    }

    .about-intro { margin-bottom: 40px; }
    .about-approach { margin-top: 30px; }

    .about-approach h3,
    .about-skills h3,
    .profile-title {
        font-size: clamp(15px, 3.8vw, 19px);
        margin-bottom: 16px;
    }

    .approach-list li,
    .skills-list li {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 10px;
        padding-left: 20px;
    }

    .about-visual { margin-top: 40px; }
    .about-grid { gap: 25px; }
    .about-img { aspect-ratio: 4/3; }

    /* Timeline */
    .timeline { gap: 30px; }

    .timeline-item {
        padding-bottom: 25px;
        gap: 10px;
    }

    .timeline-year {
        font-size: 12px;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .timeline-content p {
        font-size: 13px;
        line-height: 1.7;
    }

    /* Work */
    .work-item { padding: 25px 0; }

    .work-category {
        font-size: 8px;
        letter-spacing: 0.1em;
        margin-bottom: 8px;
    }

    .work-content h3 {
        font-size: clamp(15px, 4vw, 20px);
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .work-content p {
        font-size: 13px;
        line-height: 1.7;
    }

    /* Service */
    .service-item {
        padding: 25px 0;
        gap: 12px;
    }

    .service-num {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .service-item h3 {
        font-size: clamp(14px, 3.8vw, 18px);
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .service-item p {
        font-size: 12px;
        line-height: 1.7;
    }

    /* Contact */
    .contact-desc {
        font-size: clamp(12px, 3.5vw, 15px);
        margin-bottom: 25px;
        line-height: 1.7;
    }

    .contact-email {
        font-size: clamp(15px, 4.5vw, 20px);
        margin-bottom: 35px;
    }

    .contact-form { gap: 25px; }

    .input-group input,
    .input-group textarea {
        padding: 14px 0;
        font-size: 14px;
    }

    .input-group label {
        top: 14px;
        font-size: 14px;
    }

    .input-group input:focus + label,
    .input-group input:not(:placeholder-shown) + label,
    .input-group textarea:focus + label,
    .input-group textarea:not(:placeholder-shown) + label {
        top: -6px;
        font-size: 11px;
    }

    .submit-btn {
        padding: 14px 32px;
        font-size: 13px;
    }
}

/* Small phones (480px and below) */
@media (max-width: 480px) {
    .left-fixed { padding: 16px; }
    .left-content { gap: 8px; }
    .left-logo { width: 38px; }

    .about-header {
        grid-template-columns: 110px 1fr;
        gap: 18px;
        margin-bottom: 36px;
    }

    .about-name {
        font-size: clamp(20px, 5.5vw, 28px);
    }

    .catchcopy-mobile {
        font-size: 10px;
        margin: 0 0 16px;
    }

    .mobile-nav-text p {
        font-size: clamp(13px, 4.5vw, 17px);
        line-height: 1.6;
    }

    .page-section {
        padding: 64px 16px 36px;
    }

    .page-title {
        font-size: clamp(26px, 10vw, 40px);
        margin-bottom: 22px;
        line-height: 0.85;
    }

    .main-nav {
        gap: clamp(18px, 3.5vh, 32px);
        padding: 0 16px;
    }

    .nav-link {
        font-size: clamp(30px, 9.5vw, 48px);
    }

    .back-btn {
        width: 32px;
        height: 32px;
        top: 64px;
        right: 12px;
        font-size: 14px;
    }

    .lang-switch {
        top: 12px;
        right: 12px;
        font-size: 10px;
    }

    .lang-btn {
        font-size: 10px;
        min-width: 28px;
        min-height: 28px;
    }

    #home.page-section {
        padding: 16px 16px 14px;
    }

    #home .main-nav {
        gap: 6px;
        padding: 0;
    }

    #home .nav-link {
        font-size: clamp(38px, 12.5vw, 56px);
        line-height: 1.05;
        letter-spacing: -0.03em;
        font-weight: 800;
    }

    .text-large {
        font-size: clamp(13px, 4.5vw, 17px);
        margin-bottom: 22px;
        line-height: 1.6;
    }

    .stat-num { font-size: clamp(20px, 8vw, 28px); }

    .work-content h3,
    .service-item h3 {
        font-size: clamp(14px, 4.5vw, 18px);
        line-height: 1.2;
    }
}


@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}