/* top-shared.css：top.css からトップ専用の規則を除いたもの。手で直さない（tools/css/build-top-shared.php で作る） */
.tp {
  --ink: #2a2522;
  --muted: #6f665e;
  --paper: #fff;
  --base: #f2efe9;
  --line: #2a2522;
  --soft: #d9d3ca;
  --pink: #c0587a;
  --pink-soft: #f4d3dc;
  --gray-soft: #e4e1dc;
  --en: 'Barlow Condensed', 'Oswald', 'Arial Narrow', sans-serif;
  background: var(--base);
  color: var(--ink);
}
.tp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.tp-sp-only { display: none; }
.tp .g-beauty { --g: #e0708f; --gs: #fbe1e8; }
.tp .g-nail { --g: #d160a0; --gs: #f8dcec; }
.tp .g-esthe { --g: #8e6fd1; --gs: #e9e1fb; }
.tp .g-headspa { --g: #38a3b3; --gs: #d8f0f2; }
.tp .g-eyelash { --g: #e0894f; --gs: #fbe5d5; }
.tp .g-epilation { --g: #e0b13c; --gs: #fbf0cf; }
.tp .g-relax { --g: #5fa36b; --gs: #dfeedd; }
.tp-catbar { background: var(--base); border-bottom: 1px solid var(--soft); }
.tp-catbar-inner { display: flex; align-items: center; gap: 20px; }
.tp-today {
  flex: none; margin: 0; padding: 10px 18px 10px 0;
  border-right: 1px solid var(--soft);
  display: grid; grid-template-columns: auto auto; column-gap: 6px; line-height: 1;
  font-family: var(--en);
}
.tp-today-label { font-size: 13px; letter-spacing: .08em; }
.tp-today-week { font-size: 13px; color: var(--pink); }
.tp-today-date { grid-row: 2; grid-column: 1 / -1; font-size: 26px; font-weight: 600; margin-top: 2px; }
.tp-catbar-list {
  list-style: none; margin: 0; padding: 0; flex: 1;
  display: flex; justify-content: space-between; overflow-x: auto; scrollbar-width: none;
}
.tp-catbar-list::-webkit-scrollbar { display: none; }
.tp-catbar-list li { flex: 1; min-width: 84px; position: relative; }
.tp-catbar-list li + li::before {
  content: ''; position: absolute; left: 0; top: 18px; bottom: 18px;
  border-left: 1px dashed var(--soft);
}
.tp-cat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px; text-decoration: none; color: var(--ink);
  font-size: 14px; font-weight: 600;
}
.tp-cat-icon {
  width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center; color: #fff; background: var(--g);
  transition: transform .2s ease;
}
.tp-cat-icon .ti { width: 17px; height: 17px; }
.tp-cat:hover .tp-cat-icon { transform: translateY(-3px) rotate(-6deg); }
.tp-capsule-quote { margin: 0 0 10px; font-size: 22px; font-weight: 800; line-height: 1.5; }
.tp-capsule-cite { margin: 0; font-size: 13px; color: var(--muted); }
.tp-editor-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center; font-size: 34px; font-weight: 900; color: #fff;
  border: 3px solid var(--paper); box-shadow: 0 0 0 1.5px var(--line);
}
.tp-editor-avatar.is-c1 { background: #3aa6a0; }
.tp-editor-avatar.is-c2 { background: #e0708f; }
.tp-editor-avatar.is-c3 { background: #e0a33c; }
@media (max-width: 720px) {
.tp-wrap { padding: 0 16px; }
.tp-sp-only { display: inline; }
.tp-today { display: none; }
.tp-catbar-list { justify-content: flex-start; }
.tp-catbar-list li { flex: none; min-width: 74px; }
.tp-capsule-quote { font-size: 19px; }
.tp-editor-avatar { width: 72px; height: 72px; font-size: 26px; }
}
.tp-card-post-en {
  font-family: var(--en); font-style: italic; font-weight: 600;
  font-size: 56px; color: var(--c, #c0587a); letter-spacing: .01em;
  text-shadow: 3px 3px 0 #fff;
}
.tp-pick-note { margin: 0 0 14px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.tp-pick-note b {
  display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 12px;
}
.tp-operator {
  max-width: 720px; margin: 22px auto 0; padding: 20px 22px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px;
}
.tp-operator-head { margin: 0 0 12px; font-size: 14px; font-weight: 800; }
.tp-operator-editors { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 26px; }
.tp-operator-editors li { display: flex; align-items: center; gap: 10px; }
.tp-operator .tp-editor-avatar { width: 48px; height: 48px; font-size: 19px; border-width: 2px; flex: none; }
.tp-operator-name { font-weight: 800; font-size: 16px; }
.tp-operator-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tp-operator-org { margin: 0; font-size: 14px; color: var(--muted); }
.tp-operator-org a { color: inherit; }
.tp-operator-link {
  margin-left: auto; font-size: 14px; font-weight: 700; color: var(--ink);
  border-bottom: 2px solid var(--pink); text-decoration: none; padding-bottom: 2px;
}
@media (max-width: 720px) {
.tp-operator-link { margin-left: 0; }
}
.tp-editor-avatar.has-photo { overflow: hidden; padding: 0; background: #ddd; }
.tp-editor-avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.tp-editor-photo {
  position: relative; width: 150px; height: 150px; border-radius: 50%;
  display: grid; place-items: center; font-size: 52px; font-weight: 900; color: #fff;
  background: var(--ec); border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ec);
  margin-bottom: 16px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tp-editor-photo.has-photo { overflow: hidden; background: #fff; }
.tp-editor-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
@media (max-width: 720px) {
.tp-editor-photo { width: 96px; height: 96px; font-size: 34px; box-shadow: 5px 5px 0 var(--ec); margin-bottom: 10px; }
}
.tp-card-post-en { font-size: 64px; }
.tp-pick-note { margin-bottom: 0; }
.tp-cat { gap: 8px; padding: 14px 6px; font-size: 15px; font-weight: 700; }
.tp-cat-icon { width: 42px; height: 42px; border-radius: 13px; }
.tp-cat-icon .ti { width: 23px; height: 23px; }
.tp-count { position: relative; display: inline-flex; align-items: baseline; gap: 4px; padding: 0 6px; }
.tp-count::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 16px; z-index: -1;
  background: #f4d3dc; border-radius: 4px; transform: rotate(-1.2deg);
}
.tp-count { isolation: isolate; }
.tp-count-num { font-family: var(--en); font-weight: 600; font-size: 84px; color: var(--pink); letter-spacing: .01em; line-height: .95; text-shadow: 3px 3px 0 #9fd8d3; }
.tp-count-unit { font-size: 30px; font-weight: 900; }
.tp-count-tail { font-size: 26px; font-weight: 900; margin-top: 4px; }
@media (min-width: 721px) {
.tp-count-tail { margin: 0 0 10px; }
}
.tp-pick-note { text-align: center; }
@media (max-width: 720px) {
.tp-cat-icon { width: 38px; height: 38px; }
.tp-cat-icon .ti { width: 21px; height: 21px; }
.tp-count-num { font-size: 64px; }
.tp-count-unit { font-size: 24px; }
.tp-count-tail { font-size: 20px; }
.tp-pick-note { text-align: left; }
}
.tp-pick-note { max-width: 760px; margin-left: auto; margin-right: auto; }
.tp-catbar-count {
  flex: none; margin: 0; padding: 8px 0 8px 22px; border-left: 1px solid var(--soft);
  display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1;
}
.tp-catbar-count-label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.tp-catbar-count-num { font-family: var(--en); font-weight: 600; font-size: 34px; color: var(--pink); }
.tp-catbar-count-num small { font-family: inherit; font-size: 15px; font-weight: 900; color: var(--ink); margin-left: 2px; }
@media (max-width: 720px) {
.tp-catbar-count { display: none; }
}
.tp-catbar-count-num { text-shadow: 2px 2px 0 #9fd8d3; }
.tp-catbar-count-num small { text-shadow: none; }
.tp-articles-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.tp-article { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.tp-article-visual {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1;
  border: 1.5px solid var(--line); border-radius: 12px; overflow: visible;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .35) 0 10px, transparent 10px 20px),
    var(--cs, #fbe1e8);
  transition: transform .2s ease;
}
.tp-article-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.tp-article .tp-card-post-en { color: var(--c, #c0587a); }
.tp-article-corner {
  position: absolute; right: -8px; bottom: -8px; width: 34px; height: 26px;
  border-radius: 6px 6px 3px 3px; background: var(--c, #c0587a);
  box-shadow: 0 -10px 0 -4px #e0a33c;
}
.tp-article.t-feature .tp-article-corner { background: #38a3b3; }
.tp-article:hover .tp-article-visual { transform: translateY(-4px); }
.tp-article-type {
  align-self: flex-start; margin-top: 8px; font-size: 13px; font-weight: 700;
  padding: 3px 10px; border-radius: 4px; background: var(--paper); border: 1px solid var(--soft);
}
.tp-article-title {
  font-size: 18px; font-weight: 800; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tp-article:hover .tp-article-title { color: var(--pink); }
.tp-article-lead {
  font-size: 13px; color: var(--muted); line-height: 1.7; padding-top: 8px; border-top: 1px dashed var(--soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tp-article-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--soft); }
.tp-article-author { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.tp-article-avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  font-size: 12px; font-weight: 900; color: #fff; border: 1px solid var(--soft);
}
.tp-article-avatar.is-c1 { background: #3aa6a0; }
.tp-article-avatar.is-c2 { background: #e0708f; }
.tp-article-avatar.is-c3 { background: #e0a33c; }
.tp-article-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-article-date { font-family: var(--en); font-size: 16px; font-weight: 600; }
@media (max-width: 1024px) {
.tp-articles-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
.tp-articles-list { gap: 22px 14px; }
.tp-article-title { font-size: 15px; }
}
.tp-article.c-0 { --c: #e0708f; --cs: #fbe1e8; }
.tp-article.c-1 { --c: #38a3b3; --cs: #d8f0f2; }
.tp-article.c-2 { --c: #e0894f; --cs: #fbe5d5; }
.tp-article.c-3 { --c: #8e6fd1; --cs: #e9e1fb; }
.tp-article.c-4 { --c: #5fa36b; --cs: #dfeedd; }
.tp-articles-list > li { display: flex; }
.tp-article { flex: 1; }
.tp-article-foot { margin-top: auto; }
.tp-card-quote {
  position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: 18px;
  padding: 16px 18px; font-size: 16px; font-weight: 700; line-height: 1.7; color: var(--ink);
}
.tp-card-quote::after {
  content: ''; position: absolute; left: 28px; bottom: -11px; width: 18px; height: 18px;
  background: #fff; border-right: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line);
  transform: rotate(45deg);
}
.tp-shopposts-lead { margin: -14px 0 26px; font-size: 14px; color: var(--muted); }
.tp-shopposts-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.tp-shoppost {
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 18px;
  padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 12px;
}
.tp-shoppost.c-0 { --c: #e0708f; }
.tp-shoppost.c-1 { --c: #38a3b3; }
.tp-shoppost.c-2 { --c: #e0894f; }
.tp-shoppost.c-3 { --c: #8e6fd1; }
.tp-shoppost.c-4 { --c: #5fa36b; }
.tp-shoppost-head { display: flex; align-items: center; gap: 12px; }
.tp-shoppost-mono {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: 19px; color: #fff; background: var(--c);
}
.tp-shoppost-who { display: flex; flex-direction: column; min-width: 0; }
.tp-shoppost-name {
  font-weight: 800; font-size: 16px; color: var(--ink); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tp-shoppost-name:hover { color: var(--pink); }
.tp-shoppost-place { font-size: 12px; color: var(--muted); }
.tp-shoppost-body { margin: 0; font-size: 15px; line-height: 1.85; }
.tp-shoppost-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; border: 1px solid var(--soft); }
.tp-shoppost-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 10px; border-top: 1px dashed var(--soft); font-size: 13px;
}
.tp-shoppost-foot time { font-family: var(--en); font-size: 15px; color: var(--muted); }
.tp-shoppost-foot a { display: inline-flex; align-items: center; color: var(--ink); font-weight: 700; text-decoration: none; }
.tp-shoppost-foot a:hover { color: var(--pink); }
.tp-shoppost-foot .ti { width: 15px; height: 15px; }
@media (max-width: 1024px) {
.tp-shopposts-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
.tp-shopposts-list { grid-template-columns: 1fr; }
}
.tp-tweets-ja { font-size: 16px; font-weight: 800; }
.tp-tweet-link {
  flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px;
  text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease;
}
.tp-tweet-link:hover { transform: translateY(-3px); box-shadow: 4px 4px 0 var(--c); }
.tp-tweet-head { display: flex; align-items: center; gap: 10px; }
.tp-tweet-mono {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: 17px; color: #fff; background: var(--c);
}
.tp-tweet-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.tp-tweet-meta { font-size: 12px; color: var(--muted); }
.tp-tweet-photo { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--soft); margin-top: auto; }
.tp-tweet-time { font-family: var(--en); font-size: 15px; color: var(--muted); white-space: nowrap; }
.tp-shopcols-list {
  list-style: none; margin: 0; padding: 4px max(24px, calc((100vw - 1120px) / 2 + 24px)) 14px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 262px; gap: 24px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin;
  scroll-padding-left: max(24px, calc((100vw - 1120px) / 2 + 24px));
}
.tp-shopcols-list > li { display: flex; scroll-snap-align: start; }
.tp-shopcols-list:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; }
.tp-article-type.is-shop { background: #5fa36b; color: #fff; border-color: #5fa36b; }
.tp-article-author small { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
@media (max-width: 720px) {
.tp-shopcols-list { grid-auto-columns: 70%; gap: 14px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }
}
@media (max-width: 720px) {
.tp-cat { font-size: 14px; }
.tp-cat-name { white-space: nowrap; }
.tp-tweet-time { font-size: 15px; }
.tp-article-type { font-size: 13px; }
.tp-article-title { font-size: 17px; }
.tp-article-lead { font-size: 14px; }
.tp-article-author { font-size: 14px; }
.tp-article-date { font-size: 16px; }
}
@media (max-width: 720px) {
.tp-catbar-inner { position: relative; }
.tp-catbar-list { scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 4px 0; }
.tp-catbar-list li { flex: 0 0 20%; min-width: 0; scroll-snap-align: start; }
.tp-cat { padding: 8px 2px; gap: 5px; font-size: 13px; }
.tp-cat-icon { width: 36px; height: 36px; }
.tp-cat-icon .ti { width: 20px; height: 20px; }
.tp-catbar-more {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; background: var(--ink); color: #fff; border: 0; padding: 0; box-shadow: 0 0 0 4px var(--bg, #f2efe9);
    cursor: pointer; transition: opacity .2s;
  }
.tp-catbar-more .ti { width: 14px; height: 14px; background: #fff; }
.tp-catbar-inner.is-end .tp-catbar-more { opacity: 0; pointer-events: none; }
}
@media (min-width: 721px) {
.tp-catbar-more { display: none; }
}
.tp-cat-icon { width: 50px; height: 50px; border-radius: 15px; }
.tp-cat-icon .ti { width: 27px; height: 27px; }
@media (max-width: 720px) {
.tp-cat-icon { width: 44px; height: 44px; border-radius: 13px; }
.tp-cat-icon .ti { width: 24px; height: 24px; }
}
:is(.tp-articles, .cl-grid) .tp-article-type { font-size: 14px; font-weight: 800; color: #fff; border-color: transparent; background: #c0587a; }
:is(.tp-articles, .cl-grid) .tp-article.t-feature .tp-article-type { background: #38a3b3; }
:is(.tp-articles, .cl-grid) .tp-article-title { font-size: 20px; -webkit-line-clamp: 1; line-clamp: 1; }
:is(.tp-articles, .cl-grid) .tp-article-lead { font-size: 17px; font-weight: 500; line-height: 1.75; color: var(--ink); }
:is(.tp-articles, .cl-grid) .tp-article-author { font-size: 16px; color: var(--ink); }
:is(.tp-articles, .cl-grid) .tp-article-date { font-size: 19px; color: var(--ink); }
@media (max-width: 720px) {
:is(.tp-articles, .cl-grid) .tp-article-title { font-size: 17px; }
:is(.tp-articles, .cl-grid) .tp-article-lead { font-size: 15px; }
:is(.tp-articles, .cl-grid) .tp-article-author { font-size: 14px; }
:is(.tp-articles, .cl-grid) .tp-article-date { font-size: 16px; }
}
.tp-editor-photo { width: 220px; height: 220px; font-size: 72px; box-shadow: 10px 10px 0 var(--ec); margin-bottom: 20px; }
@media (max-width: 900px) {
.tp-editor-photo { width: 170px; height: 170px; font-size: 56px; }
}
@media (max-width: 720px) {
.tp-editor-photo { width: 92px; height: 92px; font-size: 32px; box-shadow: 6px 6px 0 var(--ec); margin-bottom: 12px; }
}
