/* ねこびいき — スタイル
   背景は三毛ねこの毛並み。読む場所は、その上に置いた「やわらかい紙のパネル」にしています */

:root {
  --cream: #fffaf0;
  --panel: #fff9ee;
  --panel-warm: #ffefd6;
  --ink: #3b2f2a;
  --muted: #6b5a50;
  --line: #e6d2bb;
  --stitch: #e9b98a;
  --orange: #f2a65a;
  --orange-deep: #c9661c;
  --brown: #4a3428;
  --stamp: #c0392b;
  --carrier-bg: #ffdcd6;

  /* 毛色 */
  --kiji: #8a6e4b;
  --kiji-dark: #4a3a28;
  --mike: #e9953f;
  --saba: #7c8794;
  --saba-dark: #3f4852;
  --kuro: #2b2523;
  --shiro: #f7f3ea;

  --hand: "Yomogi", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --display: "Kosugi Maru", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --sans: "Yomogi", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;

  --radius: 28px;
  --measure: 36em;

  /* 三毛ねこの毛並み（白地に、オレンジと黒のぶち） */
  --calico: url("/img/bg-neko.png");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background-color: #fffefb;
  background-image: var(--calico);
  background-size: min(2000px, 230vw) auto;
  color: var(--ink);
  font-family: var(--sans);
  /* Yomogiは太さが1種類だけなので、ふちを足して少し太く見せる */
  -webkit-text-stroke: 0.4px currentColor;
  font-size: 1.0625rem;
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
fieldset {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: 62rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ---------- 紙のパネル ---------- */

.site-header__bar,
.hero__text,
.hero__links,
.hero__news,
.split,
.page-panel,
.site-footer__inner {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px -16px rgba(59, 47, 42, 0.6);
}

/* 縫い目 */
.hero__text,
.hero__links,
.hero__news,
.split,
.page-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  outline: 2px dashed var(--stitch);
  outline-offset: -10px;
}

/* ---------- 手書き ---------- */

.hand {
  font-family: var(--hand);
  font-weight: 400;
}

.hand--large {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- ヘッダー ---------- */

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  width: calc(100% - 2rem);
  max-width: 62rem;
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--orange-deep);
}

.brand__mark {
  flex: none;
}

.brand__name {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav a {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  text-decoration: none;
}

.nav a:hover {
  background: var(--orange);
}

/* ---------- ヒーロー ---------- */

.hero {
  padding-block: 2rem 1rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.25rem;
  align-items: start;
}

.hero__title {
  text-wrap: balance;
  word-break: auto-phrase;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.hero__lead {
  max-width: var(--measure);
  margin-top: 1.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.next-event {
  max-width: var(--measure);
  margin-top: 2rem;
  border-top: 2px dotted var(--stitch);
}

.next-event > div {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.7rem;
  border-bottom: 2px dotted var(--stitch);
}

.next-event dt {
  font-weight: 700;
}

/* ---------- ボタン ---------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn--line {
  background: transparent;
}

.btn--line:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn--paper {
  border-color: var(--cream);
  background: var(--cream);
}

.btn--paper:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.btn--small {
  padding: 0.3rem 1rem;
  font-size: 0.875rem;
}

/* ---------- 保護カード ---------- */

.cage-card {
  position: relative;
  padding: 2.25rem 1.5rem 1.5rem;
  background: #fffdf6;
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--stitch);
}

/* 吊り下げ用の穴 */
.cage-card::before {
  content: "";
  position: absolute;
  top: 0.8rem;
  left: 50%;
  width: 0.9rem;
  height: 0.9rem;
  margin-left: -0.45rem;
  border-radius: 50%;
  background: #fffefb;
  border: 2px solid var(--ink);
}

.cage-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  border-radius: 14px;
  border: 2px solid var(--ink);
}

.cage-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cage-card__photo-note {
  position: relative;
  z-index: 1;
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  background: var(--cream);
  font-size: 0.8125rem;
  color: var(--muted);
}

.cage-card__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
  margin-top: 1rem;
}

.field {
  padding-block: 0.5rem;
  border-bottom: 2px dotted var(--stitch);
}

.field--wide {
  grid-column: 1 / -1;
}

.field dt {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

.field dd {
  line-height: 1.6;
}

/* 判子。ページを開いたときに一度だけ押される */
.stamp {
  z-index: 1;
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  padding: 0.25rem 0.75rem;
  border: 3px double var(--stamp);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.9);
  color: var(--stamp);
  font-family: var(--hand);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transform: rotate(-9deg);
  animation: stamp-down 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 0.5s both;
}

@keyframes stamp-down {
  from {
    opacity: 0;
    transform: rotate(-16deg) scale(1.7);
  }
  to {
    opacity: 1;
    transform: rotate(-9deg) scale(1);
  }
}

/* ---------- 毛色 ---------- */

