@charset "UTF-8";

/* 共通部分
------------------------------- */
html {
    font-size: 100%;
}
body{
    font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", sans-serif;
    line-height: 1.7;
    color: #2e3b4e;
}
a {
    text-decoration: none;
}
img {
    max-width: 70%;
	margin: 0 auto;
}

article img {
  display: block;
  margin: 0 auto;
}


.wrapper {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 4%;
}

.adcenter {text-align:center}

/* 大きな背景画像 */
.big-bg {
    background-size: cover;
    background-position: center top;
}

.renewal-info {
  text-align: center;
  margin: 30px auto;
  max-width: 800px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  font-size: 1.1em;
}

/* 見出し */
.page-title {
    font-size: 5rem;
    font-family: 'Philosopher', serif;
    text-transform: uppercase;
    font-weight: normal;
}
.sub-title {
    font-size: 1.375rem;
    padding: 0 8px 8px;
    border-bottom: 2px #0bd solid;
    font-weight: normal;
}

/* ボタン */
.button {
    font-size: 1.375rem;
    background: #0bd;
    color: #fff;
    border-radius: 5px;
    padding: 18px 32px;
}
.button:hover {
    background: #0090aa;
}

/* iframe */
iframe {
    width: 100%;
}

/* HEADER
------------------------------- */
.page-header {
    display: flex;
    justify-content: space-between;
}
.logo {
    width: 210px;
    margin-top: 14px;
	margin-left: 20px;
}


/* ナビゲーションバー */
.main-nav-bar {
  background-color: #ffffff;/*#e8eef7;*/
  border-bottom: 2px solid #4078c0;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ナビ中身 */
.main-nav {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0.8em 0;
  margin: 0;
  box-sizing: border-box;
}

/* ナビ項目 */
.main-nav li {
  margin: 0 1.5em;
}

/* ナビリンク */
.main-nav a {
  color: #2e4e79;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
}

.main-nav a:hover {
  color: #4078c0;
  text-decoration: underline;
}

/*パンくずリスト*/
.breadcrumb-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 4%;
  margin-top: -20px; /* 必要に応じて上に寄せたい場合 */
  margin-bottom: 1.5em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}

.breadcrumb li:not(:last-of-type)::after {
  content: "»";
  margin: 0 .6em; /* 記号の左右の余白 */
  color: #777; /* 記号の色 */
}

/* 目次ナビゲーション */
.toc-nav {
  background: #ffffff;
  border: 2px solid #0bd;
  border-radius: 8px;
  padding: 1.5em;
  margin-bottom: 2em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.toc-nav h2 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.8em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid #007799; /* ブランドカラーに寄せる */
  color: #222;
  font-weight: normal;
}

.toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc-list li + li {
  margin-top: 0.6em;
}

.toc-list a {
  color: #005577;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, text-decoration 0.2s;
  font-size: 1rem;
}

.toc-list a:hover {
  color: #003344;
  text-decoration: underline;
}

/* HOME
------------------------------- */
#home {
    background-image: url(../images/main-bg.png);
    min-height: 100vh;
}
#home .page-title {
    text-transform: none;
}
.home-content {
    text-align: center;
    margin-top: 10%;
}
.home-content p {
    font-size: 1.125rem;
    margin: 10px 0 42px;
}

/* 初めに */
.intro-box {
  background: linear-gradient(to bottom right, #eaf6ff, #ffffff);
  border-left: 6px solid #0bd;
  padding: 2em;
  width: 100%;
  max-width: 1000px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  margin: 0 auto 2.5em;
}

.intro-title {
  font-size: 1.5em;
  color: #1a4977;
  margin-top: 0;
  margin-bottom: 0.6em;
  border-bottom: 2px solid #0bd;
  padding-bottom: 0.2em;
}

.intro-box p {
  font-size: 1.05em;
  line-height: 1.8;
  color: #333;
}

.intro-link {
  display: inline-block;
  margin-top: 1em;
  font-size: 1.1em;
  font-weight: bold;
  padding: 0.6em 1.2em;
  background: #0bd;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.intro-link:hover {
  background: #09a;
}



/*カテゴリ別カード*/
.activity {
  background: #ffffff;
  padding: 20px;
  margin: 20px 0;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.3s;
}
.activity:hover {
  transform: translateY(-7px);
}
.activity img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}
.activity div {
  flex: 1;
}
.activity h3 {
  margin-top: 0;
  color: #d32f2f;
}
.activity p {
  margin-bottom: 0;
  color: #6d4c41;
}
.activity a {
  color: #c62828;
  text-decoration: none;
  font-weight: bold;
}
.activity a:hover {
  text-decoration: underline;
}

