/* ============================================================
   財務部目線の株式投資 — メインスタイルシート v2
   Font: M PLUS Rounded 1c (body) + Shippori Mincho (headings)
   Color: Tiffany Blue (#0ABAB5)
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --tiffany:        #0ABAB5;
  --tiffany-light:  #E0F7F6;
  --tiffany-mid:    #7DD8D5;
  --tiffany-dark:   #078C89;
  --tiffany-deeper: #055E5C;

  --white:     #ffffff;
  --off-white: #F7FCFC;
  --gray-50:   #F8FAFA;
  --gray-100:  #EEF4F4;
  --gray-200:  #D8E8E8;
  --gray-400:  #9DBCBC;
  --gray-600:  #5A8080;
  --gray-800:  #2C4A4A;
  --gray-900:  #1A2E2E;

  --font-body:    'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', sans-serif;
  --font-heading: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', sans-serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --shadow-sm:   0 1px 4px rgba(10,186,181,.10);
  --shadow-md:   0 4px 20px rgba(10,186,181,.14);
  --shadow-lg:   0 8px 40px rgba(10,186,181,.18);
  --shadow-card: 0 2px 16px rgba(10,50,50,.07);

  --transition:      .25s cubic-bezier(.4,0,.2,1);
  --transition-slow: .45s cubic-bezier(.4,0,.2,1);

  --max-width: 1160px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--tiffany-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--tiffany); }
ul, ol { list-style: none; }

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.45;
  color: var(--gray-900);
  font-weight: 700;
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--tiffany);
  color: var(--white);
  border-color: var(--tiffany);
  box-shadow: 0 4px 14px rgba(10,186,181,.32);
}
.btn-primary:hover {
  background: var(--tiffany-dark);
  border-color: var(--tiffany-dark);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(10,186,181,.42);
}

.btn-outline {
  background: transparent;
  color: var(--tiffany-dark);
  border-color: var(--tiffany);
}
.btn-outline:hover {
  background: var(--tiffany-light);
  color: var(--tiffany-deeper);
}

.btn-white {
  background: var(--white);
  color: var(--tiffany-dark);
  border-color: var(--white);
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
}
.btn-white:hover { background: var(--tiffany-light); color: var(--tiffany-deeper); }
.btn--full { width: 100%; justify-content: center; }


/* ============================================================
   FV（ファーストビュー）
   ============================================================ */
.fv {
  width: 100%;
  background: var(--gray-100);
  overflow: hidden;
}

.fv-image {
  width: 100%;
  height: 368px;
  display: block;
  object-fit: cover;
}

.fv-placeholder {
  width: 100%;
  height: 368px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--tiffany-light) 0%, var(--gray-100) 100%);
  border-bottom: 2px dashed var(--tiffany-mid);
}
.fv-placeholder-icon { font-size: 3rem; opacity: .5; }
.fv-placeholder p {
  font-size: .9rem;
  color: var(--gray-600);
  font-weight: 500;
}

@media (max-width: 768px) {
  .fv-placeholder { height: 220px; }
  .fv-image { height: 220px; }
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--tiffany);
  color: var(--white);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(10,186,181,.38);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  white-space: nowrap;
}
.logo-subtitle {
  font-size: .62rem;
  color: var(--gray-400);
  letter-spacing: .05em;
  margin-top: 4px;
  font-family: var(--font-body);
}

/* ============================================================
   ARCHIVE BANNER
   ============================================================ */
.archive-banner {
  padding: 56px 0 48px;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--tiffany-light) 100%);
  border-bottom: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}
.archive-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(10,186,181,.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.archive-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tiffany);
  margin-bottom: 10px;
  position: relative; z-index: 1;
  font-family: var(--font-body);
}
.archive-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gray-900);
  position: relative; z-index: 1;
}
.archive-desc {
  font-size: .95rem;
  color: var(--gray-600);
  margin-top: 10px;
  max-width: 540px;
  position: relative; z-index: 1;
}

/* ============================================================
   ARCHIVE BODY LAYOUT
   ============================================================ */
.archive-body {
  padding: 60px 0 80px;
  background: var(--gray-50);
}

.content-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ============================================================
   POST CARDS
   ============================================================ */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: stretch;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.post-card--featured {
  grid-template-columns: 240px 1fr;
}

/* 画像エリア共通（サムネあり・なし両方） */
.post-card-image,
.post-card-image--thumb {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* 高さはカード本文に合わせて伸縮 */
  min-height: 160px;
}

/* サムネイルあり */
.post-card-image--thumb {
  background: var(--gray-100);
}
.post-card-image--thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
  position: absolute; inset: 0;
}
.post-card:hover .post-card-image--thumb img { transform: scale(1.05); }

