@charset "UTF-8";

/* =========================================================
   Modal (Base Layout)
========================================================= */
/* overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

/* container */
.modal-contents {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

/* centering frame (outer) */
.modal-outer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1032px, 90vw);
  height: 100%;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

@media (max-width: 768px) {
  .modal-outer {
    width: 100%;
  }
}

/* modal box (inner) */
.modal-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1032px, 90vw);
  height: min(650px, 80vh);
  transform: translate(-50%, -50%);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

/* panel/body : 基本は「内側に収める」設計 */
.modal-panel {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 0;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .modal-panel {
    height: auto;
  }
}

.modal-body {
  min-height: 0;
  padding: 93px 0;
  background: #fff;
  overflow-x: hidden;
  max-height: 90vh;
  /* overflow-y: hidden; */
  z-index: 0;
}

@media (max-width: 768px) {
  .modal-body {
    height: auto;
  }
}

/* pointer events (safety) */
.modal-inner,
.modal-body,
.modal-prev,
.modal-next {
  pointer-events: auto;
}

/* =========================================================
   Close Button
========================================================= */
.js-modal-close {
  position: absolute;
  top: 34px;
  right: 54px;
  width: 64px;
  height: 64px;
  background: #000;
  border-radius: 50%;
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: ease 300ms opacity;
}

@media (max-width: 768px) {
  .js-modal-close {
    width: 40px;
    height: 40px;
    top: 50px;
    right: 12px;
  }
}

@media (any-hover: hover) {
  .js-modal-close:hover {
    opacity: 0.5;
  }
}

.js-modal-close::before,
.js-modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 32px;
  height: 2px;
  background: #fff;
}

@media (max-width: 768px) {

  .js-modal-close::before,
  .js-modal-close::after {
    width: 24px;
  }
}

.js-modal-close::before {
  rotate: 45deg;
}

.js-modal-close::after {
  rotate: -45deg;
}

/* =========================================================
   Navigation
========================================================= */
.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  background: #FDC426;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: ease 300ms opacity;
}

@media (max-width: 768px) {

  .modal-prev,
  .modal-next {
    width: 40px;
    height: 40px;
  }
}

@media (any-hover: hover) {

  .modal-prev:hover,
  .modal-next:hover {
    opacity: 0.5;
  }
}

.modal-prev::before,
.modal-next::before {
  content: "";
  position: absolute;
  background: url(../assets/img/breweries/arrow_b.svg) no-repeat;
  background-size: contain;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 22px;
  aspect-ratio: 1;
}

@media (max-width: 768px) {

  .modal-prev::before,
  .modal-next::before {
    width: 15px;
  }
}

.modal-prev::after,
.modal-next::after {
  display: none;
}

.modal-prev {
  left: 0;
}

.modal-next {
  right: 0;
}

.modal-prev::before {
  transform: rotate(180deg);
  top: 48%;
  left: 48%;
}

.modal-next::before {
  transform: rotate(0deg);
  top: 52%;
  left: 52%;
}

/* =========================================================
   Swiper (Common Minimum)
========================================================= */
.modal-swiper {
  position: relative;
  width: 100%;
}

.modal-swiper .swiper-wrapper {
  align-items: flex-start;
}

/* =========================================================
   Card Content (Common)
========================================================= */
.modal-card {
  max-width: 728px;
  margin-inline: auto;
  text-align: center;
}

@media (max-width: 768px) {
  .modal-card {
    max-width: 100%;
  }
}

.modal-card h3 {
  margin-bottom: 16px;
}

/* =========================================================
   Modal: occupation
========================================================= */
#modal-occupation {
  /* Swiperは内容高に任せる */
}

#modal-occupation .modal-inner {
  height: auto;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#modal-occupation .modal-panel {
  height: auto;
}

#modal-occupation .modal-body {
  flex: 0 0 auto;
  height: auto;
  /* overflow-y: hidden; */
}

