@charset "UTF-8";

/* CSS リセット */
html, body,
header, footer, hgroup,
section, article, nav, aside, details, figure, figcaption,
div, span,
a, b, i, u, s,
address, blockquote, q, ins, del, sub, sup, em, strong, abbr, cite, dfn, code, samp, var, mark, data,
h1, h2, h3, h4, h5, h6,
p, ol, ul, li, dl, dt, dd, pre,
bdo, bdi,
ruby, rt, rp,
fieldset, legend, label,
table, thead, tbody, tfoot, tr, th, td, caption, colgroup, col,
img, audio, video, source, track,
form, summary,
iframe
{
	margin: 0;
	padding: 0;
}

*, *:before, *:after
{
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-o-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
}

table
{
	border-collapse: collapse;
}

img
{
	vertical-align: top;
	font-size: 0;
	line-height: 0;
	border: none;
}

img.size
{
	width: 100%;
}

img.size90
{
	width: 90%;
}

a
{
	color: #000000;
	text-decoration: none;
}

a:hover
{
	color: #e60012;
	text-decoration: no-decoration;
}


a:hover img
{
	/*opacity: 0.8;*/
	filter:alpha(opacity=90);
	-moz-opacity: 0.9;
	opacity: 0.9;
}

ol, ul
{
	list-style: none;
}

/* 基本エリア */
html
{
	height: 100%;
}

body
{
	height: 100%;
	margin: 0% 0% 0% 0%;
	font-family: "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, sans-serif;
	font-size: 16pt;
	color: #1b0e06;
	text-align: center;
}

