@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;600&family=Noto+Serif+JP:wght@400;600&display=swap');


/* --------------------------------------------
temlplate by pipi
https://pipi.noor.jp/t/
release date: 2024-08-24
update date: 2025-07-04
-------------------------------------------- */

:root {
	--main-font-family: "Noto Sans JP", "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Segoe UI", "Meiryo", sans-serif;

	/* コンテンツの最大横幅設定 */
	--main-width: 800px;
	/* 600～800pxくらいがオススメです。 */

	--padding: 0.3em 0.8em 0.4em;
	--radius: 15px;
	--red: #c00;
	--margin-between: 5px;
}

/* 元のreset css
*,*::before,*::after{box-sizing:border-box}*{margin:0}*/
*,
*::before,
*::after {
	box-sizing: border-box
}

* {
	margin: 0
}

body {
	font-feature-settings: "palt" 1;
	overflow-wrap: anywhere;
	word-break: normal;
	line-break: strict;
	text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%
}

picture,
video,
canvas {
	display: block;
	max-width: 100%
}

input,
button,
textarea,
select {
	font: inherit
}

img {
	max-width: 100%;
	height: auto
}

nav ul {
	list-style-type: none;
	padding: 0
}

:where(:any-link) {
	color: currentColor;
	text-decoration-skip-ink: auto;
	text-decoration-color: color-mix(in srgb, currentcolor 30%, transparent);
	text-underline-offset: 0.2em
}

summary,
button {
	cursor: pointer
}

em {
	font-style: normal
}

html {
	font-size: 100%;
	scroll-behavior: smooth;
}

body {
	accent-color: var(--accent);
	background: var(--main-bg-design);
	color: var(--text-color);
	font-family: var(--main-font-family);
	font-feature-settings: "palt" 1;
	font-weight: 400;
	letter-spacing: 1px;
	line-break: normal;
	line-height: 1.8;
	margin: 0 3vw;
	word-break: break-word;
}

body.grandhome .hidden,
body.mode-picts .hidden {
	display: none;
}


/* textlevel -------------------------------------------- */
a {
	font-weight: bold;
	text-decoration: none;
}

a:hover {
	color: var(--accent);
}

a:hover img,
a:hover svg {
	opacity: 0.7;
}

em {
	background-image: linear-gradient(rgba(0, 0, 0, 0) 50%, color-mix(in srgb, var(--accent) 40%, transparent) 50%);
	font-weight: bold;
	margin: 0 0.2em;
	padding: 0 0.2em;
}

strong {
	font-weight: bold;
}

.text-red {
	color: var(--red);
	font-weight: bold;
}

.large {
	font-size: 1.2rem;
	font-weight: bold;
}

.large2x {
	font-size: 2rem;
	font-weight: bold;
}

.decorationM {
	padding: 0 0.2em;
}

small.decorationS,
.small {
	font-size: 0.85rem;
}

small.decorationT {
	font-size: 0.7rem;
}

.comment a,
.calendar a {
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, currentcolor 40%, transparent);
}

.comment a.readmorebutton,
.comment a.uc-btn,
aside .cattree a {
	background-color: var(--text-color);
	color: var(--sub-bg-color);
	display: inline-block;
	font-size: 0.9rem;
	margin: 0 0 5px 0;
	padding: 0.1em 0.6em 0.2em;
	text-decoration: none;
	transition: background-color 0.2s ease-in-out;
}

.comment a.readmorebutton:hover,
.comment a.uc-btn:hover,
aside .cattree a:hover {
	background-color: var(--accent);
}

.comment a:not(.cardlink)[target~="_blank"]::after {
	content: " \f35d";
	font-family: 'Line Awesome Free';
	font-weight: 900;
}

.comment a.readmoreclose {
	background-color: transparent;
	border-top: 1px solid color-mix(in srgb, var(--text-color) 20%, transparent);
	color: color-mix(in srgb, var(--text-color) 50%, transparent);
	display: block;
	font-size: 0.8em;
	margin: 2rem 0;
	text-align: right;
}

.comment a.readmoreclose:hover {
	background-color: transparent;
}

q.decorationQ {
	background-color: color-mix(in srgb, var(--text-color) 15%, transparent);
	display: block;
	font-size: 0.9rem;
	margin: 0.5em 0;
	padding: 1em 2em;
	position: relative;
}

q.decorationQ::before {
	color: color-mix(in srgb, var(--text-color) 60%, transparent);
	content: "\f10d";
	font-family: 'Line Awesome Free';
	font-weight: 900;
	left: 6px;
	position: absolute;
	top: 0;
}

q.decorationQ::after {
	bottom: 0;
	color: color-mix(in srgb, var(--text-color) 60%, transparent);
	content: "\f10e";
	font-family: 'Line Awesome Free';
	font-weight: 900;
	position: absolute;
	right: 6px;
}

code {
	background-color: color-mix(in srgb, var(--text-color) 20%, transparent);
	border-radius: 5px;
	font-size: 0.9em;
	padding: 0.2em 0.5em;
}


