/* Global Reset & Base Styles */
:root {
    --primary-color: #ffb7c5;
    /* Sakura Pink */
    --accent-color: #d4a5a5;
    /* Muted Pink */
    --bg-dark: #0a0e17;
    /* Deep Navy Space */
    --bg-card: #161b29;
    /* Card BG */
    --text-light: #f0f0f0;
    --text-muted: #a0a0a0;
    --gold: #d4af37;
    --gradient-main: linear-gradient(135deg, #ffb7c5 0%, #a480cf 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Utility Classes */
.desktop-only {
    display: block !important;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    /* Full Page Background */
    background: url('assets/sakura_production_hero_bg_1769561620278.png') no-repeat center center/cover;
    background-attachment: fixed;
    /* Parallax effect */
}

/* Add a global overlay to body to darken the image for text readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 23, 0.75);
    /* Dark overlay */
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0.95), rgba(10, 14, 23, 0));
    transition: background 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
    background: rgba(10, 14, 23, 0.95);
    padding: 1rem 5%;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.company-en {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-light);
}

.company-jp {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    opacity: 0.9;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.footer-logo-text .company-en {
    font-size: 1.8rem;
    margin: 0;
}

.footer-logo-text .company-jp {
    font-size: 1rem;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.text-sakura {
    color: var(--primary-color) !important;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-contact {
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.btn-contact:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

/* News Link */
.news-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('assets/sakura_production_hero_bg_1769561620278.png') no-repeat center center/cover;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0.3) 0%, rgba(10, 14, 23, 1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    font-family: 'Noto Serif JP', serif;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    opacity: 0.9;
    letter-spacing: 1px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--bg-dark);
    box-shadow: 0 5px 20px rgba(255, 183, 197, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    backdrop-filter: blur(5px);
}

.btn:hover {
    transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 25px;
        opacity: 0;
    }
}

/* About Section */
.about-section {
    padding: 8rem 0;
    background: var(--bg-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* .about-grid removed in V4 */

.about-main-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.about-main-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-main-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-bottom-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
}

@media (min-width: 769px) {
    .about-text {
        text-align: center;
    }
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    gap: 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.stat-item .count {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-item .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.visual-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.visual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 183, 197, 0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.visual-card i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.visual-card h3,
.visual-card p {
    position: relative;
    z-index: 1;
}

/* Services Section - Transparent/Glassy */
.services-section {
    padding: 6rem 0;
    background: rgba(10, 14, 23, 0.4);
    /* Slight darkening */
    backdrop-filter: blur(2px);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.header-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-main);
    margin: 1rem auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    /* Glassy */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    transition: transform 0.4s ease, border-color 0.3s;
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--primary-color);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

.service-card:hover .card-bg {
    transform: scale(1.1);
    opacity: 0.2;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center !important;
    /* Force centering of children */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center !important;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    text-align: center !important;
}

.service-card:hover p {
    opacity: 1;
    transform: translateY(0);
}

.read-more {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center !important;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.service-card:hover .read-more {
    opacity: 1;
    transform: translateY(0);
}

/* News Section - Transparent */
.news-section {
    padding: 6rem 0;
    background: transparent;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    text-align: center;
}

.view-all {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.view-all:hover {
    color: var(--primary-color);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary-color);
    transform: translateX(10px);
}

.news-item .date {
    font-family: 'Cinzel', serif;
    color: var(--text-muted);
    font-weight: 700;
    min-width: 100px;
    padding-top: 0.2rem;
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.news-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 4rem 0;
    background: #05070c;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo h2 {
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-family: 'Noto Serif JP', serif;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* Consultant Card */
.consultant-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.consultant-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.consultant-image {
    width: 100%;
    aspect-ratio: 1.2;
    background-color: #2a3145;
    /* Fallback color */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Blurred Background Layer */
.consultant-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    opacity: 0.6;
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Sharp Image Layer */
.consultant-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-position: var(--bg-pos, center);
    background-size: var(--bg-scale, cover);
    background-repeat: no-repeat;
    z-index: 2;
}

.consultant-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.consultant-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-family: 'Noto Serif JP', serif;
}

.consultant-specialty {
    display: inline-block;
    background: rgba(255, 183, 197, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.consultant-profile {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
    transition-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.visible {
    opacity: 1;
    transform: translate(0);
}

.desktop-only,
.pc-only {
    display: block !important;
}

.mobile-only,
.sp-only {
    display: none !important;
}

.desktop-inline {
    display: inline !important;
}

@media (max-width: 768px) {

    .desktop-only,
    .pc-only {
        display: none !important;
    }

    .mobile-only,
    .sp-only {
        display: block !important;
    }

    .desktop-inline {
        display: none !important;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        padding: 1rem 5%;
        background: rgba(10, 14, 23, 0.95);
    }

    .navbar {
        padding: 1rem 5%;
        background: rgba(10, 14, 23, 0.95);
    }

    /* Hamburger removed as per request */

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 14, 23, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.4s ease;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        padding: 0 1rem;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-btns {
        flex-direction: column;
        padding: 0 2rem;
    }

    .about-bottom-info {
        flex-direction: column;
        gap: 3rem;
    }

    .stats {
        gap: 3rem;
    }

    .stat-item {
        align-items: center;
        text-align: center;
    }

    .visual-card {
        padding: 2rem;
    }

    .news-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .news-item .date {
        margin-bottom: 0.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: center;
        /* Centered */
        gap: 1rem;
    }

    /* V3 Specific Mobile Adjustments */
    /* Removed logo overrides to match PC 2-line style */

    .about-main-text h2 {
        text-align: center;
        font-size: 1.4rem;
        /* Reduced to fit single line */
        white-space: nowrap;
    }

    .service-card h3 {
        font-size: 1.1rem;
        /* Smaller font for mobile to fit single line */
    }

    .about-text p {
        text-align: center;
    }

    .service-card h3 {
        font-size: 1.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
    }

    .news-content h3 {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .services-section .section-header h2,
    .news-section .section-header h2 {
        text-align: center;
        width: 100%;
    }

    /* Force Single Line for Company Name on Mobile */
    .company-en {
        white-space: nowrap;
        font-size: 0.85rem;
        /* Reduced to ensure fit */
    }

    .footer-logo-text .company-en {
        font-size: 1.0rem;
        /* Slightly larger for footer */
    }

    .consultant-profile {
        font-size: 0.8rem !important;
    }
}