@charset "UTF-8";

html{
	scroll-behavior: smooth;
	transition: background-color 0.2s ease, color 0.25s ease;
}


body{
	position: relative;
	padding: var(--margin-base);
    padding-top: 0;
	font-family: var(--font-primary);
	font-size: 12px;
	letter-spacing: 0.03em;
	line-height: 1.6;
	font-weight: 400;
	background-color: var(--color-base);
	color: var(--color-text);
	transition: background-color 0.2s ease, color 0.25s ease;
}

.dotgothic16-regular {
	font-family: "DotGothic16", sans-serif;
	font-weight: 400;
	font-style: normal;
}

img.emoji {
	width: 1.2em;
	height: 1.2em;
	margin: 0 0.05em 0 0.1em;
	vertical-align: -0.3em;
}

img#dot {
	image-rendering: pixelated; /* ドット画像のスムージングを防ぐ */
}

html.Dark .adjust-ld {
	filter: brightness(0.9);
}
  
.adjust-ld {
	filter: brightness(1);
}


/* 見出しとhr */

h3{
	font-weight: 600;
}

h3::before{
	font-family: var(--font-icon);
	content: "\f0c8";
	color: var(--color-main);
	font-weight: 900;
	margin-right: 2px;
}

hr {
	border-top: 1px dashed;
	color: var(--color-main);
	margin-top: 1.5em;
	margin-bottom: 1.5em;
}

.topbox{
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	gap: 1.5em;
}

.toppic{
	text-align: center;
	margin-bottom: 1em;
}
.toppic img{
	max-height: 150px;
	width: auto;
}

.last {
	text-align: right;
	font-size: 0.9em;
	margin-bottom: 5px;
}

.twdate, .memodate, .resdate {
    display: inline-block;
    margin: 0;
    padding: 0;
	font-size: inherit;
}

.topbox-content1, .topbox-content2 {
	flex: 1;
}

@media screen and (max-width: 500px) {
	.topbox{
		flex-direction: column;
	}
}
/*
button img.emoji{
	vertical-align: -0.2em;
}
:/

/* テキスト */

.iineB {
	text-align: right;
    margin: 0 0 0 auto;
}

p.aboutlink {
	text-align: right;
	color: var(--color-main);
	line-height: 1;
	font-size: 0.8em;
	margin-top: 1em;
}

p.opening {
	font-size: small;
	color: var(--color-main);
}

p.indent {
	margin-left: 1em;
}

a.bnlink{
	margin: 2px 0px;
	display: inline-block;
}

a.textlink::before {
	font-family: var(--font-icon);
	content: "\f08e";
	font-weight: 900;
	color: var(--color-accent);
	margin-right: 3px;
}

.no-wrap{
	display: inline-block;
}



/* 吹き出し */
.new {
	width: 100%;
	display: flex;
	align-items: center;
	margin-bottom: 0;
	padding-bottom: 0;
}

.new .new_icon img {
	width: auto;
	height: auto;
	margin-bottom: 0;
}

.new .new_text {
	width: 100%;
	margin-bottom: 0;
	white-space: nowrap;
}

.balloon {
	position: relative;
	display: inline-block;
	margin-left: 10px;
	padding: 2px 12px;
	border: 1.3px solid;
	border-color: var(--color-light);
	border-radius: 2px;
	background-color: var(--color-light);
	text-align: left;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--color-text);
}
  
.balloon::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	border-style: solid;
	border-width: 5px 10px 5px 0;
	border-color: transparent var(--color-light) transparent transparent;
	translate: -100% -50%;
}
  
.balloon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	border-style: solid;
	border-width: 3.9px 7.8px 3.9px 0;
	border-color: transparent var(--color-light) transparent transparent;
	translate: -100% -50%;
}

/* 開設日吹き出し */

.balloon2 {
    position: relative;
    display: inline-block;
	padding: 2px 12px;
	border: 1.3px solid;
	border-color: var(--color-light);
	border-radius: 2px;
	background-color: var(--color-light);
	text-align: left;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--color-text);
}

.balloon2::after {
    content: "";
    position: absolute;
    bottom: -18px;  /* 吹き出しを下に配置 */
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: var(--color-light) transparent transparent transparent;
}

.opening img {
    display: block;
    margin: 10px auto 0 auto;  /* 画像を中央下に配置 */
}

.opening {
	margin-top: 2em;
	justify-content: center;
}


/* 上に戻る */
a#return{
	display: block;
	position: fixed;
	bottom: calc(var(--margin-base) * 0.5);
	right: calc(var(--margin-base) * 0.5);
	font-size: 3em;
	line-height: 1;
	color: var(--color-accent);
}

a{
	color: var(--color-main);
}


