/**
 * Company Page Styles - Chic & Smart Design
 * 会社概要ページ専用スタイル（才流風・シック＆スマート）
 * 
 * @package YoungBush
 */

/* ========================================
   ページ全体の設定
======================================== */
.company-page {
    background: #ffffff;
}

.company-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   会社概要ページ固有のスタイル
   （ページヘッダーはmain.cssで統一管理）
======================================== */

/* ========================================
   セクション共通スタイル
======================================== */
.company-page section {
    padding: 60px 0;
}

.company-page section:nth-child(even) {
    background: #f8faf9;
}

#company-info,
#access {
    background: #ffffff !important;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a4d3a;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #569578;
    border-radius: 2px;
}

/* ========================================
   代表メッセージセクション
======================================== */
#message {
    background: #ffffff;
}

.message-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.executive-card {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 8px;
    border: 1px solid #e8ebe9;
    transition: all 0.3s ease;
    position: relative;
}

.executive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #569578;
    border-radius: 4px 0 0 4px;
    transition: height 0.3s ease;
}

.executive-card:hover {
    border-color: #569578;
    box-shadow: 0 8px 30px rgba(26, 77, 58, 0.08);
}

.executive-card:hover::before {
    height: 100%;
}

.executive-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 25px;
    overflow: hidden;
    border: 3px solid #f0f4f2;
    background: linear-gradient(135deg, #1a4d3a, #275d46);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.executive-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a4d3a;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.executive-title {
    font-size: 0.9rem;
    color: #569578;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.executive-career {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8ebe9;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #5a6a62;
    text-align: left;
    margin-bottom: 20px;
}

.career-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #569578;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.executive-message {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8ebe9;
    font-size: 0.95rem;
    line-height: 1.9;
    color: #3a4a42;
    margin-bottom: 30px;
    text-align: left;
}

.message-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a4d3a;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.message-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding-top: 25px;
    border-top: 1px solid #e8ebe9;
}

.message-links a {
    font-size: 0.85rem;
    color: #569578;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.03em;
}

.message-links a:hover {
    color: #1a4d3a;
    transform: translateX(3px);
}

/* ========================================
   ビジョン・理念セクション
======================================== */
.philosophy-section,
.company-page .company-content > section:has(h2:contains("ビジョン")) {
    background: linear-gradient(135deg, #f8faf9 0%, #f0f4f2 100%);
    padding: 100px 0;
}

.philosophy-intro {
    text-align: center;
    margin-bottom: 60px;
}

.intro-text {
    display: inline-block;
    font-size: 1.1rem;
    color: #569578;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 12px 32px;
    background: rgba(86, 149, 120, 0.08);
    border-radius: 30px;
}

.philosophy-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.philosophy-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(26, 77, 58, 0.06);
    transition: all 0.3s ease;
}

.philosophy-card:hover {
    box-shadow: 0 8px 30px rgba(26, 77, 58, 0.12);
    transform: translateY(-3px);
}

.vision-card {
    border-left: 4px solid #1a4d3a;
}

.mission-card {
    border-left: 4px solid #569578;
}

.principles-card {
    background: linear-gradient(135deg, #1a4d3a 0%, #275d46 100%);
    color: #ffffff;
}

.philosophy-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
    opacity: 0.7;
}

.vision-card .philosophy-label {
    color: #1a4d3a;
}

.mission-card .philosophy-label {
    color: #569578;
}

.principles-card .philosophy-label {
    color: rgba(255, 255, 255, 0.7);
}

.philosophy-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 15px;
}

.vision-card h3,
.mission-card h3 {
    color: #1a4d3a;
}

.principles-card h3 {
    color: #ffffff;
}

.philosophy-card p {
    font-size: 1rem;
    line-height: 1.9;
    color: #5a6a62;
}

.principles-card p {
    color: rgba(255, 255, 255, 0.95);
}

.philosophy-card ul,
.philosophy-card ol {
    margin-top: 20px;
    padding-left: 0;
    list-style: none;
}

.mission-card ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.8;
    color: #3a4a42;
}

.mission-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #569578;
    border-radius: 50%;
}

.mission-card ul li strong {
    color: #1a4d3a;
    font-weight: 600;
}

.principles-card ol {
    counter-reset: principle;
}

