/*
 * MASHROOM.JP / Editor's Choice — AD candidate v1 (Local candidate, not approved for production)
 * Loaded AFTER mashroom-editorial-child/style.css (v0.5.53). Additive overrides only.
 * The child theme uses !important on many sizes, so size/leading overrides here carry !important too.
 * Scope: every rule is under body.mec-ad — the attribute is set by the candidate transformer,
 * so without the candidate nothing here applies.
 * Kept as is: red lower-case mashroom.jp logo, red serif "Editor's Choice / by mashroom.jp" logo,
 * palette (--red, --paper, --soft), Georgia display face, system gothic body. No new font, no new colour family.
 * Source review items: Kimura K-03 K-04 K-08 K-11 K-15 K-16 K-17, Captain C-29 (EC text density).
 * K-35 is NOT applied: the corporate copy "SI時代" is protected by owner decision (2026-11-17).
 */

/* ---------- shared: date labels (K-08) ---------- */
body.mec-ad .mec-date-label{
  display:inline-block;margin-right:.45em;font-size:1em!important;font-weight:700;letter-spacing:.04em;color:#8a7f79;
}
/* v0.5.55: event part and publish part are two inline blocks, so a long period wording wraps as a clean second line. */
body.mec-ad .mec-date-event{display:inline-block;margin-right:.9em;}
body.mec-ad .mec-date-pub{display:inline-block;margin-left:0;white-space:nowrap;}
body.mec-ad .ec-hero-story-date,
body.mec-ad .ec-home-body .ec-main .ec-top-card-date,
body.mec-ad .ec-list-card-date{font-size:11.5px!important;line-height:1.5!important;color:#666;font-variant-numeric:tabular-nums;}

/* =====================================================================
   A. Corporate site (mashroom.jp) — hierarchy and small-text legibility
   ===================================================================== */
/* Section headings were 20px, smaller than the 22px item headings beneath them. */
body.mec-ad .corp-home .section-title{font-size:30px!important;line-height:1.4!important;letter-spacing:.01em;}
body.mec-ad .corp-home .section-row .eyebrow{margin-bottom:8px;}
body.mec-ad .corp-home .home-seo-intro{font-size:13.5px!important;line-height:1.85!important;color:#555;}
body.mec-ad .corp-home .home-hero-description{font-size:15px!important;line-height:1.9!important;}
body.mec-ad .corp-home .home-evolution-item p{font-size:14px!important;line-height:1.85!important;}
body.mec-ad .corp-home .home-evolution-kicker,
body.mec-ad .corp-home .home-work-index{font-size:11px!important;}
body.mec-ad .corp-home .home-evolution-link{font-size:12.5px!important;}
body.mec-ad .corp-home .service p{font-size:15px!important;line-height:1.9!important;}
body.mec-ad .corp-home .home-work-desc{font-size:13.5px!important;line-height:1.7!important;color:#555;}
body.mec-ad .corp-home .home-ec-story-title{font-size:14px!important;line-height:1.6!important;}
body.mec-ad .corp-home .home-ec-section .muted{font-size:15.5px!important;line-height:1.9!important;color:#5f5f5f;}
/* Contact panel: the primary enquiry route gets a clear button-sized target. */
body.mec-ad .red-panel .linkline{font-size:15px!important;padding-block:6px;}
body.mec-ad .footer .subline{line-height:1.9!important;}

/* Corporate header: the logo sat in a 1180px centred box (x=164 at 1440) while every section below starts at
   the page gutter. Use the theme's own --site-max / --site-gutter tokens, as the Editor's Choice header already does,
   so the logo follows the content edge at every width. */
@media (min-width:851px){
  body.mec-ad .site-header:not(.ec-site-header) .header-inner{
    width:100%!important;max-width:var(--site-max)!important;padding-inline:var(--site-gutter)!important;
  }
}

/* Header navigation: 10.5px (PC) / 9.4px (SP) labels were below a comfortable reading size. */
html body.mec-ad .site-header .header-inner > .nav a,
html body.mec-ad .site-header .nav a{font-size:12px!important;}
body.mec-ad .site-header .nav a:focus-visible,
body.mec-ad a.linkline:focus-visible,
body.mec-ad .ec-kit-link:focus-visible,
body.mec-ad .blog-pagination a:focus-visible{outline:2px solid var(--red);outline-offset:3px;}

/* =====================================================================
   B. Editor's Choice — top and listings
   ===================================================================== */
/* K-04: the header strip repeated the first six items of LATEST ARTICLES directly below it.
   Keep one row (three items) as a headline strip; FEATURED and the complete LATEST list are untouched. */
body.mec-ad .ec-hero-latest-grid .ec-hero-story:nth-child(n+4){display:none;}
body.mec-ad .ec-hero-latest-count{display:none;}
body.mec-ad main > .ec-hero.ec-hero-rebuilt .ec-hero-story-title{font-size:13.5px!important;line-height:1.55!important;}
body.mec-ad .ec-hero-story-category,
body.mec-ad .ec-top-card-category{font-size:10.5px!important;}

/* Card titles: larger type, three lines in the fixed-height card (display clamp only; stored titles untouched). */
body.mec-ad .ec-home-body .ec-main .ec-top-latest-grid .ec-top-card-title{font-size:14px!important;line-height:1.55!important;-webkit-line-clamp:3!important;}
body.mec-ad .pickup-widget.mec-is-empty{display:none;}
body.mec-ad .sidebar .small.muted{font-size:13.5px!important;line-height:1.8!important;color:#5f5f5f;}
body.mec-ad .ec-mini-links a{font-size:12px!important;}

/* Listing pages */
body.mec-ad .ec-listing-main .tile .ec-list-card-title,
body.mec-ad .ec-listing-main .tile h2,
body.mec-ad .ec-listing-main .tile h3{line-height:1.6!important;}

/* K-15: page numbers were stacked vertically, one per line. Horizontal, real pages only. */
body.mec-ad .blog-pagination{
  display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;padding:34px 0 10px;
}
body.mec-ad .blog-pagination br{display:none;}
body.mec-ad .blog-pagination .page-numbers{
  display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:0;padding:6px 14px;
  border:1px solid #d9d3ce;background:#fff;font-size:14px!important;line-height:1!important;font-variant-numeric:tabular-nums;color:var(--ink);
}
body.mec-ad .blog-pagination .page-numbers.current{background:var(--red);border-color:var(--red);color:#fff;font-weight:700;}
body.mec-ad .blog-pagination a.page-numbers:hover{border-color:var(--red);color:var(--red);}
body.mec-ad .blog-pagination .page-numbers.dots{border:0;background:none;min-width:20px;padding-inline:2px;}

/* =====================================================================
   C. Editor's Choice — article page (delivered-URL quality)
   ===================================================================== */
/* K-03: body column is 760px, the related block was 900px — left edges differed by 70px. One column. */
body.mec-ad .ec-single-article .ec-related{max-width:760px;padding-top:26px;}
body.mec-ad .ec-related-head h2{font-size:19px!important;}
body.mec-ad .ec-related-head a{font-size:12.5px!important;}
body.mec-ad .ec-related-grid{gap:18px;}
/* K-11: covers and logos are shown whole (contain) on a quiet ground; never cropped. */
body.mec-ad .ec-related-thumb{height:150px;padding:8px;background:#f1ede8;}
body.mec-ad .ec-related-thumb img{object-fit:contain;}
body.mec-ad .ec-related-title{font-size:14px!important;line-height:1.65!important;margin-top:10px;}
body.mec-ad .ec-related-card:hover .ec-related-title{color:var(--red);}

body.mec-ad .ec-single-article .article-heading .tag{font-size:12px!important;}
body.mec-ad .ec-single-article .ec-article-tags a{font-size:13px!important;}
body.mec-ad .ec-single-article .article-date{font-size:13.5px!important;font-variant-numeric:tabular-nums;}
body.mec-ad .ec-single-article .article-figure figcaption{font-size:13.5px!important;line-height:1.8!important;color:#5f5f5f;}
body.mec-ad .ec-single-article .article-body h2{font-size:22px!important;line-height:1.5!important;margin-top:2.2em;}
body.mec-ad .ec-single-article .article-body .toc{font-size:15px!important;line-height:1.95!important;}
body.mec-ad .ec-single-article .article-body .small.muted{font-size:13.5px!important;}

/* =====================================================================
   D. Editor's Choice — advertising / media kit / entry band
   ===================================================================== */
body.mec-ad .mec-ja-kicker{
  margin-left:14px;padding-left:14px;border-left:1px solid #cfc7c1;color:var(--ink);font-weight:700;letter-spacing:.12em;
}
body.mec-ad .ec-ad-intro{font-size:15.5px!important;line-height:1.95!important;}
body.mec-ad .ec-ad-rate p{font-size:14px!important;}
/* K-16: both confirmed tiers, equally legible. */
body.mec-ad .ec-ad-rate-price.mec-rate-two{
  display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:flex-end;gap:6px 34px;text-align:right;
}
body.mec-ad .mec-rate-item{display:flex;flex-direction:column;align-items:flex-end;gap:2px;}
body.mec-ad .mec-rate-label{font:700 12.5px/1.4 -apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;letter-spacing:.1em;color:var(--ink);}
body.mec-ad .mec-rate-yen{font-size:36px!important;line-height:1.1!important;}
body.mec-ad .mec-rate-tax{font:400 13px/1.5 -apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:#4f4a47;letter-spacing:0;white-space:nowrap;}
body.mec-ad .ec-ad-rate-price.mec-rate-two small{flex:0 0 100%;width:100%;display:block;font-size:13px!important;color:#5f5f5f;}
body.mec-ad .ec-ad-option p{font-size:14.5px!important;line-height:1.85!important;}
body.mec-ad .ec-ad-steps p{font-size:14.5px!important;line-height:1.85!important;}
body.mec-ad .ec-ad-terms li{font-size:14px!important;line-height:1.9!important;}
body.mec-ad .ec-ad-primary{font-size:14px!important;}
body.mec-ad .ec-ad-caveat{font-size:13.5px!important;line-height:1.9!important;}

body.mec-ad .ec-kit-facts strong{font-size:12px!important;}
body.mec-ad .ec-kit-facts span{font-size:15px!important;line-height:1.85!important;}
body.mec-ad .mec-fact-price strong{font-family:Georgia,"Times New Roman",serif;font-size:20px!important;color:var(--red);font-weight:700;}

/* Entry band (all EC pages): two named destinations + readable price. */
body.mec-ad .ec-kit-action{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px 12px;}
body.mec-ad .ec-kit-action .ec-kit-link{font-size:13px!important;}
body.mec-ad .ec-kit-action .mec-kit-link-kit{background:transparent;color:var(--red);border:1px solid var(--red);}
body.mec-ad .ec-kit-action .mec-kit-link-kit:hover{background:var(--red);color:#fff;}
body.mec-ad .ec-kit-note.mec-kit-price{
  flex-basis:100%;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:flex-end;gap:4px 16px;
  margin-top:6px;font-size:13px!important;line-height:1.6!important;color:#4f4a47;
}
body.mec-ad .mec-kit-price-row{display:inline-flex;align-items:baseline;gap:6px;}
body.mec-ad .mec-kit-price-row small{font-size:12.5px!important;color:#5f5a57;white-space:nowrap;}
body.mec-ad .mec-kit-price-row strong{font-family:Georgia,"Times New Roman",serif;font-size:19px!important;color:var(--red);}
body.mec-ad .ec-kit p{font-size:14px!important;}
/* The price line now carries tax-included figures: keep the band title on one line and let the action column wrap instead. */
@media (min-width:851px){
  body.mec-ad .ec-kit-inner > div:first-child{flex:0 0 auto;}
  body.mec-ad .ec-kit-inner .ec-kit-action{flex:1 1 0;min-width:0;}
}

/* =====================================================================
   Narrow screens
   ===================================================================== */
@media (max-width:850px){
  body.mec-ad .corp-home .section-title{font-size:25px!important;}
}
@media (max-width:650px){
  body.mec-ad .site-header .nav{flex-wrap:wrap;row-gap:4px;}
  html body.mec-ad .site-header .header-inner > .nav a,
html body.mec-ad .site-header .nav a{font-size:11.5px!important;min-height:32px;align-items:center;}
  body.mec-ad .ec-return-mobile{font-size:11.5px!important;}
  body.mec-ad .corp-home .section-title{font-size:21px!important;}
  body.mec-ad .corp-home .home-seo-intro{font-size:13px!important;}
  body.mec-ad .corp-home .home-evolution-item p{font-size:14px!important;}
  body.mec-ad .corp-home .home-work-desc{font-size:13px!important;}
  body.mec-ad .corp-home .home-ec-story-title{font-size:13px!important;}

  body.mec-ad main > .ec-hero.ec-hero-rebuilt .ec-hero-story-title{font-size:13.5px!important;}
  body.mec-ad .mec-date-pub{display:block;margin-left:0;}
  /* Cards carry two dated lines on phones: let the fixed 140px card grow instead of clipping the title. */
  body.mec-ad .ec-home-body .ec-main .ec-top-latest-grid .ec-top-card{height:auto!important;min-height:140px;}
  body.mec-ad .ec-home-body .ec-main .ec-top-latest-grid .ec-top-card-info{height:auto!important;min-height:138px;}
  body.mec-ad .ec-home-body .ec-main .ec-top-latest-grid .ec-top-card-title{flex-shrink:0;}
  body.mec-ad .ec-home-body .section-row .small.muted{font-size:12px!important;white-space:nowrap;}
  /* Phone header: empty wpautop paragraphs and a 125px min-height left a blank band under the menu. */
  html body.mec-ad .site-header.ec-site-header .header-inner{
    min-height:0!important;height:auto!important;grid-template-rows:auto auto!important;row-gap:10px;padding-bottom:12px!important;
  }
  html body.mec-ad .site-header.ec-site-header .header-inner > p{margin:0!important;}
  /* Covers stay whole (contain) when the card grows. */
  body.mec-ad .ec-home-body .ec-main .ec-top-latest-grid .ec-top-card-visual > img{
    width:auto!important;max-width:100%!important;height:auto!important;max-height:140px!important;
  }

  /* K-03 on phones: the related block ran edge to edge while the body kept 18px gutters. */
  body.mec-ad .ec-single-article .ec-related{width:auto;margin-inline:18px;}
  body.mec-ad .ec-related-grid{gap:14px;}
  body.mec-ad .ec-related-thumb{height:130px;}
  body.mec-ad .ec-related-title{font-size:13px!important;}
  body.mec-ad .ec-single-article .article-body .toc{font-size:14px!important;}

  body.mec-ad .mec-ja-kicker{margin-left:10px;padding-left:10px;}
  body.mec-ad .ec-ad-rate-price.mec-rate-two{justify-content:flex-start;text-align:left;gap:6px 26px;margin-top:14px;}
  body.mec-ad .mec-rate-item{align-items:flex-start;}
  body.mec-ad .mec-rate-yen{font-size:32px!important;}
  body.mec-ad .ec-kit-action{justify-content:flex-start;}
  body.mec-ad .ec-kit-action .ec-kit-link{width:100%;justify-content:space-between;}
  body.mec-ad .ec-kit-note.mec-kit-price{justify-content:flex-start;}
  body.mec-ad .blog-pagination{gap:6px;padding-inline:12px;}
}