/* ヘッダー */

.pagecontainer {
	display: grid;
	place-items: center;
	min-height: 100dvh;
	align-content: center;
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
}

section#top {
    background-color: var(--color-base);
    position: sticky;
    z-index: 100;
	top: 0;
}

#top {
    display: flex;
	justify-content: flex-end;
    align-items: center;
    padding: 1em; 
	flex-wrap: wrap;
	margin-top: 1em;
}

#top h1 {
    font-size: 1.1em;
    font-weight: 300;
    margin-right: 1em;
	flex-wrap: nowrap;
    white-space: nowrap;
}

#top p {
    margin: 0;
    padding-left: 1em;
    flex-wrap: nowrap;
    white-space: nowrap;
}

#header-content {
    flex-grow: 1;  /* 残りのスペースをheader-contentに割り当てる */
	min-width: 0;
}

#menu {
	display: flex; /* 横並べ */
    justify-content: flex-end; /* 右寄せ */
    white-space: nowrap;
    flex-shrink: 0;  
}

#menu a{
	display: block;
	font-size: 1em;
	text-align: center;
	font-weight: 500;
	color: var(--color-text);
	letter-spacing: 0.1em;
    white-space: nowrap;
    text-align: center;
	margin-left: 1em; 
}

#menu i{
	color: var(--color-main);
}


@media screen and (max-width: 800px) {
    #top {
        flex-direction: row; /* 横並びを維持 */
        align-items: center;
    }

    #menu {
        justify-content: flex-end;
		padding-top: 5px;
        margin: 0; /* メニューは常に右に */
    }

    #header-content {
        flex-grow: 1; /* 残りスペースを使う */
    }
}



/* コンテンツエリア */
section{
	max-width: 70rem;
	width: 100%;
	margin: 0 auto 1rem;
}

section:last-of-type{
	margin-bottom: 0;
}


/* ボックスの中 */
.box{
	padding: 2em 2em;
	background-color: var(--color-light);
	border-radius: 6px;
}

.box img {
    max-width: 100%; /* 画像の幅を親要素に対して最大幅で表示 */
    height: auto;
}

.box h2{
	font-size: 1em;
	font-weight: 600;
}



/* ログ */

.folder {
	display: flex;
	flex-wrap: wrap;
	margin: 1em auto var(--margin-base);
}

.folder:after {
	content: '';
	width: 100%;
	height: 3px;
	background: var(--color-light);
	display: block;
	order: -1;
}

.tab-label {
	color: var(--color-text);
	background: var(--color-base);
	font-size: 11px;
	font-weight: 400;
	white-space: nowrap;
	text-align: center;
	padding: 5px .2em;
	order: -1;
	position: relative;
	z-index: 1;
	cursor: pointer;
	border-radius: 5px 5px 0 0;
	flex: 1;
}

.tab-label:not(:last-of-type) {
	margin-right: 5px;
}

.tab-content {
	width: 100%;
	height: 0;
	background: var(--color-light);
	overflow: hidden;
	opacity: 0;
}

/* アクティブなタブ */
.tab-switch:checked+.tab-label {
	background: var(--color-light);
}

.tab-switch:checked+.tab-label+.tab-content {
	height: auto;
	overflow: auto;
	padding: var(--margin-base) calc(var(--margin-base) * 1.1);
	opacity: 1;
	transition: 0s opacity;
	border-radius: 0 0 6px 6px;
}

.tab-switch {
	display: none;
}


.tablog{
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

.tab-content .piclog {
    display: flex;
    justify-content: center;
	margin: 0.5em 1.5em;
	min-width: 100px;
}

.img-content{
	text-align: center;
}
.img-content img {
    width: 60px;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--color-text);
}

.text-content {
    display: flex;
    flex-direction: column;  /* 縦に並べる */
	text-align: center;
}

.tab-content h2 {
	color: var(--color-text);
    font-size: 1em;
    margin: 0;
}

.text-content aside {
    font-size: 0.8em;
    color: var(--color-main);
}



@keyframes fadeIn {
	0% {
		opacity: 0; /* 透明 */
	}
	100% {
		opacity: 1;
	}
}




/* 以下prof用 */

h2.prof {
	font-size: 1.2em;
	font-weight: 600;
}

h3.prof {
	font-size: 1em;
	font-weight: 400;
	margin-top: 1em;
	border-bottom: dashed 1px var(--color-accent);
}

span.aside{
	color: var(--color-main);
	margin-left: 1.5em;
}

p.profid {
	font-size: 0.8em;
	color: var(--color-main);
}

p.profA {
	font-size: 0.8em;
	color: var(--color-main);
}

