@charset "utf-8";

:root {
  --white: #fff;
  --main-color: #cf451b;
  --article-color: #fff;
  --bg-color: #f0f0ec;
  --tx-color: #1c1f23;
  --link-color: #28c742;
  --content-padding: 3rem 2.5rem 2.7rem;
}

/*ページ遷移ふわっと*/
@view-transition {
  navigation: auto;
}

/*------------------------------------------------全体-------------------------------------------------------------------*/

body {
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  overflow-wrap: break-word;
  /*文字の折り返し方を制御*/
  font-size: 0.9rem;
  font-feature-settings: "palt";
  /*文字カーニング*/
  letter-spacing: .04em;
  /*字間*/
  background-color: var(--bg-color);
  color: var(--tx-color);
    background-image: linear-gradient(90deg, #00000008 1px, transparent 1px), linear-gradient(#00000008 1px, transparent 1px);
    background-position: 10px 10px;
    background-size: 21px 21px;

}


/*画像を画面内に収める*/
img {
  width: 100%;
  height: auto;
  pointer-events: none;
}

/*スクロールバー色*/
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background-color: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--link-color);
  border-radius: 15px;
}

/*-------------------------------------------------------------メニューとメインエリアを横並びにするための全体のコンテナ*/
.wrapper {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  flex-direction: row-reverse;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

/*-------------------------------------------------------------右にある細いメニュー*/
.menu-icon-container {
  width: 8%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  position: sticky;
  top: 0;
  right: 0;
  z-index: 10;
  padding: 6vh 0;
  background: linear-gradient(to bottom,var(--main-color),yellow 50%,var(--link-color));
  /*background: linear-gradient( 45deg, var(--link-color) 0% 50%, var(--main-color) 50% 100% );*/
}

/*てがろぐ著作権表記エリア*/
.poweredby {
  font-size: 0.8rem;
  color: var(--tx-color);
  word-break: break-all;
  writing-mode: horizontal-tb;
  letter-spacing: .3em;
}

/*管理画面リンク*/
.setting-icon svg {
  width: 1rem;
  height: 1rem;
  stroke: var(--link-color);
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
  fill: none;
  color: var(--link-color);
}

/*3つ並んだボタンエリア*/
.menu-icons {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 16px;
}

.home-icon,
.comic-icon,
.gallery-icon,
.heart-icon,
.music-icon,
.menu-icon {
  cursor: pointer;
  background: var(--white);
  border-radius: 50%;
  padding: 0.9rem;
}

.menu-icon-container svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--link-color);
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
  fill: none;
  color: var(--link-color);
}


/*----------------------------------------------------------------------左の投稿一覧とプロフィールエリアを包むコンテナ*/

.container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  flex-direction: row-reverse;
  width: 80%;
  max-width: 100%;
  margin: 0 auto;
}


/*--------------------------------------------------------------------固定プロフィールエリア*/


/*固定プロフィールエリア全体*/
.header {
  position: sticky;
  width: 30%;
  height: 100vh;
  right: 0;
  z-index: 9;
  align-items: center;
  overflow-wrap: break-word;
  /*padding: 5vw var(--content-padding);*/
  /* background: var(--bg-color); */
  color: var(--tx-color);
}

/*プロフィールエリア*/
.profile-area {
  display: flex;
  /*flex-direction: column;*/
  /*←お好みで縦並びにできます*/
  justify-content: flex-start;
  gap: 24px;
  margin: 2vh 0;
}

/*プロフィール画像*/
.iconarea {
  width: 68px;
  height: 68px;
  border-radius: 50%;
}

/*プロフ画像横のフリースペース*/
.freespace {
  font-size: 12px;
  line-height: 1.6em;
}

/*検索窓*/
.queryinput { 
  margin: 0.2rem;
  background-color: var(--article-color);
  border-radius: 0.5em;
  font-size: 1em;
  padding: 0.25em 0.5em;
  max-width: calc( 25vw - 9em);	/* 横幅最大値 */
  min-width: 150px;				/* 横幅最小値 */
}

/*検索ボタン*/
.submitbutton {
  background-color: var(--link-color);
  color: var(--white);
  font-size: 1em;
  padding: 0.25em 0.67em;
  border-radius: 1em;
  font-weight: bold;
  display: inline-block;
  margin: 0 0 0 3px;
}

