/* === タイアンブリッジ公式ブログ デザイン === */

:root {
  --tb-navy:  #00064b;
  --tb-red:   #c00000;
  --tb-bg:    #f8f9fb;
  --tb-text:  #1a1a1a;
  --tb-gray:  #666;
  --tb-border:#e0e4ed;
  --tb-white: #ffffff;
}

/* ─── Base ─── */
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--tb-bg);
  color: var(--tb-text);
}

/* ─── TOP BAR ─── */
.taian-topbar {
  background: var(--tb-navy);
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-align: right;
  padding: 6px 40px;
}
.taian-topbar a { color: rgba(255,255,255,0.75); text-decoration: none; }
.taian-topbar a:hover { color: #fff; }

/* ─── HEADER (sticky) ─── */
.site-header {
  background: var(--tb-white) !important;
  border-bottom: none !important;
  box-shadow: 0 2px 10px rgba(0,6,75,0.08) !important;
  padding: 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
}
.site-header .inside-header {
  padding: 4px 40px !important;
  display: flex !important;
  align-items: center !important;
}
.custom-logo,
.is-logo-image,
.site-logo img,
.header-image.is-logo-image {
  max-height: 52px !important;
  width: auto !important;
  max-width: 240px !important;
  height: auto !important;
  display: block;
}
.main-title {
  font-size: 20px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
}
.site-description {
  font-size: 11px;
  color: var(--tb-gray);
  letter-spacing: 0.06em;
  margin: 4px 0 0 12px;
  border-left: 2px solid var(--tb-red);
  padding-left: 10px;
}

/* ─── NAVIGATION ─── */
.main-navigation,
.nav-primary {
  background: var(--tb-navy) !important;
}
.main-navigation .inside-navigation {
  padding: 3px 30px !important;
  min-height: unset !important;
}
.main-navigation a,
.main-navigation .main-nav ul li a,
.main-navigation .menu-bar-item > a {
  color: rgba(255,255,255,0.88) !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 3px 6px !important;
  border-radius: 4px;
  margin: 0 2px;
  line-height: 1.3 !important;
  transition: color 0.15s, background 0.15s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
  background: var(--tb-red) !important;
  color: #fff !important;
}
.main-navigation ul ul {
  background: var(--tb-navy) !important;
  border-top: 2px solid var(--tb-red) !important;
}

/* ─── HERO BANNER ─── */
.taian-hero {
  background: linear-gradient(120deg, var(--tb-navy) 0%, #000b83 60%, #001166 100%);
  color: #fff;
  text-align: center;
  padding: 52px 40px 48px;
  position: relative;
  overflow: hidden;
}
.taian-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tb-red);
}
.taian-hero .hero-badge {
  display: inline-block;
  background: var(--tb-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.taian-hero h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: 0.04em;
}
.taian-hero p {
  font-size: 13px;
  opacity: 0.78;
  margin: 0;
  letter-spacing: 0.06em;
}

/* ─── BREADCRUMB ─── */
.breadcrumb-trail, .generate-breadcrumbs {
  background: var(--tb-white);
  border-bottom: 1px solid var(--tb-border);
  padding: 10px 40px !important;
  font-size: 11px;
  color: var(--tb-gray);
}
.breadcrumb-trail a { color: var(--tb-navy); text-decoration: none; }
.breadcrumb-trail a:hover { color: var(--tb-red); }

/* ─── LAYOUT: CONTENT + SIDEBAR ─── */
.site-content .content-area {
  padding-top: 36px;
  padding-bottom: 36px;
}

/* ─── BLOG LIST: 2-COLUMN GRID ─── */
.blog .site-main,
.archive .site-main,
.search .site-main {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
}
.blog .site-main .pagination,
.archive .site-main .pagination,
.search .site-main .pagination {
  grid-column: 1 / -1;
}

/* ─── POST CARD ─── */
.blog article.post,
.archive article.post,
.search article.post {
  background: var(--tb-white);
  border-radius: 8px;
  border: 1px solid var(--tb-border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  margin: 0 !important;
}
.blog article.post:hover,
.archive article.post:hover {
  box-shadow: 0 6px 24px rgba(0,6,75,0.12);
  transform: translateY(-3px);
}
.blog article .inside-article,
.archive article .inside-article {
  padding: 20px !important;
}

/* Thumbnail */
.post-image a img,
.blog .post-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Category badge */
.entry-categories a,
.cat-links a {
  display: inline-block;
  background: var(--tb-navy) !important;
  color: #fff !important;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  text-decoration: none !important;
  letter-spacing: 0.06em;
  margin-right: 4px;
}

/* Post title */
.entry-title {
  font-size: 16px !important;
  line-height: 1.55;
  margin: 10px 0 8px !important;
}
.entry-title a {
  color: var(--tb-text) !important;
  text-decoration: none !important;
  font-weight: 700;
}
.entry-title a:hover { color: var(--tb-red) !important; }

/* Meta */
.entry-meta, .posted-on, .byline {
  font-size: 11px;
  color: var(--tb-gray);
}
.entry-meta .sep { margin: 0 4px; }

/* Excerpt */
.entry-summary p {
  font-size: 13px;
  line-height: 1.7;
  color: #444;
  margin: 8px 0;
}

/* Read more */
.more-link, a.more-link {
  display: inline-block;
  background: var(--tb-navy);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 4px;
  text-decoration: none !important;
  margin-top: 10px;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.more-link:hover, a.more-link:hover { background: var(--tb-red) !important; }

/* ─── SIDEBAR ─── */
.widget {
  background: var(--tb-white);
  border-radius: 8px;
  border: 1px solid var(--tb-border);
  padding: 0;
  margin-bottom: 24px;
  overflow: hidden;
}
.widget-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: var(--tb-navy) !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  letter-spacing: 0.08em;
  border-radius: 0 !important;
}
.widget .widget-content,
.widget > ul,
.widget > div:not(.widget-title) {
  padding: 16px;
}
.widget ul { padding-left: 0; list-style: none; margin: 0; }
.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--tb-border);
  font-size: 13px;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--tb-text); text-decoration: none; }
