/*
 * Apple-like Premium Motion Design
 * Clean, Cinematic, Smooth.
 */

:root {
    /* Apple Color System */
    --bg-color: #FAFAFA;
    /* Off-white, soft */
    --text-primary: #1D1D1F;
    /* Almost black */
    --text-secondary: #86868B;
    /* Apple Grey */
    --accent-color: #0066CC;
    /* Apple Link Blue */
    --surface-glass: rgba(255, 255, 255, 0.72);
    --border-color: rgba(0, 0, 0, 0.1);

    /* Typography (System Stack) */
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Animation Easing (Apple uses subtle ease-out) */
    --ease-apple: cubic-bezier(0.2, 0, 0.2, 1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-stack);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
    line-height: 1.4;
    overflow-x: hidden;
    /* Prevent horizontal scroll triggers */
    -webkit-text-size-adjust: 100%;
}

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

/* --- Layout --- */
.container {
    max-width: 1080px;
    /* Tighter Apple-like width for text */
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Typeography --- */
h1,
h2,
h3 {
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.015em;
    /* Tight tracking */
}

.hero-text {
    font-size: 80px;
    /* Huge */
    line-height: 1.05;
    font-weight: 600;
    background: linear-gradient(135deg, #1D1D1F 0%, #434344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.section-title {
    font-size: 48px;
    margin-bottom: 60px;
    text-align: center;
}

.intro-text {
    font-size: 28px;
    line-height: 1.4;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-weight: 500;
}

/* --- Header (Glass) --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    /* Compact */
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s;
}

.nav-links {
    display: flex;
    gap: 40px;
    font-size: 13px;
    font-weight: 400;
}

.nav-links a {
    color: var(--text-primary);
    /* Dark grey */
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* --- Hero Section --- */
.hero-section {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
    background-color: #FAFAFA;
}

/* Creative & Gentle Background (Aurora Blobs) */
.hero-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Base layer */
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Slightly less blur for definition */
    opacity: 0.6;
    /* Softer/Paler */
    mix-blend-mode: multiply;
    animation: blob-float 10s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: #C5CAE9;
    /* Indigo 100 - Pale */
    animation-duration: 12s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: #FFE0B2;
    /* Orange 100 - Pale */
    animation-duration: 15s;
    animation-direction: alternate-reverse;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 50vw;
    height: 50vw;
    background: #F8BBD0;
    /* Pink 100 - Pale */
    opacity: 0.5;
    animation-duration: 9s;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(120px, -100px) scale(1.2) rotate(15deg);
    }

    66% {
        transform: translate(-100px, 120px) scale(0.85) rotate(-10deg);
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
}

/* Texture Overlay */
.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Subtle SVG Noise Data URI */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.4'/%3E%3C/svg%3E");
    opacity: 0.03;
    /* Very subtle grain */
    z-index: 0;
    pointer-events: none;
}

/* Ensure text is above blobs */
.hero-section>.container {
    position: relative;
    z-index: 10;
}

