/* CSS Variables & Theme */
/* Global Sophisticated Palette */
:root {
    --color-primary: #1A237E;
    /* Indigo Blue (Base) */
    --color-bg: #F5F7FA;
    /* Porcelain / Silk Gray (More refined than Ice Gray) */
    --color-text-primary: #2C3E50;
    /* Deep Midnight Charcoal */
    --color-text-secondary: #546E7A;
    /* Slate Blue Gray */
    --color-accent: #D4AF37;
    /* Champagne Gold */
    --color-cyan: #00BCD4;
    /* AI Cyan (Muted) */

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
    --font-body: 'Noto Serif JP', serif;
    /* Kept for existing usage */
    --font-ui: 'Inter', sans-serif;
    /* Kept for existing usage */

    /* Spacing & Radius */
    --container-width: 1200px;
}

/* Background Text: Architectural Typography */
.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    /* Mincho for elegance */
    font-size: 18vw;
    /* Massive */
    font-weight: 700;
    color: rgba(44, 62, 80, 0.03);
    /* Extremely subtle watermark */
    white-space: nowrap;
    z-index: -2;
    letter-spacing: 0.1em;
    pointer-events: none;
    user-select: none;
    mix-blend-mode: multiply;
    /* Better blend with background */
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    overflow-x: hidden;
    cursor: auto;
    /* Fallback: Default cursor until JS loads */
}

/* Only hide cursor if JS successfully activates custom cursor */
body.custom-cursor-active {
    cursor: none;
    /* Only hide default cursor if JS is working */
}

/* Fluid Intelligence Background (Ethereal Light - CSS Driven) */
.fluid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -5;
    background-color: var(--color-bg);
    /* Robust Gradient Mesh */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 229, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
    background-size: 200% 200%;
    animation: auroraFlow 15s ease-in-out infinite alternate;
}

@keyframes auroraFlow {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/* Digital Noise Texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -4;
    pointer-events: none;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Loader Styles REMOVED for Stability */
/* (Deleted .loader-overlay and .loader-logo) */

/* Custom Cursor & Particles */
.cursor-dot {
    pointer-events: none;
    position: fixed;
    top: -20px;
    /* Initially off-screen */
    left: -20px;
    width: 10px;
    height: 10px;
    background-color: var(--color-cyan);
    border-radius: 50%;
    z-index: 10000;
    box-shadow: 0 0 15px var(--color-cyan);
    transition: transform 0.1s;
}

.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: -50px;
    left: -50px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 229, 255, 0.6);
    border-radius: 50%;
    z-index: 10000;
    transition: transform 0.15s ease-out;
}

/* AI Particle (Sophisticated Sparkle) */
.particle {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    /* Soft round */
    z-index: 10001;
    /* ABOVE BADGE (10000) */
    /* Below cursor, above all else */
    mix-blend-mode: screen;
    /* Additive blending for light effects */
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

/* Reusable Utilities */
.container {
    width: 88%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 140px 0;
    /* More glorious whitespace */
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    /* Larger */
    font-weight: 300;
    /* Lighter */
    margin-bottom: 4rem;
    /* More space */
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 40px;
    /* Shorter line */
    height: 1px;
    /* Thinner line */
    background: var(--color-accent);
    border-radius: 0;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: var(--radius-sm);
    /* Minimal radius */
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #283593);
    color: #fff;
    box-shadow: 0 10px 30px -10px rgba(15, 44, 76, 0.4);
    border: none;
    padding: 15px 45px;
    /* More elegant padding */
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #283593, var(--color-primary));
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -10px rgba(15, 44, 76, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(15, 44, 76, 0.3);
    color: var(--color-primary);
    margin-left: 1rem;
    backdrop-filter: blur(5px);
    padding: 15px 45px;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
}

.btn-secondary:hover {
    background: rgba(15, 44, 76, 0.05);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    /* Cleaner white */
    backdrop-filter: blur(15px);
    /* Stronger blur */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    border-bottom: 1px solid rgba(15, 44, 76, 0.05);
    /* Subtle deep blue tint */
    transition: height 0.3s ease;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo .accent {
    color: var(--color-primary);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    color: var(--color-text-muted);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--color-text);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s;
}

.nav-list a:hover::after {
    width: 100%;
}

.btn-contact {
    border: 1px solid var(--color-primary);
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--color-primary) !important;
}

.btn-contact:hover {
    background: var(--color-primary);
    color: #fff !important;
}

.btn-contact::after {
    display: none;
}

/* Hero Section Upgrade */
/* Profile Tags */
.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(15, 44, 76, 0.05);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    /* Ensure no default underline */
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Clickable Tag Visuals */
a.tag:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(26, 35, 126, 0.2);
}

