/**************************************************
**
**	OPTION
**	-----------------------------------------------
**	layout.css / style.css で上書きしたいスタイルを
**	ここに記入
**
***************************************************/

/**************************************************
**
**	LAYOUT ID
**	-----------------------------------------------
**	DEFAULT SETTING
**
***************************************************/

/***********************************
**
**	HEADER
**
***********************************/

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    background: url("/images/pc/background.png") repeat center top;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/***********************************
**
**	HEADER
**
***********************************/

header {
    background-image: url("/images/pc/header.png");
    width: 830px;
    height: 40px;
    z-index: 20;
}

#headerMargin {
    height: 0px;
}

/***********************************
**
**	FOOTER
**
***********************************/

footer {
    background-image: url("/images/pc/footer.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 830px;
    height: 40px;
    z-index: 20;
}

/***********************************
**
**	LAYOUT
**
***********************************/

/* header / footer の高さ差分 */
#wrapper {
    background-color: #ffffff;
    width: 830px;
    height: calc(100% - 80px);
    margin: 0 auto;
    padding: 40px 0 40px 0;
    border-left: 1px solid #cccccc;
    border-right: 1px solid #cccccc;
    overflow: hidden;
}

/* NAVIGATION AREA */
#navigationArea {
    width: 42%;
    height: 100%;
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* MAIN AREA */
#mainArea {
    position: relative;
    width: var(--main-area-width);
    height: 100%;
    border: none;
    white-space: -moz-pre-wrap;
    word-wrap: break-word;
    word-break: break-all;
    overflow-x: hidden;
    overflow-y: hidden;
}

.container {
    padding: 0px;
    border-left: 1px solid #000;
}

.contents {
    /* padding: 10px; */
}

/***********************************
**
**	NAVIGATION
**
***********************************/

#navigationMenu {
    width: 100%;
    background-color: #ffffffdb;
    border-radius: 0 0 10px 10px;
    border-bottom: 1px solid #000;
    border-right: 1px solid #000;
}

#navigationMenu ul {
    padding: 5px;
    padding-bottom: 0px;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
}

#navigationMenu ul li {
    position: relative;
    width: 25%;
    padding: 0px;
    list-style-type: none;
}

#navigationMenu ul li p {
    position: relative;
    margin: 0 auto;
    margin: 0px 3px 5px 3px;
    display: block;
}

#navigationMenu ul li p img {
    width: 100%;
    border-radius: 8px;
}

/***********************************
**
**	SIDE NEWS
**
***********************************/

#side-news-list {
    width: 90%;
    height: 30%;
    background-color: #FFFFFF;
    margin: auto 1%;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    border: 1px solid #e0e0e0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    /** 子要素の設定*/
    display: flex;
    flex-direction: column;
}


#side-news-list::-webkit-scrollbar {
  display: none;
}

.side-news-title {
    font-weight: bold;
    font-size: 14px;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
}

.side-news-item {
    width: 96%;
    height: 20%;
    padding: 3% 2%;
    border-radius: 6px;
}

.side-news-item:hover {
    background:linear-gradient(to right, #ffffff00, #00000026);
}

.side-news-item:last-child {
    margin-bottom: 0;
}

.side-news-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.side-news-date {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
    font-weight: 500;
}

.side-news-text {
    font-size: 13px;
    color: #888;
    line-height: 1.4;
    word-break: break-word;
}

/**************************************************
**
**	FULL SCREEN
**	-----------------------------------------------
**	FULL SCREEN SETTING
**
***************************************************/

.fullScreenBackgroundImage img {
    border: 1px solid #000;
    position: relative;
    width: 100%;
    display: block;
}

/**************************************************
**
**	各コンテンツ上書き
**	-----------------------------------------------
**	CONTENTS REWRITE SETTING
**
***************************************************/

#fullWideView {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    margin: auto;
    width: 830px;
    height: calc(100% - 80px);
    overflow-x: hide;
    overflow-y: auto;
}

/*
#fullWideView .contents{
	width: 500px;
	margin: 0 auto;
}
*/

#noAuthArea {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    margin: auto;
    width: 500px;
    height: calc(100% - 80px);
}

