@charset "utf-8";
* {
	box-sizing: border-box;
}
#header {
	position: fixed;
	top: 0;
	width: 100%;
	background-color: white;
	z-index: 1000;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
#header nav ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	text-align: center;
}
#header nav ul li {
	display: inline-block;
	margin: 0 10px;
}
#header nav ul li a {
	text-decoration: none;
	color: black;
	padding: 10px 20px;
}
#header {
	position: relative;
	background-color: #f0f0f0;
}

.h1_title a {
	color: rgb(0, 0, 0);
	text-decoration: none;
}
.h1_title a:hover, .h1_title a:focus, .h1_title a:active {
	color: rgb(0, 0, 0);
}

/* ダーク・ライトモード切替 */
#theme-toggle {
	position: absolute;
	top: 2px;
	right: 2px;
	padding: 2px 5px;
	background-color: #007bff;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.8em;
}

/* ローディングオーバーレイのスタイル */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	display: none;
	justify-content: center;
	align-items: center;
	color: #fff;
}
.loading-overlay-text {
	font-size: 1.4em;
	margin: 20px;
}
.spinner {
	border: 14px solid #f3f3f3;
	border-top: 14px solid #3498db;
	border-radius: 50%;
	width: 100px;
	height: 100px;
	animation: spin 2s linear infinite;
}
@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
#current-date-box {
	text-align: center;
	margin-top: 20px;
}

body {
	margin: 0;
	padding: 10px;
	padding-top: 6px;
	font-family: "ヒラギノ丸ゴ Pro", "Hiragino Maru Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}
.h1_title {
	text-align: center;
	font-size: 1.4em;
}

/*PAGE TOP（↑）設定
---------------------------------------------------------------------------*/
.pagetop-show {display: block;}

/*ボタンの設定*/
.pagetop a {
	display: block;text-decoration: none;text-align: center;z-index: 99;
	position: fixed;	/*スクロールに追従しない(固定で表示)為の設定*/
	right: 20px;		/*右からの配置場所指定*/
	bottom: 20px;		/*下からの配置場所指定*/
	background: rgba(0,0,0,0.3);	/*背景色。0,0,0は黒の事で0.3は色が30%出た状態。	*/
	width: 50px;		/*幅*/
	line-height: 50px;	/*高さ*/
	color: #fff;		/*文字色*/
}

#content {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 5px;
	padding: 10px;
	max-width: calc(300px * 5);
	margin: 0 auto;
}
.date-button {
	position: fixed;
	top: 10%;
	transform: translateY(-10%);
	background-color: rgba(0, 0, 0, 0.5);
	color: white;
	padding: 10px;
	cursor: pointer;
	z-index: 1000;
}
#left-button {
	left: 10px;
}
#right-button {
	right: 10px;
}

/* カード形式 */
.card {
	display: grid;
	grid-template-columns: 190px 1fr;
	grid-template-rows: 25px 60px 40px repeat(1, 30px);
	background-color: #ffffff;
	color: #000;
	padding: 10px;
	text-align: center;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	min-width: 300px;
	max-width: 100%;
	box-sizing: border-box;
}
.card_live-img {
	grid-area: 1 / 1 / 4 / 2;
}
.card_time {
	grid-area: 1 / 2 / 2 / 3;
	/*background: rgb(214, 114, 0);*/
	justify-content: start;
	align-self: start;
	font-size: 0.8em;
}
.card_author {
	grid-area: 2 / 2 / 3 / 3;
	/*background: #f88;*/
}
.card_author img {
	width: 48px;
	object-fit: contain;
	border-radius: 50%;
}
.card_liver_name {
	grid-area: 3 / 2 / 4 / 3;
	/*background: #88f;*/
	text-align: center;
	font-size: 0.9em;
	padding: 0.2em;
	line-height: 1.2em;
}
.card_title {
	grid-area: 4 / 1 / 5 / 3;
	/*background: rgb(52, 113, 52);*/
	text-align: left;
	font-size: 0.8em;
	padding: 0.1em;
	line-height:1em;
	text-decoration: none;
}
.card_title a {
	text-decoration: none;
}
.card_tag {
	grid-area: 5 / 1 / 6 / 3;
	/*background: rgb(136, 255, 221);*/
	justify-content: start;
	text-align: left;
	padding: 0.1em;
}
.live_list_tag {
	position: relative;
	display: inline-block;
	height: 18px;
	padding: 0 0.8em 0 0.8em;
	background-color: #2196F3;
	line-height: 2.2em;
	border-radius: 50px;
	color: #fff;
	font-size: 0.6em;
	text-decoration: none;
	-webkit-transition: .2s;
	transition: .2s;
}
.live_list_live_img img {
	width: 100%;
}
.live_list_live_img {
	position: relative;
}