#modal-occupation .modal-swiper,
#modal-occupation .modal-swiper-area,
#modal-occupation .modal-swiper .swiper-wrapper,
#modal-occupation .modal-swiper .swiper-slide {
  height: auto;
}

@media (max-width: 768px) {
  #modal-occupation .modal-swiper .swiper-slide {
    padding-inline: 20px;
    padding-top: 32px;
  }
}

#modal-occupation .modal-panel {
  width: 870px;
  min-width: 870px;
  margin-inline: auto;
  padding-block: 40px;
}

@media (max-width: 768px) {
  #modal-occupation .modal-panel {
    width: 100%;
    min-width: initial;
    padding-block: 0 40px;
  }
}

#modal-occupation .modal-panel .modal-body::before {
  content: "";
  position: absolute;
  top: -110px;
  left: 50%;
  translate: -50% 0;
  width: 653px;
  height: 335px;
  background: url(../assets/img/breweries/occupation_modal_bg_pc.png) no-repeat;
  background-size: contain;
  z-index: 0;
}

@media (max-width: 768px) {
  #modal-occupation .modal-panel .modal-body::before {
    width: 306px;
    height: 160px;
    top: -40px;
    left: 50%;
    translate: -50% 0;
  }
}

#modal-occupation .modal-head-img {
  display: block;
  margin-inline: auto;
  width: 376px;
  height: auto;
}

@media (max-width: 768px) {
  #modal-occupation .modal-head-img {
    width: 85%;
    max-width: 360px;
  }
}

#modal-occupation .swiper-slide__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#modal-occupation .slide-clip {
  position: relative;
  z-index: 1;
  background: #fff;
  overflow: hidden;
}

#modal-occupation .modal-card-info {
  display: flex;
  gap: 48px;
  margin-bottom: 80px;
}

@media (max-width: 768px) {
  #modal-occupation .modal-card-info {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 64px;
  }
}

#modal-occupation .modal-card-column {
  width: calc((100% - 48px) / 2);
}

@media (max-width: 768px) {
  #modal-occupation .modal-card-column {
    width: auto;
    padding-inline: 20px;
  }
}

#modal-occupation .modal-card-column .card-info-head {
  position: relative;
  font-size: 20px;
  font-weight: 800;
  text-align: left;
  padding-bottom: 16px;
  padding-left: 46px;
  border-bottom: 2px solid #55BBE3;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  #modal-occupation .modal-card-column .card-info-head {
    font-size: 18px;
    margin-bottom: 16px;
    line-height: 1.25;
  }
}

#modal-occupation .modal-card-column .card-info-head::before {
  content: "";
  position: absolute;
  background: url(../assets/img/breweries/icon_star.svg) no-repeat;
  background-size: contain;
  width: 40px;
  height: 38px;
  top: -12px;
  left: 0;
}

@media (max-width: 768px) {
  #modal-occupation .modal-card-column .card-info-head::before {
    top: 25%;
    translate: 0 -50%;
  }
}

#modal-occupation .modal-head {
  position: relative;
  width: 100%;
  border-radius: 25px;
  background: #009DD6;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  padding-block: 12px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  #modal-occupation .modal-head {
    line-height: 1.333;
    text-align: center;
    border-radius: 40px;
    top: -12px;
    margin-bottom: 40px;
  }
}

#modal-occupation .modal-card-column .card-info-text {
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  #modal-occupation .modal-card-column .card-info-text {
    margin-bottom: 24px;
  }
}

#modal-occupation .tab {
  position: relative;
  width: 100%;
  height: auto;
}

#modal-occupation .tab .tab-head {
  position: relative;
  display: block;
  width: fit-content;
  margin-inline: auto;
  padding: 12px 48px;
}

@media (max-width: 768px) {
  #modal-occupation .tab .tab-head {
    padding: 8px 40px;
  }
}

#modal-occupation .tab .tab-head + .tab-heading {
  margin-top: 40px;
}

