/* Base variables */
:root {
    --color-bg: #ffffff;
    --color-text: #111111;
    --color-text-muted: #888888;
    --color-border: #eeeeee;
    --color-accent: #ff9fb3; /* Soft pink for contact button */
    --font-en: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --font-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'YuGothic', sans-serif;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-jp);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    cursor: none !important;
}

/* Global Content Wrapper */
.site-main {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Custom Cursor */
#unicorn-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 999999;
    background-image: url('../images/unicorn-sprite.png?v=5');
    background-size: 32px 32px;
    background-repeat: no-restricted;
    transform-origin: center center;
    /* Adjust translate so cursor point is roughly top-left of unicorn */
    margin-left: -4px; 
    margin-top: -4px;
}

a, button, input, textarea, select {
    cursor: none !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-en);
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.center {
    text-align: center;
}

/* Header */
.site-header {
    position: relative; 
    width: 100%;
    background: #ffffff;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.site-header.is-sticky {
    position: sticky;
    top: 0;
}

.header-inner {
    display: flex;
    justify-content: flex-end; /* Push menu and button to the right */
    align-items: center;
    padding: 15px 40px;
    height: auto;
    min-height: 90px; /* Reduced header height */
    position: relative; /* Anchor for absolute logo */
}

.site-branding {
    position: absolute;
    top: 10px;
    left: 40px;
    z-index: 1001;
    width: 280px; /* Allow a generous width */
}

.site-title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    margin: 0;
    font-weight: 600;
}

.site-title a {
    color: var(--color-text);
}

.site-title img,
.custom-logo {
    width: 100%;
    height: auto;
    /* Removed max-height so it can naturally overflow down into the hero slider! */
}

/* Bilingual Menu */
.main-navigation {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    margin-right: 40px;
}

.site-header .main-navigation ul.menu,
.main-navigation ul,
.main-navigation div > ul {
    display: flex !important;
    flex-direction: row !important; /* Force horizontal side-by-side */
    flex-wrap: nowrap !important;
    list-style: none !important;
    margin: 0;
    padding: 0;
    gap: 3rem !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

.site-header .main-navigation ul.menu li {
    display: block !important;
    white-space: nowrap !important;
}

.main-navigation li {
    display: block;
}

.main-navigation a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-text);
}

.menu-title-en {
    font-family: var(--font-en);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.menu-subtitle-jp {
    font-family: var(--font-jp);
    font-size: 0.6rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-btn-contact {
    background-color: var(--color-accent);
    color: #fff;
    padding: 10px 24px;
    font-family: var(--font-jp);
    font-size: 0.85rem;
    border-radius: 4px;
    transition: background 0.3s;
}
.header-btn-contact:hover {
    background-color: #ff859e;
    color: #ffffff !important;
    opacity: 1;
}

.header-socials {
    display: flex;
    gap: 10px;
}

.header-socials img {
    width: 32px;
    height: 32px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle .line {
    display: block;
    width: 25px;
    height: 1px;
    background: var(--color-text);
    margin-bottom: 6px;
    transition: 0.3s;
}

/* Responsive Header */
@media (max-width: 1024px) {
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .header-actions {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header-inner {
        padding: 10px 20px;
    }
}

/* Hero Slider */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    margin-top: 0;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Section Styles */

/* News Section */
.news-section .wp-block-query {
    margin-top: 40px;
}
.news-grid ul.wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
    list-style: none;
}
.news-item {
    display: flex;
    flex-direction: column;
}
.news-link {
    text-decoration: none;
    color: var(--color-text);
}
.news-link:hover .news-title {
    color: var(--color-accent);
}
.news-image-wrapper {
    border: 1px solid #ddd;
    margin-bottom: 15px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.news-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.news-link:hover .news-image {
    transform: scale(1.05);
}
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
}
.news-category a, .news-category span {
    background-color: #a3dae6; /* specific light blue */
    color: white;
    padding: 3px 18px;
    border-radius: 20px;
    font-weight: 500;
    text-decoration: none;
}
.news-date {
    color: #111;
    letter-spacing: 1px;
    font-family: var(--font-en);
}
.news-title a, .news-title {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 600;
    margin: 0;
    text-align: left;
    text-decoration: none;
    color: var(--color-text);
}
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .news-grid { grid-template-columns: 1fr; }
}
.section {
    padding: 100px 0;
    border-bottom: 1px solid var(--color-border);
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: 0.05em;
    font-family: var(--font-en);
}

.jp-title {
    font-family: var(--font-jp);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    display: block;
    margin-top: 8px;
}

/* Grid */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.work-item {
    text-align: center;
}

.work-image {
    width: 100%;
    aspect-ratio: 3/4;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
}

.work-item h3 {
    font-size: 1.25rem;
    margin: 0;
    font-family: var(--font-en);
}

/* Banners */
.about-banner {
    width: 100%;
    margin-bottom: 40px;
    background-size: cover;
    background-position: center;
}
/* Adjust Gutenberg Cover Block as Banner */
.wp-block-cover.about-banner {
    min-height: 400px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.about-content p {
    font-family: var(--font-jp);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Buttons */
.btn-more {
    margin-top: 20px;
    background: transparent;
}

.btn-more .wp-block-button__link {
    display: inline-block;
    padding: 10px 40px;
    border: 1px solid var(--color-text);
    border-radius: 30px; /* Force pill shape */
    font-family: var(--font-en);
    font-size: 1rem;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    color: var(--color-text) !important;
    background: transparent !important;
}

.btn-more .wp-block-button__link:hover {
    background: var(--color-text) !important;
    color: var(--color-bg) !important;
}

/* Footer */
.site-footer {
    padding: 60px 0 30px;
    text-align: center;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 30px;
    font-family: var(--font-en);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}
.copyright {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

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