.principles-card ol li {
    position: relative;
    padding-left: 55px;
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.7;
    counter-increment: principle;
    color: rgba(255, 255, 255, 0.95);
}

.principles-card ol li::before {
    content: counter(principle);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Growth Partner タイトル（旧スタイル・互換性用） */
.growth-partner {
    text-align: center;
    margin-bottom: 60px;
}

.growth-partner-title {
    display: inline-block;
    font-size: 1rem;
    color: #569578;
    font-weight: 600;
    letter-spacing: 0.15em;
    padding: 10px 30px;
    background: rgba(86, 149, 120, 0.08);
    border-radius: 30px;
    margin-bottom: 15px;
}

/* Vision Block */
.vision-block,
.company-page h3:contains("Vision") {
    background: #ffffff;
    border-radius: 12px;
    padding: 50px;
    margin-bottom: 40px;
    border-left: 4px solid #1a4d3a;
    box-shadow: 0 4px 20px rgba(26, 77, 58, 0.06);
}

.vision-label {
    font-size: 0.75rem;
    color: #1a4d3a;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.vision-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a4d3a;
    line-height: 1.6;
    margin-bottom: 15px;
}

.vision-description {
    font-size: 1rem;
    color: #5a6a62;
    line-height: 1.9;
}

/* Mission Block */
.mission-block {
    background: #ffffff;
    border-radius: 12px;
    padding: 50px;
    margin-bottom: 40px;
    border-left: 4px solid #569578;
    box-shadow: 0 4px 20px rgba(26, 77, 58, 0.06);
}

.mission-label {
    font-size: 0.75rem;
    color: #569578;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.mission-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a4d3a;
    line-height: 1.6;
    margin-bottom: 30px;
}

.mission-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mission-points li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.8;
    color: #3a4a42;
}

.mission-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #569578;
    border-radius: 50%;
}

.mission-points li strong {
    color: #1a4d3a;
    font-weight: 600;
}

/* Action Principles */
.principles-block {
    background: #1a4d3a;
    border-radius: 12px;
    padding: 50px;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(26, 77, 58, 0.15);
}

.principles-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.principles-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 40px;
}

.principles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: principle;
}

.principles-list li {
    position: relative;
    padding-left: 55px;
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.7;
    counter-increment: principle;
    color: rgba(255, 255, 255, 0.95);
}

.principles-list li::before {
    content: counter(principle);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   会社概要テーブル
======================================== */
.info-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8ebe9;
}

.info-table tr {
    border-bottom: 1px solid #e8ebe9;
}

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

.info-table th {
    background: #f8faf9;
    padding: 22px 30px;
    text-align: left;
    font-weight: 600;
    color: #1a4d3a;
    width: 200px;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

.info-table td {
    padding: 22px 30px;
    color: #3a4a42;
    font-size: 0.95rem;
    line-height: 1.8;
}

.download-btn {
    display: inline-block;
    margin-top: 40px;
    padding: 14px 40px;
    background: #1a4d3a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.download-btn:hover {
    background: #275d46;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 77, 58, 0.25);
}

/* ========================================
   アクセスセクション
======================================== */
.company-page #access {
    background: #ffffff;
}

.access-content {
    max-width: 1000px;
    margin: 0 auto;
}

.access-info {
    background: #f8faf9;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid #e8ebe9;
}

.access-info h3 {
    font-size: 1.3rem;
    color: #1a4d3a;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

.access-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e8ebe9;
}

.access-detail:last-child {
    border-bottom: none;
}

.access-detail-label {
    font-weight: 600;
    color: #1a4d3a;
    min-width: 100px;
    font-size: 0.9rem;
}

.access-detail-body {
    flex: 1;
    color: #3a4a42;
    font-size: 0.95rem;
    line-height: 1.8;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26, 77, 58, 0.08);
    background: #e8ebe9;
}

.access-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.access-links a {
    padding: 12px 30px;
    background: #ffffff;
    color: #1a4d3a;
    text-decoration: none;
    border: 2px solid #1a4d3a;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.access-links a:hover {
    background: #1a4d3a;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ========================================
   CTA セクション
======================================== */
.cta-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0;
}

.cta-box {
    background: linear-gradient(135deg, #1a4d3a 0%, #275d46 100%);
    color: #ffffff;
    padding: 40px 35px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(26, 77, 58, 0.15);
}

.cta-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(26, 77, 58, 0.25);
}