.coat-kiji {
  background: repeating-linear-gradient(100deg, var(--kiji) 0 14px, var(--kiji-dark) 14px 20px);
}

.coat-mike {
  background:
    radial-gradient(ellipse 30% 34% at 15% 25%, var(--mike) 0 98%, transparent 100%),
    radial-gradient(ellipse 26% 24% at 76% 20%, var(--kuro) 0 98%, transparent 100%),
    radial-gradient(ellipse 24% 22% at 82% 80%, var(--mike) 0 98%, transparent 100%),
    radial-gradient(ellipse 20% 16% at 24% 88%, var(--kuro) 0 98%, transparent 100%),
    #fffefb;
}

.coat-saba {
  background: repeating-linear-gradient(100deg, var(--saba) 0 12px, var(--saba-dark) 12px 17px);
}

.coat-kuro {
  background: var(--kuro);
}

.coat-hachiware {
  background: linear-gradient(90deg, var(--kuro) 0 45%, var(--shiro) 45% 100%);
}

.coat-chashiro {
  background: linear-gradient(90deg, var(--mike) 0 50%, var(--shiro) 50% 100%);
}

.coat-chatora {
  background: repeating-linear-gradient(100deg, #e9953f 0 14px, #b8651f 14px 20px);
}

.coat-shiro {
  background: var(--shiro);
}

.coat-sabi {
  background:
    radial-gradient(ellipse 40% 36% at 25% 30%, var(--mike) 0 98%, transparent 100%),
    radial-gradient(ellipse 36% 40% at 75% 70%, var(--kiji-dark) 0 98%, transparent 100%),
    var(--kuro);
}

.coat-other {
  background: var(--line);
}

.swatch {
  overflow: hidden;
  display: block;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
}

/* ---------- セクション共通 ---------- */

.section {
  padding-block: 2.25rem;
}

.section--tint .split {
  background: var(--panel-warm);
}

.section--ink .split {
  background: var(--brown);
  color: var(--cream);
  outline-color: #8a6a55;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

/* 見出しの前に肉球 */
.h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.h2::before,
.page-panel h1::before {
  content: "";
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin-right: 0.35em;
  vertical-align: -0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='27' rx='9' ry='7.5' fill='%23f2a65a'/%3E%3Cellipse cx='8' cy='17' rx='4' ry='5' fill='%23f2a65a'/%3E%3Cellipse cx='15' cy='9' rx='4' ry='5.5' fill='%23f2a65a'/%3E%3Cellipse cx='25' cy='9' rx='4' ry='5.5' fill='%23f2a65a'/%3E%3Cellipse cx='32' cy='17' rx='4' ry='5' fill='%23f2a65a'/%3E%3C/svg%3E") no-repeat center / contain;
}

.h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.6;
}

.split__note {
  margin-top: 0.5rem;
  max-width: 44rem;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--muted);
}

.section--ink .split__note {
  color: #e8d8c8;
}

.lead {
  max-width: 44rem;
}

/* ---------- ねこさんをさがす ---------- */

.filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--panel-warm);
}

.filter__group {
  min-width: 0;
  padding: 0;
  border: 0;
}

.filter__group legend {
  padding: 0;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.filter__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.4rem;
}

.filter__group legend {
  float: left;
  width: 100%;
}

.filter label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.8rem 0.15rem 0.6rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  font-size: 0.9375rem;
  line-height: 1.7;
  cursor: pointer;
}

.filter label:has(input:checked) {
  border-color: var(--ink);
  background: var(--orange);
  font-weight: 700;
}

.filter input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--ink);
}

.filter__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.75rem;
  border-top: 2px dotted var(--stitch);
}

.filter__count {
  font-size: 0.9375rem;
  font-weight: 700;
}

/* ---------- 募集中のねこさん（台帳） ---------- */

.ledger {
  border-top: 2px dotted var(--stitch);
}

.ledger__row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.5rem 1.25rem;
  align-items: start;
  padding-block: 1.25rem;
  border-bottom: 2px dotted var(--stitch);
}

.ledger__body {
  grid-column: 2 / -1;
  grid-row: 2;
}

.ledger__who {
  display: flex;
  flex-direction: column;
}

.ledger__who span {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.ledger__note {
  font-size: 0.9375rem;
  line-height: 1.8;
}

.ledger__accept {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted);
}

