
/* ===================================
   AURASTYLE HOMES - WORKS PAGE CSS
   =================================== */

/* === CSS VARIABLES === */
:root {
    --color-bg: #0a0a0a;
    --color-text: #e8e8e8;
    --color-accent: #c9b896;
    --color-muted: #666;
    --font-serif-en: 'Cormorant Garamond', serif;
    --font-serif-ja: 'Noto Serif JP', serif;
    --font-sans: 'Inter', sans-serif;
}

/* === BASE RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: clamp(14px, 1.2vw, 18px);
}

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

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

/* === HEADER === */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: clamp(1.5rem, 3vw, 3rem) clamp(2rem, 5vw, 5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), transparent);
    transition: background 0.3s;
}

header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
}


.logo  {
    font-family: var(--font-serif-en);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--color-text);
    text-decoration: none;
}

nav {
    display: flex;
    gap: clamp(2rem, 4vw, 4rem);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

nav a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--color-text);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}


.concept-hero {
    height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    animation: zoomIn 20s ease-out forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 10rem;
    padding-left: 4rem;
    max-width: 1200px;
}

.hero-title {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 0.08em;
    line-height: 1.4;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 0.5s forwards;
}

.hero-text {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 2;
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 1s forwards;
}

.hero-text p {
    margin-bottom: 1.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* === WORKS MAIN SECTION === */
.works-main {
    padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 5vw, 5rem);
    margin: 3rem;
    background: var(--color-bg);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(2rem, 3vw, 3rem);
    max-width: 1600px;
    margin: 0 auto;
}

/* === WORK CARD LAYOUTS === */
.work-card {
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInScale 0.8s ease-out forwards;
}

.work-card:nth-child(1) {
    grid-column: span 7;
    animation-delay: 0.1s;
}

.work-card:nth-child(2) {
    grid-column: span 5;
    animation-delay: 0.2s;
}

.work-card:nth-child(3) {
    grid-column: span 5;
    animation-delay: 0.3s;
}

.work-card:nth-child(4) {
    grid-column: span 7;
    animation-delay: 0.4s;
}

.work-card:nth-child(5) {
    grid-column: span 6;
    animation-delay: 0.5s;
}

.work-card:nth-child(6) {
    grid-column: span 6;
    animation-delay: 0.6s;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.work-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #111;
}

.work-card-large .work-image {
    aspect-ratio: 3/4;
}

.work-card-wide .work-image {
    aspect-ratio: 16/9;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) brightness(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover .work-image img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

/* === WORK INFO === */
.work-info {
    padding: clamp(2rem, 3vw, 3rem) clamp(1.5rem, 2vw, 2rem);
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(60%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(to bottom, transparent 0%, rgba(13, 13, 13, 0.9) 50%);
        padding: 2rem 1.5rem;
}

.work-card:hover .work-info {
    transform: translateY(0);
}

.work-number {
    font-family: var(--font-serif-en);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--color-accent);
    opacity: 0.6;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.work-title {
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
}

.work-card:hover .work-title {
    opacity: 1;
    transform: translateY(0);
}

.work-description {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.work-card:hover .work-description {
    opacity: 1;
    transform: translateY(0);
}

.work-meta {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--color-muted);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.work-card:hover .work-meta {
    opacity: 1;
}

/* === CTA SECTION === */

.cta-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding-top: 5rem;
    padding-bottom: 3rem;
}

.cta-heading {
    font-family: var(--font-serif-en);
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 14px;
    line-height: 2;
    color: var(--color-muted);
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: 1px solid var(--color-accent);
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 20px;
    letter-spacing: 0.15em;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-accent);
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: -1;
}

.cta-button:hover {
    color: var(--color-bg);
}

.cta-button:hover::before {
    transform: translateX(0);
}
.cta-text{
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}
/* .works-cta {
    padding: 100px 60px;
    background: linear-gradient(to bottom, var(--color-bg), #0d0d0d);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.cta-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-text {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 2;
    color: var(--color-muted);
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    border: 1px solid var(--color-accent);
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: transparent;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-accent);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.cta-button:hover {
    color: var(--color-bg);
    border-color: var(--color-accent);
}

.cta-button:hover::before {
    transform: translateX(0);
} */

/* === FOOTER === */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem clamp(2rem, 5vw, 5rem);
    background: #0a0a0a;
}

.footer-content {
    margin-bottom: 3rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 4vw, 4rem);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--color-accent);
}

.copyright {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--color-muted);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* === PAGE TOP BUTTON === */
.page-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border: 1px solid var(--color-accent);
    background: rgba(10, 10, 10, 0.9);
    color: var(--color-accent);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    backdrop-filter: blur(10px);
}

.page-top.is-active {
    opacity: 1;
    visibility: visible;
}

.page-top:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    transform: translateY(-3px);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    nav {
        display: none;
    }

    .work-card:nth-child(1),
    .work-card:nth-child(2),
    .work-card:nth-child(3),
    .work-card:nth-child(4),
    .work-card:nth-child(5),
    .work-card:nth-child(6) {
        grid-column: span 12;
    }

    /* モバイルでは番号のみ表示、タップで詳細表示 */
    .work-info {
        padding: 1.5rem;
        background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
        transform: translateY(0);
    }

    .work-number {
        font-size: 2rem;
        margin-bottom: 0;
    }

    .work-title {
        opacity: 0;
        transform: translateY(15px);
        margin-bottom: 0.8rem;
    }

    .work-description,
    .work-meta {
        opacity: 0;
        transform: translateY(10px);
    }

    /* タップ/クリック時の表示 */
    .work-card.active .work-info {
        background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 50%);
        padding: 2rem 1.5rem;
    }

    .work-card.active .work-title,
    .work-card.active .work-description,
    .work-card.active .work-meta {
        opacity: 1;
        transform: translateY(0);
    }

    .work-card.active .work-title {
        transition-delay: 0.05s;
        margin-bottom: 1rem;
    }

    .work-card.active .work-description {
        transition-delay: 0.1s;
    }

    .work-card.active .work-meta {
        transition-delay: 0.15s;
    }
}

@media (max-width: 768px) {
    .works-hero {
        padding: 8rem 1.5rem 6rem;
    }

    .works-main {
        padding: 3rem 1.5rem;
    }

    .works-grid {
        gap: 2rem;
    }

    .work-image {
        aspect-ratio: 3/4;
    }

    .works-cta {
        padding: 6rem 1.5rem;
    }

    .page-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .works-hero-text {
        font-size: 0.95rem;
    }

    .work-info {
        padding: 1.5rem 1rem;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}