#modal-occupation .tab .tab-head + .note {
  margin-top: 40px;
  margin-bottom: 16px;
}

#modal-occupation .tab .tab-heading {
  display: flex;
  justify-content: center;
  gap: 4px;
}

@media (max-width: 768px) {
  #modal-occupation .tab .tab-heading {
    padding-inline: 20px;
  }
}

#modal-occupation .tab .tab-heading.bottom .tab-button {
  border-top: initial;
  border-bottom: 2px solid #55BBE3;
}

@media screen and (max-width: 768px) {
  #modal-occupation .tab .tab-heading.bottom .tab-button {
    min-height: 100px;
  }
}

#modal-occupation .tab .tab-button {
  position: relative;
  width: 240px;
  height: 80px;
  border: 2px solid #55BBE3;
  border-bottom: initial;
  background: #fff;
  transform-origin: bottom;
  transition: ease 300ms opacity;
}

@media (any-hover: hover) {
  #modal-occupation .tab .tab-button:hover {
    opacity: 0.5;
  }
}

@media (max-width: 768px) {
  #modal-occupation .tab .tab-button {
    /* height: 100%; */
    height: auto;
    padding-block: 8px;
  }
}

#modal-occupation .tab .tab-button .tab-button-text {
  font-size: 20px;
  font-weight: 800;
}

@media (max-width: 768px) {
  #modal-occupation .tab .tab-button .tab-button-text {
    font-size: 18px;
    line-height: 1.333;
    min-height: 40px;
  }
}

#modal-occupation .tab .tab-button .tab-button-time {
  font-family: "Lato", "Meiryo", sans-serif;
  font-size: 14px;
  font-weight: 700;
  width: fit-content;
  background: #FDC426;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-inline: auto;
  padding-block: 4px;
  padding-inline: 26px;
  line-height: 1;
}

@media (max-width: 768px) {
  #modal-occupation .tab .tab-button .tab-button-time {
    padding-inline: 8px;
    margin-block: 4px;
    line-height: 1.333;
  }
}

#modal-occupation .tab .tab-button.-active {
  background: #55BBE3;
}

#modal-occupation .tab .tab-button.-active .tab-button-text {
  color: #fff;
}

#modal-occupation .tab .tab-content-wrap {
  position: relative;
  background: #55BBE3;
  width: 100%;
  padding-block: 58px 50px;
  padding-inline: 88px;
}

@media (max-width: 768px) {
  #modal-occupation .tab .tab-content-wrap {
    width: calc(100% + 40px);
    height: auto !important;
    padding-block: 48px 50px;
    padding-inline: 24px;
    left: -20px;
  }
}

#modal-occupation .tab .tab-content {
  display: none;
}

#modal-occupation .tab .tab-content.-active {
  display: block;
}

#modal-occupation .tab .timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (max-width: 768px) {
  #modal-occupation .tab .timeline {
    gap: 24px;
  }
}

#modal-occupation .tab .timeline .timeline-item {
  position: relative;
  display: flex;
  gap: 24px;
}

#modal-occupation .tab .timeline .timeline-item:not(:last-of-type)::before {
  content: "";
  position: absolute;
  width: 8px;
  height: calc(100% + 40px);
  background: #fff;
  top: 0;
  left: 45px;
  z-index: 0;
}

@media (max-width: 768px) {
  #modal-occupation .tab .timeline .timeline-item:not(:last-of-type)::before {
    left: 36px;
  }
}

#modal-occupation .tab .timeline-head {
  position: relative;
  font-family: "Lato", "Meiryo", sans-serif;
  font-size: 20px;
  font-weight: 700;
  width: 96px;
  height: 28px;
  display: grid;
  place-content: center;
  border-radius: 16px;
  letter-spacing: 0.06em;
  background: #fff;
  z-index: 1;
}

@media (max-width: 768px) {
  #modal-occupation .tab .timeline-head {
    min-width: 80px;
    width: 80px;
    font-size: 18px;
  }
}