.searchbox .submitbutton:hover {
  background-color: var(--main-color);
  color: var(--white);
}

/*カテゴリ一覧*/
.container ul.cattree {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  /*幅100ox以下の時に1列表示*/
  gap: 8px;
  overflow-wrap: anywhere;
  /*文字を区切り良く折り返す*/
}

/*カテゴリひとつひとつのスタイル*/
.container a.catlink {

  display: inline-block;
  position: relative;
  width: 100%;
  height: 30px;
  padding: .3rem 0 .3rem .3rem;
  border-right: 1.5em solid var(--link-color);
  background-color: var(--article-color);
  color: var(--tx-color);
}

.container a.catlink::before {
    position: absolute;
    bottom: 2px;
    right: -20px;
    z-index: -1;
    transform: rotate(5deg);
    width: 100%;
    height: 50%;
    /* background-color: #d0d0d0; */
    content: "";
    filter: blur(4px);
}

/*カテゴリひとつひとつのスタイル（マウスをかざした時）*/
.container a.catlink:hover {
  color: var(--main-color);
  border-right: 1.5em solid var(--main-color);
  /*メインカラーが濃い場合にテキスト色を白にする*/
  transition: .4s ease;
}

/*カウントダウン*/
.countdown {
  position: relative;
  padding: 24px;
  border-radius: 8px;
  overflow: hidden;

  background: #f4f4f4;
  border-left: solid 6px #5bb7ae;
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.33);
}

/*イベント*/
.iventmemo{
    padding: 0.5em 1em;
    margin: 2em 0;
    color: #5d627b;
    background: white;
    border-top: solid 5px #62c1ce;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.22);
}
.iventmemo .box-title {
    display: inline-block;
    top: -27px;
    left: -3px;
    padding: 0 9px;
    height: 25px;
    line-height: 25px;
    font-size: 17px;
    background: #62c1ce;
    color: #ffffff;
    font-weight: bold;
    border-radius: 5px 5px;
}

/* 各行 */
.countdown p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0;
  font-weight: bold;
  position: relative;
  z-index: 1; /* 背景より前に */
  color: #000;
}

/* カウント部分（デジタル風） */
.countdown span {
  font-family: 'Courier New', monospace;
  background: #000;
  color: #ffd700;
  padding: 6px 14px;
  border-radius: 8px;
  letter-spacing: 1px;
  min-width: 120px;
  text-align: right;
}

/* 24時間切ったら演出 */
.blink {
  animation: pulse 0.8s ease-in-out infinite;
  background: #ffd700;
  color: #000;
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.pin_icon{
  position: relative;
  text-align: center;
  top: 20px;
  z-index: 1;
}

.copyright{
  opacity: 0.5;
  font-size: small;
  margin:.2em 0;
}

/*新着画像欄*/
.imagelist_wrap {
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 40px;
}
.imagelist_wrap .imagelistitem {
  display: inline-block;
  width: 50%;
  height: auto;
  aspect-ratio: 1/1;
}
.imagelist_wrap .imagelistitem a {
  display: block;
  width: 100%;
  height: 100%;
}
.imagelist_wrap .imagelistitem a img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  padding: 2%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}
.imagelist_wrap .imagelistitem a img.nsfw {
  position: relative;
  overflow: hidden;
}
.imagelist_wrap .imagelistitem a img.nsfw:before {
  font-family: "Material Symbols Outlined";
  content: "\e002";
  vertical-align: middle;
  margin-right: 5px;
  font-weight: 400;
  color: #ffffff;
  display: block;
  width: 100%;
  height: 100%;
  background: #0000003a;
  position: absolute;
  z-index: 1;
  text-align: center;
  font-size: 50px;
  margin: auto;
  top: 0;
  padding: 20% 0 0;
}
@media (min-width: 768px) {
  .imagelist_wrap .imagelistitem a img.nsfw:before {
    font-size: 70px;
  }
}
.imagelist_wrap .imagelistitem a img.nsfw:after {
  content: "NSFW\aクリックで表示します";
  white-space: pre;
  color: #ffffff;
  display: block;
  text-align: center;
  position: absolute;
  z-index: 1;
  top: 0;
  height: 100%;
  padding-top: calc(20% + 54px);
  right: 0;
  left: 0;
  font-size: 13px;
  line-height: 1.4em;
}
.imagelist_wrap .imagelistitem a:hover {
  opacity: 0.6;
}
@media (min-width: 481px) {
  .imagelist_wrap .imagelistitem {
    width: 33%;
  }
}
@media (min-width: 768px) {
  .imagelist_wrap .imagelistitem {
    width: 33%;
  }
}

