.p-case-study-theme {
  /* ページタイトル */
  .p-case-study-theme__tit {
    padding: 4rem 0 2rem;
    background: #fff;
    margin-bottom: 0;

    h1 {
      display: inline-block;
      margin: 0 auto 3rem;
      border-bottom: 5px solid #EEE01A;
      padding-bottom: 3px;
    }

    h2.c-tit--bar {
      margin-bottom: 0;
    }
  }

  .p-case-study__cover{
    padding-bottom: 3rem;

    > section > article:last-child > .c-box {
      margin-bottom: 0;
    }
  }

  /* コンテナをオーバーライドして調整 */
  .c-box {
    box-sizing: border-box;
    max-width: 1200px;
    padding: 0;

    @media screen and (max-width: 1000px) {
      box-sizing: border-box;
    }

    .c-box__inner {
      box-sizing: border-box;
      max-width: 100%;
      margin: 4rem;

      @media screen and (max-width: 1000px) {
        margin: 2rem 1rem;
      }
    }
  }

  /* 店舗画像 */
  .c-shop-thumb {
    display: flex;
    padding: 0;

    > .c-shop-thumb__container {
      width: 480px;
      height: 516px;
      margin-right: 4rem;
      overflow: hidden;
      position: relative;

      > .c-shop-thumb__child {
        width: 100%;
        box-sizing: border-box;
        margin: 2rem;
        aspect-ratio: 1 / 1.075;

        > img {
          border: 2px solid #C5C2B2;
          border-radius: 8.31px;
          /* max-height: 516px; */
          box-sizing: border-box;
          display: inline-block;
          position: absolute;

          &.pc {
            top: 0px;
            left: 0px;
            width: 363.68px;
            height: 498.94px;
            z-index: 0;
          }

          &.sp {
            right: 0px;
            bottom: 0px;
            width: 189.59px;
            height: 358.61px;
            z-index: 1;
          }

        }
      }


      @media screen and (max-width: 1000px) {
        margin-right: 0;
        margin-bottom: 0;

        width: 100%;
        max-width: 480px;
      }
    }
  }

  .c-shop-thumb-note {
    font-size: 1.4rem;
    text-align: left;
    line-height: 2.5rem;

    @media screen and (max-width: 1000px) {
      margin-top: .8rem;
      font-size: 1.2rem;
      text-align: center;
    }
  }

  /* 店舗事例情報 */
  .c-shop-data {
    display: flex;
    flex-direction: column;

    @media screen and (max-width: 1000px) {
      margin-top: 1.6rem;
    }

    &.grid__col {
      padding: 0;
    }

    /* 店舗事例ヘッダー */
    .c-shop-data-header {
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      justify-content: space-between;
      margin: 0;

      @media screen and (max-width: 1000px) {
        margin: 0 1rem;
      }

      /* 店舗名 */
      > h3.c-shop-data-header__name {
        color: #6D503A;
        font-weight: 900;
        font-size: 2.4rem;
        line-height: 3.3rem;
        text-align: start;
        margin-right: 1rem;
        line-break: strict;

        @media screen and (max-width: 1000px) {
          font-size: 2rem;
        }
      }

      /* 店舗カテゴリ */
      > .c-shop-data-header__category {
        /* flex: 0 0; */
        flex-shrink: 0;
        border-radius: 4px;
        color: #fff;
        background-color: #EF8300;
        padding: .5rem 1rem;

        font-weight: 900;
        font-size: 1.4rem;
      }
    }

    /* 店舗事例メタデータ */
    .c-shop-data-meta {
      display: flex;
      flex-wrap: wrap;
      flex-direction: column;
      align-items: flex-start;
      margin-bottom: 1.8rem;

      @media screen and (max-width: 1000px) {
        margin: 0 1rem 1.8rem;
      }

      /* 店舗ID */
      .c-shop-data-meta__shop-id {
        margin-bottom: 1rem;
        color: #C4C2B4;
        font-size: 1.4rem;
      }

      /* 事例分類タグのコンテナ */
      .c-shop-data-meta__tags {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
      }
    }

    /* 事例分類タグ */
    .c-case-study-item-tag {
      display: inline-block;
      padding: .4rem 1rem;
      border-radius: 4px;
      margin-right: .4rem;
      margin-bottom: .4rem;

      background-color: #F4F4F4;

      color: #6D503A;
      font-size: 1.2rem;

      @media screen and (max-width: 1000px) {
        /* padding:  */
      }
    }

    /* 事例詳細情報コンテナ */
    .c-shop-data-content {
      margin-bottom: 3rem;

      @media screen and (max-width: 1000px) {
        margin-bottom: 3rem;
      }

      /* 導入前, 導入後 */
      article {
        box-sizing: border-box;
        padding: 1rem 1rem 0;

        > h4 {
          background-color: #724E36;
          color: #fff;
          line-break: strict;
          text-align: center;
          font-size: 1.4rem;

          /* vertical-align: middle; */
          display: inline-flex;
          align-items: center;
          flex-grow: 1;
          justify-content: center;

          border-radius: 4px;

          padding: .8rem;

          @media screen and (max-width: 1000px) {
            padding: .8rem;
          }
        }

        > p {
          text-align: start;
          padding: 0 1rem;
          font-size: 1.4rem;
          line-height: 2.5rem;
          line-break: strict;

          @media screen and (max-width: 1000px) {
            padding: .8rem 0;
          }
        }

        /* 導入後 */
        &.after-intro {
          margin-top: 3rem;
          padding: 1rem;

          background-color: #FCFAE3;
          border-radius: 4px;

          @media screen and (max-width: 1000px) {
            margin-top: 1.8rem;
            padding: 1.5rem 1rem .5rem;
          }

          h4 {
            background-color: #04A9A0;
          }
        }
      }
    }

    /* 店舗事例フッター */
    .c-shop-data-footer {
      margin-top: auto;
      margin-bottom: 1rem;

      @media screen and (max-width: 1000px) {
        margin-bottom: .5rem;
      }

      > a {
        display: block;
        background-color: #E6480F;
        color: #fff;
        padding: 2rem;
        line-height: normal;

        border-radius: 8px;

        box-shadow: 1px 1px 3px #ccc;
      }
    }
  }
}