a.tag::after {
    content: '↗';
    /* External Link Arrow */
    font-size: 1.1em;
    /* Larger */
    opacity: 0.9;
    /* Much more visible */
    margin-left: 4px;
    font-weight: 700;
    /* Bolder */
    transition: transform 0.3s;
}

a.tag:hover::after {
    opacity: 1;
    transform: translate(2px, -2px);
    color: #fff;
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 750px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--color-bg);
}

/* Hero Gradient Backdrop (Gold & Blue Fusion) */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(15, 44, 76, 0.08) 0%, rgba(212, 175, 55, 0.08) 40%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
    animation: gradientPulse 10s ease-in-out infinite alternate;
}

@keyframes gradientPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.hero-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
    position: relative;
}

/* Background Parallax Text */
.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12vw;
    font-family: var(--font-heading);
    font-weight: 800;
    white-space: nowrap;
    color: rgba(15, 44, 76, 0.03);
    /* Subtle watermark */
    z-index: 0;
    pointer-events: none;
    letter-spacing: -0.05em;
}

.hero-title-en {
    font-family: 'Cinzel', serif;
    /* Stylish, cinematic serif */
    font-size: 5rem;
    /* Larger impact */
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    /* Sophisticated Gradient */
    background: linear-gradient(135deg, var(--color-primary) 0%, #283593 40%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    /* Subtle depth */
}

.hero-title-ja {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--color-text-primary);
    margin: 1rem 0 2rem;
    display: block;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 2.2;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
}

.gradient-text-anim {
    background: linear-gradient(120deg, var(--color-primary), var(--color-accent), var(--color-accent-sub), var(--color-primary));
    background-size: 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Hero Visual & Blobs */
.hero-visual-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    /* For 3D Tilt */
}

.hero-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.6;
    animation: blobMorph 10s ease-in-out infinite;
    mix-blend-mode: multiply;
}

.blob-1 {
    width: 80%;
    height: 80%;
    background: #e2eaf4;
    /* Soft Blue */
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 70%;
    height: 70%;
    background: #f0f4f8;
    /* Lighter Blue */
    bottom: 5%;
    right: 5%;
    animation-duration: 12s;
    animation-direction: reverse;
}

.blob-3 {
    width: 60%;
    height: 60%;
    background: rgba(212, 175, 55, 0.1);
    /* Subtle Gold */
    top: 20%;
    right: 20%;
    animation-duration: 15s;
}

@keyframes blobMorph {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(0, 0);
    }

    33% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: translate(10px, -10px);
    }

    66% {
        border-radius: 70% 30% 40% 60% / 30% 60% 50% 50%;
        transform: translate(-10px, 10px);
    }
}

.hero-image-tilt {
    width: 80%;
    max-width: 400px;
    height: auto;
    z-index: 2;
    transition: transform 0.1s ease-out;
    /* Smooth JS tilt */
    filter: drop-shadow(0 20px 40px rgba(15, 44, 76, 0.2));
}

.hero-profile-img {
    width: 100%;
    display: block;
    border-radius: 20px;
    /* Optional: if the image itself is rect */
    /* If the image is transparent cutout, remove border-radius */
}

