@charset "UTF-8";

/*====================================
 * Work Page Stylesheet (BEM Refactored & Nested)
 * =====================================*/

/*------------------------------------
 * テーマ・グループ別 CSS変数定義
 * ------------------------------------*/
/* ライブエンタメグループ用 (チケット) */
.work__section--ticket {
  --theme-color: #35A7EE;
  --theme-color-light: #4DB0EE;
  --theme-gradient: linear-gradient(90deg, #4DB0EE 0%, #A1DBFF 100%);
  --theme-gradient-story: linear-gradient(270deg, #8ED3FF 2.4%, #4DAFED 100%);
  --theme-icon: url(../images/work/icon_blue.svg);
  --theme-arrow: url(../images/work/arrow_blue.svg);
  --theme-border-color: #B5E1FE;
  --theme-box-shadow: 0px 6px 8px #3E9DDB;
  --theme-acd-shadow: 0px 6px 6px rgba(44, 145, 208, 0.3), inset -8px -8px 8px rgba(156, 156, 156, 0.25);
  --theme-btn-border: #4DB0EE;
  --theme-outline-border: #E0F3FF;
}

/* エンタメコンテンツグループ用 (プロダクト) */
.work__section--product {
  --theme-color: #F581A5;
  --theme-color-light: #F581A5;
  --theme-gradient: linear-gradient(90deg, #F581A5 0%, #FFBFD3 100%);
  --theme-gradient-story: linear-gradient(270deg, #FFAAC5 2.4%, #F581A5 100%);
  --theme-icon: url(../images/work/icon_pink.svg);
  --theme-arrow: url(../images/work/arrow_pink.svg);
  --theme-border-color: #FFDFE9;
  --theme-box-shadow: 0px 6px 10px #ED759A;
  --theme-acd-shadow: 0px 6px 6px rgba(236, 116, 153, 0.6), inset -8px -8px 8px rgba(156, 156, 156, 0.25);
  --theme-btn-border: #F582A6;
  --theme-outline-border: #FFDFE9;
}

/*------------------------------------
 * 共通レイアウト & コンテナ
 * ------------------------------------*/
.breadcrumbs {
  & .breadcrumbs__list {
    & .breadcrumbs__item {
      color: #28343B;
    }
  }
}

.container {
  background: linear-gradient(270deg, #A8D8F6 0%, #6FBEF0 25.48%, #5CB6EE 45.67%, #6FBEF0 60.1%, #A8D8F6 100%);
}

.work__wrap {
  background-color: #FAFDFF;
  @media screen and (min-width: 1024px) {
    background-image: url(../images/work/bg_work.webp);
    background-repeat: repeat-y;
    background-size: 100%;
    background-position: center 300px;
  }
}

.work {
  & .work__contents {
    @media screen and (min-width: 1024px) {
      display: grid;
      grid-template-columns: 357px 1fr;
      max-width: 1280px;
      margin-inline: auto;
      padding: 72px 30px 0 30px;
    }
    @media screen and (min-width: 1281px) {
      max-width: 1340px;
      padding: 72px 30px 0 30px;
    }

    & .page-nav {
      display: none;
      @media screen and (min-width: 1024px) {
        display: block;
        padding-bottom: 72px;
      }
      & nav {
        position: sticky;
        top: 100px;
      }
    }
  }
}

.work__section-inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: 0 16px;
  @media screen and (min-width: 1024px) {
    padding: 0 0;
  }
}

.work__heading {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.6;
  padding: 24px 0 8px;
  color: var(--theme-color);
  @media screen and (min-width: 768px) {
    font-size: 40px;
    line-height: 1.0;
    padding: 24px 0 24px;
  }
  @media screen and (min-width: 1024px) {
    padding: 0 0 24px;
  }
}

/*------------------------------------
 * 業務紹介 (Block: introduction)
 * ------------------------------------*/
.introduction__heading {
  background: var(--theme-gradient);
  padding: 8px 0 8px 10px;
  color: #FFF;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin-bottom: 10px;
  @media screen and (min-width: 768px) {
    /* font-size: 22px; */
    font-size: 1.375rem;
    padding: 8px 0 8px 16px;
    margin-bottom: 16px;
  }
}

.introduction__lead {
  /* font-size: 18px; */
  font-size: 1.125rem;
  line-height: 1.5;
  padding: 0 8px;
  margin-bottom: 10px;
  @media screen and (min-width: 768px) {
    margin-bottom: 16px;
  }
}

.introduction__outline {
  padding: 16px 8px;
  border-width: 2px 0px;
  border-style: solid;
  border-color: var(--theme-outline-border);
  list-style-type: disc;
  background-color: #FFF;
  @media screen and (min-width: 768px) {
    padding: 16px 24px;
  }
}

.introduction__outline-item {
  /* font-size: 16px; */
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 8px 1.5em;
  &:last-child {
    margin-bottom: 0;
  }
}

/*------------------------------------
 * インタビュー (Block: interview)
 * ------------------------------------*/
.interview {
  padding: 24px 0;
}

.interview__heading {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 17px 17px;
  padding: 0 0 0 25px;
  margin-bottom: 12px;
  color: var(--theme-color);
  background-image: var(--theme-icon);
  @media screen and (min-width: 768px) {
    /* font-size: 24px; */
    font-size: 1.5rem;
    background-size: 19px 19px;
    line-height: 1.3;
    margin-bottom: 14px;
  }
}

.interview__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 2.9%;
  width: 100%;
  margin-top: 16px;
  @media screen and (min-width: 768px) {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(5, 1fr);
    gap: 0 12px;
    margin-top: 24px;
  }
}

.interview__item {
  text-align: center;
  text-decoration: none;
  width: 43.7%;
  @media screen and (min-width: 768px) {
    width: 100%;
  }
  & img {
    border-radius: 12px;
  }
}

.interview__figcaption {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.125;
  margin-top: 8px;
  color: var(--theme-color);
}

.interview__item--btn {
  width: 100%;
}

.interview__btn-link {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.5;
  text-align: center;
  margin-top: 16px;
  background-color: #FFF;
  border: solid 1px var(--theme-btn-border);
  color: var(--theme-btn-border);
  @media screen and (min-width: 768px) {
    height: auto;
    aspect-ratio: 1 / 1;
    margin-top: 0;
  }
}

/*------------------------------------
 * プロジェクトカード (Block: project-card)
 * ------------------------------------*/
.project-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 24px 3.33%;
  background: var(--theme-color-light);
  box-shadow: var(--theme-box-shadow);
  margin-bottom: 30px;
  @media screen and (min-width: 768px) {
    padding: 24px 24px;
    border-radius: 16px;
    margin-bottom: 0;
  }

  & hr {
    height: 2px;
    width: 93.4%;
    border: none;
    background: rgba(255, 255, 255, 0.37);
    margin: 32px auto;
    @media screen and (min-width: 768px) {
      width: 100%;
    }
  }

  &.project-card--last {
    margin-bottom: 56px;
  }

  &.project-card--text-only {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 16px 30px 16px;
    padding: 16px;
    text-align: center;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    border-width: 3px;
    @media screen and (min-width: 768px) {
      margin: 0;
      font-size: 24px;
      line-height: 1.5;
      border-width: 6px;
      border-radius: 16px;
    }
    .work__section--ticket & {
      @media screen and (min-width: 768px) {
        min-height: 120px;
        text-align: left;
      }
    }
    .work__section--product & {
      @media screen and (min-width: 768px) {
        min-height: 100px;
      }
    }
  }
}

.project-card__role {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-card__label {
  width: fit-content;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.0;
  background-color: #FFF;
  padding: 5px 8px;
  @media screen and (min-width: 768px) {
    font-size: 24px;
  }

  &.project-card__label--pink {
    color: #F581A5;
  }
  &.project-card__label--blue {
    color: #4DB0EE;
  }
  &.project-card__label--yellow {
    color: #DAC400;
  }
  &.project-card__label--gray {
    color: #6C6C6C;
  }
}

.project-card__lead {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  padding-left: 8px;
  margin-top: 16px;
}

.project-card__work {
  /* font-size: 18px; */
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.6;
  padding-left: 8px;
  margin-top: 16px;
}

.project-card__work-list {
  list-style-type: disc;
  & li {
    /* font-size: 16px; */
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 4px 0 0 1.5em;
  }
}

.project-card__work-image {
  width: 61.3%;
  margin-inline: auto;
  margin-top: 16px;
  text-align: center;
  @media screen and (min-width: 768px) {
    width: 62.8%;
    margin-top: 24px;
  }
}

/*------------------------------------
 * プロジェクトストーリー (Block: project-story)
 * ------------------------------------*/
.project-story {
  padding: 32px 0;
  color: #FFF;
  background: var(--theme-gradient-story);
  @media screen and (min-width: 1024px) {
    border-radius: 16px;
    padding: 32px 32px;
  }
}

.project-story__inner {
  padding: 0 16px;
}

.project-story__heading {
  font-size: 16px;
  line-height: 1.8;
}

.project-story__heading-en {
  display: block;
  font-family: "Ubuntu Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.0;
  margin-bottom: 4px;
  @media screen and (min-width: 768px) {
    font-size: 32px;
  }
}

.project-story__catch {
  display: flex;
  width: fit-content;
  background: #FFF;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  padding: 0 0.5em;
  margin: 10px auto 0 auto;
  color: var(--theme-color);
  @media screen and (min-width: 768px) {
    font-size: 24px;
    line-height: 1.2;
    & br {
      display: none;
    }
  }
}

.project-story__role {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 24px auto;
  max-width: 300px;
  @media screen and (min-width: 768px) {
    display: grid;
    gap: 40px;
    width: fit-content;
    margin: 32px 0 24px 0;
    margin-inline: auto;
    max-width: none;
    .work__section--ticket & {
      grid-template-columns: repeat(3, 1fr);
    }
    .work__section--product & {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  & figure {
    & img {
      width: 100px;
      aspect-ratio: 1 / 1;
      margin-bottom: 6px;
      @media screen and (min-width: 768px) {
        width: 144px;
      }
    }
    & figcaption {
      font-size: 18px;
      font-weight: 700;
      line-height: 1.5;
      text-wrap: nowrap;
    }
  }
}

.project-story__role-item {
  justify-items: center;
  text-align: center;
}

.project-story__start {
  text-align: center;
  font-family: "Ubuntu Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  font-size: 24px;
  font-weight: 700;
  padding: 32px 0 58px 0;
  margin-bottom: 40px;
  background-size: auto 40px;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-image: var(--theme-arrow);
  @media screen and (min-width: 768px) {
    font-size: 28px;
    padding: 32px 0 69px 0;
    background-size: auto 45px;
    margin-bottom: 56px;
  }
}

.project-story__flow-border {
  @media screen and (min-width: 768px) {
    position: relative;
    &::before {
      position: absolute;
      content: "";
      display: block;
      width: 6px;
      height: 100%;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      background-color: var(--theme-border-color);
    }
    &::after {
      position: absolute;
      content: "";
      display: block;
      width: 50px;
      height: 6px;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      background-color: var(--theme-border-color);
    }
  }
  @media screen and (min-width: 769px) and (max-width: 1023.98px) {
    padding: 0 16px;
  }
}

.project-story__flow {
  @media screen and (min-width: 768px) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 66px;
  }

  & .project-card {
    &::after {
      position: absolute;
      content: "";
      display: block;
      width: 6px;
      height: 30px;
      bottom: -30px;
      left: 50%;
      transform: translateX(-50%);
      background-color: var(--theme-border-color);
      @media screen and (min-width: 768px) {
        width: 36px;
        height: 6px;
        bottom: 50%;
        top: 50%;
        left: -36px;
        transform: translateY(-50%);
      }
    }

    &.project-card--last {
      &::after {
        position: absolute;
        content: "";
        display: block;
        width: 6px;
        height: 60px;
        bottom: -60px;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--theme-border-color);
        @media screen and (min-width: 768px) {
          width: 36px;
          height: 6px;
          bottom: 50%;
          top: 50%;
          left: -36px;
          transform: translateY(-50%);
        }
      }
      &::before {
        position: absolute;
        content: "";
        display: block;
        width: 50px;
        height: 6px;
        bottom: -60px;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--theme-border-color);
        @media screen and (min-width: 768px) {
          display: none;
        }
      }
    }
  }

  /* subgrid-2: 左カラム2行・右カラム1行（2行分の高さ）レイアウト */
  &.project-story__flow--subgrid-2 {
    @media screen and (min-width: 768px) {
      grid-template-rows: auto auto;
      align-items: start;

      /* item1: 左列・1行目 */
      & > .project-story__column:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
      }
      /* item2: 右列・2行にまたがる */
      & > .project-story__column:nth-child(2) {
        grid-column: 2;
        grid-row: 1 / 3;
        & .project-card {
          height: 100%;
        }
      }
      /* item3: 左列・2行目 */
      & > .project-story__column:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
      }
    }
  }

  /* reverse: PC表示時に左右カラムを入れ替える */
  &.project-story__flow--reverse {
    @media screen and (min-width: 768px) {
      direction: rtl;
      & > .project-story__column {
        direction: ltr;
      }
    }
  }
}

