/* =========================================
   Reset & Variables (Freelancer Theme)
========================================= */
:root {
    --color-text: #475569;
    --color-heading: #0f172a;
    --color-bg: #ffffff;
    --color-bg-light: #f8fafc;
    --color-primary: #1e40af; /* Navy Blue for trust */
    --color-primary-hover: #1e3a8a;
    --color-border: #e2e8f0;
    --color-white: #ffffff;
    
    /* Fonts: Clean sans-serif for professional look */
    --font-en: 'Inter', sans-serif;
    --font-ja: 'Noto Sans JP', sans-serif;
    
    --max-width: 1080px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-ja);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    letter-spacing: 0.04em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* English text classes */
.en {
    font-family: var(--font-en);
}

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

a:hover {
    opacity: 0.7;
}

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

ul {
    list-style: none;
}

/* Utility Classes */
.pc-only { display: block; }
.sp-only { display: none; }

@media screen and (max-width: 768px) {
    .pc-only { display: none; }
    .sp-only { display: block; }
}

/* =========================================
   Layout & Common
========================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 120px 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: var(--font-en);
    font-size: 2.8rem;
    color: var(--color-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 0.1em;
}

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

.fade-in.delay-1 { transition-delay: 0.2s; }
.fade-in.delay-2 { transition-delay: 0.4s; }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-large {
    padding: 20px 48px;
    font-size: 1.1rem;
    gap: 12px;
}

/* =========================================
   Header
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.global-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 30px;
    margin-right: 40px;
}

.nav-list a {
    font-family: var(--font-en);
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 500;
}

.nav-list a:hover {
    color: var(--color-primary);
}

.btn-header {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-header:hover {
    background-color: var(--color-primary-hover);
    opacity: 1;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1000;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-heading);
    left: 0;
    transition: 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.is-active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.is-active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-list {
    text-align: center;
}

.mobile-nav-list li {
    margin-bottom: 30px;
}

.mobile-nav-list a {
    font-family: var(--font-en);
    font-size: 1.5rem;
    color: var(--color-heading);
    font-weight: 600;
}

.btn-mobile {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    padding: 15px 40px;
    border-radius: 4px;
    font-size: 1.1rem !important;
    margin-top: 20px;
}

/* =========================================
   Hero
========================================= */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.hero-container {
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-label {
    display: inline-block;
    font-family: var(--font-en);
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    padding: 6px 16px;
    background-color: rgba(30, 64, 175, 0.1);
    border-radius: 50px;
}

.hero-catchphrase {
    font-size: 3.2rem;
    color: var(--color-heading);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 40px;
}

/* =========================================
   Service
========================================= */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-bg-light);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-title {
    font-size: 1.25rem;
    color: var(--color-heading);
    margin-bottom: 15px;
    font-weight: 700;
}

.service-desc {
    font-size: 0.95rem;
}

/* =========================================
   Works
========================================= */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.work-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
}

.work-img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.work-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-card:hover .work-img img {
    transform: scale(1.05);
}

.work-info {
    padding: 25px;
}

.work-category {
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.work-title {
    font-size: 1.1rem;
    color: var(--color-heading);
    font-weight: 600;
}

.works-note {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

/* =========================================
   Price
========================================= */
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.price-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 40px 30px;
    position: relative;
}

.price-card.popular {
    border: 2px solid var(--color-primary);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.08);
    transform: scale(1.02);
}

.price-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 16px;
    border-radius: 50px;
}

.price-name {
    font-size: 1.2rem;
    color: var(--color-heading);
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.price-amount {
    font-family: var(--font-en);
    font-size: 2.2rem;
    color: var(--color-heading);
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
}

.price-amount span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    margin-left: 5px;
}

.price-features li {
    font-size: 0.95rem;
    margin-bottom: 15px;
    padding-left: 24px;
    position: relative;
}

.price-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

/* =========================================
   Profile
========================================= */
.profile-content {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 900px;
    margin: 0 auto;
}

.profile-img {
    flex: 1;
}

.profile-img img {
    border-radius: 8px;
    box-shadow: 15px 15px 0 var(--color-border);
}

.profile-text {
    flex: 1.5;
}

.profile-name {
    font-size: 1.8rem;
    color: var(--color-heading);
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-name span {
    font-family: var(--font-en);
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-left: 10px;
}

.profile-title {
    font-family: var(--font-en);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 25px;
}

.profile-desc {
    margin-bottom: 30px;
}

.profile-skills {
    background: var(--color-white);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.profile-skills strong {
    font-family: var(--font-en);
    color: var(--color-heading);
    margin-right: 10px;
}

.profile-skills span {
    font-family: var(--font-en);
    font-size: 0.85rem;
    background-color: var(--color-bg-light);
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid var(--color-border);
}

/* =========================================
   Contact
========================================= */
.contact-box {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 80px 40px;
    border-radius: 16px;
}

.contact-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.contact-desc {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.contact-box .btn-primary {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.contact-box .btn-primary:hover {
    background-color: var(--color-bg-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* =========================================
   Footer
========================================= */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-en);
    font-size: 1.5rem;
    color: var(--color-heading);
    font-weight: 700;
    margin-bottom: 5px;
}

.footer-desc {
    font-size: 0.9rem;
}

.footer-sns {
    display: flex;
    gap: 15px;
}

.footer-sns a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-bg-light);
    color: var(--color-heading);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-sns a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    opacity: 1;
}

.copyright {
    font-family: var(--font-en);
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
}

/* =========================================
   Responsive (Tablet & Mobile)
========================================= */
@media screen and (max-width: 992px) {
    .service-grid, .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .price-card.popular {
        transform: scale(1);
    }

    .profile-content {
        gap: 50px;
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    /* Header */
    .global-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    /* Hero */
    .hero {
        padding-top: var(--header-height);
        align-items: flex-start;
    }

    .hero-bg {
        width: 100%;
        height: 50vh;
        top: auto;
        bottom: 0;
    }

    .hero-bg::after {
        background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0.7) 30%, rgba(255,255,255,0) 100%);
    }

    .hero-container {
        padding-top: 60px;
    }

    .hero-catchphrase {
        font-size: 2.2rem;
    }

    /* Service / Works */
    .service-grid, .works-grid {
        grid-template-columns: 1fr;
    }

    /* Profile */
    .profile-content {
        flex-direction: column;
    }

    .profile-img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Contact */
    .contact-box {
        padding: 50px 20px;
    }

    .contact-title {
        font-size: 1.6rem;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}