/* heading -------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
	line-height: 1.3em;
	margin: 2em 0 0.5em;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
	margin-top: 0;
}


/* grouping -------------------------------------------- */
hr {
	border: none;
	border-bottom: 1px dashed color-mix(in srgb, var(--text-color) 50%, transparent);
	margin: 1.8em 0;
}

p,
ul,
ol,
dl {
	margin-bottom: 1.8em;
}

p:last-child {
	margin-bottom: 0;
}

nav ul {
	list-style: none;
	padding: 0;
	margin-bottom: 0;
}

ul.decorationL {
	list-style-type: disc;
	padding-left: 1.5rem;
	list-style-position: outside;
	margin: 0.5em 0;
}

.right_block {
	text-align: right;
}

/* embeds -------------------------------------------- */
img {
	height: auto;
	max-width: 100%;
	object-fit: cover;
	object-position: top center;
	transition: opacity 0.1s ease-in-out;
	vertical-align: bottom;
}

.comment img.emoji {
	height: 1em;
	margin: 0 3px 3px;
	vertical-align: middle;
	width: 1em;
}

svg {
	fill: currentColor;
	height: auto;
	max-width: 100%;
	vertical-align: bottom;
}

.svg-symbol {
	display: none;
}

picture,
video,
canvas {
	display: block;
	max-width: 100%;
}

iframe.embeddedmovie {
	max-width: 100%;
}

/*-- 記事内の画像関連 --*/
a.imagelink {
	line-height: 1;
	vertical-align: bottom;
}

a.imagelink.nsfw,
a[data-flag*="nsfw"],
a:has(> img.nsfw) {
	background-color: color-mix(in srgb, var(--text-color) 30%, transparent);
	overflow: hidden;
	position: relative;
	text-decoration: none;
}

a.imagelink.nsfw::before,
a[data-flag*="nsfw"]::before,
:has(> img.nsfw)::before {
	color: #fff;
	content: '画像を見る';
	font-size: 0.85rem;
	left: calc(50% - 2.5em);
	line-height: 1;
	position: absolute;
	top: calc(50% - 0.5em);
	z-index: 500;
}

.comment a.nsfw {
	display: inline-block;
	margin: 5px 0;
	width: 50%;
}

.comment small img.embeddedimage {
	width: 50%;
}

.comment img {
	margin: 5px 0;
	width: auto;
}

img.nsfw,
.thumbnails a[data-flag*="nsfw"] img {
	filter: blur(10px);
	opacity: 0.5;
}

.comment a.imagelink.nsfw img {
	margin: 0 0;
}

/*-- figure --*/
figure {
	margin: 5px 0;
	position: relative;
	vertical-align: top;
}

figure.nsfw {
	width: 50%;
}

.comment figure.nsfw a.nsfw {
	width: 100%;
	margin: 0 0;
}

.comment figure img {
	margin: 0 0;
}

figcaption {
	background-color: #0008;
	color: #fff;
	font-size: 0.8rem;
	line-height: 1.5;
	padding: 0.2em 0.5em;
	position: absolute;
	left: 0px;
	bottom: 0px;
}

.comment small figure {
	width: 50%;

	img.embeddedimage {
		width: 100%;
	}
}

/*-- リストで囲んだ画像 --*/
ul.listdeco-img {
	display: grid;
	gap: 5px;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	list-style-type: none;
	padding-left: 0;
}

ul.listdeco-img img {
	aspect-ratio: 1/1;
	margin: 0 0;
	width: 100%;
}

ul.listdeco-img a.nsfw,
ul.listdeco-img figure {
	margin: 0 0;
	width: 100%;
}

ul.listdeco-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}


/* table -------------------------------------------- */
table {
	border-collapse: collapse;
	border-top: 1px solid color-mix(in srgb, var(--text-color) 30%, transparent);
	margin-bottom: 1em;
	text-align: left;
	width: 100%;
}

th,
td {
	border-bottom: 1px solid color-mix(in srgb, var(--text-color) 30%, transparent);
	padding: var(--padding);
	vertical-align: top;
}

th {
	background: color-mix(in srgb, var(--text-color) 10%, transparent);
	font-weight: bold;
}


/* details -------------------------------------------- */
article {
	details {
		background: color-mix(in srgb, var(--text-color) 20%, transparent);
		border-radius: 5px;
		margin: 1em 0;
		padding: var(--padding);
	}

	summary {
		font-weight: bold;
	}

	details[open] summary {
		margin-bottom: 0.5em;
	}

	details:last-child {
		margin-bottom: 0;
	}
}


/* form -------------------------------------------- */
select,
input.queryinput,
input.passkeyinput {
	border: 1px solid var(--text-color);
	background-color: var(--sub-bg-color);
	color: var(--text-color);
	vertical-align: bottom;
	height: 2rem;
}

input[type="submit"],
input.passkeysubmit,
input[type="button"],
.postarea input[type="text"] {
	border: none;
	background-color: var(--text-color);
	color: var(--sub-bg-color);
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: bold;
	height: 2rem;
	letter-spacing: 2px;
	padding: 0 0.5rem 0 0.6rem;
	vertical-align: bottom;
}

input[type="checkbox"],
input[type="radio"] {
	margin-right: 0.3em;
	vertical-align: middle;
}

