/**
 * About page specific styles.
 *
 * @package ProviaCustom
 */

/* ==========================================
   経営理念 引用装飾
   ========================================== */
.about-quote {
    position: relative;
}

.about-quote::before {
    content: '\201C';
    /* 左ダブルクォート */
    position: absolute;
    left: -4px;
    top: -20px;
    font-size: 5rem;
    line-height: 1;
    color: #C5A059;
    opacity: 0.3;
    font-family: 'Georgia', serif;
    pointer-events: none;
}

@media (min-width: 768px) {
    .about-quote::before {
        font-size: 7rem;
        top: -30px;
        left: -8px;
    }
}

/* ==========================================
   事務所概要テーブル
   ========================================== */
.about-office-table th,
.about-office-table td {
    vertical-align: top;
}

.about-office-table tr:last-child {
    border-bottom-width: 1px;
}

/* ==========================================
   七つの約束 カードホバーアニメーション
   ========================================== */
@media (min-width: 1024px) {
    .about-promise-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .about-promise-card:hover {
        transform: translateY(-4px);
    }
}

/* ==========================================
   六つの約束 見出しの高さ統一
   ========================================== */
.about-promise-title {
    min-height: auto;
}

.promise-br-pc {
    display: none;
}

.promise-br-sp {
    display: revert;
}

@media (min-width: 768px) {
    .about-promise-title {
        /* PC時のみ高さを揃えてPタグの開始位置を統一 */
        min-height: 110px;
    }
}

@media (min-width: 768px) {
    .promise-br-pc {
        display: revert;
    }

    .promise-br-sp {
        display: none;
    }
}


/* ==========================================
   Global Network 地図背景
   ========================================== */
.about-network-section {
    overflow: visible;
}

.about-network-layout {
    display: grid;
    align-items: start;
}

.about-network-map-wrap,
.about-network-content {
    grid-area: 1 / 1;
}

.about-network-map-wrap {
    position: absolute;
    inset: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.about-network-map-sticky {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding-right: max(16px, calc((100vw - 1000px) / 2));
}

.about-network-map-sticky.is-fixed {
    position: fixed;
    left: 0;
    right: 0;
}

.about-network-map-sticky.is-bottom {
    position: absolute;
    top: auto !important;
    bottom: 0;
    left: 0;
    right: 0;
}

.about-network-map {
    width: min(100%, 760px);
    height: auto;
    max-width: none;
    object-fit: contain;
    object-position: right center;
    opacity: 0.5;
    transform: translateX(40px);
}

.about-network-content {
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .about-network-map {
        width: min(70vw, 880px);
        transform: translateX(100px);
    }
}
