/**
 * Company Info Page Styles
 * 会社情報ページ専用CSS
 */

/* ===================================================
   コンテナ
   ================================================ */
.company-info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ===================================================
   タブナビゲーション
   ================================================ */
.company-tabs {
    display: flex;
    margin-bottom: 0;
    background: transparent;
    gap: 25px;
    padding: 0 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    width: 100%;
    min-width: 0;
}

/* スクロールバーのスタイル */
.company-tabs::-webkit-scrollbar {
    height: 4px;
}

.company-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.company-tabs::-webkit-scrollbar-thumb {
    background: #9B7B4F;
    border-radius: 2px;
}

.company-tabs::-webkit-scrollbar-thumb:hover {
    background: #7a6041;
}

.tab-button {
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #7C9880;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-button.active {
    color: #2D5233;
    border-bottom: 5px solid #2D5233;
}

.tab-button:hover:not(.active) {
    color: #628468;
}

/* ===== レスポンシブ対応 ===== */

@media (max-width: 768px) {
    .company-tabs {
        gap: 15px;
        padding: 5px 10px;
        margin-bottom: 5px;
    }

    .tab-button {
        padding: 5px;
        min-width: max-content;
        font-size: 16px;
    }
}

/* ===================================================
   タブコンテンツ
   ================================================ */
.tab-content {
    background: white;
    padding: 40px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    margin-top: 10px;
    min-height: 400px;
    border-radius: 5px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ===================================================
   設計理念セクション
   ================================================ */
.philosophy-section {
    padding: 20px;
}

.philosophy-intro {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(153, 122, 79, 0.2);
}

.philosophy-intro h3 {
    font-size: 1.5rem;
    color: #334636;
    font-weight: 600;
    margin: 0 0 15px 0;
    letter-spacing: 2px;
}

.philosophy-intro p {
    color: #666;
    margin: 0;
    font-size: 16px;
}

.philosophy-list {
    margin-bottom: 40px;
}

.philosophy-item-company {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(248, 249, 246, 0.5);
    border-left: 5px solid #997a4f;
    border-radius: 0 8px 8px 0;
}

.philosophy-conclusion {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(153, 122, 79, 0.2);
}

.philosophy-conclusion h4 {
    font-size: 1.3rem;
    color: #997a4f;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.philosophy-content p {
    margin-bottom: 0;
}

/* ===================================================
   会社概要テーブル
   ================================================ */
.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.company-table tr {
    border-bottom: 1px solid #e9ecef;
}

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

.company-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #9B7B4F;
    width: 175px;
    vertical-align: top;
    border-right: 1px solid #e9ecef;
    position: relative;
}

.company-table th::after {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #9B7B4F99;
}

.company-table td {
    padding: 15px;
    color: #333;
    line-height: 1.6;
}

/* ===================================================
   沿革タイムライン
   ================================================ */
.history-timeline {
    position: relative;
    padding-left: 27px;
}

.history-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 30px;
}

.history-item::before {
    content: '';
    position: absolute;
    left: 115px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #9B7B4F;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #9B7B4F;
}

.history-date {
    font-weight: 600;
    color: #9B7B4F;
    margin-bottom: 5px;
}

.history-content {
    color: #495057;
    line-height: 1.6;
}



/* ===================================================
   これからの目標（Vision）
   ================================================ */
.vision-section {
    padding: 20px;
}

.vision-intro {
    text-align: center;
    margin-bottom: 30px;
}

.vision-intro h3 {
    font-size: 1.5rem;
    color: #334636;
    font-weight: 600;
    margin: 0 0 15px 0;
    letter-spacing: 2px;
}

.vision-intro p {
    color: #666;
    margin: 0;
    font-size: 16px;
}

.vision-catchphrase {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e8 100%);
}

.vision-catchphrase h4 {
    color: #9B7B4F;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 0;
}

.vision-description {
    font-size: 0.98rem;
    color: #333;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px;
}

.vision-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.vision-card {
    background: white;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 35px;
    min-height: 120px;
}

.vision-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vision-icon img {
    width: 60px;
    height: 70px;
    object-fit: contain;
}

.vision-text {
    flex: 1;
    line-height: 1.5;
    font-weight: 500;
    color: #333;
}


/* ===================================================
   役員紹介セクション
   ================================================ */