.ledger__status {
  grid-column: 3;
  grid-row: 1;
  padding-top: 0.2rem;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.ledger__status--done {
  color: var(--stamp);
}

.ledger__row--done .swatch,
.ledger__row--done .ledger__who,
.ledger__row--done .ledger__body {
  opacity: 0.6;
}

.ledger-empty {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 2px dashed var(--stitch);
  border-radius: 16px;
}

/* ---------- 健康のタグ ---------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.tag {
  padding: 0 0.7rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.7;
}

.tag--done {
  background: #ffe6c2;
}

.tag--todo {
  border-style: dashed;
  background: var(--cream);
  color: var(--muted);
}

.tag--carrier {
  border-color: var(--stamp);
  background: var(--carrier-bg);
  color: #8f2a20;
  font-weight: 700;
}

/* ---------- お迎えの流れ ---------- */

.steps {
  counter-reset: step;
  max-width: var(--measure);
}

.steps__item {
  position: relative;
  padding: 0 0 2rem 3.5rem;
  counter-increment: step;
}

/* 縦のつなぎ線 */
.steps__item::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 2.4rem;
  bottom: 0.2rem;
  border-left: 3px dotted var(--orange-deep);
}

.steps__item:last-child {
  padding-bottom: 0;
}

.steps__item:last-child::before {
  display: none;
}

.steps__item::after {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  font-weight: 700;
  line-height: 1;
}

.steps__item p {
  margin-top: 0.25rem;
}

.conditions {
  max-width: var(--measure);
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 20px;
}

.conditions__list {
  margin-top: 0.75rem;
}

.conditions__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.conditions__list li + li {
  margin-top: 0.5rem;
}

.conditions__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--ink);
}

/* ---------- 預かり・ボランティア ---------- */

.roles {
  max-width: 44rem;
  border-top: 2px dotted var(--stitch);
}

.roles__item {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding-block: 1.25rem;
  border-bottom: 2px dotted var(--stitch);
}

.roles__item dt {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.7;
}

.roles__item dd {
  font-size: 0.9375rem;
  line-height: 1.9;
}

/* ---------- 寄付（レシート風） ---------- */

.costs {
  max-width: 34rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1.5rem;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 20px;
}

.costs__row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.8rem;
  border-bottom: 2px dotted var(--stitch);
}

.costs__row:last-child {
  border-bottom: 0;
}

.costs dd {
  flex: none;
  font-family: var(--hand);
  font-weight: 600;
}

.donate-ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 44rem;
  margin-top: 2.5rem;
}

.donate-ways__item p {
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  line-height: 1.9;
}

/* ---------- お知らせ ---------- */

.news {
  max-width: 44rem;
  border-top: 2px dotted var(--stitch);
}

.news__item {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding-block: 1rem;
  border-bottom: 2px dotted var(--stitch);
}

.news__item time {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- 問い合わせ ---------- */

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 1.75rem;
}

.contact__mail {
  font-size: 0.9375rem;
}

/* ---------- フッター ---------- */

.site-footer {
  padding-block: 1.25rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.8;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
  align-items: baseline;
  width: calc(100% - 2rem);
  max-width: 62rem;
  padding: 1rem 1.5rem;
}

.site-footer__name {
  font-size: 1.125rem;
  font-weight: 700;
}

/* ---------- 画面が狭いとき ---------- */

@media (max-width: 48rem) {
  .hero__grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split__note {
    max-width: none;
  }

  .h2::before {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0 0.4rem -0.2rem 0;
  }

  .filter {
    grid-template-columns: minmax(0, 1fr);
  }

  .roles__item,
  .news__item {
    grid-template-columns: minmax(0, 1fr);
  }

  .donate-ways {
    grid-template-columns: minmax(0, 1fr);
  }

  .next-event > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .site-header__bar {
    padding-inline: 1rem;
  }
}

@media (max-width: 30rem) {
  .ledger__row {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .ledger__status {
    grid-column: 2;
    grid-row: 2;
  }

  .ledger__body {
    grid-row: 3;
  }

}

/* 動きを減らす設定の人には、判子を最初から押した状態で見せる */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .stamp {
    animation: none;
  }
}

/* ---------- 個別ページ・申込ページ ---------- */

.page {
  padding-block: 2rem 1rem;
}

.page-panel {
  max-width: 48rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.page-panel h1 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  line-height: 1.5;
}

.page-panel h1 + p {
  margin-top: 1rem;
}

.page-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.cat-detail__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-block: 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
}

.cat-detail__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-detail__meta {
  color: var(--muted);
}

.cat-detail__body {
  max-width: var(--measure);
  margin-top: 1.5rem;
}

.cat-detail__body > * + * {
  margin-top: 1rem;
}

.cat-detail__actions {
  margin-top: 2rem;
}

.notice {
  margin-block: 1.5rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--panel-warm);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.notice--error {
  border-color: var(--stamp);
  background: var(--carrier-bg);
}

.form {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.form__field {
  display: grid;
  gap: 0.35rem;
}

.form__label {
  font-size: 0.9375rem;
  font-weight: 700;
}

.form__hint {
  font-size: 0.8125rem;
  color: var(--muted);
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
}

.form textarea {
  min-height: 7rem;
  resize: vertical;
}

.form__check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9375rem;
}

