/*
Theme Name: 2column-matome
Theme URI: http://example.com/your-theme
Description: 2カラムのまとめサイト用のテーマ（シンプルなグラデーションデザイン）
Author: kenichi（customized）
Version: 2.0
*/



/* ----------------------------------------------------
   ベースリセット
---------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
header,
footer,
div,
article,
p,
a,
ul,
li {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  word-break: break-word;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease,
    opacity 0.2s ease, transform 0.15s ease;
}

a:hover {
  opacity: 0.9;
}

/* ----------------------------------------------------
   カラーバリエーション（必要ならここだけ変更）
---------------------------------------------------- */

:root {
  --accent-from: #4f46e5; /* ブルー系 */
  --accent-to: #ec4899;   /* ピンク系 */
  --accent-solid: #4f46e5;

  --bg-base: #f3f4f6;
  --bg-card: #ffffff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Sans", "ヒラギノ角ゴ ProN W3", "Yu Gothic Medium",
    "游ゴシック Medium", "游ゴシック体", sans-serif;
  background: var(--bg-base);
  color: var(--text-main);
  line-height: 1.7;

}

/* ----------------------------------------------------
   ヘッダー
---------------------------------------------------- */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(249, 250, 251, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

/* グラデーションのワンポイントライン */
header::after {
  content: "";
  display: block;
  height: 3px;
  background-image: linear-gradient(
    90deg,
    var(--accent-from),
    var(--accent-to)
  );
}

#header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

#header-inner .block1 h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

#header-inner .block1 h1 a {
  color: var(--text-main);
}

#header-inner .block1 p {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

#header-inner .block2 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
}

/* ----------------------------------------------------
   ナビゲーション
---------------------------------------------------- */

.nav-container {
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.nav-menu {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.35rem 1.5rem 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.nav-menu li {
  list-style: none;
}

.nav-menu li a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #4b5563;
  background: transparent;
}

.nav-menu li.current-menu-item a,
.nav-menu li a:hover {
  color: #ffffff;
  background-image: linear-gradient(
    135deg,
    var(--accent-from),
    var(--accent-to)
  );
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

/* ヘッダー下の細いバー（元 .caution）をグラデーションに */
.caution {
  background-image: linear-gradient(
    90deg,
    var(--accent-from),
    var(--accent-to)
  ) !important;
  height: 4px !important;
}

/* ----------------------------------------------------
   レイアウト：メイン + サイドバー
---------------------------------------------------- */

#wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: flex;
  gap: 2.5rem;
}

main {
  flex: 1 1 0;
}

#sidebar {
  flex: 0 0 300px;
}

/* ----------------------------------------------------
   トップ・アーカイブ一覧 (#loop-page)
---------------------------------------------------- */

#loop-page {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-bottom: 2.5rem;
}

#loop-page .loop-page-title {
  width: 100%;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

/* 記事カード */
#loop-page article {
  position: relative;
  overflow: hidden;
  width: calc(33.333% - 1.2rem);
  background: var(--bg-card);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#loop-page article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background-image: linear-gradient(
    90deg,
    var(--accent-from),
    var(--accent-to)
  );
}

#loop-page article a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#loop-page article img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

#loop-page article p {
  margin: 0.65rem 1rem 0;
  font-size: 0.75rem;
  color: #9ca3af;
}

#loop-page article h2 {
  margin: 0.35rem 1rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

#loop-page article:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
}

/* ----------------------------------------------------
   投稿・固定ページ (#contents-page)
---------------------------------------------------- */

#contents-page {
  background: var(--bg-card);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  padding: 2.1rem 2.4rem 2.4rem;
  margin-bottom: 2.5rem;
}

#contents-page article > h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.75rem;
}

/* 見出し下のグラデーションライン */
#contents-page article > h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 130px;
  height: 3px;
  border-radius: 999px;
  background-image: linear-gradient(
    90deg,
    var(--accent-from),
    var(--accent-to)
  );
}

#contents-page .time-category,
#contents-page .tags {
  margin: 0.2rem 0 1.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

