
/* Layout hardening: Cocoonの2カラム幅指定をHome/宅配食カテゴリだけ解除 */
body.home .content-in,
body.category-meal-delivery .content-in {
  display: block !important;
  width: min(1180px, calc(100% - 32px)) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.home #main,
body.home main.main,
body.home .main,
body.category-meal-delivery #main,
body.category-meal-delivery main.main,
body.category-meal-delivery .main {
  float: none !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.home .entry-content,
body.category-meal-delivery .entry-content {
  width: 100% !important;
  max-width: none !important;
}

/* 宅配食カテゴリのハブは記事一覧より前で全幅表示 */
body.category-meal-delivery .category-content,
body.category-meal-delivery .archive-description {
  width: 100% !important;
  max-width: none !important;
}



/* TOVIEL Site Core v0.2.0 */

/* ---------- HOME polish ---------- */
body.home .content { margin-top: 0 !important; }

body.home .toviel-home-v2 {
  padding-bottom: 28px;
}

body.home .toviel-home-v2 .tv-wrap {
  max-width: 1160px;
}

body.home .toviel-home-v2 .tv-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

body.home .toviel-home-v2 .tv-section + .tv-section {
  margin-top: 8px;
}

body.home .toviel-home-v2 .tv-hero {
  margin-top: 28px;
  padding-top: 78px;
  padding-bottom: 70px;
  background:
    radial-gradient(circle at 92% 12%, rgba(79,127,174,.08), transparent 26%),
    linear-gradient(180deg,#F7FBFD 0%,#FFFFFF 100%);
}

body.home .toviel-home-v2 .tv-proof {
  min-height: 128px;
}

body.home .toviel-home-v2 .tv-mini-card,
body.home .toviel-home-v2 .tv-meal-card,
body.home .toviel-home-v2 .tv-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.home .toviel-home-v2 a.tv-mini-card:hover,
body.home .toviel-home-v2 a.tv-meal-card:hover,
body.home .toviel-home-v2 a.tv-card:hover {
  transform: translateY(-2px);
  border-color: #BFD4E1;
  box-shadow: 0 10px 24px rgba(23,58,94,.07);
}

body.home .toviel-home-v2 .tv-method {
  box-shadow: 0 8px 24px rgba(23,58,94,.035);
}

/* Latest posts */
body.home .toviel-new-posts {
  max-width: 1120px;
  margin: 0 auto 52px !important;
  gap: 18px !important;
}

body.home .toviel-new-posts li {
  overflow: hidden;
  padding: 0 0 16px !important;
  border: 1px solid #D9E7EF;
  border-radius: 16px;
  background: #FFFFFF;
}

body.home .toviel-new-posts .wp-block-latest-posts__featured-image {
  margin: 0 0 14px !important;
}

body.home .toviel-new-posts .wp-block-latest-posts__featured-image img {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover;
  display: block;
}

body.home .toviel-new-posts li > a {
  display: block;
  padding: 0 16px;
  color: #173A5E !important;
  font-weight: 700;
  line-height: 1.55;
  text-decoration: none !important;
}

/* Header / footer */
#header-container .header-in,
#navi .navi-in,
#footer .footer-in {
  max-width: 1160px;
}

.navi-in > ul > li.current-menu-item > a,
.navi-in > ul > li.current-menu-ancestor > a {
  background: #F2F7FA !important;
}

#footer {
  border-top: 1px solid #DCE8EF;
}

/* ---------- Meal delivery category hub ---------- */
body.category-meal-delivery #sidebar,
body.category-meal-delivery .sidebar {
  display: none !important;
}

body.category-meal-delivery #main,
body.category-meal-delivery main.main,
body.category-meal-delivery .main {
  width: 100% !important;
  max-width: none !important;
}

body.category-meal-delivery .content-in {
  max-width: 1180px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.tv-meal-hub {
  --mh-ink:#173A5E;
  --mh-accent:#4F7FAE;
  --mh-line:#D9E7EF;
  --mh-soft:#F7FAFC;
  --mh-muted:#617180;
  margin: 18px 0 42px;
  color:#263645;
}

.tv-meal-hub * { box-sizing:border-box; }
.tv-meal-hub a { color:inherit; text-decoration:none; }

.tv-meal-hub .mh-hero {
  padding: 34px 36px;
  border: 1px solid var(--mh-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 18%, rgba(79,127,174,.10), transparent 28%),
    linear-gradient(135deg,#F6FAFC,#FFFFFF);
}

.tv-meal-hub .mh-kicker {
  margin: 0 0 8px;
  color: var(--mh-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.tv-meal-hub .mh-hero h2,
.tv-meal-hub .mh-section h3 {
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  color:var(--mh-ink) !important;
}

.tv-meal-hub .mh-hero h2 {
  margin:0 0 10px !important;
  font-size:30px;
  line-height:1.35;
}

.tv-meal-hub .mh-hero p {
  max-width:760px;
  margin:0;
  color:var(--mh-muted);
}

.tv-meal-hub .mh-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 250px;
  gap:26px;
  margin-top:26px;
  align-items:start;
}

.tv-meal-hub .mh-main { min-width:0; }

.tv-meal-hub .mh-side {
  position:sticky;
  top:24px;
  padding:18px;
  border:1px solid var(--mh-line);
  border-radius:16px;
  background:#FFFFFF;
}

.tv-meal-hub .mh-side strong {
  display:block;
  margin-bottom:8px;
  color:var(--mh-ink);
}

.tv-meal-hub .mh-side a {
  display:block;
  padding:9px 0;
  border-top:1px solid #EDF2F5;
  color:#315F7D;
  font-size:14px;
}

.tv-meal-hub .mh-side a:first-of-type { border-top:0; }

.tv-meal-hub .mh-section {
  margin-bottom:22px;
  padding:24px;
  border:1px solid var(--mh-line);
  border-radius:18px;
  background:#FFFFFF;
}

.tv-meal-hub .mh-section h3 {
  margin:0 0 8px !important;
  font-size:21px;
}

.tv-meal-hub .mh-section > p {
  margin:0 0 16px;
  color:var(--mh-muted);
  font-size:14px;
}

.tv-meal-hub .mh-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.tv-meal-hub .mh-link {
  display:block;
  padding:14px;
  border:1px solid #E3ECF1;
  border-radius:12px;
  background:#FAFCFE;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tv-meal-hub .mh-link strong {
  display:block;
  margin-bottom:3px;
  color:var(--mh-ink);
  line-height:1.45;
}

.tv-meal-hub .mh-link span {
  display:block;
  color:var(--mh-muted);
  font-size:12px;
}

.tv-meal-hub .mh-link:hover {
  transform:translateY(-1px);
  border-color:#BCD1DF;
  background:#FFFFFF;
  box-shadow:0 8px 20px rgba(23,58,94,.05);
}

.tv-meal-hub .mh-service-list {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 14px;
  margin:0;
  padding:0;
  list-style:none;
}

.tv-meal-hub .mh-service-list a {
  display:block;
  padding:10px 0;
  border-bottom:1px solid #EDF2F5;
  color:#315F7D;
  font-weight:600;
}

/* Archive cards below hub */
body.category-meal-delivery .list {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

body.category-meal-delivery .list .entry-card-wrap {
  margin:0 !important;
}

body.category-meal-delivery .list .entry-card {
  height:100%;
  padding:16px;
  border:1px solid #D9E7EF;
  border-radius:16px;
  background:#FFFFFF;
}

@media screen and (max-width:834px) {
  body.home .toviel-home-v2 .tv-section {
    padding-top:50px;
    padding-bottom:50px;
  }

  .tv-meal-hub .mh-layout {
    grid-template-columns:1fr;
  }

  .tv-meal-hub .mh-side {
    position:static;
    order:-1;
  }

  .tv-meal-hub .mh-grid,
  .tv-meal-hub .mh-service-list,
  body.category-meal-delivery .list {
    grid-template-columns:1fr;
  }
}

@media screen and (max-width:480px) {
  body.home .toviel-home-v2 .tv-hero {
    margin-top:16px;
    padding-top:48px;
    padding-bottom:44px;
  }

  .tv-meal-hub .mh-hero {
    padding:24px 20px;
    border-radius:16px;
  }

  .tv-meal-hub .mh-section {
    padding:20px;
  }
}


body.category-meal-delivery .list .entry-card-wrap,
body.category-meal-delivery .list .entry-card {
  min-height: 0 !important;
}

body.category-meal-delivery .list .entry-card-wrap {
  width: 100% !important;
}

body.category-meal-delivery .list .entry-card {
  display: flex;
  flex-direction: column;
}


/* v0.3.0 layout hardening */
body.home #content,
body.category-meal-delivery #content {
  width: 100% !important;
  max-width: none !important;
}

body.home #content-in,
body.home .content-in,
body.category-meal-delivery #content-in,
body.category-meal-delivery .content-in {
  display: block !important;
  width: min(1180px, calc(100% - 40px)) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.home #main,
body.home .main,
body.category-meal-delivery #main,
body.category-meal-delivery .main {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  flex-basis: 100% !important;
}

/* Headerは説明文を出さず、サービスサイトらしく一段で */
#navi .item-description,
#navi .sub-caption {
  display: none !important;
}

#navi .navi-in > ul > li > a {
  min-height: 54px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* Home latest cards: 3 columns, balanced */
body.home .toviel-new-posts {
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
}

body.home .toviel-new-posts li {
  min-width: 0;
}

/* Meal hub receives Cocoon category content spacing reset */
body.category-meal-delivery .category-content,
body.category-meal-delivery .category-content .article {
  width: 100% !important;
  max-width: none !important;
}

body.category-meal-delivery .tv-meal-hub {
  width: 100%;
}

/* Focus visibility */
.toviel-home-v2 a:focus-visible,
.tv-meal-hub a:focus-visible {
  outline: 3px solid rgba(79,127,174,.35);
  outline-offset: 3px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .toviel-home-v2 *,
  .tv-meal-hub * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media screen and (max-width: 834px) {
  body.home #content-in,
  body.home .content-in,
  body.category-meal-delivery #content-in,
  body.category-meal-delivery .content-in {
    width: min(100% - 24px, 1180px) !important;
  }

  body.home .toviel-new-posts {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}

@media screen and (max-width: 480px) {
  body.home .toviel-new-posts {
    grid-template-columns: 1fr !important;
  }
}


/* v0.3.1 final polish */
body.home .toviel-home-v2 .tv-section h2,
.tv-meal-hub .mh-hero h2,
.tv-meal-hub .mh-section h3 {
  text-wrap: balance;
}

body.home .toviel-home-v2 p,
.tv-meal-hub p {
  text-wrap: pretty;
}

body.category-meal-delivery .list {
  margin-top: 30px;
}

body.category-meal-delivery .list .entry-card-title {
  color: #173A5E !important;
  line-height: 1.5;
}

body.category-meal-delivery .list .entry-card-snippet {
  color: #617180;
  line-height: 1.7;
}

body.category-meal-delivery .list .entry-card-thumb img {
  border-radius: 10px;
}

@media screen and (min-width: 835px) {
  body.home .toviel-home-v2 .tv-hero h1 {
    max-width: 720px;
  }
}


/* v0.3.2 service-site polish */

/* 宅配食カテゴリではCocoon標準TOCを出さない。
   専用stickyナビと役割が重複するため。 */
body.category-meal-delivery .toc,
body.category-meal-delivery #toc,
body.category-meal-delivery .toc-widget-box {
  display: none !important;
}

/* デフォルトのカテゴリH1は残しつつ、ブログ感の強いフォルダアイコンを消す */
body.category-meal-delivery #archive-title {
  margin: 38px 0 20px !important;
  padding: 0 !important;
  color: #173A5E !important;
  font-size: clamp(27px, 3vw, 34px) !important;
  line-height: 1.3;
  letter-spacing: -.01em;
}

body.category-meal-delivery #archive-title .fa,
body.category-meal-delivery #archive-title [class*="fa-"] {
  display: none !important;
}

/* ハブHeroをTOCなし前提で引き締める */
.tv-meal-hub .mh-hero {
  padding-top: 42px;
  padding-bottom: 42px;
}

.tv-meal-hub .mh-hero h2 {
  max-width: 760px;
}

.tv-meal-hub .mh-layout {
  margin-top: 22px;
}

/* 右ナビを「ブログのサイドバー」ではなく補助ナビらしく */
.tv-meal-hub .mh-side {
  top: 82px;
  box-shadow: 0 10px 28px rgba(23,58,94,.045);
}

.tv-meal-hub .mh-side strong {
  font-size: 16px;
}

.tv-meal-hub .mh-side a {
  position: relative;
  padding-right: 18px;
}

.tv-meal-hub .mh-side a::after {
  content: "›";
  position: absolute;
  right: 2px;
  color: #8FAFC4;
}

/* サービス別レビューを素のテキスト一覧から軽いナビカードへ */
.tv-meal-hub .mh-service-list {
  gap: 10px;
}

.tv-meal-hub .mh-service-list li {
  min-width: 0;
}

.tv-meal-hub .mh-service-list a {
  position: relative;
  padding: 12px 30px 12px 14px;
  border: 1px solid #E3ECF1;
  border-radius: 11px;
  background: #FAFCFE;
  line-height: 1.45;
}

.tv-meal-hub .mh-service-list a::after {
  content: "›";
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #8FAFC4;
}

.tv-meal-hub .mh-service-list a:hover {
  background: #FFFFFF;
  border-color: #BCD1DF;
  box-shadow: 0 7px 18px rgba(23,58,94,.045);
}

/* ネイティブ記事一覧へ自然につなぐ見出し */
.tv-meal-hub .mh-all-head {
  margin-top: 44px;
  padding: 28px 0 4px;
  border-top: 1px solid #D9E7EF;
}

.tv-meal-hub .mh-all-head .mh-kicker {
  margin-bottom: 5px;
}

.tv-meal-hub .mh-all-head h2 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #173A5E !important;
  font-size: 26px;
}

.tv-meal-hub .mh-all-head p:last-child {
  margin: 0;
  color: #617180;
}

/* Homeの最上部に余白が空きすぎないよう微調整 */
body.home .toviel-home-v2 .tv-hero {
  margin-top: 18px;
}

/* 4つの一次情報カードのテキスト密度を揃える */
body.home .toviel-home-v2 .tv-proof {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

body.home .toviel-home-v2 .tv-proof strong {
  min-height: 1.5em;
}

/* 長期レビューのカードはクリック領域・行間を揃える */
body.home .toviel-home-v2 .tv-cluster-grid .tv-card {
  min-height: 100%;
}

/* narrow desktop/tabletではstickyを解除して窮屈さ回避 */
@media screen and (max-width: 1023px) {
  .tv-meal-hub .mh-side {
    position: static;
    top: auto;
  }
}

@media screen and (max-width: 480px) {
  body.category-meal-delivery #archive-title {
    margin-top: 24px !important;
    font-size: 27px !important;
  }

  .tv-meal-hub .mh-hero {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .tv-meal-hub .mh-all-head {
    margin-top: 32px;
    padding-top: 24px;
  }
}


/* =========================================================
   v0.4.0 — "作り込まれている"サービスサイト仕上げ
========================================================= */

/* ----- Header / navigation system ----- */
#header-container {
  background: rgba(255,255,255,.97) !important;
  border-bottom: 1px solid #E6EEF3 !important;
}

#header {
  background: #FFFFFF !important;
}

#header-in {
  padding-top: 12px;
  padding-bottom: 10px;
}

#navi {
  background: #FFFFFF !important;
  border-top: 1px solid #EFF4F7;
}

