/* =========================================================================
   Variables & Reset
   ========================================================================= */
:root {
    --primary-color: #0B5C2D;
    --primary-dark: #073D1E;
    --primary-light: #168644;
    --accent-color: #DCA816;
    --accent-hover: #F2BD29;
    --bg-white: #FFFFFF;
    --bg-gray: #F7FAFC;
    --text-main: #2D3748;
    --text-light: #718096;
    --border-color: #E2E8F0;
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(11, 92, 45, 0.08);
    --hover-shadow: 0 20px 40px 0 rgba(11, 92, 45, 0.15);
    --gold-glow: 0 0 20px rgba(220, 168, 22, 0.4);
    
    --font-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
    --font-en: 'Inter', 'Outfit', 'Helvetica Neue', Arial, sans-serif;
    
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);

    /* Z-index Management */
    --z-bg: -1;
    --z-base: 1;
    --z-content: 10;
    --z-header: 100;
    --z-overlay: 900;
    --z-modal: 1000;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
    a:hover {
        color: var(--accent-color);
    }
}

ul {
    list-style: none;
}

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

/* =========================================================================
   Typography & Utilities
   ========================================================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: var(--bg-white) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-20 { margin-top: 20px; }

/* Animation Delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Sections */
.section {
    padding: 100px 20px;
    position: relative;
    background-color: var(--bg-white);
}

@media (min-width: 768px) {
    .section {
        padding: 160px 40px;
    }
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: var(--z-content);
}

.section-title-wrapper {
    margin-bottom: 60px;
    text-align: center;
}

.section-title-en {
    font-family: var(--font-en);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-ja);
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 10px 20px rgba(11, 92, 45, 0.2);
    position: relative;
    overflow: hidden;
    z-index: var(--z-base);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    z-index: -1;
    transition: var(--transition-fast);
    opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        color: var(--bg-white);
        transform: translateY(-3px);
        box-shadow: var(--gold-glow);
    }
    .btn:hover::before {
        opacity: 1;
    }
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    box-shadow: 0 10px 20px rgba(220, 168, 22, 0.2);
}
.btn-accent::before {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.btn-white {
    background: var(--bg-white);
    color: var(--primary-color);
}
.btn-white::before {
    background: var(--bg-gray);
}
@media (hover: hover) and (pointer: fine) {
    .btn-white:hover {
        color: var(--primary-dark);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
}

/* =========================================================================
   Layout: Header & Navigation
   ========================================================================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: var(--z-header);
    transition: var(--transition-fast);
    background-color: transparent;
    padding: 20px 0;
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
    box-shadow: var(--glass-shadow);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 40px;
    transition: var(--transition-fast);
}

.header.scrolled .logo img {
    max-height: 50px;
}

@media (min-width: 768px) {
    .logo img { max-height: 50px; }
    .header.scrolled .logo img { max-height: 60px; }
}

/* Mobile Menu Button */
.hamburger-menu {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: var(--z-modal);
}

.hamburger-menu span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    left: 0;
    transition: var(--transition-fast);
}

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

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

/* Global Navigation */
@media (max-width: 991px) {
    .global-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: var(--z-overlay);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-fast);
    }

    .global-nav.active {
        opacity: 1;
        pointer-events: auto;
    }

    .global-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .global-nav a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-color);
    }
    .global-nav .btn-contact {
        margin-top: 20px;
        font-size: 1.2rem;
        background: var(--primary-color);
        color: var(--bg-white);
        padding: 16px 40px;
        border-radius: 50px;
    }
}

@media (min-width: 992px) {
    .hamburger-menu {
        display: none;
    }
    .global-nav {
        display: block;
    }
    .global-nav ul {
        display: flex;
        align-items: center;
        gap: 40px;
    }
    .global-nav a {
        color: var(--primary-color);
        font-weight: 700;
        font-size: 0.95rem;
        position: relative;
    }
    
    .global-nav a:not(.btn-contact)::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -6px;
        left: 0;
        background-color: var(--accent-color);
        transition: var(--transition-fast);
    }
    
    @media (hover: hover) and (pointer: fine) {
        .global-nav a:not(.btn-contact):hover::after {
            width: 100%;
        }
    }
    
    .global-nav .btn-contact {
        background: var(--primary-color);
        color: var(--bg-white);
        padding: 12px 28px;
        border-radius: 50px;
        transition: var(--transition-fast);
        box-shadow: 0 4px 14px rgba(11, 92, 45, 0.2);
    }
    
    @media (hover: hover) and (pointer: fine) {
        .global-nav .btn-contact:hover {
            background: var(--accent-color);
            transform: translateY(-2px);
            box-shadow: var(--gold-glow);
        }
    }
}

