/*
======================================
共通スタイル
======================================
*/

.campany__popup {
    align-items: center;
    background-color: #333333;
    border-radius: 31px;
    color: white;
    display: flex;
    font-size: 20px;
    height: 48px;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 26px;
    position: relative;
    width: 225px;
}

.campany__popup::after {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 18px solid #333333;
    bottom: -17px;
    content: '';
    height: 0;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 0;
}


/*
======================================
代表挨拶
======================================
*/

.company__heading {
    align-items: center;
    font-size: var(--font-size-3xl);
    font-weight: bold;
    margin-bottom: 40px;
}

/* .company__message-wrap {
    margin-bottom: 128px;
} */

.company__message-wrap div {
    align-items: flex-start;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px;
}

.company__message-wrap__txt {
    flex: 0 0 600px;
    max-width: 600px;
    overflow-y: auto;
    padding: 0px 20px;
    width: 600px;
}

.company__message-wrap__img {
    align-items: center;
    display: flex;
    flex: 1;
    justify-content: center;
    margin-right: 20px;
    min-width: 300px;
    top: 0;
}

.company__message-wrap__img img {
    display: block;
    height: auto;
    margin: 0 auto;
    max-height: 320px;
    max-width: 100%;
    min-width: 200px;
    object-fit: contain;
    width: auto;
}

.company__message-wrap__txt__name {
    display: flex;
    justify-content: flex-end;
    margin: 20px 0px 0px 0px;
    text-align: right;
    width: 100%;
}

/*
======================================
スタッフ紹介
======================================
*/

.staff-introduction {
    margin: 0 auto;
    max-width: 1200px;
}

.staff-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.staff-image {
    max-width: 100%;
    text-align: center;
    width: 520px;
}

.staff-image img {
    aspect-ratio: 520 / 360;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: auto;
    max-width: 520px;
    object-fit: cover;
    width: calc((100vw / 1326) * 520 - 40px);
    background-color: white;
    display: block;
}

.staff-info {
    flex: 1;
}

.staff-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.staff-job {
    color: #666;
    font-size: 18px;
    margin-bottom: 15px;
}

.staff-birthplace,
.staff-hobby {
    font-size: 16px;
    margin-bottom: 10px;
}

.staff-comment {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 20px;
}

/*
======================================
スタッフ紹介スライダー
======================================
*/

/* スライダーコンテナ */
.staff-slider-container {
    margin: 0 auto;
    max-width: 1300px;
    padding: 20px;
    position: relative;
    width: 100%;
}

/* スライダー本体*/
.staff-slider {
    position: relative;
}

/* スライドアイテム */
.staff-slide {
    padding: 20px;
}

/* スタッフ紹介コンテンツ横並びレイアウト！*/
.staff-content {
    margin: 0 auto;
    overflow: visible;
    position: relative;
    max-width: 1216px;
    width: 100%;
}

/* 左側の画像セクション */
.staff-image-section {
    position: absolute;
    transform: translate(0, -50%);
    top: 50%;
    width: 100%;
    z-index: 2;
}

.staff-image {
    margin-bottom: 0;
    margin-top: 32px;
    width: 100%;
    display: inline-block;
}


/* 右側の情報セクション */
.staff-info-section {
    align-items: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    display: flex;
    justify-content: center;
    min-height: 540px;
    padding: 32px 64px;
    position: relative;
    margin-left: auto;
    max-width: 720px;
    width: calc((100vw / 1326) * 720);
    z-index: 1;
}

/* スタッフ紹介テーブル */
.staff-info-table {
    background: #fff;
    border-collapse: collapse;
    border-radius: 0;
    height: 440px;
    overflow-y: auto;
    z-index: 1;
}

.staff-info-table th,
.staff-info-table td {
    border: none;
    padding: 0;
    text-align: justify;
}

.staff-info-table th.job,
.staff-info-table th.birthplace,
.staff-info-table td.job,
.staff-info-table td.birthplace {
    width: 48%;
}

