/* Page Header (Sub-Page Hero) */
.page-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    padding: 180px 0 60px;
    text-align: center;
    color: var(--white);
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: url('assets/pattern.svg') repeat; Optional pattern */
    opacity: 0.1;
}

.page-header .page-title {
    font-family: var(--font-en);
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.page-header .page-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0.9;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

/* Company Profile Table */
.company-profile {
    position: relative;
}

.profile-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.profile-table tr:last-child {
    border-bottom: none;
}

.profile-table th {
    background: #fafafa;
    padding: 25px 30px;
    text-align: left;
    font-weight: 700;
    color: var(--text-muted);
    width: 30%;
    vertical-align: top;
    font-size: 1rem;
}

.profile-table td {
    padding: 25px 30px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Responsive Table */
@media (max-width: 768px) {
    .page-header .page-title {
        font-size: 2.5rem;
    }

    .profile-table th,
    .profile-table td {
        display: block;
        width: 100%;
    }

    .profile-table th {
        background: transparent;
        padding-bottom: 5px;
        color: var(--primary);
    }

    .profile-table td {
        padding-top: 5px;
    }
}

/* Services Page Styles */
.service-list-section {
    padding-bottom: 80px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.service-item {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon-box {
    width: 70px;
    height: 70px;
    background: var(--gradient-main);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--white);
    flex-shrink: 0;
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

.service-desc {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.service-cta {
    padding-bottom: 80px;
}

.service-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}

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

    .service-item {
        padding: 30px;
    }
}

/* Service Layout Update */
.service-list-section .container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    max-width: 1300px;
}

/* Sidebar Navigation */
.service-tabs {
    flex-direction: column;
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
    background: transparent;
    padding: 0;
    gap: 10px;
    border-right: 1px solid #f0f0f0;
    padding-right: 20px;
    margin-bottom: 0;
}

.service-tab {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: none;
    position: relative;
    padding-left: 30px;
    text-decoration: none;
}

.service-tab::before {
    content: '\f061';
    /* FontAwesome arrow right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    opacity: 0;
    transition: 0.3s;
    color: var(--primary);
}

.service-tab:hover,
.service-tab.active {
    background: transparent;
    color: var(--primary);
    transform: translateX(5px);
    font-weight: 700;
    box-shadow: none;
    border: none;
}

.service-tab:hover::before,
.service-tab.active::before {
    opacity: 1;
    left: 5px;
    color: var(--primary);
}

/* Service Content Area */
.service-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

/* Service Item - Horizontal Layout */
.service-item {
    display: flex;
    flex-direction: row;
    /* Text Left, Image Right */
    align-items: flex-start;
    gap: 50px;
    padding: 60px 0;
    background: transparent;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #333;
    border-radius: 0;
    scroll-margin-top: 100px;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item:hover {
    transform: none;
    box-shadow: none;
}

.service-item-content-wrapper {
    flex: 1;
}

.service-item-image {
    width: 45%;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: #f8fafc;
    aspect-ratio: 16/9;
}

/* Specific aspect ratio for square images */
#service-sns .service-item-image,
#service-line .service-item-image {
    aspect-ratio: 1 / 1;
    max-width: 400px;
    /* Restrict width so it doesn't get too huge vertically */
    margin: 0 auto;
    /* Center if restricted */
}

/* Specific styling for poster/flyer images (side by side) */
#service-poster .service-item-image {
    aspect-ratio: auto;
    background: transparent;
    box-shadow: none;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

#service-poster .service-item-image img {
    width: 48%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Specific styling for game images (vertical stack) */
#service-game .service-item-image {
    aspect-ratio: auto;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

#service-game .service-item-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-item:hover .service-item-image img {
    transform: scale(1.05);
}

/* Typography updates for new layout */
.service-subtitle {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 2.0rem;
    margin-bottom: 30px;
    background: #111;
    color: #fff;
    display: inline-block;
    padding: 8px 24px;
    transform: skewX(-10deg);
}

.service-item h3 span {
    display: inline-block;
    transform: skewX(10deg);
}

.service-desc {
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.service-desc a {
    color: #0066cc;
    text-decoration: underline;
}

.service-desc a:hover {
    color: #004499;
}

/* List inside service (optional) */
.service-detail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.service-tag {
    background: #f1f5f9;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hide Icon Box in new layout if not needed, or restyle */
.service-icon-box {
    display: none;
}

/* Responsive */
@media (max-width: 900px) {
    .service-list-section .container {
        flex-direction: column;
        gap: 40px;
    }

    .service-tabs {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        position: static;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 0px;
        white-space: nowrap;
        gap: 10px;
    }

    .service-tab {
        width: auto;
        padding: 8px 16px;
        background: #f8fafc;
        border-radius: 30px;
        padding-left: 16px;
        /* Reset padding */
    }

    .service-tab::before {
        display: none;
    }

    .service-tab.active {
        background: var(--primary);
        color: var(--white);
    }

    .service-item {
        flex-direction: column-reverse;
        gap: 30px;
        padding: 40px 0;
    }

    .service-item-image {
        width: 100%;
    }

    .service-item h3 {
        font-size: 1.5rem;
    }
}