/*-------------------------------------------------------------------------左の投稿一覧エリア------------------------------------*/

.contents {
  width: 70%;
  /* background-color: var(--bg-color); */
  padding: 5vw;
}

/*フェードイン用ダミー*/
.up_trigger {
  height: 1px;
}

/*Javascriptでふわっとフェードイン用CSSここから*/
article {
  margin: 0 auto 2vw;
  width: 100%;

  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);

  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.8s var(--ease-out-cubic),
  transform 0.8s var(--ease-out-quint);
}

article.isActive {
  opacity: 1;
  transform: translateY(0);
}

/*ここまで*/

/*各投稿を包むコンテナ*/
.post-wrapper {
  position: relative;
}

/*各投稿の左上の日付部分*/
.postdate {
  background: var(--main-color);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  line-height: 0.5rem;
  position: absolute;
  top: 0;
  left: 0;
  /*←「right」にすると右上にできます*/
  z-index: 5;
  margin: -10px;
  padding: 5px 15px;
  letter-spacing: .18em;
}

/*投稿本文*/
.comment {
  background-color: var(--article-color);
  padding: 1.8rem 2rem 1.4rem;
  line-height: 1.8em;
  border-radius: 8px;
}

/*投稿本文内のURL*/
.comment a {
  color: var(--link-color);
}

/*リンクのホバーエフェクト*/
.comment a:hover {
  text-decoration: 0.8px underline wavy var(--link-color);
  /*下線波*/
  text-underline-offset: 4px;
  /*下線と文字の間隔*/
  transition: .2s;
  /*切り替わる秒数*/
}

/*投稿本文内の画像*/
.comment img {
  width: 100%;
  height: auto;
  margin: 1vh 0;
}

/*各投稿の左下のカテゴリ・編集ボタン部分全体*/
.post-bottom-item {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  margin-top: 8px;
}

/*各投稿左下のカテゴリが複数の時に横並び*/
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/*各投稿の左下のカテゴリのスタイル*/
.categories a {
  display: block;
  padding: 5px 15px;
  background-color: var(--main-color);
  color: var(--white);
  font-weight: 500;
  border-radius: 30px;
}

/*各投稿の左下のカテゴリの前に「#」をつける*/
.categories a:before {
  content: "#";
  margin-right: 2px;
}

/*各投稿の左下の編集ボタン*/
.editlink a {
  padding: 3.5px 15px;
  background-color: var(--article-color);
  border: 2px solid var(--main-color);
  display: block;
  border-radius: 30px;
  opacity: 0.7;
  /*少し透明度下げる*/
}

/*URL*/
a img{
  display:block;
}

/*----------------------------------------------------------------カードリンク*/

.cardlink {
  display: block;
  width: 100%;
  margin: 1vh 0;
  text-decoration: none !important;
  /* リンク文字の下線を消す */
  overflow: hidden;
}

/*カード外枠 */
.cardlinkbox {
  border: 1px solid var(--main-color);
  border-radius: 16px;
  /* 角丸 */
  background-color: var(--article-color);
  /* 背景色 */
  display: flex;
  /* 内部レイアウトのFlexbox化 */
  overflow: hidden;
}