#modal-occupation .tab .timeline-head.-notxt {
  background: transparent;
}

#modal-occupation .tab .timeline-body-head {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

@media screen and (max-width: 768px) {
  #modal-occupation .tab .timeline-body-head {
    font-size: 18px;
  }
}

#modal-occupation .tab .timeline-body-head.mt {
  margin-top: 30px;
}

#modal-occupation .tab .timeline-body-list {
  position: relative;
  margin-top: 16px;
}

#modal-occupation .tab .timeline-body-item {
  position: relative;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding-left: 1em;
  line-height: 2;
}

@media screen and (max-width: 768px) {
  #modal-occupation .tab .timeline-body-item {
    line-height: 1.75;
  }
}

#modal-occupation .tab .timeline-body-item::before {
  content: "・";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

#modal-occupation .note {
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

/* =========================================================
   Modal: systems（別設計なので分離）
========================================================= */
@media screen and (max-width: 768px) {
  #modal-systems .modal-body {
    height: 100%;
  }
}

#modal-systems .modal-outer {
  width: min(856px, 90vw);
  height: 100%;
}

@media screen and (max-width: 768px) {
  #modal-systems .modal-outer {
    height: auto;
  }
}

#modal-systems .modal-inner {
  width: min(856px, 90vw);
  height: auto;
  min-height: min(280px, 50vh);
}

@media (max-width: 768px) {
  #modal-systems .modal-inner {
    position: relative;
    min-height: min(280px, 50vh);
    width: calc(100% - 40px);
    left: calc(50% - 20px);
    margin-inline: auto;
  }
}

#modal-systems .modal-panel {
  height: 100%;
}

#modal-systems .js-modal-close {
  top: -28px;
}

@media screen and (max-width: 768px) {
  #modal-systems .js-modal-close {
    top: initial;
    bottom: 16px;
    left: 50%;
    translate: -50% 0;
  }
}

#modal-systems .modal-swiper,
#modal-systems .modal-swiper .swiper-wrapper {
  height: 100%;
}

#modal-systems .modal-swiper .swiper-slide {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-inline: 64px;
}

@media screen and (max-width: 768px) {
  #modal-systems .modal-swiper .swiper-slide {
    padding-inline: 40px;
  }
}

#modal-systems .modal-slide-head {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #55BBE3;
}

#modal-systems .modal-slide-list .bold {
  font-weight: 700;
}

#modal-systems .modal-slide-item {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  padding-left: 1em;
  line-height: 2;
}

@media screen and (max-width: 768px) {
  #modal-systems .modal-slide-item {
    padding-left: 0.8em;
  }
}

#modal-systems .modal-slide-item.bold {
  font-weight: 700;
}

#modal-systems .modal-slide-item::before {
  content: "・";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

#modal-systems .modal-slide-item.-nodot {
  padding-left: 0;

  &::before {
    display: none;
  }
}

#modal-systems .modal-slide-item.no {
  padding-left: 0;
}

#modal-systems .modal-slide-item.no::before {
  display: none;
}

@media screen and (max-width: 768px) {
  #modal-systems .modal-prev {
    left: -16px;
  }

  #modal-systems .modal-next {
    right: -16px;
  }
}

#modal-systems .modal-panel {
  width: 680px;
  min-width: 680px;
  margin-inline: auto;
  /* padding-block: 93px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* max-height: 90vh; */
  /* overflow-y: scroll; */
}

@media (max-width: 768px) {
  #modal-systems .modal-panel {
    width: 100%;
    min-width: initial;
    justify-content: flex-start;
    padding-block: 60px 104px;
  }
}

#modal-systems .modal-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: 328px;
  height: 12px;
  background: #55BBE3;
  z-index: 1;
}

@media screen and (max-width: 768px) {
  #modal-systems .modal-panel::before {
    width: 170px;
  }
}

#modal-systems .modal-swiper .swiper-slide {
  justify-content: flex-start;
  height: auto;
}