@charset "utf-8";
@-ms-viewport {
	width: device-width;
}

/* 共通CSS編集ガイドライン（style.css 適用版）
------------------------------------------------
1) 

2) @media内での重複定義禁止
   - 同一セレクタのPC/SP差分は必要最低限に留め、可能な限りベース定義を統合ブロックで完結させる
   - 既存の@media定義と値が競合する場合、統合ブロック側を更新する

3) 全体方針：modalに限らず重複セレクタを作らない
   - 同一目的のクラス/セレクタが存在しないか検索してから追記する
   - 既存ルールを再利用・拡張し、別名の重複を増やさない

4) 既存ルールの再利用優先
   - 新規プロパティ追加前に同等の役割を持つ定義がないか検索して再利用
   - 追加/変更の理由を簡潔にコメントで残す

5) レイアウト安全性の厳守（最重要）
   - このファイルの編集によってレイアウト崩れが絶対に発生しないよう細心の注意を払う
   - 影響範囲（PC/スマホ/主要画面）で実機/実画面確認を行い、違和感があれば即時ロールバック
   - !importantの有無と優先度、既存@mediaの競合を必ずチェック

6) 既存クラスタの再利用と新規作成の抑制
   - 似た目的の新規クラスタ/セレクタを安易に作らない
   - 可能な限り common.css / 本ファイル（style.css）に定義済みのクラスタを再利用する
   - 新しいファイルを作成/導入する場合も、既存クラスタの再利用を最優先し、やむを得ず追加する場合は最小限とする
   - このガイドラインを厳密に遵守して編集を行う
------------------------------------------------*/
/* header
------------------------------------------------*/
header {
	background: #ffffff;
	padding: 0.5em 1em;
	box-shadow: 0 2px 1px rgba(0, 0, 0, .1);
	width: 100%;
	transition: all .2s ease;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
}
#header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
#header ul {
	display: flex;
	align-items: center;
}
#header ul.logo a img {
	width: 110px;
	margin-right: 1em;
}
#header ul.logo .header_guide {
	font-size: 0.8em;
	color: #22C283;
}
#header ul.register li {
	border-radius: 4px;
	font-size: 0.8em;
	font-weight: bold;
	border: 1px solid #FF3654;
}
#header ul.register li:nth-of-type(1) {
	color: #FF3654;
	margin-right: 0.8em;
}
#header ul.register li:nth-of-type(2) {
	color: #ffffff;
	background: #FF3654;
}
#header ul.register li a {
	display: block;
	width: 100%;
	padding: 0.3em 1em;
}
@media screen and (max-width: 680px) {
	header {
		padding: 0.5em;
	}
}
/* header（ログイン後）
------------------------------------------------*/
.login_header ul.logo li {
	font-weight: bold;
	font-size: 13px;
	margin-right: 1em;
}
/* header　ログイン後　nav */
.header_nav li {
	font-size: 22px;
	margin-left: 0.5em;
}
/* header 検索アイコン */
.header_nav .icon_search {
	display: inline-block;
	font-size: 22px;
	text-decoration: none;
	color: inherit;
	line-height: 1;
}
.header_nav .icon_search i {
	font-size: 22px;
	display: inline-block;
	line-height: 1;
}
.header_search-bar-wrapper {
	display: flex;
	padding: 4px 16px 4px 12px;
}
.header_search-bar-wrapper {
	align-items: center;
	margin-left: 16px;
	margin-right: 4px;
	background-color: #eee;
	position: relative;
	border-radius: 20px;
}
.header_search-bar-wrapper i {
	font-size: 14px;
	color: gray;
	margin-right: 0.3em;
}
.header_search-bar-wrapper .header_search-bar {
	min-width: 120px;
}
.d-none {
	display: none;
}
.header_search-bar-wrapper input {
	outline: none;
	background-color: transparent;
	border-style: none;
	color: inherit;
	font-size: 13px;
}
/* header ハンバーガーメニュー
------------------------------------------------*/
.header_side_menu {
	display: inline-block;
	cursor: pointer;
	position: relative;
	width: 24px;
	height: 18px;
}
.header_side_menu span {
	background: #000;
	display: block;
	position: absolute;
	height: 3px;
	width: 100%;
	left: 0;
	transition: all 0.3s ease;
}
.header_side_menu span:nth-child(1) {
	top: 0;
}
.header_side_menu span:nth-child(2) {
	top: 8px;
}
.header_side_menu span:nth-child(3) {
	top: 16px;
}
/* メニューオープン時のスタイル */
.header_side_menu.active span:nth-child(1) {
	transform: rotate(45deg);
	top: 7px;
}
.header_side_menu.active span:nth-child(2) {
	opacity: 0;
}
.header_side_menu.active span:nth-child(3) {
	transform: rotate(-45deg);
	top: 7px;
}
/* サイドメニューオープン時のスタイル */
.side_menu_container.open {
	right: 0;
}
/* サイドメニュー閉じるボタン */
.close_button {
	position: absolute;
	top: 10px;
	left: -30px;
	background: none;
	border: none;
	font-size: 30px;
	cursor: pointer;
	display: none;
	color: #ffffff;
	font-weight: bold;
}
.side_menu_container.open .close_button {
	display: block; /* メニューが開いているときに表示 */
}
/* オーバーレイ */
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
	z-index: 9999;
}
.overlay.visible {
	opacity: 1;
	visibility: visible;
}
/* サイドメニューコンテナ */
.side_menu_container {
	position: fixed;
	top: 0;
	right: -280px;
	width: 280px;
	height: 100%;
	background: #FAFAFA;
	transition: right 0.3s ease;
	z-index: 10000;
}
.side_menu_inner {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.side_menu_scroll {
	flex-grow: 1;
	overflow-y: auto;
	padding-bottom: 20px;
}
/* サイドメニュー（プロフィール） */
.side_menu_prof {
	background: #ffffff;
	padding: 1em;
	font-weight: bold;
}
.side_menu_prof ul {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
}
.side_menu_prof ul li.user_icon {
	width: 30%;
}
.side_menu_prof ul li.user_icon img {
	width: 100%;
}
.side_menu_prof ul li.user_name {
	margin-left: 0.5em;
}
/* サイドメニュー（ステータスと購入） */
.side_menu_btn {
	padding: 1em;
	font-weight: bold;
	margin-bottom: 0.6em;
}
.side_menu_btn dl {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	font-size: 90%;
	margin: 0.5em;
}
.side_menu_btn dl dt:after {
	content: ":";
	margin: 0 0.2em;
}
.side_menu_btn a {
	width: 100%;
	padding: 0.3em 0;
	color: #ffffff;
	display: inline-block;
	text-align: center;
	border-radius: 6px;
}
.side_menu_status a {
	background: #FF3654;
}
.side_menu_point a {
	background: #FFA500;
}
/* サイドメニュー（その他メニュー） */
.side_menu_heading {
	background: #636363;
	color: #ffffff;
	padding: 0.5em;
	font-weight: bold;
}
.side_menu ul {
	font-size: 90%;
}
.side_menu ul a {
	display: block;
	padding: 1em;
}
.side_menu ul a:hover {
	background: #ffffff;
}
/* SP時に非表示にする要素 */
@media screen and (max-width: 680px) {
	#header ul.logo li:nth-of-type(2), #header ul.logo li:nth-of-type(3), #header ul.logo li:nth-of-type(4), .header_search-bar-wrapper {
		display: none;
	}
}
/* 下部固定のfooter
------------------------------------------------*/
.footer_fixed_nav {
	display: none; /* 初期状態は非表示 */
}
@media screen and (max-width: 680px) {
	.footer_fixed_nav {
		display: block; /* SPのみ表示 */
		width: 100%;
		background: #ffffff;
		position: fixed;
		bottom: 0;
		left: 0;
		z-index: 9999;
		box-shadow: 0 -2px 1px rgba(0, 0, 0, .1);
	}
	.footer_fixed_nav nav ul {
		display: flex;
		justify-content: space-between;
		margin: 0;
		padding: 0;
		list-style: none;
	}
	.footer_fixed_nav nav ul li {
		width: calc(100% / 4);
		text-align: center;
		padding: 12px 0 6px 0;
		font-size: 18px;
	}
	.footer_fixed_nav nav ul li a {
		text-decoration: none;
		font-size: 14px;
		color: gray;
	}
	.footer_fixed_nav .fas:before, .footer_fixed_nav .far:before {
		font-size: 22px;
	}
	span.footer_fixed_nav_name {
		font-size: 13px;
	}
	.footer_fixed_nav nav ul li.visit a {
		color: #0096FF;
		font-weight: bold;
	}
}
/* ログイン・新規登録
------------------------------------------------*/
/* LINE */
.btn_line {
	margin: 1em auto;
	background: #00C300;
	border-radius: 8px;
	color: #ffffff;
}
.btn_line a {
	display: flex;
	align-items: center;
	padding: 0.8em 0.5em;
}
.btn_line a img {
	width: 35px;
	margin-right: 0.5em;
}
/* 区切り線 */
.border_title_gray {
	color: #999;
	text-align: center;
	position: relative;
	width: 100%;
}
.border_title_gray p {
	font-size: 12px;
	background: #ffffff;
	padding: 0 1em;
	position: relative;
	display: inline-block;
	z-index: 2;
}
.border_title_gray:before {
	content: "";
	display: block;
	border-top: solid 1px #ccc;
	width: 100%;
	height: 1px;
	position: absolute;
	top: 58%;
	transform: translateY(-50%);
	z-index: 1;
}
.border_title_gray_bold {
	color: #000000;
	text-align: center;
	position: relative;
}
.border_title_gray_bold p {
	font-size: 15px;
	background: #ffffff;
	padding: 0 1em;
	position: relative;
	display: inline-block;
	z-index: 2;
	font-weight: bold;
}
.border_title_gray_bold:before {
	content: "";
	display: block;
	border-top: solid 1px #ccc;
	width: 100%;
	height: 1px;
	position: absolute;
	top: 58%;
	transform: translateY(-50%);
	z-index: 1;
}
/* 入力フォーム */
.form_wrapper {
	margin: 1em auto;
}
.form_input input {
	background: #e8f0fe;
	border-radius: 4px;
	border: none;
	width: 100%;
	padding: 0.8em;
	margin-bottom: 0.3em;
}
.form_button button {
	background: #ffffff;
	border: 2px solid #FF3654;
	color: #FF3654;
	width: 100%;
	border-radius: 8px;
	padding: 0.7em 0.5em;
	margin: 1em auto;
}
.form_input p {
	margin-bottom: 0.4em;
}
p.error {
	text-align: right;
	color: red;
	font-size: 12px;
}
.form_save input[type="checkbox"] {
	margin-right: 0.3em;
}
.form_forget {
	text-align: center;
	color: #999;
	font-size: 13px;
}
.form_registered {
	text-align: center;
	color: #2A96EB;
	font-size: 13px;
	text-decoration: underline;
}
.form_caption {
	color: #999;
	text-align: center;
	font-size: 13px;
	line-height: 1.7em;
}
.form_caption a {
	color: #2A96EB;
	text-decoration: underline;
}
.submit-button {
	background-color: #999;
	color: white;
	cursor: not-allowed;
	border: none;
	width: 100%;
	border-radius: 8px;
	padding: 0.7em 0.5em;
	margin: 1em auto;
}
.submit-button.enabled {
	background-color: #FF3654;
	cursor: pointer;
}
/* スライドショー
------------------------------------------------*/
.main_slider {
	border-radius: 12px;
	overflow: hidden;
}
.main_slider a {
	display: block;
	border-radius: 12px;
	overflow: hidden;
}
.main_slider a img {
	width: 100%;
	display: block;
	border-radius: 12px;
}
.main_slide_Dots {
	display: block;
	width: 100%;
	padding: 0;
	list-style: none;
	text-align: center;
	z-index: 12;
}
.main_slide_Dots li {
	position: relative;
	display: inline-block;
	width: 20px;
	height: 20px;
	margin: 0 5px;
	padding: 0;
	cursor: pointer;
}
.main_slide_Dots li button {
	font-size: 0;
	line-height: 0;
	display: block;
	width: 20px;
	height: 20px;
	padding: 5px;
	cursor: pointer;
	color: transparent;
	border: 0;
	outline: none;
	background: transparent;
}
.main_slide_Dots li button:before {
	font-family: 'slick';
	font-size: 20px;
	line-height: 20px;
	position: absolute;
	top: 0;
	left: 0;
	width: 20px;
	height: 20px;
	content: '•';
	text-align: center;
	color: #D9D9D9;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.main_slide_Dots li.slick-active button:before {
	color: #FF3654;
}
@media screen and (max-width: 680px) {
	.slick-prev:before, .slick-next:before {
		font-size: 25px !important;
	}
	.main_slide_Dots li button:before {
		width: 13px !important;
		height: 13px !important;
		font-size: 13px;
	}
}
/* お知らせとお知らせバナー
------------------------------------------------*/
/* お知らせ（文字情報） */
.information {
	margin-bottom: 1.5em;
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
.information p {
	text-align: center;
	padding: 1.5em 0.5em;
	border-bottom: 1px solid #ddd;
}
.information ul {
	padding: 1em;
}
.information ul li {
	display: flex;
	align-items: flex-start;
	margin-bottom: 0.7em;
}
.information ul li:last-child {
	margin-bottom: 0;
}
.information ul li p {
	border: none;
	padding: 0;
	color: #999;
	margin-right: 0.5em;
}
.information ul li a {
	color: #2A96EB;
}
@media screen and (max-width: 680px) {
	.information {
		width: 95%;
		margin: 0 auto;
	}
	.information > p {
		text-align: center !important;
		padding: 1em 0.5em;
	}
	.information p {
		text-align: left;
	}
	.information ul li {
		display: block;
	}
}
/* お知らせ（バナー） */
.information_bn {
	margin: 2em auto;
}
.information_bn ul {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	column-gap: 20px;
}
.information_bn ul li {
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #ddd;
}
.information_bn ul li img {
	width: 100%;
}
p.information_bn_text {
	border-top: 1px solid #ddd;
	background: #ffffff;
	padding: 2em 1em;
	color: #2A96EB;
}
@media screen and (max-width: 680px) {
	.information_bn {
		width: 100%;
		margin: 2em auto;
		overflow: hidden;
		position: relative;
	}
	.information_bn ul {
		display: flex;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		scrollbar-width: none; /* Firefox */
		-ms-overflow-style: none; /* IE and Edge */
		gap: 15px;
		padding: 0 calc(50% - 140px); /* 中央配置のため、左右にパディング（280px / 2 = 140px） */
		padding-bottom: 10px;
		scroll-padding: 0 calc(50% - 140px); /* スクロールスナップのパディング */
	}
	.information_bn ul::-webkit-scrollbar {
		display: none; /* Chrome, Safari, Opera */
	}
	.information_bn ul li {
		flex: 0 0 auto;
		min-width: 280px;
		width: 280px;
		margin-bottom: 0;
		scroll-snap-align: center; /* 中央配置 */
	}
	p.information_bn_text {
		padding: 1em 0.5em;
	}
}
/* キャラ一覧
------------------------------------------------*/
.character_list {
	margin-top: 1.5em;
}
/* タイトル部分（両端） */
.section_title {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: space-between;
	-ms-flex-pack: space-between;
	justify-content: space-between;
	width: 98%;
	margin: 0 auto 0.5em auto;
}
.section_title a {
	color: #3AA3E3;
	background: #ffffff;
	border: 1px solid #3AA3E3;
	border-radius: 6px;
	padding: 0.2em 1em;
	font-size: 0.9em;
}
.list_side_scrool {
	overflow-x: scroll;
}
.list_side {
	display: flex;
	flex-wrap: nowrap;
	justify-content: unset;
}
.chara_post {
	min-width: 15%;
	margin: 1em auto;
}
.chara_post_inner {
	position: relative;
	padding: 0 1em;
}
.chara_post_inner .category {
	text-align: center;
	color: #ffffff;
	background: rgba(0, 0, 0, 0.7);
	position: absolute;
	top: 0.2em;
	left: 0;
	padding: 0.2em 0.8em;
	border-radius: 50px;
	font-size: 0.6em;
	z-index: 1;
}
.chara_post_inner .good_count {
	text-align: center;
	color: #EA4C89;
	background: rgba(255, 255, 255, 0.9);
	position: absolute;
	bottom: 0.2em;
	right: 0;
	padding: 0.2em 0.8em;
	border-radius: 50px;
	font-size: 0.6em;
	z-index: 1;
}
.chara_post_inner img {
	width: 100%;
	margin: 0 auto;
}
.chara_post .post_name {
	margin-top: 0.7em;
	font-size: 0.7em;
	text-align: center;
}
@media screen and (max-width: 680px) {
	.chara_post {
		min-width: 30%;
	}
}
/* カテゴリ一覧
------------------------------------------------*/
.category_list {
	margin-top: 1.5em;
}
.category_box {
	width: 98%;
	margin: 1em auto 1.5em auto;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 0 3px 2px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	padding-bottom: 1.5em;
}
.category_box_title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5em;
	margin-bottom: 0.5em;
}
.category_box h4 {
	padding: 0.5em 1.3em;
	background: #333333;
	display: inline;
	color: #ffffff;
	font-size: 0.8em;
	border-radius: 8px;
	text-align: left;
	margin: 0 0 0 1em;
}
.category_all {
	background: #E0FFF3;
	color: #22C283;
}
.category_men {
	background: #FEE3C7;
	color: #FF7F00;
}
.category_women {
	background: #FFF3F9;
	color: #EA4C89;
}
.category_gay {
	background: #C9AFFF;
	color: #915CFD;
}
.category_les {
	background: #FE8E96;
	color: #FFFFFF;
}
.category_chara_list {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: flex-start;
	-ms-flex-pack: flex-start;
	justify-content: flex-start;
	flex-wrap: wrap;
	padding: 1em 1em 0 1em;
}
.category_chara_list .chara_post {
	width: calc(100% / 6);
}
.category_box .chara_post {
	margin: 0.7em 0;
}
@media screen and (max-width: 680px) {
	.category_box {
		width: 95%;
	}
	.category_chara_list .chara_post {
		width: calc(100% / 2);
	}
}
/* ランキング
------------------------------------------------*/
.category_ranking {
	margin-top: 1.5em;
}
.category_tabs {
	margin-top: 1em;
}
.category_tabs, .sub_category_tabs {
	display: flex;
	margin-bottom: 10px;
	color: #777;
	overflow-x: auto; /* 横スクロールを有効にする */
	white-space: nowrap; /* タブが折り返されないようにする */
	-webkit-overflow-scrolling: touch; /* iOSでのスムーズスクロール */
	border-bottom: 1px solid #ddd;
	padding-bottom: 5px; /* タブの下部に余白を追加 */
}
.category_tabs a, .sub_category_tabs button {
	font-size: 18px;
	margin-right: 0.5em;
	padding: 0 0.5em 0.3em 0.5em;
	flex-shrink: 0; /* タブが縮小されないようにする */
	cursor: pointer;
}
/* タブの色分け */
a.category_all_visit {
	border-bottom: 3px solid #22C283;
	color: #22C283 !important;
	font-weight: bold;
}
a.category_men_visit {
	border-bottom: 3px solid #FF7F00;
	color: #FF7F00 !important;
	font-weight: bold;
}
a.category_women_visit {
	border-bottom: 3px solid #EA4C89;
	color: #EA4C89 !important;
	font-weight: bold;
}
a.category_gay_visit {
	border-bottom: 3px solid #915CFD;
	color: #915CFD !important;
	font-weight: bold;
}
a.category_les_visit {
	border-bottom: 3px solid #E64B56;
	color: #E64B56 !important;
	font-weight: bold;
}
.tab_btn.active {
	border-bottom: 2px solid #3aa3e3;
	color: #3aa3e3;
	font-weight: bold;
}
/* ユーザー詳細 */
.category_section {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 15px;
}
.ranking_chara_post {
	width: calc((100% / 4) - (15px * (4 - 1) / 4));
	display: none; /* 初期状態では非表示 */
}
.ranking_tunmb {
	position: relative;
}
.ranking_tunmb img {
	width: 100%;
}
.ranking_tunmb .good_count {
	position: absolute;
	top: 10px;
	right: 10px;
	text-align: center;
	color: #EA4C89;
	background: rgba(255, 255, 255, 0.9);
	padding: 0.2em 0.8em;
	border-radius: 50px;
	font-size: 0.6em;
	z-index: 1;
}
.ranking_profile {
	background: #ffffff;
	padding: 0.5em;
}
.ranking_profile .ranking_profile_title {
	font-size: 17px;
	font-weight: bold;
	margin-bottom: 0.3em;
}
.ranking_profile .ranking_profile_text {
	font-size: 14px;
	line-height: 1.7em;
	color: #777;
}
.ranking_profile_user {
	display: flex;
	align-items: center;
	padding: 0.5em;
	color: #777;
	font-size: 13px;
}
.ranking_profile_user img {
	width: 28px;
	margin-right: 0.3em;
}
/* もっと見るボタンのスタイル */
.ranking_border_title_gray {
	color: #999;
	text-align: center;
	position: relative;
	width: 100%;
}
.ranking_border_title_gray button {
	font-size: 15px;
	background: #FAFAFA;
	padding: 0 1em;
	position: relative;
	display: inline-block;
	z-index: 2;
	margin: 1em auto;
}
.ranking_border_title_gray:before {
	content: "";
	display: block;
	border-top: solid 1px #ccc;
	width: 100%;
	height: 1px;
	position: absolute;
	top: 58%;
	transform: translateY(-50%);
	z-index: 1;
}
@media screen and (max-width: 960px) {
	.category_tabs a, .sub_category_tabs button {
		font-size: 15px;
	}
	.category_section {
		width: 95%;
		margin: 0 auto;
	}
	.ranking_chara_post {
		width: calc((100% / 3) - (15px * (3 - 1) / 3)); /* 3列に対応 */
		display: none; /* 初期状態では非表示 */
	}
}
@media screen and (max-width: 680px) {
	.category_tabs a, .sub_category_tabs button {
		font-size: 15px;
	}
	.category_section {
		width: 95%;
		margin: 0 auto;
	}
	.ranking_chara_post {
		width: calc((100% / 2) - (15px / 2)); /* 2列に対応 */
		display: none; /* 初期状態では非表示 */
	}
}
/* コイン購入
------------------------------------------------*/
.point_number_wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: 1em auto 1.5em auto;
}
.point_number_wrapper dl {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	background: #ffffff;
	border: 1px solid #FFA500;
	border-radius: 50px;
	overflow: hidden;
}
.point_number_wrapper dl dt {
	background: #FFA500;
	color: #ffffff;
	padding: 0.3em 0.6em;
	position: relative;
	display: flex;
	align-items: center;
}
.point_number_wrapper dl dt:before {
	content: '';
	display: inline-block;
	width: 20px;
	height: 20px;
	background-image: url("../img/coin.png");
	background-size: contain;
	margin-right: 0.3em;
	align-self: center;
}
.point_number_wrapper dl dd {
	margin: 0;
	padding: 0.3em 0.6em;
}
.point_number_wrapper dl dd:after {
	content: "pt";
	font-size: 0.6em;
	margin-left: 0.2em;
}
ul.point_price_row {
	width: 96%;
	margin: 0.5em auto;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: space-between;
	-ms-flex-pack: space-between;
	justify-content: space-between;
	border-bottom: 1px solid #F2F2F2;
}
.point_price_wrapper ul:last-of-type {
	border-bottom: none;
}
ul.point_price_row li {
	padding: 1.2em 0;
}
ul.point_price_row li.point_buy_number {
	font-weight: bold;
	display: flex;
	align-items: center;
	font-size: 1.2em;
	position: relative;
}
ul.point_price_row li.point_buy_number:before {
	content: '';
	display: inline-block;
	width: 20px;
	height: 20px;
	background-image: url("../img/point.png");
	background-size: contain;
	margin-right: 0.3em;
	align-self: center;
}
ul.point_price_row li.point_buy_price {
	color: #ffffff;
	background: #FFA500;
	border-radius: 6px;
	font-weight: bold;
	padding: 0;
	width: 30%;
	text-align: center;
}
ul.point_price_row li.point_buy_price a:before {
	content: "￥";
}
ul.point_price_row li.point_buy_price a {
	display: block;
	padding: 0.5em 0;
}
span.point_unit {
	font-size: 0.5em;
	margin-left: 0.2em;
	align-self: flex-end;
	line-height: 2em;
}
span.point_value {
	text-align: center;
	color: #ffffff;
	font-weight: normal;
	background: #FF3654;
	border-radius: 50px;
	padding: 0.2em 0.6em;
	font-size: 0.5em;
	margin-left: 0.3em;
}
/* お知らせ一覧
------------------------------------------------*/
.notice_box {
	padding: 1.5em;
	line-height: 1.8em;
	border-bottom: 1px solid #eaeaea;
	margin-bottom: 1em;
}

