@charset "UTF-8";

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    /* Colors - Trustworthy BtoB Palette */
    --color-primary: #003366;
    /* Navy Blue - Trust, Professionalism */
    --color-secondary: #4a5568;
    /* Dark Gray - Logic, Neutrality */
    --color-accent: #c53030;
    /* Muted Red - Attention (used sparingly) */
    --color-text: #333333;
    --color-text-light: #718096;
    --color-background: #ffffff;
    --color-background-gray: #f7fafc;
    --color-border: #e2e8f0;
    --color-white: #ffffff;

    /* Spacing */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 2rem;
    /* 32px */
    --spacing-lg: 3rem;
    /* 48px */
    --spacing-xl: 5rem;
    /* 80px */

    /* Typography */
    --font-family-base: "Noto Sans JP", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    --font-family-serif: "Noto Serif JP", "Times New Roman", "YuMincho", "Hiragino Mincho ProN", serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Breakpoints (Min-width) */
    --bp-tablet: 768px;
    --bp-desktop: 1024px;
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    opacity: 0.8;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

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

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.sp-only {
    display: block;
}

.pc-only {
    display: none;
}

@media (min-width: 768px) {
    .sp-only {
        display: none;
    }

    .pc-only {
        display: block;
    }
}

@media (min-width: 768px) {
    .sp-only {
        display: none;
    }

    .pc-only {
        display: block;
    }
}

/* ==========================================================================
   Hero Slider (Infinite Loop)
   ========================================================================== */
.hero-slider {
    width: 100%;
    overflow: hidden;
    background-color: var(--color-background-gray);
    padding: 2rem 0;
}

.slider-track {
    display: flex;
    /* gap removed for juzutsunagi (connected) look */
    width: max-content;
    /* Ensure items sit in a row */
}

.slider-item {
    flex-shrink: 0;
    width: 80vw;
    /* Mobile: Show slightly next image or centered focus */
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    /* Consistent height */
    vertical-align: bottom;
}

@media (min-width: 768px) {
    .slider-item {
        width: 300px;
        /* Fixed width for desktop or percentage */
        /* Or simply keep them reasonable size */
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 700;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #002244;
    border-color: #002244;
}

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

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

/* White background button variant */
.btn-secondary[style*="background-color: #ffffff"]:hover,
.btn-secondary[style*="background-color:#ffffff"]:hover,
.btn-secondary[style*="background-color: white"]:hover {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    border-color: var(--color-white) !important;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    min-width: 200px;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    min-width: auto;
}

/* Placeholders */
.placeholder-img {
    background-color: #cbd5e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #4a5568;
    font-weight: bold;
    text-align: center;
    padding: 1rem;
    width: 100%;
    height: 100%;
    min-height: 250px;
    /* Default height */
    border: 1px solid #a0aec0;
}

.placeholder-label {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.placeholder-desc {
    font-size: 0.9rem;
    font-weight: normal;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

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

.header-logo a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Nav Desktop */
.header-nav {
    display: none;
}

@media (min-width: 1024px) {
    .header-nav {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .nav-list {
        display: flex;
        gap: 1.5rem;
    }

    .nav-list a {
        font-size: 0.9rem;
        font-weight: 500;
    }
}

/* Nav Mobile */
.nav-toggle {
    display: block;
    width: 30px;
    height: 25px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: 0.3s;
}

.nav-toggle span:nth-child(1) {
    top: 0;
}

.nav-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle span:nth-child(3) {
    bottom: 0;
}

.nav-open .nav-toggle span:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
    top: 50%;
    transform: rotate(-45deg);
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }
}

/* Mobile Menu Drawer */
@media (max-width: 1023px) {
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1050;
    }

    .header-nav.active {
        right: 0;
        display: flex;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-bottom: 2rem;
    }
}

/* ==========================================================================
   Hero
   ========================================================================== */
/* ==========================================================================
   Hero (Updated Layout)
   ========================================================================== */
.hero {
    margin-top: 60px;
    padding: 0;
    /* Removed background-color here to avoid visual "gap" if content is short */
    display: flex;
    flex-direction: column;
}

/* Top Half: Content */
.hero-top {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-sm);
    background-color: #ffffff;
    min-height: 400px;
    /* Reduced from 50vh for tighter mobile/PC view */
}

