/*
Theme Name: Liberty Rask
Theme URI: https://libertyrask.co.jp/
Author: Liberty Rask
Description: 株式会社リバティラスク オリジナルテーマ (Bento Box Layout)
Version: 1.6.0
*/

/* Base Styles & Custom Properties */
:root {
    --bg-color: #0f1610;
    /* Very dark grayish green */
    --text-main: #e8efe9;
    /* Off-white with a hint of green */
    --text-sub: #a1b5a5;
    --brand-green: #2ecc71;
    /* Vibrant, lively green */
    --brand-green-dark: #27ae60;
    --box-bg: rgba(255, 255, 255, 0.03);
    /* Subtle glassmorphism */
    --box-border: rgba(255, 255, 255, 0.08);
    --box-hover-bg: rgba(255, 255, 255, 0.08);
    --box-hover-border: rgba(46, 204, 113, 0.5);
    /* Brand green glow on hover */

    --gap: 20px;
    --border-radius: 24px;
    --transition-speed: 0.3s;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Hero Section */
.hero-header {
    width: 100%;
    height: 60vh;
    /* Takes up upper portion of screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #0a0e0b 0%, #152017 100%);
    border-bottom: 1px solid var(--box-border);
    padding: 0 20px;
    box-sizing: border-box;
}

/* A modern subtle background pattern/glow for the header */
.hero-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.15) 0%, rgba(15, 22, 16, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-header .header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-header h1.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: var(--brand-green);
}

.hero-header h2.catchphrase {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 20px 0;
    background: linear-gradient(90deg, #fff, var(--text-sub));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-header p.sub-catchphrase {
    font-size: 1.2rem;
    color: var(--text-sub);
    margin: 0;
}

/* Bento Box Grid Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 60px auto 100px auto;
    padding: 0 2%;
    box-sizing: border-box;
    flex: 1;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: var(--gap);
}

/* Box Base Styles */
.bento-box {
    background-color: var(--box-bg);
    box-shadow: inset 0 0 0 1px var(--box-border);
    /* Replace border with inset shadow */
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Text sits at bottom by default */
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.bento-box:hover {
    transform: translateY(-5px) scale(1.01);
    background-color: var(--box-hover-bg);
    box-shadow: inset 0 0 0 1px var(--box-hover-border), 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(46, 204, 113, 0.1);
}

/* Interactive Arrow */
.bento-box::after {
    content: '→';
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
    opacity: 0;
    transform: translateX(-10px);
}

.bento-box:hover::after {
    opacity: 1;
    transform: translateX(0);
    background: var(--brand-green);
    color: #fff;
}

/* Content Styling inside Boxes */
.box-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--brand-green);
    margin-bottom: 10px;
    font-weight: 700;
}

.box-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.box-desc {
    font-size: 1rem;
    color: var(--text-sub);
    margin: 15px 0 0 0;
    display: none;
    /* Hidden by default, shown on hover or specific boxes */
}

.bento-box:hover .box-desc {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Specific Box Sizes & Placements (4 Col Grid) */

/* News: Top spanning full width */
.box-news {
    grid-column: span 4;
    min-height: 120px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: linear-gradient(to right, rgba(15, 22, 16, 0.9) 0%, rgba(15, 22, 16, 0.4) 100%), url('https://placehold.co/1400x200/2ecc71/0f1610?text=News+Banner') center right/cover no-repeat;
}

.box-news .box-title {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 20px;
}

.box-news .date {
    font-size: 0.9rem;
    color: var(--brand-green);
}

.box-news::after {
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    right: 40px;
}

.box-news:hover::after {
    transform: translateY(-50%) translateX(0);
}

/* Latest Release (Main Focus): Large, Takes 2 cols, 2 rows */
.box-latest {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(to top, rgba(15, 22, 16, 0.95) 0%, rgba(15, 22, 16, 0.3) 100%), url('https://placehold.co/800x800/1e8449/fff?text=Latest+Game+Art') center/cover no-repeat;
    /* In production, replace placeholder with actual game art */
}

.box-latest .box-title {
    font-size: 2.5rem;
}

/* Games & Books: Medium vertical */
.box-games {
    grid-column: span 1;
    grid-row: span 2;
    background: linear-gradient(to top, rgba(15, 22, 16, 0.95) 0%, rgba(15, 22, 16, 0.4) 100%), url('https://placehold.co/400x800/27ae60/fff?text=Games+List') center/cover no-repeat;
}

.box-books {
    grid-column: span 1;
    grid-row: span 2;
    background: linear-gradient(to top, rgba(15, 22, 16, 0.95) 0%, rgba(15, 22, 16, 0.4) 100%), url('https://placehold.co/400x800/229954/fff?text=Books+Collection') center/cover no-repeat;
}

/* Rusk (PR Character): Spans 2 cols */
.box-character {
    grid-column: span 2;
    background: linear-gradient(to right, rgba(15, 22, 16, 0.95) 0%, rgba(15, 22, 16, 0.4) 100%), url('https://placehold.co/800x400/8e44ad/fff?text=Rusk+Character') center right/cover no-repeat;
    justify-content: center;
}

/* About & Scenario: Small wide boxes */
.box-about {
    grid-column: span 1;
    background: linear-gradient(to top, rgba(15, 22, 16, 0.9) 0%, rgba(15, 22, 16, 0.5) 100%), url('https://placehold.co/400x400/2c3e50/fff?text=Office') center/cover no-repeat;
}

.box-scenario {
    grid-column: span 1;
    background: linear-gradient(to top, rgba(15, 22, 16, 0.9) 0%, rgba(15, 22, 16, 0.5) 100%), url('https://placehold.co/400x400/34495e/fff?text=Scenario') center/cover no-repeat;
}

/* Contact: Bottom spanning full width */
.box-contact {
    grid-column: span 4;
    min-height: 150px;
    background: linear-gradient(to top, rgba(15, 22, 16, 0.9) 0%, rgba(46, 204, 113, 0.1) 100%), url('https://placehold.co/1400x300/17202a/2ecc71?text=Contact+Background') center/cover no-repeat;
    /* Slight green tint over image */
    border: 1px dashed var(--brand-green);
    align-items: center;
    justify-content: center;
    text-align: center;
}

.box-contact .box-title {
    color: var(--brand-green);
}

.box-contact::after {
    display: none;
}

/* No arrow for contact, maybe an envelope icon later */

/* Site Footer */
.site-footer {
    width: 100%;
    background-color: var(--bg-color);
    border-top: 1px solid var(--box-border);
    padding: 40px 20px;
    box-sizing: border-box;
    text-align: center;
    margin-top: auto;
    /* Pushes footer to bottom if content is short */
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-sub);
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--brand-green);
}

.footer-links .separator {
    color: var(--box-border);
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .box-news,
    .box-latest,
    .box-character,
    .box-contact {
        grid-column: span 2;
    }

    .box-games,
    .box-books {
        grid-column: span 1;
        grid-row: span 1;
        /* Make them smaller on tablet */
    }

    .hero-header .catchphrase {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-box {
        grid-column: span 1 !important;
        /* Everything takes full width */
        grid-row: span 1 !important;
        min-height: 250px;
    }

    .box-news {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hero-header .catchphrase {
        font-size: 1.8rem;
    }

    .hero-header {
        height: 50vh;
    }
}