/* cosmee display candidate. Scoped to supported public pages. */

body.home.cosmee-home-redesign #content { margin-top: 0 !important; padding-top: 0 !important; }
body.home.cosmee-home-redesign #content #main { padding-top: 16px !important; }
body.home.cosmee-home-redesign #content #main .entry-content > .cosmee-home-hero {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 32px;
  padding: 34px 40px; margin: 4px 0 32px; border: 1px solid #e5eadd;
  border-radius: 22px; background: linear-gradient(120deg,#f2f6ef 0%,#f8f9f4 65%,#f7eeeb 100%);
}
body.home.cosmee-home-redesign #content #main .cosmee-hero-kicker { margin: 0 0 12px !important; color: #647557; font: italic 22px/1.4 Georgia,serif; letter-spacing: .04em; }
body.home.cosmee-home-redesign #content #main .entry-content #cosmee-hero-title { display: block !important; padding: 0 !important; margin: 0 0 18px !important; border: 0 !important; font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif !important; font-size: 30px !important; line-height: 1.8 !important; text-align: left !important; color: #3f443b !important; letter-spacing: .04em !important; font-weight: 300 !important; }
body.home.cosmee-home-redesign #content #main #cosmee-hero-title::before,body.home.cosmee-home-redesign #content #main #cosmee-hero-title::after { content: none !important; display: none !important; }
body.home.cosmee-home-redesign #content #main .cosmee-hero-description { color: #626d5a; margin: 0 0 24px !important; font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif !important; font-size: 13px; font-weight: 400; line-height: 2.1; letter-spacing: .025em; }
.cosmee-mobile-break { display: initial; }
.cosmee-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
body.home.cosmee-home-redesign #content #main .cosmee-hero-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 46px; padding: 10px 18px; border-radius: 999px; text-decoration: none !important; font-size: 13px; font-weight: 500; }
body.home.cosmee-home-redesign #content #main a.cosmee-hero-primary { background: #647557; color: white !important; border: 1px solid #647557; }
body.home.cosmee-home-redesign #content #main a.cosmee-hero-secondary { background: #ffffffa8; color: #536348 !important; border: 1px solid #b7c5ad; }
.cosmee-hero-actions a:hover { filter: brightness(.96); }
.cosmee-hero-actions a:focus-visible,.cosmee-card-read:focus-visible { outline: 3px solid #536348; outline-offset: 3px; }
.cosmee-hero-products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: center; gap: 10px; }
body.home.cosmee-home-redesign #content #main .cosmee-hero-product { margin: 0 !important; padding: 12px 8px; background: #fffc; border: 1px solid #e2e7db; border-radius: 18px; box-shadow: 0 8px 24px #53634808; }
.cosmee-hero-product:nth-child(2) { transform: translateY(14px); }
body.home.cosmee-home-redesign #content #main .cosmee-hero-product img { display: block; width: 100% !important; height: 155px !important; object-fit: contain !important; opacity: 1 !important; }
.cosmee-hero-product figcaption { color: #536348; font: 12px/1.4 Georgia,serif; text-align: center; margin-top: 8px; }
.cosmee-review-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 28px 0 18px; }
.cosmee-review-heading p { font-size: 10px; letter-spacing: .16em; color: #647557; margin: 0 0 5px !important; }
body.home.cosmee-home-redesign #content #main .entry-content .cosmee-review-heading h2 { display: block !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; font-size: 24px !important; line-height: 1.5 !important; text-align: left !important; border: 0 !important; letter-spacing: .04em !important; }
.cosmee-review-heading h2::before,.cosmee-review-heading h2::after { content: none !important; display: none !important; }
.cosmee-review-heading > a { color: #536348; font-size: 12px; text-decoration: none; padding: 8px 0; white-space: nowrap; }
body.home.cosmee-home-redesign #content #main .wp-block-getwid-recent-posts__wrapper { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 22px !important; margin: 0 !important; }
body.home.cosmee-home-redesign #content #main article.wp-block-getwid-recent-posts__post { width: auto !important; padding: 0 !important; margin: 0 !important; min-width: 0; }
body.home.cosmee-home-redesign #content #main .wp-block-getwid-recent-posts__post-wrapper { display: flex !important; flex-direction: column; height: 100%; background: #fff; border: 1px solid #dce4d6; border-radius: 16px; overflow: hidden; box-shadow: 0 3px 12px #3f443b05; }
body.home.cosmee-home-redesign #content #main .wp-block-getwid-recent-posts__post-thumbnail { margin: 0 !important; padding: 16px !important; background: #f7f8f4; width: 100% !important; aspect-ratio: 4 / 3; }
body.home.cosmee-home-redesign #content #main .wp-block-getwid-recent-posts__post-thumbnail a { display: block; width: 100%; height: 100%; }
body.home.cosmee-home-redesign #content #main .wp-block-getwid-recent-posts__post-thumbnail img { width: 100% !important; height: 100% !important; object-fit: contain !important; opacity: 1 !important; visibility: visible !important; }
body.home.cosmee-home-redesign #content #main .wp-block-getwid-recent-posts__content-wrapper { padding: 16px !important; flex: 1; display: flex !important; flex-direction: column; min-width: 0; }
.cosmee-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cosmee-card-meta span { display: inline-block; padding: 3px 8px; border-radius: 6px; background: #edf2e8; color: #536348; font-size: 9px; line-height: 1.5; letter-spacing: .06em; }
.cosmee-card-meta time { color: #65705d; font-size: 11px; line-height: 1.5; white-space: nowrap; }
body.home.cosmee-home-redesign #content #main .entry-content h3.wp-block-getwid-recent-posts__post-title { font-size: 16px !important; line-height: 1.7 !important; margin: 0 0 14px !important; padding: 0 !important; min-height: 5.1em; border: 0 !important; letter-spacing: .01em !important; width: auto !important; max-width: 100% !important; }
body.home.cosmee-home-redesign #content #main .wp-block-getwid-recent-posts__post-title a { color: #3f443b !important; }
body.home.cosmee-home-redesign #content #main a.cosmee-card-read { display: block; color: #536348 !important; font-size: 11px; text-align: right; margin-top: auto; text-decoration: none !important; }
@media (max-width: 1000px) and (min-width: 601px) {
  body.home.cosmee-home-redesign #content #main .entry-content > .cosmee-home-hero { padding: 28px; gap: 18px; }
  body.home.cosmee-home-redesign #content #main .entry-content #cosmee-hero-title { font-size: 26px !important; }
  body.home.cosmee-home-redesign #content #main .cosmee-hero-product img { height: 125px !important; }
  body.home.cosmee-home-redesign #content #main .wp-block-getwid-recent-posts__wrapper { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 18px !important; }
}
@media (max-width: 600px) {
  body.home.cosmee-home-redesign #content #main { padding-top: 4px !important; }
  body.home.cosmee-home-redesign #content #main .entry-content > .cosmee-home-hero { display: block; padding: 24px 20px; margin: 4px 0 24px; border-radius: 18px; }
  body.home.cosmee-home-redesign #content #main .cosmee-hero-kicker { font-size: 17px; margin-bottom: 10px !important; }
  body.home.cosmee-home-redesign #content #main .entry-content #cosmee-hero-title { font-size: 24px !important; line-height: 1.8 !important; letter-spacing: .025em !important; margin-bottom: 16px !important; }
  body.home.cosmee-home-redesign #content #main .cosmee-hero-description { font-size: 12px; line-height: 2; margin-bottom: 20px !important; }
  .cosmee-mobile-break { display: initial; }
  .cosmee-hero-products { display: none; }
  .cosmee-hero-actions { flex-direction: column; gap: 8px; }
  body.home.cosmee-home-redesign #content #main .cosmee-hero-actions a { min-height: 42px; font-size: 12px; padding: 9px 12px; }
  .cosmee-review-heading { margin: 22px 0 14px; }
  body.home.cosmee-home-redesign #content #main .entry-content .cosmee-review-heading h2 { font-size: 21px !important; }
  body.home.cosmee-home-redesign #content #main .wp-block-getwid-recent-posts__wrapper { grid-template-columns: minmax(0,1fr) !important; gap: 14px !important; }
  body.home.cosmee-home-redesign #content #main .wp-block-getwid-recent-posts__post-wrapper { display: grid !important; grid-template-columns: 112px minmax(0,1fr); border-radius: 14px; }
  body.home.cosmee-home-redesign #content #main .wp-block-getwid-recent-posts__post-thumbnail { aspect-ratio: auto; padding: 10px !important; min-height: 164px; }
  body.home.cosmee-home-redesign #content #main .wp-block-getwid-recent-posts__content-wrapper { padding: 12px !important; }
  .cosmee-card-meta { gap: 4px; margin-bottom: 7px; }
  .cosmee-card-meta span { padding: 2px 5px; font-size: 8px; }
  .cosmee-card-meta time { font-size: 10px; }
  body.home.cosmee-home-redesign #content #main .entry-content h3.wp-block-getwid-recent-posts__post-title { font-size: 14px !important; line-height: 1.65 !important; min-height: 0; margin-bottom: 9px !important; }
  body.home.cosmee-home-redesign #content #main a.cosmee-card-read { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .cosmee-hero-actions a { transition: none !important; } }

/* Preserve the parent header's hooks; its original decorative heading stays hidden. */
body.home.cosmee-home-redesign #content #main .cosmee-original-home-title { display:none !important; }
body.home.cosmee-home-redesign #content #main .wp-block-getwid-recent-posts__entry-header { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 6px; }
body.home.cosmee-home-redesign #content #main .cosmee-card-label { grid-column:1;grid-row:1;justify-self:start;align-self:start;padding:3px 8px;border-radius:6px;background:#edf2e8;color:#536348;font-size:9px;line-height:1.5; }
body.home.cosmee-home-redesign #content #main .wp-block-getwid-recent-posts__entry-meta { grid-column:2;grid-row:1;margin:0!important;font-size:10px;white-space:nowrap;color:#65705d; }
body.home.cosmee-home-redesign #content #main .wp-block-getwid-recent-posts__entry-meta a { color:#65705d!important; }
body.home.cosmee-home-redesign #content #main .wp-block-getwid-recent-posts__post-title { grid-column:1/-1;grid-row:2; }
body.home.cosmee-home-redesign #content #main .wp-block-getwid-recent-posts__post-content { order:2; }
body.home.cosmee-home-redesign #content #main a.cosmee-card-read { order:3; }
body.home.cosmee-home-redesign #content #main .wp-block-getwid-recent-posts__post-thumbnail { box-sizing:border-box; }