:root {
    --bg-color: #FFFFFF;
    --text-primary: #765259; /* Deep Mauve / Burgundy */
    --text-secondary: #888888; /* Gray */
    --text-dark: #333333;
    --cta-bg: #F8F7F5; /* Very light warm gray/beige */
    --cta-btn: #765259;
    --cta-title: #4A5342; /* Dark desaturated green */
    
    --font-serif: 'Playfair Display', 'Noto Serif JP', serif;
    --font-sans: 'Inter', 'Zen Kaku Gothic New', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 4rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 3rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.header-logo {
    font-family: var(--font-serif);
    color: var(--text-primary);
    text-transform: none;
    font-size: 1.2rem;
    letter-spacing: 0;
}

.header-nav {
    display: flex;
    gap: 3rem;
}

.header-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s;
    padding-bottom: 2px;
}

.header-nav a.active {
    border-bottom: 1px solid var(--text-secondary);
}

.header-nav a:hover, .header-social a:hover {
    color: var(--text-primary);
}

.header-social a {
    text-decoration: none;
    color: var(--text-secondary);
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 0 3rem;
}

.main-title {
    font-family: var(--font-serif);
    color: var(--text-primary);
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.profile-block {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 5rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.profile-avatar {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0f0f0;
    margin-top: 0.5rem;
    box-shadow: 0 10px 40px rgba(118, 82, 89, 0.08); /* Soft mauve shadow */
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.5); /* 左右の余白（ボカシ）を隠すために画像を拡大してトリミング */
}

.profile-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.profile-name {
    font-family: var(--font-serif);
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.profile-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.profile-manager {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;
}

.profile-ig-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--text-secondary);
    border-radius: 4px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    width: fit-content;
}

.profile-ig-btn:hover {
    background-color: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
}

.ig-logo {
    width: 16px;
    height: 16px;
}

/* Main Visual */
.main-visual {
    margin-top: 5rem;
    margin-bottom: 3rem;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.main-visual img {
    width: 100%;
    max-height: 700px;
    object-fit: cover;
    display: block;
}

/* Masonry Gallery */
.masonry-gallery {
    column-count: 3;
    column-gap: 20px;
    margin-bottom: 6rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    background-color: #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05); /* overridden for zoom boxes below */
}

/* Zoom Variations for detail shots */
.zoom-box {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.zoom-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.zoom-1 img { transform: scale(2.2); transform-origin: center 60%; }
.zoom-box.zoom-1:hover img { transform: scale(2.3); }

.zoom-2 img { transform: scale(3.5); transform-origin: 50% 50%; aspect-ratio: 1/1; }
.zoom-box.zoom-2:hover img { transform: scale(3.7); }

.zoom-3 img { transform: scale(2.8); transform-origin: 30% 60%; }
.zoom-box.zoom-3:hover img { transform: scale(2.9); }

.zoom-4 img { transform: scale(2); transform-origin: center center; }
.zoom-box.zoom-4:hover img { transform: scale(2.1); }

.zoom-5 img { transform: scale(2.5); transform-origin: 50% 80%; }
.zoom-box.zoom-5:hover img { transform: scale(2.6); }



/* CTA Section */
.cta-section {
    padding: 0;
    margin-bottom: 4rem;
}

.cta-box {
    background-color: var(--cta-bg);
    border-radius: 8px;
    padding: 5rem 2rem;
    text-align: center;
}

.cta-title {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--cta-title);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto 3rem;
}

.btn-inquire {
    display: inline-block;
    background-color: var(--cta-btn);
    color: #fff;
    text-decoration: none;
    padding: 1rem 3rem;
    border-radius: 4px;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s;
}

.btn-inquire:hover {
    background-color: #5c3f46;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid #f0f0f0;
    padding-top: 2rem;
    font-size: 0.75rem;
    color: #aaa;
}

.footer-logo {
    color: var(--text-dark);
    font-family: var(--font-serif);
    font-size: 1rem;
}

.footer-right {
    display: flex;
    gap: 2rem;
}

.footer-right a {
    color: #aaa;
    text-decoration: none;
}

.footer-right a:hover {
    color: var(--text-dark);
}

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

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* A4 Print Styles (Crucial Layout Integrity) */
@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    body {
        margin: 0;
        padding: 0;
    }

    .page-container {
        width: 210mm;
        padding: 10mm 15mm; 
        margin: 0 auto;
        max-width: none;
        box-shadow: none;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        display: block;
    }

    /* Hide redundant elements in print */
    .header-nav, .filter-nav {
        display: none !important;
    }

    .main-visual {
        display: none !important;
    }
    
    .profile-ig-btn {
        display: none !important;
    }

    .main-visual img {
        max-height: 400px; /* Resize for A4 */
    }

    /* Adjust masonry grid to force fit A4 or break nicely */
    .masonry-gallery {
        column-gap: 12px;
        margin-bottom: 5mm;
    }
    
    .gallery-item {
        margin-bottom: 12px;
    }
    
    .cta-box {
        padding: 15mm 10mm;
        page-break-inside: avoid;
    }

    .hero {
        padding: 5mm 0;
    }
    
    .main-title {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    
    .profile-block {
        gap: 1.5rem;
        margin-bottom: 1rem;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
    }

    /* Disable animations */
    .fade-up {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .page-container {
        padding: 1.5rem;
    }

    .header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-nav {
        gap: 1.5rem;
    }

    .main-title {
        font-size: 2.5rem;
    }
    
    .profile-block {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .masonry-gallery {
        column-count: 1;
    }
    
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
}