body::before
{
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url(../image/bg.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 1.0;
	z-index: -1;
	pointer-events: none;
	background-color: #1b0e06;
}


.clearfix:after
{
	content: "";
	clear: both;
	display: block;
}

.clear
{
	clear: both;
	font-size: 1px;
	height: 1px;
}

/* フッター */
footer.block_footer
{
	width: 100%;
	padding: 10px 0;
	background-color: #53160b;
	color: #ffffff;
	font-size: 12pt;
	position: fixed;
	bottom: 0;
	left: 0;
	z-index: 100;
}

div.top_tel
{
	font-size: 12pt;
}

div.top_tel a
{
	color: #ffffff;
	text-decoration: none;
}

/* 入力しても良いのココから -------------------------- */
div.all_block
{
	width: 100%;
	max-width: 800px;
	padding: 0% 0% 100px 0%;
	margin: 0px auto 0px auto;
}

.fixed-left-img,
.fixed-right-img
{
    position: fixed;
    bottom: 45px;
    width: 200px;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

/* 左下配置 */
.fixed-left-img
{
	left: 0;
}

/* 右下配置 */
.fixed-right-img
{
	right: 0;
}

/* ▼ レスポンシブ対応 ▼ */

/* 画面幅が768px以下（タブレット・スマホ）の場合 */
@media screen and (max-width: 768px) {
	.fixed-left-img,
	.fixed-right-img
	{
		width: 150px; /* 少し小さくする */
	}
}

/* 画面幅が480px以下（スマホ）の場合 */
@media screen and (max-width: 480px) {
	.fixed-left-img,
	.fixed-right-img
	{
		width: 140px; /* さらに小さくする */
	}
}

/* 画面幅が380px以下（スマホ）の場合 */
@media screen and (max-width: 380px) {
	.fixed-right-img
	{
		display: none;
	}
}

div.flowchart_block
{
	width: 100%;
	max-width: 1200px;
	padding: 0% 0% 5% 0%;
	margin: 0px auto 0px auto;
}

div.header
{
	width: 100%;
	max-width: 1200px;
	padding: 0% 0% 0% 0%;
	margin: 0% auto 0% auto;
}

div.logo
{
	width: 90%;
	max-width: 700px;
	min-width: 300px;
	padding: 3% 0% 0% 0%;
	margin: 0% auto 0% auto;
}

div.header_text
{
	width: 100%;
	padding: 10px 0px 10px 0px;
	margin: 0% auto 2% auto;
	text-align: center;
	color: #ffffff;
	font-size: 12pt;
	font-weight: normal;
	background-color: #4caf50;
}


/* フロント画面 ---------- */

div.diagnosis_area
{
	width: 96%;
	max-width: 800px;
	padding: 0px 0px 100px 0px;
	margin: 0px auto 0px auto;
}

/* バーの基礎 */
.progress-container
{
	width: 80%;
	margin: 0px auto 0px auto;
	background-color: #dddddd;
	border-radius: 10px;
	height: 25px;
	position: relative;
	border: 4px solid #ffffff;
}

/* バーの進捗 */
.progress-bar-text
{
	display: inline-block;
	background-color: #8578b5;
	color: #ffffff;
	font-weight: bold;
	font-size: 18px;
	padding: 10px 20px;
	border-radius: 20px;
	position: relative;
	margin: 20px auto;
	text-align: center;
	box-shadow: 0 0 0 4px #ffffff;
	transform: translateX(70%); /* 表示位置の調節 */
}

/* 白い縁線用の三角形（背景側） */
.progress-bar-text::before
{
	content: "";
	position: absolute;
	bottom: -25px;  /* 吹き出しの下に配置 */
	left: 26px;
	width: 0;
	height: 0;
	border: 12px solid transparent;
	border-top-color: #ffffff;
	z-index: 0;
}

/* 紫色の三角形（前面） */
.progress-bar-text::after
{
	content: "";
	position: absolute;
	bottom: -15px;
	left: 28px;
	width: 0;
	height: 0;
	border: 10px solid transparent;
	border-top-color: #8578b5;
	z-index: 1;
}

.progress-bar
{
	background-color: #8578b5;
	height: 100%;
	border-radius: 10px;
	transition: width 0.3s ease;
}

div.question_text
{
	width: 96%;
	padding: 10% 0 3% 0;
	margin: 0 auto;
	font-size: min(18pt, 8vw); /* 最大18pt、ブラウザ幅が小さくなると縮小 */
	color: #4e342e;
	font-weight: bold;
	text-align: center;
	white-space: nowrap; /* 改行を防ぐ */
}

div.question_choices
{
	width: 96%;
	padding: 1% 0% 0% 0%;
	margin: 0px auto 0px auto;
	text-align: center;
	display: flex; /* 子要素を横並びに */
	justify-content: center; /* 中央揃え（任意） */
}

.progress-dot
{
	position: absolute;
	top: calc(50% - 3px); /* 中央から3px上に表示 */
	transform: translate(-50%, -50%);
	width: 40px;
	height: 38px;
	background: url('../image/bar_point.png') no-repeat center center;
	background-size: contain;
	border-radius: 0; /* 丸は解除 */
	border: none;     /* 枠線を削除 */
	z-index: 2;
	box-shadow: none; /* シャドウを削除 */
	transition: left 0.3s ease;
}

.genre-answer-button
{
	display: inline-block;
	z-index: 100;
	background-color: #a1887f;
	color: white;
	font-size: 16px;
	font-weight: bold;
	border: none;
	border-radius: 50%;
	width: 120px;
	height: 120px;
	margin: 20px;
	text-align: center;
	line-height: 120px;
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.3s ease;
	white-space: nowrap;
	overflow: visible;
	text-overflow: clip;
}

.genre-answer-button:hover
{
	background-color: #8d6e63;
	transform: scale(1.05);
}

div.genre-reset-button-area
{
	width: 94%;
	padding: 10px 0px 10px 0px;
	margin: 0% auto 0% auto;
	text-align: right;
}

.genre-reset-button
{
	z-index: 100;
	padding: 17px 20px 15px 20px;
	font-size: 16px;
	background-color: #3c3c3c;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}

.genre-reset-button:hover
{
    background-color: #333333;
    opacity: 1;
}

.genre-result
{

	width: 94%;
	padding: 6% 0% 0% 0%;
	margin: 0% auto 0% auto;
	font-size: 16pt;
	line-height: 220%;
	font-weight: bold;
	color: #3c3c3c;
	text-align: center;
}

span.genre-result-text
{
	font-size: 28pt;
	color: #1b0e06;
	font-weight: bold;
	position: relative;
	display: inline-block;
	z-index: 0; /* テキストは上に */
}

span.genre-result-text::before
{
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 5px;           /* 文字の下端に合わせる */
	height: 0.4em;       /* 線の太さ */
	background-color: #ede2e2;
	border-radius: 2px;  /* 角丸 */
	z-index: -1;         /* テキストより下に */
}

div.genre-question-area
{
	width: 94%;
	aspect-ratio: 100 / 56;  /* 横:縦 = 100:56 */
	margin: 7% auto 0% auto;
	text-align: left;
	background-color: none;
	background-image: url(../image/book_bg.png);
	background-size: contain;
	background-position: top;
	background-repeat: no-repeat;
}

.genre-question-bubble
{
	display: inline-block;
	background-color: #4e342e;
	color: #ffffff;
	font-weight: bold;
	font-size: 14pt;
	padding: 10px 10px 0px 10px;
	border-radius: 0; /* 四角 */
	position: relative;
	top: -20px;
	text-align: center;
	z-index: 1;
	overflow: visible;
	transform: translateX(240%); /* 表示位置 */
	box-shadow: 0 0 0 4px #ffffff;
}

span.genre-question-bubble-result
{
	font-size: 12pt;
}

/* 左下の「レ」 */
.genre-question-bubble::before
{
	content: "";
	position: absolute;
	bottom: -30px;
	left: 0;
	width: 0;
	height: 0;
	border-left: 0 solid transparent;
	border-right: 30px solid transparent;
	border-top: 30px solid #4e342e;
}

/* 右下の「レの逆」 */
.genre-question-bubble::after
{
	content: "";
	position: absolute;
	bottom: -30px;
	right: 0;
	width: 0;
	height: 0;
	border-right: 0 solid transparent;
	border-left: 30px solid transparent;
	border-top: 30px solid #4e342e;
}

/* 診断結果の商品を見るボタン */
div.genre-recommend-area
{
	margin: 0px 0px 0px 0px;
	padding: 4% 0% 0% 0%;
}

.arrow-down
{
	width: 0;
	height: 0;
	border-left: 30px solid transparent;
	border-right: 30px solid transparent;
	border-top: 20px solid #1b0e06; /* ▼ の色 */
	margin: 20px auto 0px auto; /* 中央寄せ */
}

.genre-recommend-link
{
	display: inline-block;
	padding: 20px 15px;
	color: #fff;
	font-size: 14pt;
	font-weight: bold;
	border-radius: 10px;
	line-height: 120%;
	background-color: #4e342e;
	text-decoration: none;
}

.genre-recommend-link:hover
{
	color: #ffffff;
	background-color: #4e342e;
}

@media (max-width: 480px) {
    .progress-dot { width: 45px; height: 45px; }
}




/* 管理画面 ------------- */

div.flowchart_management_area
{
	padding: 20px 20px 20px 20px;
	margin: 30px 0px 0px 0px;
	background-color: #ffffff;
	border-radius: 10px;
}

.node
{
	padding: 20px 20px;
	background-color: #f5f3ff;
}

.accordion-toggle
{
	display: flex;
	align-items: center;
	gap: 6px; flex-wrap: wrap;
	margin-bottom: 10px;
}

.accordion-content
{
	display: block;
	margin-left: 10px;
}
.options
{
	margin-top: 10px;
}

.option
{
	border-left: 10px solid #a2d2ff;
	background-color: #ffffff;
	padding: 10px 15px;
	margin-bottom: 10px;
}

.question-wrapper,
.option-wrapper
{
	display: flex;
	align-items: center;
	gap: 6px; flex-wrap: wrap;
}

input.question, input.label, input.result, input.category
{
	height: 45px;
	line-height: 100%;
	font-size: 14px;
}

input.question
{
	width: 417px;
	background: #6a5acd;
	color: white;
	border: none;
	padding: 0px 10px 0px 10px;
}

input.label
{
	width: 70px;
	background: #2196f3;
	color: white;
	border: none;
	padding: 0px 10px 0px 10px;
}

input.result
{
	width: 100px;
	background: #ff9800;
	color: white;
	border: none;
	padding: 0px 10px 0px 10px;
}

input.category
{
	width: 200px;
	background: #ffb634;
	color: white;
	border: none;
	padding: 0px 10px 0px 10px;
}

button.add-option, button.toggle-accordion, button.delete-node, button.add-next, button.move-up, button.move-down, button.delete-option
{
	padding: 0px 15px 0px 15px;
	border-radius: 4px;
	border: none;
	background: #666666;
	color: white;
	cursor: pointer;
	min-width: 40px;
	height: 45px;
}

button.delete-option, button.delete-node
{
	background: #3c3c3c;
}

button.add-next
{
	background: #666666;
}

button.add-option
{
	background: #666666;
}

button.toggle-accordion
{
	padding: 0px 0px 0px 0px;
	background: #4c4298;
}

button.move-up, button.move-down
{
	background: #666666;
}

button:hover
{
	opacity: 0.85;
}

.message
{
	color: green;
}

.error
{
	color: red;
}

/* 保存ボタン・右下固定に変更 */
.fixed-buttons {
	position: fixed;
	bottom: 60px;   /* ここが重要 */
	right: 30px;    /* 右下に配置 */
	display: flex;
	gap: 10px;
	z-index: 10;
}

#saveButton,
#backupButton {
	background: #4caf50;
	color: white;
	border: none;
	border-radius: 6px;
	padding: 22px 30px;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 100px;
	height: 45px;
}

#backupButton {
	background: #2196f3;
}

/* 保存ポップアップ */
#popupMessage
{
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #e60012;
	color: white;
	padding: 20px 50px;
	font-size: 18px;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0,0,0,0.3);
	display: none;
	z-index: 2000;
}


