#header {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 40px;
    background-color: #333;
}

#header .center {
    width: 1226px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header .center ul li a {
    display: flex;
    align-items: center;
    height: 12px;
    font-size: 14px;
    color: #b0b0b0;
    padding: 0 8px;
    /*border-right: 1px solid #b0b0b0;*/
}

#header .center ul li a:hover {
    color: #fff;
    padding: 0 8px;
}

#header .center ul li:last-of-type a {
    border-right: none;
}

#header .center .fl {
    flex-shrink: 0;
    display: flex;
    width: 680px;
}

#header .center .fr {
    display: flex;
    height: 40px;
}

#header .center .fr .user {
    width: 90px;
    height: 40px;
    line-height: 40px;
    font-size: 12px;
    text-align: center;
    position: relative;
}

#header .center .fr .user:hover .username {
    color: #1baeae;
    background-color: #fff;
}

#header .center .fr .user:hover .selector {
    padding: 5px 0;
    height: 107px;
}

#header .center .fr .user .username {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 40px;
    color: #b0b0b0;
    position: relative;
    z-index: 201;
}

#header .center .fr .user .selector {
    position: absolute;
    left: 0;
    top: 40px;
    width: 100%;
    z-index: 200;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    height: 0;
    background-color: #fff;
    overflow: hidden;
    transition: all 0.2s;
}

#header .center .fr .user .selector li {
    width: 100%;
    height: 27px;
    padding: 3px 0;
}

#header .center .fr .user .selector li:hover {
    background-color: #287873;
}

#header .center .fr .user .selector li a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 30px;
    padding: 0;
    border: 0;
    color: #1baeae;
}

#header .center .fr .user .selector li a:hover {
    color: #fff;
}

#header .center .fr .login {
    display: flex;
    align-items: center;
    /*width: 98px;*/
    /*height: 40px;*/
}

#header .user-login {
    display: flex;
}

#header .user-login a {
    color: #b0b0b0;
}

#header .user-not-login {
    display: flex;
}

#header .user-login a {
    color: #b0b0b0;
}

#header .center .fr .login li a {
    display: flex;
    align-items: center;
    height: 12px;
    font-size: 12px;
    color: #b0b0b0;
    padding: 0 8px;
    /*border-right: 1px solid #b0b0b0;*/
}

#header .center .fr .login li a:hover {
    color: #fff;
}

#header .center .fr .login li:last-of-type a {
    border-right: none;
}

#header .center .fr .shopcart {
    display: flex;
    color: #b0b0b0;
    width: 90px;
    font-size: 12px;
    justify-content: center;
    align-items: center;
    /*background-color: #1baeae;*/
}

#header .center .fr .shopcart a {
    color: #b0b0b0;
}

#header .center .fr .shopcart a:hover{
    color: #fff;
}

/* PC 导航栏：宽度自适应屏幕，高度 100px */
#nav {
    width: 100%;
    height: 100px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background-color: #fff;
    border-bottom: 1px solid #e8e8e8;
    z-index: 99;
    box-sizing: border-box;
    margin-bottom: 0;
    /* 供 .nav-pc-search-overlay 绝对定位参照 */
    isolation: isolate;
}

#nav .banner_x {
    width: 100%;
    max-width: 1684px;
    height: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* PC 顶栏：左品牌 | 右側一整塊（導覽文案 + 圖示緊挨，整組貼右） */
.nav-pc-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 0 clamp(16px, 3vw, 48px);
    box-sizing: border-box;
}

.nav-pc-bar-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 2vw, 28px);
    width: 100%;
    min-height: 72px;
}

/* 品牌標識：對齊 SENSAI 參考 — 雙行置中、上襯線大字寬字距、下無襯線小字（區塊仍在頂欄左側） */
.nav-pc-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    color: #111;
    line-height: 1.05;
    text-align: center;
}

.nav-pc-brand-title {
    font-family: "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
    font-size: clamp(26px, 2.75vw, 36px);
    font-weight: 300;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
}

.nav-pc-brand-sub {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", -apple-system, BlinkMacSystemFont, "Yu Gothic", Meiryo, sans-serif;
    font-size: clamp(9px, 0.82vw, 11px);
    font-weight: 400;
    letter-spacing: 0.4em;
    text-indent: 0.4em;
    margin-top: 8px;
    color: #111;
}