/*リンクカード内の画像枠*/
.cardlinkimage {
  background-image: linear-gradient(-30deg, #8a8, #e0f0e0);
  /* プレースホルダ的な背景グラデーション(※og:imageの画像指定が読み込まれたら、この値は上書きされます) */
  background-size: cover;
  /* 背景画像で枠を埋める */
  background-position: center center;
  /* 背景画像を中央に寄せる */
  background-repeat: no-repeat;
  /* 背景画像を繰り返さない */
  overflow: hidden;
}

.cardlinkimage:hover {
  object-fit: cover;
  aspect-ratio: 1.91/1;
  height: 100%;
  transform: scale(1.1);
  transition: transform .7s;
  opacity: 0.7;
}

/*リンクカード内のテキスト枠 */
.cardlinktextbox {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background-color: var(--article-color);
  z-index: 8;
}

/* リンクタイトル */
.cardlinktitle {
  padding-bottom: 1vh;
  /* 内側下端の余白量 */
  font-size: 1rem;
  color: var(--tx-color);
}

/* リンク概要文 */
.cardlinkdescription {
  line-height: 1.6;
  /* 行の高さ */
  color: var(--tx-color);
  /* 文字色 */
  line-clamp: 2;
  /* (既存指定の上書き) 最大2行まで見せる */
  -webkit-line-clamp: 2;
  /* (既存指定の上書き) 最大2行まで見せる */
  text-decoration: none;
  font-size: 10px;
}

/* リンクドメイン */
.cardlinkurl {
  color: var(--link-color);
  text-decoration: none;
}

/* ----------------------------------- */
/* リンクカードの装飾(サイズL用の追記) */
/* 前述の「サイズS/L共通部分」と合わせて、1つのカードデザインになります。 */
/* ----------------------------------- */
.cardsize-L {
  flex-direction: column;
  /* 画像とテキストは縦に並べる(Flexbox) */
}

/* ▽リンクカード内の画像枠 */
.cardsize-L .cardlinkimage {
  aspect-ratio: 1.91 / 1;
  /* 画像枠の縦横比を指定= (横)1.91：(縦)1 */
  width: 100%;
  /* 横幅は枠最大に拡げる */
  height: auto;
  /* 高さは自動計算 */
  border-radius: 6px 6px 0 0;
  /* 上側だけ角丸 */
}

/* ▽リンクカード内のテキスト枠 */
.cardsize-L .cardlinktextbox {
  border-top: 1px solid #ccc;
  /* 上側の枠線 */
}

/* ▽リンクカードのテキスト枠内の3要素 */
.cardsize-L .cardlinktitle {
  font-weight: bold;
}

/* 太字 */
.cardsize-L .cardlinkdescription {
  min-height: 2.5em;
}

/* 内容量が少ない場合でも一定の高さを確保 */
.cardsize-L .cardlinkurl {
  border-top: 1px solid #ddd;
  /* 上側の枠線 */
  margin-top: 0.5em;
  /* 上側の枠線より上の余白量 */
  padding-top: 0.5em;
  /* 上側の枠線より下の余白量 */
  font-size: 12px;
  /* 文字サイズ(小さめ) */
}



/*ページャー（一番下のページ番号が並んでいる部分）*/

/*ページャー全体*/
.number {
  margin-top: 3vh;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/*ページャー内の各ページ番号リンク*/
a.pagenumlink {
  display: flex;
  justify-content: center;
  /*水平方向中央揃え*/
  align-items: center;
  /*垂直方向中央揃え*/
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
}

/*現在のページ番号*/
a.pagenumhere {
  background-color: var(--main-color);
  color: var(--white);
  font-weight: 500;
}

/*---------------------------------------------------------------スライドインメニュー*/



/* クイックポスト欄（スライドインメニュー） */
.sliding-menu {
  position: fixed;
  top: -100%;
  right: 0;
  width: 30%;
  height: 100%;
  padding: 2vw;
  margin-right: 8%;
  overflow-y: auto;
  transition: top 0.5s ease;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-color);
  border-left: 1px solid;
}

.sliding-menu.open {
  top: 0;
}

.menu-icon.active+.sliding-menu {
  bottom: 0;
}

/*クイックポストエリアを包むコンテナ*/
.postform {
  height: 100%;
}

/*スライドアップメニュー内のテキストエリアを包むコンテナ*/
.line-textarea {
  height: 30%;
}

/*スライドアップメニュー内のテキストエリア*/
.sliding-menu .tegalogpost {
  width: 100%;
  max-width: 100%;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8em;
  padding: 1vw;
  border-radius: 10px 10px 10px 0;
  height: 100% !important;
  background-color: var(--article-color);
}

/*-------------------------------スライドアップメニュー内の装飾ボタン*/

/*装飾ボタン群を包む全体のコンテナ*/
.line-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

/*「投稿する」ボタン*/
.postbutton {
  display: block;
  padding: 0.8rem 2rem;
  text-align: center;
  font-weight: 700;
  margin-bottom: 1.1rem;
  letter-spacing: .18em;
  border-radius: 0 0 10px 10px;
  background-color: var(--link-color);
  color: var(--white);
}

/*装飾ボタンの余白を整える*/
span.decoBtns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-bottom: 1.2rem;
}