/* サムネイルなし（SVGプレースホルダー） */
.post-card-image {
  background: var(--tiffany-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card-image::after {
  content: attr(data-label);
  position: absolute;
  top: 10px; left: 10px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--white);
  background: var(--tiffany-dark);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
}
.post-card-image-inner {
  color: var(--tiffany-dark);
  opacity: .5;
  width: 90px; height: 60px;
}
.post-card-image-inner svg { width: 100%; height: 100%; }

/* Card Body */
.post-card-body {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.post-category {
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: .04em;
  font-family: var(--font-body);
}
.cat-financial { background: #E0F7F6; color: #078C89; }
.cat-valuation  { background: #FFF3E0; color: #E65100; }
.cat-strategy   { background: #E8EAF6; color: #3949AB; }
.cat-cases      { background: #FCE4EC; color: #C62828; }
.cat-basics     { background: #F3E5F5; color: #6A1B9A; }

.post-date {
  font-size: .78rem;
  color: var(--gray-400);
  font-family: var(--font-body);
}

.post-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 10px;
}
.post-title a { color: var(--gray-900); transition: color var(--transition); }
.post-title a:hover { color: var(--tiffany-dark); }

.post-excerpt {
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 300;
}

.post-read-more {
  font-size: .84rem;
  font-weight: 700;
  color: var(--tiffany-dark);
  letter-spacing: .02em;
  font-family: var(--font-body);
}
.post-read-more span {
  display: inline-block;
  transition: transform var(--transition);
}
.post-read-more:hover span { transform: translateX(4px); }

/* 記事なし */
.no-posts {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 60px 32px;
  text-align: center;
  border: 1px solid var(--gray-100);
}
.no-posts-icon { font-size: 2.5rem; margin-bottom: 12px; }
.no-posts-msg {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 24px;
}

/* Pagination */
.pagination {
  margin-top: 40px;
}
.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  min-width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-800);
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 0 10px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  font-family: var(--font-body);
}
.pagination .page-numbers:hover {
  background: var(--tiffany-light);
  color: var(--tiffany-dark);
  border-color: var(--tiffany-mid);
}
.pagination .page-numbers.current {
  background: var(--tiffany);
  color: var(--white);
  border-color: var(--tiffany);
  cursor: default;
}
.pagination .page-numbers.dots {
  background: none;
  border: none;
  color: var(--gray-400);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 24px;
}

/* WordPress ウィジェット共通 */
.sidebar .widget,
.widget {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 22px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-card);
}

.widget-title,
.sidebar .widget-title {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tiffany-dark);
  border-bottom: 2px solid var(--tiffany-light);
  padding-bottom: 10px;
  margin-bottom: 14px;
  font-family: var(--font-body);
}

/* Profile */
.widget-profile {
  text-align: center;
}
.profile-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.avatar-placeholder {
  width: 76px; height: 76px;
  background: var(--tiffany-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--tiffany);
  overflow: hidden;
  border: 3px solid var(--tiffany-mid);
}
.avatar-placeholder img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.profile-name {
  font-family: var(--font-heading);
  font-size: .98rem;
  margin-bottom: 10px;
}
.profile-bio {
  font-size: .83rem;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 12px;
  font-weight: 300;
}
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.profile-tags span {
  font-size: .72rem;
  font-weight: 600;
  color: var(--tiffany-dark);
  background: var(--tiffany-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* WordPress 検索フォーム上書き */
.widget-search .search-form,
.widget .search-form {
  display: flex;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color var(--transition);
}
.widget-search .search-form:focus-within,
.widget .search-form:focus-within { border-color: var(--tiffany); }

.widget .search-field,
.widget-search .search-field {
  flex: 1;
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: .88rem;
  border: none;
  outline: none;
  background: transparent;
  color: var(--gray-900);
}
.widget .search-field::placeholder { color: var(--gray-400); }

.widget .search-submit,
.widget-search .search-submit {
  padding: 9px 14px;
  background: var(--tiffany);
  border: none;
  cursor: pointer;
  font-size: .85rem;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  transition: background var(--transition);
}
.widget .search-submit:hover { background: var(--tiffany-dark); }

/* カテゴリーリスト */
.category-list li + li { border-top: 1px solid var(--gray-100); }
.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 2px;
  font-size: .88rem;
  color: var(--gray-800);
  transition: color var(--transition);
  font-weight: 400;
}
.category-list a:hover { color: var(--tiffany-dark); }
.cat-name { font-weight: 500; }
.cat-count {
  font-size: .72rem;
  color: var(--white);
  background: var(--tiffany);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-family: var(--font-body);
}

/* 人気・最新記事リスト */
.popular-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  counter-reset: popular-counter;
}
.popular-list li { counter-increment: popular-counter; }
.popular-list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: var(--gray-800);
  font-weight: 400;
}
.popular-list a:hover .popular-title { color: var(--tiffany-dark); }
.popular-rank {
  width: 20px; height: 20px;
  background: var(--tiffany-light);
  color: var(--tiffany-dark);
  border-radius: 50%;
  font-weight: 700;
  font-size: .7rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-family: var(--font-body);
}
.popular-list li:first-child .popular-rank { background: var(--tiffany); color: var(--white); }
.popular-list li:nth-child(2) .popular-rank { background: var(--tiffany-mid); color: var(--white); }
.popular-title { line-height: 1.55; transition: color var(--transition); }

/* WordPress デフォルトウィジェット調整 */
.widget ul { padding: 0; }
.widget ul li { border-top: 1px solid var(--gray-100); }
.widget ul li:first-child { border-top: none; }
.widget ul li a {
  display: block;
  padding: 8px 2px;
  font-size: .88rem;
  color: var(--gray-800);
  font-weight: 400;
  transition: color var(--transition);
}
.widget ul li a:hover { color: var(--tiffany-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.75);
}

.footer-bottom {
  padding: 28px 0;
  text-align: center;
}
.footer-disclaimer {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  line-height: 1.75;
  margin-bottom: 8px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}
.footer-copy {
  font-size: .76rem;
  color: rgba(255,255,255,.3);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--tiffany);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(10,186,181,.42);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 90;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--tiffany-dark); }