.notice_box img {
    max-width: 100%;
    height: auto;
    display: block; /* 任意：余白対策 */
}

.notice_title ul {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin: 0 0 1em 0;
	padding: 0;
	list-style: none;
	width: 100%;
	font-size: 80%;
}
.notice_title ul li {
	margin-left: 0.5em;
}
.notice_icon img {
	width: 30px;
}
.notice_tag {
	color: #ffffff;
}
span.notice_tag_official {
	background: #f388b4;
	padding: 0.2em 0.5em;
	border-radius: 4px;
}
span.notice_tag_campaign {
	background: #00a3ef;
	padding: 0.2em 0.5em;
	border-radius: 4px;
}
span.notice_tag_important {
	background: red;
	padding: 0.2em 0.5em;
	border-radius: 4px;
}
.notice_title .notice_day {
	color: gray;
}
.notice_title p {
	margin: 0 0 0.3em 0;
	text-align: left;
	font-weight: bold;
	font-size: 110%;
}
.notice_text {
	font-size: 90%;
}
.notice_btn {
	text-align: center;
	color: #ffffff;
	margin: 1.5em auto 1em auto;
}
.notice_btn a {
	background: #FFA500;
	padding: 0.6em 2em;
	border-radius: 6px;
}
/* ガイドページ
------------------------------------------------*/
.guide_search {
	width: 70%;
	margin: 2em auto 3em auto;
	position: relative;
}
.guide_search .fas.fa-search {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	color: white;
	background-color: #f388b4;
	padding: 10px;
	border-radius: 50%;
}
.guide_search-bar-wrapper {
	display: flex;
	align-items: center;
}
.guide_search-bar {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.header_search-bar-wrapper input[type="submit"] {
	position: absolute;
	right: 0;
	background-color: #f388b4;
	color: white;
	border: none;
	padding: 10px 20px;
	cursor: pointer;
}
.guide_wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.guide_category {
	width: calc(50% - 10px);
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid #d7d7d7;
	border-radius: 8px;
}
.guide_category_heading {
	border-bottom: 1px solid #d7d7d7;
}
.guide_category_heading ul {
	display: flex;
	align-items: center;
	justify-content: space-between;
	list-style: none;
	padding: 1em;
}
.guide_category_heading ul li:nth-of-type(1) {
	font-weight: bold;
}
.guide_category_heading ul li:nth-of-type(2) {
	color: gray;
	font-size: 90%;
}
.guide_category_list ul {
	list-style: none;
	padding: 1em;
	color: gray;
}
.guide_category_list ul li {
	position: relative;
	margin-bottom: 1em;
	padding-left: 0.8em;
}
.guide_category_list ul li::before {
	content: '•';
	position: absolute;
	left: 0;
	font-size: 1.2em; /* 必要に応じて調整 */
	line-height: 1em;
	top: 50%;
	transform: translateY(-50%);
	color: gray;
}
.guide_category_list ul li:last-child {
	margin-bottom: 0;
}
@media screen and (max-width: 680px) {
	.guide_search {
		width: 90%;
	}
	.guide_wrapper {
		width: 95%;
		margin: 0 auto;
		display: block;
	}
	.guide_category {
		width: 100%;
		margin-bottom: 1.5em;
	}
}
/* プロフィール編集
------------------------------------------------*/
.prof_edit_my_pic {
	position: relative;
	text-align: center;
	margin-bottom: 20px;
}
.prof_edit_wrapper .fas {
	font-size: 30px;
	margin-bottom: 0.2em;
}
.main-upload-button {
	border: 2px dashed gray;
	background-color: #eeeeee;
	border-radius: 50%;
	width: 150px;
	height: 150px;
	cursor: pointer;
	margin: auto;
	color: gray;
	margin-top: 0.5em;
}
.thumbnail_main {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	overflow: hidden;
	display: none;
	cursor: pointer;
	margin: auto;
}
.thumbnail_main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.text-upload-button {
	margin: 1em auto 0 auto;
	display: block;
	cursor: pointer;
	background: none;
	border: none;
	color: gray;
}
.input-container {
	position: relative;
	margin-bottom: 20px;
}
.prof_edit_wrapper input[type="text"] {
	width: 100%;
	box-sizing: border-box;
	padding: 10px;
	font-size: 16px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.prof_edit_wrapper textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px;
	font-size: 16px;
	border: 1px solid #ccc;
	border-radius: 4px;
	height: 300px; /* 初期高さを300pxに設定 */
	resize: vertical; /* 高さのみ変更可能 */
}
.char-count {
	position: absolute;
	right: 10px;
	bottom: 5px;
	font-size: 12px;
	color: #999;
}
.input-container.textarea-container .char-count {
	bottom: 10px; /* textareaのために位置を調整 */
}
.pic_thumbnail {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	justify-items: center; /* サムネイルを中央揃えにする */
	width: 90%;
	margin: 0 auto;
}
.thumbnail {
	position: relative;
	width: 95%; /* サムネイルの横幅を95%に設定 */
	padding-top: 95%; /* 高さを横幅と同じにして正方形にする */
	border-radius: 10px; /* 角丸にする */
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.thumbnail img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.thumbnail .remove-button {
	position: absolute;
	top: 5px;
	right: 5px;
	background: rgba(255, 255, 255, 0.7);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.sub-upload-button {
	display: block;
	margin: 20px auto;
	cursor: pointer;
	background-color: #eeeeee;
	border: 2px dashed gray;
	border-radius: 10px;
	width: 80%;
	color: gray;
	padding: 1em 0;
}
.save-button {
	display: block;
	margin: 2em auto 1em auto;
	cursor: pointer;
	background-color: #FF3654;
	color: #ffffff;
	border: none;
	border-radius: 10px;
	width: 50%;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	padding: 0.8em 0;
}
@media screen and (max-width: 680px) {
	.sub-upload-button {
		width: 100%;
	}
	.pic_thumbnail {
		width: 100%;
	}
	.save-button {
		width: 70%;
	}
}
/* キャラクター一覧とメッセージ送受信
------------------------------------------------*/
/* 全体 */
.chara_wrapper {
	display: flex;
	justify-content: space-between;
}
/* キャラクター一覧 */
.chara_list {
	width: 30%;
	background: #ffffff;
	border: 1px solid #eeeeee;
	position: relative;
}
.chara_list p.chara_list_title {
	padding: 0.8em 0.5em;
	border-bottom: 1px solid #eeeeee;
	font-weight: bold;
}
ul.chara_list_box {
	overflow-y: scroll;
}
ul.chara_list_box a {
	display: flex;
	align-content: center;
	border-bottom: 1px solid #eeeeee;
	padding: 0.8em 0.5em;
	width: 100%;
}
.chara_list_box a.selected {
	border-left: 5px solid #FF3654;
}
ul.chara_list_box li:nth-of-type(1) {
	width: 15%;
}
ul.chara_list_box li:nth-of-type(2) {
	width: 85%;
	padding-left: 0.5em;
}
ul.chara_list_box img {
	width: 100%;
}
ul.chara_list_box dl dt {
	font-weight: 600;
	font-size: 14px;
}
ul.chara_list_box dl dd {
	color: gray;
	font-size: 13px;
}
/* メッセージ送受信 */
.chara_messgae {
	width: 70%;
	background: #ffffff;
	border-top: 1px solid #eeeeee;
	border-right: 1px solid #eeeeee;
	border-bottom: 1px solid #eeeeee;
	position: relative;
	display: flex;
	flex-direction: column;
}
.chara_messgae_name {
	display: flex;
	justify-content: space-between;
	align-content: center;
	padding: 0.8em 0.5em;
	border-bottom: 1px solid #eeeeee;
	background: #ffffff;
}
.chara_messgae_name ul {
	display: flex;
}
.chara_messgae_name ul li:nth-of-type(1) {
	width: 15%;
}
.chara_messgae_name ul li:nth-of-type(2) {
	font-weight: 600;
	font-size: 14px;
	margin-left: 0.5em;
}
.chara_messgae_name ul li img {
	width: 100%;
}
.chara_messgae_name a .fas {
	color: gray;
}
.chara_messgae_guide {
	text-align: center;
	width: 95%;
	margin: 1em auto;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
	padding: 0.5em;
}
p.icon_check_round {
	font-size: 0.8em;
}
.chara_messgae_guide a {
	display: inline-flex;
	align-items: center;
	text-decoration: underline;
	margin-top: 1em;
	font-size: 0.8em;
}
.chara_messgae_guide a img {
	width: 15px;
	margin-right: 0.1em;
}
/* メッセージ送受信（やりとりログ） */
.chara_messgae_talk {
	flex-grow: 1;
	overflow: hidden; /* 送信フォームと重ならないようにする */
	display: flex;
	flex-direction: column;
}
.chara_messgae_talk_scroll {
	flex-grow: 1;
	overflow-y: scroll;
	padding: 0 1em;
}
.chara_messgae_talk_partner, .chara_messgae_talk_self {
	width: 95%;
	margin: 1em auto;
}
.chara_messgae_talk_partner dl, .chara_messgae_talk_self dl {
	display: flex;
	align-content: flex-end;
}
.chara_messgae_talk_partner dl dt img, .chara_messgae_talk_self dl dt img {
	width: 30px;
}
.chara_messgae_talk_partner dl dd, .chara_messgae_talk_self dl dd {
	width: 70%;
	margin-left: 0.5em;
	background-color: #eeeeee;
	border-radius: 20px;
	padding: 0.7em 1em;
	border-top-left-radius: 0;
	line-height: 1.7em;
	word-break: break-all;
}
.chara_messgae_talk_self dl {
	flex-direction: row-reverse; /* 逆向き */
}
.chara_messgae_talk_self dl dd {
	margin-left: 0;
	margin-right: 0.5em;
	border-top-left-radius: 20px;
	border-top-right-radius: 0;
}
.chara_messgae_talk_partner p.message_time {
	color: gray;
	font-size: 13px;
	margin-top: 0.2em;
}
.chara_messgae_talk_self p.message_time {
	color: gray;
	font-size: 13px;
	margin-top: 0.2em;
	text-align: right;
}
/* プロフィール詳細やカレンダー予約など */
.chara_messgae_guide_prof {
	text-align: left;
	margin-bottom: 1em;
}
p.chara_description {
	line-height: 1.7em;
	margin-bottom: 0.8em;
	font-size: 0.9em;
}
.chara_messgae_guide_reserve {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
}
.chara_messgae_guide_point dl {
	display: flex;
	align-items: flex-end;
}
.chara_messgae_guide_point dl dt:after {
	content: "pt";
	margin-left: 0.1em;
	font-size: 12px;
}
.chara_messgae_guide_point dl dd {
	font-size: 12px;
	margin-bottom: 0.1em;
}
.chara_messgae_guide_point dl dd:before {
	content: "/";
	margin-left: 0.1em;
	margin-right: 0.1em;
}
.chara_messgae_guide_point dl dd:after {
	content: "分";
	margin-left: 0.1em;
}
.chara_messgae_guide_calendar ul {
	display: flex;
	gap: 10px;
	font-size: 13px;
}
.chara_messgae_guide_calendar ul li {
	flex: 1; /* 各要素が均等に幅を取る */
}
.chara_messgae_guide_calendar ul li a {
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: none;
	margin: 0;
	padding: 0.5em;
	text-align: center;
	white-space: nowrap; /* 改行を防ぐ */
}
.chara_messgae_guide_calendar ul li.calendar {
	background: #ffffff;
	border: 1px solid #FF3654;
	border-radius: 4px;
	color: #FF3654;
}
.chara_messgae_guide_calendar ul li.reserve {
	background: #FF3654;
	border: 1px solid #FF3654;
	border-radius: 4px;
	color: #ffffff;
}
.chara_messgae_talk_initial {
	width: 100%;
	text-align: center;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.chara_messgae_talk_initial img {
	width: 80%;
	margin: 1.5em auto;
}
/* メッセージ送信フォーム */
.chara_message_form {
	display: flex;
	align-items: center;
	position: fixed;
	bottom: 0;
	width: 100%;
	padding: 0.8em 0.5em;
	background: #ffffff;
	border-top: 1px solid #eeeeee;
}
button.item1, button.item2 {
	width: 12%;
}
button.item1 img, button.item2 img {
	width: 100%;
}
.chara_message_form button {
	margin: 0 0.5em;
}
.chara_message_form textarea {
	margin: 0 0.5em;
	padding-left: 1em;
	resize: none; /* ユーザーによる手動リサイズを禁止 */
	overflow: hidden; /* テキストがあふれたときのスクロールを防ぐ */
	min-height: 2.5em; /* 初期の高さ */
}
.message_input {
	flex-grow: 1;
	padding: 0.5em;
	border: 1px solid #eeeeee;
	border-radius: 20px;
}
.send_button {
	background: #FF3654;
	color: #ffffff;
	border: none;
	padding: 0.5em 1em;
	border-radius: 8px;
	cursor: pointer;
}
@media (max-width: 720px) {
	.chara_wrapper {
		display: block;
	}
	.chara_list, .chara_messgae {
		max-width: 520px;
		width: 100%;
		margin: 0 auto;
	}
	/* 初期状態ではどちらも非表示 */
	.chara_list, .chara_messgae {
		display: none !important;
	}
	/* .visible が付いたら表示 */
	.chara_list.visible, .chara_messgae.visible {
		display: block !important;
	}
	.back_to_list {
		display: block;
		padding: 0.5em;
		font-size: 0.9em;
		color: #333;
		text-decoration: underline;
	}
	.chara_message_form {
		width: 100vw !important;
		padding: 0.5em 0.3em;
		left: 0;
		right: 0;
	}
	.chara_message_form button {
		margin: 0 0.2em;
	}
	.send_button {
		padding: 0.3em 0.5em;
		font-size: 0.9em;
	}
	.chara_message_form textarea {
		margin: 0 0.2em;
		padding-left: 0.5em;
	}
}
/* ランキング
------------------------------------------------*/
.ranking_list {
	padding-bottom: 1em;
}
.ranking_list_inner {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 98%;
	margin: 0 auto;
}
.ranking_box_title {
	padding: 1em;
	margin-bottom: 1em;
}
.ranking_comprehensive {
	background: #b2d1f7;
	color: #2c55a5;
}
.ranking_good {
	background: #ffacc0;
	color: #f6436d;
}
.ranking_gift {
	background: #f7d58d;
	color: #c08810;
}
.ranking_newcomer {
	background: #e295ff;
	color: #7a3f94;
}
.ranking_box {
	width: calc(100% / 4);
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 0 3px 2px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}
.tabs {
	text-align: center;
	margin-bottom: 1em;
}
.tab-button {
	border-radius: 4px;
	padding: 0.1em 0.5em;
	font-size: 14px;
	border: 1px solid #333333;
}
.tab-button.active {
	background: #333333;
	color: #ffffff;
}
.tab-content {
	display: none;
}
.tab-content.active {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
	justify-content: center;
	padding: 0.5em 0.5em 1.5em 0.5em;
}
.tab-content a.btn_blue {
	display: block;
	align-self: flex-start;
	width: 50%;
	margin: 1em auto 0 auto;
	text-align: center;
}
.ranking_box .chara_post {
	flex: 1 1 calc(50% - 10px); /* 2列のレイアウトを想定 */
	flex-grow: 0; /* 自動的に残りの幅を占めないようにする */
	box-sizing: border-box; /* 余計な幅を取らないようにする */
	margin: 0;
}
@media screen and (max-width: 680px) {
	.ranking_list_inner {
		display: block;
	}
	.ranking_box {
		width: 98%;
		margin: 1em auto 1.5em auto;
	}
}
/* お問合せ（ログイン前後）
------------------------------------------------*/
.contact-form {
	padding: 1em 0.5em 2em 0.5em;
}
.contact-form label {
	display: block;
	margin: 0.5em 0;
}
.contact-form input, .contact-form select, .contact-form textarea {
	width: 100%;
	border: 2px solid #FFA500;
	border-radius: 4px;
	padding: 0.5em;
}
.contact-form textarea {
	min-height: 300px;
	min-width: 100%;
	max-width: 100%;
}
.inquiry_btn {
	text-align: center;
}
button.btn_orange {
	width: 50%;
	border-radius: 4px;
	border: 1px solid #FFA500;
	background: #FFA500;
	color: #fff;
	padding: 0.5em 0;
	margin-top: 1em;
	font-size: 16px;
}
/* ユーザー詳細（ログイン前後）
------------------------------------------------*/
/* 全体 */
.user_profile_container {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 2em 0.5em 3em 0.5em;
}
.user_profile_left_content {
	width: 40%;
}
.user_profile_right_content {
	width: 59%;
}
.user_profile_name_title {
	display: flex;
	justify-content: space-between;
	position: relative;
	margin-bottom: 1em;
}
.user_profile_name_wrapper {
	display: flex;
	align-items: center;
}
.user_profile_good_wrapper {
	display: flex;
	align-items: center;
}
/* 共通タイトル */
.user_profile_common_title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	margin-bottom: 0.5em;
}
.user_profile_common_title_left {
	display: flex;
	align-items: center;
}
.user_profile_common_title_name, .user_profile_common_title_right {
	font-weight: bold;
}
.user_profile_common_title_icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	background-color: rgb(255, 54, 84); /* 円形の背景色 */
	border-radius: 50%; /* 円形にする */
	padding: 0.3em;
	margin-right: 0.5em;
	aspect-ratio: 1 / 1; /* 正円を維持 */
}
.user_profile_common_title_icon i {
	color: white;
	font-size: 14px;
	transform: translateY(1px);
}
/* アイコンと名前 */
.circle_cut {
	width: 40px;
	height: 40px;
	border-radius: 50%; /* 完全な円形にする */
	overflow: hidden; /* 円形からはみ出した部分を隠す */
	display: flex;
	justify-content: center;
	align-items: center;
	margin-right: 0.5em;
}
.circle_cut img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* 画像をコンテナに収め、トリミングする */
	vertical-align: middle; /* 画像を上下中央に配置 */
}
.user_profile_name p {
	font-weight: bold;
}
p.user_online {
	font-weight: normal;
	font-size: 12px;
	color: #B6B6B6;
}
p.user_online:before {
	content: "●";
	color: #00c300;
	margin-right: 0.1em;
}
/* いいねボタン */
.user_profile_good {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: auto;
	max-width: 100%;
	box-sizing: border-box;
	margin-right: 0.5em;
}
.favorite-button {
	background: none;
	cursor: pointer;
	font-size: 16px;
	color: orange;
	padding: 0;
	line-height: 1;
	border: 1px solid orange;
	border-radius: 6px;
	transition: background-color 0.3s, border-color 0.3s; /* スムーズな変化 */
}
.favorite-button i {
	font-weight: 400; /* 星のアイコンを線だけにする（FontAwesomeの設定） */
	margin: 0.2em 0.5em;
}
.favorite-button:focus {
	outline: none;
}
.favorite-button.active {
	background-color: #ffd8a6;
	border-color: #ffd8a6; /* ボーダーの幅を維持しつつ色を変更 */
	color: orange;
}
.favorite-button.active i {
	font-weight: 900; /* 塗りつぶされた星のアイコンに変更（FontAwesomeの設定） */
}
/* スライドショー */
.user_slider {
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	background-color: black; /* 背景色を黒に設定 */
	height: 350px; /* 高さを350pxに固定 */
	overflow: hidden; /* 枠を超える部分を隠す */
	margin-bottom: 1em !important;
	text-align: center;
	position: relative;
}
.user_slider img {
	width: auto; /* 横幅を自動調整 */
	height: 350px; /* 画像の高さが親要素を超えないように */
	object-fit: contain; /* アスペクト比を維持しつつ、枠内に収める */
	object-position: center; /* 画像を中央に配置 */
	background-color: black; /* 余白ができた部分の背景色を黒に設定 */
	display: block; /* 画像をブロック要素にして中央揃え */
}
.user_slider .slick-slide {
	overflow: hidden !important;
}
.user_slider .slick-prev:before, .user_slider .slick-next:before {
	font-size: 22px;
}
.user_slider .slick-prev {
	left: 5px;
}
.user_slider .slick-next {
	right: 5px;
}
/* サムネイル（dots）部分 */
.user_slider_thumb {
	text-align: center;
	margin-top: 10px;
}
.user_slider_thumb li {
	display: inline-block;
	margin: 0 5px;
}
.user_slider_thumb li img.thumbnail-slide {
	width: 60px; /* サムネイル画像の幅 */
	height: 60px; /* サムネイル画像の高さ */
	object-fit: cover; /* 画像をトリミングして均一なサムネイルに */
	cursor: pointer;
	border: 2px solid transparent;
	transition: border-color 0.3s ease;
}
.user_slider_thumb li.slick-active img.thumbnail-slide {
	border-color: #ff3654; /* アクティブなサムネイルに枠線を付ける */
}
/* ユーザー評価 */
.user_profile_review_list {
	margin-top: 1.5em;
}
span.review_count:before {
	content: "（";
	margin: 0 0.1em 0 0.3em;
}
span.review_count:after {
	content: "）";
	margin-left: 0.1em;
}
p.review_ave:after {
	content: "/平均";
	margin-left: 0.2em;
	font-size: 12px;
}
.user_profile_review_box {
	position: relative;
	margin-bottom: 1em;
	border-bottom: 1px solid #ddd;
	padding-bottom: 1em;
}
.user_profile_review_name {
	display: flex;
	align-items: flex-start;
}
.user_review_name {
	width: calc(100% - 40px)
}
.user_review_name p {
	font-weight: bold;
	font-size: 14px;
}
p.user_profile_review_date {
	font-weight: normal;
	font-size: 11px;
	color: #B6B6B6;
	margin: 0.2em 0;
}
p.user_profile_review_date:before {
	content: "ChatRoom / ";
}
p.user_profile_review_comment {
	font-weight: normal;
	font-size: 12px;
}
.user_profile_review_rating {
	position: absolute;
	top: 0;
	right: 0;
}
.user_profile_review_rating i {
	color: rgb(255, 54, 84);
	font-size: 15px;
}
.user_profile_review_list a {
	padding: 0.8em;
	text-align: center;
	display: block;
	width: 100%;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	background-color: #f6f6f6;
	color: #828282;
}
/* 料金など */
.user_profile_main_top p {
	font-weight: bold;
	font-size: 18px;
	margin-bottom: 1em;
}
.user_profile_main_top ul {
	display: flex;
	align-items: flex-end;
	margin-bottom: 1em;
}
li.play_pt {
	font-weight: bold;
	font-size: 23px;
	margin-right: 0.2em;
}
li.play_pt_strikethrough {
	color: gray;
	text-decoration: line-through;
	margin-right: 0.5em;
	font-size: 17px;
}
li.play_time {
	font-size: 13px;
}
li.play_time:before {
	content: "コイン/";
	margin-right: 0.2em;
}
li.play_time:after {
	content: "分";
	margin-left: 0.2em;
}
.user_profile_review_rating_main {
	display: flex;
	align-items: center;
	margin-bottom: 1em;
}
.rating i {
	color: rgb(255, 54, 84);
	font-size: 15px;
}
.review {
	display: flex;
	align-items: center;
	font-size: 13px;
	margin-left: 0.5em;
}
.review p {
	font-weight: normal;
	margin: 0;
	font-size: 13px;
}
.review p:after {
	content: none;
}
.user_profile_main_top a {
	background: rgb(255, 54, 84);
	padding: 0.5em 2em;
	border-radius: 8px;
	color: #fff;
	font-weight: bold;
}
.user_profile_main_top {
	border-bottom: 1px solid #ddd;
	padding-bottom: 1.5em;
	margin-bottom: 1em;
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.user_profile_icon {
	flex-shrink: 0;
	width: 120px;
	height: 120px;
	border-radius: 0;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	border: 4px solid #fff;
}

.profile-icon {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.profile-icon:hover {
	transform: scale(1.05);
}

.user_profile_content {
	flex: 1;
	min-width: 0;
}
/* サムネイル画像（ポップアップ） */
.user_pic_thumb {
	display: flex;
	flex-wrap: wrap;
	gap: 10px; /* 画像間のスペース */
	margin-top: 1em;
}
.thumb-container {
	position: relative;
	width: 30%; /* 3列のレイアウトを指定 */
	height: 140px; /* 高さを固定 */
	overflow: hidden; /* トリミング部分を隠す */
}
.thumb-container img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* 画像をトリミングして中央に配置 */
	object-position: center; /* 中央に配置 */
}
.thumb-container i {
	position: absolute;
	bottom: 5px;
	right: 5px;
	font-size: 15px;
	color: white;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 50%;
	padding: 5px;
}
/* ポップアップのスタイル */
.popup {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 9999;
	display: none;
	max-width: 80%;
	max-height: 80%;
}
.popup img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.popup-close {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
}
/* カテゴリナビゲーション */
.navigation-wrapper {
	display: flex;
	align-items: center;
	position: relative;
	width: 100%;
	margin-bottom: 1em;
}
.scroll-arrow {
	width: auto;
	height: auto;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	z-index: 2;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}
.left-arrow {
	left: 0;
}
.right-arrow {
	right: 0;
}
.category-list-wrapper {
	overflow-x: hidden;
	width: 100%;
	position: relative;
	padding: 0 25px;
	box-sizing: border-box;
}
.category-list {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	white-space: nowrap;
	transition: transform 0.3s ease;
	overflow-x: hidden;
}
.category-item {
	white-space: nowrap;
	cursor: pointer;
	position: relative;
	border: none;
	font-weight: bold;
}
.category-item.active {
	color: #000;
	border-bottom: 3px solid #ff3654;
	background: none;
	border-radius: 0;
}
.tab-content-wrapper {
	width: 100%;
	display: block;
}
.tab-content-wrapper .tab-content {
	display: none;
}
.tab-content-wrapper .tab-content.active {
	display: block;
}
/* スクロールバーを非表示にする */
.category-list-wrapper::-webkit-scrollbar {
	display: none;
}
.category-list-wrapper {
	-ms-overflow-style: none; /* Internet Explorer 10+ */
	scrollbar-width: none; /* Firefox */
}
.skill_level {
	margin-bottom: 0.8em;
}
.skill_item {
	display: flex;
	align-items: center;
	margin-bottom: 0.2em;
}
.skill_item dt:after {
	content: ":";
	margin: 0 0.2em;
}
.user_profile_self_intro_text {
	line-height: 1.7em;
}
.hidden-review {
	display: none;
}
.read-more-button {
	padding: 0.8em;
	text-align: center;
	display: block;
	width: 100%;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	background-color: #f6f6f6;
	color: #828282;
	border: none; /* ボタンのデフォルトのボーダーを消す */
	cursor: pointer; /* マウスホバー時にポインタを表示 */
}
/* レスポンシブ */
@media (max-width: 680px) {
	.popup {
		width: 80%; /* モバイル時に幅を拡大 */
		height: auto; /* 高さを自動に */
		max-width: 80%;
		max-height: 80%;
	}
	.popup img {
		max-width: 100%; /* モバイル時には幅を最大に */
		max-height: 85vh; /* 画面の高さの85%まで表示 */
	}
	.popup-close {
		top: 5px; /* 閉じるボタンの位置を調整 */
		right: 5px;
		font-size: 20px; /* ボタンのサイズを少し小さく */
	}
	/* 左側のuser_profile_review_wrapperを非表示に */
	.simple-review {
		display: none;
	}
	/* コンテンツの順番を変更 */
	.user_profile_slide_wrapper {
		order: 1;
	}
	.user_profile_main {
		order: 2;
	}
	.user_profile_skill {
		order: 3;
	}
	.user_profile_self_intro {
		order: 4;
	}
	#user_review {
		order: 5;
	}
	/* フレックスボックスの設定 */
	.user_profile_container {
		flex-direction: column; /* 縦並びにする */
		padding: 1em 0.5em;
	}
	/* 各コンテンツの幅を100%に */
	.user_profile_left_content, .user_profile_right_content {
		width: 100%;
	}
	
	/* プロフィールアイコンのモバイル対応 */
	.user_profile_main_top {
		flex-direction: row;
		align-items: flex-start;
		gap: 15px;
	}
	
	.user_profile_icon {
		width: 130px;
		height: 130px;
	}
}
/* 出品設定（ログイン後）
------------------------------------------------*/
.input_item_title {
	margin-bottom: 0.5em;
}
.input_item_title p {
	font-weight: 600;
}
p.input_error {
	color: red;
	font-weight: normal;
	font-size: 13px;
	margin-top: 0.2em;
}
span.required {
	margin-left: 0.3em;
	background: #FF3654;
	padding: 0.1em 0.5em 0.2em 0.5em;
	color: #ffffff;
	font-weight: normal;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1;
}
/* 質問の回答 選択ボタン式 */
.selection {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
	gap: 10px; /* ボタン間の隙間を設定 */
}
.selectable-button {
	background-color: #fdfec5;
	color: #333;
	font-weight: 500;
	border: 2px solid #FFA500;
	border-radius: 8px;
	cursor: pointer;
	width: calc(50% - 5px); /* ボタンの幅を隙間を考慮して計算 */
	box-sizing: border-box;
	padding: 0.8em;
}
.selectable-button.selected {
	background-color: #FFA500;
	color: #ffffff;
}
/* ラジオボタン風ボタンスタイル */
.radio-button-label {
	position: relative;
	display: inline-block;
	width: calc(50% - 5px);
	box-sizing: border-box;
	cursor: pointer;
}
.radio-button-label.column_3 {
	width: calc(33.3333333% - 7px);
}
.radio-button-label input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
}
.radio-button-text {
	display: block;
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	color: #2d3748;
	font-weight: 500;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	padding: 0.8em;
	text-align: center;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-sizing: border-box;
	user-select: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.radio-button-label:hover .radio-button-text {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-color: #667eea;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
	transform: translateY(-1px);
}
.radio-button-label input[type="radio"]:checked + .radio-button-text {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	border-color: #5a67d8;
	box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4), 0 2px 8px rgba(102, 126, 234, 0.2);
	font-weight: 600;
	transform: translateY(-2px);
}
.radio-button-label input[type="radio"]:focus + .radio-button-text {
	outline: 2px solid #667eea;
	outline-offset: 3px;
	box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}
