/*
Theme Name: Ciaomo Clean Authority Images
Theme URI: https://app-ranking.click/
Author: Codex
Description: A calm, feminine product-media theme for CIAOMO-style item posts.
Version: 1.3.3
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: ciaomo-clean
*/

:root {
  --cc-ink: #493942;
  --cc-muted: #7c6670;
  --cc-rose: #c97893;
  --cc-rose-deep: #a95773;
  --cc-rose-pale: #fbf2f5;
  --cc-sage: #e5f0e7;
  --cc-sage-deep: #66806d;
  --cc-cream: #fffdfb;
  --cc-white: #ffffff;
  --cc-line: #eddee4;
  --cc-shadow: 0 12px 30px rgba(112, 74, 88, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--cc-ink);
  background: var(--cc-cream);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.85;
}
a { color: var(--cc-rose-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 500; }

.cc-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.cc-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--cc-line); background: rgba(255, 253, 251, .97); }
.cc-header__inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 24px; }
.cc-logo { display: inline-flex; flex-direction: column; color: var(--cc-ink); font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-weight: 600; letter-spacing: 0; }
.cc-logo__mark { color: var(--cc-rose-deep); font-size: 1.55rem; line-height: 1.1; }
.cc-logo__tag { color: var(--cc-muted); font-size: .72rem; font-weight: 500; }
.cc-nav, .cc-nav__list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 19px; margin: 0; padding: 0; list-style: none; }
.cc-nav { font-size: .86rem; font-weight: 500; }
.cc-nav a { color: var(--cc-ink); }