.nav-pc-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: clamp(16px, 1.8vw, 28px);
    border-right: 1px solid #d0d0d0;
    padding-right: clamp(16px, 1.8vw, 28px);
}

.nav-pc-links > li {
    margin: 0;
}

.nav-pc-links a {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    font-size: clamp(11px, 0.95vw, 13px);
    color: #111111;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.nav-pc-links a:hover {
    opacity: 0.55;
}

.nav-pc-links a.active {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.nav-pc-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 1 auto;
    min-width: 0;
    gap: clamp(16px, 1.8vw, 28px);
}

.nav-pc-utils {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: clamp(16px, 1.8vw, 28px);
}

.nav-pc-utils-inner {
    display: flex;
    align-items: center;
    gap: clamp(16px, 1.8vw, 28px);
}

.nav-pc-util {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: #111;
    min-width: 44px;
    transition: opacity 0.2s;
}

.nav-pc-util:hover {
    opacity: 0.55;
}

.nav-pc-util-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    color: #111;
}

.nav-pc-util-label {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    font-size: 10px;
    margin-top: 6px;
    white-space: nowrap;
    color: #111;
}

button.nav-pc-util.nav-pc-util--search-trigger {
    cursor: pointer;
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

button.nav-pc-util.nav-pc-util--search-trigger:focus-visible {
    outline: 2px solid #c9a86c;
    outline-offset: 2px;
}

/* PC 顶栏 SENSAI 風検索パネル（ダーク）
   fixed 横铺满、高度随内容（检索行+HOT 词），不全屏遮盖正文；避免 absolute+100vw+sticky 并排错位 */
.nav-pc-search-overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: 100px;
    z-index: 200;
    max-height: calc(100vh - 100px - 8px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #1a1c20;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.nav-pc-search-overlay[hidden] {
    display: none !important;
}

.nav-pc-search-overlay__inner {
    max-width: 1684px;
    margin: 0 auto;
    padding: 28px clamp(20px, 4vw, 56px) 32px;
    box-sizing: border-box;
}

.nav-pc-search-overlay__main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 16px 24px;
}

.nav-pc-search-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-pc-search-cat-wrap {
    position: relative;
    flex: 0 0 auto;
    min-width: min(100%, 220px);
}

.nav-pc-search-cat-select {
    width: 100%;
    padding: 11px 36px 11px 14px;
    font-size: 13px;
    color: #f2f2f2;
    /* 收起态与面板一致；避免 transparent 导致部分浏览器下拉列表配色错乱 */
    background-color: rgba(10, 11, 13, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 2px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    font-family: inherit;
}

/* 展开列表多为系统浅色底，必须深色字；否则继承浅色字会完全看不见（Win/Chrome 常见） */
.nav-pc-search-cat-select option {
    background-color: #fff;
    color: #1a1a1a;
    font-size: 13px;
}

.nav-pc-search-cat-wrap::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -5px;
    border-right: 1px solid rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.75);
    transform: rotate(45deg);
    pointer-events: none;
}

.nav-pc-search-line-form {
    flex: 1 1 280px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    padding-bottom: 6px;
    min-width: 0;
}

.nav-pc-search-line-input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 8px 4px;
    font-size: 15px;
    color: #fff;
    background: transparent;
    outline: none;
    font-family: inherit;
}

.nav-pc-search-line-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.nav-pc-search-line-submit {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.nav-pc-search-close {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.nav-pc-search-close__x {
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}

.nav-pc-search-close__text {
    font-size: 10px;
    letter-spacing: 0.12em;
}

.nav-pc-search-hot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-pc-search-hot-title {
    font-size: 12px;
    letter-spacing: 0.18em;
    color: #c9a86c;
    margin: 0 0 12px;
    font-weight: 400;
}

.nav-pc-search-hot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    align-items: center;
}

.nav-pc-search-hot-list a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nav-pc-search-hot-list a:hover {
    color: #fff;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background-color: #111;
    color: #fff;
    font-size: 9px;
    font-weight: normal;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    box-sizing: border-box;
}

/* 兼容 search.js：登录态切换 */
.nav-user-login.nav-pc-utils-inner,
.nav-user-not-login.nav-pc-utils-inner {
    align-items: flex-start;
}

#nav .banner_x .logo {
    width: 234px;
    text-indent: -10000px;
    background: url(../image/mall-logo.gif) no-repeat;
    background-size: 100%;
    background-position: center;
}