article {
	input.passkeyinput {
		width: calc(100% - 7rem);
	}

	input.passkeysubmit {
		letter-spacing: 1px;
		padding: 0 0 2px;
		width: 7rem;
	}
}

details.postarea {
	background-color: color-mix(in srgb, var(--accent) 25%, transparent);
	margin: -5px 0 0;
	padding: 0;
	z-index: 1000;

	summary {
		margin-bottom: 0;
		padding: 2% 5%;
	}

	form.postform {
		padding: 0 5%;
	}

	input[type="text"] {
		cursor: text;
		font-weight: normal;
	}

	p {
		margin-bottom: 0;
	}

	textarea.tegalogpost {
		background-color: var(--sub-bg-color);
		border: none;
		color: var(--text-color);
		font-size: 16px;
		/* iOS zoom対策 */
		display: block;
		min-height: 10rem;
		padding: 0.2em 0.6em;
		resize: vertical;
		width: 100%;
	}

	.submitcover {
		display: block;
		text-align: right;
	}

	input.postbutton {
		background-color: var(--accent);
		font-size: 1rem;
		width: 50%;
	}

	.line-control {
		font-size: 0.9rem;
		padding-bottom: 0.5rem;
	}

	.decoBtns {
		display: block;
	}

	input[type="button"] {
		font-weight: normal;
		letter-spacing: 1px;
		margin: 0 5px 5px 0;
		vertical-align: middle;
	}

	input[type="file"] {
		border: 1px solid var(--text-color);
		vertical-align: middle;
		margin: 0 5px 5px 0;
		height: 2rem;
	}

	::file-selector-button {
		background-color: var(--text-color);
		border: none;
		color: var(--sub-bg-color);
		cursor: pointer;
		height: 2rem;
		margin-right: 0.7em;
		padding: 0.4em 0.6em;
		text-box-edge: cap alphabetic;
		text-box-trim: trim-both;
		transition: background-color 0.3s ease-in-out;
	}

	select {
		margin-bottom: 5px;
		width: unset;
	}

	label {
		display: inline-block;
		padding: 0 1em 5px 0;
		vertical-align: middle;
		line-height: 1.8;
	}

	.funcUIs label {
		padding: 0 5px 5px 0;
	}

	.funcUIs .catChecks,
	.funcUIs>input:first-child {
		margin-right: 1em;
	}

	.right_block {
		padding: 0 5% 3.5%;
	}

	.right_block p {
		border-top: 1px solid color-mix(in srgb, var(--text-color) 20%, transparent);
	}
}



/* ------------
layout
------------ */


/* header -------------------------------------------- */
header {
	background-color: color-mix(in srgb, var(--sub-bg-color) 50%, transparent);
	border-radius: var(--radius) var(--radius) 0 0;
	margin: 2rem auto var(--margin-between);
	max-width: var(--main-width);
	text-align: center;
}

header .headervisual {
	background: var(--header-bg-design);
	border-radius: var(--radius) var(--radius) 0 0;

	display: flex;
	flex-direction: column;

	justify-content: flex-end;

	min-height: 45vh;

	padding: 3rem 2rem 10vh;
}

header .headervisual a {
	padding: 0 0.5em 0.1em;
	transition: all 0.3s ease-in-out;
}

header .headervisual a:hover {
	color: var(--accent);
	filter: drop-shadow(0px 0px 5px var(--sub-bg-color));
}

header h1 {
	font-size: 2.5rem;
	line-height: 1.3;
	margin-bottom: 0.2em;
}

header p {
	font-size: 0.8rem;
}

header .category a,
header .category ul.cattree {
	display: inline-block;
	vertical-align: bottom;
}

header .category ul.cattree li {
	display: inline-block;
}

header .category a {
	border-bottom: 4px solid transparent;
	padding: 0.6em 1em;
	transition: all 0.3s ease-in-out;
}

header .category a:hover {
	color: var(--text-color);
	background-color: color-mix(in srgb, currentColor 20%, transparent);
	border-bottom: 4px solid color-mix(in srgb, var(--text-color) 20%, transparent);
}

body.mode-picts header .category a[href*="mode=picts"],
body.cat-about header .category a[href*="cat=about"],
body.cat-backnumber header .category a[href*="cat=backnumber"],
body.cat-books header .category a[href*="cat=books"],
body.cat-characters header .category a[href*="cat=characters"],
body.cat-comic header .category a[href*="cat=comic"],
body.cat-concept header .category a[href*="cat=concept"],
body.cat-diary header .category a[href*="cat=diary"],
body.cat-download header .category a[href*="cat=download"],
body.cat-event header .category a[href*="cat=event"],
body.cat-faq header .category a[href*="cat=faq"],
body.cat-game header .category a[href*="cat=game"],
body.cat-goods header .category a[href*="cat=goods"],
body.cat-help header .category a[href*="cat=help"],
body.cat-impression header .category a[href*="cat=impression"],
body.cat-info header .category a[href*="cat=info"],
body.cat-introduction header .category a[href*="cat=introduction"],
body.cat-links header .category a[href*="cat=links"],
body.cat-log header .category a[href*="cat=log"],
body.cat-memo header .category a[href*="cat=memo"],
body.cat-movie header .category a[href*="cat=movie"],
body.cat-music header .category a[href*="cat=music"],
body.cat-news header .category a[href*="cat=news"],
body.cat-novel header .category a[href*="cat=novel"],
body.cat-photo header .category a[href*="cat=photo"],
body.cat-planning header .category a[href*="cat=planning"],
body.cat-project header .category a[href*="cat=project"],
body.cat-repo header .category a[href*="cat=repo"],
body.cat-special header .category a[href*="cat=special"],
body.cat-stockroom header .category a[href*="cat=stockroom"],
body.cat-story header .category a[href*="cat=story"],
body.cat-video header .category a[href*="cat=video"],
body.cat-world header .category a[href*="cat=world"] {
	border-bottom: 4px solid var(--accent);
	color: var(--accent);
}