.widget ul li a:hover { color: var(--tb-red); }

/* Recent Posts 제목 크기 */
.wp-block-group h2 {
  font-size: 16px !important;
  font-weight: 700;
  color: var(--tb-navy);
  margin: 0 0 10px !important;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--tb-border);
}

/* 검색창 (글 목록 위) */
.taian-search-wrap {
  margin-bottom: 24px;
}
.taian-search-wrap form {
  display: flex;
  gap: 0;
  max-width: 480px;
}
.taian-search-wrap input[type="search"] {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--tb-border);
  border-right: none;
  border-radius: 6px 0 0 6px;
  font-size: 13px;
  font-family: 'Noto Sans JP', sans-serif;
  outline: none;
  background: #fff;
  color: var(--tb-text);
}
.taian-search-wrap input[type="search"]:focus {
  border-color: var(--tb-navy);
}
.taian-search-wrap input[type="submit"] {
  background: var(--tb-navy);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.taian-search-wrap input[type="submit"]:hover {
  background: var(--tb-red);
}

/* CTA Box */
.taian-cta-box {
  background: linear-gradient(135deg, var(--tb-navy) 0%, #000b83 100%);
  color: #fff;
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 24px;
}
.taian-cta-box .cta-eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  opacity: 0.65;
  margin-bottom: 10px;
}
.taian-cta-box .cta-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 10px;
}
.taian-cta-box .cta-body {
  font-size: 12px;
  opacity: 0.78;
  line-height: 1.75;
  margin-bottom: 18px;
}
.taian-cta-box .cta-btn {
  display: block;
  background: var(--tb-red);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 13px;
  border-radius: 6px;
  text-decoration: none !important;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}
.taian-cta-box .cta-btn:hover { opacity: 0.85; }

