/* テーマのあるサイトの共通の骨組み。greenz.jp など実在の読み物サイトのトップに倣い、
   飾りの冒頭は置かずに先頭の記事を写真ごと大きく見せる。番号の札・方眼・光の飾りは使わない */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-name::before { content: none; }

.wrap--home { max-width: calc(68rem + 3rem); }
.intro { margin: 0; padding-block: 1.25rem; border-bottom: 1px solid var(--line, #d9dbe0); color: #4b4f58; font-size: .9375rem; line-height: 1.8; }
.date { display: block; margin-top: .75rem; color: #6b707a; font-size: .8125rem; }

/* 先頭の記事 */
.feat { display: grid; gap: 1.25rem; margin-block: 2rem 2.5rem; color: inherit; text-decoration: none; }
.feat__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.feat__title { display: block; font-size: 1.75rem; line-height: 1.45; font-weight: 700; }
.feat__ex { display: block; margin-top: 1rem; color: #3d414a; line-height: 1.85; }
.feat:hover .feat__title { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
@media (min-width: 900px) {
  .feat { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 2.5rem; align-items: end; }
  .feat__title { font-size: 2rem; }
}

/* 残りの記事: 写真つきの行 */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rows li { border-top: 1px solid var(--line, #d9dbe0); margin: 0; }
.rows a { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.25rem; color: inherit; text-decoration: none; }
.rows img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.row__title { display: block; font-size: 1.0625rem; font-weight: 700; line-height: 1.6; }
.row__ex { display: none; margin-top: .5rem; color: #4b4f58; font-size: .9375rem; line-height: 1.8; }
.rows a:hover .row__title { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
@media (min-width: 900px) {
  .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
  .rows a { grid-template-columns: 11rem minmax(0, 1fr); gap: 1.25rem; }
  .row__ex { display: block; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

.policy { margin-block: 3.5rem 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line, #d9dbe0); max-width: 44rem; color: #4b4f58; font-size: .9375rem; }
.policy h2 { margin: 0 0 .75rem; padding: 0; border: 0; font-size: 1rem; }
.policy p { margin: 0 0 .5rem; }

/* 記事: 広い画面では目次を左に固定 */
@media (min-width: 1100px) {
  .wrap--doc { max-width: calc(62rem + 3rem); }
  .wrap--doc > .crumbs, .wrap--doc article > :not(.doc), .wrap--doc .next { margin-left: 18rem; }
  .doc { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; }
  .doc .toc { position: sticky; top: 1.5rem; align-self: start; margin-top: 4rem; padding: 1rem; font-size: .9375rem; }
}

/* ペットの暮らし: クリームの地にコーラルとミント。見出しは Zen Maru Gothic で丸く、足あとの模様と丸い角 */
:root {
  --coral: #d8664a; --coral-dk: #b24c33; --mint: #5fa58f; --cream: #fffaf2; --ink: #3b2f2a; --line: #f0e2d2;
  --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23d8664a'%3E%3Cellipse cx='32' cy='43' rx='14' ry='12'/%3E%3Cellipse cx='13' cy='27' rx='6' ry='8'/%3E%3Cellipse cx='25' cy='15' rx='6' ry='8'/%3E%3Cellipse cx='39' cy='15' rx='6' ry='8'/%3E%3Cellipse cx='51' cy='27' rx='6' ry='8'/%3E%3C/g%3E%3C/svg%3E");
  --paws: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23d8664a' fill-opacity='.07'%3E%3Cg transform='translate(18 20) rotate(-20) scale(.42)'%3E%3Cellipse cx='32' cy='43' rx='14' ry='12'/%3E%3Cellipse cx='13' cy='27' rx='6' ry='8'/%3E%3Cellipse cx='25' cy='15' rx='6' ry='8'/%3E%3Cellipse cx='39' cy='15' rx='6' ry='8'/%3E%3Cellipse cx='51' cy='27' rx='6' ry='8'/%3E%3C/g%3E%3Cg transform='translate(86 78) rotate(18) scale(.42)'%3E%3Cellipse cx='32' cy='43' rx='14' ry='12'/%3E%3Cellipse cx='13' cy='27' rx='6' ry='8'/%3E%3Cellipse cx='25' cy='15' rx='6' ry='8'/%3E%3Cellipse cx='39' cy='15' rx='6' ry='8'/%3E%3Cellipse cx='51' cy='27' rx='6' ry='8'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
body.t-petlife { background: var(--cream); color: var(--ink); }
.t-petlife h1, .t-petlife h2, .t-petlife h3, .t-petlife .site-name, .t-petlife .feat__title, .t-petlife .row__title {
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif; font-weight: 700;
}
.t-petlife a { color: var(--coral-dk); }

/* 頭: 足あと模様の帯と、肉球のロゴ */
.t-petlife .site-head { background: #fff3e6 var(--paws); border-bottom: 0; border-radius: 0 0 28px 28px; box-shadow: 0 2px 0 var(--line); }
.t-petlife .site-name { color: var(--ink); font-size: 1.375rem; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.t-petlife .site-name::before { content: ""; width: 1.6em; height: 1.6em; flex: none; border-radius: 50%; background: #fff var(--paw) center / 70% no-repeat; box-shadow: 0 0 0 3px var(--coral); }
.t-petlife .site-nav a { color: var(--ink); }
.t-petlife .site-nav a:hover { color: var(--coral); }
.t-petlife .intro { border-bottom: 0; color: #6b5a50; }

/* トップ: 丸い角のカード */
.t-petlife .feat { background: #fff; border-radius: 28px; padding: 1rem; box-shadow: 0 6px 24px rgba(120, 72, 40, .08); }
.t-petlife .feat__img { border-radius: 20px; }
.t-petlife .feat__title { font-size: 2rem; line-height: 1.45; color: var(--ink); }
.t-petlife .feat:hover .feat__title, .t-petlife .rows a:hover .row__title { color: var(--coral); text-decoration: none; }
.t-petlife .rows { gap: .75rem; }
.t-petlife .rows li { border-top: 0; }
.t-petlife .rows a { background: #fff; border-radius: 20px; padding: .75rem; transition: transform .15s ease, box-shadow .15s ease; }
.t-petlife .rows a:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(120, 72, 40, .10); }
.t-petlife .rows img { border-radius: 14px; }
.t-petlife .date { color: var(--mint); font-weight: 700; }

/* 記事: 見出しの頭に肉球、角の丸い表と目次 */
.t-petlife .doc__body > h2 { position: relative; padding: .25rem 0 .25rem 2.25rem; border: 0; }
.t-petlife .doc__body > h2::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.6rem; height: 1.6rem; background: var(--paw) center / contain no-repeat; }
.t-petlife .doc__body > h2::after { content: ""; display: block; margin-top: .5rem; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--coral) 0 3rem, var(--line) 3rem); }
.t-petlife .doc__body img { border-radius: 18px; }
.t-petlife .toc { background: #fff; border: 2px dashed #f1c7b5; border-radius: 20px; }
.t-petlife table { border-radius: 16px; overflow: hidden; }
.t-petlife thead th, .t-petlife tr:first-child th { background: #fde9dd; border-bottom: 2px solid var(--coral); padding-left: .875rem; }
.t-petlife td { padding-left: .875rem; }

/* 広告枠もサイトの色に寄せる */
.t-petlife .ad { border-color: var(--coral); background: #fff5ee; border-radius: 20px; }
.t-petlife .ad__btn, .t-petlife .ad__btn:hover { background: var(--coral); color: #fff; border-radius: 999px; }
.t-petlife .ad__btn:hover { background: var(--coral-dk); }
.t-petlife .shop__btn--amz, .t-petlife .shop__btn--amz:hover { background: #232f3e; box-shadow: none; }
.t-petlife .shop__btn--rak, .t-petlife .shop__btn--rak:hover { background: #bf0000; box-shadow: none; }
.t-petlife .shop__btn--amz:hover { background: #37475a; }
.t-petlife .shop__btn--rak:hover { background: #990000; }

/* 足 */
.t-petlife .site-foot { background: #fff3e6 var(--paws); border-top: 0; border-radius: 28px 28px 0 0; }
@media (max-width: 640px) { .t-petlife .feat__title { font-size: 1.5rem; } .t-petlife .feat { padding: .75rem; } }
