:root {
    /* Color Palette - extracted from design_analysis.md */
    --color-bg-body: #FAF9F6;
    /* Cream White */
    --color-text-main: #004D40;
    /* Deep Teal */
    --color-text-muted: #5A706C;
    /* Muted Green-Gray for secondary text */

    --color-primary-start: #36A9A3;
    /* Teal Gradient Start */
    --color-primary-end: #0AA39F;
    /* Teal Gradient End */

    --color-accent-yellow: #F9D94A;
    /* Sunshine Yellow */
    --color-accent-mint: #B2E4D5;
    /* Mint */
    --color-yellow-main: #FDD835;
    --color-yellow-light: #FFF9C4;

    --color-white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary-start) 0%, var(--color-primary-end) 100%);

    /* Typography */
    /* Using system fonts + Google Fonts equivalents if loaded later */
    --font-sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

    /* Spacing & Sizing */
    --sp-xs: 0.5rem;
    /* 8px */
    --sp-sm: 1rem;
    /* 16px */
    --sp-md: 1.5rem;
    /* 24px */
    --sp-lg: 2.5rem;
    /* 40px */
    --sp-xl: 4rem;
    /* 64px */
    --sp-xxl: 6rem;
    /* 96px */

    --container-max-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 77, 64, 0.05);
    --shadow-md: 0 8px 20px rgba(0, 77, 64, 0.1);
    --transition-default: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-default);
}

ul {
    list-style: none;
}

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

/* Container */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

.text-bold {
    font-weight: 700;
}

.text-gradient {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-default);
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    opacity: 0.95;
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-primary-end);
    border: 2px solid var(--color-primary-end);
}

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

/* Section Utilities */
.section {
    padding: var(--sp-xxl) 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: var(--sp-xl);
    text-align: center;
    position: relative;
    letter-spacing: 0.05em;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: var(--sp-sm) auto 0;
    border-radius: 2px;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sp-lg);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: 0.05em;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--color-primary-end);
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* Nav Menu (Desktop) */
.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-main);
    padding: 5px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary-end);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-end);
    transition: width 0.3s;
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: 0.3s ease-in-out;
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 11px;
}

.mobile-menu-btn span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-btn.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

/* Footer (Standardized based on Profile) */
.footer {
    background: #2C3E50;
    color: #fff;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .logo-main {
    color: rgba(255, 255, 255, 0.9);
}

.footer-logo .logo-sub {
    color: var(--color-primary-end);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 300px;
}

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

.footer-social a {
    color: #fff;
    font-size: 1.2rem;
    opacity: 0.8;
}

.footer-social a:hover {
    opacity: 1;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.footer-links,
.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-legal {
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a,
.footer-legal a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none !important;
    border-bottom: none !important;
    position: relative;
    display: inline-block;
    width: fit-content;
    transition: color 0.3s;
    opacity: 1;
}

.footer-links a::after,
.footer-legal a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-yellow-main);
    transition: width 0.3s ease-in-out;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: #fff;
}

.footer-links a:hover::after,
.footer-legal a:hover::after {
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-legal {
        flex-direction: row;
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        padding: 80px 40px;
        transition: 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* 
   Global Component Styles 
   Migrated from services.html for reuse on Top Page
*/

/* 3 Styles Cards */
.style-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.style-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

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

/* Header: 01 Name */
.style-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--color-teal-dark);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    border-bottom: 2px solid var(--color-accent-mint);
    padding-bottom: 10px;
}

.style-num {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 2.4rem;
    color: var(--color-teal-main);
    line-height: 1;
    opacity: 0.8;
}

/* Subtitle */
.style-sub {
    font-size: 1.1rem;
    color: var(--color-teal-dark);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

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

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

    .style-card {
        text-align: center;
        align-items: center;
    }

    .style-header {
        justify-content: center;
    }
}