#contents-page .time-category i,
#contents-page .tags i {
  margin-right: 0.2rem;
}

#contents-page .time-category i + i {
  margin-left: 0.7rem;
}

#contents-page .time-category a,
#contents-page .tags a {
  color: var(--accent-solid);
  font-weight: 500;
}

#contents-page p {
  margin: 0 0 1.2rem;
}

#contents-page img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.3rem auto;
  border-radius: 0.5rem;
}

/* 見出し */
#contents-page h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.9rem;
  border-left: 4px solid var(--accent-solid);
  padding-left: 0.6rem;
}

#contents-page h3 {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.7rem;
  position: relative;
  padding-left: 0.85rem;
}

#contents-page h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-image: linear-gradient(
    135deg,
    var(--accent-from),
    var(--accent-to)
  );
}

/* 引用 */
#contents-page blockquote {
  margin: 1.6rem 0;
  padding: 1.1rem 1.3rem;
  border-radius: 0.75rem;
  background: #f9fafb;
  border-left: 4px solid var(--accent-solid);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ----------------------------------------------------
   サイドバー
---------------------------------------------------- */

#sidebar .widget {
  background: var(--bg-card);
  border-radius: 0.9rem;
  box-shadow: var(--shadow-soft);
  padding: 1.3rem 1.3rem 1.4rem;
  margin-bottom: 1.6rem;
  font-size: 0.9rem;
}

#sidebar .widget-title {
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  padding-left: 0.6rem;
}

#sidebar .widget-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 3px;
  height: 1.1rem;
  border-radius: 999px;
  background-image: linear-gradient(
    180deg,
    var(--accent-from),
    var(--accent-to)
  );
}

#sidebar a:hover {
  color: var(--accent-solid);
}

/* ----------------------------------------------------
   パンくず
---------------------------------------------------- */

.bread-wrap {
  max-width: 1200px;
  margin: 0 auto 1.8rem;
  padding: 0 1.5rem;
}

.bread {
  font-size: 0.78rem;
  color: #9ca3af;
}

.bread a {
  color: #6b7280;
}

.bread a:hover {
  color: var(--accent-solid);
}

/* ----------------------------------------------------
   ページネーション
---------------------------------------------------- */

.pagination {
  margin: 2.2rem 0 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.pagination a,
.pagination span {
  min-width: 2.3rem;
  height: 2.3rem;
  padding: 0 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: #4b5563;
}

.pagination .current {
  border: none;
  background-image: linear-gradient(
    135deg,
    var(--accent-from),
    var(--accent-to)
  );
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

/* ----------------------------------------------------
   フッター
---------------------------------------------------- */

footer {
  margin-top: 3rem;
  padding: 1.8rem 1.5rem 2.6rem;
  text-align: center;
  font-size: 0.78rem;
  color: #9ca3af;
  background: #f9fafb;
  border-top: 1px solid rgba(148, 163, 184, 0.45);
}

footer a {
  color: #6b7280;
  font-weight: 500;
}

footer a:hover {
  color: var(--accent-solid);
}

/* ----------------------------------------------------
   「トップへ戻る」ボタン（ざっくりデザイン）
---------------------------------------------------- */

.scroll_to_btn,
#scroll-to-top,
#scroll-to-home {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background-image: linear-gradient(
    135deg,
    var(--accent-from),
    var(--accent-to)
  );
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.15s ease;
  z-index: 30;
}

.scroll_to_btn:hover,
#scroll-to-top:hover,
#scroll-to-home:hover {
  transform: translateY(-2px);
}

/* ----------------------------------------------------
   レスポンシブ
---------------------------------------------------- */

@media (max-width: 1024px) {
  #wrapper {
    flex-direction: column;
    padding: 2rem 1.2rem 3rem;
  }

  #sidebar {
    flex: 1 1 auto;
  }

  #loop-page article {
    width: calc(50% - 0.9rem);
  }
}

