@charset "utf-8";
:root {
  --bm-purple: #b478aa;
  --bm-salmon: #f0786e;
  --bm-blue: #0d64b0;
  --bm-pink: #e38aa7;
  --bm-gray: #788296;
  --bm-blue-gray: #69819e;
  --bm-brown: #a58c78;
}

.content-outer {
  max-width: 1080px;
  margin-top: 128px;
  margin-inline: auto;
  margin-bottom: 128px;
  padding-inline: 40px;
  @media screen and (max-width: 768px) {
    padding-inline: 16px;
    margin-top: 64px;
    margin-bottom: 80px;
  }
}

.sec-intro {
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 128px;
  @media screen and (max-width: 768px) {
    margin-bottom: 56px;
  }
  
  .head-text__unit {
    margin-bottom: 0;
    .head {
      position: relative;
      font-size: 3.2rem;
      @media screen and (max-width: 768px) {
        font-size: 1.8rem;
      }
      &::before {
        top: initial;
        bottom: -16px;
      }
    }
  }
}

.intro-head {
  position: relative;
  width: fit-content;
  font-size: 3.2rem;
  font-weight: 700;
  text-align: center;
  margin-inline: auto;
}

.link-list {
  max-width: 1040px;
  display: flex;
  flex-wrap: wrap;
  gap: 6.25cqw;
  @media screen and (max-width: 768px) {
    gap: 40px;
  }
}

.link-item {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: calc(calc(100% - 80px) / 2);
  @media screen and (max-width: 768px) {
    width: auto;
    gap: 16px;
  }
  .item-link {
    position: relative;
    
    @media (any-hover: hover) {
      &:hover{
        a { opacity: 1; }
        img {
          scale: 1.1;
        }
      }
    }
  }
  .item-img {
    display: block;
    position: relative;
    background: var(--white);
    box-shadow: 2px 0px 6px rgba(0, 0, 0, 0.15);
    border-radius: 48px;
    overflow: hidden;

    img {
      position: relative;
      left: 50%;
      translate: -50% 0;
      scale: 1;
      top: 0;
      transition: ease 300ms scale;
    }
  }
  .arrow {
    position: absolute;
    width: 50px;
    aspect-ratio: 1;
    background: url(../../assets/img/people/branch-members/branch-members-icon.png) no-repeat;
    background-size: contain;
    right: 32px;
    bottom: -16px;
    transition: ease 300ms right;
  }
  .item-prof {
    display: flex;
    flex-direction: column;
    gap: 50px;
    @media screen and (max-width: 768px) {
      gap: 36px;
    }
    .name {
      position: relative;
      font-size: 2.4rem;
      font-weight: 700;
      @media screen and (max-width: 768px) {
        font-size: 1.8rem;
      }
      &::before {
        content: "";
        position: absolute;
        width: 50px;
        height: 1px;
        background: var(--black);
        bottom: -20px;
        left: 0;
        translate: 0 -50%;
        z-index: 1;
        @media screen and (max-width: 768px) {
          width: 32px;
        }
      }
    }
  }

  &.hokuriku .item-prof .name::before {
    background: var(--bm-purple);
  }
  &.hokkaido .item-prof .name::before {
    background: var(--bm-salmon);
  }
  &.tohoku .item-prof .name::before {
    background: var(--bm-blue);
  }
  &.kyusyu .item-prof .name::before {
    background: var(--bm-pink);
  }
  &.osaka .item-prof .name::before {
    background: var(--bm-gray);
  }
  &.nagoya .item-prof .name::before {
    background: var(--bm-brown);
  }
  &.chugokuShikoku .item-prof .name::before {
    background: var(--bm-blue-gray);
  }
}