.cc-hero { min-height: 650px; padding: 78px 0 66px; border-bottom: 1px solid var(--cc-line); background-color: #f8efee; background-image: url('https://app-ranking.click/wp-content/uploads/2026/07/hero-selfcare-v1.png'); background-position: center; background-size: cover; }
.cc-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); gap: 54px; align-items: center; min-height: 506px; }
.cc-hero__grid > *, .cc-layout > *, .cc-grid > * { min-width: 0; }
.cc-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 12px; color: var(--cc-rose-deep); font-size: .74rem; font-weight: 500; letter-spacing: 0; }
.cc-eyebrow::before { width: 22px; height: 1px; background: currentColor; content: ""; }
.cc-hero h1 { max-width: none; margin: 0; font-size: clamp(1.15rem, 2.55vw, 2.18rem); font-weight: 500; letter-spacing: 0; line-height: 1.45; white-space: nowrap; }
.cc-page-title { max-width: 100%; margin: 0; font-size: clamp(1.15rem, 2.35vw, 2.15rem); font-weight: 500; letter-spacing: 0; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-hero p { max-width: 580px; margin: 21px 0 0; color: #624d56; font-size: 1rem; }
.cc-search { display: flex; gap: 8px; max-width: 650px; margin-top: 29px; padding: 7px; border: 1px solid #ead5dd; border-radius: 8px; background: var(--cc-white); }
.cc-search input[type="search"] { min-width: 0; flex: 1; border: 0; padding: 12px 13px; color: var(--cc-ink); background: transparent; font: inherit; outline: 0; }
.cc-button, .cc-search button, .wp-block-search__button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 0; border-radius: 8px; padding: 10px 18px; color: #fff; background: var(--cc-rose-deep); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.cc-button:hover, .cc-search button:hover, .wp-block-search__button:hover { background: #904860; text-decoration: none; }

.cc-hero-card { border-left: 1px solid rgba(125, 91, 104, .3); background: rgba(255, 253, 251, .76); }
.cc-hero-card__top { padding: 24px 0 24px 28px; }
.cc-hero-card__title { margin: 0; font-size: 1.38rem; line-height: 1.6; }
.cc-hero-card__list { display: grid; grid-template-columns: 1fr; gap: 0; margin: 18px 0 0; padding: 0; list-style: none; }
.cc-hero-card__list a { display: flex; min-height: 48px; align-items: baseline; justify-content: space-between; border-bottom: 1px solid rgba(125, 91, 104, .2); padding: 10px 0; color: var(--cc-ink); font-size: .88rem; font-weight: 500; }
.cc-hero-card__list a:hover { color: var(--cc-rose-deep); text-decoration: none; }
.cc-hero-card__list span, .cc-hero-card__list small { display: block; }
.cc-hero-card__list small { margin-top: 0; color: var(--cc-muted); font-size: .71rem; font-weight: 400; }

.cc-band { padding: 58px 0 72px; }
.cc-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.cc-section-head h2 { margin: 0; font-size: clamp(1.55rem, 2.3vw, 2.05rem); line-height: 1.55; }
.cc-section-head p { margin: 5px 0 0; color: var(--cc-muted); }
.cc-filter-row, .cc-categories { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-filter-row { margin: 0 0 25px; }
.cc-chip { display: inline-flex; min-height: auto; align-items: center; padding: 7px 13px; color: var(--cc-muted); background: var(--cc-cream); font-size: .82rem; }
.cc-chip:hover { border-color: #d7adbb; color: var(--cc-rose-deep); background: var(--cc-rose-pale); text-decoration: none; }
.cc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.cc-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--cc-line); border-radius: 8px; background: var(--cc-white); }
.cc-card:hover { border-color: #dfbdc9; box-shadow: var(--cc-shadow); }
.cc-card__image { display: block; aspect-ratio: 1 / 1; background: var(--cc-rose-pale); overflow: hidden; }
.cc-card__image img { width: 100%; height: 100%; object-fit: cover; }
.cc-card__body { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.cc-card__cat { margin-bottom: 7px; color: var(--cc-rose-deep); font-size: .75rem; font-weight: 700; }
.cc-card__title { margin: 0; font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-size: .96rem; font-weight: 500; line-height: 1.65; }
.cc-card__title a { color: var(--cc-ink); }
.cc-card__excerpt { display: -webkit-box; overflow: hidden; margin: 9px 0 0; color: var(--cc-muted); font-size: .82rem; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cc-card__price { align-self: flex-start; margin-top: 11px; border-radius: 4px; padding: 3px 8px; color: var(--cc-sage-deep); background: var(--cc-sage); font-size: .8rem; font-weight: 700; }
.cc-card__more { margin-top: auto; padding-top: 13px; color: var(--cc-rose-deep); font-size: .81rem; font-weight: 700; }

.cc-main { padding: 44px 0 76px; }
.cc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 32px; align-items: start; }
.cc-article, .cc-sidebar-box, .cc-archive-head, .cc-empty { border: 1px solid var(--cc-line); border-radius: 8px; background: var(--cc-white); }
.cc-archive-head, .cc-empty { margin-bottom: 28px; padding: 29px; background: var(--cc-rose-pale); }
.cc-archive-head p { margin: 8px 0 0; color: var(--cc-muted); }
.cc-article { overflow: hidden; }
.cc-article__head { padding: 32px 32px 21px; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--cc-muted); font-size: .82rem; }
.cc-article__title { margin: 12px 0 0; font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1.55; overflow-wrap: anywhere; }
.cc-column-featured { aspect-ratio: 16 / 9; margin: 0 32px 30px; overflow: hidden; border-radius: 8px; background: var(--cc-rose-pale); }
.cc-column-featured img { width: 100%; height: 100%; object-fit: cover; }
.cc-product-summary { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 26px; margin: 0 32px 30px; padding: 20px; border: 1px solid var(--cc-line); border-radius: 8px; background: #fffcfc; }
.cc-product-summary__image { display: flex; align-items: center; justify-content: center; background: var(--cc-rose-pale); overflow: hidden; }
.cc-product-summary__image img { max-height: 270px; object-fit: contain; }
.cc-product-summary h2 { margin: 0 0 13px; font-size: 1.28rem; line-height: 1.6; }
.cc-product-summary dl { display: grid; gap: 9px; margin: 0 0 17px; }
.cc-product-summary dl > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
.cc-product-summary dt { color: var(--cc-rose-deep); font-weight: 700; }
.cc-product-summary dd { margin: 0; color: var(--cc-muted); }
.cc-article__content { padding: 0 32px 38px; }
.cc-article__content > figure:first-child { margin: 8px -32px 30px; background: var(--cc-rose-pale); text-align: center; }
.cc-article__content > figure:first-child img { max-height: 620px; object-fit: contain; }
.cc-article__content h2 { margin: 36px 0 14px; padding-left: 13px; border-left: 3px solid var(--cc-rose); font-size: 1.3rem; line-height: 1.6; }
.cc-article__content table { width: 100%; border-collapse: collapse; border: 1px solid var(--cc-line); font-size: .93rem; }
.cc-article__content th, .cc-article__content td { border-bottom: 1px solid var(--cc-line); padding: 13px 14px; vertical-align: top; }
.cc-article__content th { width: 34%; color: var(--cc-rose-deep); background: var(--cc-rose-pale); text-align: left; }
.cc-product-facts-list { display: grid; gap: 12px; margin: 18px 0 28px; }
.cc-product-facts { border: 1px solid var(--cc-line); border-radius: 6px; padding: 17px; background: #fffcfc; }
.cc-product-facts h3 { margin: 0 0 12px; font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-size: 1rem; font-weight: 600; line-height: 1.65; }
.cc-product-facts h3 a { color: var(--cc-ink); }
.cc-product-facts dl { display: grid; gap: 0; margin: 0; }
.cc-product-facts dl > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); border-top: 1px solid var(--cc-line); padding: 10px 0; }
.cc-product-facts dt { color: var(--cc-rose-deep); font-size: .86rem; font-weight: 700; }
.cc-product-facts dd { margin: 0; font-size: .9rem; }
.cc-sidebar { display: grid; gap: 15px; }
.cc-sidebar-box { padding: 19px; }
.cc-sidebar-box h2, .cc-sidebar-box h3 { margin: 0 0 12px; font-size: 1.05rem; }
.cc-sidebar-box ul { margin: 0; padding: 0; list-style: none; }
.cc-sidebar-box li + li { margin-top: 9px; }
.cc-pagination { margin-top: 31px; text-align: center; }
.cc-pagination .page-numbers { display: inline-flex; min-width: 38px; min-height: 38px; align-items: center; justify-content: center; margin: 3px; border: 1px solid var(--cc-line); border-radius: 8px; color: var(--cc-ink); background: #fff; font-weight: 700; }
.cc-pagination .current { border-color: var(--cc-rose-deep); color: #fff; background: var(--cc-rose-deep); }
.cc-footer { padding: 40px 0; border-top: 1px solid var(--cc-line); color: var(--cc-muted); background: #fcf7f8; font-size: .88rem; }
.cc-footer__notice { font-size: .78rem; }
.cc-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: .8rem; }
.cc-footer__nav a { color: var(--cc-muted); }
.cc-breadcrumbs { padding: 15px 32px 0; color: var(--cc-muted); font-size: .77rem; }
.cc-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 5px 9px; margin: 0; padding: 0; list-style: none; }
.cc-breadcrumbs li:not(:last-child)::after { margin-left: 9px; color: #b59aa5; content: "/"; }
.cc-breadcrumbs a { color: var(--cc-muted); }
.cc-purchase-button { width: 100%; gap: 8px; background: var(--cc-rose-deep); box-shadow: 0 8px 18px rgba(169, 87, 115, .18); }
.cc-purchase-button:hover { background: #904860; }
.cc-purchase-note { margin: 10px 0 0; color: var(--cc-muted); font-size: .76rem; line-height: 1.65; }
.cc-related { padding: 0 32px 38px; }
.cc-related__head { margin-bottom: 13px; }
.cc-related__head h2 { margin: 0; font-size: 1.22rem; line-height: 1.55; }
.cc-related__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.cc-related__list a { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; min-height: 78px; align-items: center; border: 1px solid var(--cc-line); border-radius: 6px; padding: 7px; color: var(--cc-ink); background: #fffdfd; font-size: .8rem; font-weight: 500; line-height: 1.55; }
.cc-related__list a:hover { border-color: #dfbdc9; color: var(--cc-rose-deep); text-decoration: none; }
.cc-related__list img { width: 62px; height: 62px; object-fit: cover; background: var(--cc-rose-pale); }
.cc-related__list small { display: block; margin-bottom: 2px; color: var(--cc-rose-deep); font-size: .69rem; }
.cc-mobile-purchase { display: none; }

@media (max-width: 980px) {
  .cc-hero__grid, .cc-layout { grid-template-columns: 1fr; }
  .cc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .cc-wrap { width: min(calc(100% - 28px), 1120px); }
  .cc-header__inner, .cc-section-head { align-items: flex-start; flex-direction: column; padding: 15px 0; }
  .cc-header__inner { gap: 10px; }
  .cc-nav { width: 100%; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .cc-nav::-webkit-scrollbar { display: none; }
  .cc-nav__list { width: max-content; min-width: 100%; flex-wrap: nowrap; justify-content: flex-start; }
  .cc-hero { min-height: 0; padding: 46px 0 48px; background-position: 60% center; }
  .cc-hero h1 { font-size: clamp(1.08rem, 5.3vw, 1.3rem); line-height: 1.45; white-space: nowrap; }
  .cc-page-title { font-size: clamp(1rem, 5vw, 1.3rem); line-height: 1.45; white-space: nowrap; }
  .cc-search { flex-direction: column; }
  .cc-search button { width: 100%; }
  .cc-hero-card { margin-top: 16px; border-left: 0; border-top: 1px solid rgba(125, 91, 104, .3); background: rgba(255, 253, 251, .7); }
  .cc-hero-card__top { padding: 22px 0; }
  .cc-hero-card__list { grid-template-columns: 1fr; }
  .cc-band { padding: 42px 0 54px; }
  .cc-grid { grid-template-columns: 1fr; gap: 14px; }
  .cc-card { display: grid; grid-template-columns: 122px minmax(0, 1fr); }
  .cc-card__image { min-height: 100%; }
  .cc-card__body { padding: 14px; }
  .cc-card__excerpt { display: none; }
  .cc-layout { gap: 22px; }
  .cc-article__head, .cc-article__content { padding-right: 18px; padding-left: 18px; }
  .cc-column-featured { margin-right: 18px; margin-left: 18px; }
  .cc-product-summary { grid-template-columns: 1fr; margin-right: 18px; margin-left: 18px; }
  .cc-product-summary dl > div { grid-template-columns: 1fr; gap: 1px; }
  .cc-article__content > figure:first-child { margin-right: -18px; margin-left: -18px; }
  .cc-article__content table, .cc-article__content tbody, .cc-article__content tr, .cc-article__content th, .cc-article__content td { display: block; width: 100%; }
  .cc-article__content th { border-bottom: 0; }
  .cc-product-facts { padding: 15px; }
  .cc-product-facts dl > div { grid-template-columns: 1fr; gap: 3px; }
  .cc-breadcrumbs { padding: 12px 18px 0; white-space: nowrap; overflow: hidden; }
  .cc-related { padding-right: 18px; padding-left: 18px; }
  .cc-related__list { grid-template-columns: 1fr; }
  .cc-mobile-purchase { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; display: block; padding: 10px 14px; border-top: 1px solid var(--cc-line); background: rgba(255, 253, 251, .96); box-shadow: 0 -8px 18px rgba(86, 58, 68, .08); }
  .cc-mobile-purchase a { display: flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; color: #fff; background: var(--cc-rose-deep); font-size: .92rem; font-weight: 700; }
  .single .cc-footer { padding-bottom: 78px; }
}