/* NEWS
------------------------------- */
#news {
    background-image: url(../images/header.png);
    height: 350px;
    margin: 0;
    padding: 0;
}
#news .page-title {
    text-align: center;
}
.news-contents {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

/* 記事部分 */
article {
  width: 70%;
  background: rgba(255, 255, 255, 0.8); /* 白ベースに少し透過感ある背景 */
  border-radius: 12px;                   /* 角丸で柔らかい印象に */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* ふんわり靄のような影 */
  padding: 2em;                          /* 内側の余白しっかり取る */
  backdrop-filter: blur(4px);           /* 背景があれば少しぼかし効果（靄っぽい）*/
  -webkit-backdrop-filter: blur(4px);   /* Safari対応 */
  transition: box-shadow 0.3s ease;     /* ホバー時に影が変化すると自然 */
}

article:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); /* ホバーでちょっと浮く */
}

article img {
    margin-bottom: 20px;
}
article p {
    margin-bottom: 1rem;
    margin: 1.2em 0;
}

article h2 {
	font-size: 1.4em;
	margin-top: 0.5em;
	margin-bottom: 1em; 
	border-bottom: 2px solid #0bd;
	padding-bottom: 0.2em;
	color: #1a4977;
}

article ul {
	padding-left: 40px;
}

strong {
  color: #2d5a88;
  font-weight: bold;
}

/*各コラムカード*/
.column-card {
  display: flex;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 24px;
  overflow: hidden;
  transition: transform 0.2s;
}
.column-card:hover {
  transform: translateY(-4px);
}

.column-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin: 12px 12px 12px 12px;
  border-radius: 8px;
}

.column-text {
  padding: 16px;
  flex: 1;
}

.column-text h3 {
  margin: 0 0 8px;
  font-size: 1.2em;
  color: #2c3e50;
}
.column-text h3 a {
  text-decoration: none;
  color: inherit;
}
.column-text h3 a:hover {
  text-decoration: underline;
  color: #0bd;
}

.column-tag {
  font-size: 0.85em;
  color: #888;
  margin-bottom: 4px;
}

.column-desc {
  font-size: 0.95em;
  color: #555;
}

.column-text h3 {
  margin: 0 0 6px 0;
  font-size: 1.1em;
}

.column-text h3 a {
  font-weight: bold;
  font-size: 1.2em;
  color: #2c3e50;
  text-decoration: none;
  line-height: 1.4;
  display: inline-block;
}

.column-text h3 a:hover {
  text-decoration: underline;
  color: #1a73e8;
}


.footer-note {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid #ddd;
  font-size: 0.9em;
  color: #666;
}

.post-info {
    position: relative;
    padding-top: 4px;
    margin-bottom: 40px;
}
.post-date {
    background: #0bd;
    border-radius: 50%;
    color: #fff;
    width: 100px;
    height: 100px;
    font-size: 1.625rem;
    text-align: center;
    position: absolute;
    top: 0;
    padding-top: 10px;
}
.post-date span {
    font-size: 1rem;
    border-top: 1px rgba(255,255,255,.5) solid;
    padding-top: 6px;
    display: block;
    width: 60%;
    margin: 0 auto;
}
.post-title {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 2rem;
    font-weight: normal;
}
.post-title,
.post-cat {
    margin-left: 120px;
}

/*次のページへ行ったり戻ったり*/
.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2em;
  margin-top: 4em;
  padding-top: 2em;
  border-top: 2px solid #ccc;
  font-size: 1rem;
  flex-wrap: wrap;
}

.post-nav .prev-post,
.post-nav .next-post {
  max-width: 45%;
}

.post-nav a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #0b65c2;
  text-decoration: none;
  font-weight: bold;
  line-height: 1.4;
  transition: color 0.2s;
}

.post-nav a:hover {
  text-decoration: underline;
  color: #094e9e;
}

.post-label {
  font-size: 0.95rem;
}

.nav-post-title {
  font-size: 1rem;
  font-weight: normal;
  margin-top: 0.2em;
  display: block;
  color: #222;
}

.post-label.right {
  text-align: right;
  width: 100%;
}



/* サイドバー */
aside {
    width: 25%;
}
.sub-menu {
    margin-bottom: 60px;
    list-style: none;
}
.sub-menu li {
    border-bottom: 1px #ddd solid;
}
.sub-menu a {
    color: #432;
    padding: 10px;
    display: block;
}
.sub-menu a:hover {
    color: #0bd;
}
aside p {
    padding: 12px 10px;
}

/*検索*/
.search-box {
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1em;
  margin-bottom: 2em;
  font-size: 0.95em;
  color: #333;
  box-shadow: inset 0 0 3px rgba(0,0,0,0.05);
}

.search-box label {
  display: block;
  margin: 0.6em 0 0.2em;
  font-weight: bold;
}

.search-box input[type="text"] {
  width: 100%;
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.radio-group {
  display: flex;
  gap: 1em;
  margin-top: 0.3em;
  font-size: 0.9em;
  color: #555;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.search-box button {
  margin-top: 1em;
  width: 100%;
  padding: 0.6em;
  background-color: #0bd;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-box button:hover {
  background-color: #09a;
}




/*プロフ画像*/
.profile-section img {
width: 150px;
height: 150px;
object-fit: cover;
border-radius: 50%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }


/*別活動*/
.profile-links {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  margin-top: 1em;
}

.profile-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.profile-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-right: 1px solid #eee;
}

