/* DGメンバー画面のスタイル */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 64px 16px 16px 16px;
}

.member-name {
    font-size: 14px;
    color: #333;
}

/* 会員ナビゲーションのスタイル */
.member-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    justify-content: center;
    padding: 0;
    width: 100%;
}

.member-nav-button {
    background: #fff;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    aspect-ratio: 1/1;
}

/* 肌測定結果やおすすめ商品のテキストスタイル */
.member-nav-button .sub-text {
    font-size: 12px;
    color: #666666;
}

.member-nav-button-link {
    width: 100%;
    height: 100%;
    color: #323232;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
}

.member-nav-button img {
    height: calc(100% - 36px - 4px);
    object-fit: contain;
}

.member-nav-button-text {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* barcode */
.barcode {
    background-color: rgb(247 247 247);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 0;
    width: 90%;
    margin: 0 auto 24px auto;
    border-radius: 10px;
    box-shadow: 1px 1px 1px 0px rgba(237, 237, 237, 1);
}

.barcord-text {
    display: flex;
    justify-content: center;
    padding: 0;
    background-color: transparent;
}

.barcord-text-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    width: 100%;
}

.barcord-text-right {
    text-align: right;
}

/* point */
.point {
    overflow: hidden;
    width: 90%;
    margin: 24px auto 0 auto;
    padding: 0;
}

.point-available {
    padding: 24px 0;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0 8px;
}

.point-revocation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background-color: #f3f3f3;
    gap: 0 48px;
}

.point-desc {
    padding-top: 12px;
}

.point-membershiplink {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    text-align: right;
    gap: 0 8px;
    text-decoration: underline;
}

.point-membershiplink-icon {
    width: 24px;
}

/* connect */
.connect-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px 0;
}

.connect-link {
    width: 100%;
    height: auto;
    padding: 16px;
    background-color: #fff;
    border: 1px solid #323232;
    font-size: 14px;
    cursor: pointer;
    color: #323232;
    -webkit-appearance: none;
    appearance: none;
}

/* barcodeのスタイルを修正 */
.barcord-wrapper {
    box-shadow: 0px 0px 5px 0px rgb(134 134 134 / 20%);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 380 / 246;
}

.barcord-img {
    padding: 0;
    text-align: center;
    line-height: 0;
    height: calc(100% - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.barcord-img svg {
    display: block;
    padding: 32px 38.65px 17px 38.65px;
    height: 100%;
    width: 100%;
}

/* ヘッダーロゴのスタイル追加 */
.header-logo {
    height: 20px;
    width: auto;
}

/* バーコードコンテナの背景設定を変更 */
.barcode.container {
    background-color: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ランク別の背景画像設定 */
.barcode.container[data-rank="WHITE"] {
    background-image: url("/src/img/ipsa_dgmember/WHITE_bg.png");
}

.barcode.container[data-rank="BEIGE"] {
    background-image: url("/src/img/ipsa_dgmember/BEIGE_bg.png");
}

.barcode.container[data-rank="BLUE"] {
    background-image: url("/src/img/ipsa_dgmember/BLUE_bg.png");
}

.barcode.container[data-rank="NAVY"] {
    background-image: url("/src/img/ipsa_dgmember/NAVY_bg.png");
}

/* バーコードテキストエリアのスタイル変更 */
.barcord-text {
    display: flex;
    justify-content: center;
    padding: 0;
    background-color: transparent;
}

/* ランク別の背景色設定 */
.barcord-text[data-rank="WHITE"],
.barcord-text[data-rank="BEIGE"] {
    background-color: rgba(255, 255, 255, 0.4);
}

.barcord-text[data-rank="BLUE"] {
    background-color: rgba(255, 255, 255, 0.5);
}

.barcord-text[data-rank="NAVY"] {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.barcord-text[data-rank="NAVY"] .barcord-text-desc {
    color: #ffffff;
}

.withdrawal-rejoin-btn,
.show-membercard-btn,
.dormant-rejoin-btn {
    padding: 10px 30px;
    background-color: #fff;
    border-radius: 3px;
    border: 1px solid #888;
    cursor: pointer;
    color: #323232;
    -webkit-appearance: none;
    appearance: none;
}

/* 休眠・退会関連のスタイル */
.dormant-message,
.withdrawal-message {
    color: #323232;
    text-align: center;
    margin: 40px 20px;
}

.dormant-button-container {
    text-align: center;
    margin-top: 20px;
}