header ul.depth2 a {
	font-size: 0.85rem;
}


/* togglemenu -------------------------------------------- */
.togglemenu {
	margin: 0 0;
	padding: 10px;
	position: fixed;
	right: -15rem;
	text-align: left;
	transition: 0.5s;
	top: 0px;
	width: 15rem;
	z-index: 2;
}

.togglemenu[open] {
	right: 0;
}

.togglemenu summary::-webkit-details-marker {
	display: none;
}

.togglemenu summary {
	list-style: none;
	position: fixed;
	right: 10px;
	top: 10px;
	z-index: 1000;
}

.togglemenu summary::before {
	content: "\f0c9";
	color: var(--text-color);
	font-family: "Line Awesome Free";
	font-size: 2rem;
	font-weight: 900;
	line-height: 1;
}

.togglemenu[open] summary::before {
	content: "\f00d";
	color: var(--sub-bg-color);
}

.togglemenu nav {
	background-color: color-mix(in srgb, var(--text-color) 80%, transparent);
	height: 100dvh;
	padding: 50px 1rem 0;
	position: absolute;
	right: 0px;
	top: 0px;
	transition: opacity 0.3s ease-in-out;
	width: 15rem;
}

.togglemenu a {
	background-color: transparent;
	border-bottom: 1px solid color-mix(in srgb, var(--sub-bg-color) 30%, transparent);
	color: var(--sub-bg-color);
	display: block;
	padding: 0.5em;
	transition: background-color 0.3s ease-in-out;
}

.togglemenu a:hover {
	background-color: color-mix(in srgb, var(--accent) 80%, transparent);
}

.togglemenu a::before {
	content: "\f0da";
	font-family: "Line Awesome Free";
	font-weight: 900;
	margin-right: 0.3em;
	vertical-align: middle;
}

.togglemenu a.home::before {
	content: "\f015";
}


/* main -------------------------------------------- */
main {
	margin: 0 auto 1rem;
	max-width: var(--main-width);
}

article h2 {
	border-left: 10px solid color-mix(in srgb, var(--accent) 50%, transparent);
	font-size: 1rem;
	line-height: 1.2;
	margin: 3em 0 0.5em;
	padding-left: 7px;
}

article.freespace {
	img:not([class]) {
		margin: 5px 0;
	}

	.postdate {
		color: color-mix(in srgb, var(--text-color) 70%, transparent);
		padding-right: 0.5em;
	}
}


article {
	background-color: color-mix(in srgb, var(--sub-bg-color) 50%, transparent);
	margin: 0 auto var(--margin-between);
	padding: 0.5rem 2rem 0.5rem 2rem;
	position: relative;
}

.catdescript {
	background-color: color-mix(in srgb, var(--sub-bg-color) 50%, transparent);
	margin: 0 auto var(--margin-between);
	padding: 2rem 5% 2rem;
	position: relative;
}

.catdescript::before,
article.logstatus-fixed::before {
	content: "\f08d";
	font-family: 'Line Awesome Free';
	font-weight: 900;
	font-size: 1.3em;
	line-height: 1;
	position: absolute;
	right: 10px;
	top: -0.4em;
}

article.logstatus-lock::before {
	content: "\f023";
	font-family: 'Line Awesome Free';
	font-weight: 900;
	font-size: 1.3em;
	line-height: 1;
	position: absolute;
	right: 10px;
	top: -0.4em;
}

body.onelog .catdescript,
.catdescript:has(span:empty) {
	display: none;
}

body.grandhome article,
body.mode-picts article {
	border-radius: 0 0 var(--radius) var(--radius);
}

/* novelカテゴリだけの設定 */
article.novel .comment {
	font-feature-settings: normal;
	/* normal=小説カテゴリーの投稿本文だけ文字組みをベタ組み（等間隔）にします。*/
	font-family: "Noto Serif JP", serif;
}

.nodata,
.nolist {
	background-color: color-mix(in srgb, var(--sub-bg-color) 50%, transparent);
	padding: 3rem 5%;
}

article .oneloginfo {
	border-bottom: 1px solid color-mix(in srgb, var(--text-color) 50%, transparent);
	font-size: 0.8rem;
	margin-bottom: 1.5em;
	padding-bottom: 5px;
	text-align: center;
}

article .oneloginfo a+.postdate {
	margin-left: 1em;
}

article .oneloginfo small {
	color: color-mix(in srgb, var(--text-color) 60%, transparent);
}

