@font-face {
    font-family: 'HachiMaru';
    src: url('../../assets/fonts/knsw_HachiMaruPop_ttf-Regular.woff') format('woff');
}

::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-button {
    background-color: #fffe;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #fff8;
}



:root {
    /*トップページ：サムネイルの横幅*/
    --thumbnail-width: 150px;
    /*トップページ：サムネイルの縦幅*/
    --thumbnail-height: 150px;

    /*検索ページ：サムネイルの横幅*/
    --search-thumbnail-width: 100px;
    /*検索ページ：サムネイルの縦幅*/
    --search-thumbnail-height: 100px;

    /*サムネイルの色*/
    --thumbnail-back-color: #eee;
    --thumbnail-font-color: #999;

    /*タグ クラウドのバックカラー&文字色*/
    --tag-cloud-back-color: #a0a0a0;
    --tag-cloud-font-color: #fff;
    --tag-cloud-back-color-hover: #777;
    --tag-cloud-font-color-hover: #fff;

    /* 基本背景色 */
    --background-color: #00cad1;
    --base-back-color: #ffffffb2;


    /* 基本 文字色 */
    --base-text-color: #333;
    --base-light-color: #777;

    --link-color: #66f;
    --link-hover-color: #0aa1ff;
    --link-color-light-color: #0aa1ff;


    /* トップページ背景色 */
    --index-back-color: #ffffffb2;

    /* ヘッダー部背景色 */
    --header-back-color: transpalent;
    --header-link-color: #777;
    --header-link-color-hover: #999;

    /* テキスト記事サムネイル用背景 */
    --background-text-thumb: url("../resource/text-back1.png");

    /* NSFW記事 サムネイル用背景 */
    --background-nsfw-thumb: url('../resource/nsfw.png');
}

/* ユーザー定義クラス 
　　トップページ・記事内で {s クラス名}~{/s} と記述することで、
　　<span class="user_クラス名">～</span>と同様の動作を行うことができます。

　　よく利用したい文字の色などのスタイルをクラスとして定義しておくと便利です。

    .user_から始まる名前でクラスを定義してください。
    たとえば.user_redクラスは {s red}～{/s}で使用できます。
*/
.user_red {
    color: #f00;
}

.user_green {
    color: #0f0;
}

.user_blue {
    color: #00f;
}

.user_bold {
    font-weight: 800;
}

/* 画像関連 */
.instraction-image {
    border-radius: 5px;
}

.view-image {
    border-radius: 5px;
}

/* グローバルヘッダー */
#global-header {
    background-color: #AAA;
    color: #fff;
}

#global-header a {
    color: #fff;
}

/* Markdown関連 */
ul.md {
    list-style: inside disc
}

ol.md {
    margin-left: 1.5em;
}

p.md {
    margin-bottom: 1em;
}

blockquote.md {
    border-left: 3px solid #CCC;
    padding-left: 1em;
}

code.md {
    background-color: #DDD;
    padding: 2px
}

pre.md code {
    display: block;
    overflow-x: scroll;
    background-color: #DDD;
    padding: 1em;
    border-radius: 5px;
    line-height: 1.3em;
    margin: 0.5em;
}

table.md {
    border: 1px solid #ccc;
    border-collapse: collapse;
    border-radius: 5px;
    margin: 0.5em;
}

table.md td,
table.md th {
    border: 1px solid #ccc;
    padding: 10px;
}

table.md th {
    background-color: #f0f0f0;
    font-weight: bold;
}

/* 小説表示 */
.novel-body {
    font-size: 1em;
}

.novel-body-in {
    line-height: 200%;
}



/* 以下、追加定義クラス */
#console-header {
    margin: -3em auto;
    position: fixed;
    z-index: 1;
}

body {
    background-image: url(../../assets/img/dot710clear256.png);
    background-repeat: repeat;
    background-attachment: fixed;
    background-blend-mode: overlay;
}

#index-base {
    margin: 3em auto;
    max-width: 800px;
}

#index-base,
#profile__banner,
#title {
    border-radius: 20px;
}

