/* ========================================
   Company Page Styles - SPstyle
   ======================================== */

/* CSS Custom Properties (page-specific) */
.company-section,
.map-section {
    --color-accent: #a8b4c4;
    --color-bg: #1a1a1a;
    --color-bg-card: #252525;
    --color-bg-card-alt: #2a2a2a;
    --color-text: #c0c4cc;
    --color-text-muted: #808690;
    --color-accent-light: #c0c8d4;
}

/* ========================================
   Company Section
   ======================================== */
.company-section {
    padding: 100px 0 80px;
}

.company-info {
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================
   Premium Table Design
   ======================================== */
.company-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--color-bg-card-alt);
    border: 1px solid rgba(168, 180, 196, 0.15);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.company-table tr {
    border-bottom: 1px solid rgba(168, 180, 196, 0.08);
    transition: background-color 0.3s ease;
}

.company-table tr:last-child {
    border-bottom: none;
}

/* Alternating row backgrounds (subtle) */
.company-table tr:nth-child(even) {
    background-color: rgba(168, 180, 196, 0.03);
}

.company-table tr:hover {
    background-color: rgba(168, 180, 196, 0.05);
}

.company-table th,
.company-table td {
    padding: 28px 32px;
    line-height: 1.8;
    vertical-align: top;
}

/* Left column: accent color, wider */
.company-table th {
    width: 200px;
    font-weight: 600;
    font-size: 15px;
    background-color: var(--color-bg-card);
    text-align: left;
    color: var(--color-accent);
    letter-spacing: 1px;
    position: relative;
    border-right: 1px solid rgba(168, 180, 196, 0.1);
}

/* Subtle left accent bar on th */
.company-table th::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: linear-gradient(180deg, var(--color-accent), var(--color-accent-light));
    border-radius: 0 2px 2px 0;
}

.company-table td {
    color: var(--color-text);
    font-size: 15px;
}

/* ========================================
   Phone Link
   ======================================== */
.company-tel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.company-tel:hover {
    color: var(--color-accent-light);
    opacity: 1;
}

/* ========================================
   Map Section
   ======================================== */
.map-section {
    padding: 0 0 100px;
}

.map-section .container {
    max-width: 900px;
}

.map-section-title {
    text-align: center;
    margin-bottom: 40px;
}

.map-section-title-en {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.map-section-title-ja {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.map-section-title-ja::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    margin: 18px auto 0;
}

.map-wrapper {
    position: relative;
    background-color: var(--color-bg-card);
    border: 1px solid rgba(168, 180, 196, 0.15);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.map-iframe-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: var(--color-bg-card-alt);
}

.map-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.3) brightness(0.85);
    transition: filter 0.3s ease;
}

.map-iframe-container iframe:hover {
    filter: grayscale(0) brightness(1);
}

/* Map Placeholder (when no embed URL) */
.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 60px 30px;
    text-align: center;
    min-height: 350px;
    background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-card-alt) 100%);
}

.map-placeholder-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(168, 180, 196, 0.3);
}

.map-placeholder-icon svg {
    width: 28px;
    height: 28px;
    color: #1a1a1a;
}

.map-placeholder-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 2px;
}

.map-placeholder-address {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.map-placeholder-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border: 1px solid rgba(168, 180, 196, 0.3);
    border-radius: 4px;
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.map-placeholder-link:hover {
    background-color: rgba(168, 180, 196, 0.1);
    border-color: var(--color-accent);
    opacity: 1;
}

.map-placeholder-link svg {
    width: 16px;
    height: 16px;
}

/* Map Info Bar */
.map-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 28px;
    background-color: var(--color-bg-card);
    border-top: 1px solid rgba(168, 180, 196, 0.1);
    color: var(--color-text-muted);
    font-size: 14px;
}

.map-info svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.map-info-address {
    flex: 1;
}

/* ========================================
   Breadcrumb
   ======================================== */
.breadcrumb {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.breadcrumb a {
    color: var(--color-text-muted);
}

.breadcrumb a:hover {
    color: var(--color-accent);
    opacity: 1;
}

.breadcrumb-separator {
    opacity: 0.5;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .company-section {
        padding: 70px 0 50px;
    }

    /* Table becomes stacked on mobile */
    .company-table {
        border: none;
        background-color: transparent;
        box-shadow: none;
    }

    .company-table tr {
        display: flex;
        flex-direction: column;
        background-color: var(--color-bg-card-alt);
        border: 1px solid rgba(168, 180, 196, 0.12);
        border-radius: 8px;
        margin-bottom: 12px;
        overflow: hidden;
    }

    .company-table tr:nth-child(even) {
        background-color: var(--color-bg-card-alt);
    }

    .company-table th,
    .company-table td {
        width: 100%;
        display: block;
    }

    .company-table th {
        padding: 16px 20px;
        font-size: 13px;
        background-color: var(--color-bg-card);
        border-right: none;
        border-bottom: 1px solid rgba(168, 180, 196, 0.1);
    }

    .company-table th::before {
        top: 0;
        height: 100%;
        border-radius: 0;
    }

    .company-table td {
        padding: 18px 20px;
        font-size: 14px;
    }

    .company-tel {
        font-size: 20px;
    }

    /* Map section mobile */
    .map-section {
        padding: 0 0 70px;
    }

    .map-section-title-ja {
        font-size: 22px;
    }

    .map-placeholder {
        min-height: 280px;
        padding: 40px 20px;
    }

    .map-info {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .company-table th {
        padding: 14px 16px;
    }

    .company-table td {
        padding: 16px;
    }

    .company-tel {
        font-size: 18px;
    }
}
