@charset "utf-8";

/* =======================
　　　PC・共通部分
======================= */
main{
    padding-top: 70px;
}

section{
    margin: 100px auto;
    padding: 0 10px;
}

.case_ttl{
    margin: 80px 0 60px;
    text-align: center;
}

/* BTN */
.case_btn {
  background: #fff;
  color: #000;
  overflow: hidden;
  position: relative;
  z-index: 1;
  border: 1px solid #000;
  width: 207px;
  height: 67px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 53px auto;
}

.case_btn::after{
  background: #000;
  position: absolute;
  top: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 100%;
  transform: scale(0, 1);
  transform-origin: left top;
  transition: .4s cubic-bezier(0.45, 0, 0.55, 1);
  z-index: -1;
}

.case_btn:hover a{
  color: #fff;
}

.case_btn:hover::after{
  transform: scale(1, 1);
}


/* NAV */
.case_page_nav {
    display: flex;
    justify-content: space-around;
    width: 19%;
    margin: 0 auto;
}

/* スーツ一覧 */
.case_wrap {
    display: flex;
    flex-wrap: wrap;
    width: 69%;
    margin: 0 auto;
    justify-content: flex-start;
}

.case_box,.case_box02 {
    width: 24%;
    margin: 3em;
}

p.suit_name {
    font-size: 1.2em;
    padding: 0.5em 0;
}

/* 詳細ページ */
.suit_case h2 {
    text-align: center;
    font-size: 1.8em;
}

/* .case_wrap.width_img {
    justify-content: center;
} */

/* ページネーションの設定 */
.case_box {
    display: none;
}

.case_box.on {
    display: block;
}

.pagination .number > a.active {
    background-color: #888;
    color: #fff;
}

.page_list {
    border-top: 1px solid #000;
    margin-bottom: 20px;
}

.pagination {
    width: 70%;
    margin: -50px auto 100px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content:center;
    gap: 5px;
}

.pagination .number {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    background-color: #ffffff;
    border: solid 1px #888;
    border-radius: 3px;
    padding: 10px 0;
}

/* =======================
　　　      SP
======================= */
@media screen and (max-width:998px) {

    main{
        padding-top: 30px;
    }

    section{
        margin-bottom: 0;
        margin-top: 46px;
    }

    .case_page_nav {
        width: 74%;
        margin: 0 auto;
    }

    /* 一覧 */
    .case_wrap {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        margin: 0 auto;
        justify-content: flex-start;
    }

    .case_box,.case_box02 {
        width: 46%;
        margin: 0.4em;
        margin-bottom: 3em;
    }

    p.suit_name {
        font-size: 1em;
        padding: 0;
    }
}

@media screen and (max-width:768px) {
    
.pagination {
    width: 100%;
    margin: 20px auto 60px auto;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content:center;
    gap: 10px;
}

.pagination .number {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height:30px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    background-color: #ffffff;
    border: solid 1px #888;
    border-radius: 3px;
    padding: 10px 0;
}

}