#nav .banner_x .icon-search {
    width: 100px;
    text-indent: -10000px;
    background: url("../image/search.png") no-repeat;
    background-size: 50%;
    background-position: center;
}

#nav .banner_x .gif {
    width: 100px;
    text-indent: -10000px;
    background: url(../image/wx-mp-code.png) no-repeat;
    background-size: 100%;
    background-position: center;
}

#nav .banner_x .fr .button {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 1px solid #ccc;
    text-align: center;
    line-height: 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

#nav .banner_x .fr .button:hover {
    background-color: #1baeae;
    color: #fff;
    border: 1px solid #1baeae;
}

.nav-icon-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-icon-link:hover {
    opacity: 0.7;
}

.nav-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.nav-icon-label {
    font-size: 11px;
    font-weight: normal;
    color: #666;
    margin-top: 3px;
    white-space: nowrap;
}

.nav-icon-link:hover .nav-icon-label {
    color: #333;
}

.nav-cart {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 25px;
    font-size: 14px;
    color: #333;
    transition: color 0.3s;
}

.nav-login-btn {
    display: flex;
    align-items: center;
    padding: 6px 20px;
    margin-left: 10px;
    font-size: 14px;
    color: #fff;
    background-color: #1baeae;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-login-btn:hover {
    background-color: #159d9d;
    color: #fff;
}

.nav-user {
    position: relative;
    margin-left: 15px;
}

.nav-username {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.nav-username:hover {
    color: #1baeae;
}

.nav-username .iconfont {
    margin-left: 5px;
    font-size: 12px;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 120px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    border-radius: 4px;
    overflow: hidden;
    z-index: 100;
}

.nav-user:hover .nav-dropdown {
    display: block;
}

.nav-dropdown li {
    width: 100%;
}

.nav-dropdown li a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
}

.nav-dropdown li a:hover {
    background-color: #f5f5f5;
    color: #1baeae;
}

/* 搜索框样式 */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 280px;
    height: 40px;
    border: 1px solid #DDDDDD;
    background: #fff;
}

.search-box .search-input {
    flex: 1;
    height: 100%;
    padding: 0 15px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    background: transparent;
}

.search-box .search-input::placeholder {
    color: #999;
}

.search-box .search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 100%;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.search-box .search-icon:hover {
    color: #333;
}

.search-box:focus-within {
    border-color: #DDDDDD;
}

.search-box:focus-within .search-icon {
    color: #999;
}

#nav .banner_x .fr .search {
    position: relative;
}

#nav .banner_x .fr .search .text {
    box-sizing: border-box;
    width: 210px;
    height: 40px;
    border: 1px solid #ccc;
    padding: 0 10px;
}

.search_btn {
    outline: none;
    border: 1px solid #1baeae !important;
}

#nav .banner_x .fr .search .text:focus ~ .keyword_list {
    display: block;
}

#nav .banner_x .fr .search .search_hot {
    position: absolute;
    top: 16px;
    right: 12px;
}

#nav .banner_x .fr .search .search_hot a {
    float: left;
    display: block;
    font-size: 12px;
    height: 18px;
    line-height: 18px;
    margin-left: 5px;
    padding: 0 5px;
    background-color: #eee;
    color: #757575;
    transition: all 0.2s;
}

#nav .banner_x .fr .search .search_hot a:hover {
    color: #fff;
    background-color: #1baeae;
}

#nav .banner_x .fr .search .keyword_list {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    z-index: 100;
    width: 250px;
    box-sizing: border-box;
    border: 1px solid #1baeae;
}

#nav .banner_x .fr .search .keyword_list li {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 30px;
    padding: 6px 15px;
    background-color: #fff;
}

#nav .banner_x .fr .search .keyword_list li:hover {
    background-color: #fafafa;
}