.introduce-section {
    padding: 10px;
}

.introduce-intro {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(153, 122, 79, 0.2);
}

.introduce-intro h3 {
    font-size: 1.5rem;
    color: #334636;
    font-weight: 600;
    margin: 0 0 15px 0;
    letter-spacing: 2px;
}

.introduce-intro p {
    color: #666;
    margin: 0;
    font-size: 16px;
}

.executives-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.executive-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 40px;
    align-items: flex-start;
    padding: 40px 0;
    border-bottom: 1px solid rgba(153, 122, 79, 0.2);
    transition: background-color 0.3s ease;
}

.executive-item:last-child {
    border-bottom: none;
}

.executive-photo-wrapper {
    text-align: center;
}

.executive-photo {
    width: auto;
    height: 285px;
    overflow: hidden;
    border: 7px solid #334636;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #334636;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
}

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

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9f4 100%);
}

.executive-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 役職バッジ（名前の上に配置） */
.executive-badge {
    display: inline-block;
    color: #9B7B4F;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.executive-name {
    font-size: 1.3rem;
    color: #334636;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.executive-name-en {
    font-size: 0.95rem;
    color: #9B7B4F;
    font-weight: 400;
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.executive-message {
    background: rgba(248, 249, 246, 0.6);
    padding: 20px;
    border-radius: 6px;
    border-left: 3px solid #9B7B4F;
}

.message-title {
    color: #334636;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.message-content {
    line-height: 1.7;
    margin: 0;
}

/* ===================================================
   レスポンシブ対応（768px以下）
   ================================================ */
@media (max-width: 768px) {
    .introduce-section {
        padding: 20px 18px;
    }
    
    .introduce-intro {
        margin-bottom: 30px;
    }
    
    .introduce-intro h3 {
        font-size: 1.35rem;
    }

    .introduce-intro p {
        font-size: 14px;
    }
    
    .executives-grid {
        gap: 0;
    }
    
    .executive-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 0;
    }
    
    .executive-photo {
        width: 50%;
        margin: 0 auto;
    }

    .executive-photo img {
        object-position: center 10%; 
    }
    
    .executive-badge {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .executive-name {
        font-size: 1.2rem;
    }
    
    .executive-name-en {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
    
    .executive-message {
        padding: 16px;
        border-radius: 4px;
    }
    
    .message-title {
        margin-bottom: 10px;
    }
    
    .message-content {
        line-height: 1.6;
    }
}

/* ===================================================
   レスポンシブ対応（480px以下）
   ================================================ */
@media (max-width: 480px) {
    .executive-item {
        padding: 20px 0;
    }
    
    .executive-photo {
        width: 100%;
        border: 3px solid white;
    }

    .executive-photo img {
        object-position: center 25%; 
    }
    
    .executive-name {
        font-size: 1.1rem;
    }
    
    .executive-message {
        padding: 14px;
    }
    
    .message-title {
        margin-bottom: 8px;
    }
}

/* ===================================================
   アクセスセクション
   ================================================ */
.access-section {
    background: transparent;
    margin-top: 60px;
}

.access-title-container {
    padding: 0 20px;
    margin-bottom: 10px;
}

.access-title {
    color: #2D5233;
    font-size: 18px;
    font-weight: 600;
    padding: 10px;
    border-bottom: 5px solid #2D5233;
    display: inline-block;
    margin: 0;
}

.access-content-wrapper {
    background: white;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
}

.access-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.access-info {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.access-map {
    flex: 1;
    max-width: 350px;
    position: relative;
    width: 100%;
    height: 350px;
    min-height: 250px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.access-map iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1;
}

.access-map::before {
    content: '地図を読み込み中...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    color: #6c757d;
    font-size: 14px;
    z-index: 0;
}

/* ===================================================
   オフィス情報
   ================================================ */
.office-info {
    background: #f8f9f6;
    padding: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.office-title {
    color: #9B7B4F;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
}

.office-details p {
    margin: 8px 0;
    color: #333;
}

/* ===================================================
   交通アクセス情報
   ================================================ */
.transport-info {
    margin-top: 20px;
}

.transport-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 10px;
}

.transport-list {
    list-style: none;
    padding: 0;
}

.transport-list li {
    padding: 5px 0;
    color: #495057;
    position: relative;
    padding-left: 20px;
}

.transport-list li::before {
    content: '●';
    color: #9B7B4F;
    position: absolute;
    left: 0;
}

/* ===================================================
   レスポンシブ（768px以下）
   ================================================ */
@media (max-width: 768px) {
    .access-info {
        width: 100%;
    }

    .access-content {
        flex-direction: column;
        gap: 20px;
    }

    .access-map {
        max-width: 100%;
        aspect-ratio: 16/9;
        width: 100%;
        height: 250px;
        position: relative;
        overflow: hidden;
    }

    .access-map iframe {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border: 0 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .tab-content {
        background: transparent;
        padding: 5px 0 0;
        margin: 5px 0 0;
        box-shadow: none;
        border-radius: 0;
    }

#history.tab-panel.active ~ .tab-content,
.tab-panel.active#history,
#philosophy.tab-panel.active ~ .tab-content,
.tab-panel.active#philosophy,
#vision.tab-panel.active ~ .tab-content,
.tab-panel.active#vision,
#introduce.tab-panel.active ~ .tab-content,
.tab-panel.active#introduce {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

    .tab-panel#history {
        background: white;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        margin: 5px;
    }

    .tab-panel#overview {
        background: transparent;
        padding: 0;
        box-shadow: none;
    }

    .company-table {
        display: block;
        width: 100%;
        background: transparent;
    }

    .company-table tbody,
    .company-table tr {
        display: block;
        width: 100%;
    }

    .company-table tr {
        background: white;
        box-shadow: 0 2px 12px rgba(139, 69, 19, 0.1);
        padding: 20px;
        border-left: 5px solid #9B7B4F;
        margin-bottom: 15px;
        border-bottom: none;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .company-table tr:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(139, 69, 19, 0.15);
    }

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
        border: none;
        padding: 0;
        text-align: left;
        background: transparent;
    }

    .company-table th {
        font-size: 14px;
        color: #9B7B4F;
        font-weight: 600;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        position: relative;
    }

    .company-table th::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(to right, #9B7B4F, transparent);
        margin-left: 10px;
    }

    .company-table th::before {
        display: none;
    }

    .company-table td {
        line-height: 1.4;
        margin: 0;
    }

    .company-info-container {
        padding: 40px 0;
    }

    .tab-button.active {
        border-bottom: 5px solid #2D5233;
    }

    .history-timeline {
        padding-left: 20px;
    }

    .history-timeline::before {
        left: 8px;
    }

    .history-item {
        padding-left: 11px;
        margin-bottom: 20px;
    }

    .history-item::before {
        left: 3px;
        width: 10px;
        height: 10px;
    }

    .history-date {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .history-content {
        font-size: 16px;
    }

    .vision-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .vision-card {
        padding: 24px;
        min-height: 100px;
    }

    .vision-text {
        font-size: 15px;
    }

    .access-content-wrapper {
        padding: 20px 18px;
    }

    .access-content {
        flex-direction: column;
        gap: 20px;
    }

    .access-map {
        max-width: 100%;
    }

    .access-section {
        margin-top: 40px;
    }


    .office-info {
        padding: 15px;
        margin-bottom: 15px;
        width: 100%;
        box-sizing: border-box;
        margin-left: 0; 
        margin-right: 0; 
    }

    .office-title {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .transport-info {
        margin-top: 15px;
    }

    .transport-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .transport-list li {
        padding: 4px 0;
        padding-left: 18px;
        line-height: 1.5;
    }

    .transport-list li::before {
        left: 2px;
        color: #9B7B4F;
    }

    .philosophy-intro h3,
    .vision-intro h3 {
        font-size: 1.35rem;
    }

     .philosophy-intro p,
     .vision-intro p {
        font-size: 14px;
    }

}

/* ===================================================
   レスポンシブ（480px以下）
   ================================================ */
@media (max-width: 480px) {
    .company-info-container {
        padding: 30px 0;
    }

    .company-table tr {
        padding: 15px;
        margin-bottom: 12px;
    }
   
    .vision-catchphrase h4 {
        font-size: 1.1rem;
    }

    .philosophy-conclusion h4 {
        font-size: 18px;
    }

    .access-title-container {
        padding: 0 10px;
    }
}