article span.passkeybox {
	display: block;
	margin-bottom: 0.3rem;
}

article span.passkeyguide {
	display: block;
	margin-bottom: 0.5em;
}

nav.pagenums {
	background-color: color-mix(in srgb, var(--sub-bg-color) 50%, transparent);
	padding: 1rem 5% 0.7rem;
	margin: 0 auto var(--margin-between);
	text-align: center;
}

nav.pagenums:empty {
	display: none;
}

nav.pagenums a {
	background-color: color-mix(in srgb, var(--text-color) 20%, transparent);
	color: var(--text-color);
	display: inline-block;
	letter-spacing: 0;
	min-width: 2em;
	padding: 0 0.3em 0.2em;
	margin-bottom: 5px;
	transition: all 0.3s ease-in-out;
}

nav.pagenums a:hover {
	background-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

nav.pagenums a.pagenumhere {
	background-color: var(--accent);
	color: var(--sub-bg-color);
}

.onelogonly {
	display: none;
}

body.onelog .onelogonly {
	display: block;
}

body.onelog nav.pagenums .onelogonly a {
	padding: 0 1em 0.2em;
	margin-right: 1em;
}

body.onelog nav.pagenums .onelogonly a:last-child {
	margin-right: 0;
}


/* cardlink -------------------------------------------- */
.cardlink {
	display: inline-block;
	font-size: 0.9rem;
	font-weight: normal;
	margin: 0.5em 0;
	vertical-align: middle;
	width: 100%;
}

.comment a.cardlink {
	text-decoration: none;
}

.comment a.cardlink:hover {
	color: var(--text-color);
}

.cardlink::before {
	display: none;
}

.cardlinkbox {
	border: 1px solid color-mix(in srgb, var(--text-color) 50%, transparent);
	border-radius: 5px;
	display: flex;
}

.cardlinkimage {
	aspect-ratio: 1.91 / 1;
	background-image: url(skin-tegasite/noimage.png);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	border-radius: 5px 0 0 5px;
	height: auto;
	width: 100%;
}

.cardlinktextbox {
	display: flex;
	flex-direction: column;
	padding: 0.7em 1em 1em;
}

.cardlinktitle,
.cardlinkdescription,
.cardlinkurl {
	display: -webkit-box;
	/* -webkit-line-clampを使うために必要な記述 */
	line-clamp: 1;
	/* 1行だけ見せる (将来的にはこれだけで実現可能かも) */
	overflow: hidden;
	/* 表示量を制限する場合に必須の記述 */
	text-overflow: ellipsis;
	/* 省略記号(三点リーダー) */
	-webkit-line-clamp: 1;
	/* 1行だけ見せる (今のブラウザにはこちらが必要) */
	-webkit-box-orient: vertical;
	/* -webkit-line-clampを使うために必要な記述 */
}

.cardlinktitle {
	font-weight: bold;
}

.cardlinkdescription {
	line-height: 1.4;
	color: color-mix(in srgb, var(--text-color) 70%, transparent);
	line-clamp: 2;
	-webkit-line-clamp: 2;
}

.cardlinkurl {
	border-top: 1px dotted color-mix(in srgb, var(--text-color) 50%, transparent);
	color: color-mix(in srgb, var(--text-color) 70%, transparent);
	font-size: 0.8em;
	margin-top: 0.5em;
	padding-top: 0.2em;
}

.cardsize-S {
	flex-direction: row;

	.cardlinkimage {
		border-radius: 5px 0 0 5px;
		height: 120px;
		width: unset;
	}

	.cardlinktextbox {
		border-left: 1px solid color-mix(in srgb, var(--text-color) 50%, transparent);
		flex: 1;
		justify-content: center;
		padding: 0em 1em;
	}
}

@media (max-width: 599px) {
	.cardsize-S {
		font-size: 0.85rem;
	}

	.cardsize-S .cardlinkimage {
		aspect-ratio: 1 / 1;
	}
}

.cardlink:has(.cardsize-L) {
	max-width: 450px;
}

.cardsize-L {
	flex-direction: column;

	.cardlinkimage {
		border-radius: 5px 5px 0 0;
	}

	.cardlinktextbox {
		border-top: 1px solid color-mix(in srgb, var(--text-color) 50%, transparent);
	}
}


/* aside -------------------------------------------- */
aside {
	background-color: color-mix(in srgb, var(--text-color) 15%, transparent);
	border-radius: 0 0 var(--radius) var(--radius);
	display: grid;
	gap: 1rem 3rem;
	grid-template-columns: 1fr 1fr;
	padding: 3% 5%;

	section>div,
	section>nav,
	section>form {
		margin-bottom: 1rem;
	}

	h2 {
		font-size: 0.8rem;
		font-weight: normal;
		padding: 0 0 0.4em;
	}

	h2.tags {
		padding: 0 0;
	}

	ul {
		padding: 0;
	}

	ul.cattree li {
		display: inline-block;
		margin-right: 5px;
	}

	ul.depth2 {
		display: inline-block;
	}

	ul.depth2 li {
		margin-right: 0;
	}

	ul.depth2 a {
		background-color: color-mix(in srgb, var(--text-color) 60%, transparent);
		margin-left: 1px;
	}

	.searchinputs,
	.datelimitbox,
	.hashtagpullbox,
	.catpullbox {
		display: flex;
	}

	select,
	input.queryinput {
		width: calc(100% - 3rem);
	}

	.hashtaglist li {
		display: inline-block;
		font-weight: bold;
		padding-right: 0.5em;
	}

	.hashtaglist li::before {
		content: '#';
		color: color-mix(in srgb, var(--text-color) 60%, transparent);
	}

	table.calendar {
		font-size: 0.8rem;
		line-height: 2;
		margin-top: 1.5rem;
		text-align: center;
	}

	caption {
		line-height: 1;
		padding-bottom: 0.8em;
		text-align: left;
	}

	.calendar th,
	.calendar td {
		padding: 0.3em 0 0.4em;
	}

	.calendar .sun,
	.calendar .sat {
		background-color: color-mix(in srgb, var(--text-color) 20%, transparent);
	}

	.calendar .today {
		background-color: color-mix(in srgb, var(--accent) 50%, transparent);
	}

	.calendar span.nolink {
		color: color-mix(in srgb, var(--text-color) 70%, transparent);
	}

	.calbtm {
		display: grid;
		font-size: 0.8rem;
		font-weight: bold;
		grid-template-columns: 1fr 1fr;
		margin-top: 0.3rem;
	}

	.calbtm div:nth-child(2) {
		text-align: right;
	}
}



/* mode-picts -------------------------------------------- */
body.mode-picts {
	.pictsadmbtn a {
		background-color: color-mix(in srgb, var(--accent) 25%, transparent);
		display: block;
		margin-top: -5px;
		padding: 2% 5%;
	}

	.thumbnails {
		display: grid;
		gap: 5px;
		grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
		margin: 1rem 0;
	}

	.thumbnails a {
		background-color: color-mix(in srgb, var(--text-color) 30%, transparent);
		display: flex;
		overflow: hidden;
	}

	.thumbnails img {
		aspect-ratio: 1 / 1;
		margin: 0 0;
		width: 100%;
	}

	nav.pagenums {
		background-color: transparent;
		padding: 1rem 0 0;
		margin: 0 0;
	}

	nav.pagenums a {
		text-decoration: none;
	}
}


/* footer -------------------------------------------- */
footer {
	font-size: 0.8rem;
	padding: 0 0 80px;
	text-align: center;
}


/* 非表示
--------------------------------------------
てがろぐに元々備わっている機能のうち、非表示にしたものです。
表示したいものがあれば、セレクタを削除してください。
-------------------------------------------- */
.dateseparator,
.utilitylinks,
.hashtaglist .num,
.cattree .num,
.datelimitlist .num,
.datelimitboxoptions,
.searchtarget {
	display: none;
}

/*
.dateseparator＝日付境界バー
.utilitylinks＝1投稿の単独表示ページで投稿記事の下に表示されるユーティリティリンク枠
.hashtaglist .num＝ハッシュタグリスト内の投稿数
.cattree .num＝カテゴリツリー内の投稿数
.datelistlink + .num＝日付一覧リスト内の投稿数
.datelimitboxoptions＝日付一覧リストの降順or昇順表示を指定するラジオボタン
.searchtarget＝記事検索フォーム下の「表示中のカテゴリに限定して検索」チェックボックス
*/


/* responsive -------------------------------------------- */
@media (max-width: 599px) {
	html {
		font-size: 95%;
	}

	body {
		margin: 0 0;
	}

	header {
		background-color: transparent;
		margin: 0 0 var(--margin-between);
	}

	header .headervisual {
		border-radius: 0 0;
	}

	header nav.category {
		background-color: color-mix(in srgb, var(--sub-bg-color) 50%, transparent);
		border-radius: var(--radius) var(--radius) 0 0;
		margin: 6vw 3vw var(--margin-between);
	}

	main {
		font-size: 0.94rem;
		margin: 0 3vw 1rem;
	}

	table.resp tr,
	table.resp th,
	table.resp td {
		display: block;
		width: 100%;
	}

	table.resp {
		border-right: 1px solid color-mix(in srgb, var(--text-color) 50%, transparent);
		border-left: 1px solid color-mix(in srgb, var(--text-color) 50%, transparent);
	}

	table.resp td {
		padding-bottom: 1.5rem;
	}

	aside {
		display: block;
	}

	aside section div.imagelist {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ---------- 追加 ---------- */
@media (min-width: 768px) {

	/* =========================
     全体レイアウト
  ========================= */
	body {
		margin: 0;
		display: flex;
		justify-content: center;
		gap: 40px;
		align-items: flex-start;
		padding: 20px;
	}

	/* =========================
     top画（縦長サイドバー）
  ========================= */
	header {
		position: sticky;
		top: 20px;
		border-radius: 15px;
		width: clamp(220px, 28vw, 280px);
		height: calc(100vh - 40px);
		display: flex;
		flex-direction: column;
		overflow: hidden;
		margin: 0;
		flex-shrink: 1;
	}

	header .headervisual {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0;
	}

	header h1.maintitle {
		margin-top: auto;
		padding: 1rem 0.5rem 2rem;
		text-align: center;
	}

	header p {
		text-align: center;
		margin-bottom: 1rem;
	}

	main {
		flex: 1;
		max-width: 700px;
		min-width: 0;
		margin: 0;
	}

	footer {
		flex: 1;
		max-width: var(--main-width);
		margin: 0;
		min-width: 0;
	}
}

/* =========================================
タブ
========================================= */

.tbs {
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
	width: 100%;
	box-sizing: border-box;
}

.tbs *,
.tbs *::before,
.tbs *::after {
	box-sizing: border-box;
}

/* ラジオボタン（切り替え用スイッチ）は完全に非表示にします */
input[type="radio"].tbs-switch {
	display: none !important;
}

/* ナビゲーション全体（中央寄せでコンパクトに整列） */
.tbs-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem;
	width: 100%;
	padding-bottom: 0.5rem;
	border-bottom: 1px dashed color-mix(in srgb, var(--main-text-color) 15%, transparent);
}

.tbs-label {
	flex: none;
	padding: 0.45em 1.2em;
	text-align: center;
	cursor: pointer;
	color: color-mix(in srgb, var(--main-text-color) 60%, transparent);
	font-weight: bold;
	letter-spacing: 0.06em;
	font-size: 0.8rem;
	border-radius: 30px;
	user-select: none;
}

.tbs-label:hover {
	color: var(--accent);
	background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.tbs-content {
	width: 100%;
	display: none;
	padding: 1.2rem 0.5rem 0;
	color: var(--main-text-color);
	font-size: 0.9rem;
	line-height: 1.8;
}

.tbs #pill-1:checked~.tbs-nav .tbs-label[for="pill-1"],
.tbs #pill-2:checked~.tbs-nav .tbs-label[for="pill-2"],
.tbs #pill-3:checked~.tbs-nav .tbs-label[for="pill-3"] {
	color: #ffffff;
	background: #4ec1bd90;
}

.tbs #pill-1:checked~#pill-content-1,
.tbs #pill-2:checked~#pill-content-2,
.tbs #pill-3:checked~#pill-content-3 {
	display: block;
}

/* =====================
           メニュー共通
           ===================== */

.mainmenu {
	-webkit-tap-highlight-color: transparent;
	position: sticky;
	top: 0;
	z-index: 110;
}

.mainmenu ul {
	background: var(--sub-bg-color);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);

	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 12px;

	list-style: none;

	padding: 0.5rem 1.3rem;
	margin: 0 auto;

	max-width: var(--main-width);

	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 1.3rem;

	font: 600 0.9rem/1.5 var(--main-font-family);
	letter-spacing: 0.1rem;
}

