:root {
    --bg-color: #fcfcfc;
    --text-color: #1a1a1a;
    --accent-gray: #f0f0f0;
    --border-color: #e0e0e0;
    --font-heading: 'Shippori Mincho', serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

ul {
    list-style: none;
}

/* Custom Cursor */
.cursor-dot,
.cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-color);
}

.cursor-circle {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(26, 26, 26, 0.3);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

body.hovering .cursor-circle {
    width: 60px;
    height: 60px;
    background-color: rgba(26, 26, 26, 0.05);
    border-color: transparent;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    color: white;
    /* Inverted due to mix-blend-mode */
}

/* Logo Implementation */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    /* Since header has mix-blend-mode: difference and text is white, 
       we need to ensure the logo looks good.
       If the logo is black on white, 'difference' against white bg = inverted (white on black equivalent).
       Let's try simply inverting it if needed or just letting difference do its work.
       However, if the logo is a JPG with white bg, mix-blend-mode: multiply might be better to hide the box,
       but 'difference' affects the whole header.
       
       Better approach: Force the image to be visible. 
    */
    mix-blend-mode: normal;
    /* Override parent if needed, though parent has it */
}

/* Profile Section Update */
.profile {
    background-color: #1a1a1a;
    color: white;
}

.profile .section-title {
    border-color: #444;
}

.profile-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    /* Space between image and text */
}

.profile-image-container {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    /* Ensure image stays inside border-radius */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--easing);
}

.profile-wrapper:hover .profile-img {
    transform: scale(1.05);
}

.profile-info {
    max-width: 600px;
    width: 100%;
}

.name-block {
    margin-bottom: 40px;
}

.nav a {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: white;
    transition: width 0.4s var(--easing);
}

.nav a:hover::after {
    width: 100%;
}

.menu-btn {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 8vw;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--text-color);
}

.char {
    display: inline-block;
    opacity: 0;
    /* JS will animate */
}

.hero-sub {
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #666;
    opacity: 0;
    animation: fadeIn 1s 1.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.scroll-down {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
}

.scroll-down .line {
    width: 1px;
    height: 60px;
    background-color: var(--text-color);
    animation: scrollLine 2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
    }

    50% {
        transform: scaleY(1);
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

.scroll-down .text {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Sections General */
.section {
    padding: 150px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 80px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    display: inline-block;
}

/* Vision */
.vision {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.vision-text h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.en-vision {
    font-style: italic;
    color: #888;
    margin-bottom: 50px;
    font-family: serif;
}

.vision-desc p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Service */
.service-list {
    border-top: 1px solid var(--border-color);
}

.service-item {
    border-bottom: 1px solid var(--border-color);
    padding: 60px 0;
    display: flex;
    align-items: flex-start;
    gap: 60px;
    transition: background-color 0.4s;
}

.service-item:hover {
    background-color: var(--accent-gray);
    padding-left: 20px;
    /* Slight shift */
}

.service-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #ccc;
}

.service-content {
    flex: 1;
}

.service-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.service-ja {
    font-size: 1rem;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.service-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-desc {
    max-width: 600px;
    color: #444;
    margin-bottom: 20px;
}

.tags span {
    display: inline-block;
    border: 1px solid #ccc;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-right: 10px;
    color: #666;
}

/* Profile */
.profile {
    background-color: #1a1a1a;
    color: white;
}

.profile .section-title {
    border-color: #444;
}

.profile-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-info {
    max-width: 800px;
    width: 100%;
}

.name-block {
    margin-bottom: 40px;
}

.role {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: #888;
}

.name-block h3 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 5px;
}

.en-name {
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: #666;
    text-transform: uppercase;
}

.profile-bio {
    font-size: 1.1rem;
    line-height: 2;
    color: #e0e0e0;
}

.profile-bio p {
    margin-bottom: 20px;
}

/* Contact */
.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-lead {
    text-align: center;
    margin-bottom: 60px;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 40px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    font-size: 1.1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s;
    border-radius: 0;
    /* Reset for iOS */
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--text-color);
}

.submit-btn {
    width: 100%;
    padding: 20px;
    background-color: var(--text-color);
    color: white;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #333;
}

/* Footer */
.footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: #666;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--text-color);
}

/* Animations (Utility) */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 20px;
    }

    .nav {
        display: none;
    }

    /* Simplified mobile handling */
    .menu-btn {
        display: block;
        position: relative;
        width: 30px;
        height: 20px;
        cursor: pointer;
    }

    .menu-btn span {
        position: absolute;
        width: 100%;
        height: 2px;
        background: white;
        transition: 0.3s;
    }

    .menu-btn span:first-child {
        top: 0;
    }

    .menu-btn span:last-child {
        bottom: 0;
    }

    .hero-title {
        font-size: 15vw;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .service-item {
        flex-direction: column;
        gap: 20px;
    }

    .profile-wrapper {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .name-block h3 {
        font-size: 2.5rem;
    }

    .cursor-dot,
    .cursor-circle {
        display: none;
    }

    /* Disable custom cursor on touch */
}