#indexArea {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    margin: auto;
    width: 500px;
    height: calc(100% - 80px);
}

#homePresentButton a {
    display: none;
}

#homeNewsButton a {
    display: none;
}

#chatContentsArea {
    position: fixed;
    top: 0%;
    bottom: 0;
    left: 0;
    right: 33%;
    margin: auto;
    /*background-color: #999999;*/
    width: 26%;
    height: calc(100% - 10%);
}

#pointArea {
    /*
	top: 40px;
	left: 70px;
	*/
    top: 87px;
    left: 10px;
}

#messageListArea {
    top: 20%;
    height: 75%;
}

.chatOptionArea {
    display: none;
}

#chatBackground {
    position: relative;
    top: 0;
    left: 44%;
    width: 56%;
}

.messageTextArea {
    width: 88%;
}

/**************************************************
**
**	CONTENTS
**	-----------------------------------------------
**	CONTENTS SETTING
**
***************************************************/
.formList {
    width: 80%;
}

/**************************************************
**
**	MODAL
**	-----------------------------------------------
**	MODAL SETTING
**
***************************************************/



.modalContentFullHeight {
    width: 530px;
}

.photoFullModal {
    width: 600px;
}

.modalResizePc {
    width: 440px;
}

.lschg {
    display: flex;
    height: 4em;
    padding-top: 0px;
    margin-bottom: -8px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family:
        "M PLUS Rounded 1c", "メイリオ Regular", "ヒラギノ角ゴシック",
        sans-serif;
}

.lschg div {
    width: calc(100% / 4);
    text-align: center;
    position: relative;
}

.lschg div[data-mail-cnt]:before {
    position: absolute;
    top: 4px;
    right: 2px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    background: #ff2d74;
    color: #fff;
    /* border: solid 1px #fff; */
    text-align: center;
    font-size: 10px;
    border-radius: 50%;
    font-weight: bold;
    content: attr(data-mail-cnt) "";
}

.lschg img {
    max-width: 90%;
}

.modalFooter {
    gap: 5px;
}

/**************************************************
**
**	FAVORITE
**	-----------------------------------------------
**	FAVORITE CHARACTER SETTING
**
***************************************************/

/* favorite modal: improve readability for character names + selection state */
.modalContent .favGrid.boxColumn {
    padding: 10px 8px;
    gap: 20px;
    row-gap: 20px;
}
.modalContent .favCard {
    /* width: calc(33.333% - 20px); */
    width: 32%;
}
@media (max-width: 520px) {
    .modalContent .favCard {
        width: calc(50% - 20px);
    }
}
.modalContent .favButton {
    width: 100%;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}
.modalContent .favButton:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.modalContent .favButton:hover .favThumb::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}
.modalContent .favButton:hover .favName {
    background: #e0e0e0;
    color: #111;
}
.modalContent .favButton:focus {
    outline: 2px solid #0099ff;
    outline-offset: 2px;
}
.modalContent .favThumb {
    position: relative;
    display: block;
}
.modalContent .favThumb img.fav_img {
    display: block;
    width: 100%;
    border-radius: 0; /* avoid double radius with card */
}
.modalContent .favName {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.5em; /* 2 lines */
    padding: 6px 6px 7px;
    background: #fafafa;
    color: #222;
    font-size: 13px;
    font-weight: 600;
    /* line-height: 1.3; */
    text-align: center;
    word-break: break-word;
}
.modalContent .favCard.is-selected .favButton {
    border-color: #0099ff;
    box-shadow: 0 0 0 1px rgba(0, 153, 255, 0.25);
}
.modalContent .favCard.is-selected .favName {
    background: #d5d5d5;
    color: #000;
}
/* reuse existing overlay, but only over the thumbnail */
.modalContent .favThumb .boxColumnScreen {
    border-radius: 0;
    background-color: rgba(0, 0, 0, 0.55);
}
.modalContent .favThumb .boxColumnScreen .favSelectedBadge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
}
/* hide checkbox but keep for accessibility/state */
.modalContent input.fav-check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.favForm {
    padding: 3px;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    gap: 10px;
}
