/* static/style.css */
* {
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    width: auto;
}

:root {
    --green: #22ad5b;
    --rime: #b7d600;
    --blue: #0077b1;
    --blue-text: #00abff;
    --red: #db004d;
    --frame-color: #0f12188f;
    --frame-color-sub: #0f12183b;
    --cover-color: #0000003d;
    --gray: #aaa;
    --orange: #f5a133;
}

img {
    vertical-align: bottom;
}

body {
    font-family: Poppins, Sans-serif, Arial;
    background-color: #1c1f25;
    color: #e0e0e0;
    font-size: 15px;
}

/* .body-bg{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #223349 0%, #182d48 100%);
} */
body.fixed {
    overflow: hidden;
}

a,
a:visited {
    transition: ease all .4s;
    color: #4dabf7;
    text-decoration: none;
}

a:hover {
    color: #ff6b6b;
}

a:visited:hover {}

input:focus {
    outline: none;
    box-shadow: none;
}
select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    box-shadow: inset 0 0 6px 2px #4eaaeb8f;
}

main {
    position: relative;
    min-height: 80vh;
}
@media screen and (min-width:769px){
    .sp-only{
        display: none !important;
    }
}
@media screen and (max-width:768px){
    .pc-only{
        display: none !important;
    }
}
/*==============================================================
*
*   admin
*
*==============================================================*/
.admin-menu {
    width: 100%;
    padding: 5px 10px;
    background: #000;
    font-size: .8rem;
    position: relative;
}

.admin-menu a {
    color: #fff;
}

/*==============================================================
*
*   header
*
*==============================================================*/
header {
    width: 100%;
    position: relative;
    background: #0d1116;
    color: #fff;
    margin-bottom: 40px;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    margin: 0 auto;
}
.header_promo{
    margin: 20px auto;
    max-width: 1440px;
    padding: 0 20px;
    text-align: center;
}
@media screen and (max-width:768px){
    header{
        margin-bottom: 20px;
    }
    header nav.w14{
        flex-wrap: wrap;
        padding: 10px;
    }
}

/*========================================
*   nav-left
*=========================================*/
header nav .nav-left {
    display: flex;
    align-items: center;
    width: 30%;
}
header nav .nav-left .logo a{
    transition: ease all .4s;
}
header nav .nav-left .logo a:hover{
    opacity: .8;
}
header nav .nav-left .logo a img{
    width: 100px;
}

header .filter-search {
    margin-left: 20px;
    position: relative;
    font-size: .8rem;
    transition: ease all .3s;
}

header .filter-search:hover {
    cursor: pointer;
    color: var(--rime);
}

/* ナビゲーションメニューリンク（リクエストなど） */
.nav-menu-link,
a.nav-menu-link {
    margin-left: 20px;
    font-size: .8rem;
    color: #fff;
    text-decoration: none;
    transition: ease all .3s;
    white-space: nowrap;
}
.nav-menu-link:hover {
    color: var(--rime);
}

@media screen and (max-width:768px){
    header nav .nav-left .logo{
        width: 80px;
    }
    header nav .nav-left {
        width: 40%;
        order: 1;
    }
    header .filter-search{
        font-size: .8rem;
        margin-left: 15px;
    }
    .nav-menu-link{
        font-size: .8rem;
        margin-left: 10px;
    }
}

.modal-bg {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: ease all .4s;
    z-index: 99;
}

.modal-bg.active {
    opacity: 1;
    pointer-events: all;
    backdrop-filter: blur(8px);
}

.filter-search-modal {
    width: 90%;
    max-width: 1100px;
    height: 80%;
    max-height: 700px;
    background: #1c1f25;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: ease all .4s;
    overflow: hidden;
    color: #e0e0e0;
}

.filter-search-modal.active {
    opacity: 1;
    pointer-events: all;
}

.filter-search-modal-header {
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-search-modal-header .title {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
}

.filter-search-modal .close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
    border-radius: 50%;
}

.filter-search-modal .close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg);
}

.filter-search-modal .filter-search-modal-inner {
    overflow-y: scroll;
    height: calc(100% - 73px);
    padding: 30px;
}

.filter-search-modal .filter-search-modal-inner::-webkit-scrollbar {
    width: 6px;
}