.form__check input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.35rem;
  accent-color: var(--ink);
}

/* スパム対策のわな。人の目には見えない */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- トップの案内ボタン ---------- */

.hero__links {
  display: grid;
  gap: 0.9rem;
  align-content: center;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.btn--wide {
  display: block;
  padding: 1rem 0.75rem;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(0.72rem, 3.4vw, 1rem);
}

/* ---------- しあわせになったねこさん ---------- */

.happy-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.happy-list__item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.9375rem;
}

.happy-list__item .swatch {
  flex: none;
}

/* ---------- 見出しの書体 ---------- */

h1,
h2,
h3,
.brand__name,
.site-footer__name {
  font-family: var(--display);
  -webkit-text-stroke: 0;
}

/* ---------- タブ（フォルダの見出しのかたち） ---------- */

.tabs {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  padding-inline: 0.5rem;
  margin-bottom: -1px; /* パネルにぴったりくっつける */
  position: relative;
  z-index: 1;
}

.tabs__tab {
  --tab-bg: var(--panel);
  padding: 0.7rem 1.6rem 0.6rem;
  border: 0;
  border-radius: 18px 18px 0 0;
  background: var(--tab-bg);
  color: #7a6454;
  font: inherit;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  box-shadow: inset 0 -8px 8px -8px rgba(59, 47, 42, 0.25);
}



.tabs__tab[aria-selected="true"] {
  padding-top: 0.95rem;
  background: var(--tab-bg);
  color: var(--ink);
  box-shadow: 0 -6px 10px -8px rgba(59, 47, 42, 0.5);
}

.tabs__tab:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -3px;
}

/* タブの下のパネルは、左上だけ角を四角にして、タブとつなげる */
.tabpanel .split {
  border-top-left-radius: 0;
}

@media (max-width: 40rem) {
  .tabs {
    padding-inline: 0;
    gap: 0.25rem;
  }

  .tabs__tab {
    flex: 1 1 0;
    padding: 0.6rem 0.5rem 0.5rem;
    font-size: 0.8125rem;
    border-radius: 14px 14px 0 0;
  }

  .tabs__tab[aria-selected="true"] {
    padding-top: 0.8rem;
  }
}

/* マウスをのせると、びよんと大きくなる */
.tabs__tab {
  transform-origin: 50% 100%;
  transition: transform 0.35s cubic-bezier(0.34, 1.9, 0.5, 1);
}

.tabs__tab:hover {
  transform: scale(1.1);
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .tabs__tab {
    transition: none;
  }

  .tabs__tab:hover {
    transform: none;
  }
}

/* ---------- トップ右側：ボタンの下にお知らせ ---------- */

.hero__side {
  display: grid;
  gap: 1.25rem;
}

.hero__news {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.hero__news .h2 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.hero__news .news__item {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- ボタンのアイコン（Font Awesome） ---------- */

.btn--wide i {
  margin-right: 0.55em;
}

/* ---------- パソコンではヘッダーを上に固定 ---------- */

@media (min-width: 48rem) {
  html {
    scroll-padding-top: 6.5rem;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: 0.75rem;
  }

  .site-header__bar {
    margin-top: 0;
  }
}

.filter__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter__buttons .btn i {
  margin-right: 0.45em;
}

/* ---------- 脱走対策 ---------- */

.escape {
  max-width: var(--measure);
}

.escape__item + .escape__item {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dotted var(--stitch);
}

.escape__item p {
  margin-top: 0.4rem;
}

/* ---------- タブごとの色（タブと、開く画面は同じ色） ---------- */

:root {
  --tab-cats: #fff5d9;
  --tab-adopt: #ffebd0;
  --tab-escape: #fddfc6;
  --tab-donate: #f8e3d4;
  --tab-volunteer: #f3e7d6;
}

#tab-cats { --tab-bg: var(--tab-cats); }
#tab-adopt { --tab-bg: var(--tab-adopt); }
#tab-escape { --tab-bg: var(--tab-escape); }
#tab-donate { --tab-bg: var(--tab-donate); }
#tab-volunteer { --tab-bg: var(--tab-volunteer); }

#cats .split { background: var(--tab-cats); }
#adopt .split { background: var(--tab-adopt); }
#escape .split { background: var(--tab-escape); }
#donate .split { background: var(--tab-donate); }
#volunteer .split { background: var(--tab-volunteer); }

/* ---------- 問い合わせの色／フッターは濃い茶色 ---------- */

.section--contact .split {
  background: #f9e6e1;
}

.site-footer__inner {
  background: var(--brown);
  color: var(--cream);
}

/* ---------- 申込の前の「ロボットではない」確認 ---------- */

.apply-check {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--cream);
}

.apply-check form {
  display: grid;
  gap: 1rem;
  justify-items: start;
  margin-top: 1rem;
}

.apply-check .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