#navi .navi-in > ul {
  gap: 4px;
}

#navi .navi-in > ul > li > a {
  position: relative;
  min-height: 52px;
  padding-left: 22px !important;
  padding-right: 22px !important;
  color: #173A5E !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .02em;
}

#navi .navi-in > ul > li > a::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 9px;
  height: 2px;
  border-radius: 2px;
  background: #4F7FAE;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

#navi .navi-in > ul > li:hover > a::after,
#navi .navi-in > ul > li:focus-within > a::after {
  transform: scaleX(1);
}

#navi .sub-menu {
  min-width: 210px !important;
  padding: 8px !important;
  border: 1px solid #E1EBF0 !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.99) !important;
  box-shadow: 0 16px 36px rgba(23,58,94,.10) !important;
}

#navi .sub-menu li a {
  padding: 10px 12px !important;
  border-radius: 8px;
  color: #173A5E !important;
  font-size: 13px !important;
}

#navi .sub-menu li a:hover {
  background: #F4F8FA !important;
}

#navi .tv-nav-meal > a {
  color: #315F7D !important;
}

/* ----- Home visual hierarchy ----- */
body.home .toviel-home-v2 .tv-hero {
  position: relative;
  overflow: hidden;
  border-color: #DCE8EF;
  box-shadow: 0 18px 46px rgba(23,58,94,.055);
}