@media (max-width: 640px) {
  #header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-menu {
    padding: 0.35rem 1.1rem 0.6rem;
  }

  #wrapper {
    padding: 1.6rem 1rem 2.8rem;
  }

  #loop-page {
    gap: 1.2rem;
  }

  #loop-page article {
    width: 100%;
  }

  #contents-page {
    padding: 1.6rem 1.3rem 2.0rem;
  }

  #sidebar .widget {
    padding: 1.1rem 1.1rem 1.3rem;
  }
}
/*
Theme Name: 2column-matome
Theme URI: http://example.com/your-theme
Description: 2カラムのまとめサイト用のシンプルテーマ（グラデーションアクセント）
Author: kenichi（customized）
Version: 2.0
*/

/* ------------------------------------------------
   基本設定（リセット & 変数）
--------------------------------------------------- */

:root {
  --bg: #f4f5fb;
  --bg-soft: #f9fafb;
  --card-bg: #ffffff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-soft: rgba(148,163,184,0.35);
  --shadow-soft: 0 14px 30px rgba(15,23,42,0.08);
  --radius-lg: 16px;
  --radius-md: 12px;
  --accent-1: #6366f1;
  --accent-2: #ec4899;
  --accent-grad: linear-gradient(135deg, #6366f1, #ec4899);
  --accent-grad-soft: linear-gradient(135deg, #818cf8, #f472b6);
}


*,
*::before,
*::after {
  box-sizing: border-box;
}
.ui_button, .to_top{
	font-size: 2em;
}
html {
  scroll-behavior: smooth;
	display: block;
	margin: 0 auto;
	width: 90%;
	background-color: #FFF;
}

body {
  margin: 0;
  padding: 0;
  /* background: radial-gradient(circle at top left, #e5e7ff 0, #f4f5fb 40%, #eef2ff 100%); */
	background: #CFDDE8;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, "Noto Sans JP", "Hiragino Sans", "ヒラギノ角ゴ ProN W3",
    "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  line-height: 1.7;
  font-size: 15px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-1);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--accent-2);
}

ul,
ol {
  margin: 0;
  padding-left: 1.4em;
}

/* ------------------------------------------------
   ヘッダー
--------------------------------------------------- */

header {
  position: relative;
  z-index: 20;
	background: #366780;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(148,163,184,0.25);
}

header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--accent-grad);
  opacity: 0.9;
}

#header-inner {
  max-width: 1120px;
  width: 92%;
  margin: 0 auto;
  padding: 14px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

#header-inner .block1 {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#header-inner .block1 h1 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}

#header-inner .block1 h1 a {
  background: var(--accent-grad-soft);
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 700;
}

#header-inner .block1 p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

#header-inner .block2 {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ------------------------------------------------
   グローバルナビ
--------------------------------------------------- */

.nav-container {
  background: transparent;
}

#main-menu {
  margin: 0;
  padding: 0;
}

.nav-menu {
  max-width: 1120px;
  width: 92%;
  margin: 0 auto;
  padding: 10px 0 12px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  font-size: 0.86rem;
  color: var(--text-muted);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-grad-soft);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a,
.nav-menu > li > a:hover {
  color: var(--text-main);
}

.nav-menu > li.current-menu-item > a::after,
.nav-menu > li.current_page_item > a::after,
.nav-menu > li > a:hover::after {
  transform: scaleX(1);
}

/* ナビ下の細いバー（cautionウィジェット用） */
.caution {
  height: 4px !important;
  background: var(--accent-grad) !important;
}

/* ------------------------------------------------
   レイアウト
--------------------------------------------------- */

#wrapper {
  max-width: 1220px;
  width: 98%;
  margin: 28px auto 0;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

main {
  flex: 1 1 auto;
  min-width: 0;
}

#sidebar {
  flex: 0 0 280px;
}

/* ------------------------------------------------
   一覧ページ（トップ・アーカイブ）
--------------------------------------------------- */

#loop-page {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
  padding: 6px 0 24px;
}

#loop-page.category,
#loop-page.tags,
#loop-page.archives,
#loop-page.search {
  margin-top: 4px;
}