/*装飾ボタンひとつひとつのスタイルを一括指定*/
.decoBtns input[type=button] {
  border-radius: 30px;
  padding: 8px 12px;
  font-size: 0.8rem;
  background-color: var(--article-color);
  letter-spacing: .18em;
}

.decoBtns input[type=file] {
  font-size: 12px;
  padding-bottom: 1.2rem;
  letter-spacing: .18em;
}

/*装飾ボタンのカテゴリ群の並び方・余白を一括調整*/
.catChecks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.catChecks label {
  display: flex;
  align-items: center;
}

.line-control input[type=checkbox] {
  background-color: var(--white);
  appearance: auto;
  margin-right: 4px;
}

.uploadplus input[type=checkbox]{
  background-color: var(--white);
  appearance: auto;
  margin-right: 4px;
}

.uploadplus input[type=radio]{
  background-color: var(--white);
  appearance: auto;
  margin-right: 4px;
}

/*------------------------------------------------------------------------その他*/

/*埋め込みのスタイル*/
iframe {
  display: block;
  margin: 16px 0;
  max-width: 100%;
}


/*リストの装飾*/
.decorationL {
  list-style: disc;
  padding-left: 1rem;
  margin: 1rem 0;
}


/*極小サイズの文字サイズ*/
.decorationT {
  font-size: 9px;
}

/*引用*/
.decorationQ {
  margin: .5rem 0;
  padding: .5em;
  background-color: var(--white);
  opacity: .7;
  border: 1px solid;
  border-radius: 16px;
}

/*強調*/
.decorationE{
  line-height: 2em;
  font-size:xx-large;
}

/*「続きを読む」ボタン*/
.readmorebutton {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: center;
  padding: 4px 16px;
  margin: 1rem 0;
  border: 1px solid;
  border-radius: 16px;
}

/*h1装飾*/
.decoration1.deco-{
  display: inline-block;
  font-size: 200%;
  font-weight: bolder;
  line-height: 2em;
}

/*h2装飾*/
.decoration2{
  display: inline-block;
  font-size: 150%;
  font-weight: bold;
  line-height: 2em;
}
/*h3装飾*/
.decoration3{
  display: inline-block;
  font-size: 120%;
  font-weight: bold;
  line-height: 2em;
}

/*非表示*/
.logstatus-fixed 
.side-item,
.dateseparator,
.utilitylinks,
.num,
.catseparator,
.post_title{
  display: none !important;
}

#scrollTopBtn {
  z-index: 100;
  background: #333;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  transition: opacity 0.3s;
}

#scrollTopBtn:hover {
  background: #555;
}

.pagelinks{
  font-size:1.2em;
	text-align:center;
	line-height:0.95em;
	font-weight:bold;
	color: transparent;
	background: linear-gradient( 45deg, var(--main-color) 0% 50%, var(--link-color) 50% 100% );
  -webkit-background-clip: text;
}

/*単独表示時のページ送り*/
.prevlink::before {  
  content: '';
}
.nextlink::before {
  content: '';
}

/*ギャラリーモード用*/
.gallery_container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1px;
	grid-template-rows: auto;
	.gallery_contents {
		position: relative;
		display: grid;
		place-content: center;
		background-color: var(--white);
		.imagelink,
		figure {
		display: none;
		}
		.imagelink:first-child,
		figure:first-child
		 {
			display: block;
		}
		img,
		video {
			width: 100%;
			max-width: 100%;
			height: auto;
			aspect-ratio: 1/1;
      object-fit: cover;  /* 画像を正方形に収めつつ切り取る */
      object-position: center; /* 中心を基準に切り取る */
		}
		.pictcount {
			padding: 3px 5px;
			position: absolute;
			bottom: .3em;
			left: .2em;
			line-height: 1;
			background-color: var(--white);
      color: var(--link-color);
			font-size: .8em;
			border-radius: 3px;
			span {
				display: none;
			}
			a {
				color: currentColor;
			}
		}
		.posttime {
			display: none;
		}
	}
}

.lb-caption {
	margin: .3em 0;
	padding: .3em 1em;
	background-color: #fff;
}

/*-------------------------------------------------------------------------------タブレット・スマホ用CSS-----------------------------------------------------*/


