@charset "UTF-8";

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


body{
	position: relative;
	padding: 2rem;
    margin-top: 1rem; 
    padding-top: 0;
	font-family: var(--font-primary);
	font-size: 12px;
	letter-spacing: 0.03em;
	line-height: 1.7;
	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; /* ドット画像のスムージングを防ぐ */
}


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

p small {
    line-height: 1 !important;
}

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

section{
	max-width: 70rem;
	margin: 1em auto 1em;
}

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;
}

/* 以下prof用 */

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

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

.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;
	font-size: 0.9em;
}

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

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


.linkcard{
    border-radius: 4px;
    border: 1px solid var(--color-accent);
    margin: 0.5em 1.5em;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
}

.linkcard_icon i {
    font-size: 30px;
    margin: 5px 10px;
    width: 30px;
    height: auto;
}

.linkcard_text {
    margin: 0.5em;
}

.linkcard_text h2 {
	color: var(--color-text) !important;
        font-size: 1em !important;
        font-weight: 400;
}

.linkcard_text p {
	color: var(--color-text) !important;
    font-size: 0.9em !important;
}

span.h2aside {
	color: var(--color-main);
	font-size: 0.9em !important;
}


/* header */

.profheader {
	background-color: #000;
	background-image: url(/img/10.GIF);
	background-position: 50% 40%;
	background-size: cover;
	background-repeat: no-repeat;
	border-radius: 6px;
	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: #fff;
	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); /* 元の位置に戻る */
    }
}

footer {
	font-size: 0.9em;
	text-align: center;
}

.pagewrap {
	animation: fadein 0.5s forwards;
}

.pagewrap2 {
	animation: fadein 0.25s forwards;
}

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

.bio{
	display: grid; 
	place-items: center;
	min-height: 100dvh;
	align-content: center;
}

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

/* プライバシーポリシー用 */
.modal-open{
	cursor: pointer;
  }

.modal{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	text-align: center;
	background: rgba(0,0,0,60%);
	padding: 40px 20px;
	overflow: auto;
	opacity: 0;
	visibility: hidden;
	transition: .3s;
	box-sizing: border-box;
	z-index: 100;
}

.modal:before{
	content: "";
	display: inline-block;
	vertical-align: middle;
	height: 100%;
	margin-left: -0.2em;
}

.modal.is-active{
	opacity: 1;
	visibility: visible;
}

.modal-container{
	position: relative;
	display: inline-block;
	vertical-align: middle;
	max-width: 600px;
	width: 90%;
	background-color: var(--color-light);
	border-radius: 6px;
}

.modal-close{
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	right: 3px;
	width: 30px;
	height: 30px;
	cursor: pointer;
	font-size: 20px;
}

.modal-content{
	line-height: 1.4;
	padding: 2em;
}
.modal-content h3{
	text-align: center;
	font-size: 1.1em;
}
.modal-content p{
	text-align: center;
	margin: 1em;
}

.logdate {
	display: inline-block;
	margin: 0;
	padding: 0;
	font-size: inherit;
}