body.home .toviel-home-v2 .tv-hero::after {
  content: "TOVIEL";
  position: absolute;
  right: 34px;
  bottom: -18px;
  color: rgba(23,58,94,.035);
  font-size: clamp(68px, 10vw, 128px);
  font-weight: 800;
  letter-spacing: .04em;
  pointer-events: none;
}

body.home .toviel-home-v2 .tv-proof-grid {
  gap: 12px;
}

body.home .toviel-home-v2 .tv-proof {
  position: relative;
  overflow: hidden;
  min-height: 146px;
  padding: 24px;
  background:
    linear-gradient(180deg,#FFFFFF 0%,#FBFDFE 100%);
}

body.home .toviel-home-v2 .tv-proof::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 3px;
  background: #D9E7EF;
}

body.home .toviel-home-v2 .tv-proof strong {
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -.02em;
}

body.home .toviel-home-v2 .tv-proof:first-child strong {
  font-size: 20px;
  padding-top: 5px;
}

/* Beauty / Health pillars get their own quiet identity */
body.home .toviel-home-v2 .tv-pillar {
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(23,58,94,.035);
}

body.home .toviel-home-v2 .tv-pillar::after {
  position: absolute;
  right: 18px;
  top: 8px;
  color: rgba(23,58,94,.035);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: .04em;
  pointer-events: none;
}

body.home .toviel-home-v2 .tv-pillar:nth-child(1)::after {
  content: "BEAUTY";
}

body.home .toviel-home-v2 .tv-pillar:nth-child(2)::after {
  content: "HEALTH";
}

/* Meal delivery special zone feels like a mini-service, not a big ad */
body.home .toviel-home-v2 .tv-meal-special {
  box-shadow: 0 18px 42px rgba(23,58,94,.045);
}