@media screen and (max-width: 767px) {

  /*横揺れ防止*/
  html {
	overflow-x: hidden;
  }

  /*全体*/
  body {
    font-size: 0.75rem;
  }

  /*コンテンツを包む全体のコンテナ*/
  .wrapper {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  /*右の細いメニューエリア*/
  .menu-icon-container {
    width: 12%;
  }

  /*てがろぐ著作権表記*/
  .poweredby {
    font-size: 0.6rem;
    letter-spacing: .3em;
    font-feature-settings: initial;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .home-icon,
  .comic-icon,
  .gallery-icon,
  .heart-icon,
  .music-icon,
  .menu-icon {
    padding: 1rem;
  }

  .menu-icon-container svg {
    width: 1.4rem;
    height: 1.4rem;
  }

  /*左の投稿一覧・プロフィールエリアを包むコンテナ*/
  .container {
    width: 88%;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.8rem;
  }

  /*検索窓*/
  .queryinput { 
    background-color: var(--article-color);
    border-radius: 0.5em;
    font-size: 1em;
    padding: 0.25em 0.5em;
    max-width: calc( 25vw - 9em);	/* 横幅最大値 */
    min-width: 150px;				/* 横幅最小値 */
  }

  /*検索ボタン*/
  .submitbutton {
    background-color: var(--link-color);
    color: var(--white);
    font-size: 1em;
    padding: 0.25em 0.67em;
    border-radius: 1em;
    font-weight: bold;
    display: inline-block;
    margin: 0 0 0 3px;
  }

  .searchbox .submitbutton:hover {
    background-color: var(--main-color);
    color: var(--white);
  }

  .header {
    position: relative;
    width: 100%;
    padding: 56px 16px;
    margin-top: 56px;
    margin-bottom: 70px;
    height: 100%;
    border-top: 1px solid var(--main-color);
  }

  .contents {
    width: 100%;
    margin-top: 3vh;
    padding: 16px;
  }

  article {
    margin: 0 auto 38px;
  }

  .postdate {
    font-size: 8px;
    font-weight: inherit;
    margin: 0;
  }

  .comment {
    padding: 36px 24px 24px;
    line-height: 1.6em;
  }

  /*各投稿の左下のカテゴリ・編集ボタン部分*/
  .post-bottom-item {
    font-size: 8px;
  }

  .container a.catlink {
  }

  /*スライドインメニュー*/
  .sliding-menu {
    width: 88%;
    margin-right: 12%;
    padding: 1rem;
    border-left: none;
  }

  .sliding-menu .tegalogpost {
    padding: 1rem;
  }

  /*スライドインメニュー内の装飾ボタン*/
  .decoBtns input[type=button] {
    font-size: 10px;
  }

  .catChecks {
    font-size: 10px;
    gap: 0.5rem;
  }

  .postbutton {
    display: block;
    padding: 0.8rem 2rem;
    text-align: center;
    font-weight: 700;
    margin-bottom: 1.1rem;
    letter-spacing: .5em;
    border-radius: 0 0 10px 10px;
    background-color: var(--link-color);
    color: var(--white);
  }

  /*埋め込みのスタイル*/
  iframe {
    height: auto;
  }

  /*Twitter埋め込みのレスポンシブ対応*/
  .twitter-tweet {
    max-width: 100%;
  }

  /*ギャラリーモード用*/
  .gallery_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    grid-template-rows: auto;
    .gallery_contents {
      position: relative;
      display: grid;
      place-content: center;
      background-color: var(--white);
      .imagelink,
      figure {
      display: none;
      }
      .imagelink:first-child,
      figure:first-child
      {
        display: block;
      }
      img,
      video {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        object-fit: cover;  /* 画像を正方形に収めつつ切り取る */
        object-position: center; /* 中心を基準に切り取る */
      }
      .pictcount {
        padding: 3px 5px;
        position: absolute;
        bottom: .3em;
        left: .2em;
        line-height: 1;
        background-color: var(--white);
        color: var(--link-color);
        font-size: .8em;
        border-radius: 3px;
        span {
          display: none;
        }
        a {
          color: currentColor;
        }
      }
      .posttime {
        display: none;
      }
    }
  }

  .lb-caption {
    margin: .3em 0;
    padding: .3em 1em;
    background-color: #fff;
  }
}

@media (max-width: 480px) {
  /*横揺れ防止*/
  html {
	overflow-x: hidden;
  }

  /*全体*/
  body {
    font-size: 0.75rem;
  }

  /*コンテンツを包む全体のコンテナ*/
  .wrapper {
    position:relative;
  }

  /*右の細いメニューエリア*/
  .menu-icon-container {
    width: 100%;
    height: 10%;;
    position: fixed;
    top: 90%;
    z-index: 1001;
    padding: 0.5em;
    background: linear-gradient(to top, #fdff78, transparent);
    backdrop-filter: blur(5px);
    opacity: 0.4;
  }

 .menu-icon-container:hover {
		opacity: 1;
	}

  /*3つ並んだボタンエリア*/
  .menu-icons {
    flex-direction: row;
  }

  .home-icon,
  .comic-icon,
  .gallery-icon,
  .heart-icon,
  .music-icon,
  .menu-icon {
    padding: 0.5rem;

  }

  .menu-icon-container svg {
    width: 1.6rem;
    height: 1.6rem;
  }

  /*左の投稿一覧・プロフィールエリアを包むコンテナ*/
  .container {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
  }

  /*検索窓*/
  .queryinput { 
    background-color: var(--article-color);
    border-radius: 0.5em;
    font-size: 1em;
    padding: 0.25em 0.5em;
    max-width: calc( 25vw - 9em);	/* 横幅最大値 */
    min-width: 150px;				/* 横幅最小値 */
  }

  /*検索ボタン*/
  .submitbutton {
    background-color: var(--link-color);
    color: var(--white);
    font-size: 1em;
    padding: 0.25em 0.67em;
    border-radius: 1em;
    font-weight: bold;
    display: inline-block;
    margin: 0 0 0 3px;
  }

  .searchbox .submitbutton:hover {
    background-color: var(--main-color);
    color: var(--white);
  }

  .header {
    position: relative;
    width: 100%;
    padding: 56px 16px;
    margin-bottom: 70px;
    height: 100%;
    border-top: 1px solid var(--main-color);
  }

  .contents {
    width: 100%;
    margin-top: 2vh;
    padding: 8px;
  }

  article {
    margin: 0 auto 38px;
  }

  .postdate {
    font-size: 8px;
    font-weight: inherit;
    margin: 0;
  }

  .comment {
    padding: 36px 12px 12px;
    line-height: 1.6em;
  }

  /*各投稿の左下のカテゴリ・編集ボタン部分*/
  .post-bottom-item {
    font-size: 8px;
  }

  .container a.catlink {
  }

  /*スライドインメニュー*/
  .sliding-menu {
    width: 88%;
    margin-right: 12%;
    padding: 1rem;
    border-left: none;
  }

  .sliding-menu .tegalogpost {
    padding: 1rem;
  }

  /*スライドインメニュー内の装飾ボタン*/
  .decoBtns input[type=button] {
    font-size: 10px;
  }

  .catChecks {
    font-size: 10px;
    gap: 0.5rem;
  }

  .postbutton {
    display: block;
    padding: 0.8rem 2rem;
    text-align: center;
    font-weight: 700;
    margin-bottom: 1.1rem;
    letter-spacing: .5em;
    border-radius: 0 0 10px 10px;
    background-color: var(--link-color);
    color: var(--white);
  }

  /*埋め込みのスタイル*/
  iframe {
    height: auto;
  }

  /*Twitter埋め込みのレスポンシブ対応*/
  .twitter-tweet {
    max-width: 100%;
  }

  /*ギャラリーモード用*/
  .gallery_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    grid-template-rows: auto;
    .gallery_contents {
      position: relative;
      display: grid;
      place-content: center;
      background-color: var(--white);
      .imagelink,
      figure {
      display: none;
      }
      .imagelink:first-child,
      figure:first-child
      {
        display: block;
      }
      img,
      video {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        object-fit: cover;  /* 画像を正方形に収めつつ切り取る */
        object-position: center; /* 中心を基準に切り取る */
      }
      .pictcount {
        padding: 3px 5px;
        position: absolute;
        bottom: .3em;
        left: .2em;
        line-height: 1;
        background-color: var(--white);
        color: var(--link-color);
        font-size: .8em;
        border-radius: 3px;
        span {
          display: none;
        }
        a {
          color: currentColor;
        }
      }
      .posttime {
        display: none;
      }
    }
  }

  .lb-caption {
    margin: .3em 0;
    padding: .3em 1em;
    background-color: #fff;
  }
}