/* ==================== 会社案内ページ専用スタイル ==================== */

/* ページヘッダーはstyle.cssの共通スタイルを使用 */

/* ==================== 企業理念セクション ==================== */
.philosophy {
    padding: 70px 0;
    background-color: var(--white);
}

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

.philosophy-main {
    text-align: center;
    margin-bottom: 50px;
}

.philosophy-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
}

.philosophy-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient);
}

.philosophy-text {
    font-size: 18px;
    line-height: 2;
    color: var(--gray);
}

.philosophy-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.philosophy-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--light-gray);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.philosophy-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(25, 118, 210, 0.1);
}

.item-icon {
    margin-bottom: 30px;
    display: inline-block;
    animation: float 3s ease infinite;
}

.philosophy-item:nth-child(2) .item-icon {
    animation-delay: 1s;
}

.philosophy-item:nth-child(3) .item-icon {
    animation-delay: 2s;
}

.item-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.item-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray);
}

/* ==================== 代表挨拶セクション ==================== */
.message {
    padding: 70px 0;
    background-color: var(--light-gray);
}

.message-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.message-image {
    position: sticky;
    top: 100px;
}

.image-frame {
    position: relative;
    padding: 20px;
}

.frame-line {
    position: absolute;
    background-color: var(--primary);
}

.frame-line.top,
.frame-line.bottom {
    height: 2px;
    width: 0;
    animation: lineExpand 1s ease forwards;
}

.frame-line.top {
    top: 0;
    left: 0;
}

.frame-line.bottom {
    bottom: 0;
    right: 0;
}

.frame-line.left,
.frame-line.right {
    width: 2px;
    height: 0;
    animation: lineExpandVertical 1s ease 0.5s forwards;
}

.frame-line.left {
    left: 0;
    top: 0;
}

.frame-line.right {
    right: 0;
    bottom: 0;
}

@keyframes lineExpand {
    to { width: 100%; }
}

@keyframes lineExpandVertical {
    to { height: 100%; }
}

.ceo-placeholder {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
}

.ceo-info {
    text-align: center;
    margin-top: 30px;
}

.ceo-position {
    font-size: 14px;
    color: var(--gray);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.ceo-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 4px;
}

.message-text {
    padding-top: 20px;
}

.message-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 30px;
    line-height: 1.6;
}

.message-body p {
    font-size: 16px;
    line-height: 2;
    color: var(--gray);
    margin-bottom: 30px;
}

/* ==================== 会社概要セクション ==================== */
.overview {
    padding: 70px 0;
    background-color: var(--white);
}

.overview-table {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.table-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

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

.table-row:hover {
    background-color: var(--light-gray);
}

.table-row dt {
    padding: 25px 30px;
    background-color: rgba(25, 118, 210, 0.05);
    font-weight: 700;
    color: var(--dark);
    border-right: 1px solid var(--light-gray);
}

.table-row dd {
    padding: 25px 30px;
    color: var(--gray);
    line-height: 1.8;
}

/* ==================== 沿革セクション ==================== */
.history {
    padding: 70px 0;
    background-color: var(--light-gray);
    position: relative;
}

.history-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 150px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient);
}

.timeline-item {
    position: relative;
    padding-bottom: 60px;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInLeft 0.8s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -56px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--primary-light);
}

.timeline-date {
    position: absolute;
    left: -150px;
    top: -5px;
    text-align: right;
}

.timeline-date .year {
    display: block;
    font-family: 'Bebas Neue', cursive;
    font-size: 32px;
    color: var(--primary);
    letter-spacing: 2px;
}

.timeline-date .month {
    display: block;
    font-size: 14px;
    color: var(--gray);
    margin-top: -5px;
}

.timeline-content {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(25, 118, 210, 0.1);
}

.timeline-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
}

/* ==================== アクセスセクション ==================== */
.access {
    padding: 70px 0;
    background-color: var(--white);
}

.access-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.access-map {
    background: var(--light-gray);
    border-radius: 20px;
    overflow: hidden;
    height: 500px;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--white);
}

.map-placeholder svg {
    width: 100%;
    height: 100%;
}

.access-info {
    position: sticky;
    top: 100px;
}

.access-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.access-details {
    margin-bottom: 40px;
}

.access-details dt {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.access-details:first-child dt {
    padding-top: 0;
    border-top: none;
}

.access-details dd {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 0;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--gradient);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.map-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(25, 118, 210, 0.3);
    gap: 15px;
}

/* ==================== 下層ページ共通CTA ==================== */
.cta-section {
    padding: 80px 0;
}

.cta-section .cta-title {
    font-size: 2rem;
}

/* ==================== レスポンシブ対応 ==================== */
@media (max-width: 1024px) {
    .message-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .message-image {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .access-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .access-info {
        position: static;
    }
}

@media (max-width: 768px) {
    .philosophy {
        padding: 60px 0;
    }
    
    .message {
        padding: 60px 0;
    }
    
    .overview {
        padding: 60px 0;
    }
    
    .history {
        padding: 60px 0;
    }
    
    .access {
        padding: 60px 0;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .philosophy-items {
        grid-template-columns: 1fr;
    }
    
    .table-row {
        grid-template-columns: 1fr;
    }
    
    .table-row dt {
        border-right: none;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .history-timeline {
        padding-left: 50px;
    }
    
    .history-timeline::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: -36px;
    }
    
    .timeline-date {
        position: static;
        margin-bottom: 20px;
        text-align: left;
    }
    
    .timeline-date .year {
        display: inline;
        font-size: 24px;
        margin-right: 10px;
    }
    
    .timeline-date .month {
        display: inline;
    }
    
    .access-map {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .philosophy,
    .message,
    .overview,
    .history,
    .access {
        padding: 80px 0;
    }
    
    .philosophy-title {
        font-size: 32px;
    }
    
    .message-title {
        font-size: 24px;
    }
    
    .table-row dt,
    .table-row dd {
        padding: 20px;
    }
}