
    * { margin: 0; padding: 0; box-sizing: border-box; }

:root {
   --bg-white: #fafafa;
   --color: #333;
   --1cblack-rgb: 28, 28, 28;
   --1c-black: #1c1c1c;
   --a-gray: #757575;
   --hover-wh: #fff;
   --title-gray: #b2b2b2;
   --ccc: #ccc;
   --late: #fff8e7;
}

html, body {
  width: 100%;
  font-size: 12px;
  margin: 0;
  padding: 0;
  background: var(--bg-white);
  font-family: 'Sawarabi Gothic', 'Noto Emoji' , sans-serif;
  z-index: -3;
  display: flex; /* footer用三つ↓ */
  flex-flow: column; 
  min-height: 100vh; 
  color: rgba(var(--1cblack-rgb), 0.7);
}

a {
  color: var(--color);
  text-decoration: none;
}

a:hover {
  color: var(--hover-wh);
}

.gone {
  color: var(--title-gray);
}

.light-orb {
    position: fixed;
    top: -50vh;
    left: -50vw;
    width: 200vw;
    height: 200vh;
    background: conic-gradient(
        from -50deg at 50% 50%, 
        rgba(250, 250, 250, 1.0) 0%,  /* #1c1c1c */
        rgba(255, 248, 231, 0.8) 55%, /* #fff8e7 */
        rgba(243, 208, 170, 0.8) 63%, /* orange */
        rgba(248, 187, 189, 0.6) 78%, /* pink */
        rgba(130, 143, 109, 0.8) 80%, /* green */
        rgba(31, 99, 112, 0.5) 85%, /* blue */
        rgba(231, 238, 255, 0.9) 100% /* #e7eeff */
      );
    z-index: -2;
    animation: orb-rotation 70s linear infinite;
    transform-origin: center center;
}

@keyframes orb-rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

        .glass-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            backdrop-filter: blur(60px); 
            z-index: -1;
            pointer-events: none;
        }

.header,
.tega-head {
  width: 100%;
  height: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 35vw;
  margin-bottom: 25vw;
}

.logo{
  position: relative;
  letter-spacing: -0.02em;
  padding-right: 0.5em;
}

.f {
  display: inline-block; 
  font-family: "Instrument Serif",serif;
  font-size: 30vw;
  line-height: 1;
  transform: scaleX(1.2);
  transform-origin: left; 
  color: var(--color);
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.5), 
                        2px 2px 10px rgba(0, 0, 0, 0.3);
}

.title,
.tega-title {
  display: inline-block;
  position: absolute;
  white-space: nowrap;
  font-family: "Caveat", cursive;
  font-size: 10vw;
  color: var(--title-gray);
  letter-spacing: -0.05em;
  padding-right: 1em;
  bottom: -0.2em;
  left: 0.5em;
  transform: rotate(-15deg);
}

.title {
  clip-path: inset(0 100% 0 0);
}