.hero-layout {
    display: flex;
    flex-direction: column;
    /* Mobile: Stack */
    align-items: center;
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
}

.hero-image-box {
    width: 100%;
    max-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
}

.hero-image-box img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    /* Optional: drop shadow if it's a cutout */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.hero-content {
    margin-bottom: 0;
    text-align: center;
    width: 100%;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

/* Responsive Typography */
.hero-title {
    font-size: 2rem;
    /* Reduced for mobile */
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-family: var(--font-family-base);
    letter-spacing: 0.05em;
    word-wrap: break-word;
    /* Prevent overflow */
}

@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem;
        /* Even smaller for very small screens */
    }
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-family: var(--font-family-serif);
}

@media (min-width: 768px) {
    .hero-layout {
        flex-direction: row;
        /* Image Left, Content Right */
        text-align: center;
        justify-content: center;
        align-items: center;
        gap: 3rem;
    }

    .hero-image-box {
        max-width: 320px;
        flex: 1;
        display: flex;
        justify-content: center;
        margin: 0;
    }

    .hero-content {
        text-align: center;
        flex: 1;
        padding-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .hero-title {
        font-size: 3rem;
        /* Adjusted for tablet */
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section {
        padding: var(--spacing-xl) 0;
    }
}

@media (min-width: 1024px) {
    .hero-layout {
        gap: 3rem;
        max-width: 1200px;
        /* Increased from 1000px to allow more space */
        width: 100%;
        padding: 0 1rem;
        /* Safety padding */
    }

    .hero-image-box {
        max-width: 350px;
        flex-shrink: 0;
        /* Prevent image from being squashed */
    }

    .hero-title {
        font-size: 3.5rem;
        /* Slightly reduced from 4rem for better fit on 1024-1200px screens */
        word-wrap: break-word;
        white-space: normal;
    }

    /* Extra large screens */
    @media (min-width: 1400px) {
        .hero-title {
            font-size: 4rem;
        }
    }

    .hero-subtitle {
        font-size: 1.35rem;
    }
}

/* Mobile section padding adjustment */
.section {
    padding: 3rem 0;
}

/* Table Responsiveness */
.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    display: block;
    /* Stack on mobile */
    width: 100%;
}

.company-table th {
    background-color: var(--color-background-gray);
    font-weight: 700;
    color: var(--color-primary);
}

@media (min-width: 768px) {

    .company-table th,
    .company-table td {
        display: table-cell;
        /* Revert to table layout on desktop */
        width: auto;
    }

    .company-table th {
        width: 30%;
    }
}

/* Tips: Typography overrides for Hero are handled by specific class rules usually, 
   but ensure consistency here if needed. */


/* ==========================================================================
   Page Header (Subpages)
   ========================================================================== */
.page-header {
    margin-top: 60px;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 1rem;
    text-align: center;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-family-base);
    /* Gothic */
}

.page-subtitle {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
    font-family: var(--font-family-base);
    /* Gothic (English part usually matches) */
    letter-spacing: 0.1em;
}

/* ==========================================================================
   Subpage Content
   ========================================================================== */
.subpage-section {
    padding: var(--spacing-lg) 0;
}

/* Bottom Half: Slider */
.hero-bottom {
    flex: none;
    /* Disable auto-stretch */
    height: 200px;
    /* Increased to 200% (was 100px) */
    position: relative;
    width: 100%;
    background-color: #f7fafc;
}

.hero-slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    height: 100%;
    width: max-content;
    /* Allow it to stretch */
    will-change: transform;
    /* Optimization */
}

.slider-item {
    height: 100%;
    width: 300px;
    /* Adjusted width for 200px height */
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-item .placeholder-img {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    background-color: #a0aec0;
    color: white;
    font-size: 1.5rem;
}

/* Specific coloring for placeholders to distinguish them */
.slider-item:nth-child(odd) .placeholder-img {
    background-color: #718096;
}

.slider-item:nth-child(even) .placeholder-img {
    background-color: #4a5568;
}

/* Responsive adjustment for slider items */
@media (max-width: 767px) {
    .slider-item {
        min-width: 50vw;
    }
}

/* ==========================================================================
   Intro
   ========================================================================== */
.intro-text {
    font-size: 1rem;
    line-height: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-family-serif);
    /* Mincho */
}

