@charset "UTF-8";

/* Variables */
:root {
    /* Color Palette - Analysis Based */
    --color-bg: #FFFEFA; /* Warm off-white */
    --color-text: #1E1F3B; /* Deep Navy/Charcoal */
    --color-text-light: #5A5B70; /* Muted Navy Gray */
    --color-accent: #1E1F3B; /* Primary Accent is the same deep navy */
    --color-accent-light: #3D3E5C;
    --color-border: #E6E5E0;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-serif: 'Zen Old Mincho', serif;
    --font-en: 'Outfit', sans-serif;
    
    /* Animation */
    --easing: cubic-bezier(0.22, 1, 0.36, 1);
    --transition: 0.6s var(--easing);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-jp);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 2;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition);
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1280px; /* Increased base max-width */
    margin: 0 auto;
    padding: 0 40px; 
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1520px; /* Significantly wider for large monitors */
        padding: 0 60px;
    }
}

.text-center { text-align: center; }

/* Section Spacing: "Quiet" means lots of space */
.section {
    padding: clamp(100px, 12vw, 200px) 0; /* Slightly increased max padding */
}

/* Section Header: English First Strategy */
.section__header {
    margin-bottom: clamp(60px, 8vw, 120px);
}

.section__label {
    display: block;
    font-family: var(--font-en);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.section__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 4rem); /* Increased scale for large screens */
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    border-radius: 0; /* Sharp corners for professional look */
    transition: all var(--transition);
    font-family: var(--font-en);
    text-transform: uppercase;
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.btn--primary:hover {
    background-color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 31, 59, 0.15);
}