.hero-eyebrow {
    color: #F56300;
    /* Orange accent */
    font-weight: 600;
    font-size: 21px;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

/* --- Bento Grid / Feature Section --- */
.features-section {
    padding: 120px 0;
    background: #fff;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 80px;
}

.bento-card {
    background: #F5F5F7;
    /* Apple card grey */
    padding: 60px 40px;
    border-radius: 30px;
    /* Large radius */
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    position: relative;
    transition: transform 0.5s var(--ease-apple);
    cursor: default;
}

.bento-card:hover {
    transform: scale(1.02);
}

.bento-card .card-title {
    font-size: 40px;
    margin-bottom: 16px;
}

.bento-card .card-desc {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.bento-card img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px 12px 0 0;
}

.grid-full {
    grid-column: span 2;
}

/* --- Scroll Animations (The "Creative Operation Feel") --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s var(--ease-apple), transform 1.2s var(--ease-apple);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay classes */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Scale Animation */
.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.5s var(--ease-apple), transform 1.5s var(--ease-apple);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* --- Footer --- */
.site-footer {
    background: #F5F5F7;
    padding: 60px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* --- Buttons --- */
.cta-button {
    background: #0071e3;
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    transition: background 0.2s;
}

.cta-button:hover {
    background: #0077ED;
}

/* Responsive */
/* --- Contact Modal --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Lighter dark overlay */
    backdrop-filter: blur(20px);
    /* Stronger blur for "creative" feel */
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s var(--ease-apple);
}

.modal-overlay.active {
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.85);
    /* Semi-transparent glass */
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    padding: 50px;
    border-radius: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s var(--ease-apple), opacity 0.4s var(--ease-apple);
    position: relative;
    opacity: 0;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.close-button {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-button:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.contact-form .form-group {
    margin-bottom: 28px;
    position: relative;
}

.contact-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s var(--ease-apple);
    box-sizing: border-box;
    color: #1d1d1f;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0071e3;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

/* --- Profile Section --- */
.profile-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
}

.profile-text {
    flex: 1;
    min-width: 300px;
}

.profile-image {
    flex: 1;
    min-width: 300px;
}

/* --- Google Events Footer --- */
.google-events-footer {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.event-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.event-desc {
    font-size: 12px;
    line-height: 1.5;
    color: #6e6e73;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .hero-text {
        font-size: 48px !important;
        /* Override inline style */
    }

    .intro-text {
        font-size: 18px !important;
    }

    .section-title {
        font-size: 36px !important;
        margin-bottom: 40px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
        gap: 32px;
    }

    .grid-full {
        grid-column: auto;
    }

    .bento-card {
        height: auto;
        min-height: auto;
        padding: 40px 24px;
    }

    .bento-card .card-title {
        font-size: 28px;
    }

    .bento-card .card-desc {
        font-size: 16px;
    }

    /* Profile Mobile */
    .profile-layout {
        gap: 40px;
        flex-direction: column-reverse;
        /* Image top or bottom? Let's keep text top for now, or standard flow */
        flex-direction: column;
    }

    .profile-image {
        width: 100%;
        min-width: 0;
    }

    .profile-text {
        width: 100%;
        min-width: 0;
    }

    /* Google Events Mobile */
    .google-events-footer {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        grid-template-columns: 1fr;
        margin-top: 40px;
        gap: 24px;
    }

    /* Modal Mobile */
    .modal-content {
        padding: 30px 24px;
        width: 85%;
    }

    .close-button {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
    }

    /* Hero Section Mobile Enhancements */
    .hero-section {
        height: 100vh;
        /* Full height on mobile for impact */
        padding-top: 80px;
        /* More space from header */
        justify-content: flex-start;
        /* Start content higher up */
    }

    /* Reverted text styles due to background-clip issue */
    .hero-text {
        font-size: 42px !important;
    }

    .intro-text {
        font-size: 16px !important;
        line-height: 1.8;
        font-weight: 500;
        margin-top: 24px !important;
        color: #424245;
    }

    /* Make blobs more visible on mobile */
    .blob {
        opacity: 0.8;
        /* Increase opacity */
        filter: blur(60px);
        /* Sharpen slightly */
    }

    .blob-1 {
        top: -10%;
        left: -20%;
        width: 90vw;
        height: 90vw;
    }

    .blob-2 {
        bottom: 10%;
        right: -20%;
        width: 80vw;
        height: 80vw;
    }

    .blob-3 {
        top: 30%;
        left: 20%;
        width: 70vw;
        height: 70vw;
        opacity: 0.6;
    }

    /* Fix Header Overflow on Mobile */
    .site-header {
        justify-content: flex-start;
        /* Allow content to flow from left */
        overflow-x: auto;
        /* Enable horizontal scroll */
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll on iOS */
    }

    .site-header .container {
        width: 100%;
        padding: 0 20px;
    }

    .nav-links {
        gap: 24px;
        /* Reduce gap slightly */
        padding-right: 20px;
        /* Ensure check for last item */
        flex-wrap: nowrap;
        /* Prevent wrapping */
        width: max-content;
        /* Allow container to grow beyond screen */
    }
}

/* --- Partner Concept Section --- */
.partner-section {
    padding: 120px 0;
    background: #fbfbfb;
    /* Slightly off-white to distinguish from prev section */
}

.partner-section h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.01em;
    color: #1d1d1f;
}

.partner-subtitle {
    font-size: 24px;
    color: #6e6e73;
    text-align: center;
    margin-bottom: 80px;
    font-weight: 400;
}