.radio-button-label input[type="radio"]:active + .radio-button-text {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}
.form_input_row dl {
	width: 100%;
	display: block;
	margin-bottom: 1.5em;
}
.column_3 {
	width: calc(33.3333333% - 7px); /* ボタンの幅を隙間を考慮して計算 */
}
.column_no_limit {
	width: auto; /* ボタン幅をコンテンツに応じて自動調整 */
	flex: 0 1 auto; /* コンテンツに応じた幅でフレックス要素を設定 */
	white-space: nowrap; /* テキストの改行を防ぐ */
}

/* ボイス編集 */
.audio-upload-button {
	display: block;
	margin: 20px auto;
	cursor: pointer;
	background-color: #eeeeee;
	border: 2px dashed gray;
	border-radius: 10px;
	width: 80%;
	color: gray;
	padding: 1em 0;
}
.audio-file {
	text-align: center;
}
.audio-header {
	margin-bottom: 1em;
}
@media screen and (max-width: 680px) {
	.audio-upload-button {
		width: 100%;
	}
	.audio_thumbnail {
		width: 100%;
	}
}



/* 追記 */
.scrollBox{
	position: relative;
	width: calc(100% -2px);
	height: 180px;
	border: 1px solid #ECECEC;
	border-radius: 7px;
	overflow-y: auto;
}