body.home .toviel-home-v2 .tv-meal-card {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Curated long-term reviews: image-led, editorial feel */
body.home .toviel-home-v2 .tv-cluster-grid {
  align-items: stretch;
}

body.home .toviel-home-v2 .tv-cluster-grid .tv-card {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  box-shadow: 0 12px 28px rgba(23,58,94,.045);
}

body.home .toviel-home-v2 .tv-cluster-grid .tv-card h3 {
  font-size: 21px !important;
}

body.home .toviel-home-v2 .tv-cluster-grid .tv-card .tv-badge {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(5px);
}

/* Editorial policy becomes a designed process block */
body.home .toviel-home-v2 .tv-method {
  position: relative;
  overflow: hidden;
  padding: 32px 34px;
  border-left: 5px solid #4F7FAE;
}

body.home .toviel-home-v2 .tv-method::after {
  content: "EDITORIAL POLICY";
  position: absolute;
  right: 18px;
  top: 6px;
  color: rgba(23,58,94,.035);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .04em;
}

/* Latest cards finish like a product/service index */
body.home .toviel-new-posts li {
  box-shadow: 0 10px 28px rgba(23,58,94,.045);
  transition: transform .18s ease, box-shadow .18s ease;
}

body.home .toviel-new-posts li:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(23,58,94,.08);
}

/* ----- TOVIEL service footer ----- */
.tv-service-footer {
  margin-top: 48px;
  padding: 54px 24px 22px;
  background: #102F4B;
  color: #EAF2F7;
}

.tv-service-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3,minmax(0,1fr));
  gap: 42px;
  max-width: 1160px;
  margin: 0 auto;
}

.tv-service-footer__brand strong {
  display: block;
  margin-bottom: 12px;
  color: #FFFFFF;
  font-size: 20px;
  line-height: 1.5;
}

.tv-service-footer__brand p {
  max-width: 360px;
  margin: 0;
  color: #BFD0DC;
  font-size: 13px;
  line-height: 1.8;
}

.tv-service-footer__eyebrow {
  margin-bottom: 8px !important;
  color: #8FAFC4 !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: .12em;
}

.tv-service-footer__col strong {
  display: block;
  margin-bottom: 12px;
  color: #FFFFFF;
  font-size: 14px;
}

.tv-service-footer__col a {
  display: block;
  padding: 7px 0;
  color: #C8D7E1 !important;
  font-size: 13px;
  text-decoration: none !important;
}

.tv-service-footer__col a:hover {
  color: #FFFFFF !important;
}

.tv-service-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1160px;
  margin: 38px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #8FAFC4;
  font-size: 11px;
  letter-spacing: .04em;
}

/* Hide Cocoon's old footer because the service footer fully replaces it */
#footer {
  display: none !important;
}

/* ----- Meal hub polish ----- */
.tv-meal-hub .mh-section {
  box-shadow: 0 10px 26px rgba(23,58,94,.035);
}

.tv-meal-hub .mh-link {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tv-meal-hub .mh-link strong {
  font-size: 16px;
}

.tv-meal-hub .mh-side {
  border-top: 4px solid #4F7FAE;
}

@media screen and (max-width: 1023px) {
  .tv-service-footer__inner {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media screen and (max-width: 834px) {
  #navi .navi-in > ul > li > a {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .tv-service-footer {
    padding-top: 42px;
  }

  .tv-service-footer__inner {
    gap: 30px 22px;
  }
}

@media screen and (max-width: 480px) {
  body.home .toviel-home-v2 .tv-hero::after,
  body.home .toviel-home-v2 .tv-pillar::after,
  body.home .toviel-home-v2 .tv-method::after {
    display: none;
  }

  body.home .toviel-home-v2 .tv-proof strong {
    font-size: 24px;
  }

  body.home .toviel-home-v2 .tv-cluster-grid .tv-card {
    min-height: 320px;
  }

  .tv-service-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tv-service-footer__bottom {
    display: block;
  }

  .tv-service-footer__bottom span {
    display: block;
    margin-top: 4px;
  }
}


/* v0.4.1 final QA fixes */

/* Mobile slide-in menu should read as a simple service navigation.
   Cocoon may render the same menu in a drawer with different wrappers. */
.mobile-menu-buttons .tv-nav-parent .sub-menu,
.mobile-menu-content .tv-nav-parent .sub-menu,
.navi-menu-content .tv-nav-parent .sub-menu {
  box-shadow: none !important;
}

@media screen and (max-width: 834px) {
  .mobile-menu-content .tv-nav-parent > a,
  .navi-menu-content .tv-nav-parent > a {
    font-weight: 700 !important;
  }

  .mobile-menu-content .tv-nav-parent .sub-menu,
  .navi-menu-content .tv-nav-parent .sub-menu {
    display: block !important;
    position: static !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 2px 0 8px 14px !important;
    border: 0 !important;
    background: transparent !important;
  }

  .mobile-menu-content .tv-nav-parent .sub-menu a,
  .navi-menu-content .tv-nav-parent .sub-menu a {
    padding: 8px 10px !important;
    font-weight: 500 !important;
  }
}

/* Footer links remain comfortably tappable on mobile. */
@media screen and (max-width: 480px) {
  .tv-service-footer__col a {
    padding-top: 9px;
    padding-bottom: 9px;
  }
}


/* v0.4.2 medium-width QA fixes */

/* 944px前後でCocoonがPCナビを隠すと「ロゴだけ」になるため、
   横幅835〜1023pxではコンパクトなPCナビを維持する。 */
@media screen and (min-width: 835px) and (max-width: 1023px) {
  #navi,
  #navi.navi {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
  }

  #navi .navi-in {
    display: block !important;
  }

  #navi .navi-in > ul {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
  }

  #navi .navi-in > ul > li {
    width: auto !important;
    flex: 0 1 auto !important;
  }

  #navi .navi-in > ul > li > a {
    min-height: 44px !important;
    padding: 0 13px !important;
    font-size: 12.5px !important;
    white-space: nowrap;
  }

  #navi .navi-in > ul > li > a::after {
    left: 13px;
    right: 13px;
    bottom: 5px;
  }

  #navi .sub-menu {
    min-width: 190px !important;
  }
}

/* Header and content rhythm */
#header-in {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.site-logo-image {
  width: auto !important;
  max-width: 148px !important;
  max-height: 50px !important;
}

