デザイン

モーダル(中身 詳細部分背景色)

HTML

上と一緒

    

    

CSS

    
.modalMv__txtBox .ttl {
    margin: 20% 0 40%;
}

.modalMv__flex {
    position: relative;
    z-index: 1;
}


.modalMv__detail {
    position: relative;
    

    &::before {
        position: absolute;
        content: "";
        width: 200%;
        height: 200px;
        top: 50%;
        left: -28%;
        transform: translateY(-50%);
        background-color: var(--gray);
        border-radius: 0 500px 500px 0;
        z-index: -1;
    }
}

@media screen and (max-width:805px) {
    .modalMv__flex {
        background: linear-gradient(to bottom, var(--white) 50%, var(--gray) 50%);
    }

    .modalMv__detail {
        position: relative;

        &::before {
            display: none;
        }
    }
}

    

JavaScript

    

    

モーダル

  • 土日祝が休みで、 ワークライフバランスが とりやすいです。
    営業(正社員) 20代 / 2024年3月入社 Y.Kさん
    詳細はこちら

HTML

test01Swiper__itemの中を自由にカスタム。<br>クラス名はtest01を変える(置換使えば楽)

    
<ul class="interview__list">
  <li class="interview__item" data-featherlight="#modal01">

    <div class="interview__top">
      <div class="img">
        <img src="img/interview/img01.jpg" alt="">
      </div>

      <div class="ttl">
        <span class="ttlBack">土日祝が休みで、</span>
        <span class="ttlBack">ワークライフバランスが</span>
        <span class="ttlBack">とりやすいです。</span>
      </div>
    </div>

    <div class="interview__detail">
      <span class="type">営業(正社員)</span>
      <span class="age">20代 / 2024年3月入社</span>
      <span class="name">Y.K<span class="smallTxt">さん</span></span>

      <div class="interview__btn">
        詳細はこちら
        <span class="btn02"></span>
      </div>
    </div>

  </li>
</ul>

<div class="modalBox" id="modal01">
  <div class="modalClose modalClose-top"></div>
  <div class="modal__inner">
    <div class="modalMv">
      <div class="modalMv__number">
        スタッフインタビュー
      </div>

      <div class="modalMv__flex">
        <div class="modalMv__img">
          <img src="img/interview/img01.jpg" alt="">
        </div>
        <div class="modalMv__txtBox">
          <p class="ttl">
            和気あいあいと楽しく<br>仕事をしたい人が多いです。
          </p>
          <div class="modalMv__detail">

            <span class="type">
              正社員
            </span>
            <span class="age">
              販売/40代 / 2024年7月入社
            </span>
            <span class="name">
              M.K<span class="smallTxt03">さん</span>
            </span>
          </div>

        </div>
      </div>
    </div><!-- modalMv -->

    <dl class="modal__qa">
      <dt>このお仕事を始めたきっかけ・理由は何ですか?</dt>
      <dd>接客の仕事でオープニングスタッフを探している中でBlue
        Trickを見つけました。デニムに興味があり、何よりデザインもかわいいので、どんな会社か気になりました。集団面接の機会があることを知り、色々お話を聞き、一層働いてみたいと思い応募しました。
      </dd>

      <dt>ミズタニの好きな点・働きやすい点を教えてください。</dt>
      <dd>好きなBlue Trickの服を着てお仕事できる点です。また、シフトの融通も利きます。誰かが体調を崩したら、皆でサポートするところも素敵です。
      </dd>

      <dt>働いている方は、どんな方が多いですか?あるいは、どんな方が合っていると思いますか?</dt>
      <dd>スタッフそれぞれの個性は違いますが、和気あいあいと楽しく仕事がしたい方が多い印象です。「人と接したり、お話ししたりするのが好きな方」「デニムに興味のある方」「服が好きな方」に合っていると思います。
      </dd>
    </dl>
    <div class="modalClose modalClose-bottom">
      閉じる
    </div>
  </div><!-- modal__inner -->
</div>

    

CSS

テンプレなのでページネーションのみ。

    

/*******************************************
interview(レスポンシブ設定してない)
*******************************************/

.interview__list {
    display: flex;

    justify-content: center;
}

.interview__item {
    /* width: calc((100% - 30px)/3); */
    width: min(100%, 500px);
    cursor: pointer;
}

.interview__top {
    position: relative;

    & .ttl {
        position: absolute;
        left: 0;
        bottom: 1%;

        font-size: var(--size30);
    }

    & .ttlBack {
        display: block;
        width: fit-content;
        margin-bottom: 10px;
        background-color: var(--gray);
        color: var(--white);
        padding: 10px 5px;
    }
}

.interview__detail {
    background-color: var(--gray);
    padding: 20px 25px 15px;

    & .type {
        font-size: var(--size17);
    }

    & .age {
        font-size: var(--size15);
        margin: 10px 0;
    }

    & .name {
        font-size: var(--size30);

        & .smallTxt {
            font-size: 14px;
        }
    }
}