.scrollBox p{
	padding: 8px;
}

.margin10{
	height: 10px;
	margin: none;
	padding: none;
	border: 0px;
	display: block;
}

.text-left{
	text-align: left;
}

.text-center{
	text-align: center;
}

.text-right{
	text-align: right;
}


/* 汎用ポップアップ
------------------------------------------------*/
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  padding: 1em;
  box-sizing: border-box;
}
.popup-box {
  background: #fff;
  width: 100%;
  max-width: 500px;
  max-height: 60vh;
  border-radius: 8px;
  overflow: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
}
.popup-close {
  position: absolute;
  top: 0.5em;
  right: 1em;
  font-size: 1.2em;
  background: none;
  border: none;
  cursor: pointer;
}
.popup-content {
  padding: 2em 1em 1em;
  overflow-y: auto;
  flex-grow: 1;
  min-height: 0;
}
.popup-content h2{
	text-align: center;
	margin-bottom: 0.5em;
}
.popup-content p{
	line-height: 1.7em;
}

@media screen and (max-width: 680px) {
	.popup-box {
		width: 90%;
		max-height: 70vh;
	}
	.popup-close {
		right: 0.5em;
	}
}


/* ユーザー画像トリミング
------------------------------------------------*/
.circle, .square {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
}
/* 円形 */
.circle {
  border-radius: 50%;
}
/* 四角形 */
.square {
  border-radius: 0;
}
.circle img,
.square img {
  object-fit: cover;
  object-position: center;
  height: 100%;
  width: 100%;
}


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