/* ─── SINGLE POST ─── */
.single .entry-content h2 {
  border-left: 4px solid var(--tb-red);
  padding-left: 14px;
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  color: var(--tb-navy);
}
.single .entry-content h3 {
  border-bottom: 1px solid var(--tb-border);
  padding-bottom: 6px;
  font-size: 17px;
  font-weight: 700;
  margin-top: 32px;
}
.single .entry-content a { color: var(--tb-navy); text-decoration: underline; }
.single .entry-content a:hover { color: var(--tb-red); }
.single .entry-content table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  margin: 20px 0;
}
.single .entry-content th {
  background: var(--tb-navy);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
}
.single .entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--tb-border);
}
.single .entry-content tr:nth-child(even) td { background: #f0f2f8; }

/* ─── PAGINATION ─── */
.pagination .page-numbers {
  display: inline-block;
  border: 1px solid var(--tb-border);
  color: var(--tb-navy);
  padding: 7px 13px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin: 2px;
  transition: background 0.15s, color 0.15s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--tb-navy);
  color: #fff;
  border-color: var(--tb-navy);
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--tb-navy) !important;
  color: rgba(255,255,255,0.65) !important;
  border-top: 3px solid var(--tb-red) !important;
  margin-top: 40px;
}
.site-footer .inside-footer {
  padding: 36px 40px !important;
  text-align: center;
}
.site-footer a { color: rgba(255,255,255,0.75) !important; text-decoration: none; }
.site-footer a:hover { color: var(--tb-red) !important; }
.footer-bar {
  background: #00031f !important;
  color: rgba(255,255,255,0.4) !important;
  font-size: 11px;
  padding: 12px 20px !important;
  text-align: center;
}
.footer-bar a { color: rgba(255,255,255,0.5) !important; }

/* ─── SECTION TITLE ─── */
.taian-section-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--tb-navy);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--tb-border);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.taian-section-title .section-accent {
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--tb-red);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ─── FEATURED FIRST POST ─── */
.blog .site-main article.post:first-of-type,
.archive .site-main article.post:first-of-type {
  grid-column: 1 / -1;
  position: relative;
  border-left: 4px solid var(--tb-red) !important;
  background: linear-gradient(135deg, #f4f6ff 0%, var(--tb-white) 60%);
}
.blog .site-main article.post:first-of-type .entry-title {
  font-size: 20px !important;
}
.blog .site-main article.post:first-of-type .post-image a img,
.archive .site-main article.post:first-of-type .post-image a img {
  height: 260px;
}
.taian-pickup-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--tb-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.12em;
  z-index: 1;
}

/* ─── THUMBNAIL HOVER ZOOM ─── */
.post-image a {
  overflow: hidden;
  display: block;
}
.post-image a img {
  transition: transform 0.4s ease;
}
.post-image a:hover img {
  transform: scale(1.06);
}

/* ─── CARD HOVER: RED LEFT BORDER ─── */
.blog article.post:hover,
.archive article.post:hover {
  box-shadow: 0 6px 24px rgba(0,6,75,0.12);
  transform: translateY(-3px);
  border-left: 3px solid var(--tb-red) !important;
}

/* ─── READING PROGRESS BAR ─── */
.taian-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--tb-red);
  z-index: 99999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ─── BACK TO TOP ─── */
.taian-back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: var(--tb-navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  font-size: 20px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s, transform 0.2s;
  z-index: 9998;
  box-shadow: 0 4px 16px rgba(0,6,75,0.3);
}
.taian-back-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.taian-back-top:hover {
  background: var(--tb-red);
  color: #fff !important;
  transform: translateY(-3px);
}

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .taian-topbar { padding: 6px 20px; }
  .site-header .inside-header { padding: 14px 20px !important; }
  .custom-logo { max-height: 40px !important; }
  .site-description { display: none; }
  .taian-hero { padding: 36px 20px; }
  .taian-hero h2 { font-size: 20px; }
  .blog .site-main,
  .archive .site-main,
  .search .site-main {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .site-footer .inside-footer { padding: 24px 20px !important; }
}