/* ============================================================
   SCROLL-IN ANIMATION
   ============================================================ */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1);
}
.animate-in.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .content-sidebar-layout { grid-template-columns: 1fr 264px; gap: 32px; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  .archive-banner { padding: 44px 0 36px; }

  .content-sidebar-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .widget-profile { grid-column: span 2; }

  .post-card { grid-template-columns: 1fr; }
  .post-card--featured { grid-template-columns: 1fr; }
  .post-card-image { min-height: 110px; }

}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .sidebar { grid-template-columns: 1fr; }
  .widget-profile { grid-column: span 1; }
}

/* ============================================================
   SINGLE POST PAGE
   ============================================================ */

/* 記事ヘッダー */
.single-hero {
  padding: 52px 0 44px;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--tiffany-light) 100%);
  border-bottom: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}
.single-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(10,186,181,.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}

.single-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.5;
  color: var(--gray-900);
  font-weight: 700;
  position: relative; z-index: 1;
  max-width: 800px;
}

/* アイキャッチ画像 */
.single-thumbnail {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background: var(--gray-100);
}
.single-thumbnail img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* 記事本文 */
.single-article {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.entry-content {
  font-size: .98rem;
  line-height: 2;
  color: var(--gray-800);
  font-weight: 400;
}

.entry-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 2em 0 .8em;
  padding-left: 14px;
  border-left: 4px solid var(--tiffany);
}
.entry-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 1.8em 0 .6em;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--tiffany-light);
}
.entry-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tiffany-dark);
  margin: 1.5em 0 .5em;
}

.entry-content p { margin-bottom: 1.6em; }

.entry-content a {
  color: var(--tiffany-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content a:hover { color: var(--tiffany); }

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.6em 1.4em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content blockquote {
  margin: 1.8em 0;
  padding: 16px 20px;
  background: var(--tiffany-light);
  border-left: 4px solid var(--tiffany);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--gray-700, var(--gray-800));
  font-size: .95rem;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: .9rem;
}
.entry-content th {
  background: var(--tiffany-light);
  color: var(--tiffany-deeper);
  font-weight: 700;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  text-align: left;
}
.entry-content td {
  padding: 9px 14px;
  border: 1px solid var(--gray-200);
  vertical-align: top;
}
.entry-content tr:nth-child(even) td { background: var(--gray-50); }

.entry-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1.4em auto;
}

.entry-content code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: .88em;
  color: var(--tiffany-deeper);
}
.entry-content pre {
  background: var(--gray-900);
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.6em 0;
  font-size: .88rem;
  line-height: 1.7;
}
.entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* タグ */
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--gray-100);
}
.entry-tag {
  font-size: .78rem;
  font-weight: 600;
  color: var(--tiffany-dark);
  background: var(--tiffany-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  transition: background var(--transition), color var(--transition);
}
.entry-tag:hover {
  background: var(--tiffany);
  color: var(--white);
}

/* 著者ボックス */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.author-avatar img,
.author-avatar .avatar-placeholder {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--tiffany-mid);
}
.author-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tiffany);
  margin-bottom: 4px;
}
.author-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.author-bio {
  font-size: .86rem;
  color: var(--gray-600);
  line-height: 1.8;
  font-weight: 300;
}

/* 前後記事ナビ */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.post-nav-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--tiffany-mid);
}
.post-nav-link--next { text-align: right; }
.post-nav-direction {
  font-size: .72rem;
  font-weight: 700;
  color: var(--tiffany);
  letter-spacing: .06em;
}
.post-nav-title {
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-900);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 一覧に戻る */
.back-to-list {
  text-align: center;
  margin-top: 8px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .single-article { padding: 24px 20px; }
  .single-thumbnail img { height: 240px; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-nav-link--next { text-align: left; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--tiffany);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .animate-in { opacity: 1; transform: none; }
}