#screenOverlay{
	position: fixed;
	left:0;
	top:0;
	background-color: #FFFFFF;
	width: 100%;
	height: 100%;
	z-index: 998;
}

#modalOverlay{
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgba(0,0,0,0.6);
	width: 100%;
	height: 100%;
	z-index: 998;
	display: none;
}



/**************************************
**
**	MODAL
**
**************************************/

.modalScreen{
	position: fixed;
	background-color: rgba(0,0,0,0.6);
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 100;
	display: none;
}

#modalBox{
	z-index: 999;
	display: none;
}

.modalContentsArea{
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	width: 100%;
	height: 100%;
	background: none;
}

.modalContent{
	position: absolute;
	top: 50%;
	left: 50%;
	overflow: hidden;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	width: 95%;
	height: auto;
	max-height: 95%;
	pointer-events: auto;
	background-color: #FFFFFF;
	background-clip: padding-box;
	border: 1px solid #666666;
	border-radius: 5px;
	outline: 0;
	transform: translate(-50%, -50%);
}

.modalContentFullHeight{
	position: absolute;
	top: 50%;
	left: 50%;
	overflow: hidden;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	width: 98%;
	height: calc(100vh - 3.5rem);
	pointer-events: auto;
	background-color: #FFFFFF;
	background-clip: padding-box;
	margin: 0 auto;
	border: 1px solid #666666;
	border-radius: 5px;
	outline: 0;
	transform: translate(-50%, -50%);
}