p.proftext{
	line-height: 1.4;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

p.proftext2{
	line-height: 1.4;
}

details.indent{
	margin-left: 1em;
	font-size: 0.9em;
	line-height: 1.3;
}

hr.prof {
	border-top: 1px dashed;
	color: var(--color-main);
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

hr.prof2 {
	border-top: 1px solid;
	color: var(--color-main);
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

/* header */

.profheader {
	background-color: #000;
	background-image: url(/img/10.GIF);
	background-position: 50% 40%;
	background-size: cover;
	background-repeat: no-repeat;
	border-radius: var(--border-radius);
	height: 100px;
	position: relative;
	text-align: center;
	margin-bottom: 5px;
}

.profheader img.icon {
	display: block;
	margin: auto;
	height: 80px;
	width: 80px;
	background: var(--color-light);
	border-radius: 50%;
	border: solid 6px var(--color-light);
	position: absolute;
	bottom: -40px;
	left: 5px;
	z-index: 1;
}
  
  @media screen and (max-width: 767px) {
	.profheader {
	  height: 90px;
	}
	.profheader img.icon {
	  height: 64px;
	  width: 64px;
	  border: solid 3px var(--color-light);
	  bottom: -32px;
	}
  }

div#button {
	text-align: right;
}
#prog {
	background-color: var(--color-main);
	color: var(--color-light);
	border-radius: 15px;
	padding: 2px 10px;
	text-decoration: none;
	font-size: 0.8em;
}
#prog:hover {
	color: var(--color-light);
	background-color: var(--color-accent);
}

.gif-wrapper {
    overflow: hidden;
    position: relative;
    height: 100px;
}

@media screen and (max-width: 767px) {
	.gif-wrapper {
	  height: 90px;
	}
  }

img#proggif {
	display: none;
	margin: 0 5px 0 auto;
	image-rendering: pixelated;
	animation: moveUpAndDown 3s ease-in-out forwards;
}
@keyframes moveUpAndDown {
    0% {
        transform: translateY(100px); /* 元の位置 */
    }
    40% {
        transform: translateY(20px); /* ゆっくり上に上がる */
    }
    60% {
        transform: translateY(20px); /* 上で少し止まる */
    }
    100% {
        transform: translateY(100px); /* 元の位置に戻る */
    }
}


/* dldtdd */

dl.proflink {
    display: inline-block;
}

dl.proflink dt {
	float: left;
	clear: left;
	width: 7em;
	font-size: 0.9em;
	font-weight: 400;
}

dl.proflink dt::before {
	font-family: var(--font-icon);
	content: "\f0c1";
	font-weight: 900;
	color: var(--color-accent);
	margin-right: 3px;
}
dl.proflink dd {
	float: left;
	font-size: 0.8em;
}

/* タブ */

.tab-wrapP {
	background: var(--color-light);
	display: flex;
	flex-wrap: wrap;
	overflow: hidden;
	padding: 0 0 10px;
}

.tab-labelP {
	cursor: pointer;
	flex: 1;
	font-size: 0.9em;
	font-weight: 400;
	order: -1;
	padding: 3px auto;
	position: relative;
	text-align: center;
	transition: cubic-bezier(0.4, 0, 0.2, 1) .0s;
	user-select: none;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
}

.tab-switchP:checked + .tab-labelP {
	color: var(--color-text);
}

.tab-labelP::after {
	background: var(--color-accent);
	bottom: 0;
	content: '';
	display: block;
	height: 1.5px;
	left: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transform: translateX(100%);
	transition: cubic-bezier(0.4, 0, 0.2, 1) .0s;
	width: 100%;
	z-index: 1;
}

.tab-switchP:checked ~ .tab-labelP::after {
	transform: translateX(-100%);
}

.tab-switchP:checked + .tab-labelP::after {
	opacity: 1;
	transform: translateX(0);
}

.tab-contentP {
	height:0;
	opacity:0;
	padding: 0px 1em;
	pointer-events:none;
	transform: translateX(-30%);
	transition: transform .0s, opacity .0s;
	width: 100%;
}

.tab-switchP:checked ~ .tab-contentP {
	transform: translateX(30%);
}

.tab-switchP:checked + .tab-labelP + .tab-contentP {
	height: auto;
	opacity: 1;
	order: 1;
	pointer-events:auto;
	transform: translateX(0);
}

.tab-wrapP::after {
	content: '';
	height: 1em;
	order: -1;
	width: 100%;
}

.tab-switchP {
	display: none;
}


.pagewrapindex {
	animation: fadein 1s forwards;
}

.pagewrap {
	animation: fadein 0.5s forwards;
}

.pagewrap2 {
	animation: fadein 0.25s forwards;
}

@keyframes fadein {
	0% {opacity: 0}
	100% {opacity: 1}
}