#title {
    text-align: center;
    color: #db6975;
    font-size: 64px;
    font-family: 'HachiMaru';
    padding: 100px 0;
    background: url(../../assets/header4.jpg);
    background-size: cover;
    background-position: center;
}
@media (max-width: 816px) {
    #title {
        padding: 12.25vw;
        font-size: 8vw;
    }
}

#global-header {
    background-color: #eee;
    padding: 0.75em 2em;
    width: -webkit-fill-available;
    width: -moz-available;
    position: fixed;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

#global-header a {
    font-size: 24px;
    font-family: HachiMaru;
    color: #db6975;
    font-weight: bold;
    text-decoration: none;
}

#global-header a:hover {
    color: lightcoral;
}

#header {
    padding-top: 4em;
}

#profile__contents h2 {
    margin-top: 0;
    font-family: 'Bungee';
    color: darkcyan;
}

#profile__contents h2 a {
    color: darkcyan;
    text-decoration: none;
}

#profile__contents h2 a:hover {
    color: lightskyblue;
}

.home_menu {
    margin-bottom: 0;
    padding: 0;
    font-size: large;
    font-family: 'HachiMaru';
    font-style: italic;
    font-weight: bold;
    display: grid;
    grid-template-columns: repeat(4, 24%);
    justify-items: center;
    justify-content: space-evenly;
}
@media (max-width: 599px) {
	.home_menu {
		grid-template-columns: repeat(3, 24%);
	}
}
@media (max-width: 419px) {
	.home_menu {
		grid-template-columns: repeat(2, 24%);
	}
}

#base {
    max-width: 800px;
}

#text-content {
    min-height: revert;

    margin: 1em 0 0 0;
    padding: 1em;
}

h1, h2, h3, h4 {
    font-family: 'HachiMaru';
}

h1, h2, h3, h4, h5, h6 , .author{
    color: steelblue;
}

#content {
    padding: 1em;
}

#content>h2,
#text-content>h2,
#instruction-area>h2 {
    margin-bottom: 1em;
    padding: 0.4em 1em;
    background: rgba(0,205,209,0.2);
    border-left: 4px solid rgba(0,108,255,0.8);
    border-bottom: 2px solid rgba(0,108,255,0.8);
}

h2, h3, h4 {
    margin-top: 1.5em;
}

.maintext h2 a:hover,
.maintext h3 a:hover {
    text-decoration: none;
}

h5, h6 {
    margin-top: 1em;
}

.maintext h3 {
    font-size: 1.25em;
    border-bottom: 1px dashed #14b2da;
}

.maintext {
    margin: 0 1.5em;
}

hr {
    margin: 1.5em 0;
    background-color: #66f;
    border: none;
    height: 1px;
}

.maintext hr {
    margin: 2em 0;
    background: transparent;
    color: #14b2da;
    border: dashed 1px;
}

#contents-area h1 {
    text-align:center;
    margin-bottom: 1em;
    font-style: italic;
    color: 66f;
}

.maintext h2 {
    border-bottom: 4px double #14b2da;
}

.maintext ul,
ul.md {
    margin-left: revert;
    list-style: revert;
    font-size: small;
    list-style-type: revert;
}

* {
    padding: revert;
}

h4 {
	margin-bottom: 1em;
}

ul li h4 {
    margin: 0;
    margin-top: 0.75em;
    border-bottom: 1px dashed #14b2da;
}

table,
table.md {
    border-color: #66f;
    border-radius: 2px;
    border-spacing: 0;
    border-top: 1px solid #555;
    border-left: 1px solid #555;
}

table thead,
table.md thead {
    background: #66f;
    color: white;
}

table td,
table th,
table tr,
table.md td,
table.md th,
table.md tr {
    text-align: center;
    font-size: small;
    vertical-align: top;
    border-bottom: 1px solid #ddd;
    padding: 0.2rem 0.7rem;
    border-bottom: 1px solid #555;
}

tbody {
    background-color: aliceblue;
}

thead>tr>th:nth-last-child(1), td {
    border-right: 1px solid #555;
}