/* =========================================================================
   Layout: Premium Hero
   ========================================================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-gray);
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: var(--z-bg);
    background: linear-gradient(135deg, rgba(247, 250, 252, 1) 0%, rgba(226, 232, 240, 1) 100%);
}

.hero-shapes {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: var(--z-bg);
    overflow: hidden;
}

.hero-shape-1, .hero-shape-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.hero-shape-1 {
    width: 600px; height: 600px;
    background: var(--accent-color);
    top: -200px; right: -100px;
}

.hero-shape-2 {
    width: 800px; height: 800px;
    background: var(--primary-color);
    bottom: -300px; left: -200px;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 50px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: var(--z-content);
    text-align: center;
    max-width: 1000px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(11, 92, 45, 0.1);
    border: 1px solid rgba(11, 92, 45, 0.2);
    border-radius: 50px;
    color: var(--primary-color);
    font-family: var(--font-en);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 32px;
    letter-spacing: 0.05em;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
    .hero-title { font-size: 4.5rem; }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .hero-subtitle { font-size: 1.4rem; }
}

/* =========================================================================
   Components: Premium Cards (Services)
   ========================================================================= */
.services-section {
    background-color: var(--bg-gray);
    position: relative;
    overflow: hidden;
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20vw;
    font-family: var(--font-en);
    font-weight: 900;
    color: rgba(11, 92, 45, 0.03);
    z-index: var(--z-bg);
    pointer-events: none;
    white-space: nowrap;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
    z-index: var(--z-base);
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-slow);
}

@media (hover: hover) and (pointer: fine) {
    .glass-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--hover-shadow);
        border-color: rgba(11, 92, 45, 0.2);
    }
    .glass-card:hover::before { transform: scaleX(1); }
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(11, 92, 45, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
    .glass-card:hover .card-icon {
        background: var(--primary-color);
        color: var(--accent-color);
        transform: scale(1.1) rotate(-5deg);
    }
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.card-text {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    flex-grow: 1;
}

.card-link {
    font-weight: 700;
    font-family: var(--font-en);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card-link span {
    display: inline-block;
    margin-left: 8px;
    transition: var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
    .glass-card:hover .card-link { color: var(--accent-color); }
    .glass-card:hover .card-link span { transform: translateX(5px); }
}

/* =========================================================================
   Layout: Split Section (Company Intro)
   ========================================================================= */
.about-section {
    padding: 160px 20px;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

@media (min-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 100px;
    }
}

.image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--hover-shadow);
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(11, 92, 45, 0.4), transparent);
}

.image-placeholder {
    width: 100%;
    height: 500px;
    background-color: #CBD5E0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-weight: bold;
}

.info-box {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    z-index: var(--z-content);
    border-left: 4px solid var(--accent-color);
}
.info-box-year {
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 0;
}
.info-box-text {
    color: var(--text-main);
    font-weight: bold;
    margin: 0;
}

@media (max-width: 991px) {
    .info-box { display: none; }
}

.split-text h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
    line-height: 1.4;
}