body.home #content-in,
body.home .content-in,
body.category-meal-delivery #content-in,
body.category-meal-delivery .content-in {
  margin-top: 24px !important;
}

/* medium screen content balance */
@media screen and (min-width: 835px) and (max-width: 1023px) {
  body.home .toviel-home-v2 .tv-hero {
    padding-top: 60px;
    padding-bottom: 56px;
  }

  body.home .toviel-home-v2 .tv-hero h1 {
    font-size: clamp(38px, 5vw, 48px);
  }

  body.home .toviel-home-v2 .tv-proof strong {
    font-size: 23px;
  }
}


/* =========================================================
   v0.5.0 — TOVIEL crafted service design
   "シンプル"ではなく"丁寧に設計されている"見え方へ
========================================================= */

:root {
  --tv-navy: #173A5E;
  --tv-blue: #4F7FAE;
  --tv-ice: #F4F8FB;
  --tv-line2: #D7E5ED;
  --tv-text2: #263645;
  --tv-muted2: #637687;
  --tv-shadow-soft: 0 18px 46px rgba(23,58,94,.055);
}

/* ---------- Global canvas ---------- */
body.home,
body.category-meal-delivery {
  background:
    linear-gradient(180deg, #FFFFFF 0%, #FCFDFE 65%, #F8FBFC 100%);
}

body.home .content,
body.category-meal-delivery .content {
  background: transparent !important;
}

/* ---------- Header: premium but quiet ---------- */
#header-container {
  position: relative;
}

#header-container::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: min(1160px, calc(100% - 40px));
  height: 1px;
  background: linear-gradient(90deg, transparent, #D7E5ED 12%, #D7E5ED 88%, transparent);
  transform: translateX(-50%);
}

.logo-header {
  transition: opacity .18s ease, transform .18s ease;
}

.logo-header:hover {
  opacity: .9;
  transform: translateY(-1px);
}

/* ---------- Hero: asymmetrical editorial composition ---------- */
body.home .toviel-home-v2 .tv-hero {
  isolation: isolate;
  padding-left: 10px;
  border: 1px solid #D8E6EE;
  background:
    radial-gradient(circle at 83% 24%, rgba(143,175,196,.18) 0, rgba(143,175,196,.06) 20%, transparent 44%),
    radial-gradient(circle at 76% 76%, rgba(79,127,174,.08) 0, transparent 34%),
    linear-gradient(135deg,#F8FBFD 0%,#FFFFFF 62%);
  box-shadow:
    0 26px 70px rgba(23,58,94,.065),
    inset 0 1px 0 rgba(255,255,255,.9);
}

body.home .toviel-home-v2 .tv-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 6.5%;
  top: 50%;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(79,127,174,.14);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow:
    0 0 0 28px rgba(79,127,174,.025),
    0 0 0 62px rgba(79,127,174,.015);
}

body.home .toviel-home-v2 .tv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.home .toviel-home-v2 .tv-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: #4F7FAE;
}

body.home .toviel-home-v2 .tv-hero h1 {
  max-width: 720px;
  font-weight: 750;
  letter-spacing: -.035em;
}

body.home .toviel-home-v2 .tv-hero-copy {
  max-width: 720px;
  color: #52697B;
}

body.home .toviel-home-v2 .tv-actions {
  margin-top: 30px;
}

body.home .toviel-home-v2 .tv-btn {
  box-shadow: 0 5px 15px rgba(23,58,94,.04);
}

body.home .toviel-home-v2 .tv-btn--primary {
  box-shadow: 0 10px 24px rgba(23,58,94,.13);
}

/* ---------- Section rhythm / labels ---------- */
body.home .toviel-home-v2 .tv-section {
  position: relative;
}

body.home .toviel-home-v2 .tv-section > .tv-wrap > h2 {
  position: relative;
  padding-top: 13px !important;
}

body.home .toviel-home-v2 .tv-section > .tv-wrap > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg,#173A5E,#8FAFC4);
}

/* ---------- Proof band: bespoke metric tiles ---------- */
body.home .toviel-home-v2 .tv-proof-grid {
  position: relative;
  padding: 8px 0;
}

