/* ========================================
   会社概要ページ - モダンデザイン
   ======================================== */

/* メインコンテンツ */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 3rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

section:hover {
    box-shadow: var(--shadow-lg);
}

h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary);
    scroll-margin-top: 100px;
    font-weight: 700;
    display: inline-block;
}

/* 企業理念 */
.philosophy {
    text-align: center;
    background: var(--gradient);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.philosophy h2 {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,0.3);
    position: relative;
}

.philosophy-main {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.25rem;
    font-weight: 800;
    position: relative;
    letter-spacing: -0.5px;
}

.philosophy p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
    position: relative;
    line-height: 1.9;
}

/* 代表メッセージ */
.message-content {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.ceo-photo {
    width: 160px;
    height: 160px;
    background: var(--gradient);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.message-text p {
    margin-bottom: 1.25rem;
    color: var(--gray);
    line-height: 2;
}

.ceo-name {
    text-align: right;
    margin-top: 2rem;
    color: var(--gray);
}

.ceo-name strong {
    display: block;
    font-size: 1.25rem;
    color: var(--dark);
    margin-top: 0.25rem;
    font-weight: 700;
}

/* 事業内容 */
.business-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.business-item {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--radius);
    border-left: 5px solid var(--primary);
    transition: all 0.3s ease;
}

.business-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.business-item h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1.15rem;
}

.business-item p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* 会社情報テーブル */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid var(--light);
    transition: background 0.3s ease;
}

.info-table tr:hover {
    background: var(--light);
}

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

.info-table th,
.info-table td {
    padding: 1.25rem 1rem;
    text-align: left;
}

.info-table th {
    width: 160px;
    background: var(--light);
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius) 0 0 var(--radius);
}

.info-table td {
    color: var(--gray);
    line-height: 1.7;
}

/* 沿革 */
.history-list {
    position: relative;
    padding-left: 2rem;
}

.history-list::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.history-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    transition: all 0.3s ease;
}

.history-item:hover {
    padding-left: 2rem;
}

.history-item::before {
    content: "";
    position: absolute;
    left: -2rem;
    top: 0.4rem;
    width: 18px;
    height: 18px;
    background: var(--white);
    border: 4px solid var(--primary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.history-item:hover::before {
    background: var(--primary);
    transform: scale(1.2);
}

.history-year {
    font-weight: 700;
    color: var(--primary);
    margin-right: 0.75rem;
    font-size: 1.05rem;
}

/* アクセス */
.access-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.map-placeholder {
    background: var(--light);
    height: 320px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 1.1rem;
    border: 2px dashed var(--gray-light);
}

.access-info h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.access-info p {
    margin-bottom: 0.5rem;
    color: var(--gray);
    line-height: 1.8;
}

.access-info ul {
    margin-top: 1.25rem;
    margin-left: 1.25rem;
}

.access-info li {
    margin-bottom: 0.5rem;
    color: var(--gray);
}

/* CTA */
.cta-section {
    background: var(--gradient-dark);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section h2 {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,0.3);
    position: relative;
}

.cta-section p {
    position: relative;
    opacity: 0.9;
}

.cta-section .btn {
    margin-top: 1.5rem;
    position: relative;
}

/* フッター */
footer {
    text-align: center;
}

/* レスポンシブ */
@media (max-width: 768px) {
    main {
        padding: 2rem 1rem;
    }

    section {
        padding: 2rem 1.5rem;
    }

    .message-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ceo-photo {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }

    .ceo-name {
        text-align: center;
    }

    .access-content {
        grid-template-columns: 1fr;
    }

    .info-table th {
        width: 110px;
        font-size: 0.85rem;
    }
}