/* Twitch */
.live_list_live_img_twitch {
	content: "";
	position: absolute;
	top: 0px;
	left: 0px;
	width: 60px;
	height: 16px;
	font-size: 0.6em;
	text-align: center;
	color: #ffffff;
	background-color: purple;
	z-index: 1;
}
/* Youtube */
.live_list_live_img_youtube {
	content: "";
	position: absolute;
	top: 0px;
	left: 0px;
	width: 60px;
	height: 16px;
	font-size: 0.6em;
	text-align: center;
	color: #ffffff;
	background-color: red;
	z-index: 1;
}

/* ダークモードのスタイル */
body.dark-mode .h1_title a {
	color: white;
	text-decoration: none;
}
body.dark-mode .h1_title a:hover, body.dark-mode .h1_title a:focus, body.dark-mode .h1_title a:active {
	color: white;
}
body.dark-mode {
	background: #2e2c2c;
	color: #F7F7F7;
}
body.dark-mode #header {
	background: #2e2c2c;
	color: #F7F7F7;
}
body.dark-mode #header nav ul li a {
	color: white;
}
body.dark-mode .card {
	background: #2e2c2c;
	color: #F7F7F7;
	border: 1px solid #ffffff;
}
body.dark-mode .card_author, body.dark-mode .card_title, body.dark-mode .card_liver_name, body.dark-mode .card_tag, body.dark-mode .card_time {
	background: #2e2c2c;
	color: #F7F7F7;
}
body.dark-mode .card_title a {
	color: white;
}
body.dark-mode .card_title a:hover, body.dark-mode .card_title a:focus, body.dark-mode .card_title a:active {
	color: white;
}



/* プライバシーポリシー・利用規約用モーダル  */

.modal {
    display: none; /* 初期状態では非表示 */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.7); /* 半透明の背景 */
}

.modal-content {
    background-color: #fff;
    margin: 5%; /* 最大画面サイズから-10%のマージン */
    padding: 20px;
    border: 1px solid #888;
    width: 90%; /* 幅を調整 */
}

.modal-content textarea {
    width: 90%; /* 幅を調整 */
	height: 200px; /* 幅を調整 */
}

.modal-content li {
	list-style: none;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

body.dark-mode .modal-content {
    background-color: #000;;
    margin: 5%; /* 最大画面サイズから-10%のマージン */
    padding: 20px;
    border: 1px solid #888;
    width: 90%; /* 幅を調整 */
}


/* フッター */
footer small {
	font-size: 100%;
}
footer {
	font-size: 0.7rem;
	background: var(--primary-color);
	color: var(--primary-text-color);
	text-align: center;
	padding: 20px;
}

footer a {
	color: inherit;
	text-decoration: none;
}

footer .pr {
	display: block;
}
footer .stgr_fun_logo {
	display: inline;
	width: 300px;
}


/* live-detail 専用のスコープ */
.live-detail-page .live-card {
  border: 1px solid #ccc;
  padding: 20px;
  max-width: 900px;
  margin: auto;
  font-family: sans-serif;
}

.live-detail-page .top-section {
  display: flex;
  gap: 20px;
}

.live-detail-page .thumbnail img {
  width: 300px;
  height: auto;
  object-fit: cover;
}

.live-detail-page .info-boxes {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.live-detail-page .info {
  border: 1px solid #999;
  padding: 10px;
  margin-bottom: 10px;
}

.live-detail-page .bottom-section {
  display: flex;
  align-items: center;
  margin-top: 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.live-detail-page .avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #999;
}

.live-detail-page .liver-name {
  font-weight: bold;
  font-size: 1.2em;
}

.live-detail-page .links {
  display: flex;
  gap: 10px;
  flex-grow: 1;
}

.live-detail-page .links .btn {
  padding: 10px 20px;
  border: 1px solid #000;
  text-decoration: none;
  background-color: #f0f0f0;
  color: #000;
  text-align: center;
}

.live-detail-page body {
  background-color: pink;
}


/* ウィンドウの幅に応じた列数の調整 */
@media screen and (min-width:1024px) {
	/*#container {
		grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }*/
	#content {
		grid-template-columns: repeat(4, 1fr);
		gap: 10px;
	}
	.date-button {
		position: fixed;
		top: 8%;
		transform: translateY(-10%);
		background-color: rgba(0, 0, 0, 0.5);
		color: white;
		padding: 10px;
		cursor: pointer;
		z-index: 1000;
	}
	
	/* Twitch */
	.live_list_live_img_twitch {
		content: "";
		position: absolute;
		top: 0px;
		left: 0px;
		width: 60px;
		height: 16px;
		font-size: 0.6em;
		text-align: center;
		color: #ffffff;
		background-color: purple;
		z-index: 1;
	}
	/* Youtube */
	.live_list_live_img_youtube {
		content: "";
		position: absolute;
		top: 0px;
		left: 0px;
		width: 60px;
		height: 16px;
		font-size: 0.6em;
		text-align: center;
		color: #ffffff;
		background-color: red;
		z-index: 1;
	}
}