.btn--text {
    padding: 0;
    font-weight: 600;
    color: var(--color-accent);
    border-bottom: 1px solid currentColor;
    font-family: var(--font-en);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: rgba(255, 254, 250, 0.9); /* Matching bg color */
    backdrop-filter: blur(8px);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.header__logo a {
    font-family: var(--font-en);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

.header__nav { display: none; }
.header__cta-group { display: none; }

@media (min-width: 1025px) {
    .header__nav {
        display: block;
        margin-left: auto;
        margin-right: 60px;
    }

    .header__list {
        display: flex;
        gap: 40px;
    }

    .header__item a {
        font-family: var(--font-en);
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--color-text);
        letter-spacing: 0.05em;
    }

    .header__cta-group {
        display: flex;
        gap: 0; /* Connected buttons style or close */
    }
    
    .header__cta {
        font-size: 0.8rem;
        padding: 0.8rem 1.5rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .header__cta--doc {
        background-color: transparent;
        border: 1px solid var(--color-border);
        border-right: none;
    }
    
    .header__cta--contact {
        background-color: var(--color-accent);
        color: var(--color-white);
        border: 1px solid var(--color-accent);
    }
    
    .header__cta--contact:hover {
        background-color: var(--color-accent-light);
    }
}

/* Hamburger */
.header__hamburger {
    display: block;
    position: relative;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

@media (min-width: 1025px) { .header__hamburger { display: none; } }

.header__hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-text);
    transition: var(--transition);
}

.header__hamburger span:nth-child(1) { top: 0; }
.header__hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.header__hamburger span:nth-child(3) { bottom: 0; }
.header__hamburger.is-active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.header__hamburger.is-active span:nth-child(2) { opacity: 0; }
.header__hamburger.is-active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 1050;
    padding: 40px; /* Reduced top padding as flex handles centering */
    transform: translateY(-100%);
    transition: transform 0.6s var(--easing);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.mobile-menu.is-active { transform: translateY(0); }
.mobile-menu__list { text-align: center; }
.mobile-menu__list li { margin-bottom: 30px; }
.mobile-menu__list a { font-size: 1.5rem; font-family: var(--font-en); font-weight: 500; }

/* Hero: Redesigned based on Trail Inc (Text Top, Image Bottom) */
.hero {
    position: relative;
    padding-top: 180px; /* Space for fixed header + breathing room */
    padding-bottom: 100px;
    min-height: 100vh;
}

.hero__container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.hero__text-area {
    max-width: 900px;
}

.hero__sub {
    font-family: var(--font-en);
    font-size: 1rem;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    color: var(--color-text-light);
}

.hero__copy {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.hero__lead {
    font-size: 1.1rem;
    line-height: 2.2;
    margin-bottom: 4rem;
    color: var(--color-text-light);
    max-width: 500px;
}

.hero__visual {
    width: 100%;
    height: clamp(300px, 50vh, 600px);
    position: relative;
    overflow: hidden;
}

.hero__img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.5s var(--easing);
}

.hero__visual:hover .hero__img {
    transform: scale(1.05); /* Very subtle zoom */
}

/* About */
.about__container {
    display: grid;
    gap: 80px;
}

@media (min-width: 1024px) {
    .about__container {
        grid-template-columns: 1fr 1fr;
        align-items: flex-start; /* Align top for better reading */
    }
}

.about__text {
    padding-top: 40px; /* Offset text slightly */
}

.about__lead {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 500;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.about__desc {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
}

/* Business Card (Clean Minimalist) */
.business__grid {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
    background: transparent; /* Remove card bg for cleaner look */
    padding: 0;
    border: none;
    box-shadow: none;
    border-top: 1px solid var(--color-border);
    padding-top: 40px;
    transition: border-color var(--transition);
}

.card:hover {
    border-color: var(--color-text);
}

.card__head { margin-bottom: 20px; }
.card__num {
    display: block;
    font-family: var(--font-en);
    font-size: 0.9rem;
    margin-bottom: 16px;
    color: var(--color-text-light);
}

.card__title {
    font-family: var(--font-en);
    font-size: 1.75rem;
    color: var(--color-text);
    line-height: 1.2;
}

.card__desc {
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* Case Study: Category Navigation (Cards) + List */
.case__categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

@media (min-width: 768px) {
    .case__categories {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

.cat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 1 / 1; /* Square cards */
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 24px;
    transition: all var(--transition);
}

.cat-card:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.cat-card:hover .cat-card__en, 
.cat-card:hover .cat-card__num,
.cat-card:hover .cat-card__jp {
    color: var(--color-white);
}

.cat-card__num {
    font-family: var(--font-en);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.cat-card__en {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 500;
}

.cat-card__jp {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 8px;
}

/* Case List - Minimalist Row Style */
.case__list {
    display: flex;
    flex-direction: column;
}

.case__item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0;
    border-bottom: 1px solid var(--color-border);
    transition: opacity var(--transition);
}

@media (min-width: 768px) {
    .case__item {
        grid-template-columns: 320px 1fr;
        gap: 60px;
        align-items: flex-start;
    }
}

.case__item:hover {
    opacity: 0.6; /* Fade interaction for image/link */
}

.case__img .img-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background-color: #EEE;
}

.case__info {
    padding-top: 10px;
}

.case__tags {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.case__tag {
    font-family: var(--font-en);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
    padding: 4px 12px;
}

.case__head {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.case__lead {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* Clients: Subtle Marquee */
.clients {
    padding: 120px 0;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.clients__marquee {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); /* Fade edges */
}

.clients__track {
    display: inline-flex;
    animation: marquee 60s linear infinite; /* Slower speed */
    align-items: center; /* Center items */
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 40px;
}

.logo-placeholder {
    width: 140px;
    height: auto;
    opacity: 0.4;
    transition: opacity var(--transition);
}
.logo-placeholder:hover { opacity: 0.8; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* Members - Grid */
.members__grid {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.member-card__img .img-placeholder {
    filter: grayscale(100%); /* Force B&W for team */
    transition: filter var(--transition);
}
.member-card:hover .member-card__img .img-placeholder { filter: grayscale(0%); }

/* Contact */


/* Background Deco removed */

.contact__container { 
    max-width: 800px;
    margin: 0 auto; 
    /* reverted relative positioning */
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 60px;
    /* Removed glassmorphism styles */
}

@media (max-width: 768px) {
    .contact__form {
        gap: 24px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Badge Style Reverted */
.badge-required {
    font-size: 0.75rem;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: 2px 8px;
    font-weight: 500;
}

/* Form inputs Reverted */
.contact__form input[type="text"],
.contact__form input[type="email"],
.contact__form select,
.contact__form textarea {
    background-color: var(--color-white);
    border-radius: 0;
    border: 1px solid var(--color-border);
    padding: 16px;
    font-size: 1rem;
    width: 100%;
    font-family: inherit;
}

.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.select-wrap {
    position: relative;
    width: 100%;
}

.contact__form select {
    appearance: none;
    /* Removed custom SVG arrow */
}

.form-submit {
    margin-top: 40px;
    text-align: center;
}

.btn--submit {
    min-width: 240px;
}

/* Footer */
.footer {
    background-color: var(--color-text);
    padding: 100px 0;
}

/* Animations (Generic) */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--easing), transform 1s var(--easing);
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Placeholder Styles */
.img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    background-image: repeating-linear-gradient(45deg, #f0f0f0, #f0f0f0 10px, #e9e9e9 10px, #e9e9e9 20px);
    border: 2px dashed #999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
}

.img-placeholder span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: normal;
}

/* Ensure Hero Image block is visible even if image fails to load */
.hero__img {
    background-color: #e0e0e0;
}

/* =========================================
   Design Density & Decoration
   ========================================= */

/* Global Floating Lines */
.global-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10; /* Lower z-index to avoid blocking clicks */
    overflow: hidden;
}

/* Section Group Decoration (News + Column) */
.section-group--decorated {
    position: relative;
    padding: 80px 0;
    background-color: var(--color-bg);
}

.section-group__bg {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background-image: url('../images/news_bg_texture.jpeg'); /* Updated filename and extension */
    background-size: cover;
    background-position: center;
    opacity: 0.15; 
    filter: grayscale(100%);
    z-index: 0;
}

.bg-glass {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    padding: 30px;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 4px;
}

/* Company Section Density */
.company__container {
    display: grid;
    gap: 60px;
}

@media (min-width: 900px) {
    .company__container {
        grid-template-columns: 1fr 0.8fr; /* Info takes more space, visual takes less */
        align-items: center;
    }
}

.company__visual {
    position: relative;
    height: 400px;
}

.company__visual-deco {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-border);
    opacity: 0.5;
    z-index: -1;
}

.company__values {
    background-color: var(--color-bg-light);
    padding: 60px;
    margin-top: 80px;
    border-top: 1px solid var(--color-border);
}

.values-grid {
    display: grid;
    gap: 40px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.value-item strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-family: var(--font-en);
    color: var(--color-accent);
}

.line {
    position: absolute;
    background-color: var(--color-border);
    opacity: 0.6;
    display: none; /* Hidden by default on mobile */
}

@media (min-width: 1025px) {
    .line {
        display: block; /* Show only on screens wider than 1024px (Desktop/Laptop) */
    }
}

.line--vertical-left {
    width: 1px;
    height: 100%;
    left: 8%;
    top: 0;
}

.line--vertical-right {
    width: 1px;
    height: 100%;
    right: 8%;
    top: 0;
}

.line--diagonal {
    width: 150%;
    height: 1px;
    left: -25%;
    top: 50%;
    transform: rotate(-35deg);
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
    opacity: 0.4;
}

/* Background Typography (Kanji) */
[data-bg-text] {
    position: relative;
    overflow: hidden;
}

[data-bg-text]::before {
    content: attr(data-bg-text);
    position: absolute;
    bottom: -10%;
    right: -5%;
    font-size: clamp(100px, 15vw, 180px);
    font-family: var(--font-serif);
    color: var(--color-text);
    opacity: 0.03; /* Very subtle */
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    transition: transform 0.6s var(--easing);
}

[data-bg-text]:hover::before {
    transform: scale(1.1) rotate(5deg);
    opacity: 0.05;
}

/* Ensure content sits above bg text */
.card__head, .card__desc, .card__meta, 
.cat-card__num, .cat-card__en, .cat-card__jp {
    position: relative;
    z-index: 1;
}

/* Hero Section Enhancements */
.hero__text-area {
    position: relative;
}

.hero__deco-text {
    position: absolute;
    font-family: var(--font-en);
    font-size: 0.75rem;
    color: var(--color-text-light);
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.hero__deco-text--top {
    top: -20px;
    left: 0;
}

.hero__deco-text--bottom {
    bottom: -30px;
    right: -10px;
    writing-mode: vertical-rl;
    font-size: 0.7rem;
}

.hero__visual {
    position: relative;
    /* Provide space for frame */
}

/* Frame Effect */
.hero__frame {
    position: absolute;
    top: 15px; /* Offset */
    left: 15px; /* Offset */
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-text);
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

.hero__img {
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(30, 31, 59, 0.05); /* Subtle shadow */
}

/* About Image Deco */
.about__img {
    position: relative;
}

.about__img-deco {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.about__img-deco::after {
    content: "Since\A 2018";
    white-space: pre;
    font-family: var(--font-en);
    font-size: 0.65rem;
    line-height: 1.4;
    text-align: center;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
}

/* Clients Marquee Dividers */
.client-logo {
    position: relative;
    padding: 0 50px; /* Squeeze slightly */
}

.client-logo::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 15px;
    background-color: var(--color-border);
    opacity: 0.5;
}

/* Case Study Staggered Layout (Desktop) */
@media (min-width: 768px) {
    .case__categories {
        align-items: start;
        grid-template-columns: repeat(4, 1fr);
    }
    .cat-card:nth-child(2),
    .cat-card:nth-child(4) {
        margin-top: 40px; /* Stagger effect */
    }
}

/* =========================================
   Sub-Page Styles
   ========================================= */

/* 1. Page Header */
.page-header {
    padding: 180px 0 80px;
    background-color: var(--color-bg);
    position: relative;
    overflow: hidden;
}

/* Abstract Background for Header (Optional) */
.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(230,230,230,0.4) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.page-header__inner {
    position: relative;
    z-index: 1;
}

.page-header__en {
    display: block;
    font-family: var(--font-en);
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.page-header__jp {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.2;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0 60px;
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-family: var(--font-en);
}

.breadcrumbs a {
    text-decoration: none;
    color: var(--color-text-light);
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--color-accent);
}

.breadcrumbs span {
    margin: 0 10px;
    opacity: 0.5;
}

/* 2. Service Page Styles */
.service-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.service-nav a {
    padding: 10px 20px;
    border: 1px solid var(--color-border);
    font-size: 0.9rem;
    font-family: var(--font-en);
    display: block;
    width: fit-content;
}

.service-nav a:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.service-section {
    padding: 100px 0;
    position: relative;
}

.service-section:nth-child(even) .service-split {
    flex-direction: row-reverse;
}

.service-split {
    display: flex;
    align-items: center;
    gap: 60px;
}

.service-img {
    flex: 1;
    height: 400px;
    position: relative;
    border-radius: 4px; /* subtle radius */
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-content {
    flex: 1;
}

.service-num {
    font-family: var(--font-en);
    font-size: 3rem;
    color: var(--color-border);
    line-height: 1;
    display: block;
    margin-bottom: 20px;
}

.service-title {
    font-size: 2rem;
    font-family: var(--font-serif);
    margin-bottom: 20px;
}

.service-desc {
    color: var(--color-text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.service-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--color-text);
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .service-split {
        flex-direction: column !important; /* Force stack on mobile */
        gap: 40px;
    }
    .service-img {
        width: 100%;
        height: 250px;
    }
}

/* Process Flow */
.process-flow {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    position: relative;
    flex-wrap: wrap;
    gap: 20px;
}

.process-step {
    flex: 1;
    min-width: 140px;
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.process-step__num {
    display: block;
    font-family: var(--font-en);
    color: var(--color-accent);
    font-weight: bold;
    margin-bottom: 10px;
}

.process-step__title {
    font-family: var(--font-jp);
    font-weight: bold;
    font-size: 1.1rem;
}

/* 3. Works Grid */
.works-filter {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    border: none;
    background: none;
    font-family: var(--font-en);
    font-size: 1rem;
    cursor: pointer;
    color: var(--color-text-light);
    padding-bottom: 5px;
    position: relative;
}

.filter-btn.active, .filter-btn:hover {
    color: var(--color-accent);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-accent);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.work-card {
    display: block;
}

.work-card__thumb {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #f0f0f0;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}

.work-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-card:hover .work-card__thumb img {
    transform: scale(1.05);
}

.work-card__cat {
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.work-card__title {
    font-family: var(--font-jp);
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 12px;
}

.work-card__result {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: bold;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
    margin-top: 10px;
    display: inline-block;
}

/* 4. Company Styles */
.company-message {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 100px;
}

.ceo-portrait {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 40px auto;
    display: block;
    border-radius: 4px;
}

.table-simple {
    width: 100%;
    border-collapse: collapse;
}

.table-simple th, .table-simple td {
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.table-simple th {
    width: 30%;
    font-weight: normal;
    color: var(--color-text-light);
}

@media (max-width: 768px) {
    .table-simple th, .table-simple td {
        display: block;
        width: 100%;
        padding: 12px 0;
    }
    .table-simple th {
        border-bottom: none;
        padding-bottom: 0;
        font-size: 0.9rem;
    }
}

/* 5. News List */
.news-list {
    border-top: 1px solid var(--color-border);
}

.news-item {
    display: flex;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s;
}

.news-item:hover {
    background-color: rgba(0,0,0,0.02);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 250px;
    flex-shrink: 0;
}

.news-date {
    font-family: var(--font-en);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.news-cat {
    font-size: 0.75rem;
    padding: 4px 10px;
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    text-transform: uppercase;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .news-meta {
        width: 100%;
    }
}

/* 6. Contact Page Specifics (Minimal Additions) */
.contact-page-note {
    text-align: center;
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}