.table-tate tr:nth-child(even) {
    background-color: lightskyblue;
}

.table-yoko td:nth-of-type(odd) {
    background-color: lightskyblue;
}

.table-data {
    display: grid;
    margin: 1.25em;
}

.table-data td:nth-of-type(odd) {
    width: 8rem;
}

.table-data td:nth-of-type(even) {
    width: 10rem;
}

.update {
    font-size: smaller;
    color: steelblue;
    font-weight: bold;
}

a {
    transition: 0.2s;
}

.maintext p {
    margin: 0.5em 0;
}

.maintext li p {
    margin: unset;
}

.maintext em {
    font-weight: bold;
}

.maintext strong {
    color: #db6975;
}

.big {
    font-size: x-large;
}

blockquote, pre {
    border-radius: 10px;
    margin: 1em 2.5em;
    padding: 16px;
}

blockquote {
    background: aliceblue;
}

pre {
    border-radius: unset;
    background: #fff7;
    overflow-x: auto;
}

img {
    margin: 0.25em;
    border: 1px solid #66f;
    border-radius: 15px;
    max-width: 100%;
}

a img:hover,
.button_normal:hover,
#like-it:hover,
.control input:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0px 2px 10px #66f;
    transition: 0.2s;
}

.pics {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.pics img {
    border-radius: 75px;
}

.banner {
    border-radius: revert;
}

.small-button {
    margin-top: 0.5em;
    margin-bottom: 3.5em;
    font-size: small;
}

.small-button a {
    margin-right: 0.5em;
    padding: 0 0.5em;
    color: #66f;
    background: rgba(0, 205, 209, 0.2);
    border: 1px solid rgba(0, 108, 255, 0.8);
    border-radius: 10px;
    transition: 0.2s;
    text-decoration: none;
}

.small-button a:hover {
    filter: brightness(1.5);
}

.maintext p a[target="_blank"]::after,
.maintext em a[target="_blank"]::after,
.maintext strong a[target="_blank"]::after,
.maintext h3 a[target="_blank"]::after,
.maintext li a[target="_blank"]::after {
    font-family: "Font Awesome 5 free";
    content: " \f35d";
    padding: 2px;
    vertical-align: center;
    font-weight: bold;
}

.maintext p a[target="_blank"]:has(img)::after,
.maintext li a[target="_blank"]:has(img)::after {
  content: none;
}

.hitokoto {
    margin-top: 1.25em;
    text-align: center;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.hitokoto h5 {
    font-size: larger;
}

#footer-area {
    background-color: transparent;
}

#control {
    margin: auto;
}

.maintext h2 i {
    margin: 0 12px;
}

.submenu {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1em;
    margin-left: 1em;
}

.submenu h4 {
    margin: 0 1em;
}

.header-menu a {
    margin: 0 0.1em;
}

.header-menu i {
    color: cornflowerblue;
    font-size: x-large;
    transition: 0.2s;
}
@media (max-width: 480px) {
	#global-header {
		padding-left: 20px;
		padding-right: 20px;
	}
	.header-menu a {
		margin: 0;
	}
    .header-menu i {
        font-size: medium;
    }
}

.header-menu i:hover {
    color: #3fefee;
}

#like-it {
    margin-bottom: revert;
}

#control a img {
    margin: revert;
}

#like-it:hover,
#control a img:hover {
    transform: none;
}

#contents-area {
    margin-bottom: revert;
}

#created_at {
    font-size: 0.9em;
}

.makibishi-profile-picture {
	margin: 0 -8px;
	min-width: 32px;
	min-height: 32px;
	border: revert;
}

.makibishi-profile-picture:hover {
    box-shadow: revert;
}

.makibishi-delete svg {
	margin-left: 8px;
}

/* いいねボタン改用 */
#control button.newiine_btn.newiine_type02:hover,
#control button.newiine_btn.newiine_type02.newiine_clickedtoday {
    color: #ff9900;
}

#control button.newiine_btn::before,
#control button.newiine_btn.newiine_type02.newiine_clicked {
    background: #ffff99;
}