@media (min-width: 768px) {
    .intro-text {
        font-size: 1.125rem;
    }
}

/* ==========================================================================
   Reasons
   ========================================================================== */
.section-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 1rem;
    font-family: var(--font-family-base);
    /* Gothic */
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

.reasons-grid {
    display: grid;
    gap: 2rem;
}

.reason-item {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    border-top: 4px solid var(--color-primary);
}

.reason-num {
    position: absolute;
    top: -1.5rem;
    left: 1.5rem;
    font-size: 3rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1;
    z-index: 0;
}

.reason-title {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.reason-desc {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    color: var(--color-text);
    font-family: var(--font-family-serif);
    /* Mincho */
    line-height: 1.8;
}

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

/* ==========================================================================
   Middle CTA
   ========================================================================== */
.middle-cta {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 3rem 1rem;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

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

.middle-cta .btn-primary:hover {
    background-color: #f7fafc;
}

/* ==========================================================================
   Services
   ========================================================================== */
.service-content {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-list li {
    background: var(--color-white);
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--color-secondary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

@media (min-width: 768px) {
    .service-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* ==========================================================================
   Works
   ========================================================================== */
.works-grid {
    display: grid;
    gap: 2rem;
}

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

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

.work-image .placeholder-img {
    height: 200px;
    min-height: auto;
    border-bottom: 1px solid var(--color-border);
}

.work-info {
    padding: 1.5rem;
}

.work-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.work-tags span {
    font-size: 0.75rem;
    background-color: #edf2f7;
    color: var(--color-text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

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

/* ==========================================================================
   Flow
   ========================================================================== */
.flow-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.flow-list {
    counter-reset: flow;
}

.flow-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--color-background-gray);
    border-radius: 4px;
}

.flow-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-right: 1.5rem;
    min-width: 40px;
}

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

@media (min-width: 768px) {
    .flow-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-white);
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-question {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.faq-question::before {
    content: "Q.";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.faq-answer {
    padding-left: 1.5rem;
    font-size: 0.95rem;
    border-top: 1px solid var(--color-border);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-lead {
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-box {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 1rem;
    text-align: center;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-mail {
    font-size: 1.5rem;
    font-weight: 300;
    /* Thin */
    margin-bottom: 1.5rem;
    font-family: var(--font-family-base);
    /* Gothic */
    /* Slightly clearer for email */
    transform: none;
    /* No distortion */
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .contact-mail {
        font-size: 2.5rem;
    }
}

.contact-note p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #2d3748;
    color: var(--color-white);
    padding: 3rem 0;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-company {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-nav a:hover {
    color: #e2e8f0;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    border-top: 1px solid #4a5568;
    padding-top: 1.5rem;
    color: #a0aec0;
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ==========================================================================
   Section Images Grid (3-column)
   ========================================================================== */
.section-images-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.section-image-item {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .section-images-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form-container {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--color-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.label-required::after {
    content: "必須";
    display: inline-block;
    background: var(--color-accent);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.label-optional::after {
    content: "任意";
    display: inline-block;
    background: #a0aec0;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-family-base);
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: #fcfcfc;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-input {
    margin-right: 0.5rem;
    width: 1.2em;
    height: 1.2em;
    accent-color: var(--color-primary);
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.btn-submit {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 4rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
    background-color: #002244;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
    .contact-form-container {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: #48bb78;
    /* Green */
}

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

/* ==========================================================================
   Instagram Section
   ========================================================================== */
.instagram {
    background-color: var(--color-white);
}

.insta-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 700;
    color: #E1306C;
    /* Instagram Color */
    font-family: var(--font-family-base);
}

.insta-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    /* Instagram-like tight grid */
}

@media (min-width: 768px) {
    .insta-feed {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

.insta-item {
    position: relative;
    display: block;
    aspect-ratio: 1/1;
    /* Square */
    overflow: hidden;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-icon {
    font-size: 1.5rem;
    color: #fff;
}

.insta-item:hover .insta-overlay {
    opacity: 1;
}

.insta-item:hover img {
    transform: scale(1.1);
}

.btn-insta {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    border: none;
    color: white;
}

.btn-insta:hover {
    opacity: 0.9;
    color: white;
}

.sp-hidden {
    display: none;
}

@media (min-width: 768px) {
    .sp-hidden {
        display: block;
    }
}