/* Mouse Particles */
#particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.particle {
    position: absolute;
    background: var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual-wrapper {
        height: 400px;
        order: -1;
    }

    .hero-bg-text {
        font-size: 20vw;
    }

    .hero-image-tilt {
        width: 60%;
    }

    .credibility-badge {
        bottom: -20px;
        right: 10%;
    }
}

/* Credibility Badge (Glassmorphism & Blue Glow) */
.credibility-badge {
    position: absolute;
    bottom: 40px;
    left: -10px;
    /* Overlap slightly but safely */
    background: rgba(255, 255, 255, 0.65);
    /* More transparency */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* Stronger border */
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(15, 44, 76, 0.15);
    /* Premium shadow */
    z-index: 1000;
    /* FORCE VISIBILITY */
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: floatY 6s ease-in-out infinite;
    max-width: 240px;
    display: block;
    /* Ensure box model */
}

.credibility-badge:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 50px rgba(15, 44, 76, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.6);
    /* Inner Glow */
}

.badge-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.badge-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.4;
    margin-bottom: 6px;
}

.badge-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid rgba(15, 44, 76, 0.1);
}

.badge-sub {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.badge-arrow {
    color: var(--color-accent);
    font-weight: 700;
    transition: transform 0.3s ease;
}

.credibility-badge:hover .badge-arrow {
    transform: translateX(5px);
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Background Career Text (Signature) */
.hero-bg-career-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 5rem;
    line-height: 1;
    color: rgba(15, 44, 76, 0.04);
    /* Subtle signature */
    white-space: nowrap;
    z-index: -2;
    pointer-events: none;
    letter-spacing: 0.05em;
}

/* Books Stack (Antigravity) */
.books-stack-container {
    position: absolute;
    top: 20px;
    right: -40px;
    width: 140px;
    height: 200px;
    z-index: 5;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.books-stack-container:hover {
    transform: scale(1.05);
}

.book-stack-item {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: bottom center;
}

.book-stack-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Default Stacked State */
.book-1 {
    z-index: 3;
    transform: rotate(-5deg) translateY(0);
}

.book-2 {
    z-index: 2;
    transform: rotate(0deg) translateY(5px);
}

.book-3 {
    z-index: 1;
    transform: rotate(5deg) translateY(10px);
}

/* Fanned State (Triggered by class via JS or Hover) */
.books-fanned .book-1 {
    transform: rotate(-25deg) translateX(-40px) translateY(-10px);
}

.books-fanned .book-2 {
    transform: rotate(0deg) translateY(-20px);
}

.books-fanned .book-3 {
    transform: rotate(25deg) translateX(40px) translateY(-10px);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .books-stack-container {
        top: -60px;
        right: 0;
        width: 100px;
        height: 140px;
    }

    .credibility-badge {
        bottom: -30px;
        left: 0;
        right: 0;
        margin: auto;
    }

    .hero-bg-career-text {
        font-size: 2rem;
    }
}

/* Works Section */
.works-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 5px 0;
    position: relative;
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--color-text);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.work-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.work-image {
    height: 240px;
    background: #eef2f6;
    /* Light cool gray */
    position: relative;
    overflow: hidden;
}

.work-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 44, 76, 0.05);
    transition: 0.5s;
}

.work-card:hover .work-image::after {
    background: rgba(15, 44, 76, 0);
}

.work-content {
    padding: 35px;
}