.photoFullModal{
	position: absolute;
	top: 50%;
	left: 50%;
	overflow: hidden;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	width: 100%;
	height: 100%;
	pointer-events: auto;
	margin: 0 auto;
	padding: 0px;
	border: none;
	outline: 0;
	transform: translate(-50%, -50%);
}

.photoFullModal img{
	width: 100%;
}

.modalHeader,.modalFooter{
	-ms-flex-negative: 0;
	flex-shrink: 0;
}

.modalHeader{
	position: relative;
	background-image: url("/images/layout/title/modal.png");
	background-position: center center;
	background-size: contain;
	background-color: #666666;
	color: #FFFFFF;
	font-size: 16px;
	text-align: center;
	line-height: 1.5;
	padding: 8px;
	border-bottom: 1px solid #dee2e6;
	border-top-left-radius: calc(.3rem - 1px);
	border-top-right-radius: calc(.3rem - 1px);
}

.modalHeader i{
	color: #FFFFFF;
}

.modalHeader .error i{
	color: #FF0000;
}

.modalBody{
	position: relative;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
	padding: 1rem;
	overflow: auto;
}

.modalBodyFullWidth{
	position: relative;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
	padding: none;
	overflow: auto;
}

.modalLoadBody{
	width: 100%;
	height: calc(100% - 72px);
	margin: 0px;
	padding: 0px;
	border: 0px;
}

.modalFooter{
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-ms-flex-align: center;
	align-items: center;
	-ms-flex-pack: end;
	justify-content: flex-end;
	padding: 12px;
	padding: .75rem;
	border-top: 1px solid #dee2e6;
	border-bottom-right-radius: calc(.3rem - 1px);
	border-bottom-left-radius: calc(.3rem - 1px);
}

.modalFooter a{
	background-color: #666666;
	width: 80px;
	height: 35px;
	color: #FFFFFF;
	text-align: center;
	line-height: 35px;
	font-size: 14px;
	border-radius: 20px;
	display: block;
	text-decoration: none;
}

.modalFooter a i{
	margin-right: 5px;
}

.modalFooter .bottonLeft{
	position: absolute;
	left: 10px;
}

/*
.loadArea{
	position: relative;
	z-index: 101;
}
*/

.modalCircleButton{
	position: absolute;
	width: 30px;
	height: 30px;
	top: 5px;
	left: 5px;
	background-color: #FF3366;
	font-size: 150%;
	font-weight: bold;
	line-height: 30px;
	color: #FFFFFF;
	text-shadow: 0 1px 0 #fff;
	text-align: center;
	filter: alpha(opacity=80);
	opacity: .8;
	z-index: 20;
	border-radius: 50px;
	display: block;
}

.modalCircleButton i{
	color: #FFFFFF;
	line-height: 30px;
}

a.closeBlack {
	position: absolute;
	width: 30px;
	height: 30px;
	top: 5px;
	right: 5px;
	background-color: #111111;
	font-size: 150%;
	font-weight: bold;
	line-height: 30px;
	color: #FFFFFF;
	text-shadow: 0 1px 0 #fff;
	text-align: center;
	filter: alpha(opacity=80);
	opacity: .8;
	z-index: 20;
	border-radius: 50px;
	display: block;
}

a.closeBlack:hover,
a.closeBlack:focus {
	color: #666666;
	text-decoration: none;
	cursor: pointer;
	filter: alpha(opacity=2);
	opacity: .2;
}

.closeWhite {
	position: absolute;
	width: 30px;
	height: 30px;
	top: -3px;
	right: -3px;
	font-size: 150%;
	font-weight: bold;
	line-height: 30px;
	color: #333333;
	text-align: center;
	z-index: 20;
	border-radius: 50px;
	display: block;
}
.closeWhite:hover,
.closeWhite:focus {
	color: #999999;
	text-decoration: none;
	cursor: pointer;
	filter: alpha(opacity=2);
	opacity: .2;
}

.modalTitle{
	background-color: #CCCCCC;
	color: #555555;
	font-size: 14px;
	text-align: center;
	margin-bottom: 10px;
	padding: 5px;
	border-radius: 5px;
}

.modalIndexTitle{
	background-color: #888888;
	color: #FFFFFF;
	font-size: 14px;
	text-align: center;
	padding: 5px;
}

.deleteBlack{
	position: absolute;
	top: -10px;
	right: -10px;
	width: 25px;
	height: 25px;
	background-color: #000000;
	color: #FFFFFF;
	text-align: center;
	line-height: 25px;
	border-radius: 20px;
	z-index: 2;
}

.deleteBlack a{
	color: #FFFFFF;
	font-size: 18px;
}

/* user_profile_containerを中央寄せにする新クラス */
.centered-profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

/*==================================================================
プロフィール編集用モーダルダイアログ
==================================================================*/
.profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.profile-modal-dialog {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.profile-modal-dialog.show {
    transform: scale(1);
    opacity: 1;
}

.profile-modal-dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e8f5e8, #f0f8ff, #fff8f0);
}

.profile-modal-icon {
    font-size: 50px;
    margin-bottom: 20px;
    animation: profile-modal-bounce 0.6s ease;
}

.profile-modal-icon.success {
    color: #68d391;
}

.profile-modal-icon.error {
    color: #f56565;
}

@keyframes profile-modal-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.profile-modal-title {
    color: #2d3748;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.profile-modal-message {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.profile-modal-button {
    background: #68d391;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(104, 211, 145, 0.3);
}

.profile-modal-button:hover {
    background: #48bb78;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(104, 211, 145, 0.4);
}

.profile-modal-button:active {
    transform: translateY(0);
}

/* ローディングアニメーション */
.profile-loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(104, 211, 145, 0.3);
    border-radius: 50%;
    border-top-color: #68d391;
    animation: profile-spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes profile-spin {
    to { transform: rotate(360deg); }
}

/* スライドショー */
.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slideshow-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slideshow-nav.prev-btn {
    left: 15px;
}

.slideshow-nav.next-btn {
    right: 15px;
}

.slideshow-nav i {
    font-size: 18px;
    color: #333;
}

.slideshow-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.slideshow-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 15px;
    z-index: 10;
    font-weight: 500;
}

/* サムネイルのアクティブ状態 */
.thumb-container.active,
.character-thumb-container.active {
    border: 3px solid #007bff;
    transform: scale(1.05);
}

.thumb-container.active i,
.character-thumb-container.active i {
    background: #007bff;
    color: white;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .slideshow-container {
        max-width: 100%;
    }
    
    .slideshow-wrapper {
        height: 300px;
    }
    
    .slideshow-nav {
        width: 40px;
        height: 40px;
    }
    
    .slideshow-nav.prev-btn {
        left: 10px;
    }
    
    .slideshow-nav.next-btn {
        right: 10px;
    }
    
    .slideshow-nav i {
        font-size: 14px;
    }
    
    .slideshow-indicators {
        bottom: 10px;
        gap: 6px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .slideshow-counter {
        top: 10px;
        right: 10px;
        font-size: 12px;
        padding: 4px 8px;
    }
}

.character-thumb-container i {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 15px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 5px;
}

.character-thumb-container:hover {
    transform: scale(1.02);
}

.character-thumb-container .fa-search {
    transition: opacity 0.2s ease;
}

.character-thumb-container:hover .fa-search {
    opacity: 1;
}

/* タブ編集機能用のスタイル */
.editable-content {
    min-height: 100px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.editable-content.editing {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.editable-content textarea {
    width: 100%;
    min-height: 100px;
    border: none;
    background: transparent;
    resize: vertical;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    outline: none;
}

.edit-tab-btn,
.save-tab-btn,
.cancel-tab-btn {
    margin-top: 10px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.edit-tab-btn {
    background-color: #007bff;
    color: white;
}

.edit-tab-btn:hover {
    background-color: #0056b3;
}

.save-tab-btn {
    background-color: #28a745;
    color: white;
    margin-right: 10px;
}

.save-tab-btn:hover {
    background-color: #1e7e34;
}

.cancel-tab-btn {
    background-color: #6c757d;
    color: white;
}

.cancel-tab-btn:hover {
    background-color: #545b62;
}

.tab-content {
    position: relative;
}

.tab-content .editable-content {
    margin-bottom: 10px;
}

/* プロフィール画像のサークル表示 */
.user_profile_icon {
    border-radius: 50% !important;
    overflow: hidden;
}

.user_profile_icon .profile-icon {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* プロフィール画像編集モーダル */
.profile-image-edit-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.profile-image-edit-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.profile-image-edit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.profile-image-edit-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.profile-image-edit-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.profile-image-edit-modal-close:hover {
    color: #000;
}

.profile-image-edit-modal-body {
    padding: 20px;
}

.profile-image-edit-display {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.profile-image-edit-display img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    object-fit: contain;
    pointer-events: auto;
    cursor: pointer;
}

.profile-image-edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-image-edit-display:hover .profile-image-edit-overlay {
    opacity: 1;
}

.profile-image-edit-hint {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ファイルアップロード機能用スタイル */
.file-upload-thumbnail-item {
	display: inline-block;
	margin: 10px;
	text-align: center;
	position: relative;
}

.file-upload-thumbnail-item img {
	max-width: 150px;
	max-height: 150px;
	border: 1px solid #ddd;
	border-radius: 5px;
}

/* サンプル画像用の画像サイズ調整 */
#sample_thumbnail .file-upload-thumbnail-item img {
	max-width: 100%;
	max-height: none;
	width: auto;
	height: auto;
}

/* PCでの5列表示時の画像サイズ調整 */
@media (min-width: 769px) {
	#sample_thumbnail .file-upload-thumbnail-item img {
		max-height: 120px;
	}
}

/* タブレットでの3列表示時の画像サイズ調整 */
@media (max-width: 768px) and (min-width: 481px) {
	#sample_thumbnail .file-upload-thumbnail-item img {
		max-height: 140px;
	}
}

/* スマホでの3列表示時の画像サイズ調整 */
@media (max-width: 480px) {
	#sample_thumbnail .file-upload-thumbnail-item img {
		max-height: 120px;
	}
}

.file-upload-delete-btn {
	/* 無効化 - インラインスタイルで制御 */
	display: none !important;
}

.delete-btn {
	/* インラインスタイルで制御するため、CSSは無効化 */
	position: static !important;
	display: inline-block !important;
}



.file-upload-no-image-text {
	color: #666;
	font-style: italic;
	text-align: center;
	padding: 20px;
	margin: 10px;
	border: 1px dashed #ccc;
	border-radius: 5px;
	background: #f9f9f9;
}

#profile_thumbnail {
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
}

#profile_thumbnail .file-upload-thumbnail-item {
	display: inline-block;
	margin: 10px auto;
	text-align: center;
}