.c-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;

  &.-open {
    display: block;
  }

  &__overlay {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / .6);
  }

  &__panel {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
  }

  &__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid #000;
    background: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
  }

  &__viewport {
    width: min(920px, 100%);
    max-height: min(80vh, 720px);
    background: #fff;
    border-radius: 20px;
    overflow: auto;
    position: relative;
  }

  &__screen {
    padding: 32px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 240ms ease, transform 240ms ease;
  }

  &.-anim-out {
    .c-modal__screen {
      opacity: 0;
      transform: translateY(-12px);
    }
  }

  &.-anim-in {
    .c-modal__screen {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* :modal */
.modal-head {
  padding-bottom: 24px;
  border-bottom: 2px solid var(--black);
  .branch {
    font-size: 2rem;
    font-weight: 700;
    @media screen and (max-width: 768px) {
      font-size: 1.2rem;
    }
  }
  .head-group {
    display: flex;
    gap: 60px;
    @media screen and (max-width: 768px) {
      flex-direction: column;
      gap: 16px;
    }
  }
  .branch-unit {
    position: relative;
    &::before {
      content: "" ;
      position: absolute;
      top: 12px;
      right: -30px;
      width: 2px;
      height: 48px;
      background: var(--black);
      z-index: 2;
      @media screen and (max-width: 768px) {
        display: none;
      }
    }
    .head {
      font-size: 3.2rem;
      font-weight: 700;
      @media screen and (max-width: 768px) {
        font-size: 2rem;
      }
    }
    .area {
      position: relative;
      font-size: 2rem;
      font-weight: 700;
      padding-left: 20px;
      @media screen and (max-width: 768px) {
        font-size: 1.4rem;
      }
      &::before {
        content: "" ;
        position: absolute;
        width: 12px;
        aspect-ratio: 1;
        border-radius: 50%;
        background: var(--black);
        top: 8px;
        left: 4px;
        z-index: 1;
        @media screen and (max-width: 768px) {
          top: 0;
          left: 2px;
        }
      }
      &::after {
        content: "" ;
        position: absolute;
        width: 2px;
        height: 10px;
        background: var(--black);
        top: 18px;
        left: 9px;
        z-index: 1;
        @media screen and (max-width: 768px) {
          height: 8px;
          top: 12px;
          left: 7px;
        }
      }
    }
  }
  .branch-member {
    font-size: 1.6rem;
    line-height: 2;
    @media screen and (max-width: 768px) {
      font-size: 1.4rem;
    }
  }
}

.modal-body {
  padding: 60px 0 140px;
  box-sizing: border-box;
  min-height: 0;
  flex: 1 1 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  -ms-overflow-style: none;
  scrollbar-width: none;
  box-sizing: border-box;
  background: #fff;
  @media screen and (max-width: 768px) {
    padding: 30px 0 140px;
  }

  .modal-img + .member-group {
    margin-top: 60px;
  }

  .member-group {
    display: flex;
    gap: 30px;
    @media screen and (max-width: 768px) {
      gap: 16px;
      align-items: flex-start;
    }

    + .member-group {
      margin-top: 24px;
    }
  }

  .member-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    @media screen and (max-width: 768px) {
      padding-top: 8px;
    }
    img {
      width: 48px;
      aspect-ratio: 1;
      @media screen and (max-width: 768px) {
        width: 42px;
      }
    }
    .name {
      margin-top: 4px;
      font-size: 1.6rem;
      @media screen and (max-width: 768px) {
        font-size: 1.2rem;
      }
    }
  }

  .member-unit {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 60px;
    @media screen and (max-width: 768px) {
      margin-top: 32px;
      flex-direction: column;
      gap: 16px;
    }
  }

  .split-img {
    width: 50%;
    @media screen and (max-width: 768px) {
      width: 100%;
    }
  }
}


.js-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;

  &.-open {
    display: block;
  }

  &[aria-hidden="true"] {
    pointer-events: none;
  }
  &[aria-hidden="false"] {
    pointer-events: auto;
  }

  .js-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 1;
  }

  .modal-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    display: grid;
    place-items: center;
    width: min(1040px, 92vw);
    height: min(calc(100svh - 64px), calc((min(1040px, 120vw)) * 660 / 1040));
    aspect-ratio: 1040 / 660;
    z-index: 5;
    @media screen and (max-width: 768px) {
      padding: 16px;
      place-items: end center;
      height: 90dvh;
      aspect-ratio: initial;
    }
  }

  .modal-outer {
    position: relative;
    border-radius: 64px;
    overflow: hidden;
    width: min(1040px, 93vw);
    height: min(calc(100svh - 64px), calc((min(1040px, 120vw)) * 660 / 1040));
    @media screen and (max-width: 768px) {
      height: 90dvh;
      border-radius: 24px;
    }
  }
  
  .js-modal-viewport {
    width: 100%;
    height: 100dvh;
    max-height: min(100dvh, 660px);
    height: auto;
    box-sizing: border-box;
    background: #fff;
    overflow-y: hidden;
    padding: 66px 40px 66px 30px;
    border-radius: 64px;
    @media screen and (max-width: 768px) {
      max-height: 90dvh;
      padding: 20px 10px 20px 20px;
      border-radius: 24px;
    }
  }
  .js-modal-panel {
    display: none;
    &.is-active {
      display: flex;
      flex-direction: column;
      position: relative;
      max-height: 86vh;
      max-height: 86dvh;
      height: min(calc(594 / 667 * 100dvh), 596px);
      box-sizing: border-box;
      overflow-y: auto;
      padding-right: 10px;
      @media screen and (max-width: 768px) {
        height: 90dvh;
      }
    }
  }

  .js-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50vmax;
    cursor: pointer;
    line-height: 1;
    padding: 0;

    &::before {
      content: "" ;
      position: absolute;
      top: 50%;
      left: 50%;
      translate: -50% -50%;
      width: 18px;
      height: 2px;
      rotate: 45deg;
      background: var(--black);
      z-index: 1;
    }

    &::after {
      content: "" ;
      position: absolute;
      top: 50%;
      left: 50%;
      translate: -50% -50%;
      width: 18px;
      height: 2px;
      rotate: 135deg;
      background: var(--black);
      z-index: 1;
    }

    @media screen and (max-width: 768px) {
      top: 16px;
      right: 12px;
      width: 44px;
      height: 44px;
    }

    &:focus-visible {
      outline: 3px solid rgba(0, 0, 0, .35);
      outline-offset: 2px;
    }
  }

  .modal-prev,
  .modal-next {
    position: sticky;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 64px;
    padding: 16px;
    text-decoration: none;
    font-weight: 700;
    color: #111;
    background: rgba(255, 255, 255, .96);
    /* border-top: 1px solid rgba(0, 0, 0, .1); */
    cursor: pointer;

    @media screen and (max-width: 768px) {
      min-height: 56px;
    }

    &.is-disabled {
      opacity: .35;
      pointer-events: none;
    }

    &:focus-visible {
      outline: 3px solid rgba(0, 0, 0, .35);
      outline-offset: -3px;
    }
  }

  /* .js-modal-prev {
    border-right: 1px solid rgba(0, 0, 0, .08);
  } */

  .modal-nav {
    position: relative;
    padding-bottom: 80px;
    margin-top: 80px;
    padding-top: 60px;
    @media screen and (max-width: 768px) {
      margin-top: 24px;
      padding-top: 32px;
      padding-bottom: 32px;
    }

    @media screen and (max-width: 768px) {
      grid-template-columns: 1fr 1fr;
    }

    &::before {
      content: "" ;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 2px;
      background: var(--black);
      z-index: 0;
    }
  }

  .modal-nav__list {
    max-width: 480px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-inline: auto;
    gap: 40px;
    @media screen and (max-width: 768px) {
      grid-template-columns: 1fr;
    }
  }

  .js-modal-content {
    display: grid;
    gap: 24px;

    @media screen and (max-width: 768px) {
      gap: 16px;
    }
  }

  .js-modal-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.35;

    @media screen and (max-width: 768px) {
      font-size: 1.8rem;
    }
  }

  .js-modal-text {
    font-size: 1.6rem;
    line-height: 1.9;

    @media screen and (max-width: 768px) {
      font-size: 1.4rem;
    }
  }

  .modal-link {
    position: relative;
    display: grid;
    place-content: center;
    padding: 0;
    @media (any-hover: hover) {
      &:hover{
        opacity: 1;
        .modal-link__wrap img {
          scale: 1.1;
        }
      }
    }
  }

  .modal-link .modal-link__wrap {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    &::before {
      content: "" ;
      position: absolute;
      background: url(../../assets/img/people/branch-members/modal-arrow.svg) no-repeat;
      background-size: contain;
      top: 50%;
      translate: 0 -50%;
      width: 18px;
      height: 16px;
      z-index: 1;
    }
    &::after {
      content: "" ;
      position: absolute;
      background: url(../../assets/img/people/branch-members/modal-arrow.svg) no-repeat;
      background-size: contain;
      top: 50%;
      translate: 0 -50%;
      width: 18px;
      height: 16px;
      z-index: 1;
    }
    img {
      transition: ease 300ms scale;
    }
  }

  .modal-prev .modal-link__wrap::before {
    left: 8px;
  }

  .modal-next .modal-link__wrap::before {
    right: 8px;
    rotate: 180deg;
  }


  .modal-link span {
    position: absolute;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
  }
}