body.home .toviel-home-v2 .tv-proof {
  border-color: #D9E7EF;
  border-radius: 16px;
  background:
    linear-gradient(145deg,#FFFFFF 0%,#FAFCFE 100%);
  box-shadow: 0 12px 32px rgba(23,58,94,.035);
}

body.home .toviel-home-v2 .tv-proof::before {
  top: 0;
  bottom: auto;
  width: 58px;
  height: 3px;
  background: linear-gradient(90deg,#4F7FAE,#B9CEDB);
}

body.home .toviel-home-v2 .tv-proof strong {
  margin-top: 6px;
  color: #173A5E;
}

body.home .toviel-home-v2 .tv-proof span {
  margin-top: auto;
}

/* ---------- Beauty / Health: designed editorial panels ---------- */
body.home .toviel-home-v2 .tv-pillar-grid {
  gap: 22px;
}

body.home .toviel-home-v2 .tv-pillar {
  border-color: #D7E5ED;
  background:
    linear-gradient(180deg,#FFFFFF 0%,#FCFDFE 100%);
  box-shadow: 0 18px 46px rgba(23,58,94,.045);
}

body.home .toviel-home-v2 .tv-pillar:nth-child(1) {
  border-top: 4px solid #A8C1D2;
}

body.home .toviel-home-v2 .tv-pillar:nth-child(2) {
  border-top: 4px solid #6F97B3;
}

body.home .toviel-home-v2 .tv-pillar h3 {
  font-size: 27px !important;
  letter-spacing: -.02em;
}

body.home .toviel-home-v2 .tv-mini-grid {
  gap: 11px;
}

body.home .toviel-home-v2 .tv-mini-card {
  position: relative;
  padding-right: 42px;
  border-color: #DFEAF0;
}

body.home .toviel-home-v2 .tv-mini-card::after {
  content: "↗";
  position: absolute;
  right: 15px;
  top: 50%;
  color: #8FAFC4;
  font-size: 13px;
  transform: translateY(-50%);
}

/* ---------- Meal special: mini product/service surface ---------- */
body.home .toviel-home-v2 .tv-meal-special {
  overflow: hidden;
  border-color: #C9DCE7;
  background:
    linear-gradient(120deg,#F2F7FA 0%,#FFFFFF 68%);
  box-shadow: 0 22px 55px rgba(23,58,94,.055);
}

body.home .toviel-home-v2 .tv-meal-special::after {
  content: "MEAL";
  position: absolute;
  right: 26px;
  bottom: -22px;
  color: rgba(23,58,94,.028);
  font-size: 92px;
  font-weight: 800;
  letter-spacing: .05em;
  pointer-events: none;
}

body.home .toviel-home-v2 .tv-meal-head {
  position: relative;
  z-index: 1;
}

body.home .toviel-home-v2 .tv-meal-grid {
  position: relative;
  z-index: 1;
}

body.home .toviel-home-v2 .tv-meal-card {
  border-color: #D8E6EE;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(5px);
}

body.home .toviel-home-v2 .tv-meal-card strong {
  font-size: 16px;
}

/* ---------- Curated reviews: magazine-like ---------- */
body.home .toviel-home-v2 .tv-cluster-grid {
  gap: 20px;
}

body.home .toviel-home-v2 .tv-cluster-grid .tv-card {
  border-color: #D9E7EF;
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(23,58,94,.05);
}

body.home .toviel-home-v2 .tv-cluster-grid .tv-card:nth-child(1) {
  grid-column: span 1;
}

body.home .toviel-home-v2 .tv-cluster-grid .tv-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 16px 18px;
  height: 1px;
  background: linear-gradient(90deg,#D8E6EE,transparent);
  pointer-events: none;
}

body.home .toviel-home-v2 .tv-cluster-grid .tv-card h3 {
  letter-spacing: -.015em;
}

/* ---------- Editorial policy: designed manifesto ---------- */
body.home .toviel-home-v2 .tv-method {
  background:
    linear-gradient(135deg,#FFFFFF 0%,#F8FBFD 100%);
  box-shadow: 0 18px 44px rgba(23,58,94,.045);
}

body.home .toviel-home-v2 .tv-method > strong {
  display: inline-block;
  margin-bottom: 8px;
  color: #173A5E;
  font-size: 20px;
}

body.home .toviel-home-v2 .tv-method li {
  margin-bottom: 7px;
}

/* ---------- Latest: editorial feed ---------- */
body.home .toviel-new-posts li {
  border-color: #D8E6EE;
  border-radius: 17px;
}

body.home .toviel-new-posts li > a {
  padding-top: 3px;
  font-size: 15px;
}

/* ---------- Meal category: crafted hub ---------- */
body.category-meal-delivery .tv-meal-hub .mh-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 22%,rgba(79,127,174,.12) 0,transparent 30%),
    linear-gradient(135deg,#F5F9FB,#FFFFFF 70%);
  box-shadow: 0 18px 45px rgba(23,58,94,.045);
}

body.category-meal-delivery .tv-meal-hub .mh-hero::after {
  content: "MEAL GUIDE";
  position: absolute;
  right: 28px;
  bottom: -12px;
  color: rgba(23,58,94,.028);
  font-size: 54px;
  font-weight: 800;
  letter-spacing: .06em;
}

body.category-meal-delivery .tv-meal-hub .mh-section {
  border-color: #D9E7EF;
  box-shadow: 0 14px 34px rgba(23,58,94,.035);
}

body.category-meal-delivery .tv-meal-hub .mh-section > h3 {
  position: relative;
  padding-left: 15px !important;
}

body.category-meal-delivery .tv-meal-hub .mh-section > h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .28em;
  bottom: .22em;
  width: 3px;
  border-radius: 3px;
  background: #8FAFC4;
}

body.category-meal-delivery .tv-meal-hub .mh-link {
  border-color: #E0EAF0;
  background: linear-gradient(145deg,#FCFDFE,#F8FBFD);
}

body.category-meal-delivery .tv-meal-hub .mh-side {
  background:
    linear-gradient(180deg,#FFFFFF 0%,#FAFCFE 100%);
  box-shadow: 0 18px 38px rgba(23,58,94,.055);
}

/* ---------- Micro-interactions ---------- */
@media (hover:hover) and (pointer:fine) {
  body.home .toviel-home-v2 .tv-mini-card:hover::after {
    transform: translate(2px,-50%);
  }

  body.home .toviel-home-v2 .tv-btn:hover {
    transform: translateY(-1px);
  }
}

/* ---------- Mobile restraint ---------- */
@media screen and (max-width: 834px) {
  body.home .toviel-home-v2 .tv-hero::before {
    width: 160px;
    height: 160px;
    right: 2%;
  }

  body.home .toviel-home-v2 .tv-proof {
    min-height: 130px;
  }

  body.home .toviel-home-v2 .tv-pillar h3 {
    font-size: 24px !important;
  }
}

@media screen and (max-width: 480px) {
  body.home .toviel-home-v2 .tv-hero::before,
  body.home .toviel-home-v2 .tv-meal-special::after,
  body.category-meal-delivery .tv-meal-hub .mh-hero::after {
    display: none;
  }

  body.home .toviel-home-v2 .tv-proof {
    min-height: 0;
  }

  body.home .toviel-home-v2 .tv-method {
    padding: 26px 22px;
  }
}


/* =========================================================
   v0.5.1 — usability QA after design refinement
========================================================= */

#navi .navi-in > ul > li.current-menu-item > a,
#navi .navi-in > ul > li.current-menu-ancestor > a {
  background: #F4F8FB !important;
  color: #173A5E !important;
}

#navi .navi-in > ul > li.current-menu-item > a::after,
#navi .navi-in > ul > li.current-menu-ancestor > a::after {
  transform: scaleX(1) !important;
}

#navi .sub-menu li a {
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

#navi .sub-menu li + li {
  margin-top: 2px;
}

@media screen and (max-width: 834px) {
  .mobile-menu-content .tv-nav-parent > a,
  .navi-menu-content .tv-nav-parent > a {
    font-size: 15px !important;
  }

  .mobile-menu-content .tv-nav-parent .sub-menu,
  .navi-menu-content .tv-nav-parent .sub-menu {
    padding-left: 18px !important;
  }

  .mobile-menu-content .tv-nav-parent .sub-menu a,
  .navi-menu-content .tv-nav-parent .sub-menu a {
    color: #52697B !important;
  }
}

body.home .toviel-home-v2 .tv-lead,
body.category-meal-delivery .tv-meal-hub .mh-section > p {
  max-width: 760px;
}

body.home .toviel-home-v2 a.tv-mini-card,
body.home .toviel-home-v2 a.tv-meal-card,
.tv-meal-hub a.mh-link {
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  #navi .navi-in > ul > li > a::after,
  .logo-header,
  body.home .toviel-home-v2 .tv-btn {
    transition: none !important;
  }
}


/* =========================================================
   v0.5.2 — rendered-preview final polish
========================================================= */

/* Beauty / Healthは同格のまま、微差だけ付けて探索しやすく */
body.home .toviel-home-v2 .tv-pillar:nth-child(1) {
  background:
    radial-gradient(circle at 92% 10%, rgba(190,171,188,.10), transparent 28%),
    linear-gradient(180deg,#FFFFFF 0%,#FCFAFC 100%);
  border-top-color: #B9A9B7;
}

body.home .toviel-home-v2 .tv-pillar:nth-child(2) {
  background:
    radial-gradient(circle at 92% 10%, rgba(129,165,158,.10), transparent 28%),
    linear-gradient(180deg,#FFFFFF 0%,#FAFCFB 100%);
  border-top-color: #7EA29A;
}

/* mini cardsは親パネルより一段静かに */
body.home .toviel-home-v2 .tv-pillar:nth-child(1) .tv-mini-card {
  background: rgba(255,252,254,.90);
}

body.home .toviel-home-v2 .tv-pillar:nth-child(2) .tv-mini-card {
  background: rgba(251,254,253,.90);
}

/* 宅配食はブランド色を保ち、Beauty/Healthとは別枠に */
body.home .toviel-home-v2 .tv-meal-special {
  border-left-width: 5px;
}

/* 長期レビューは画像が入った時にテキストが埋もれない */
body.home .toviel-home-v2 .tv-cluster-grid .tv-card {
  background-color: #FFFFFF;
}

/* Footerは密度を少し上げてサイトマップらしく */
.tv-service-footer__col a {
  position: relative;
  padding-left: 0;
}

.tv-service-footer__col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 0;
  height: 1px;
  background: rgba(255,255,255,.45);
  transition: width .18s ease;
}

.tv-service-footer__col a:hover::after {
  width: 22px;
}

/* 宅配食ハブ：各ブロックを少しだけ識別しやすく */
body.category-meal-delivery .tv-meal-hub .mh-section:nth-child(odd) {
  background: linear-gradient(180deg,#FFFFFF 0%,#FCFDFE 100%);
}

body.category-meal-delivery .tv-meal-hub .mh-section:nth-child(even) {
  background: linear-gradient(180deg,#FFFFFF 0%,#FAFCFD 100%);
}

/* medium-width QA: 835-1023pxでも主要ナビを残す */
@media screen and (min-width: 835px) and (max-width: 1023px) {
  #navi,
  #navi.navi {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
  }

  #navi .navi-in {
    display: block !important;
  }

  #navi .navi-in > ul {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
  }

  #navi .navi-in > ul > li {
    width: auto !important;
    flex: 0 1 auto !important;
  }

  #navi .navi-in > ul > li > a {
    min-height: 44px !important;
    padding: 0 13px !important;
    font-size: 12.5px !important;
    white-space: nowrap;
  }

  #navi .navi-in > ul > li > a::after {
    left: 13px;
    right: 13px;
    bottom: 5px;
  }
}