.project-story__column {
  @media screen and (min-width: 768px) {
    &.project-story__column--pt80 { padding-top: 80px; }
    &.project-story__column--pt100 { padding-top: 100px; }
    &.project-story__column--pt130 { padding-top: 130px; }
    &.project-story__column--pt150 { padding-top: 150px; }
    &.project-story__column--pt200 { padding-top: 200px; }
    &.project-story__column--pb50 { padding-bottom: 50px; }
    &.project-story__column--pb80 { padding-bottom: 80px; }
    &.project-story__column--bottom { align-self: end; }
  }
}

@media screen and (min-width: 768px) {
  .project-story__flow {
    & .project-story__column:nth-child(odd) .project-card::after {
      width: 36px;
      height: 6px;
      bottom: 50%;
      top: 50%;
      right: -36px;
      left: auto;
      transform: translateY(-50%);
    }
    &.project-story__flow--reverse {
      & .project-story__column:nth-child(odd) .project-card::after {
        left: -36px;
        right: auto;
      }
      & .project-story__column:nth-child(even) .project-card::after {
        right: -36px;
        left: auto;
      }
    }
  }
}

.project-story__acd-target {
  display: none;
  padding-bottom: 48px;
}

.project-story__acd-trigger {
  background: #FFFFFF;
  border-radius: 50px;
  width: 80%;
  font-family: "Ubuntu Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.0;
  padding: 14px 0;
  text-align: center;
  margin-inline: auto;
  color: var(--theme-color-light);
  box-shadow: var(--theme-acd-shadow);
  cursor: pointer;

  &::before {
    content: "OPEN";
  }
  &.active::before {
    content: "CLOSE";
  }
}

