/*
Theme Name: Sproject
Theme URI: 
Author: 
Author URI: 
Description: Sproject Original WordPress Theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: site0003
*/

@charset "UTF-8";

/* 
  Sproject - Light Premium Japanese Aesthetic
*/

/* Custom Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.fade-in {
    opacity: 0;
    transition: opacity 1.5s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
}

/* Hero Main Copy - staggered character reveal */
.hero-copy {
    display: inline-block;
}

.hero-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: calc(var(--i) * 45ms);
    white-space: pre;
}

.hero-copy.is-visible .hero-char {
    opacity: 1;
    transform: translateY(0);
}

/* Typography & Vertical Text (Japanese Premium Feel) */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.3em;
    font-family: 'Noto Serif JP', serif;
}

.font-mincho {
    font-family: 'Noto Serif JP', serif;
}

/* Section Titles */
h2.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #1e3250; /* Navy Blue */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: #d84b8f; /* Pink Accent */
    margin-top: 1.5rem;
}

h2.section-title span.subtitle {
    display: block;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.15em;
    margin-top: 1rem;
    text-transform: none;
}

h2.section-title.text-white::after {
    background-color: #d84b8f;
}

/* Left-aligned variant (the base rule outranks Tailwind's .items-start) */
h2.section-title.items-start {
    align-items: flex-start;
}

@media (max-width: 767px) {
    h2.section-title {
        margin-bottom: 3rem;
    }
}

/* Premium Image Placeholder for img folder usage */
.premium-img-wrapper {
    position: relative;
    overflow: hidden;
    background: #f0f4f8; /* Light gray-blue placeholder background */
}

.premium-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (hover: hover) {
    .premium-img-wrapper:hover img {
        transform: scale(1.05);
    }
}

/* Placeholder specifically */
.img-placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    position: relative;
}

.img-placeholder::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(30,50,80,0.05);
}

/* Cards & Elements Hover */
.premium-card {
    transition: all 0.5s ease;
    border: 1px solid transparent;
}

/* Hover lift only on pointer devices, so a tap on a phone doesn't leave a card stuck raised */
@media (hover: hover) {
    .premium-card:hover {
        border-color: rgba(216, 75, 143, 0.2); /* Pink tint */
        background-color: #ffffff;
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(30,50,80,0.06);
    }
}

/* Respect the OS "reduce motion" setting: show content without animating it in */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up,
    .fade-in,
    .hero-char {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Custom Scrollbar for Elegance */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc; 
}
::-webkit-scrollbar-thumb {
    background: #1e3250; 
}
::-webkit-scrollbar-thumb:hover {
    background: #d84b8f; 
}