.interview__btn {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;

    & .btn02 {
        position: relative;
        width: 30px;
        aspect-ratio: 1;
        background-color: var(--black);
        border-radius: var(--borderRadiusCircle);

        &::before,
        &::after {
            position: absolute;
            content: "";
            width: 30%;
            height: 2px;
            background-color: var(--white);
            top: 50%;
            left: 50%;

        }

        &::before {
            transform-origin: bottom right;
            transform: translate(-60%, -45%) rotate(45deg);
        }

        &::after {
            transform-origin: top right;
            transform: translate(-60%, -55%) rotate(-45deg);
        }
    }

}



/*******************************************
modal(中身)
*******************************************/

.featherlight {
    overflow: scroll;
}

.featherlight .featherlight-content {
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 0;
    border: none;
    background-color: transparent;
    padding: max(8svh, 50px) 0;
}

.featherlight:last-of-type {
    background: rgba(0, 0, 0, .5);
}


.featherlight .featherlight-close-icon,
.modalBox {
    display: none;
}


.modalBox {
    position: relative;
    width: min(100%, 1200px);
    margin: 0 auto;
    background-color: var(--white);
    padding: 90px 0 50px;
}

.modalClose-top {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 1%;
    right: 1%;

    &::before,
    &::after {
        position: absolute;
        content: "";
        background-color: var(--black);
        height: 2px;
        width: 100%;
        top: 50%;
        left: 0;
    }

    &::before {
        transform: translateY(-50%) rotate(45deg);
    }

    &::after {
        transform: translateY(-50%) rotate(-45deg);
    }
}


.modal__inner {
    position: relative;
    width: min(100%, 1000px);
    margin: 0 auto;
}

.modalMv__number {
    position: relative;
    padding-left: 15px;

    &::before {
        position: absolute;
        content: "";
        width: 10px;
        aspect-ratio: 1/1;
        background-color: var(--black);
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        border-radius: var(--borderRadiusCircle);
    }
}

.modalMv__flex {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.modalMv__img {
    width: min(100%, 400px);
}

.modalMv__txtBox {
    & .ttl {
        font-size: var(--size30);
        line-height: 1.4;
        margin: 20% 0 10%;
    }
}

.modalMv__detail {
    border-left: 5px solid var(--black);
    padding-left: 10px;

    & .type {
        font-size: var(--size17);
    }

    & .age {
        font-size: var(--size15);
        margin: 10px 0;
    }

    & .name {
        font-size: var(--size30);
    }
}



/* Q&A */

.modal__qa {
    margin-top: 40px;

    & dt {
        position: relative;
        font-size: var(--size18);
        padding-left: 45px;
        font-weight: var(--weight500);

        &::before {
            position: absolute;
            content: "";
            background-image: url(../img/interview/icon-q.svg);
            background-size: contain;
            background-repeat: no-repeat;
            top: 0;
            left: 0;
            width: 36px;
            height: 36px;
            transform: translateY(-20%);
        }
    }

    & dd {
        font-size: var(--size17);
        font-weight: var(--weight400);
        margin: 20px 0 50px;
        background-color: var(--gray);
        padding: max(2.748%, 15px) max(3.847%, 15px) max(2.199%, 15px);
        line-height: var(--lineHight20);
        border-radius: 5px;

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

.modalClose {
    cursor: pointer;
}

.modalClose-bottom {
    position: relative;
    margin: 75px auto 0;
    width: min(100%, 288px);
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--black);
    background-color: var(--black);
    color: var(--white);
    transition: var(--transitionBase);

    &::before,
    &::after {
        position: absolute;
        content: "";
        width: 20px;
        height: 2px;
        background-color: var(--white);
        top: 50%;
        right: 5%;
        transition: var(--transitionBase);
    }

    &::before {
        transform: translateY(-50%) rotate(45deg);
    }

    &::after {
        transform: translateY(-50%) rotate(-45deg);
    }

    &:hover {
        background-color: var(--white);
        color: var(--black);

        &::before,
        &::after {
            background-color: var(--black);
        }

    }
}

@media screen and (max-width:1215px) {
    .featherlight {
        padding: 0 15px;
    }
}

@media screen and (max-width:1050px) {
    .modal__inner {
        padding: 0 15px;
    }
}

@media screen and (max-width:1024px) {
    .modal__qa {

        & dt {
            padding-left: 40px;

            &::before {
                width: 30px;
                height: 30px;
                transform: translateY(-15%);
            }
        }
    }
}


@media screen and (max-width:980px) {
    .modal__inner {
        padding: 0 15px;
    }
}

@media screen and (max-width:805px) {
    .modalMv__number {
        margin: 0 auto 30px;
    }


    .modalMv__flex {
        flex-direction: column;
        align-items: center;
    }

    .modalMv__img {
        margin-top: 0;
    }

    .modalMv__txtBox {
        & .ttl {
            margin: 30px 0 20px;
        }
    }
}

@media screen and (max-width:500px) {
    .modalClose-top {
        width: 30px;
        height: 30px;
    }

    .modalMv__number {
        width: 230px;
    }

    .modalMv__img {
        width: min(100%, 280px);
    }

    .modalMv__detail {
        & .name {
            display: block;
            font-size: var(--size40);
            margin: 20px 0 5px;
        }
    }

    .modal__qa {

        & dt {
            padding-left: 30px;

            &::before {
                width: 25px;
                height: 25px;
                transform: translateY(-3%);
            }
        }
    }


    .modalClose-bottom {


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



    

JavaScript