/* 
 * 45creative.jp Renewal Styles
 * Inspired by STMN (Bold) & JXL (Minimal Grid)
 */

:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-accent: #333333;
    --color-gray: #f4f4f4;
    --color-border: #e0e0e0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --header-height: 80px;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.8;
    overflow-x: hidden;
}

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

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================
   Header
   ============================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    /* Ensure full height usage */
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.desktop-nav ul {
    display: flex;
    gap: 40px;
}

.desktop-nav a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Default hidden on desktop */
.mobile-menu {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1100;
}

.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    margin-bottom: 6px;
    transition: 0.3s;
}

/* ============================
   Hero Section (STMN Style)
   ============================ */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: #fcfcfc;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 8rem);
    /* Responsive Giant Text */
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
    color: var(--color-text);
}

.hero-title .line {
    display: block;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background-color: var(--color-text);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ============================
   Sections Common (JXL Style)
   ============================ */
.section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 80px;
    border-bottom: 1px solid var(--color-text);
    /* Bold line */
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #999;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

/* ============================
   About / Grid Layout
   ============================ */
.grid-content {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.grid-item {
    grid-column: 4 / 11;
    /* Center focused */
}

.lead-text {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.6;
}

/* ============================
   Services / List Layout
   ============================ */
.service-list {
    border-top: 1px solid var(--color-border);
}

.service-item {
    display: flex;
    align-items: flex-start;
    padding: 40px 0;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s;
}

.service-item:hover {
    background-color: #fafafa;
}

.service-num {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ccc;
    width: 60px;
}

.service-name {
    font-family: var(--font-heading);
    /* Or body font if Japanese title */
    font-size: 2rem;
    font-weight: 700;
    flex: 1;
}

.service-desc {
    width: 40%;
    font-size: 1rem;
    color: #666;
}

/* ============================
   Portfolio / Grid Layout
   ============================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    display: block;
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 30px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--color-text);
    opacity: 1;
    /* Override default link generic hover */
}

/* For non-link items (div) */
div.portfolio-item {
    cursor: default;
}

div.portfolio-item:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--color-border);
}

.portfolio-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.portfolio-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* ============================
   Contact Form
   ============================ */
.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 40px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1rem;
}

.required {
    color: #ff4444;
    margin-left: 5px;
    font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    font-size: 1.1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-text);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 40px;
    background-color: var(--color-text);
    color: #fff;
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #000;
}

/* ============================
   Animations (Fade In Up)
   ============================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-100 {
    transition-delay: 0.1s;
}

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

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

/* ============================
   Footer
   ============================ */
.site-footer {
    background: var(--color-text);
    color: #fff;
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 900;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ============================
   Mobile Responsive
   ============================ */
@media (max-width: 900px) {
    .container {
        padding: 0 20px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .grid-item {
        grid-column: 1 / -1;
    }

    .service-item {
        flex-direction: column;
        gap: 10px;
    }

    .service-desc {
        width: 100%;
    }

    .lead-text {
        font-size: 1.5rem;
    }

    /* Portfolio Mobile */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobile Menu */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 1050;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .mobile-menu.active {
        transform: translateY(0);
    }

    .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 3rem;
        line-height: 1;
        cursor: pointer;
        color: var(--color-text);
        padding: 10px;
        z-index: 1060;
    }

    .mobile-menu ul {
        text-align: center;
    }

    .mobile-menu a {
        display: block;
        font-family: var(--font-heading);
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 30px;
        color: var(--color-text);
    }

    /* Mobile Menu Toggle (3 bars) */
    .menu-toggle {
        display: block;
    }

    .menu-toggle .bar {
        position: relative;
        z-index: 1101;
        /* Ensure bars are above menu */
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Portfolio Filter */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 10px 25px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: #999;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-text);
    color: #fff;
    border-color: var(--color-text);
}

.portfolio-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: #eee;
    margin-bottom: 15px;
    display: block;
}

.portfolio-item.hidden {
    display: none;
}