/* 結果ログ ---------------------------------------- */

div.log_area
{
	width: 80%;
	max-width: 600px;
	margin: 3% auto 0% auto;
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	
	background: #ffffff;
	padding: 40px 0px 35px 0px;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(76, 66, 152, 0.2);
}

.date-picker-label
{
	display: inline-block;
	background: #ffffff;
	border: 2px solid #f4f4f4;
	padding: 14px 26px 8px 26px;
	cursor: pointer;
	border-radius: 5px;
	margin: 0% 0% 10px 0%;
	border: 1px solid #4caf50;
}

.date-picker-label input[type="date"]
{
	border: none;
	background: transparent;
	font-size: 18pt;
	color: #3c3c3c;
	cursor: pointer;
}

button.log_button
{
	margin: 0% 0% 1% 0%;
	padding: 10px 36px 8px 36px;
	color: #ffffff;
	font-weight :normal;
	font-size: 12pt;
	border:none;
	border-radius: 5px;
	background-color: #4caf50;
}

div.log_area input[type="text"],
button.log_execution_button,
button.log_reset_button {
	height: 60px;              /* 高さを固定で揃える */
	box-sizing: border-box;   /* paddingの影響を排除 */
	font-size: 12pt;
	border-radius: 10px;
}

div.log_area input[type="text"]
{
	appearance: none;
	width: 22%;
	min-width: 276px;
	padding: 0 10px;
	text-align: center;
	border: 1px solid #4c4298;
	background-color: #fff;
	color: #000000;
}