.cta-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.cta-box p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    line-height: 1.6;
}

.cta-box .btn-primary {
    background: #ffffff !important;
    color: #1a4d3a !important;
    border: 2px solid #ffffff;
}

.cta-box .btn-primary:hover {
    background: #f8faf9 !important;
    color: #1a4d3a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 関連リンクセクション（横並び） */
.related-links {
    display: flex;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    justify-content: center;
}

.link-card {
    flex: 1;
    max-width: 320px;
    padding: 20px 40px;
    background: #ffffff;
    border: 2px solid #1a4d3a;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #1a4d3a;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.link-card:hover {
    background: #1a4d3a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(26, 77, 58, 0.2);
}


/* 会社概要テーブルのスタイル */
.company-table-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e8ecea;
    border-radius: 8px;
    overflow: hidden;
}

.company-table th,
.company-table td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid #e8ecea;
}

.company-table th {
    background: #f8faf9;
    color: var(--primary-color);
    font-weight: 700;
    width: 180px;
    vertical-align: top;
}

.company-table td {
    color: var(--dark-gray);
    line-height: 1.8;
}

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

/* アクセスセクションのスタイル */
#access {
    background: #ffffff;
    padding: 60px 0;
}

.access-grid {
    max-width: 1000px;
    margin: 0 auto;
}

.access-card {
    background: transparent;
    padding: 0;
    border: none !important;
    box-shadow: none !important;
}

.access-card h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--accent-color);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.access-info {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px 30px;
    align-items: start;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
    padding: 0;
    border: none !important;
    box-shadow: none !important;
}

.access-info dt {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
    padding-top: 4px;
}

.access-info dd {
    margin: 0;
    padding: 0;
    color: var(--dark-gray);
    line-height: 1.8;
    font-size: 0.95rem;
}

.map-container {
    width: 100%;
    max-width: 1000px;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26, 77, 58, 0.08);
    background: #e8ebe9;
    margin: 0 auto;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.access-links .btn {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

/* ========================================
   レスポンシブデザイン
======================================== */
@media (max-width: 768px) {
    .company-page .container {
        padding: 0 20px;
    }
    
    .company-page section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    /* 会社概要テーブル - モバイル対応 */
    .company-table th,
    .company-table td {
        padding: 16px;
        font-size: 14px;
    }
    
    .company-table th {
        width: 100px;
    }
    
    /* アクセスカード - モバイル対応 */
    .access-card {
        padding: 30px 20px;
    }
    
    .access-card h3 {
        font-size: 1.4rem;
    }
    
    .access-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .access-info dt {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #e8ecea;
    }
    
    .access-info dt:first-child {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
    
    .map-container {
        height: 300px;
    }
    
    /* 関連リンク - モバイル対応 */
    .related-links {
        flex-direction: column;
        max-width: 100%;
        gap: 16px;
    }
    
    .link-card {
        max-width: 100%;
    }
    
    /* CTAボックス - モバイル対応 */
    .cta-boxes {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 代表メッセージ：1カラムに */
    .message-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .executive-card {
        padding: 35px 25px;
    }
    
    .executive-name {
        font-size: 1.3rem;
    }
    
    .executive-message {
        font-size: 0.9rem;
        line-height: 1.8;
    }
    
    /* ビジョン・理念 */
    .vision-block,
    .mission-block,
    .principles-block {
        padding: 35px 25px;
        border-radius: 8px;
    }
    
    .vision-text {
        font-size: 1.4rem;
    }
    
    .mission-text,
    .principles-title {
        font-size: 1.3rem;
    }
    
    /* 会社概要テーブル */
    .info-table {
        font-size: 0.9rem;
    }
    
    .info-table th,
    .info-table td {
        padding: 15px 20px;
        display: block;
        width: 100%;
    }
    
    .info-table th {
        background: #1a4d3a;
        color: #ffffff;
        border-bottom: none;
    }
    
    .info-table td {
        padding-bottom: 20px;
    }
    
    /* アクセス */
    .access-info {
        padding: 30px 20px;
    }
    
    .access-detail {
        flex-direction: column;
        gap: 8px;
    }
    
    .access-detail-label {
        min-width: auto;
    }
    
    .map-container {
        height: 300px;
    }
    
    .access-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .access-links a {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .message-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}
