/* Company Profile Public Page Styles */

.jms-company-profile-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ─── Tab Bar ─── */
.jms-cp-tab-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.jms-cp-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: #555;
    background: #f5f2ed;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

a.jms-cp-tab:hover {
    background: #e8e4de;
    color: #333;
    text-decoration: none;
}

.jms-cp-tab.active {
    background: #0d8c3f;
    color: #fff;
    cursor: pointer;
}

a.jms-cp-tab.active:hover {
    background: #0a7233;
    color: #fff;
}

/* ─── Header Card ─── */
.jms-cp-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
}

.jms-cp-header-info {
    flex: 1;
    min-width: 0;
}

.jms-cp-company-name {
    font-size: 22px;
    font-weight: bold;
    color: #222;
    margin: 0 0 12px;
}

.jms-cp-header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 24px;
}

.jms-cp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
}

.jms-cp-meta-icon {
    width: 18px;
    height: 18px;
    color: #0d8c3f;
    flex-shrink: 0;
}

.jms-cp-meta-label {
    font-weight: bold;
    color: #333;
}

.jms-cp-meta-value {
    color: #555;
}

.jms-cp-header-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jms-cp-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jms-cp-header-image .jms-cp-no-image {
    color: #bbb;
    font-size: 13px;
}

/* ─── Section Titles ─── */
.jms-cp-section-title {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    padding-bottom: 10px;
    border-bottom: 3px solid #0d8c3f;
    margin: 32px 0 20px;
}

/* ─── Detail Cards ─── */
.jms-cp-detail-card {
    display: flex;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.jms-cp-detail-image {
    flex-shrink: 0;
    width: 280px;
}

.jms-cp-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jms-cp-detail-body {
    flex: 1;
    min-width: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.jms-cp-detail-title {
    font-size: 17px;
    font-weight: bold;
    color: #222;
    margin: 0 0 12px;
}

.jms-cp-detail-message {
    font-size: 14px;
    color: #444;
    line-height: 1.8;
    flex: 1;
}

.jms-cp-detail-url {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.jms-cp-detail-url a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.jms-cp-detail-url a:hover {
    text-decoration: underline;
}

.jms-cp-detail-url-label {
    color: #0d8c3f;
    font-weight: bold;
}

.jms-cp-detail-url-label::before {
    content: "\1F517";
    margin-right: 2px;
}

/* ─── Pamphlet Downloads ─── */
.jms-cp-pamphlet-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #faf7f2;
    border-radius: 8px;
    padding: 18px 20px;
}

.jms-cp-pamphlet-icon {
    flex-shrink: 0;
    width: 36px;
    height: 42px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.jms-cp-pamphlet-title {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.jms-cp-pamphlet-btn {
    display: inline-block;
    padding: 8px 24px;
    background: #0d8c3f;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    border-radius: 24px;
    text-decoration: none;
    transition: background 0.2s;
}

.jms-cp-pamphlet-btn:hover {
    background: #0a7233;
    color: #fff;
    text-decoration: none;
}

/* Google Map */
.jms-cp-map-container {
    width: 100%;
    height: 300px;
    background: #f0f0f0;
    border-radius: 6px;
    margin-top: 8px;
    margin-bottom: 12px;
}

/* ─── Accordion (Business Locations) ─── */
.jms-cp-accordion {
    margin-bottom: 32px;
}

.jms-cp-accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
    background: #fff;
}

.jms-cp-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    background: #f8f9fa;
    transition: background 0.2s;
    user-select: none;
}

.jms-cp-accordion-header:hover {
    background: #eef5ee;
}

.jms-cp-accordion-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
}

.jms-cp-accordion-icon {
    font-size: 20px;
    font-weight: bold;
    color: #0d8c3f;
    line-height: 1;
    transition: transform 0.2s;
}

.jms-cp-accordion-item.open .jms-cp-accordion-icon {
    transform: rotate(45deg);
}

.jms-cp-accordion-body {
    display: none;
    padding: 18px;
    border-top: 1px solid #eee;
}

.jms-cp-accordion-item.open .jms-cp-accordion-body {
    display: block;
}

.jms-cp-accordion-body .jms-form-field {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #e0e0e0;
}

.jms-cp-accordion-body .jms-form-field:last-child {
    border-bottom: none;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .jms-cp-header {
        flex-direction: column;
    }

    .jms-cp-header-image {
        width: 100%;
        height: 200px;
    }

    .jms-cp-tab {
        padding: 12px 16px;
        font-size: 14px;
    }

    .jms-cp-detail-card {
        flex-direction: column;
    }

    .jms-cp-detail-image {
        width: 100%;
        height: 200px;
    }

    .jms-cp-pamphlet-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .jms-cp-accordion-body .jms-form-field {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .jms-company-profile-container {
        padding: 12px;
    }

    .jms-cp-company-name {
        font-size: 18px;
    }

    .jms-cp-section-title {
        font-size: 16px;
    }

}