.card-text {
  padding: 0.5em 0.8em;
  flex: 1;
}

.card-text h4 {
  margin: 0 0 0.2em;
  font-size: 0.95em;
  color: #1a4977;
}

.card-text p {
  margin: 0;
  font-size: 0.8em;
  color: #555;
}

.profile-card a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

	
	
	

/*今いるカテゴリ*/
.sub-menu a.active {
  font-weight: bold;
  background-color: #eef6ff;
  border-left: 4px solid #0bd;
  color: #0bd;
}

.new-article-box {
  background: #fafafa;
  border: 1px solid #ddd;
  border-left: 4px solid #bbb;
  border-radius: 8px;
  padding: 1em 1em 0.8em 1em;
  margin-bottom: 2em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  max-height: 330px; /* 高さ制限 */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 見出し */
.new-article-box .sub-title {
  margin-bottom: 0.6em;
  font-size: 1.1em;
}

/* 中のリストがスクロール可能に */
.new-articles {
  overflow-y: auto;
  padding-right: 0.3em; /* スクロールバーが文字にかからないように */
  flex-grow: 1;
}

.new-articles::-webkit-scrollbar {
  width: 6px;
}
.new-articles::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.new-articles::-webkit-scrollbar-track {
  background: transparent;
}

/* リスト内要素 */
.new-articles li {
  margin-bottom: 0.9em;
  padding-bottom: 0.4em;
  border-bottom: 1px dashed #ddd;
}

.new-articles a {
  font-size: 0.9em;
  color: #2c3e50;
  font-weight: bold;
  text-decoration: none;
}

.new-articles a:hover {
  color: #0bd;
  text-decoration: underline;
}

.article-meta {
  font-size: 0.75em;
  color: #888;
  display: block;
  margin-top: 0.2em;
}

.column-text h3 a {
  font-size: 1.2em;
  font-weight: bold;
  color: #2c3e50;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 5px;
}

.x-post-button {
	display: inline-flex;
	align-items: center;
	background-color: black;
	color: white;
	padding: 1px 7px;
	border-radius: 9999px;
	text-decoration: none;
	font-weight: bold;
	font-size: 10.5px;
}

.x-post-button:hover {
	opacity: 0.8;
}

.x-icon {
	width: 18px;
	height: 18px;
	margin-right: 6px;
	position: relative;
	top: 8px; /* ←上下位置を微調整 */

}

/* MENU
------------------------------- */
#menu {
    background-image: url(../images/menu-bg.jpg);
    min-height: 100vh;
}
.menu-content {
    max-width: 560px;
    margin-top: 10%;
}
.menu-content .page-title {
    text-align: center;
}
.menu-content p {
    font-size: 1.125rem;
    margin: 10px 0 0;
}

.grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 6%;
  margin-bottom: 50px;
}

/* CONTACT
------------------------------- */
#contact {
    background-image: url(../images/contact-bg.jpg);
    min-height: 100vh;
}

/* フォーム */
form div {
    margin-bottom: 14px;
}
label {
    font-size: 1.125rem;
    margin-bottom: 10px;
    display: block;
}
input[type="text"],
input[type="email"],
textarea {
    background: rgba(255,255,255,.5);
    border: 1px #fff solid;
    border-radius: 5px;
    padding: 10px;
    font-size: 1rem;
}
input[type="text"],
input[type="email"] {
    width: 100%;
    max-width: 240px;
}
textarea {
    width: 100%;
    max-width: 480px;
    height: 6rem;
}
input[type="submit"] {
    border: none;
    cursor: pointer;
    line-height: 1;
}


/* フッター
------------------------------- */
footer {
    background: #432;
    text-align: center;
    padding: 26px 0;
}
footer p {
    color: #fff;
    font-size: 0.875rem;
}



/* h3をflexにして、タイトルとバッヂを両端に配置 */
.activity h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* バッヂ自体のデザイン */
.count-badge {
  display: inline-block;
  min-width: 2.2em;
  padding: 0 .55em;
  border-radius: 9999px;
  font-size: .85em;
  background: #029eba;
  color: #fff;
  line-height: 1.6;
  text-align: center;
}





/* === Ranking === */
.rank-item { text-decoration: none; }

/* 1位カードは既存と同じサイズ感。位置決め用にrelativeだけ付与 */
.rank-card { position: relative; }
.rank-card--top { margin-bottom: 18px; }

/* 2位・3位を横並び（スマホでは縦積み） */
.rank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

/* 半幅カード（簡素版） */
.rank-card--small {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
  overflow: hidden;
  transition: transform .2s;
}
.rank-card--small:hover { transform: translateY(-3px); }
.rank-card--small img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}
.rank-small-text { padding: 10px 12px; }
.rank-small-text h4 {
  margin: 0;
  font-size: 1.0em;
  color: #2c3e50;
  line-height: 1.4;
}