/* =====================
           リンク共通
           ===================== */

.mainmenu a {
	text-decoration: none;
	color: var(--moji-iro, #787878);

	padding: 0.3rem 0;
	white-space: nowrap;

	transition:
		color .25s,
		background .25s;
}

/* メインメニュー */
.mainmenu ul>li>a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
}

/* アイコン */
.mainmenu a i {
	font-size: 1.6rem;
}

/* テキスト */
.menu-label {
	font-size: 0.7rem;
	letter-spacing: 0.05em;
	color: var(--moji-iro, #787878);
}

/* hover 共通 */
.mainmenu a:hover,
.dropdown__lists a:hover,
.dropdown__sub a:hover {
	color: var(--accent-iro, #4ec1be);
	background: rgba(0, 0, 0, 0.03);
}

/* メインだけ背景なし */
.mainmenu ul>li>a:hover {
	background: none;
}

/* =====================
           第一階層
           ===================== */

.gnavi__list {
	position: relative;
}

.dropdown__lists {
	position: absolute;
	top: 100%;
	left: -5rem;

	min-width: 8.75rem;

	margin: 0;
	padding: 0.25rem 0;

	list-style: none;
	text-align: left;

	background: var(--haikei-iro);
	border: 1px solid rgba(0, 0, 0, 0.05);

	z-index: 100;

	transform: scaleY(0);
	transform-origin: top;
	transition: transform .25s ease;
}

.gnavi__list:hover>.dropdown__lists,
.gnavi__list:focus-within>.dropdown__lists {
	transform: scaleY(1);
}

/* =====================
           サブメニュー
           ===================== */

.dropdown__lists>li {
	position: relative;
	text-align: center;
}

.dropdown__sub {
	position: absolute;
	top: 0;
	left: 100%;

	width: max-content;

	margin: 0;
	padding: 0.25rem 0;

	list-style: none;
	white-space: nowrap;

	background: var(--haikei-iro);
	border: 1px solid rgba(0, 0, 0, 0.05);

	z-index: 100;

	display: flex;
	flex-direction: column;

	transform: scaleY(0);
	transform-origin: top left;
	transition: transform .25s ease;
}

/* hover / focus */
.dropdown__lists li:hover>.dropdown__sub,
.dropdown__lists li:focus-within>.dropdown__sub {
	transform: scaleY(1);
}

/* サブメニューリンク共通 */
.dropdown__lists a,
.dropdown__sub a {
	display: block;

	padding: 0.25rem 0.6rem;

	font-size: 1rem;
	color: var(--moji-iro, #787878);

	transition:
		background .2s,
		color .2s;
}

/* サブサブメニュー */
.dropdown__sub li {
	display: flex;
	align-items: center;
	justify-content: center;

	gap: 0.2rem;
	margin: 0.3rem 0;

	white-space: nowrap;
}

/* =========================================
           更新履歴
           ========================================= */
.kframe {
	display: block;
	width: 100%;
	max-width: 600px;
	height: 100px;
	margin: 0 auto 3rem;

	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	overflow: hidden;

	background: #fff;
}

h3 {
	font-size: 1.1rem;
	padding-left: 10px;
	border-left: 4px solid var(--accent-color);
	margin: 30px 0 15px;
	font-weight: bold;
}

h4 {
	font-size: 1rem;
	color: var(--text-color);
	margin: 20px 0 10px;
	font-weight: bold;
}

/* 見出し */

h1.custom-h1,
h2.custom-h2,
h3.custom-h3,
h4.custom-h4,
h5.custom-h5 {
	font-family: var(--main-font-family)
}

h1.custom-h1 {
	font-size: 1.4rem;
	font-weight: 300;
	color: #7bc0d2;
	letter-spacing: 0.25em;
	text-align: center;
	margin: 0 auto 1.5rem auto;
	line-height: 1.2;
}

h1.custom-h1::after {
	content: '';
	display: block;
	width: 120px;
	height: 1px;
	background-color: #dedede;
	margin: 0.4rem auto 0 auto;
}

h2.custom-h2 {
	font-size: 1.3rem;
	font-weight: 400;
	color: #4a5568;
	letter-spacing: 0.15em;
	border-left: 3px solid #7bc0d2;
	padding-left: 0.85rem;
	margin: 2.5rem 0 1rem 0;
	line-height: 1.4;
}


h3.custom-h3 {
	font-size: 1.25rem;
	font-weight: 500;
	color: #4a5568;
	letter-spacing: 0.1em;
	border-bottom: 1px dashed #7bc0d2;
	padding-bottom: 0.4rem;
	margin: 2.25rem 0 1rem 0;
	line-height: 1.4;
}

h4.custom-h4 {
	font-size: 1.1rem;
	font-weight: 600;
	color: #4a5568;
	letter-spacing: 0.08em;
	display: flex;
	align-items: center;
	margin: 2rem 0 0.75rem 0;
	line-height: 1.4;
}

h4.custom-h4::before {
	content: '';
	display: inline-block;
	width: 7px;
	height: 7px;
	background-color: #7bc0d2;
	margin-right: 0.6rem;
	border-radius: 1.5px;
}

h5.custom-h5 {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text-color);
	letter-spacing: 0.12em;
	margin: 1.5rem auto 0.75rem auto;
	padding: 0.25rem 0;
	border-top: 1px solid var(--accent);
	border-bottom: 1px solid var(--accent);
	display: table;
	line-height: 1.4;
	text-align: center;
}

.acc-details {
	background: #ffffff00;
	margin-bottom: 12px;
}

.acc-summary {
	display: flex;
	align-items: center;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text-light);
	user-select: none;
	transition: 0.15s;
}

.acc-summary::-webkit-details-marker {
	display: none;
}

.acc-summary::before {
	content: "+";
	width: 14px;
	margin-right: 8px;
	color: var(--text-muted);
}

.acc-details[open] .acc-summary {
	color: var(--text-color);
}

.acc-details[open] .acc-summary::before {
	content: "−";
	color: var(--accent);
}

.acc-summary:hover {
	color: var(--accent);
}

.acc-content {
	padding: 0px 0px 22px;
	font-size: 0.9rem;
}

.acc-content a {
	color: var(--accent);
	text-decoration: none;
	border-bottom: 1px dotted;
}

.acc-note {
	margin-top: 4px;
	font-size: 0.8rem;
	color: var(--text-muted);
}


/* バナー */
.banner-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.banner-item {
	display: flex;
	flex-direction: column;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	text-decoration: none;
	color: #333;
}

.banner-item img {
	width: 100%;
	display: block;
}

.banner-text {
	padding: 14px;
}

.banner-text p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #666;
}

@media (max-width: 768px) {
	.banner-list {
		grid-template-columns: 1fr;
	}
}

.info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.info-grid div {
	padding: 12px;
}


footer {
	font-size: 0.8rem;
	padding: 0 0 80px;
	text-align: center;
	position: relative;
}

/* リンク */
footer a {
	color: var(--main-text-color);
	text-decoration: none;
}

/* ポップアップ本体 */
.privacy-popup {
	position: absolute;
	bottom: 35px;
	/* テキストの上に表示 */
	left: 50%;
	transform: translateX(-50%);

	width: 280px;
	padding: 16px;

	background: var(--sub-bg-color);
	border: 1px solid #ccc;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

	font-size: 0.75rem;
	line-height: 1.6;
	text-align: left;

	opacity: 0;
	visibility: hidden;
	transition: 0.3s;
}

/* hoverで表示 */
.privacy-wrap:hover .privacy-popup {
	opacity: 1;
	visibility: visible;
}