.work-cat {
    font-size: 0.75rem;
    color: var(--color-accent);
    /* Gold */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

.work-content h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.work-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Philosophy Section */
.philosophy {
    background: var(--color-bg-secondary);
    text-align: center;
}

.quote {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.philosophy-text {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

/* Contact Section */
.contact-desc {
    margin-bottom: 3rem;
    color: var(--color-text-muted);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* About Section */
.about {
    padding-top: 140px;
    background: #fff;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.about-image:hover .profile-img {
    transform: scale(1.05);
    /* Gentle zoom on hover */
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-text h3 span {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.career-intro strong {
    color: var(--color-text-primary);
    font-weight: 700;
    /* border-bottom: 2px solid var(--color-accent); Option for underline style */
}

.skills-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.skills-list li {
    background: rgba(224, 122, 95, 0.1);
    /* Light warm orange tint */
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(224, 122, 95, 0.2);
    color: var(--color-primary);
    font-weight: 500;
}

/* Works Section */
.works-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 5px 0;
    position: relative;
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--color-text);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.work-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.work-image {
    height: 240px;
    background: #eef2f6;
    /* Light cool gray */
    position: relative;
    overflow: hidden;
}

.work-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 44, 76, 0.05);
    transition: 0.5s;
}

.work-card:hover .work-image::after {
    background: rgba(15, 44, 76, 0);
}

.work-content {
    padding: 35px;
}

.work-cat {
    font-size: 0.75rem;
    color: var(--color-accent);
    /* Gold */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

.work-content h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.work-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Philosophy Section */
/* Belief (Philosophy) Section - twin pillars */
.philosophy {
    background: var(--color-bg-secondary);
    text-align: center;
    padding: 120px 0;
}

.belief-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    /* Removing gap to control border spacing */
    max-width: 900px;
    margin: 5rem auto 0;
    align-items: stretch;
    /* Stretch to equal height for border */
}

.belief-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 40px;
}

/* Vertical divider for desktop - Sophisticated thin line */
.belief-item:first-child {
    border-right: 1px solid rgba(26, 35, 126, 0.1);
    /* Subtle dark blue divider */
}

.belief-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    /* Dark Navy */
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    position: relative;
}

/* Decoration line under title */
.belief-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--color-accent);
    /* Gold */
}

.belief-desc {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 2.6;
    /* More breathing room */
    color: var(--color-text-primary);
    font-weight: 500;
    margin-top: 1rem;
}

.belief-line {
    display: none;
    /* Replaced by CSS pseudo-element */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .belief-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        margin-top: 3rem;
    }

    .belief-item:first-child {
        border-right: none;
        border-bottom: 1px solid rgba(26, 35, 126, 0.1);
        padding-bottom: 60px;
        margin-bottom: 0px;
    }
}

/* Contact Section */
.contact-desc {
    margin-bottom: 3rem;
    color: var(--color-text-muted);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* About Section */
.about {
    padding-top: 140px;
    background: #fff;
}

.profile-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: none;
    /* Remove default underline if needed */
}

.profile-title::after {
    display: none;
    /* Remove default underline */
}

.title-ja {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

.title-en {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    /* Gold */
    margin-top: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.1);
    background: #fff;
}

.btn-submit {
    width: 100%;
}

/* Footer */
.footer {
    padding: 50px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #1a1a1a;
    /* Keep dark footer for contrast */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.social-links a:hover {
    color: var(--color-primary);
}

.copyright {
    color: #64748b;
    font-size: 0.8rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        /* Need to implement JS toggle */
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Books Section */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 2rem;
}

.book-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    /* Flexbox for layout */
    flex-direction: column;
    /* Stack vertically */
    height: 100%;
    /* Full height */
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-cover {
    width: 160px;
    /* Slightly wider for better display */
    height: 230px;
    margin: 0 auto 20px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.book-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-card:hover .book-cover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.book-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

/* Amazon Button */
/* Amazon Button - Sophisticated */
.btn-amazon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 36px;
    background: #232F3E;
    /* Amazon Dark Blue */
    color: #ffffff;
    border-radius: 50px;
    /* Modern Pill Shape */
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(35, 47, 62, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.btn-amazon:hover {
    background: #37475A;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(35, 47, 62, 0.35);
    color: #fff;
}

/* Remove flashy animation */
.btn-amazon::after {
    display: none;
}

.book-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    /* Push button to bottom */
}

.amazon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FF9900;
    /* Amazon Orange */
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s;
}

.amazon-btn:hover {
    background: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}