.title.anime {
  animation: reveal 2.0s 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes reveal {
  to { clip-path: inset(0 0% 0 0); }
}

.nav {
  display: flex;
  justify-content: center;
  font-family: 'EB Garamond', 'Noto Emoji', serif;   
  color: var(--color);
  gap: 40px;
  opacity: 0;
  translate: 0 16px;
  top: 0;
}

.nav ul {
  display: flex;
  gap: 40px;
  padding: 0;
}

.nav li {
  list-style: none;
}

.nav.anime {
animation: nav-up 0.8s ease forwards;
}

@keyframes nav-up {
to { opacity: 1; translate: 0 0; }
}

.nav a {
  text-decoration: none;
  border-bottom: none;
}

.nav ul li a {
  font-size: 1rem; 
  color: var(--color);
}

.item {
  display: block;
  font-size: 1rem;
}

.item,
nav ul li a {
    cursor: pointer;
    transition: all .5s;
    border-bottom: 5px solid transparent;
}

.item.active {
  display: inline;
}

nav ul li a:hover,
.item:hover {
  border-bottom: 5px solid #fff8e7;
}

main {
    margin: 3em auto;
    width: 80%;
    max-width: 500px;
    flex: 1;
    position: relative;
    z-index: 3;  
}

section {
    text-align: left;
}

.box {
    display: none;
    z-index: 998;
}

.box.active {
    display: block;
    animation: fadeIn .5s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

h1 {
  font-size: 2.3rem;
}

h2 {
  font-family: 'Noto Serif JP' , sans-serif;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.6rem;
  margin:  1rem 0;
  font-weight: normal;
}


h1, h3, h4 {
  font-family: 'Caveat', Noto Emoji , sans-serif;
  color: var(--color);
}

mark {
  color: var(--color);
  background: linear-gradient(transparent 45%, #fff8e7 55%);
}

hr {
  border: none;
  display: block;
  height: 1px;
  border-top: 1px solid rgba(var(--1cblack-rgb), 0.08);
  margin: 20px 0;
}

.box1 {
  display: inline-block;
  background-color: transparent;
  color: var(1c-black);
  padding: 3px 5px;
  margin: 0px 4px 10px 0px;
  border: solid 1px #ccc;
  border-radius: 3px;
}

/* アコーディオン */
.aco {
  width: 100%; 
  max-width: 500px;
  margin-bottom: 1px; 
}

.aco summary {
  position: relative;
  cursor: pointer;
  padding: 18px 20px; 
  list-style: none;
  background: rgba(255, 255, 255, 0.4); 
  backdrop-filter: blur(5px); 
  border-bottom: 1px solid #EBEAE6; 
  color: var(--1c-black);
  transition: all 0.3s;
}

.aco summary::-webkit-details-marker { display: none; }

.aco summary:after {
  font-family: "Font Awesome 6 Free"; 
  content: "\f107"; 
  font-weight: 900;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: #ccc;
  transition: 0.3s;
}

.aco[open] summary:after {
  transform: translateY(-50%) rotate(180deg);
  color: var(--1c-black);
}

.aco-content {
  padding: 25px 20px;
  background: var(--late);
  line-height: 2;
}

.img-icon1 {
    float: left;
    width: 85px;
    height: 85px;
    object-fit: cover;
    background: url('images/phoshino.jpg') center/cover;
    border: solid 1px;
    border-radius: 10px;
    margin: 0 5px 0 0;
 }

.img-icon2 {
    float: left;
    width: 85px;
    height: 85px;
    object-fit: cover;
    background: url('images/ptouma.png') center/cover;
    border: solid 1px;
    border-radius: 10px;
    margin-right: 5px;
 }

.url-copybtn {
  background: transparent;
  border: 1px solid #ccc;
  padding: 2px 8px; 
  margin-top: 4px; 
  font-family: 'Instrument Serif', serif;
  font-size: 0.9rem;
  color: var(--1c-black);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}

.url-copybtn:hover {
  background: var(--1c-black);
  color: var(--hover-wh);
}

.info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info ul li {
  display: flex;
  align-items: center;
  padding: 2px 0;
}

.info ul li span:first-child {
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 60px;
}

.info ul li::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hover-wh);
  opacity: 0;
  margin: 0 12px;
  order: 2;
}

.info ul li span:last-child {
  flex-shrink: 0;
  white-space: nowrap;
  order: 3;
}

/* タブ */
.tab-labels {
  display: flex;
  justify-content: center; 
  gap: 50px; 
  margin-top: -2px;
}

.tab-label {
  display: inline-block;
  font-family: 'EB Garamond', 'Noto Emoji', serif;
  color: var(--color);
  margin-bottom: 60px;
  padding: 5px 0;
  cursor: pointer;
  border: 0;
  border-radius: 0;
  text-align: center;
}

.tab-label.active {
  border-bottom: 5px solid #fff8e7;
}

.t-page .tab-label.active {
  border-bottom: 5px solid #E7EEFF;
}


.tab-content {
  display: none;
  margin-top: -1px;
  animation: fadeIn .5s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


.tab-content.active {
  display: block;
}

.tab-labels,
.tab-content {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* トップに戻るボタン*/
.to-top-btn {
  position: fixed;
  bottom: 30px; 
  right: 30px;  
  z-index: 999;
  background: rgba(255, 255, 255, 0.4); 
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: var(--1c-black);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-bottom: none !important; 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.to-top-btn:hover {
  background: var(--1c-black);
  color: var(--hover-wh);
  transform: translateY(-3px); 
}

.to-top-btn.is-show {
  opacity: 1;
  visibility: visible;
}

.to-top-btn .material-symbols-outlined {
  font-size: 22px;
 transform: rotate(-45deg);
}


/* てがろぐ */
    .articles {
      padding: 50px 0;
      display: flex;
      flex-direction: column;
      gap: 48px;
    }

    .article-wrap {
      position: relative;
      padding-top: 15px;
      margin-bottom: 130px;
    }

    .article-box {
      width: 100%;
      line-height: 1.8;
      padding: 52px 35px 44px 35px;
      border-top: 1px solid rgba(255, 255, 255, 0.7);
      border-bottom: 1px solid rgba(var(--1cblack-rgb), 0.1);
      background: rgba(255, 255, 255, 0.15);
      box-shadow: 0 -1px 0px rgba(0, 0, 0, 0.05), 0 8px 10px -8px rgba(0, 0, 0, 0.1);
}

.kiji-up {
  opacity: 0;               
  transform: translateY(20px); 
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
  transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); 
}

.kiji-up.visible {
  opacity: 1;
  transform: translateY(0); 
  max-width: 500px;   
  margin: 0 auto;
}

.article-date {
  position: absolute;
  top: 4rem;
  left: calc(50% - 250px); 
  transform: none; 
  font-size: 1.4rem; 
  font-family: 'Caveat', serif; 
  letter-spacing: 0.05em;
  color: var(--color);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  filter: none;
}

.tega-flex {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding-top: 10px;
}

.tega-cat {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  padding: 3px 10px;
}

.tega-cat a {
  text-decoration: none !important;
  border-bottom: none !important;
}

.editlink {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding-right: 5px;
}

.editlink a {
  border-bottom: none; 
}

.cat-wrap {
  padding: 0 35px;
  max-width: 570px;   
  margin: 0 auto;
}

.categoryarea {
    margin-bottom: 2.5em;	
}

.categoryTree li {
    display: inline-block;
    border: 1px solid #ccc;
    letter-spacing: 0.1em;
    padding: 6px 12px;
    margin: 4px;	
}

.categoryTree a {
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
}

.hashtaglistarea li {
  display: inline-block;
  color:#555;
  background: var(--hover-wh);
  padding: 10px 14px;
  border-radius:999px;
  margin: 3px 0;
}

.hashtaglistarea li a{
  border-bottom: none !important;
}

.hashtaglistarea li a:hover{
  background: #eee;
  color:#eee;
}

.pagelinks {
  margin: 0 35px;
}

.pagelinks a {
  text-decoration: none !important;
  border-bottom: none !important;
}

.pagenums {
  text-align: center;
  margin: 30px auto;
  padding: 0 10px;
  line-height: 2.2; 
}

.pagenums a {
  display: inline-block;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.9rem;           
  letter-spacing: 0.05em;
  color: var(--color);
  text-decoration: none !important;
  border: 1px solid rgba(204, 204, 204, 0.4); 
  background-color: rgba(255, 255, 255, 0.15); 
  backdrop-filter: blur(4px);                
  -webkit-backdrop-filter: blur(4px);
  min-width: 32px;             
  height: 32px;
  line-height: 30px;       
  text-align: center;
  margin: 0 3px 6px 3px;    
  transition: all 0.3s ease;   
}

.pagenums a:hover {
  color: var(--hover-wh);
  background-color: rgba(var(--1cblack-rgb), 0.8); 
  border-color: var(--1c-black);
}

a.pagenumhere {
  font-weight: bold;
  color: var(--1c-black);
  background-color: #fff8e7 !important; 
  border-color: rgba(var(--1cblack-rgb), 0.3); 
  pointer-events: none;                
}

/* 自由装飾記法 */
.deco-t {
    display: inline-block;
    position: relative;
    max-width: 80%;
    margin: 0 0 1rem 0;
    padding: 0.6rem 1rem;
    border-radius: 20px 20px 20px 0;
    color: #1c1c1c;
    font-size: 0.9rem;
    background-color: #eee;
    border: 1px solid #ccc;
}

/* 
.deco-t::before {
    position: absolute;
    top: -15px;
    width: 20px;
    height: 30px;
    content: '';
    left: -10px;
    border-radius: 0 0 0 15px;
    box-shadow: -3px -15px 0 -7px var(--hover-wh) inset;
}

.deco-t::after {
    content: '灯間'; 
    position: absolute;
    top: -1.6rem;   
    left: 5px;           
    font-size: 0.85rem;   
    color: var(--bg-white);
    font-weight: bold;   
}
 */

.deco-h {
    display: block;
    position: relative;
    max-width: 80%;
    width: fit-content;
    padding: 0.6rem 1rem;
    border-radius: 20px 20px 0 20px;
    color: #fafafa;
    font-size: 0.9rem;
    background-color: #8899A6;
    margin: 0 0 1rem auto;
}

 /* 
.deco-h::before {
    position: absolute;
    top: -15px;
    width: 20px;
    height: 30px;
    content: '';
    right: -10px;
    border-radius: 0 0 15px 0;
    box-shadow: 3px -15px 0 -7px #eee inset;
}
 */ 

.deco-fuse {
  filter: blur(6px); 
  cursor: pointer;
}
.deco-fuse:is(:hover, :active, :focus) {
  filter: none;
}

/* ================================================================ */
/* てがろぐVer 4.5.5β以降で使える、カード型リンク用CSSの抜粋です。 */
/* お使いのスキンのCSSに追記するなどしてご活用下さい。              */
/* ================================================================ */

	/* ---------------------- */
	/* ▼カード型リンクの装飾 */
	/* ---------------------- */
	.cardlink {
		display: inline-block;
                height: auto;
		width: 100%;
		max-width: 500px;               /* 最大幅 (※横幅を制限したくない場合はこれを削除して下さい) */
		padding: 0 0.25em 0.5em 0;      /* 内側の余白量 */
		font-size: 0.9rem;              /* 文字サイズ */
		text-decoration: none !important;          /* リンク文字の下線を消す */
                border-bottom: none !important;
		vertical-align: middle;         /* 行内の上下方向では中央配置 */
	}

		/* ------------------------------------- */
		/* リンクカードの装飾(サイズS/L共通部分) */		/* ※後述の「サイズS用の追記」や「サイズL用の追記」と合わせて、1つのカードデザインになります。 */
		/* ------------------------------------- */
		/* カード外枠 */
		.cardlinkbox {
                        text-decoration: none !important; 
			border: 1px solid #ccc;    /* 枠線 */
			border-radius: 7px;        /* 角丸 */
			background-color: white;   /* 背景色 */
			display: flex;             /* 内部レイアウトのFlexbox化 */
		}
		/* (マウスが載ったとき) */
		.cardlinkbox:hover {
			background-color: var(--bg-white); /* 背景色 */
			border-color: #ccc;        /* 枠線色 */
		}
			/* ▽リンクカード内の画像枠 (※読み込まれたog:imageは、この枠に《背景画像として》描画されます) */
			.cardlinkimage {
				background-image: linear-gradient(-30deg, #8a8, #e0f0e0);  /* プレースホルダ的な背景グラデーション(※og:imageの画像指定が読み込まれたら、この値は上書きされます) */
				background-size: cover;             /* 背景画像で枠を埋める */
				background-position: center center; /* 背景画像を中央に寄せる */
				background-repeat: no-repeat;       /* 背景画像を繰り返さない */
                               
			}
			/* ▽リンクカード内のテキスト枠 */
			.cardlinktextbox {
				display: flex;          /* Flexbox化 */
				flex-direction: column; /* 子要素を縦方向に並べる */
				padding: 1em 1.5em;     /* 内側の余白量 */
                                text-decoration: none !important; 
			}
				/* ▽リンクカードのテキスト枠内の3要素共通 */
				.cardlinktitle,
				.cardlinkdescription,
				.cardlinkurl {
					/* ↓表示行数を制限するための準備 (※システム側では文字数は制限せずに「記述されている全文字」をHTMLに出力しますので、表示分量を制限したい場合はCSSで制御する必要があります。) */
					display: -webkit-box;          /* -webkit-line-clampを使うために必要な記述1 ※A */
					-webkit-box-orient: vertical;  /* -webkit-line-clampを使うために必要な記述2 ※A */
					overflow: hidden;              /* 表示量を制限する場合に必須の記述 */
					/* ↓制限の仕様 */
					line-clamp: 1;                 /* 1行だけ見せる (将来的にはこれだけで実現可能かも) */
					-webkit-line-clamp: 1;         /* 1行だけ見せる (今のブラウザにはこちらが必要で、そのためには上記「※A」も必要) */
					text-overflow: ellipsis;       /* 省略記号(三点リーダー) */
				}
				/* リンクタイトル */
				.cardlinktitle {
                                        display: none;
					padding-bottom: 0.25em;        /* 内側下端の余白量 */
				}
				/* リンク概要文 */
				.cardlinkdescription {
					line-height:1.3;               /* 行の高さ */
					color:#555;                    /* 文字色 */
					line-clamp: 3;                 /* (既存指定の上書き) 最大2行まで見せる */
					-webkit-line-clamp: 3;         /* (既存指定の上書き) 最大2行まで見せる */
				}
				/* リンクドメイン */
				.cardlinkurl {
					color: #999;                   /* 文字色 */
				}

		/* ----------------------------------- */
		/* リンクカードの装飾(サイズS用の追記) */		/* 前述の「サイズS/L共通部分」と合わせて、1つのカードデザインになります。 */
		/* ----------------------------------- */
		.cardsize-S {
			flex-direction: row;                /* 画像とテキストは横に並べる(Flexbox) */
		}
			/* ▽リンクカード内の画像枠 */
/* 1. 元の画像表示用の背景指定などをすべてリセットする */
.cardsize-S .cardlinkimage {
    background-image: none !important; /* ネットからの自動取得画像を消す */
    min-width: 100px;           /* 最小の横幅 */
    min-height: 100px;          /* 最小の高さ */
    background-color: #c7c9d0;       /* ★アイコンの背景色（お好みで変更してください） */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px 0 0 6px; /* 左側だけ角丸 */
    flex-shrink: 0;             /* 枠サイズを自動縮小させない */
}

/* 2. 画像枠の中に Font Awesome のアイコンを強制表示する */
.cardsize-S .cardlinkimage::before {
    font-family: "Font Awesome 5 Free"; /* Font Awesome 6をお使いなら "Font Awesome 6 Free" */
    content: "\f0c1";                   /* fa-link（鎖マーク）を表す固有コード */
    font-weight: 900;                   /* Solidアイコンを表示するのに必須 */
    font-size: 1.8rem;                  /* ★アイコンの大きさ（好みで調整） */
    color: #fafafa;                     /* ★アイコンの色（好みで調整） */
}
			
			/* ▽リンクカード内のテキスト枠 */
			.cardsize-S .cardlinktextbox {
				border-left: 1px solid #ccc; /* 左側の枠線 */
				justify-content:center;      /* Flexboxの上下方向での中央寄せ */
			}
				/* ▽リンクカードのテキスト枠内の3要素 */
				.cardsize-S .cardlinktitle { order: 2; }        /* タイトルは、2番目に表示 */
				.cardsize-S .cardlinkdescription { order: 3; }  /* 概要文　は、3番目に表示 */
				.cardsize-S .cardlinkurl { order: 1; }          /* ドメインは、1番上に表示 */

		/* ----------------------------------- */
		/* リンクカードの装飾(サイズ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:0.75rem;           /* 文字サイズ(小さめ) */
				}
/* てがろぐ　ここまで */

/* フォーム */
.mailform {
  width: min(100%, 550px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

form {
  margin: 0 auto;
  padding: 15px 0;
}

form p {
  padding: 0;
}

input::placeholder, textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

input:focus::placeholder, textarea:focus::placeholder {
  color: transparent;
  transition: .4s;
}

input[type], textarea, button:not(.newiine_btn) {
  font-family: inherit;
  font-size: inherit;
  height: initial;
  max-width: 550px;
  line-height: 1.7;
  letter-spacing: 1.5px;
  color: var(--color);
  padding: 5px;
  margin: 0;
  appearance: none;
  box-shadow: none;
  border-radius: 0;
  border: 0;
  font-weight: normal;
  background: var(--hover-wh);
  transition: all .5s;
}

input[type], textarea {
  border: 2px solid var(--hover-wh);
}

input[type] {
  width: 100%;
}

.comment {
  margin-bottom: 10px;
  height: 100px;
  width: 100%;
}

form input[type].btn {
  cursor: pointer;
  width: calc((100% - 10px) / 2);
  border: 0px solid #000;
}

.btn:hover {
  transition: all .4s;
}

  /* ダイスボタン */
.dice-btn {
  display: inline-flex;
  justify-content: space-between;
  width: 105px;
  align-items: center;
  border: 0;
  gap: 8px;         
  padding: 8px 0;
  background: transparent !important;
  cursor: pointer;
  color: var(--1c-black);
  transition: transform 0.3s ease; 
}

.dice-btn:hover {
  transform: translateY(-2px); 
}

.dice-btn i {
  display: inline-block; 
  transition: transform 0.6s ease; 
  font-size: 2em;
}

/* ダイス・ポップアップ */
.dice-popup {
  display: block;
  position: absolute;
  z-index: 10;
  top: -150px;
  left: 0;
  width: auto;
  width: max-content;
  max-width: calc(100vw - 40px); 
  margin: 15px 0;
  padding: 35px 20px 45px 20px; 
  background: rgba(255, 255, 255, 0.75); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--1c-black);
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dice-popup.is-show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.popup-content {
  color: #1c1c1c;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  margin: 0.7em 0;
}

.popup-close {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent !important;
  border: 0;
  font-size: 1.6rem;
  color: #1c1c1c !important;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.popup-close:hover {
  opacity: 0.6;
}

.popup-copy {
  position: absolute;
  bottom: 10px;
  right: 15px;
  background: transparent;
  font-family: 'Instrument Serif', serif; 
  border: 1px solid #ccc;
  padding: 4px 10px;
  font-size: 0.9rem;
  color: var(--1c-black);
  cursor: pointer;
  transition: all 0.2s;
}

.popup-copy:hover {
  background: var(--1c-black);
  color: var(--hover-wh);
}


/* モーダル */
#modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(255, 248, 231, 0.3);
  z-index: 99;
}

#modal {
  position: fixed;
  inset: 0;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  overflow-y: auto;
}

#modal-box {
  background: var(--hover-wh);
  color: var(--color);
  border: 3px solid var(--a-gray);
  border-radius: 10px;
  padding: 36px 28px;
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.22);
  font-family: 'Noto Serif JP' , Noto Emoji , sans-serif;
}

#modal-box h1 {
  font-family: 'Noto Serif JP', Noto Emoji , sans-serif;
  font-size: 1.7em;
}