/*------------------------------------
 * ページトップボタン
 * ------------------------------------*/
.work__pagetop {
  @media screen and (max-width: 767px) {
    padding-top: 32px;
  }
}

/*------------------------------------
 * テーマ・グループ別 CSS変数定義 (サイドナビ専用)
 * ------------------------------------*/
.page-nav__section--ticket {
  --nav-color: #35A7EE;
  --nav-icon: url(../images/work/icon_nav_blue.svg);
  --nav-icon-active: url(../images/work/icon_nav_blue_active.svg);
}

.page-nav__section--product {
  --nav-color: #F581A5;
  --nav-icon: url(../images/work/icon_nav_pink.svg);
  --nav-icon-active: url(../images/work/icon_nav_pink_active.svg);
  border-top: solid 2px #E0F3FF;
}

.page-nav {
  & .page-nav__section {
    width: fit-content;
    &:last-child {
      padding-top: 20px;
      margin-top: 32px;
    }
  }

  & .page-nav__group-name {
    color: var(--nav-color);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 22px;
  }

  & .page-nav__list {
    & .page-nav__item {
      margin-bottom: 16px;
      &:last-child {
        margin-bottom: 0;
      }
    }

    & .page-nav__link {
      color: #28343B;
      text-decoration: none;
      /* font-size: 18px; */
      font-size: 1.125rem;
      font-weight: 500;
      background: var(--nav-icon) no-repeat left center;
      padding-left: 20px;
      &:hover {
        background: var(--nav-icon-active) no-repeat left center;
      }
      &.active {
        background: var(--nav-icon-active) no-repeat left center;
      }
    }
  }
}