#loop-page .loop-page-title {
  width: 100%;
  margin: 0 0 6px;
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* 記事カード */

#loop-page article {
  position: relative;
  flex: 1 1 calc(33.333% - 14px);
  min-width: 240px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 12px 12px 14px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#loop-page article::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 10px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent-grad);
  opacity: 0.9;
}

#loop-page article a {
  display: block;
  color: inherit;
}

#loop-page article:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.16);
}

#loop-page article img {
  border-radius: var(--radius-md);
  margin: 18px auto 10px;
}

#loop-page article p {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

#loop-page article h2 {
  margin: 0 2px 4px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ------------------------------------------------
   投稿ページ（single / page）
--------------------------------------------------- */

#contents-page {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 26px 26px 32px;
}

#contents-page article {
  overflow: hidden;
}

#contents-page h1 {
  margin: 0 0 14px;
  font-size: 1.6rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  position: relative;
}

#contents-page h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent-grad);
  margin-top: 9px;
}

/* 投稿日時・カテゴリ・タグ行 */

#contents-page .time-category {
  margin: 6px 0 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}

#contents-page .time-category i {
  margin-right: 4px;
  color: var(--accent-1);
}

/* 記事内本文 */

#contents-page p {
  margin: 0 0 1.2em;
}

#contents-page img {
  margin: 10px auto;
  border-radius: var(--radius-md);
}

#contents-page .tags {
  margin-top: 2em;
}

/* 見出しスタイル */

#contents-page h2,
#contents-page h3 {
  border-radius: 999px;
  padding: 8px 14px 8px 14px;
  font-size: 1.1rem;
  margin: 2.2em 0 1em;
  background: linear-gradient(90deg, rgba(99,102,241,0.06), rgba(236,72,153,0.04));
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, #6366f1, #ec4899) 1;
}

#contents-page h4 {
  margin: 1.8em 0 0.8em;
  padding-left: 0.7em;
  border-left: 3px solid rgba(148,163,184,0.7);
  font-size: 1rem;
}

/* 引用 */

#contents-page blockquote {
  margin: 1.5em 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f3f4ff;
  border-left: 4px solid #6366f1;
  color: var(--text-muted);
}

/* ------------------------------------------------
   ウィジェット・サイドバー
--------------------------------------------------- */

#sidebar .box {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 20px;
  margin-bottom: 22px;
}

#sidebar h2 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding-bottom: 5px;
}

#sidebar h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-grad-soft);
}

/* 検索フォーム */

#sidebar #searchform {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
}

#sidebar #searchform #s {
  width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: 0.84rem;
}

#sidebar #searchsubmit {
  padding: 6px 10px;
  border-radius: 999px;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
  background: var(--accent-grad-soft);
  color: #ffffff;
}

/* カテゴリ・タグ一覧 */

#categories-2 ul,
#tag_cloud-2 ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#categories-2 ul li,
#tag_cloud-2 ul li {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  background: #f9fafb;
  border: 1px solid var(--border-soft);
}

#categories-2 ul li a,
#tag_cloud-2 ul li a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

#categories-2 ul li:hover,
#tag_cloud-2 ul li:hover {
  background: var(--accent-grad-soft);
  border-color: transparent;
}

#categories-2 ul li:hover a,
#tag_cloud-2 ul li:hover a {
  color: #ffffff;
}

/* 最近の投稿・その他リスト */

#sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#sidebar ul li {
  border-bottom: 1px dashed rgba(148,163,184,0.5);
  padding: 6px 0;
  font-size: 0.84rem;
}

#sidebar ul li:last-child {
  border-bottom: none;
}

#sidebar ul li a {
  color: var(--text-main);
}

#sidebar ul li a:hover {
  color: var(--accent-2);
}

/* ------------------------------------------------
   パンくずリスト
--------------------------------------------------- */

.bread-wrap {
  border-top: 1px solid rgba(148,163,184,0.25);
  background: rgba(255,255,255,0.9);
  margin-top: 6px;
}