#modal-box h2, #modal-box h5 {
  width: 100%;
  font-size: 14px;
  color: var(--color);
}

#modal-box p {
  line-height: 1.8;
  color: var(--color);
  width: 100%;
}

#modal-box label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--color);
  cursor: pointer;
}

#modal-box button {
  margin-top: 24px;
  padding: 10px 32px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  background: var(--color);
  color: var(--hover-wh);
}

#modal-box input[type="checkbox"] {
  width: auto;
  height: auto;
  max-width: none;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  appearance: auto;
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
  line-height: 1;
  position: relative; 
  z-index: 3;         
}

/* いいねicon */
.material-symbols-outlined {
  background: transparent;
  font-size: 1.2rem; 
  vertical-align: middle;
  font-variation-settings:
    'FILL' 0,  
    'wght' 100, 
    'GRAD' 350; 
}

/* いいねボタン・改 */
button.newiine_btn2 {
  position: relative;
  color: var(--a-gray);
  background: transparent;
  text-align: left;
  font-size: 0.6rem;
  padding: 6px 0;
  margin: 10px;
}

button.newiine_btn2 .material-symbols-outlined {
  transition: color 0.2s ease, opacity 0.2s ease;
}

button.newiine_btn2:hover .material-symbols-outlined {
  color: var(--color);
}