.filter-search-modal .filter-search-modal-inner::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.filter-search-modal-score {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-search-modal-score-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.filter-search-modal-score-list ol {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.filter-search-modal-score-list li {
    flex: 1 1 calc(20% - 10px);
    min-width: 120px;
}

.filter-search-modal-score-list li a {
    display: block;
    padding: 12px 15px;
    background: #242c38;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    text-align: center;
    color: #e0e0e0;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.filter-search-modal-score-list li a:hover {
    background: var(--rime);
    color: #111;
    transform: translateY(-2px);
    border-color: transparent;
}

.filter-search-modal .filter-search-modal-search-form {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-search-modal .filter-search-modal-search-form-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.filter-search-modal .filter-search-modal-search-form fieldset {
    width: 32%;
    height: 220px;
    margin-right: 2%;
    overflow-y: auto;
    background: #171a21;
    border: 1px solid #3c4454;
    border-radius: 3px;
    padding: 10px;
    margin-bottom: 20px;
}
.filter-search-modal .filter-search-modal-search-form fieldset:nth-child(3){
    margin-right: 0;
}

.filter-search-modal .filter-search-modal-search-form legend {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 0 8px;
    font-weight: 500;
}

.filter-search-modal .filter-search-modal-search-form fieldset::-webkit-scrollbar {
    width: 4px;
}

.filter-search-modal .filter-search-modal-search-form fieldset::-webkit-scrollbar-track {
    background: transparent;
}

.filter-search-modal .filter-search-modal-search-form fieldset::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.filter-search-modal .filter-search-modal-search-form fieldset::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.filter-search-modal .filter-search-modal-search-form fieldset label {
    font-size: 0.8rem;
    display: block;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
    color: #e0e0e0;
}

.filter-search-modal .filter-search-modal-search-form fieldset label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.filter-search-modal .filter-search-modal-search-form fieldset label:last-child {
    border-bottom: none;
}

.filter-search-modal .filter-search-modal-search-form fieldset label input[type="checkbox"] {
    margin-right: 8px;
}

.filter-search-modal .filter-search-modal-search-form button {
    display: block;
    width: 240px;
    margin: 10px auto 0;
    padding: 12px;
    background: var(--rime);
    color: #111;
    border: none;
    border-radius: 2px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.filter-search-modal .filter-search-modal-search-form button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--blue-rgb), 0.3);
}

@media screen and (max-width: 768px) {
    .filter-search-modal-score-list li a{
        font-size: 0.8rem;
    }
    .filter-search-modal .filter-search-modal-search-form fieldset {
        width: 48%;
    }
}
@media screen and (max-width: 480px) {
    .filter-search-modal .filter-search-modal-search-form fieldset {
        width: 100%;
    }
    .filter-search-modal .filter-search-modal-inner {
        padding: 15px;
    }
}

/*========================================
*   nav-center
*=========================================*/
header nav .nav-center {
    width: 40%;
}

header .search-menu {
    width: 100%;
    display: flex;
    justify-content: center;
}

header .search-menu form {
    width: 100%;
}

header .search-menu label {
    position: relative;
    display: block;
}

header .search-menu label input {
    background: #fff;
    border: none;
    padding: 5px 10px;
    font-size: .8rem;
    width: 100%;
    border-radius: 2px;
    color: #333;
    transition: ease all .4s;
}

header .search-menu label input:focus {
    outline: none;
    box-shadow: none;
}

header .search-menu label button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: calc(100% - 10px);
    padding: 5px;
    padding-right: 10px;
    width: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
}

header .search-menu label button svg {
    fill: #e0e0e0;
}
@media screen and (max-width:768px){
    header nav .nav-center {
        width: 100%;
        order: 2;
        margin-top: 10px;
    }
    header .search-menu label input{
        padding: 10px;
    }
}

/*========================================
*   nav-right
*=========================================*/
header nav .nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 25%;
}

header nav .nav-right .signin {
    margin-right: 10px;
    font-size: .8rem;
    color: #fff;
}

header nav .nav-right .signin a {
    color: #fff;
}

header nav .nav-right select {
    background: #333;
    border: none;
    padding: 5px;
    font-size: .8rem;
    width: 100%;
    border-radius: 2px;
    color: #e0e0e0;
    line-height: 1;
}

header nav .nav-right select:focus {
    outline: none;
    box-shadow: none;
}

header nav .nav-right .user {
    margin-right: 10px;
}

header nav .nav-right .user a {
    color: #fff;
    display: flex;
    align-items: center;
}

header nav .nav-right .user a .avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #333;
}

header nav .nav-right .user a .name {
    display: none;
}

header nav .nav-right .hmenu-btn {
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    margin-left: 10px;
}
header nav .nav-right .hmenu-btn span{
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
}
@media screen and (max-width:768px){
    header nav .nav-right {
        width: 60%;
        order: 1;
    }
}