#profile_thumbnail .file-upload-no-image-text {
	margin: 10px auto;
}

/* 画像全画面表示モーダルのスタイル */
.file-upload-image-modal {
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.9);
	cursor: pointer;
}

.file-upload-modal-content {
	position: relative;
	margin: auto;
	padding: 20px;
	width: 90%;
	height: 90%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	pointer-events: none;
}

.file-upload-modal-header {
	width: 100%;
	text-align: right;
}

.file-upload-modal-image-container {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 80%;
	pointer-events: auto;
}

.file-upload-close-modal {
	color: #fff;
	background: rgba(0,0,0,0.7);
	border: 2px solid #fff;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	font-size: 24px;
	font-weight: bold;
	cursor: pointer;
	z-index: 1001;
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	margin: 10px;
}

.file-upload-close-modal:hover,
.file-upload-close-modal:focus {
	background: rgba(255,255,255,0.9);
	color: #000;
	border-color: #fff;
	transform: scale(1.1);
}

#modalImage {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	cursor: pointer;
	pointer-events: auto;
}

.file-upload-nav-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.5);
	color: white;
	border: none;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	font-size: 24px;
	cursor: pointer;
	z-index: 1001;
	transition: background-color 0.3s;
	pointer-events: auto;
}

.file-upload-nav-arrow:hover {
	background: rgba(0,0,0,0.8);
}

.file-upload-prev-arrow {
	left: 20px;
}

.file-upload-next-arrow {
	right: 20px;
}

.file-upload-image-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: white;
	font-size: 16px;
	background: rgba(0,0,0,0.5);
	padding: 8px 16px;
	border-radius: 20px;
	pointer-events: auto;
}

.file-upload-remove-btn:hover {
	background: #cc0000 !important;
}

#profile_preview, #sample_preview {
	background: #f9f9f9;
	border-color: #007bff !important;
}

#profile_preview h4, #sample_preview h4 {
	color: #007bff;
	margin: 0 0 15px 0;
}

#profile_preview_image img, #sample_preview_images img {
	transition: transform 0.2s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#profile_preview_image img:hover, #sample_preview_images img:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* プレビュー画像のレスポンシブ対応 */
#sample_preview_images > div {
	display: inline-block;
	margin: 5px;
	text-align: center;
	width: calc(20% - 10px);
	min-width: 120px;
	vertical-align: top;
	box-sizing: border-box;
}

/* タブレット対応 - プレビュー3列表示 */
@media (max-width: 768px) {
	#sample_preview_images > div {
		width: calc(33.333% - 10px);
		min-width: 300px;
	}
}

/* スマホ対応 - プレビュー3列表示を強制 */
@media (max-width: 480px) {
	#sample_preview_images > div {
		width: calc(33.333% - 4px) !important;
		min-width: 260px !important;
		max-width: 500px !important;
		display: inline-block !important;
		vertical-align: top !important;
		box-sizing: border-box !important;
		margin: 1px !important;
	}
	
	#sample_preview_images {
		text-align: center !important;
	}
	
	#sample_preview_images img {
		max-height: 600px !important;
	}
}

/* より小さいスマホ対応 - プレビュー3列表示を強制 */
@media (max-width: 360px) {
	#sample_preview_images > div {
		width: calc(33.333% - 2px) !important;
		min-width: 250px !important;
		max-width: 500px !important;
		margin: 0.5px !important;
	}
	
	#sample_preview_images img {
		max-height: 600px !important;
	}
}

/* スピナーアニメーション */
@keyframes file-upload-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* ローディング画面のスタイル */
#loadingOverlay {
	z-index: 9999;
}

/* 確認モーダルのスタイル */
.file-upload-confirm-modal {
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.5);
	display: flex;
	justify-content: center;
	align-items: center;
}

.file-upload-confirm-content {
	background: white;
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.3);
	width: 90%;
	max-width: 500px;
	overflow: hidden;
}

.file-upload-confirm-header {
	background: #007bff;
	color: white;
	padding: 20px;
	text-align: center;
}

.file-upload-confirm-header h3 {
	margin: 0;
	font-size: 18px;
}

.file-upload-confirm-body {
	padding: 30px 20px;
	text-align: center;
}

.file-upload-confirm-body p {
	margin: 0;
	font-size: 16px;
	color: #333;
}

.file-upload-confirm-footer {
	display: flex;
	border-top: 1px solid #eee;
}

.file-upload-confirm-btn {
	flex: 1;
	padding: 15px;
	border: none;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.file-upload-confirm-ok {
	background: #007bff;
	color: white;
}

.file-upload-confirm-ok:hover {
	background: #0056b3;
}

.file-upload-confirm-cancel {
	background: #6c757d;
	color: white;
}

.file-upload-confirm-cancel:hover {
	background: #545b62;
}

/* ファイルアップロード機能の追加スタイル */
.thumbnail_item {
	display: inline-block;
	margin: 10px;
	text-align: center;
	position: relative;
}

.thumbnail_item img {
	max-width: 150px;
	max-height: 150px;
	border: 1px solid #ddd;
	border-radius: 5px;
}

/* サンプル画像用の画像サイズ調整 */
#sample_thumbnail .thumbnail_item img {
	max-width: 100%;
	max-height: none;
	width: auto;
	height: auto;
}

/* PCでの5列表示時の画像サイズ調整 */
@media (min-width: 769px) {
	#sample_thumbnail .thumbnail_item img {
		max-height: 120px;
	}
}

/* タブレットでの3列表示時の画像サイズ調整 */
@media (max-width: 768px) and (min-width: 481px) {
	#sample_thumbnail .thumbnail_item img {
		max-height: 140px;
	}
}

/* スマホでの3列表示時の画像サイズ調整 */
@media (max-width: 480px) {
	#sample_thumbnail .thumbnail_item img {
		max-height: 120px;
	}
}





.no-image-text {
	color: #666;
	font-style: italic;
	text-align: center;
	padding: 20px;
	margin: 10px;
	border: 1px dashed #ccc;
	border-radius: 5px;
	background: #f9f9f9;
}

#profile_thumbnail {
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
}

#profile_thumbnail .thumbnail_item {
	display: inline-block;
	margin: 10px auto;
	text-align: center;
}

#profile_thumbnail .no-image-text {
	margin: 10px auto;
}

/* 画像全画面表示モーダルのスタイル */
.image-modal {
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.9);
	cursor: pointer;
}

.modal-content {
	position: relative;
	margin: auto;
	padding: 20px;
	width: 90%;
	height: 90%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	pointer-events: none;
}

.modal-header {
	width: 100%;
	text-align: right;
}

.modal-image-container {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 80%;
	pointer-events: auto;
}

.close-modal {
	color: #fff;
	background: rgba(0,0,0,0.7);
	border: 2px solid #fff;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	font-size: 24px;
	font-weight: bold;
	cursor: pointer;
	z-index: 1001;
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	margin: 10px;
}

.close-modal:hover,
.close-modal:focus {
	background: rgba(255,255,255,0.9);
	color: #000;
	border-color: #fff;
	transform: scale(1.1);
}

#modalImage {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	cursor: pointer;
	pointer-events: auto;
}

.nav-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.5);
	color: white;
	border: none;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	font-size: 24px;
	cursor: pointer;
	z-index: 1001;
	transition: background-color 0.3s;
	pointer-events: auto;
}

.nav-arrow:hover {
	background: rgba(0,0,0,0.8);
}

.prev-arrow {
	left: 20px;
}

.next-arrow {
	right: 20px;
}

.image-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: white;
	font-size: 16px;
	background: rgba(0,0,0,0.5);
	padding: 8px 16px;
	border-radius: 20px;
	pointer-events: auto;
}

.remove-btn:hover {
	background: #cc0000 !important;
}

#profile_preview, #sample_preview {
	background: #f9f9f9;
	border-color: #007bff !important;
}

#profile_preview h4, #sample_preview h4 {
	color: #007bff;
	margin: 0 0 15px 0;
}

#profile_preview_image img, #sample_preview_images img {
	transition: transform 0.2s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#profile_preview_image img:hover, #sample_preview_images img:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* プレビュー画像のレスポンシブ対応 */
#sample_preview_images > div {
	display: inline-block;
	margin: 5px;
	text-align: center;
	width: calc(20% - 10px);
	min-width: 120px;
	vertical-align: top;
	box-sizing: border-box;
}

/* タブレット対応 - プレビュー3列表示 */
@media (max-width: 768px) {
	#sample_preview_images > div {
		width: calc(33.333% - 10px);
		min-width: 100px;
	}
}

/* スマホ対応 - プレビュー3列表示を強制 */
@media (max-width: 480px) {
	#sample_preview_images > div {
		width: calc(33.333% - 4px) !important;
		min-width: 60px !important;
		display: inline-block !important;
		vertical-align: top !important;
		box-sizing: border-box !important;
		margin: 1px !important;
	}
	
	#sample_preview_images {
		text-align: center !important;
	}
}

/* より小さいスマホ対応 - プレビュー3列表示を強制 */
@media (max-width: 360px) {
	#sample_preview_images > div {
		width: calc(33.333% - 2px) !important;
		min-width: 50px !important;
		margin: 0.5px !important;
	}
}

/* スピナーアニメーション */
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* ローディング画面のスタイル */
#loadingOverlay {
	z-index: 9999;
}

/* 確認モーダルのスタイル */
.confirm-modal {
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.5);
	display: flex;
	justify-content: center;
	align-items: center;
}

.confirm-content {
	background: white;
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.3);
	width: 90%;
	max-width: 500px;
	overflow: hidden;
}

.confirm-header {
	background: #007bff;
	color: white;
	padding: 20px;
	text-align: center;
}

.confirm-header h3 {
	margin: 0;
	font-size: 18px;
}

.confirm-body {
	padding: 30px 20px;
	text-align: center;
}

.confirm-body p {
	margin: 0;
	font-size: 16px;
	color: #333;
}

.confirm-footer {
	display: flex;
	border-top: 1px solid #eee;
}

.confirm-btn {
	flex: 1;
	padding: 15px;
	border: none;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.confirm-ok {
	background: #007bff;
	color: white;
}

.confirm-ok:hover {
	background: #0056b3;
}

.confirm-cancel {
	background: #6c757d;
	color: white;
}

.confirm-cancel:hover {
	background: #545b62;
}

/* サンプル画像の表示を最適化 */
#sample_thumbnail {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	align-items: flex-start;
}

/* 固定枠方式のスタイル */
.fixed-frame {
	position: relative;
}

.image-frame {
	width: 100%;
	height: 120px;
	overflow: hidden;
	border: 1px solid #ddd;
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f9f9f9;
}

