:root {
	--ktx-text-color: #374151;
	--ktx-link-text-color: #ccc;
	--ktx-btn-color: #ccc;
	--ktx-step-color: #f7f6f3;
	--ktx-border-color: #e5e7eb;
}

/* 基本スタイル */
body { font-family: "LINE Seed JP_OTF", sans-serif; line-height: 1.5; background-color: #fff; margin: 0; display: flex; color: var(--ktx-text-color); animation: fadeIn 1s ease; }
.container { max-width: 1000px; margin: 0 auto; width: 90%; font-weight: 500; font-size: 1.2rem; }
.main_visual {border-radius: 20px;}
.main-content { margin-left: 250px; flex-grow: 1; }
footer { min-height: 90vh; height: auto; background-color: var(--ktx-step-color); margin-top: 100px; padding: 4rem 0; }
.manual-contact { margin-top: 60px; }

@keyframes fadeIn {
	0%, 50% { opacity: 0; }
	100% { opacity: 1; }
}

/* タイポグラフィ */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.1; margin-bottom: 0.5rem; }
h1 { font-size: 2.6rem; font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: 2.0rem; margin-top: 4.5rem; }
h3 { font-size: 1.6rem; margin-top: 1.5rem; }
h4 { font-size: 1.4rem; margin-top: 0.5rem; }

/* リンクスタイル */
.main-content  a:not(.profile a) { text-decoration: none; color: var(--ktx-text-color); border: 2px solid var(--ktx-link-text-color); display: inline-block; padding: 0 8px; transition: all 0.3s ease; margin: 0 5px; border-radius: 5px; }
.main-content a:hover:not(.profile a) { background-color: var(--ktx-text-color); border-color: var(--ktx-text-color); color: #fff; }

/* レイアウト要素 */
.inline_b { display: inline-block; }
.inline { display: inline; }
section + section { margin-top: 30px; padding-top: 10px; border-top: 1px solid var(--ktx-link-text-color); }

/* ステップリスト */
ol.step { list-style: none; counter-reset: step-counter 0; padding: 0; }
ol.step > li { counter-increment: step-counter; background: var(--ktx-step-color); border-radius: 10px; padding: 20px; margin-bottom: 20px; }
ol.step > li::before { content: "STEP "counter(step-counter)"："; font-weight: bold; font-size: 1.6rem; display: inline-block; }
ol.step ul {padding-inline-start: 30px;}


/* ノートとヒント */
div.note, .hint { padding: 20px; border-radius: 20px; border: 1px solid #eee; color: #666; font-size: 1rem; background: #fff; }
div.note p { margin: 0; }
div.note p + p { margin-top: 10px; }
span.note { font-size: 0.9rem; line-height: 1.4; display: inline-block; color: #999;}
.hint { border-radius: 10px; border-color: var(--ktx-link-text-color); font-size: 0.9rem;}
.hint ul {padding-inline-start: 20px;}
.note ul {padding-inline-start: 30px;}

/* URL入力とコピーボタン */
.url-container { display: flex; margin-bottom: 1rem; margin-top: 0.5rem; }
.url-input { flex-grow: 1; padding: 0.5rem; border: 1px solid var(--ktx-border-color); border-right: none; border-radius: 0.375rem 0 0 0.375rem; font-size: 1.2rem; outline: none; }
.copy-button { padding: 0.5rem 1rem; background-color: #f3f4f6; border: 1px solid var(--ktx-border-color); border-radius: 0 0.375rem 0.375rem 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.copy-button:hover { background-color: #e5e7eb; }

/* トースト通知 */
.toast { position: fixed; bottom: 1rem; right: 1rem; background-color: #4b5563; color: white; padding: 0.75rem 1rem; border-radius: 0.375rem; font-size: 0.875rem; display: none; }

/* リストスタイル */
.list_text li + li { margin-top: 10px; }

/* サイドバー */
#sidebar { box-sizing: border-box; width: 250px; height: 100vh; overflow-y: auto; border-right: 1px solid var(--ktx-border-color); padding: 1rem 1rem 40px 1rem; position: fixed; background-color: white; scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, 0.2) transparent; }
#sidebar::-webkit-scrollbar { width: 6px; }
#sidebar::-webkit-scrollbar-track { background: transparent; }
#sidebar::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.2); border-radius: 3px; border: 2px solid transparent; background-clip: content-box; }
#sidebar::-webkit-scrollbar-thumb:hover { background-color: rgba(0, 0, 0, 0.3); }
#sidebar h2 { font-size: 1.5rem; font-weight: bold; margin-bottom: 1rem; }
#sidebar nav { margin-bottom: 60px; }
#sidebar nav a { display: block; padding: 0.5rem; text-decoration: none; color: var(--ktx-text-color); border-radius: 0.375rem;}
#sidebar nav a:hover { background-color: var(--ktx-border-color); color: var(--ktx-text-color)!important;}
#sidebar nav a.active { background-color: var(--ktx-text-color); color: #fff; font-weight: bold;}
#sidebar nav a.active:hover { color: #fff!important;}
p.mokuji { color: var(--ktx-text-color); font-weight: 700; font-size: 1.4rem; margin: 0 0 10px 0; padding: 0 0 10px 0; border-bottom: 1px solid var(--ktx-border-color); }

/* レスポンシブデザイン */
@media (max-width:768px) {
	body { flex-direction: column; }
	#sidebar { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--ktx-border-color); }
	.main-content { margin-left: 0; padding: 1rem; }
}

.profile img {border-radius: 50%;}

.profile .info {width: calc(100% - 240px);}

.profile .name {
	font-size: 2.4rem;
}
.ttl {
	font-size: 1.3rem;
	display: block;
}

.ttl.relation {
	border-top: var(--ktx-text-color) 1px solid;
	border-bottom: var(--ktx-text-color) 1px solid;
	padding-top: 20px;
	padding-bottom: 20px;
	margin-top: 60px;
}

div.code-toolbar>.toolbar {opacity: 1;}
div.code-toolbar>.toolbar .toolbar-item .copy-to-clipboard-button {
	background: #333;
	padding: 5px 20px;
	color: #ccc;
	margin: 10px 10px 0 0;
	border: 0;
	text-transform: uppercase;
	cursor: pointer;
}
div.code-toolbar>.toolbar .toolbar-item .copy-to-clipboard-button:hover {
	background: #fa1943;
	color: #fff;
}

div.code-toolbar>.toolbar .toolbar-item .copy-to-clipboard-button[data-copy-state="copy-success"] {
	background: #fa1943;
	color: #fff;
}

div.code-toolbar>.toolbar>.toolbar-item>a, div.code-toolbar>.toolbar>.toolbar-item>button, div.code-toolbar>.toolbar>.toolbar-item>span {
	box-shadow: 0!important;
}

ol.link, ul.link {
	list-style: none;
	color: #666;
	padding-inline-start: 0;
	font-size: 1.0rem;
}
ol.link:hover, ul.link:hover {
	color: #333;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}
.close {
    position: absolute;
    top: 15px;
    right: 35px;
	padding: 0;
	border: 0;
	background: transparent;
    color: #f1f1f1;
    font-size: 40px;
	line-height: 1;
    font-weight: bold;
    transition: 0.3s;
	cursor: pointer;
}
.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

img.popup {
	cursor: pointer;
}
img.popup:hover {
	opacity: 0.7;
}
.loupe_box {
	position: relative;
}
img.loupe {
	position: absolute;
	width: 30px;
	right: 10px;
	top: 15px;
}
.text_icon {
	display: inline-block;
	vertical-align: middle;
}