div.log_keyword
{
	margin: 20px 0px 0px 0px;
}

button.log_execution_button
{
	padding: 0 36px; /* 上下paddingを0にすることで高さを固定に */
	color: #ffffff;
	font-weight: normal;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}

button.log_reset_button
{
	padding: 0 20px; /* 上下paddingを0にすることで高さを固定に */
	color: #ffffff;
	font-weight: normal;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}

button.log_execution_button
{
	background-color: #4c4298;
}

button.log_reset_button
{
	background-color: #3c3c3c;
}

/* 一覧表示 */

table.log_table
{
	width: 96%;
	max-width: 600px;
	margin: 3% auto 3% auto;
	padding: 0% 0% 0% 0%;
	border: 1px solid #dddddd;
}

th.log_th
{
	padding: 10px 0px 10px 0px;
	font-size: 12pt;
	color: #ffffff;
	border: 1px solid #211d61;
	background-color: #4c4298;
}

td.log_word
{
	width: 80%;
	padding: 10px 10px 10px 15px;
	font-size: 12pt;
	text-align: left;
	background-color: #ffffff;
	border: 1px solid #dddddd;
}

td.log_count
{
	width: 20%;
	min-width: 80px;
	padding: 10px 0px 10px 0px;
	font-size: 12pt;
	text-align: center;
	background-color: #ffffff;
	border: 1px solid #dddddd;
}

td.log_error
{
	width: 100%;
	padding: 10px 10px 10px 15px;
	font-size: 12pt;
	text-align: left;
	color: #e60012;
	border: 1px solid #dddddd;
}























/* ハンバーガーメニュー ----- */

.hamburger-checkbox {
display: none;
}

.hamburger-label
{
	position: fixed;
	top: 2%;
	right: 5%;
	z-index: 100;
	cursor: pointer;
}

