@charset "UTF-8";

:root {
    --bg: url(../img/company-information/mv.jpg) center / cover no-repeat;
	--bg-sp: url(../img/company-information/mv_sp.jpg) center / cover no-repeat;
}

@media only screen and (max-width: 768px) {
    .c-heading--primary h1.c-heading__en {
        font-size: 30px;
        margin-bottom: 10px;
    }
}

.offices {
    padding-block: 100px 160px;
}

@media only screen and (max-width: 768px) {
    .offices {
        padding-top: 80px 120px;
    }
}

.offices__tabs {
    display: flex;
    gap: 10px;
    background: #D4D7ED;
    max-width: 540px;
    border-radius: 5px;
    padding: 5px;
}


@media only screen and (max-width: 768px) {
    .offices__tabs {
		position: sticky;
		top: 70px;
		z-index: 200;
        max-width: 100%;
    }
}

.offices__tab-btn {
    position: relative;
    padding-block: 10px;
    background: #D4D7ED;
    border: none;
    font-size: 20px;
    color: #0000004d;
    cursor: pointer;
    border-radius: 5px;
    flex: 1;
	overflow: visible;


    &.is-active {
        background: var(--color-white);
        color: var(--color-blue);
        font-weight: 700;


        &::after {
            content: "";
            position: absolute;
z-index: 1;
            bottom: -16px;
            left: 50%;
            transform: translateX(-50%);
            width: 14px;
            height: 12px;
            background: url("data:image/svg+xml,%3Csvg width='27' height='24' viewBox='0 0 27 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.5297 22.5C12.2995 23.8333 14.224 23.8333 14.9938 22.5L26.2521 3C27.0219 1.66666 26.0596 0 24.52 0H2.00339C0.463786 0 -0.498463 1.66667 0.271338 3L11.5297 22.5Z' fill='%23D4D7ED'/%3E%3C/svg%3E") no-repeat center / contain;
        }
    }
}

.offices__body {
    display: flex;
    gap: 50px;
    align-items: stretch;
    background: var(--color-gray);
    border-radius: 5px;
    margin-top: 20px;
    padding: 40px;
}

@media only screen and (max-width: 768px) {
    .offices__body {
        flex-direction: column;
        margin-top: 20px;
        padding: 20px 10px;
    }
}

.offices__left {
  max-width: 340px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 80px;
  align-self: flex-start;
}

@media only screen and (max-width: 768px) {
    .offices__left {
        max-width: 100%;
		width: 100%;
        top: 0;
        height: 100vh;
        padding-block: 140px 20px;
        overflow: hidden;
        z-index: 100;
        background: var(--color-gray);
    }
}

.offices__map iframe {
    aspect-ratio: 340 / 300;
    max-width: 340px;
    width: 100%;
    height: auto;
    border-radius: 5px;
    border: none;
}

@media only screen and (max-width: 768px) {
    .offices__map iframe {
        aspect-ratio: 2 / 1;
        max-width: 100%;
    }
}

.offices__info {
    margin-top: 25px;
}

@media only screen and (max-width: 768px) {
    .offices__info {
        margin-top: 15px;
    }
}

.offices__name {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
}

.offices__address,
.offices__tel {
    font-size: 14px;
    line-height: 1.8;
}

.offices__right {
    flex: 1;
}

.offices__list-wrap {
    display: none;

    &.is-active {
        display: block;
    }
}

.offices__list-label {
    margin-bottom: 40px;

}

.offices__list-group {
    margin-bottom: 50px;

    &:last-child {
        margin-bottom: 0;
    }
}

.offices__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.offices__list-item {
  min-height: 64px;
  padding: 10px;
  font-size: 14px;
  cursor: pointer;
  line-height: 1.4;
  background: var(--color-white);
  border-radius: 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease, color 0.3s ease;

  &::after {
    content: "";
    width: 6px;
    height: 10px;
    flex-shrink: 0;
    background: url("data:image/svg+xml, %3Csvg width='6' height='10' viewBox='0 0 6 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.53125 0.530273L4.83894 4.83797L0.53125 9.14566' stroke='%232635A7' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center / contain;
  }

  &:hover {
    background: #d0d2e9;
    color: var(--color-blue);
  }

  &.is-active {
    background: #d0d2e9;
    color: var(--color-blue);
  }
}

@media (hover: hover) and (pointer: fine) {
  .offices__list-itemm:hover {
    background: #d0d2e9;
    color: var(--color-blue);
  }
}