.hokkaido {
  .js-modal-viewport {
    border: 2px solid var(--bm-salmon);
  }

  .modal-head .branch {
    color: var(--bm-salmon);
  }

  .js-modal-close {
    background: var(--bm-salmon);
  }

  .js-modal-close::before,
  .js-modal-close::after {
    background: var(--white);
  }

  .branch-unit .area::before {
    background: var(--bm-salmon);
  }

  .modal-head {
    border-bottom: 2px solid var(--bm-salmon);
  }

  .modal-nav::before {
    background: var(--bm-salmon); 
  }
}

.tohoku {
  .js-modal-viewport {
    border: 2px solid var(--bm-blue);
  }

  .modal-head .branch {
    color: var(--bm-blue);
  }

  .js-modal-close {
    background: var(--bm-blue);
  }

  .js-modal-close::before,
  .js-modal-close::after {
    background: var(--white);
  }

  .branch-unit .area::before {
    background: var(--bm-blue);
  }

  .modal-head {
    border-bottom: 2px solid var(--bm-blue);
  }

  .modal-nav::before {
    background: var(--bm-blue); 
  }
}

.hokuriku {
  .js-modal-viewport {
    border: 2px solid var(--bm-purple);
  }

  .modal-head .branch {
    color: var(--bm-purple);
  }

  .js-modal-close {
    background: var(--bm-purple);
  }

  .js-modal-close::before,
  .js-modal-close::after {
    background: var(--white);
  }

  .branch-unit .area::before {
    background: var(--bm-purple);
  }

  .modal-head {
    border-bottom: 2px solid var(--bm-purple);
  }

  .modal-nav::before {
    background: var(--bm-purple); 
  }
}