#nav .banner_x .fr .search .keyword_list li a {
    display: block;
    width: 100%;
    height: 100%;
    font-size: 12px;
}

#nav .banner_x .fr .search .keyword_list li a .result {
    float: right;
    color: #b0b0b0;
}

.container {
    width: 1226px;
    *zoom: 1;
    margin-right: auto;
    margin-left: auto;
}

.container:before, .container:after {
    content: " ";
    display: table;
}

.saoyisao {
    background: #fff;
    position: fixed;
    top: 64%;
    left: 96%;
    z-index: 1000;
}


.saoyisao > .item{
    height: 68px;
    width: 68px;
    font-size: 12px;
    background-color: #fff;
    color: #666;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #e8e8e8;
    transition: background-color .2s;
}

.saoyisao > .wx-img{
    position: absolute;
    top: 0;
    left: -210%;
    padding: 7px;
    text-align: center;
    background-color: white;
}

.saoyisao > .wx-img > .wz {
    font-size: 12px;
    font-weight: bolder;
    color: #1baeae;
}

.site-footer { font-size: 14px; line-height: 1.8; color: #a8aaba; background: #32333b;}
.w1100 {width: 1100px;margin: 0 auto;}
.fl {float: left;}
.site-footer a { color: #a8aaba;}
.site-footer a:hover { color: #1baeae !important;}
.site-footer .footer-article { padding: 30px 0 20px; overflow: hidden;}
.site-footer .contact { float: left; width: 280px;}
.site-footer .contact dt { width: 90px;}
.site-footer .contact .iconfont { width: 66px;height: 66px; display: block;float: left;background: url(../image/tel.png) center center no-repeat;background-size: 55px;}
.site-footer .contact .text { font-size: 14px; line-height: 30px; color: #fff;}
.site-footer .contact .tel { padding: 3px 0 15px; font-size: 20px; color: #fff;}
.site-footer .contact a { display: block; width: 90px; font-size: 14px; line-height: 30px; color: #9b9ea0; text-align: center; border: 1px solid #9b9ea0; border-radius: 4px;}
.site-footer .contact a:hover { color: #fff !important;}
.site-footer .col-article { float: left; width: 171px;}
.site-footer .col-article dt { margin-bottom: 15px; font-size: 16px; font-weight: normal; color: #d7d8d9;}
.site-footer .col-article dd { margin-bottom: 8px; overflow: hidden;}
.site-footer .col-article dd a { font-size: 12px; color: #9b9ea0; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;}
.site-footer .wx { float: left; width: 135px; margin-right: 0;}
.site-footer .wx dt { margin-bottom: 15px; font-size: 16px; font-weight: normal; color: #d7d8d9;}
.site-footer .wx dd { margin-bottom: 15px;}
.site-footer .wx dd img { display: block; width: 110px; height: 110px; margin: 5px 0; border-radius: 2px;}
.site-footer .wx dd.other { margin-bottom: 0; line-height: 18px;}
.site-footer .wx dd.other span { display: block; font-size: 12px;}
.site-footer .wx dd.other a { display: inline-block; margin-right: 5px; font-size: 12px; line-height: 18px; vertical-align: top;}
.footer-links { padding: 10px 0; border-top: 1px solid #41424c; border-bottom: 1px solid #41424c;}
.footer-links p { font-size: 14px; color: #a8aaba;}
.footer-links a { margin-right: 20px; font-size: 12px; color: #a8aaba;}
.footer-info .info-text { padding: 20px 0; font-size: 12px; text-align: center;}
.footer-info .info-text .nav-bottom { padding: 20px 0 5px; font-size: 14px; color: #ccc; text-align: center;}
.footer-info .info-text .nav-bottom a { padding: 0 8px; color: #9b9ea0;}
.footer-info .info-text .copyright { padding-top: 5px;}
.footer-info .info-text em { padding: 0 8px;}

/* メイクアップ：SENSAI 風カテゴリ選択パネル */
/* 打开时：nav 改为 fixed + 高层级，避免 sticky + body overflow:hidden 导致顶栏“消失” */
body.makeup-choice-open,
body.series-choice-open,
body.entertainment-choice-open {
    overscroll-behavior: contain;
}

.makeup-choice-backdrop[hidden],
.makeup-choice-overlay[hidden] {
    display: none !important;
}

.makeup-choice-backdrop {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 100px;
    z-index: 198;
    background: rgba(15, 14, 15, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: makeup-backdrop-in 0.28s ease-out;
}

@keyframes makeup-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.makeup-choice-overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: 100px;
    z-index: 199;
    background: linear-gradient(165deg, #353234 0%, #1c1b1c 48%, #141314 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.35);
    animation: makeup-panel-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes makeup-panel-in {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.makeup-choice-inner {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 2.75rem clamp(20px, 4vw, 48px) 3.25rem;
    box-sizing: border-box;
}

.makeup-choice-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.makeup-choice-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(2rem, 6vw, 4.5rem);
}

.makeup-choice-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    max-width: 280px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.makeup-choice-card:hover {
    transform: translateY(-4px);
    opacity: 1;
}

.makeup-choice-card:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 6px;
    border-radius: 4px;
}

.makeup-choice-card__visual {
    width: min(220px, 42vw);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 2px;
    background: radial-gradient(ellipse 80% 70% at 50% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
                linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.15) 100%);
    color: rgba(255, 255, 255, 0.55);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.makeup-choice-card:hover .makeup-choice-card__visual {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.78);
}

.makeup-choice-card__visual--base {
    background: radial-gradient(ellipse 90% 60% at 40% 25%, rgba(245, 232, 220, 0.12) 0%, transparent 50%),
                linear-gradient(160deg, #2e2c2d 0%, #1a191a 100%);
}

.makeup-choice-card__visual--point {
    background: radial-gradient(ellipse 85% 55% at 60% 20%, rgba(220, 160, 170, 0.14) 0%, transparent 55%),
                linear-gradient(160deg, #2c2a2b 0%, #181718 100%);
}

.makeup-choice-inner--series-wide {
    max-width: 1280px;
}

.makeup-choice-cards--four {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: clamp(0.65rem, 1.6vw, 1.35rem);
    justify-items: center;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.makeup-choice-cards--four .makeup-choice-card {
    max-width: none;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.makeup-choice-cards--four .makeup-choice-card__visual {
    width: 100%;
    max-width: min(168px, 19vw);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.makeup-choice-cards--four .makeup-choice-card__label {
    font-size: clamp(10px, 0.9vw, 13px);
    letter-spacing: 0.08em;
    padding: 0 4px;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.makeup-choice-card__visual--series {
    background: radial-gradient(ellipse 88% 58% at 45% 22%, rgba(235, 228, 210, 0.1) 0%, transparent 52%),
                linear-gradient(158deg, #2d2b2c 0%, #191819 100%);
}

.makeup-choice-card__visual--entertainment {
    background: radial-gradient(ellipse 88% 58% at 50% 18%, rgba(180, 200, 230, 0.12) 0%, transparent 52%),
                linear-gradient(158deg, #2a2d32 0%, #17181c 100%);
}

.makeup-choice-card__svg {
    width: 58%;
    height: 58%;
}

.makeup-choice-card__label {
    margin-top: 1.35rem;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    font-size: clamp(12px, 1.05vw, 14px);
    letter-spacing: 0.14em;
    font-weight: 400;
    text-align: center;
    line-height: 1.5;
}

/*
 * ナビ下層パネル：旧テンプレ／ブラウザキャッシュで .makeup-choice-card__visual や
 * .makeup-choice-cards--four が残っていても、線画枠を出さずテキスト行に落とす。
 */
#makeupChoiceOverlay .makeup-choice-card__visual,
#makeupChoiceOverlay .makeup-choice-card__svg,
#seriesChoiceOverlay .makeup-choice-card__visual,
#seriesChoiceOverlay .makeup-choice-card__svg,
#entertainmentChoiceOverlay .makeup-choice-card__visual,
#entertainmentChoiceOverlay .makeup-choice-card__svg {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

#seriesChoiceOverlay .makeup-choice-cards--four,
#entertainmentChoiceOverlay .makeup-choice-cards--four,
#makeupChoiceOverlay .makeup-choice-cards--four {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    grid-template-columns: none !important;
    grid-auto-flow: unset !important;
    gap: clamp(1.15rem, 3vw, 2.35rem) !important;
    width: 100% !important;
    max-width: min(1120px, 96vw) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

#seriesChoiceOverlay .makeup-choice-cards--four .makeup-choice-card,
#entertainmentChoiceOverlay .makeup-choice-cards--four .makeup-choice-card,
#makeupChoiceOverlay .makeup-choice-cards--four .makeup-choice-card {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

#seriesChoiceOverlay .makeup-choice-cards--four .makeup-choice-card__label,
#entertainmentChoiceOverlay .makeup-choice-cards--four .makeup-choice-card__label,
#makeupChoiceOverlay .makeup-choice-cards--four .makeup-choice-card__label {
    margin-top: 0 !important;
    font-size: clamp(13px, 1.05vw, 15px) !important;
    letter-spacing: 0.1em !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.94) !important;
    line-height: 1.55 !important;
    white-space: normal !important;
    max-width: 11.5em !important;
    text-align: center !important;
}

#seriesChoiceOverlay:not(.makeup-choice-overlay--text-bar),
#entertainmentChoiceOverlay:not(.makeup-choice-overlay--text-bar),
#makeupChoiceOverlay:not(.makeup-choice-overlay--text-bar) {
    background: linear-gradient(168deg, #32353a 0%, #24272c 42%, #1a1c20 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.32);
}

#seriesChoiceOverlay:not(.makeup-choice-overlay--text-bar) .makeup-choice-close,
#entertainmentChoiceOverlay:not(.makeup-choice-overlay--text-bar) .makeup-choice-close,
#makeupChoiceOverlay:not(.makeup-choice-overlay--text-bar) .makeup-choice-close {
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.85);
}

#seriesChoiceOverlay .makeup-choice-inner--series-wide,
#entertainmentChoiceOverlay .makeup-choice-inner--series-wide {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: clamp(5.25rem, 9vh, 6.75rem) !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: clamp(1.15rem, 2.2vh, 1.75rem) clamp(20px, 4vw, 48px) !important;
    padding-right: clamp(4.5rem, 10vw, 6.5rem) !important;
    box-sizing: border-box !important;
}

/* メイクアップ：テキストのみ・横バー（高さ・余白を確保、リンクはエリア中央、閉じるは右端） */
.makeup-choice-overlay.makeup-choice-overlay--text-bar {
    background: linear-gradient(168deg, #32353a 0%, #24272c 42%, #1a1c20 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.32);
}

.makeup-choice-overlay.makeup-choice-overlay--text-bar .makeup-choice-close {
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.85);
}

.makeup-choice-inner.makeup-choice-inner--text-only {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: clamp(5.25rem, 9vh, 6.75rem);
    padding: clamp(1.15rem, 2.2vh, 1.75rem) clamp(20px, 4vw, 48px);
    /* 右に閉じるボタン分を多めに取り、リンク群の見た目の中央を整える */
    padding-right: clamp(4.5rem, 10vw, 6.5rem);
    box-sizing: border-box;
}

.makeup-choice-cards--text-only {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 5vw, 3.5rem);
    width: auto;
    max-width: min(42rem, 92vw);
    margin: 0 auto;
}

/* シリーズ / エンターテイメント：複数カテゴリを一行〜折返しで収める */
.makeup-choice-cards--text-only.makeup-choice-cards--text-only-wide {
    max-width: min(1120px, 96vw);
    gap: clamp(1.15rem, 3vw, 2.35rem);
}

.makeup-choice-cards--text-only-wide .makeup-choice-card--text-only .makeup-choice-card__label {
    white-space: normal;
    max-width: 11.5em;
}

.makeup-choice-card--text-only {
    max-width: none;
    flex: 0 1 auto;
    padding: 0.5rem 0.35rem;
    border: none;
    box-sizing: border-box;
}

.makeup-choice-card--text-only .makeup-choice-card__label {
    margin-top: 0;
    font-size: clamp(13px, 1.05vw, 15px);
    letter-spacing: 0.1em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.94);
    text-align: center;
    line-height: 1.55;
    white-space: nowrap;
}

.makeup-choice-card--text-only:hover {
    transform: none;
    opacity: 1;
}

.makeup-choice-card--text-only:hover .makeup-choice-card__label {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 768px) {
    .makeup-choice-overlay.makeup-choice-overlay--text-bar .makeup-choice-close {
        top: 0.65rem;
        transform: none;
    }

    .makeup-choice-inner.makeup-choice-inner--text-only {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        min-height: auto;
        padding: 2.75rem clamp(18px, 5vw, 32px) 1.5rem;
        padding-right: clamp(18px, 5vw, 32px);
    }

    .makeup-choice-cards--text-only {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }

    .makeup-choice-card--text-only {
        width: 100%;
        max-width: 20rem;
        padding: 0.65rem 0.75rem;
        margin: 0 auto;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 2px;
        text-align: center;
    }

    .makeup-choice-card--text-only .makeup-choice-card__label {
        white-space: normal;
    }

    #seriesChoiceOverlay .makeup-choice-inner--series-wide,
    #entertainmentChoiceOverlay .makeup-choice-inner--series-wide {
        flex-direction: column !important;
        align-items: stretch !important;
        min-height: auto !important;
        padding: 2.75rem clamp(18px, 5vw, 32px) 1.5rem !important;
        padding-right: clamp(18px, 5vw, 32px) !important;
    }

    #seriesChoiceOverlay .makeup-choice-cards--four,
    #entertainmentChoiceOverlay .makeup-choice-cards--four {
        flex-direction: column !important;
        align-items: center !important;
    }

    #seriesChoiceOverlay:not(.makeup-choice-overlay--text-bar) .makeup-choice-close,
    #entertainmentChoiceOverlay:not(.makeup-choice-overlay--text-bar) .makeup-choice-close,
    #makeupChoiceOverlay:not(.makeup-choice-overlay--text-bar) .makeup-choice-close {
        top: 0.65rem;
        transform: none;
    }
}

.makeup-choice-close {
    position: absolute;
    top: 1.25rem;
    right: clamp(12px, 3vw, 28px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.35rem 0.5rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.makeup-choice-close:hover {
    color: #fff;
    opacity: 1;
}

.makeup-choice-close__x {
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1;
}

.makeup-choice-close__text {
    font-size: 10px;
    letter-spacing: 0.12em;
}

/* 窄屏（手机访问 PC 模板页）：与 m-header 一致 — PC 同款文字品牌 + 右侧图标，隐藏顶栏文案链 */
@media (max-width: 768px) {
    .nav-pc-search-overlay {
        top: 76px;
        max-height: calc(100vh - 76px - 8px);
    }

    #nav {
        height: auto;
        min-height: 76px;
    }

    #nav .banner_x {
        height: auto;
        min-height: 76px;
    }

    .nav-pc-bar {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        padding: 10px 16px 12px;
        gap: 12px;
        min-height: 76px;
        box-sizing: border-box;
    }

    .nav-pc-bar-row {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 0;
        gap: 12px;
    }

    .nav-pc-links {
        display: none !important;
    }

    .nav-pc-right {
        flex: 0 0 auto;
        min-width: 0;
        gap: clamp(10px, 3vw, 16px);
    }

    .nav-pc-utils {
        gap: clamp(10px, 3vw, 16px);
    }

    .nav-pc-utils-inner {
        gap: clamp(10px, 3vw, 16px);
    }

    .nav-pc-brand {
        align-items: center;
        text-align: center;
        min-width: 0;
        max-width: min(52vw, 220px);
    }

    .nav-pc-brand-title {
        font-size: clamp(17px, 4.8vw, 22px);
        font-weight: 300;
        letter-spacing: 0.2em;
        text-indent: 0.2em;
    }

    .nav-pc-brand-sub {
        font-size: 9px;
        letter-spacing: 0.34em;
        text-indent: 0.34em;
        margin-top: 5px;
    }

    .nav-pc-util-icon {
        height: 22px;
    }

    .nav-pc-util-icon svg {
        width: 20px;
        height: 20px;
    }

    .nav-pc-util-label {
        font-size: 10px;
        margin-top: 5px;
    }

}