.bread-wrap nav,
.bread-wrap div {
  max-width: 1120px;
  width: 94%;
  margin: 0 auto;
  padding: 8px 0 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bread-wrap a {
  color: var(--text-muted);
}

.bread-wrap a:hover {
  color: var(--accent-1);
}

/* ------------------------------------------------
   ページネーション
--------------------------------------------------- */

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 24px;
}

.pagination a,
.pagination span {
  min-width: 34px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  font-size: 0.82rem;
  text-align: center;
  color: var(--text-muted);
}

.pagination a:hover {
  background: var(--accent-grad-soft);
  border-color: transparent;
  color: #ffffff;
}

.pagination .current {
  background: var(--accent-grad);
  border-color: transparent;
  color: #ffffff;
  font-weight: 600;
}

/* ------------------------------------------------
   フッター & トップへ戻るボタン
--------------------------------------------------- */

footer {
  margin-top: 18px;
  padding: 22px 0 28px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: transparent;
}

footer::before {
  content: "";
  display: block;
  max-width: 1120px;
  width: 94%;
  margin: 0 auto 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-grad-soft);
}

footer a {
  color: var(--text-muted);
}

footer a:hover {
  color: var(--accent-1);
}

/* スクロールトップボタン */
.ui_buttons {
  position: fixed;
  right: 20px;
  left: auto;       /* ← 左側指定があっても消す */
  bottom: 20px;     /* 画面下からの距離 */
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 共通ボタンデザイン */
.ui_button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: #fff;
}

/* ホバー時 */
.ui_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.35);
}

/* HOMEボタンだけ少し色を変える場合 */
.ui_button.to_home {
  background: linear-gradient(135deg, #10b981, #3b82f6);
}

/* ----------------------------------------------------
   投稿記事
---------------------------------------------------- */

/* 女優アフィリンク */
.a-affi-links{
	margin: 0 auto; 
	width: 98%; 
	display: flex; 
	flex-wrap: wrap;
	margin-bottom: 6%;
}
.a-affi-links a{ width: 24%; }
.a-affi-links a span{ display: block; height: 90px; overflow: hidden; font-size: 0.7em; }

/* Fanza作品リンク */
.affi-link {
  margin: 6% 0;
}

.affi-link a {
  display: block;
  text-decoration: none;
  color: #333;
}

.affi-link a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 2px solid #ff9800;
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform .15s ease, box-shadow .15s ease;
}

.affi-link a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.affi-link a img {
  display: block;
  width: 120px;
  height: auto;
  border-radius: 4px;
}
.affi-link a{
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 8px;
  line-height: 1.4;
}

.affi-link {
  position: relative;/* 子要素のabsoluteの基準にする */
}
.affi-label {
  position: absolute;
  top: -15px;
  left: 10px;
  background: #ff8800;
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
  font-weight: bold;
}



/* スマホ用：縦並び */
@media (max-width: 600px) {
  .affi-link a {
    flex-direction: row; /* そのまま横並びでもOKだが、崩れるならcolumnに */
    align-items: flex-start;
  }

  .affi-link a img {
    width: 90px;
  }
}

.fanza-video{ display: block; margin: 0 auto; width: 98%; height: 440px; margin-top: 6%; margin-bottom: 6%; }

/* .fanza-smpimgs{ display: block; margin: 0 auto; width: 98%; } */


/* ------------------------------------------------
   レスポンシブ
--------------------------------------------------- */

@media (max-width: 1024px) {
  #wrapper {
    flex-direction: column;
  }

  #sidebar {
    flex: 0 0 auto;
    width: 100%;
  }

  #loop-page article {
    flex-basis: calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  #header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 12px;
  }

  .nav-menu {
    padding-top: 4px;
  }

  #wrapper {
    margin-top: 20px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  #wrapper {
    width: 95%;
  }

  #loop-page {
    gap: 16px;
  }

  #loop-page article {
    flex-basis: 100%;
  }

  #contents-page {
    padding: 20px 16px 24px;
  }

  #sidebar .box {
    padding: 16px 14px 18px;
  }
}
