@charset "utf-8";

/* =======================
common
======================= */
:root {
    --primary-black: #333;
    --primary-darkBrown: #60564F;
    --primary-brown: #845C3E;
    --primary-white: #FFF;
    --primary-beige: #F8F5EE;
}

html {
    font-size: 62.5%;
}

body {
    font-family:
        'Noto Sans JP',
        sans-serif;
    font-style: normal;
    font-size: 1.6rem;
    color: var(--primary-darkBrown, #60564F);
    background-color: var(--primary-white, #FFF);
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

.bearItem {
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

/* gift */
.gift2 {
    display: none;
    padding: 80px 5.3% 60px;
    background-color: var(--primary-beige, #F8F5EE);
    position: relative;
}

.show {
  display: flex !important;
  flex-direction: column;
  align-items: center;
}

.gift2::before {
    content: "";
    display: block;
    width: 180px;
    height: 85px;
    margin-bottom: -50px;
    background-color: var(--primary-beige, #F8F5EE);
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.gift2__logoImg {
    z-index: 1;
    margin: -80px 0px 60px;
    width: 95px;
}

.gift2__catchCopy {
    text-align: center;
    color: var(--primary-brown, #845C3E);
}

.gift2__whiteBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary-white, #FFF);
    padding: 60px 2.9% 50px;
    border-radius: 30px;
    margin-top: 40px;
    width: 100%;
}

.gift2__categoryBox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.myBear__categoryBoxImg {
    height: 25px;
    margin: 0px 15px;
}
  
.gift2__categoryGift {
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    color: rgba(96, 86, 79, 0.3);
    transition: color 0.3s;
}

.gift2__categoryMyBear {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: end;
    position: relative;
    cursor: pointer;
    color: rgba(96, 86, 79, 0.3);
    transition: color 0.3s;
}
  
.active-tab {
    color: rgba(96, 86, 79, 1.0) !important;
}
  
  .active-tab {
    color: rgba(96, 86, 79, 1.0) !important;
    font-weight: 700;
}

.gift2__itemBox {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.gift2__item {
    width: 157px;
    height: 185px;
    margin-top: 15px;
}

.gift2__item a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gift2__titleBox {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 5px;
}

.gift2__title {
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-block;             
    padding: 5px 10px;                            
    text-align: center;
    line-height: 1;
}

/* myBear */
.myBear {
    display: none;
    padding: 80px 5.3% 60px;
    background-color: var(--primary-beige, #F8F5EE);
    position: relative;
}

.myBear::before {
    content: "";
    display: block;
    width: 180px;
    height: 85px;
    margin-bottom: -50px;
    background-color: var(--primary-beige, #F8F5EE);
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.myBear__logoImg {
    z-index: 1;
    margin: -80px 0px 60px;
    width: 95px;

}

.myBear__catchCopy {
    text-align: center;
    color: var(--primary-brown, #845C3E);
}

.myBear__whiteBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary-white, #FFF);
    padding: 60px 2.9% 30px;
    border-radius: 30px;
    margin-top: 40px;
    width: 100%;
}

.myBear__categoryBox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.myBear__categoryGift {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(96, 86, 79, 0.3);
}

.myBear__content {
    margin: 60px 0px 20px;
}

.myBear__itemBox {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.myBear__item {
    width: 157px;
    height: 185px;
    margin-top: 15px;
}

.myBear__item a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.myBear__title {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}

/* pc */
@media screen and (min-width:769px) {
    /* gift */
    .bearItem {
        padding: 50px 18% ;
    }
    
    .gift2 {
        padding: 100px 3% ;
    }

    .gift2::before {
        width: 320px;
        height: 150px;
        margin-bottom: -85px;
        border-top-left-radius: 150px;
        border-top-right-radius: 150px;
    }

    .gift2__logoImg {
        width: 100px;
        margin: -110px 0px 60px;
    }

    .gift2__catchCopy {
        font-size: 2rem;
    }

    .spBr {
        display: none;
    }

    .gift2__whiteBox {
        margin-top: 60px;
        padding: 60px 3%;
    }

    .gift2__categoryGift {
        font-size: 2rem;
    }

    .gift2__categoryMyBear {
        font-size: 2rem;
    }

    .gift2__itemBox {
        margin-top: 30px;
    }

    .gift2__item {
        width: 210px;
        height: 210px;
        margin-top: 10px;
    }

    .gift2__title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    /* myBear */
    .myBear {
        padding: 100px 3% ;
    }

    .myBear::before {
        width: 320px;
        height: 150px;
        margin-bottom: -85px;
        border-top-left-radius: 150px;
        border-top-right-radius: 150px;
    }

    .myBear__logoImg {
        width: 100px;
        margin: -110px 0px 60px;
    }

    .myBear__catchCopy {
        font-size: 2rem;
    }

    .myBear__whiteBox {
        margin-top: 60px;
        padding: 60px 3%;
    }

    .myBear__categoryGift {
        font-size: 2rem;
    }

    .myBear__categoryMyBear {
        font-size: 2rem;
    }

    .myBear__content {
        display: inline-block;
        width: 100%;
        font-size: 2rem;
        font-weight: 700;
        margin-top: 30px;
    }

    .myBear__item {
        width: 168px;
        height: 210px;
        margin-top: 0px;
    }

    .myBear__title {
        font-size: 1.5rem;
    }

}
/* 上書き：既存のflex設定を無効に */
.gift2__itemBox,
.myBear__itemBox {
  display: unset;
  flex-wrap: unset;
  justify-content: unset;
}

/* PC表示：gift2 は4列、myBear は3列 */
@media screen and (min-width: 769px) {
  .gift2__itemBox {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 20px;
    justify-items: center;
    margin-top: 30px;
  }

  .myBear__itemBox {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px;
    justify-items: center;
  }

  .gift2__item,
  .myBear__item {
    width: 100% !important;
    height: auto;
    margin-top: 0;
    text-align: center;
  }

  .gift2__item a,
  .myBear__item a {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .gift2__title,
  .myBear__title {
    font-size: 1.4rem;
    font-weight: 700;
    padding: 6px 10px;
    display: inline-block;
    line-height: 1.2;
    text-align: center;
  }
}

/* SP表示：共通で2列表示 */
@media screen and (max-width: 768px) {
  .gift2__itemBox,
  .myBear__itemBox {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 10px;
    justify-items: center;
  }

  .gift2__item,
  .myBear__item {
    width: 100%;
    height: auto;
    margin-top: 0;
    text-align: center;
  }

  .gift2__item a,
  .myBear__item a {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .gift2__title,
  .myBear__title {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 5px 8px;
    display: inline-block;
    text-align: center;
    line-height: 1.2;
  }
}