.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.concept-card {
    background: #fff;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: transform 0.3s ease;
}

.concept-card:hover {
    transform: translateY(-5px);
}

.concept-icon {
    font-size: 48px;
    color: #1d1d1f;
    margin-bottom: 24px;
    display: block;
}

.concept-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.concept-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #6e6e73;
}

.revenue-model {
    background: #fff;
    border-radius: 30px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.revenue-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.4;
    color: #1d1d1f;
}

.revenue-desc {
    font-size: 17px;
    line-height: 2;
    color: #424245;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .concept-grid {
        grid-template-columns: 1fr;
    }

    .partner-section h2 {
        font-size: 32px;
    }

    .partner-subtitle {
        font-size: 18px;
    }
}

/* --- Rich Content & Storytelling Sections --- */

/* Text Styles */
.rich-text-section h2 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 40px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

.rich-text-section h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1d1d1f;
}

.rich-text-section p {
    font-size: 18px;
    line-height: 2;
    color: #424245;
    margin-bottom: 32px;
    font-feature-settings: "palt";
}

.highlight-text {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 40px 0;
    line-height: 1.6;
}

/* Empathy Section */
.empathy-section {
    padding: 140px 0;
    background: #fff;
    text-align: center;
}

.empathy-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Value Section (Yutori & Yutaka) */
.value-section {
    padding: 120px 0;
    background: #f5f5f7;
}

.value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.value-card {
    background: #fff;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* Mechanism Section */
.mechanism-section {
    padding: 120px 0;
    background: #fff;
}

.mechanism-card {
    background: #fbfbfb;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 80px;
    padding: 60px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.mechanism-number {
    font-size: 14px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    display: block;
}

/* Vision Section */
.vision-section {
    position: relative;
    background: linear-gradient(-45deg, #000000, #2d2d2d, #1a1a1a, #000000);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    color: #fff;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

/* Enhanced "Spotlight" effect */
.vision-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    animation: rotateSpotlight 20s linear infinite;
    pointer-events: none;
    mix-blend-mode: screen;
}

.vision-section .container {
    position: relative;
    z-index: 1;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes rotateSpotlight {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.vision-section h2 {
    color: #fff;
}

.vision-section p {
    color: #a1a1a6;
}

/* Case Study Section */
.case-study-section {
    padding: 120px 0;
    background: #f5f5f7;
}

.case-study-hero {
    background: #fff;
    border-radius: 30px;
    padding: 80px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

/* Flow Section */
.flow-section {
    padding: 120px 0;
    background: #fff;
    border-top: 1px solid #eee;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.flow-number {
    font-size: 64px;
    font-weight: 700;
    color: #e0e0e0;
    line-height: 1;
    margin-right: 32px;
    min-width: 60px;
}

.flow-content {
    padding-top: 12px;
    font-size: 18px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .hero-text {
        font-size: 36px;
        line-height: 1.2;
        word-break: break-all;
        /* Ensure long Japanese text breaks */
    }

    .rich-text-section h2 {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .rich-text-section h3 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .rich-text-section p {
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 24px;
    }

    /* Empathy Section */
    .empathy-section {
        padding: 80px 0;
    }

    /* Value Section */
    .value-section {
        padding: 80px 0;
    }

    .value-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }

    .value-card {
        padding: 40px 30px;
    }

    /* Mechanism Section */
    .mechanism-section {
        padding: 80px 0;
    }

    .mechanism-card {
        padding: 40px 30px;
        margin-bottom: 40px;
    }

    .highlight-text {
        font-size: 20px;
        margin: 30px 0;
    }

    /* Vision Section */
    .vision-section {
        padding: 80px 0;
    }

    /* Case Study Section */
    .case-study-section {
        padding: 80px 0;
    }

    .case-study-hero {
        padding: 40px 30px;
    }

    /* Flow Section */
    .flow-section {
        padding: 80px 0;
    }

    .flow-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .flow-number {
        margin-right: 0;
        margin-bottom: 16px;
        font-size: 48px;
    }

    /* Partner Concept Section */
    .partner-section {
        padding: 80px 0;
    }

    .concept-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .revenue-model {
        padding: 40px 30px;
    }

    .revenue-title {
        font-size: 24px;
    }
}