.split-text p {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* =========================================================================
   Banner Section (Recruit)
   ========================================================================= */
.banner-section {
    padding: 120px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 50%; height: 100%;
    background: radial-gradient(circle, rgba(220, 168, 22, 0.15) 0%, transparent 70%);
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: var(--z-base);
}

.banner-content h2 {
    font-size: 3rem;
    color: var(--bg-white);
    margin-bottom: 24px;
}

.banner-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* =========================================================================
   Animations & Fallbacks
   ========================================================================= */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* JS disabled fallback */
noscript .fade-up {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   Layout: Footer
   ========================================================================= */
.footer {
    background-color: var(--text-main);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 20px 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

@media (min-width: 768px) {
    .footer-inner { grid-template-columns: 1fr 2fr; }
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}

.footer-info p {
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.footer-tel {
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-top: 16px;
}

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

@media (min-width: 768px) {
    .footer-links { grid-template-columns: repeat(3, 1fr); }
}

.footer-nav h4 {
    color: var(--bg-white);
    font-weight: 700;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-nav ul li { margin-bottom: 12px; }
.footer-nav a { color: rgba(255, 255, 255, 0.6); }

@media (hover: hover) and (pointer: fine) {
    .footer-nav a:hover { color: var(--accent-color); }
}

.footer-copyright {
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
}

/* =========================================================================
   Page Specific Styles (Append to existing style.css)
   ========================================================================= */
/* Utility Classes */
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.mb-80 { margin-bottom: 80px; }
.mb-160 { margin-bottom: 160px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.display-block { display: block; }
.w-100 { width: 100%; }
.max-w-400 { max-width: 400px; margin: 0 auto; }
.max-w-600 { max-width: 600px; margin: 0 auto; }
.max-w-800 { max-width: 800px; margin: 0 auto; }
.max-w-900 { max-width: 900px; margin: 0 auto; }

/* Page Header */
.page-header {
    padding-top: 160px;
    background: linear-gradient(to bottom, #E2E8F0, var(--bg-white));
    padding-bottom: 0;
}
.page-header-desc {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Data Tables */
.premium-table-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--glass-shadow);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th, .data-table td {
    padding: 24px 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    transition: var(--transition-fast);
}
.data-table tr:last-child th, .data-table tr:last-child td {
    border-bottom: none;
}
@media (hover: hover) and (pointer: fine) {
    .data-table tr:hover th, .data-table tr:hover td {
        background-color: rgba(220, 168, 22, 0.05);
    }
}
.data-table th {
    width: 30%; font-weight: 700; color: var(--primary-color);
    font-size: 1.1rem; vertical-align: top;
}
.data-table td {
    color: var(--text-main); font-size: 1.05rem; line-height: 1.8;
}
.table-highlight { font-weight: bold; font-size: 1.2rem; }
.table-en { font-family: var(--font-en); font-weight: 700; color: var(--primary-color); }
.table-note { font-size: 0.9rem; color: var(--text-light); display: block; margin-top: 4px; }

@media (max-width: 767px) {
    .premium-table-wrapper { padding: 24px; }
    .data-table th, .data-table td { display: block; width: 100%; padding: 16px 8px; }
    .data-table th { padding-bottom: 4px; border-bottom: none; }
    .data-table td { padding-top: 0; }
}

/* Map Placeholder */
.map-placeholder {
    background-color: var(--bg-white); border: 1px solid var(--border-color);
    border-radius: 12px; height: 150px; display: flex; align-items: center;
    justify-content: center; color: var(--text-light); margin-top: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

/* Greeting Box */
.greeting-box {
    position: relative; padding: 60px; border-radius: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white); box-shadow: var(--hover-shadow); overflow: hidden;
}
.greeting-box::before {
    content: '"'; position: absolute; top: 20px; left: 40px; font-size: 120px;
    font-family: var(--font-en); font-weight: 900; color: rgba(220, 168, 22, 0.2);
    line-height: 1; pointer-events: none;
}
.greeting-box h3 { color: var(--accent-color); font-size: 1.8rem; margin-bottom: 32px; position: relative; z-index: var(--z-base); }
.greeting-box p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; line-height: 2; margin-bottom: 24px; position: relative; z-index: var(--z-base); }
.greeting-sign { text-align: right; margin-top: 40px; margin-bottom: 0; font-size: 1.2rem; font-weight: 700; color: var(--accent-color); }

/* Forms & Contact Panel */
.contact-info-panel {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white); padding: 60px 40px; border-radius: 24px; text-align: center;
    box-shadow: var(--hover-shadow); position: relative; overflow: hidden;
}
.contact-info-panel::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(220, 168, 22, 0.1) 0%, transparent 60%); pointer-events: none;
}
.contact-tel-label { color: rgba(255,255,255,0.8); font-weight: bold; letter-spacing: 0.1em; }
.contact-tel-number {
    font-family: var(--font-en); font-size: 3rem; font-weight: 700; color: var(--accent-color);
    margin: 16px 0; display: block; letter-spacing: 0.05em;
}
@media (max-width: 767px) { .contact-tel-number { font-size: 2.2rem; } }
.contact-tel-time { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

.premium-form-wrapper {
    background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); border-radius: 24px; padding: 60px 40px; box-shadow: var(--glass-shadow);
}
@media (max-width: 767px) { .premium-form-wrapper { padding: 40px 24px; } }
.form-group { margin-bottom: 32px; position: relative; }
.form-label { display: block; font-weight: 700; color: var(--text-main); margin-bottom: 12px; font-size: 0.95rem; }
.form-required { color: var(--accent-color); font-size: 0.8rem; margin-left: 8px; font-weight: bold; letter-spacing: 0.05em; }
.form-control {
    width: 100%; padding: 16px; border: none; border-bottom: 2px solid var(--border-color);
    background-color: transparent; font-family: inherit; font-size: 1rem; color: var(--text-main); transition: var(--transition-fast);
}
select.form-control { background-color: var(--bg-white); border: 2px solid var(--border-color); border-radius: 8px; }
textarea.form-control { min-height: 180px; resize: vertical; border: 2px solid var(--border-color); border-radius: 8px; background-color: var(--bg-white); }
.form-control:focus { outline: none; border-bottom-color: var(--primary-color); background-color: rgba(255, 255, 255, 0.5); }
select.form-control:focus, textarea.form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(11, 92, 45, 0.1); }
.form-control-bar { position: relative; display: block; width: 100%; }
.form-control-bar::before {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--accent-color); transition: width var(--transition-fast);
}
.form-control:focus + .form-control-bar::before { width: 100%; }
textarea.form-control + .form-control-bar { display: none; }
.form-control.is-invalid { border-color: #e53e3e; }
.form-control.is-invalid + .form-control-bar::before { background: #e53e3e; width: 100%; }
.form-policy-text { color: var(--text-light); font-size: 0.9rem; margin-bottom: 24px; }
.form-policy-link { color: var(--primary-color); font-weight: bold; border-bottom: 1px solid var(--primary-color); }

/* Privacy Policy */
.privacy-wrapper {
    background-color: var(--bg-white); border-radius: 20px; padding: 60px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); border-top: 6px solid var(--primary-color);
}
@media (min-width: 768px) { .privacy-wrapper { padding: 80px 60px; } }
.privacy-lead { font-size: 1.1rem; color: var(--text-main); margin-bottom: 60px; line-height: 1.8; }
.privacy-section { margin-bottom: 48px; }
.privacy-section h2 { font-size: 1.3rem; color: var(--primary-color); margin-bottom: 20px; display: flex; align-items: center; }
.privacy-section h2::before {
    content: ''; display: inline-block; width: 4px; height: 20px;
    background-color: var(--accent-color); margin-right: 12px; border-radius: 2px;
}
.privacy-section p { color: var(--text-light); margin-bottom: 16px; line-height: 1.8; }
.privacy-section ul { list-style: none; padding-left: 0; margin-bottom: 16px; }
.privacy-section ul li { position: relative; padding-left: 20px; margin-bottom: 12px; color: var(--text-light); }
.privacy-section ul li::before { content: '•'; color: var(--accent-color); position: absolute; left: 0; top: 0; }
.contact-desk { background-color: var(--bg-gray); padding: 32px; border-radius: 12px; border-left: 4px solid var(--primary-color); margin-top: 60px; }
.contact-desk h3 { font-size: 1.2rem; color: var(--text-main); margin-bottom: 16px; }
.contact-desk-address { color: var(--text-main); font-weight: bold; margin-bottom: 0; margin-top: 16px; }
.contact-desk-tel { font-family: var(--font-en); font-size: 1.2rem; color: var(--primary-color); }

/* Service Layout Additions */
.service-subtitle { color: var(--primary-light); font-size: 1.2rem; margin-bottom: 24px; }
.service-detail-card { padding: 30px; margin-top: 32px; border-left: 4px solid var(--accent-color); }
.service-detail-title { color: var(--primary-color); font-weight: bold; margin-bottom: 16px; font-size: 1.1rem; }
.check-list { color: var(--text-main); list-style: none; padding-left: 0; }
.check-list li { position: relative; padding-left: 24px; margin-bottom: 12px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 2px; color: var(--accent-color); font-weight: bold; }
.order-1 { order: 1; }
.order-2 { order: 2; }
.info-box-left { bottom: 40px; left: -40px; right: auto; border-left: none; border-right: 4px solid var(--accent-color); }

/* Recruit Additions */
.recruit-intro { text-align: center; margin-bottom: 80px; }
.recruit-intro h2 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 32px; font-weight: 900; }
@media (max-width: 767px) { .recruit-intro h2 { font-size: 1.8rem; } }
.recruit-badge { background: rgba(220, 168, 22, 0.1); border-color: rgba(220, 168, 22, 0.3); color: var(--accent-hover); }
.recruit-card { padding: 60px 40px; border-top: 4px solid var(--accent-color); }
.recruit-card h4 { color: var(--primary-color); font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.bullet-list { list-style: none; padding-left: 0; margin: 0; }
.bullet-list li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.bullet-list li::before { content: '•'; color: var(--accent-color); font-size: 1.5rem; position: absolute; left: 0; top: -6px; }
.text-accent-bold { color: var(--accent-hover); font-weight: bold; }

/* =========================================================================
   Hero Background Shapes (右上の薄い色などの復元)
   ========================================================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-gray);
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, rgba(247, 250, 252, 1) 0%, rgba(226, 232, 240, 1) 100%);
}

.hero-shapes {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    overflow: hidden;
}

.hero-shape-1, .hero-shape-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

/* 右上の薄いゴールド */
.hero-shape-1 {
    width: 600px; height: 600px;
    background: var(--accent-color);
    top: -200px; right: -100px;
}

/* 左下の薄いグリーン */
.hero-shape-2 {
    width: 800px; height: 800px;
    background: var(--primary-color);
    bottom: -300px; left: -200px;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 50px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    padding: 0 20px;
}

/* =========================================================================
   Mobile Layout & Spacing Optimization (スマホ・タブレット版レイアウト最適化)
   ========================================================================= */
@media (max-width: 1024px) {
    /* カードがフッターまで無限に伸びるバグを強制解除 */
    .glass-card,
    .service-detail-card {
        height: auto !important;
    }

    /* 主な業務内容カードの内外の余白を最適化 */
    .service-detail-card {
        padding: 20px 16px !important;
        margin-top: 24px !important;
    }

    /* 画像ダミー枠を縮小 */
    .image-placeholder {
        height: 240px !important;
    }

    /* セクション間やテキスト間の異常な空白をカット */
    .mb-160 {
        margin-bottom: 60px !important;
    }
    .split-layout {
        gap: 32px !important;
    }
}

/* =========================================================================
   Mobile Typography Optimization (スマホ版フォントサイズ最適化)
   ========================================================================= */
@media (max-width: 767px) {
    /* サイト全体のベースフォントサイズを縮小（約10%減） */
    html {
        font-size: 90% !important;
    }
    
    /* 圧迫感を生む巨大な見出し群をスマホサイズに強制縮小 */
    .hero-title {
        font-size: 2.2rem !important;
        margin-bottom: 24px !important;
    }
    .section-title {
        font-size: 1.8rem !important;
    }
    .split-text h3 {
        font-size: 1.6rem !important;
    }
    .banner-content h2 {
        font-size: 1.8rem !important;
    }
    .card-title {
        font-size: 1.3rem !important;
    }
    .contact-tel-number {
        font-size: 2rem !important;
    }
    
    /* 本文の行間を少し広げて可読性を担保 */
    body {
        line-height: 1.9 !important;
    }
}

/* =========================================================================
   Mobile Button Optimization (スマホ版ボタンの改行防止とUI改善)
   ========================================================================= */
@media (max-width: 767px) {
    /* 1. ボタン内のテキスト改行を強制禁止し、スマホ用の余白に縮小 */
    .btn {
        white-space: nowrap !important; /* 絶対に改行させない */
        padding: 14px 24px !important; /* 左右の巨大な余白を削る */
        width: 100% !important; /* タップしやすいよう横幅を広げる */
        max-width: 320px !important; /* ただし広がりすぎないよう制限 */
        margin: 0 auto !important; /* 中央寄せ */
    }

    /* 2. 複数のボタンが並ぶエリアを「縦並び」に強制変更 */
    .btn-group {
        flex-direction: column !important; /* 横並びを縦並びに変更 */
        align-items: center !important;
        gap: 16px !important; /* ボタン間の隙間をスマホ向けに最適化 */
    }
}

/* =========================================================================
   Mobile UI/UX Critical Fixes (本番公開に向けた致命的欠陥の修正)
   ========================================================================= */


@media (max-width: 767px) {
    /* 2. 実態のない「画像のダミー枠」をスマホ表示から完全に抹消 */
    /* ※写真を用意するまでは非表示にし、無駄な空白による離脱を防ぐ */
    .image-placeholder {
        display: none !important;
    }

    /* 画像枠を消したことによるレイアウトの隙間を自動調整 */
    .split-layout {
        gap: 0 !important;
    }
    .split-text {
        margin-top: 0 !important;
    }
    
    /* 3. お問い合わせページの「空の黄色い箱」を隠す（または余白調整） */
    /* ※もし電話番号パネルとして機能していないなら非表示にする */
    .contact-info-panel:empty {
        display: none !important;
    }

}

/* スマホ閲覧時のみ改行させる制御クラス */
.sp-br { display: none; }
@media (max-width: 767px) { .sp-br { display: block !important; } }