/*==============================================================
*
*   hmenu
*
*==============================================================*/
.hmenu{
    display: block;
    position: fixed;
    right: -100%;
    top: 0;
    padding: 20px;
    width: 70%;
    max-width: 400px;
    height: 100%;
    background: #1c1f25;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: ease right .4s;
    overflow-y: auto;
}
.hmenu.active{
    right: 0;
}
.hmenu .close{
    position: absolute;
    right: 20px;
    top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
    border-radius: 50%;
    line-height: 1;
}
.hmenu .close:hover{
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg);
}
.hmenu .logo img{
    width: 100px;
    margin-bottom: 20px;
}
.hmenu .hmenu-inner-btn{
    margin: 40px auto 20px;
    display: flex;
    justify-content: space-between;
}
.hmenu .hmenu-inner-btn .btn{
    width: 48%;
    text-align: center;
    cursor: pointer;
    transition: all .4s;
    font-weight: 500;
}
.hmenu .hmenu-inner-btn .btn a{
    color: #fff;
    line-height: 1;
    padding: 10px;
    display: block;
    border-radius: 2px;
    background: var(--frame-color);
}
.hmenu .hmenu-inner-btn .btn.regist a{
    border: none;
    background: var(--rime);
    color: #111;
}
.hmenu .hmenu-inner-btn .btn a:hover{
    background: var(--rime);
    color: #111;
    transform: translateY(-2px);
    border-color: transparent;
}
.hmenu .user{
    margin: 40px auto 20px;
}
.hmenu .user a{
    display: flex;
    align-items: center;
    padding: 10px;
    background: var(--frame-color);
    color: #fff;
    border-radius: 2px;
}
.hmenu .user a .avatar img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #333;
    margin-right: 10px;
}
.hmenu .user a .avatar .name{
    width: calc(100% - 60px);
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    line-clamp: 2;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal;
    word-break: break-all;
}
.hmenu .language-select {
    margin-bottom: 20px;
    display: block;
}
.hmenu .language-select select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 2px;
}
.hmenu .language-select select:focus {
    outline: none;
}
.hmenu .filter-search {
    background: var(--frame-color);
    padding: 10px;
    border-radius: 3px;
    text-align: center;
    font-size: 1rem;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}
.hmenu .filter-search:hover {
    background: var(--rime);
    color: #111;
    transform: translateY(-2px);
    border-color: transparent;
}

/* ハンバーガーメニュー内リンク共通スタイル */
.hmenu-link {
    display: block;
    background: var(--frame-color);
    padding: 10px;
    border-radius: 3px;
    text-align: center;
    font-size: 1rem;
    color: #e0e0e0;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    margin-top: 10px;
}
a.hmenu-link{
    color: #fff;
}


/*==============================================================
*
*   contents common
*
*==============================================================*/
.contwrapper {
    max-width: 1600px;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto;
}

.messages {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateY(-100%);
    width: 100%;
    transition: ease all .4s;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    z-index: 5;
}

.messages.active {
    transform: translateY(0);
    box-shadow: 0 0 20px 0 #0000002b;
}

.messages .success {
    width: 100%;
    padding: 10px;
    background: var(--rime);
    color: #111;
}

.messages .error,
.messages .warning {
    width: 100%;
    padding: 10px;
    background: var(--red);
}

/* ============================================================
 *   通知ベル
 * ============================================================ */
.notification-bell {
    position: relative;
    cursor: pointer;
    margin-right: 12px;
}

.notification-bell i {
    font-size: 1.2rem;
    color: #ccc;
    transition: color 0.3s;
}

.notification-bell:hover i {
    color: var(--rime);
}

.notification-bell-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--red);
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: -10px;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: #1c1f25;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
}

.notification-dropdown.active {
    display: block;
}

.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notification-dropdown-header-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.notification-dropdown-header .mark-all-read {
    font-size: 0.75rem;
    color: var(--blue-text);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s;
}

.notification-dropdown-header .mark-all-read:hover {
    color: var(--rime);
}

.notification-item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-decoration: none;
    color: #ccc;
    font-size: 0.82rem;
    line-height: 1.5;
    transition: background 0.2s;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.notification-item.unread {
    background: rgba(183, 214, 0, 0.04);
    border-left: 3px solid var(--rime);
}

.notification-item-time {
    font-size: 0.72rem;
    color: #666;
    margin-top: 4px;
}

.notification-empty {
    padding: 30px 16px;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

/*==============================================================
*
*   footer
*
*==============================================================*/
footer {
    width: 100%;
    background: #0d1116;
    color: #fff;
}

footer .footer-contents {
    padding: 10px;
    padding-bottom: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
footer .footer-contents .username::after{
    content: '|';
    color: #fff;
    padding: 0 5px;
}

footer .footer-contents a{
    color: #fff;
    transition: ease all .4s;
}
footer .footer-contents button{
    font-size: 1rem;
    transition: ease all .4s;
}
footer .footer-contents a:hover,
footer .footer-contents button:hover{
    opacity: .7;
    cursor: pointer;
}

footer .footer-links {
    text-align: center;
    padding: 10px 0;
}

footer .footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

footer .footer-links a:hover {
    color: #fff;
}

footer .copyright {
    font-size: .75rem;
    text-align: center;
    padding: 10px;
}