/* mobile preview QA */
@media screen and (max-width: 480px) {
  body.home .toviel-home-v2 .tv-section {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  body.home .toviel-home-v2 .tv-hero {
    padding-top: 42px;
    padding-bottom: 38px;
  }

  body.home .toviel-home-v2 .tv-proof {
    padding: 18px;
  }

  body.home .toviel-home-v2 .tv-cluster-grid .tv-card {
    min-height: 0 !important;
    padding-top: 145px !important;
    background-size: 100% 155px, 100% 155px !important;
  }

  body.home .toviel-home-v2 .tv-method {
    padding: 24px 20px;
  }

  .tv-service-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* =========================================================
   v0.6.0 — first-hand evidence block for priority reviews
========================================================= */
.toviel-firsthand-box {
  margin: 26px 0 30px;
  padding: 22px 24px;
  border: 1px solid #D5E4EC;
  border-left: 5px solid #4F7FAE;
  border-radius: 14px;
  background:
    radial-gradient(circle at 96% 8%, rgba(79,127,174,.07), transparent 28%),
    linear-gradient(135deg,#FAFCFE 0%,#FFFFFF 72%);
  box-shadow: 0 10px 28px rgba(23,58,94,.04);
}

.toviel-firsthand-box__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.toviel-firsthand-box__head span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid #AFC6D5;
  border-radius: 999px;
  color: #4F7FAE;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.toviel-firsthand-box__head strong {
  color: #173A5E;
  font-size: 16px;
}

.toviel-firsthand-box ul {
  margin: 0;
  padding-left: 1.35em;
}

.toviel-firsthand-box li {
  margin: 5px 0;
  line-height: 1.7;
}

.toviel-firsthand-box__note {
  margin: 13px 0 0;
  padding-top: 11px;
  border-top: 1px solid #E2ECF1;
  color: #667989;
  font-size: 12px;
  line-height: 1.65;
}

@media screen and (max-width:480px) {
  .toviel-firsthand-box {
    padding: 18px;
  }
  .toviel-firsthand-box__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}


/* v1.1.0 Meal Diagnosis */
.mh-diagnosis-cta{margin:22px 0 0}.mh-diagnosis-cta a{display:inline-flex;align-items:center;gap:12px;flex-wrap:wrap;text-decoration:none;border:1px solid #d8e7f1;border-radius:14px;padding:12px 16px;background:#fff}.mh-diagnosis-cta strong{font-size:1rem}.mh-diagnosis-cta span{font-size:.86rem;color:#52616b}
.tv-diagnosis{max-width:780px;margin:24px auto;padding:clamp(18px,4vw,34px);border:1px solid #dce8ef;border-radius:18px;background:#fff;box-shadow:0 8px 28px rgba(40,70,90,.06)}
.tvd-kicker{margin:0 0 8px;font-size:.75rem;font-weight:700;letter-spacing:.14em;color:#58758a}.tv-diagnosis h2{margin-top:0}.tvd-start,.tvd-restart,.tvd-options button,.tvd-back{appearance:none;border:1px solid #b9cfdd;border-radius:12px;background:#fff;padding:12px 16px;cursor:pointer;font:inherit}.tvd-start{background:#243c4b;color:#fff;border-color:#243c4b;font-weight:700}.tvd-progress{display:grid;gap:8px;margin-bottom:22px}.tvd-progress-text{font-size:.85rem;color:#687985}.tvd-progress-bar{height:6px;border-radius:999px;background:#edf3f6;overflow:hidden}.tvd-progress-bar i{display:block;height:100%;background:#4f7fae;transition:width .2s}.tvd-step{margin:0;color:#71828c;font-size:.8rem}.tvd-question h3{margin:.35em 0 16px}.tvd-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tvd-options button{text-align:left}.tvd-options button:hover,.tvd-options button:focus-visible,.tvd-options button[aria-pressed="true"]{border-color:#4f7fae;box-shadow:0 0 0 2px rgba(79,127,174,.12)}.tvd-actions{margin-top:16px}.tvd-back{padding:8px 13px;font-size:.9rem}.tvd-result-lead{color:#52616b}.tvd-card{position:relative;margin:14px 0;padding:18px;border:1px solid #dbe7ee;border-radius:15px;background:#fbfdfe}.tvd-card h3{margin:.15em 0 .6em}.tvd-rank{margin:0;font-size:.78rem;font-weight:700;color:#4f7fae}.tvd-tags{display:flex;gap:6px;flex-wrap:wrap}.tvd-tags span{display:inline-block;border-radius:999px;background:#eef5f9;padding:4px 9px;font-size:.78rem}.tvd-card>a{display:inline-block;margin-top:4px;font-weight:700}.tvd-method{margin:22px 0 12px}.tvd-restart{font-size:.9rem}
@media(max-width:600px){.tvd-options{grid-template-columns:1fr}.tv-diagnosis{border-radius:14px;padding:18px 14px}.mh-diagnosis-cta a{display:flex}.mh-diagnosis-cta span{width:100%}}

.toviel-diagnosis-inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0 26px;padding:14px 16px;border:1px solid #d8e7f1;border-radius:14px;background:#f8fbfd}.toviel-diagnosis-inline strong{flex:1 1 300px}.toviel-diagnosis-inline a{display:inline-block;padding:9px 13px;border-radius:10px;background:#243c4b;color:#fff!important;text-decoration:none;font-weight:700}.toviel-diagnosis-inline span{width:100%;font-size:.82rem;color:#60717d}@media(max-width:600px){.toviel-diagnosis-inline a{width:100%;text-align:center}}

/* =========================================================
   v1.9.0 FINAL QUALITY — calm, consistent commercial UI
   Multiple CTAs are intentionally allowed at genuine decision points.
   This layer standardizes visual weight instead of deleting links by count.
========================================================= */
.entry-content .toviel-shop-box,
.entry-content .toviel-compare-box{
  margin:26px 0 !important;
  padding:18px !important;
  border:1px solid #d9e6ee !important;
  border-radius:14px !important;
  background:#fbfdfe !important;
  box-shadow:none !important;
}
.entry-content .toviel-shop-title,
.entry-content .toviel-compare-title{
  margin:0 0 12px !important;
  color:#173A5E !important;
  font-weight:700 !important;
  line-height:1.55 !important;
}
.entry-content .toviel-shop-buttons{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:10px !important;
}
.entry-content .toviel-shop-btn{margin:0 !important;}
.entry-content .toviel-shop-btn a{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:46px !important;
  padding:11px 14px !important;
  border:1px solid #c8dbe6 !important;
  border-radius:10px !important;
  background:#fff !important;
  color:#173A5E !important;
  font-weight:700 !important;
  line-height:1.45 !important;
  text-decoration:none !important;
  box-shadow:none !important;
}
.entry-content .toviel-shop-btn a:hover,
.entry-content .toviel-shop-btn a:focus-visible{
  border-color:#4F7FAE !important;
  background:#f2f7fa !important;
}
/* Raw official ASP buttons created in older articles: remove loud gradients but preserve code/href. */
.entry-content div[style*="text-align:center"] > a[href*="px.a8.net"],
.entry-content div[style*="text-align:center"] > a[href*="t.afi-b.com"],
.entry-content div[style*="text-align:center"] > a[href*="valuecommerce"]{
  max-width:640px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding:13px 18px !important;
  border:1px solid #173A5E !important;
  border-radius:10px !important;
  background:#173A5E !important;
  color:#fff !important;
  font-weight:700 !important;
  line-height:1.5 !important;
  text-decoration:none !important;
  box-shadow:none !important;
}
.entry-content .toviel-related-heading{
  margin-top:40px !important;
  margin-bottom:14px !important;
  padding:12px 14px !important;
  border-left:4px solid #4F7FAE !important;
  border-bottom:1px solid #d9e7ef !important;
  background:#f8fbfd !important;
  color:#173A5E !important;
  font-size:1.18em !important;
}
.entry-content p.toviel-standalone-internal{
  margin:9px 0 !important;
  padding:10px 12px !important;
  border:1px solid #e1eaf0 !important;
  border-radius:9px !important;
  background:#fbfcfd !important;
  line-height:1.55 !important;
}
.entry-content p.toviel-standalone-internal a{
  color:#245b7b !important;
  font-weight:650 !important;
  text-decoration:none !important;
}
.entry-content p.toviel-standalone-internal a:hover,
.entry-content p.toviel-standalone-internal a:focus-visible{text-decoration:underline !important;}
@media (max-width:640px){
  .entry-content .toviel-shop-buttons{grid-template-columns:1fr !important;}
  .entry-content .toviel-shop-box,.entry-content .toviel-compare-box{padding:14px !important;margin:22px 0 !important;}
}


/* v2.0.0: internal article links should read as navigation, not as repeated CTA cards. */
.entry-content p.toviel-standalone-internal{
  margin:8px 0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  line-height:1.7 !important;
}
.entry-content p.toviel-standalone-internal a{
  color:#245b7b !important;
  font-weight:600 !important;
  text-decoration:underline !important;
  text-decoration-thickness:1px !important;
  text-underline-offset:3px !important;
}
