/* ========================================
   Company Page Styles
   WordPress化時: is_page('company')で条件分岐して読み込み
======================================== */

/* ===== Page-Specific Settings ===== */
.company-page {
    background-color: #ffffff;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

/* Content Header - 白背景 */
.company-page .content-header {
    background: #ffffff !important;
    backdrop-filter: blur(10px);
    color: #333333 !important;
}

.company-page .content-header.scrolled {
    background: #ffffff !important;
    color: #333333 !important;
}

/* Header Location */
.company-page .header-location {
    color: #333333 !important;
}

/* Hamburger Menu */
.company-page .hamburger-menu {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #333333 !important;
}

.company-page .hamburger-menu::before,
.company-page .hamburger-menu::after,
.company-page .hamburger-menu .hamburger-line {
    background: #333333 !important;
}

/* ===== Company Page Components ===== */

/* ========================================
   お家づくりへの想い Section
======================================== */

.philosophy-section {
    padding: 60px 40px;
    background: #ffffff;
}

.philosophy-image {
    width: 100%;
    margin: 40px 0;
}

.philosophy-image img {
    width: 100%;
    height: auto;
    display: block;
}

.philosophy-text {
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-text p {
    font-size: 1rem;
    line-height: 1.9;
    color: #333333;
    letter-spacing: 0.05em;
}

/* ========================================
   スタッフ紹介 Section
======================================== */

.staff-section {
    padding: 60px 40px;
    background: white;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.staff-card {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.staff-card:hover {
    opacity: 0.9;
}

.staff-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 20px;
}

.staff-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.staff-image-container img.active {
    opacity: 1;
}

.staff-name-ruby {
    font-size: 0.85rem;
    color: #999999;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}

.staff-name {
    font-size: 1.3rem;
    font-weight: 500;
    color: #333333;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.staff-position {
    font-size: 0.95rem;
    color: #666666;
    margin: 0;
    letter-spacing: 0.05em;
}

/* ========================================
   Staff Modal
======================================== */

.staff-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.staff-modal.show {
    opacity: 1;
    visibility: visible;
}

.staff-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.staff-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 8px;
    overflow-y: auto;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.staff-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 3;
}

.staff-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.staff-modal-body {
    padding: 60px 40px 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.staff-modal-image {
    width: 100%;
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
}

.staff-modal-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.staff-modal-image img.active {
    opacity: 1;
}

.staff-modal-ruby {
    font-size: 0.9rem;
    color: #999999;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.staff-modal-name {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333333;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.staff-modal-position {
    font-size: 0.95rem;
    color: #666666;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
}

.staff-modal-text p {
    font-size: 0.85rem;
    line-height: 1.9;
    color: #333333;
    letter-spacing: 0.05em;
}