.nagoya {
  .js-modal-viewport {
    border: 2px solid var(--bm-brown);
  }

  .modal-head .branch {
    color: var(--bm-brown);
  }

  .js-modal-close {
    background: var(--bm-brown);
  }

  .js-modal-close::before,
  .js-modal-close::after {
    background: var(--white);
  }

  .branch-unit .area::before {
    background: var(--bm-brown);
  }

  .modal-head {
    border-bottom: 2px solid var(--bm-brown);
  }

  .modal-nav::before {
    background: var(--bm-brown); 
  }
}

.chugoku–shikoku {
  .js-modal-viewport {
    border: 2px solid var(--bm-blue-gray);
  }

  .modal-head .branch {
    color: var(--bm-blue-gray);
  }

  .js-modal-close {
    background: var(--bm-blue-gray);
  }

  .js-modal-close::before,
  .js-modal-close::after {
    background: var(--white);
  }

  .branch-unit .area::before {
    background: var(--bm-blue-gray);
  }

  .modal-head {
    border-bottom: 2px solid var(--bm-blue-gray);
  }

  .modal-nav::before {
    background: var(--bm-blue-gray);
  }
}

.osaka {
  .js-modal-viewport {
    border: 2px solid var(--bm-blue-gray);
  }

  .modal-head .branch {
    color: var(--bm-blue-gray);
  }

  .js-modal-close {
    background: var(--bm-blue-gray);
  }

  .js-modal-close::before,
  .js-modal-close::after {
    background: var(--white);
  }

  .branch-unit .area::before {
    background: var(--bm-blue-gray);
  }

  .modal-head {
    border-bottom: 2px solid var(--bm-blue-gray);
  }

  .modal-nav::before {
    background: var(--bm-blue-gray); 
  }
}

.kyusyu {
  .js-modal-viewport {
    border: 2px solid var(--bm-pink);
  }

  .modal-head .branch {
    color: var(--bm-pink);
  }

  .js-modal-close {
    background: var(--bm-pink);
  }

  .js-modal-close::before,
  .js-modal-close::after {
    background: var(--white);
  }

  .branch-unit .area::before {
    background: var(--bm-pink);
  }

  .modal-head {
    border-bottom: 2px solid var(--bm-pink);
  }

  .modal-nav::before {
    background: var(--bm-pink); 
  }
}

html._noscroll {
  overflow: hidden;
}

body {
  &. _noscroll {
    overflow: hidden;
  }
}

html._noscroll {
  overflow: hidden;
}

body {
  &. _noscroll {
    overflow: hidden;
  }
}


.lowerPage .fv .fv-heading {
  top: 55%;
  left: 50%;
  translate: -50% -50%;
  width: max-content;
}

@media screen and (max-width: 560px) {
  .lowerPage .fv .fv-heading {
    top: 50%;
  }
}

#branch .fv-deco .triangle[data-num=tri03] {
  left: 13%;
}

#branch .fv-deco .triangle.-show[data-num=tri03] {
  left: 14%;
}

.lowerPage .fv .fv-img::before {
  background-image: initial;
}


.lowerPage .sibling-links .heading-unit .heading-category {
  padding-bottom: 10px;
}