.staff-info-table th:nth-child(2),
.staff-info-table td:nth-child(2) {
    border-bottom: none;
    border-top: none;
}

.staff-info-table th {
    background: #ED7626;
    box-sizing: border-box;
    color: white;
    font-weight: bold;
    height: 32px !important;
    line-height: 24px !important;
    margin: 0 !important;
    overflow: hidden;
    padding: 0 0 0 20px !important;
    vertical-align: middle;
    width: 100%;
}

.staff-info-table td {
    color: var(--color-text);
    font-size: 18px;
    font-weight: normal;
    height: 46px;
    padding-bottom: 32px;
    padding-top: 8px;
    width: 100%;
    word-wrap: break-word;
    text-align: justify;
}

.staff-info-table td:nth-child(1) {
    width: 48%;
}

.staff-info-table td:nth-child(2) {
    padding-left: 22px;
    width: 48%;
}

.staff-info-table tr:nth-child(2) td {
    font-size: 32px;
    font-weight: bold;
}

.staff-info-table tr:last-child th,
.staff-info-table tr:last-child td {
    border-bottom: none;
    padding-bottom: 0;
}

/* Slick.jsのドットナビゲーション - 非表示 */
.staff-slider .slick-dots {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ナビゲーションボタン */
.staff-nav-prev,
.staff-nav-next {
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #333;
    cursor: pointer;
    display: flex;
    font-size: 32px;
    height: 50px;
    justify-content: center;
    position: absolute;
    top: 45%;
    transition: all 0.3s ease;
    width: 50px;
    z-index: 20;
}

.staff-nav-prev {
    left: 12px;
}

.staff-nav-next {
    right: 0px;
}

/* Font Awesomeアイコンのスタイル */
.staff-nav-prev i::before {
    content: '\f104';
    display: flex;
    font-family: var(--icon-font-family);
    font-weight: 600;
    margin-right: 10px;
    transform: scale(1.4);
}

.staff-nav-next i::before {
    content: '\f105';
    display: flex;
    font-family: var(--icon-font-family);
    font-weight: 600;
    margin-right: 10px;
    transform: scale(1.4);
}

/* name行の画像とテキストのレイアウト */
.name-with-image {
    padding: 0 !important;
}

.name-image-container {
    align-items: center;
    display: flex;
    gap: 20px;
    padding: 8px 20px 32px 20px;
}

.name-row-image {
    border-radius: 50%;
    flex-shrink: 0;
    height: 60px;
    object-fit: cover;
    width: 60px;
}

.name-text {
    color: #000;
    font-size: 20px;
    font-weight: normal;
}

/* name行の画鋲画像のレイアウト */
.name-with-thumbtack {
    padding: 0 !important;
}

.name-thumbtack-container {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 8px 20px 32px 20px;
}


/* 表と画鋲画像のレイアウト */
.table-with-thumbtack {
    width:100%;
    position: relative;
}

.thumbtack-image {
    height: 44px;
    object-fit: contain;
    position: absolute;
    right: -48px;
    top: -24px;
    width: 24px;
    z-index: 30;
}

/*
======================================
会社概要
======================================
*/
.company-profile__table {
    border-collapse: collapse;
    font-size: 16px;
    margin: 0 auto;
    margin-bottom: 64px;
    max-width: 1000px;
    width: 90%;
}

.company-profile__table th,
.company-profile__table td {
    border-left: none;
    border-right: none;
    height: 72px;
    padding-left: 20px;
    text-align: justify;
    vertical-align: middle;
}

.company-profile__table td:first-child {
    background: #E0E0E0;
    font-weight: bold;
    width: 216px;
}

.company-profile__table td:nth-child(2) {
    background: #fff;
    width: 784px;
}

/* 会社概要スライダー */
.company-profile__slider {
    position: relative;
}

.company-profile__slider * {
    background-color: transparent !important;
}

.company-profile__slider__item {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
}

.company-profile__slider__item img {
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 100%;
    object-fit: cover;
    width: 300px;
    height: 224px;
}

/* Swiperナビゲーションボタンの非表示 */
.company-profile__slider .swiper-button-prev,
.company-profile__slider .swiper-button-next {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Slickナビゲーションボタンの非表示 */
.slick-next,
.slick-arrow {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/*
======================================
アクセス
======================================
*/

.company__access-map {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 1216px;
    width: 100%;
}

.company__access-map iframe,
.company__access-map img {
    height: auto;
    max-width: 100%;
    width: 100%;
}

.company__access-wrap {
    margin: auto;
    width: 100%;
    max-width: 1216px;
    margin-top:40px;
}

.company__access-wrap div {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin: 0 auto;
}

.company__access-wrap__wrap {
    align-items: center;
    background: #fff;
    border: 1px solid #ED7626;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: row;
    gap: 15px;
    height: 168px;
    justify-content: flex-start;
    max-width: 100%;
    padding-left: 40px;
    text-align: justify;
    width: 48%;
    max-width: 600px;
}
.company__access-wrap__wrap div {
    flex-wrap: nowrap !important;
}

.company__access-wrap__wrap > * {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.company__access-wrap__wrap__img {
    flex-shrink: 0;
    height: auto;
    width: 200px;
}

.company__access-wrap__wrap__txt div {
    align-items: flex-start !important;
    display: flex !important;
    flex-direction: column !important;
    height: 104px !important;
    margin-left: 20px !important;
    margin-right: 16px !important;
    width: 100% !important;
}

.company__access-wrap__wrap__txt__heading {
    border-left: 8px solid #ED7626;
    color: #ED7626;
    font-size: var(--font-size-xl);
    font-weight: bold;
    padding-left: 16px;
}


/* レスポンシブ対応 スタッフ紹介スライド用*/
@media screen and (max-width:768px) and (min-width: 599px) {
    .staff-content {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 0;
        height: auto;
        justify-content: center;
        margin: 0;
        max-width: none;
        overflow: visible;
        position: relative;
        width: 100%;
    }

    .staff-image-section {
        align-items: center;
        display: flex;
        flex: none;
        justify-content: center;
        position: static;
        width: 100%;
        transform: none;
        z-index: 2;
    }

    .staff-image {
        align-items: center;
        display: flex;
        height: auto;
        justify-content: center;
        margin: 0;
        max-width: none;
        padding: 0;
        text-align: center;
        width: 100%;
    }

    .staff-image img {
        aspect-ratio: 520 / 360;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        height: auto;
        max-width: none;
        object-fit: cover;
        width: 100%;
    }

    .staff-info-section {
        align-items: flex-start;
        background: white;
        border-radius: 8px;
        box-shadow: 0 3px 6px rgba(0,0,0,0.16);
        display: flex;
        height: auto !important;
        justify-content: center;
        margin: 0 20px;
        margin-left: auto;
        max-width: none;
        padding: 32px 20px;
        position: relative;
        width: 100%;
        z-index: 1;
    }

    .staff-info-table {
        background: #fff;
        border-collapse: collapse;
        border-radius: 0;
        height: auto;
        margin: 0 auto;
        max-width: none;
        overflow: hidden;
        width: 90%;
        z-index: 1;
    }

    .staff-info-table th:nth-child(2),
    .staff-info-table td:nth-child(2) {
        border-bottom: none;
        border-top: none;
    }

    .staff-nav-prev {
        left: 8px;
    }

    .staff-nav-next {
        right: 8px;
    }

    /* 表と画鋲画像のレイアウト */
    .table-with-thumbtack {
        display: inline-block;
        position: relative;
    }

    .thumbtack-image {
        height: 44px;
        object-fit: contain;
        position: absolute;
        right: -12px;
        top: -24px;
        width: 24px;
        z-index: 30;
    }
}

/* レスポンシブ対応 代表挨拶*/
@media screen and (max-width: 940px) and (min-width: 599px) {
    .company__message-wrap div {
        align-items: flex-start;
        flex-direction: row;
        gap: 20px;
        max-height: none;
    }

    .company__message-wrap__txt {
        flex: 1;
        margin: 0 20px 0 0;
        max-width: calc(100% - 240px);
        padding: 0 0 0 20px;
        width: calc(100% - 240px);
    }

    .company__message-wrap__img {
        flex: 0 0 200px;
        margin: 0 20px;
        min-width: 200px;
        width: 200px;
    }

    .company__message-wrap__img img {
        height: auto;
        max-width: 200px;
        min-width: 200px;
        width: 100%;
    }
    .company__access-wrap__wrap{
        width: 100%;
        max-width: none;
    }
}

/* レスポンシブ対応*/
@media screen and (max-width: 599px) {
    .company-profile__table tr:first-child td:first-child{
        border-top: 1px solid #707070;
    }
    .company__message-wrap div {
        flex-direction: column;
        max-height: none;
        flex-wrap: nowrap;
        margin-bottom: 32px;
    }
    .company__message-wrap__txt {
        max-height: none;
        flex: 1;
        padding: 0;
    }
    .company__access-wrap__warp__img{
        width:calc((100vw / 375) * 64);
        height:calc((100vw / 375) * 64);
    }
    .company-profile__slider__item img{
        width: calc((100vw / 375) * 300);
        height: calc((100vw / 375) * 224);
        object-fit: cover;
    }
    .company__message-wrap-sp div {
        align-items: center;
        flex-direction: column;
        gap: 40px;
        max-height: none;
    }

    .company__message-wrap__txt-sp {
        margin: 0;
        max-height: none;
        max-width: 100%;
        min-width: auto;
        overflow-wrap: break-word;
        padding: 0 0 40px;
        width: 100%;
        word-wrap: break-word;
    }

    .company__message-wrap__img {
        align-items: center;
        display: flex;
        justify-content: center;
        width: 100%;
        margin: auto;
    }

    .company__message-wrap__img img {
        height: auto;
        margin: 0 auto;
        max-height: 280px;
        max-width: 100%;
        object-fit: contain;
        width: auto;
    }

    .company__message-wrap__txt__name {
        margin: 24px 0px 0px 0px;
    }

    .company-profile__table {
        margin: 0 auto;
        max-width: 540px !important;
        width: 100%;
        margin-bottom: 32px;
    }

    .company-profile__table tr td:last-child {
        background: white;
        border-bottom: 1px solid #707070;
        border-top: 1px solid #707070;
    }

    .company-profile__table tr td:first-child {
        background: #E0E0E0;
    }

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

    .company-profile__table th,
    .company-profile__table td {
        align-items: center;
        border: none;
        border-bottom: 1px solid #ccc;
        display: block;
        display: flex;
        height: auto;
        line-height: 1.6;
        max-width: 100% !important;
        min-height: 40px;
        padding: 10px 15px;
        text-align: left !important;
        vertical-align: middle !important;
        width: 100% !important;
    }

    /* 会社概要スライダーのレスポンシブ対応（小さい画面） */
    .company-profile__slider {
        position: relative;
    }

    .company-profile__slider > .swiper-button-prev,
    .company-profile__slider > .swiper-button-next {
        background-color: transparent;
        border-radius: 50%;
        color: white;
        display: flex !important;
        font-weight: 600;
        height: 40px;
        opacity: 1 !important;
        transition: all 0.3s ease;
        visibility: visible !important;
        width: 40px;
    }

    .company-profile__slider > .swiper-button-prev {
        align-items: center !important;
        display: flex !important;
        justify-content: center !important;
        left: 20px !important;
        position: absolute !important;
    }

    .company-profile__slider > .swiper-button-next {
        align-items: center !important;
        display: flex !important;
        justify-content: center !important;
        position: absolute !important;
        right: 20px !important;
    }

    /* スタッフ紹介のレスポンシブ対応 */
    .staff-content {
        align-items: center;
        flex-direction: column;
        gap: 0;
        height: auto;
        max-width: 100%;
        min-height: 768px;
        overflow: visible;
        position: relative;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .staff-image-section {
        align-items: center;
        display: flex;
        flex: none;
        justify-content: center;
        position: static;
        width: 100%;
        transform: none;
        z-index: 2;
    }

    .staff-info-section {
        align-items: flex-start;
        display: flex;
        flex: none !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
        height: auto;
        justify-content: center;
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        max-width: 520px;
        padding-bottom: 0 !important;
        padding-top: 0 !important;
        position: relative;
        width: 100%;
        z-index: 1;
    }

    .staff-image {
        align-items: center;
        display: flex;
        height: auto;
        justify-content: center;
        margin-bottom: 0;
        margin-top: 32px;
        max-width: 520px;
        position: relative;
        text-align: center;
        width: 100%;
        z-index: 1;
    }

    .staff-image img {
        aspect-ratio: 520 / 360;
        border-radius: 8px;
        height: auto;
        max-width: 520px;
        object-fit: cover;
        width: 100%;
    }

    .staff-info-section {
        align-items: flex-start;
        background: white;
        border-radius: 8px;
        box-shadow: 0 3px 6px rgba(0,0,0,0.16);
        display: flex;
        height: auto !important;
        justify-content: center;
        margin-top: -30px !important;
        min-height: 400px;
        padding: 52px 24px 32px 23px !important;
        position: relative;
        z-index: 0;
    }

    .staff-nav-prev {
        font-size: 20px;
        height: 40px;
        left: 0px;
        position: absolute;
        transform: scale(1.4);
        width: 40px;
    }

    .staff-nav-next {
        font-size: 20px;
        height: 40px;
        position: absolute;
        right: -8px;
        transform: scale(1.4);
        width: 40px;
    }

    .staff-info-table {
        margin: 16px auto;
        max-width: 480px;
        width: 90%;
    }
    .staff-info-table td{
        font-size: 16px;
        padding: 8px 0 16px;
    }

    .staff-info-table th:nth-child(2),
    .staff-info-table td:nth-child(2) {
        border-bottom: none;
        border-top: none;
    }

    /* スタッフ紹介スライダーのボトム余白を削除（SPのみ） */
    .staff-slider-container {
        margin: 0 !important;
        padding: 0 !important;
    }

    .staff-slider,
    .staff-slide,
    .staff-content,
    .staff-image-section,
    .staff-image {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .staff-slide{
        padding: 4px;
    }

    .thumbtack-image {
        height: 44px;
        object-fit: contain;
        position: absolute;
        right: -16px;
        top: -6px;
        width: 24px;
    }

    .thumbtack-image img {
        position: absolute;
        z-index: 30;
    }

    .company__access-wrap div {
        flex-direction: column;
        gap: 20px;
    }

    .company__access-wrap__wrap {
        height: auto;
        max-width: 500px !important;
        min-height: 120px;
        padding: 20px;
        width: 100% !important;
    }

    .company__access-wrap__wrap div {
        align-items: center;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 15px;
        justify-content: flex-start;
    }

    .company__access-wrap__wrap__img {
        flex: 0 0 40% !important;
        max-width: 40% !important;
        width: 40% !important;
    }

    .company__access-wrap__wrap__txt {
        flex: 1 !important;
        max-width: none !important;
        width: auto !important;
    }

    .company__access-wrap__wrap__txt__heading {
        font-size: 20px;
    }

    .company__access-wrap__wrap__txt p {
        font-size: var(--font-size-sm);
    }

    .company__access-wrap__wrap__txt div {
        align-items: flex-start !important;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        margin-left: 0px !important;
        width: 100% !important;
    }

    .company__access-wrap__wrap__img img {
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        height: 64px !important;
        max-height: 64px !important;
        max-width: 64px !important;
        object-fit: contain !important;
    }
}