button.newiine_btn2:active .material-symbols-outlined {
  opacity: 0.3;
}

button.newiine_btn2:before {
  display: none !important;
}

button.newiine_btn2 div.newiine_thanks {
  /* ※ ↓お礼メッセージの吹き出しのサイズを変えたい場合はここを調整 */
  min-width: 130px;
  background: var(--late);
  color: var(--a-gray);
  text-align: center;
  font-size: 12px;
  border: none;
  padding: 5px;
  filter: drop-shadow(0 2px 8px #ccc);
  position: absolute;
  opacity: 0.33;
  transition: 0.3s;
  animation-duration: .5s;
  animation-fill-mode: both;
  z-index: 5;
  pointer-events: none;
  border-radius: 6px 6px 0 6px;
  right: 0;
}

button.newiine_btn2 div.newiine_thanks:after {
  content: '';
  width: 0px;
  height: 0px;
  position: absolute;
  right: 20px;
}

button.newiine_btn2 div.newiine_thanks_up {
  bottom: 140%;
  animation-name: newiine_thanks-up;
}

button.newiine_btn2 div.newiine_thanks_up:after {
  border-bottom: 10px solid transparent;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #fff8e7;
  top: calc(100% - 1px);
}

button.newiine_btn2 div.newiine_thanks_down {
  top: 140%;
  animation-name: newiine_thanks-down;
}

button.newiine_btn2 div.newiine_thanks_down:after {
  border-top: 10px solid transparent;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #fff8e7;
  bottom: calc(100% - 1px);
}

button.newiine_btn2 div.newiine_thanks_right {
  right: 0;
  left: auto !important;
}

button.newiine_btn2 div.newiine_thanks_right:after {
  left: auto;
  right: 20px;
} 

button.newiine_btn2 div.newiine_thanks p {
  margin: 10px auto;
}

.newiine_fadeout {
  animation : newiine_fadeOut 1s !important;
  animation-fill-mode: both;
}

@keyframes newiine_fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes newiine_thanks-up {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes newiine_thanks-down {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================
          メディアクエリ
   ================== */

@media (max-width: 500px) {
  .article-date {
    left: 35px; 
  }
}

@media screen and (min-width: 480px) { 
 .item, 
 .tab-label,
 .nav ul li a,
 .nav ul li span {  
   font-size: 1.5rem; 
  }
}

@media screen and (min-width: 820px) {
.header,
.tega-head {
  padding-top: 10vw;
  margin-bottom: 10vw;
}
.f {  
  font-size: 164px;
}
.title,
.tega-title {
  font-size: 44px;
}
.item, 
 .tab-label,
 .nav ul li a,
 .nav ul li span {  
   font-size: 16px; 
  }
}


/* ダークモード用 */
@media (prefers-color-scheme: dark) {

:root {
   --bg-white: #1c1c1c;
   --color: #fafafa;
   --1cblack-rgb: 250, 250, 250;
   --1c-black: #fafafa;
   --a-gray: #eee;
   --hover-wh: #15202b;
   --title-gray: #8899A6;
   --ccc: #757575;
   --late; #8899A6;
}

.light-orb {
    position: fixed;
    top: -50vh;
    left: -50vw;
    width: 200vw;
    height: 200vh;
    background: conic-gradient(
        from 90deg at 50% 50%, 
        rgba(28, 28, 28, 1.0) 0%,  /* #1c1c1c*/
        rgba(10, 4, 109, 0.8) 45%, /* #blue */
        rgba(4, 112, 119, 0.5) 55%, /* green */
        rgba(1, 152, 178, 0.5) 63%, /* tou */
        rgba(130, 143, 109, 0.5) 78%, /* green */
        rgba(31, 99, 112, 0.5) 80%, /* blue */
        rgba(63, 42, 109, 0.8) 85%, /* purple */
        rgba(18, 25, 61, 1.0) 100% /* d-blue */
      );
    z-index: -2;
    animation: orb-rotation 70s linear infinite;
    transform-origin: center center;
}
.deco-h {
    color: #1c1c1c;
}

mark {
  color: var(--color);
  background: linear-gradient(transparent 45%, #8899A6 55%);
}

.aco-content {
  background: #8899A6; 
}
}