.image-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

#sample_thumbnail .thumbnail_item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	flex: 0 0 calc(20% - 8px);
	max-width: calc(20% - 8px);
	min-width: 120px;
}

#sample_thumbnail .thumbnail_item img {
	max-width: 100%;
	height: auto;
	border: 1px solid #ddd;
	border-radius: 5px;
	object-fit: cover;
}

/* PC対応 - 5列表示を明示的に指定 */
@media (min-width: 769px) {
	#sample_thumbnail .thumbnail_item {
		flex: 0 0 calc(20% - 8px) !important;
		max-width: calc(20% - 8px) !important;
		min-width: 120px !important;
	}
	
	#sample_thumbnail {
		gap: 10px !important;
		display: flex !important;
		flex-wrap: wrap !important;
		justify-content: center !important;
	}
}

/* タブレット対応 - 3列表示 */
@media (max-width: 768px) and (min-width: 481px) {
	#sample_thumbnail .thumbnail_item {
		flex: 0 0 calc(33.333% - 7px);
		max-width: calc(33.333% - 7px);
		min-width: 100px;
	}
	
	#sample_thumbnail {
		gap: 8px;
	}
}

/* スマホ対応 - 3列表示を固定枠方式で強制実現 */
@media (max-width: 480px) {
	#sample_thumbnail {
		display: grid !important;
		grid-template-columns: repeat(3, 1fr) !important;
		gap: 4px !important;
		padding: 0 2px !important;
		width: 100% !important;
	}
	
	#sample_thumbnail .thumbnail_item {
		width: 100% !important;
		min-width: unset !important;
		max-width: unset !important;
		flex: unset !important;
		margin: 0 !important;
		box-sizing: border-box !important;
	}
	
	.image-frame {
		height: 100px !important;
	}
	
	/* 3列グリッドを確実に維持 */
	#sample_thumbnail .thumbnail_item:nth-child(3n+1) {
		grid-column: 1 !important;
	}
	
	#sample_thumbnail .thumbnail_item:nth-child(3n+2) {
		grid-column: 2 !important;
	}
	
	#sample_thumbnail .thumbnail_item:nth-child(3n+3) {
		grid-column: 3 !important;
	}
}

/* より小さいスマホ対応 - 3列表示を確実に維持 */
@media (max-width: 360px) {
	#sample_thumbnail {
		gap: 2px !important;
		padding: 0 1px !important;
	}
	
	.image-frame {
		height: 90px !important;
	}
}

/* プロフィール画像も同様に調整 */
#profile_thumbnail {
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
}

#profile_thumbnail .thumbnail_item {
	display: inline-block;
	margin: 10px auto;
	text-align: center;
	max-width: 200px;
}

#profile_thumbnail .thumbnail_item img {
	max-width: 100%;
	height: auto;
	border: 1px solid #ddd;
	border-radius: 5px;
	object-fit: cover;
}

/* ファイルアップロード機能の追加スタイル（重複分） */
.thumbnail_item {
	display: inline-block;
	margin: 10px;
	text-align: center;
	position: relative;
}

.thumbnail_item img {
	max-width: 150px;
	max-height: 150px;
	border: 1px solid #ddd;
	border-radius: 5px;
}

/* サンプル画像用の画像サイズ調整 */
#sample_thumbnail .thumbnail_item img {
	max-width: 100%;
	max-height: none;
	width: auto;
	height: auto;
}

/* PCでの5列表示時の画像サイズ調整 */
@media (min-width: 769px) {
	#sample_thumbnail .thumbnail_item img {
		max-height: 120px;
	}
}

/* タブレットでの3列表示時の画像サイズ調整 */
@media (max-width: 768px) and (min-width: 481px) {
	#sample_thumbnail .thumbnail_item img {
		max-height: 140px;
	}
}

/* スマホでの3列表示時の画像サイズ調整 */
@media (max-width: 480px) {
	#sample_thumbnail .thumbnail_item img {
		max-height: 120px;
	}
}





.no-image-text {
	color: #666;
	font-style: italic;
	text-align: center;
	padding: 20px;
	margin: 10px;
	border: 1px dashed #ccc;
	border-radius: 5px;
	background: #f9f9f9;
}

#profile_thumbnail {
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
}

#profile_thumbnail .thumbnail_item {
	display: inline-block;
	margin: 10px auto;
	text-align: center;
}

#profile_thumbnail .no-image-text {
	margin: 10px auto;
}

/* 画像全画面表示モーダルのスタイル */
.image-modal {
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.9);
	cursor: pointer;
}

.modal-content {
	position: relative;
	margin: auto;
	padding: 20px;
	width: 90%;
	height: 90%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	pointer-events: none;
}

.modal-header {
	width: 100%;
	text-align: right;
}

.modal-image-container {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 80%;
	pointer-events: auto;
}

.close-modal {
	color: #fff;
	background: rgba(0,0,0,0.7);
	border: 2px solid #fff;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	font-size: 24px;
	font-weight: bold;
	cursor: pointer;
	z-index: 1001;
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	margin: 10px;
}

.close-modal:hover,
.close-modal:focus {
	background: rgba(255,255,255,0.9);
	color: #000;
	border-color: #fff;
	transform: scale(1.1);
}

#modalImage {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	cursor: pointer;
	pointer-events: auto;
}

.nav-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.5);
	color: white;
	border: none;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	font-size: 24px;
	cursor: pointer;
	z-index: 1001;
	transition: background-color 0.3s;
	pointer-events: auto;
}

.nav-arrow:hover {
	background: rgba(0,0,0,0.8);
}

.prev-arrow {
	left: 20px;
}

.next-arrow {
	right: 20px;
}

.image-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: white;
	font-size: 16px;
	background: rgba(0,0,0,0.5);
	padding: 8px 16px;
	border-radius: 20px;
	pointer-events: auto;
}

.remove-btn:hover {
	background: #cc0000 !important;
}

#profile_preview, #sample_preview {
	background: #f9f9f9;
	border-color: #007bff !important;
}

#profile_preview h4, #sample_preview h4 {
	color: #007bff;
	margin: 0 0 15px 0;
}

#profile_preview_image img, #sample_preview_images img {
	transition: transform 0.2s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#profile_preview_image img:hover, #sample_preview_images img:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* プレビュー画像のレスポンシブ対応 */
#sample_preview_images > div {
	display: inline-block;
	margin: 5px;
	text-align: center;
	width: calc(20% - 10px);
	min-width: 120px;
	vertical-align: top;
	box-sizing: border-box;
}

/* タブレット対応 - プレビュー3列表示 */
@media (max-width: 768px) {
	#sample_preview_images > div {
		width: calc(33.333% - 10px);
		min-width: 100px;
	}
}

/* スマホ対応 - プレビュー3列表示を強制 */
@media (max-width: 480px) {
	#sample_preview_images > div {
		width: calc(33.333% - 4px) !important;
		min-width: 60px !important;
		display: inline-block !important;
		vertical-align: top !important;
		box-sizing: border-box !important;
		margin: 1px !important;
	}
	
	#sample_preview_images {
		text-align: center !important;
	}
}

/* より小さいスマホ対応 - プレビュー3列表示を強制 */
@media (max-width: 360px) {
	#sample_preview_images > div {
		width: calc(33.333% - 2px) !important;
		min-width: 50px !important;
		margin: 0.5px !important;
	}
}

/* スピナーアニメーション */
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* ローディング画面のスタイル */
#loadingOverlay {
	z-index: 9999;
}

/* 確認モーダルのスタイル */
.confirm-modal {
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.5);
	display: flex;
	justify-content: center;
	align-items: center;
}

.confirm-content {
	background: white;
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.3);
	width: 90%;
	max-width: 500px;
	overflow: hidden;
}

.confirm-header {
	background: #007bff;
	color: white;
	padding: 20px;
	text-align: center;
}

.confirm-header h3 {
	margin: 0;
	font-size: 18px;
}

.confirm-body {
	padding: 30px 20px;
	text-align: center;
}

.confirm-body p {
	margin: 0;
	font-size: 16px;
	color: #333;
}

.confirm-footer {
	display: flex;
	border-top: 1px solid #eee;
}

.confirm-btn {
	flex: 1;
	padding: 15px;
	border: none;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.confirm-ok {
	background: #007bff;
	color: white;
}

.confirm-ok:hover {
	background: #0056b3;
}

.confirm-cancel {
	background: #6c757d;
	color: white;
}

.confirm-cancel:hover {
	background: #545b62;
}

/* サンプル画像の表示を最適化 */
#sample_thumbnail {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	align-items: flex-start;
}

/* 固定枠方式のスタイル */
.fixed-frame {
	position: relative;
}

.image-frame {
	width: 100%;
	height: 120px;
	overflow: hidden;
	border: 1px solid #ddd;
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f9f9f9;
}

.image-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

#sample_thumbnail .thumbnail_item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	flex: 0 0 calc(20% - 8px);
	max-width: calc(20% - 8px);
	min-width: 120px;
}

#sample_thumbnail .thumbnail_item img {
	max-width: 100%;
	height: auto;
	border: 1px solid #ddd;
	border-radius: 5px;
	object-fit: cover;
}

/* PC対応 - 5列表示を明示的に指定 */
@media (min-width: 769px) {
	#sample_thumbnail .thumbnail_item {
		flex: 0 0 calc(20% - 8px) !important;
		max-width: calc(20% - 8px) !important;
		min-width: 120px !important;
	}
	
	#sample_thumbnail {
		gap: 10px !important;
		display: flex !important;
		flex-wrap: wrap !important;
		justify-content: center !important;
	}
}

/* タブレット対応 - 3列表示 */
@media (max-width: 768px) and (min-width: 481px) {
	#sample_thumbnail .thumbnail_item {
		flex: 0 0 calc(33.333% - 7px);
		max-width: calc(33.333% - 7px);
		min-width: 100px;
	}
	
	#sample_thumbnail {
		gap: 8px;
	}
}

/* スマホ対応 - 3列表示を固定枠方式で強制実現 */
@media (max-width: 480px) {
	#sample_thumbnail {
		display: grid !important;
		grid-template-columns: repeat(3, 1fr) !important;
		gap: 4px !important;
		padding: 0 2px !important;
		width: 100% !important;
	}
	
	#sample_thumbnail .thumbnail_item {
		width: 100% !important;
		min-width: unset !important;
		max-width: unset !important;
		flex: unset !important;
		margin: 0 !important;
		box-sizing: border-box !important;
	}
	
	.image-frame {
		height: 100px !important;
	}
	
	/* 3列グリッドを確実に維持 */
	#sample_thumbnail .thumbnail_item:nth-child(3n+1) {
		grid-column: 1 !important;
	}
	
	#sample_thumbnail .thumbnail_item:nth-child(3n+2) {
		grid-column: 2 !important;
	}
	
	#sample_thumbnail .thumbnail_item:nth-child(3n+3) {
		grid-column: 3 !important;
	}
}

/* より小さいスマホ対応 - 3列表示を確実に維持 */
@media (max-width: 360px) {
	#sample_thumbnail {
		gap: 2px !important;
		padding: 0 1px !important;
	}
	
	.image-frame {
		height: 90px !important;
	}
}

/* プロフィール画像も同様に調整 */
#profile_thumbnail {
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
}

#profile_thumbnail .thumbnail_item {
	display: inline-block;
	margin: 10px auto;
	text-align: center;
	max-width: 200px;
}

#profile_thumbnail .thumbnail_item img {
	max-width: 100%;
	height: auto;
	border: 1px solid #ddd;
	border-radius: 5px;
	object-fit: cover;
}