.hamburger-menu
{
	width: 60px;
	height: 60px;
	background: #4c4298;
	border-radius: 50%;
	transition: 0.5s ease-in-out;
	box-shadow: 0 0 0 0 #4c4298, 0 0 0 0 #4c4298;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 三本線・長さとか */
.hamburger-icon
{
	position: relative;
	width: 30px;
	height: 2px;
	background: #ffffff;
	display: block;
	transition: 0.5s ease-in-out;
}

.hamburger-icon::before,
.hamburger-icon::after {
content: "";
position: absolute;
width: 100%;
height: 100%;
background: #ffffff;
transition: 0.5s ease-in-out;
}

.hamburger-icon::before {
top: -10px;
right: 0px;
}

.hamburger-icon::after {
bottom: -10px;
	right: 0px;
}

/* チェック時のアイコン変化 */
.hamburger-checkbox:checked + .hamburger-label .hamburger-menu {
	box-shadow: 0 0 0 100vw #4c4298, 0 0 0 100vh #4c4298;
	border-radius: 0;
}

.hamburger-checkbox:checked + .hamburger-label .hamburger-icon {
	transform: rotate(45deg);
}

.hamburger-checkbox:checked + .hamburger-label .hamburger-icon::before {
	transform: rotate(90deg);
	top: 0;
}

.hamburger-checkbox:checked + .hamburger-label .hamburger-icon::after {
	transform: rotate(90deg);
	bottom: 0;
}

/* メニュー本体 */
.hamburger-list
{
	z-index: 200;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80%;
	max-width: 400px;
	padding: 0;
	margin: 0;
	list-style: none;
	text-align: center;
	opacity: 0;
	pointer-events: none; /* 非表示中はクリックできない */
	transition: 0.25s ease-in-out;
}

.hamburger-checkbox:checked ~ .hamburger-list
{
	opacity: 1;
	pointer-events: auto; /* 表示時はクリック可能 */
}

.hamburger-list a {
	display: block;
	padding: 20px;
	color: #ffffff;
	text-decoration: none;
	font-size: 14pt;
	border-bottom: 1px solid #ffffff;
	position: relative;
}

/* ログアウトの下にスペースを追加する */
.hamburger-list .spaced-link
{
	margin-top: 30px;
	background-color: #ffffff;
	border: 0px solid #ffffff;
}

/* 現在のページリンクは太字＆無効化 */
.hamburger-list a.current {
	color: #ffffc9;
	font-weight: bold;
	background-color: #302778;
	cursor: default;
}

/* ホバー時キャラクター画像表示 */
.hamburger-list a:not(.current):hover::after {
	content: "";
	position: absolute;
	right: 0px;
	top: 65%;
	transform: translateY(-50%);
	width: 50px;
	height: 45px;
	background-image: url('../image/buruburu.png');
	background-size: contain;
	background-repeat: no-repeat;
}

/* 現在のページリンクは太字＆無効化 */
.hamburger-list a.current
{
	color: #ffffc9;
	font-weight: bold;
	background-color: #302778;
}

/* 他のリンクにホバー時キャラクター表示 */
.hamburger-list a:not(.current):hover::after
{
	content: "";
	position: absolute;
	right: 0px;
	top: 65%;
	transform: translateY(-50%);
	width: 50px;
	height: 45px;
	background-image: url('../image/buruburu.png');
	background-size: contain;
	background-repeat: no-repeat;
}

/* //----- ハンバーガーメニュー */

/* ログイン */
div.login_area
{
	width: 30%;
	min-width: 300px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

div.error_messsage
{
	margin: 10% auto 10% auto;
	padding: 20px 15px 20px 15px;
	color: #e61200;
	font-size: 14pt;
	background-color: #ffffff;
}

div.login_form
{
	float: left;
	width: 49%;
	margin: 0% auto 0% auto;
	padding: 0% 0% 0% 0%;
}

.login_form input[type="password"]
{
	appearance: none;
	width: 100%;
	padding: 15px 10px;
	border: 1px solid #4c4298;
	border-radius: 15px;
	background-color: #fff;
	color: #000000;
	font-size: 1em;
	cursor: pointer;
	text-align: center;
	box-sizing: border-box; /* 追加 */
	height: 70px;            /* 追加 */
}

div.login_button
{
	float: right;
	width: 49%;
	margin: 0% auto 0% auto;
	padding: 0% 0% 0% 0%;
}

.login_button button
{
	width: 100%;
	margin: 0 auto;
	padding: 15px 10px;      /* input と揃える */
	color: #ffffff;
	font-size: 14pt;          /* input と揃える */
	font-weight: bold;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	background-color: #4c4298;
	box-sizing: border-box; /* 追加 */
	height: 70px;            /* 追加 */
}

.login_button button:hover
{
	opacity: 1;
}

/* パソコンとスマホで画像やテキストを切り替える */
/* スマホ限定の改行コード -------------------------------- */
@media screen and (min-width:600px){
    .brsp {display:none;}
}

.pc{
	display: block !important;
}

.sp{
	display: none !important;
}