/* バッヂ（金銀銅） */
.rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  font-weight: bold;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  font-size: 1rem;
}
.rank-1 { background: linear-gradient(135deg,#f5c542,#e0a800); }
.rank-2 { background: linear-gradient(135deg,#c0c0c0,#9ea7ad); }
.rank-3 { background: linear-gradient(135deg,#cd7f32,#b36a2e); }
.rank-4 { background: linear-gradient(135deg,#B87a7a,#c17474); }
.rank-5 { background: linear-gradient(135deg,#b87a7a,#c17474); }

/* モバイル対応：2位・3位を縦積み */
@media (max-width: 600px) {
  .rank-grid { grid-template-columns: 1fr; }
}


/* 関連記事 */
.related { margin: 2.5rem 0 0; padding-top: 1rem; border-top: 1px solid #eee; }
.related-title { font-size: 1.1rem; margin-bottom: .6rem; }

/* レイアウト */
.rel-row { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.rel-scroller {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 10px;  /* 指で掴みやすく少し余白 */
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}
.rel-scroller::-webkit-scrollbar { height: 8px; }
.rel-scroller::-webkit-scrollbar-thumb { background: #ddd; border-radius: 20px; }
.related-track { display: inline-flex; gap: 12px; }

/* カード（横長1枚を最小幅でスナップ） */
.related-card {
  scroll-snap-align: start;
  flex: 0 0 min(75vw, 280px);   /* 1枚の最小幅：スマホは大きめ、PCは280px目安 */
  border: 1px solid #eee; border-radius: 12px; overflow: hidden; background: #fff;
  text-decoration: none; transition: transform .12s ease, box-shadow .12s ease;
}
.related-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.related-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #f6f6f6; }
.related-meta { padding: 10px 12px; }
.related-meta .cat { font-size: .75rem; opacity: .7; display: block; margin-bottom: 2px; }
.related-meta .ttl { font-size: .95rem; line-height: 1.35; color: #222; }

/* 矢印ボタン */
.rel-nav {
  inline-size: 36px; block-size: 36px;
  border: 1px solid #e5e5e5; border-radius: 50%;
  background: #fff; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.rel-nav:disabled { opacity: .35; cursor: default; }
/*@media (hover:none) { .rel-nav { display: none; } } /* モバイルはスワイプ優先 */

/* スマホだけ影を消す */
/* ===== スマホで関連記事カルーセルが入り切らない問題の調整 ===== */
@media (max-width: 767px) {
  /* 矢印をオーバーレイに（横幅を消費しない） */
  .rel-row {
    position: relative;
    display: block;           /* グリッドを解除して自由配置に */
  }
  .rel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inline-size: 36px;        /* タップしやすい最小サイズ */
    block-size: 36px;
    box-shadow: none;         /* ←ご希望の“モヤ”削除 */
    border: none;
    background: transparent;  /* 影も枠もなしのフラット矢印 */
    z-index: 2;
  }
  .rel-prev { left: 6px; }
  .rel-next { right: 6px; }

  /* 端で切れないように：コンテナを“はみ出し余白”で相殺してフルブリードに */
  .rel-scroller {
    margin-inline: -12px;     /* 親の内側余白を打ち消して全幅化 */
    padding-inline: 12px;     /* 中身だけ安全余白を確保 */
    mask-image: none;         /* 端が薄くなるグラデをオフ */
    scroll-padding-inline: 12px; /* スナップ時に端で見切れない */
  }

  /* カード幅：安全余白ぶんを引いて、1枚が“ぴったり”見切れないサイズに */
  .related-track { gap: 10px; }
  .related-card {
    flex: 0 0 calc(100% - 44px); 
    /* 100% - (左右のpadding 12px×2 + gap 10px) = 100% - 34px
       ← 端末差で微妙に溢れる場合があるので余裕を見て -44px にしてます。
       もう少し大きく見せたいなら -38px くらいまで上げてOK。 */
  }

  /* 画像のスキマ対策（行ボックスのベースラインでズレないように） */
  .related-thumb { display: block; }
}



/* ===== 読了メーター（記事内のみ表示 / 左右余白 / ラベル中央重ね / 強めの縁取り） ===== */

/* 画面上部に固定。中央寄せ＆左右に余白を確保 */
#progressWrapper{
  position: fixed;
  top: 16px;             /* ラベル分、上端から少し下げる */
  left: 0;
  right: 0;
  z-index: 9999;
  pointer-events: none;  /* クリックの邪魔をしない */
  display: flex;
  justify-content: center;
}

/* トラック本体（細め・控えめ） */
#progressBar{
  position: relative !important; /* ラベルの絶対配置の基準にする */
  flex: 1;
  max-width: 960px;      /* 記事幅っぽい最大幅。好みで調整 */
  margin: 0 24px;        /* 左右に“間”をあける */
  height: 6px;           /* 邪魔にならない細さ */
  border-radius: 9999px;
  background: rgba(0,0,0,0.08); /* 薄いトラック色 */
  overflow: visible !important; /* ラベルを外側に出してもクリップしない */
  opacity: 0;             /* 初期は非表示（記事外） */
  transition: opacity .18s ease-out;
}

/* 進捗の塗り（CSS変数 --pct をJSで0..1更新） */
#progressBar::before{
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(var(--pct, 0));
  background: #03a9f4;   /* 進捗色。好みで変更可 */
  border-radius: inherit;
  transition: transform .12s ease-out;
  z-index: 0;            /* ラベルより下に */
}

/* ラベル（『読了率』）— バーのど真ん中に重ねる */
#progressLabel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);   /* 中央 */
  z-index: 1;                         /* 進捗の上 */
  pointer-events: none;

  font-size: 0.8rem;                  /* 読みやすさ優先で少し大きめ */
  font-weight: 30;
  line-height: 1;
  color: #1a73e8 !important;                       /* ライトモードの文字色 */
  opacity: 0;                         /* 記事外は非表示 */
  transition: opacity .18s ease-out;

  /* 強めの縁取り（WebKitはstroke、他は多方向shadowで代替） */
  -webkit-text-stroke: 0.7px rgba(0,0,0,0.98);
  text-shadow:
    1px 0 0 rgba(255,255,255,0.98),
   -1px 0 0 rgba(255,255,255,0.98),
    0 1px 0 rgba(255,255,255,0.98),
    0 -1px 0 rgba(255,255,255,0.98),
    1px 1px 0 rgba(255,255,255,0.98),
    1px -1px 0 rgba(255,255,255,0.98),
   -1px 1px 0 rgba(255,255,255,0.98),
   -1px -1px 0 rgba(255,255,255,0.98),
    0 0 2px rgba(0,0,0,0.35);  /* 外側に薄い影で背景が明るくても読める */
}

/* 記事内に入った時だけバー＆ラベルを見せる（JSが .is-visible を付け外し） */
#progressBar.is-visible{ opacity: 1; }
#progressBar.is-visible #progressLabel{ opacity: .95; }

/* 動き弱め設定に追従 */
@media (prefers-reduced-motion: reduce){
  #progressBar, #progressBar::before { transition: none; }
}

/* ダークモード微調整（背景が暗い前提のコントラスト最適化） */
@media (prefers-color-scheme: dark){
  #progressBar{ background: rgba(255,255,255,0.16); }
  #progressBar::before{ background: #4fc3f7; } /* 少し明るめのシアン */
  #progressLabel{
    color: #fff;
    -webkit-text-stroke: 0.7px rgba(0,0,0,0.85);
    text-shadow:
      1px 0 0 rgba(0,0,0,0.85),
     -1px 0 0 rgba(0,0,0,0.85),
      0 1px 0 rgba(0,0,0,0.85),
      0 -1px 0 rgba(0,0,0,0.85),
      1px 1px 0 rgba(0,0,0,0.85),
      1px -1px 0 rgba(0,0,0,0.85),
     -1px 1px 0 rgba(0,0,0,0.85),
     -1px -1px 0 rgba(0,0,0,0.85),
      0 0 2px rgba(255,255,255,0.25);
  }
}


.adsbygoogle {
  display: block;
  margin: 20px auto;   /* 上下20px・左右autoで中央寄せ */
  text-align: center;  /* 中のiframeを中央寄せ */
}



/* モバイル：余白/サイズを控えめに */
@media (max-width: 600px){
  #progressWrapper{ top: 12px; }
  #progressBar{ margin: 0 16px; max-width: 100%; }
  #progressLabel{ font-size: 0.75rem; }
}





/* モバイル版
------------------------------- */
@media (max-width: 600px) {
	
	.page-header {
	  flex-direction: column;
	  align-items: center;
	}

    .main-nav {
      flex-direction: column;
      align-items: center;
    }

	.main-nav li {
      margin: 10px 0;
	}

    .main-nav-bar {
      padding: 0.5em 0;
    }
	
    .page-title {
        font-size: 2.5rem;
    }
    .page-header {
        flex-direction: column;
        align-items: center;
    }

    /* HEADER */
    .main-nav {
        font-size: 1rem;
        margin-top: 10px;
    }
    .main-nav li {
        margin: 0 20px;
    }

    /* HOME */
    .home-content {
        margin-top: 20%;
    }

    /* NEWS */
    .news-contents {
        flex-direction: column;
    }
    #news .page-title {
        margin-top: 30px;
    }
    article,
    aside {
        width: 100%;
    }
    aside {
        margin-top: 60px;
    }
    .post-info {
        margin-bottom: 30px;
    }
    .post-date {
        width: 70px;
        height: 70px;
        font-size: 1rem;
    }
    .post-date span {
        font-size: 0.875rem;
        padding-top: 2px;
    }
    .post-title {
        font-size: 1.375rem;
    }
    .post-cat {
        font-size: 0.875rem;
        margin-top: 10px;
    }
    .post-title,
    .post-cat {
        margin-left: 80px;
    }

    /* MENU */
    .menu-content {
        margin-top: 20%;
    }

    /* CONTACT */
    #contact .page-title {
        margin-top: 40px;
    }

    /* フォーム */
    input[type="text"],
    input[type="email"],
    textarea {
        max-width: 100%;
    }

	.column-card {
	  flex-direction: column;
	  align-items: center;
	}
	.column-card img {
	  width: 100%;
	  height: auto;
	}
	.column-text {
	  padding: 12px;
	}

	/* intro-box スマホ対応 */
	.intro-box {
	  width: auto;
	  max-width: calc(100% - 2em);
	  margin: 1.5em auto 2em auto;
	  padding: 1.5em 1em;
	  box-sizing: border-box;
	  border-radius: 10px;
	}


	.intro-title {
	  font-size: 1.2em;
	  margin-bottom: 0.6em;
	}

	.intro-box p {
	  font-size: 0.95em;
	  line-height: 1.7;
	}

	.intro-link {
	  font-size: 1em;
	  padding: 0.5em 1em;
	  display: block;
	  width: 100%;
	  text-align: center;
	  margin-top: 1em;
	}

  .post-nav {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .post-nav .prev-post,
  .post-nav .next-post {
    max-width: 100%;
  }

}



/* ページネーションの並びと余白 */
.pagination{
  display: flex;
  flex-wrap: wrap;          /* 折り返しOK */
  gap: .5rem .6rem;         /* 行間 / 列間 */
  justify-content: center;  /* 中央寄せ */
  margin-top: 2rem;
}

/* ベースのボタン見た目（押しやすいピル型） */
.pagination .page-btn{
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(0,0,0,.16);
  background: linear-gradient(#fff, #f6f6f6);
  color: #333;
  font: inherit;
  font-size: .95rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  line-height: 1;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .15s ease, background .2s ease, border-color .2s ease;
  min-width: 2.2rem;      /* タップしやすい幅 */
  min-height: 2.2rem;     /* タップしやすい高さ */
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.pagination .page-btn:hover{
  background: linear-gradient(#fff, #f0f0f0);
  border-color: rgba(0,0,0,.22);
}
.pagination .page-btn:active{
  transform: translateY(1px);
}

/* 現在ページ */
.pagination .page-btn.active,
.pagination .page-btn[aria-current="page"]{
  background: #111;
  color: #fff;
  border-color: #111;
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
}

/* たくさん並んでも圧迫感を減らす（可変フォントサイズ） */
@media (max-width: 480px){
  .pagination .page-btn{ font-size: .9rem; padding: .42rem .8rem; }
}

/* ダークモード対応（端末設定に追随） */
@media (prefers-color-scheme: dark){
  .pagination{ gap: .5rem .55rem; }
  .pagination .page-btn{
    border-color: rgba(255,255,255,.22);
    background: linear-gradient(#222, #1a1a1a);
    color: #eee;
    box-shadow: 0 1px 0 rgba(0,0,0,.5);
  }
  .pagination .page-btn:hover{
    background: linear-gradient(#262626, #202020);
    border-color: rgba(255,255,255,.3);
  }
  .pagination .page-btn.active,
  .pagination .page-btn[aria-current="page"]{
    background: #e9e9e9;
    color: #111;
    border-color: #e9e9e9;
  }
}




/* 目次ボックス全体：控えめなカード調 */
.toc-box{
  margin: 1.2rem 0 1.6rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: .6rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.75));
  box-shadow: 0 6px 14px rgba(0,0,0,.04);
}

/* 折りたたみボタン：丸 pill で軽やかに */
#toc-toggle{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .9rem;
  font-size: .92rem;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: transform .06s ease, background .2s ease, box-shadow .2s ease;
}
#toc-toggle:hover { background: #fafafa; }
#toc-toggle:active { transform: translateY(1px) scale(.99); }
#toc-toggle::after{
  content: attr(aria-expanded);
  /* aria-expanded="true"/"false" を絵文字に変える */
  content: ""; /* 上の行は補助。下2行で矢印表現 */
}
#toc-toggle[aria-expanded="false"]::after { content: "▼"; }
#toc-toggle[aria-expanded="true"]::after  { content: "▲"; }

/* 目次リスト */
#toc-list{
  list-style: none;
  margin: .6rem 0 0;
  padding: .2rem 0 0;
  max-height: 320px;
  overflow: auto;
}

/* 行：先頭に『・』をCSSで付与（テキスト自体は汚さない） */
#toc-list li{
  position: relative;
  padding-left: 1.1em;        /* 『・』の分だけ下げる */
  line-height: 1.6;
  letter-spacing: .01em;
}
#toc-list li::before{
  content: "・";               /* ← ご要望の『・』 */
  position: absolute;
  left: 0;
  top: 0;
  color: #888;                 /* 濃すぎない中間グレー */
  transform: translateY(.05em);
}

/* リンク：可読性重視 & さりげないホバー */
#toc-list a{
  color: #2b2b2b;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color .15s ease, border-color .15s ease;
}
#toc-list a:hover{
  color: #111;
  border-color: rgba(0,0,0,.25);
}

/* ダークモード対応（端末設定に追随） */
@media (prefers-color-scheme: dark){
  .toc-box{
    border-color: rgba(255,255,255,.14);
    background: linear-gradient(180deg, rgba(30,30,30,.85), rgba(30,30,30,.75));
    box-shadow: 0 6px 14px rgba(0,0,0,.35);
  }
  #toc-toggle{
    border-color: rgba(255,255,255,.18);
    background: #1f1f1f;
    color: #eee;
  }
  #toc-toggle:hover{ background: #222; }
  #toc-list a{ color: #eaeaea; }
  #toc-list a:hover{ color: #fff; border-color: rgba(255,255,255,.35); }
  #toc-list li::before{ color: #aaa; }
}





:root{
  /* Eye-friendly palette */
  --bg:#fbfcfe;
  --ink:#121417;
  --muted:#586273;
  --line:#e8edf4;
  --pill:#f4f7fc;

  /* Accents (やさしめ) */
  --mint:#36d3b3;
  --sky:#4db6ff;
  --coral:#ff6ea6;
  --banana:#ffd566;
  --lav:#a78bfa;

  /* UI */
  --radius-xxl: 28px;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-1: 0 8px 18px rgba(0,0,0,.05);
  --shadow-2: 0 12px 26px rgba(0,0,0,.06);
  --rail: 240px;
  --maxw: 1200px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  background:
    radial-gradient(60rem 60rem at 120% -20%, rgba(77,182,255,.12), transparent 45%),
    radial-gradient(60rem 60rem at -20% 30%, rgba(54,211,179,.12), transparent 50%),
    var(--bg);
  font-family:'Noto Sans JP','Poppins',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  font-size:18px; line-height:1.9;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

/* ===== Header (logo) ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background:#ffffffcc;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .header-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-header .logo-link img{
  height: 44px;
  width: auto;
  display: block;
}
@media (max-width: 720px){
  .site-header .header-inner{ padding: 8px 12px }
  .site-header .logo-link img{ height: 30px }
}

/* ===== Layout ===== */
.wrap{ display:grid; grid-template-columns: 1fr }
@media (min-width:980px){
  .wrap{
    grid-template-columns: var(--rail) minmax(0,1fr);
    max-width: var(--maxw); margin:0 auto; gap:18px; padding:18px;
  }
}

/* ===== Sidebar ===== */
.sidebar{
  position:sticky; top:18px; align-self:start;
  background:#fff; border:1px solid var(--line);
  border-radius: var(--radius-xxl); box-shadow: var(--shadow-1);
  overflow:hidden;
}
@media (max-width:979px){ .sidebar{ position:relative; top:0; margin:10px } }

.brand{
  display:flex; align-items:center; gap:12px; padding:16px;
  border-bottom:1px solid var(--line);
  background: linear-gradient(120deg, rgba(77,182,255,.12), rgba(167,139,250,.12), rgba(255,213,102,.12));
}

.mark{
  width:42px; height:42px; border-radius: 50%;
  background:#fff;
  border:6px solid #fff;
  box-shadow:
    inset 0 0 0 3px #fff,
    0 0 0 6px rgba(77,182,255,.20);
  overflow:hidden; 
}
.mark img{
  width:100%; height:100%;
  object-fit: cover;
  border-radius:50%;
  display:block;
}

.title{ display:flex; flex-direction:column; line-height:1.1 }
.title b{ font-family:'Poppins','Noto Sans JP',sans-serif; font-weight:800; font-size:18px; letter-spacing:.02em }
.title small{ color:#3a4450; font-weight:700 }

.nav{ display:flex; flex-direction:column; gap:10px; padding:14px }
.nav a{
  font-weight:800; background:var(--pill); border:1px solid var(--line);
  padding:12px 14px; border-radius: 999px;
}
.nav a:hover,.nav a:focus-visible{ outline:none; background:#eef5ff }

/* ===== Main ===== */
.main{ min-height:100vh }
.section{ padding:24px clamp(14px,3.5vw,34px) }
.container{ max-width: 920px }

/* ===== Headings ===== */
.kicker{
  display:inline-flex; align-items:center; gap:8px; font-weight:800;
  padding:6px 12px; border-radius: 999px; border:1px solid var(--line);
  background:linear-gradient(90deg, rgba(77,182,255,.20), rgba(167,139,250,.20), rgba(54,211,179,.20));
}
.kicker::before{ content:""; width:8px; height:8px; border-radius:999px; background:var(--banana) }
h1,h2{ margin:10px 0 6px }
h2{ font-size: clamp(22px, 3.2vw, 32px); line-height:1.2; font-weight:900 }
.sub{ color:var(--muted); margin:6px 0 0 }

/* ===== Profile (top) ===== */
.profile-card{
  display:grid; grid-template-columns: 140px 1fr; gap:16px;
  background:#fff; border:1px solid var(--line); border-radius: var(--radius-xxl);
  padding:18px; box-shadow: var(--shadow-2);
  margin-top:12px;
}
@media (max-width:700px){ .profile-card{ grid-template-columns: 1fr } }
.profile-avatar{
  width:120px; height:120px; border-radius:50%; border:1px solid var(--line);
  background:#eef2f7 url('../images/profile.png') center/cover no-repeat;
  box-shadow: 0 6px 16px rgba(0,0,0,.06)
}
.profile-body h3{ margin:0 0 6px; font-size:22px }
.profile-body p{ margin:0 0 10px; color:#2e3742 }
.profile-tags{ display:flex; flex-wrap:wrap; gap:8px }
.profile-tags .tag{
  display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; border:1px solid var(--line); background:var(--pill);
  font-weight:800; font-size:.95em
}
.profile-tags a.tag:hover{ background:#eef5ff }

/* ===== Works ===== */
.list{ display:grid; gap:14px; margin-top:10px }
.row{
  display:grid; grid-template-columns: 2fr 7fr; gap:0;
  background:#fff; border:1px solid var(--line);
  border-radius: var(--radius-xxl); overflow:hidden; box-shadow: var(--shadow-1);
}
@media (max-width:800px){ .row{ grid-template-columns: 1fr } }

.thumb{
  aspect-ratio: 1 / 1;
  width: 100%;
  background:#f5f7fb center/cover no-repeat;
}

@media (max-width: 768px) {
  .thumb {
    aspect-ratio: 16 / 9; /* ← モバイル時は横長サムネ */
  }
}

@supports not (aspect-ratio: 1 / 1) {
  .thumb{ position: relative }
  .thumb::before{ content: ""; display: block; padding-top: 100% }
}

.row.column  .thumb{ background-image:url('../images/column.png') }
.row.trpg    .thumb{ background-image:url('../images/1ptrpg.png') }
.row.youtube .thumb{ background-image:url('../images/youtube.png') }
.row.booth   .thumb{ background-image:url('../images/booth.png') }
.row.discord .thumb{ background-image:url('../images/discord.png') }

.col{ padding:16px 16px 18px }
.col h3{ margin:2px 0 6px; font-size:20px }
.col p{ margin:0 0 10px; color:#2e3742 }
.cta{
  display:inline-flex; align-items:center; gap:8px; font-weight:900;
  border:1px solid var(--line); padding:10px 14px; border-radius:999px; background:#fff;
}
.cta:hover{ background:#f3f8ff }

/* ===== Videos ===== */
.video-grid{ display:grid; gap:12px; grid-template-columns: repeat(4, 1fr) }
@media (max-width:1100px){ .video-grid{ grid-template-columns: repeat(3, 1fr) } }
@media (max-width:860px){ .video-grid{ grid-template-columns: repeat(2, 1fr) } }
@media (max-width:560px){ .video-grid{ grid-template-columns: 1fr } }
.video{
  border:1px solid var(--line); border-radius: var(--radius-lg); overflow:hidden; background:#fff;
  box-shadow: var(--shadow-1); aspect-ratio:16/9;
}
.video iframe{ width:100%; height:100% }

/* ===== Links ===== */
.links{ display:grid; gap:10px; grid-template-columns: repeat(2, minmax(0,1fr)) }
@media (max-width:720px){ .links{ grid-template-columns:1fr } }
.item{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  border:1px solid var(--line); border-radius: 999px; padding:12px 16px; background:#fff; box-shadow: var(--shadow-1);
  font-weight:800;
}
.item span{ color:#9aa3af; font-weight:700 }

/* ===== Footer ===== */
.footer{ text-align:center; color:#9aa3af; padding:22px 16px 36px }

/* A11y */
:focus-visible{ outline:4px solid rgba(77,182,255,.45); outline-offset:2px; border-radius:12px }
@media (prefers-reduced-motion: reduce){ *{ transition:none !important; animation:none !important } }

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #333;
}

/* モバイル時 */
@media (max-width: 768px) {
  .sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background: #f8f8f8;
    width: 220px;
    height: 100%;
    border-right: 1px solid #ddd;
    padding: 10px;
    z-index: 1000;
    overflow-y: auto;
  }

  .sidebar.active {
    display: block;
  }
  

  /* 右上固定 */
  .hamburger {
    display: flex;
    position: fixed;
    top: 15px;
    right: 15px;
    background: #fff;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }

  .wrap {
    display: block;
  }
}

.more-btn {
  display:inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
}
.more-btn:hover {
  background: #f3f8ff;
}

.hidden {
  display: none;
  margin-top: 10px;
}


/* === Tables: global mobile-safe === */
.table-wrap{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:#fff;
  box-shadow: var(--shadow-1);
  margin: 10px 0 18px;
  max-width:100%;
}
.table-wrap::-webkit-scrollbar{ height: 8px }

/* 既存・外部ページの素の <table> も安全側に */
.table-wrap > table,
.responsive-table{
  width:100%;
  border-collapse:collapse;
  font-size: 0.95em;
}

/* 文字が長いセルで折り返す（URLや英数の連続対策） */
.table-wrap td, .table-wrap th,
.responsive-table td, .responsive-table th{
  border:1px solid var(--line);
  padding:10px 12px;
  vertical-align:top;
  word-break:break-word;
  overflow-wrap:anywhere;
}

/* 見やすさ（任意） */
.table-wrap tr:nth-child(odd){ background:#fafcff }
.table-wrap td:first-child, .table-wrap th:first-child{
  background:#f7f9ff; font-weight:800;
}
