:root {
  --font-rounded:
    "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro",
    "BIZ UDPGothic", "Yu Gothic", "YuGothic", sans-serif;
  --font-serif: "Yu Mincho", "Hiragino Mincho ProN", serif;
  --ink: #3f4a44;
  --bg: #fff9ef;
  --surface: #fff;
  --surface-soft: #f7eee1;
  --accent: #e77f55;
  --accent-2: #f1bc56;
  --deep: #40564a;
  --line: rgba(45, 57, 50, 0.14);
  --radius: 28px;
  --shadow: 0 20px 55px rgba(45, 57, 50, 0.1);
}

[hidden] {
  display: none !important;
}

.home .site-main {
  min-height: 0;
}

.home .site-main > .hero:first-child {
  margin-top: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #e9e6df;
  font-family: var(--font-rounded);
  font-feature-settings: "palt";
  letter-spacing: 0.015em;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
}

:focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 500;
  top: 0;
  left: 16px;
  padding: 12px 18px;
  color: #fff;
  background: #15221c;
  transform: translateY(-110%);
}

.skip-link:focus {
  transform: translateY(0);
}

.theme-switcher {
  position: relative;
  z-index: 200;
  display: flex;
  min-height: 88px;
  color: #f8f5ed;
  background: #17201c;
}

.theme-switcher__intro {
  display: flex;
  min-width: 245px;
  padding: 18px 28px;
  justify-content: center;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.theme-switcher__intro strong {
  color: #efbd61;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
}

.theme-switcher__intro span {
  margin-top: 5px;
  font-size: 0.82rem;
}

.theme-switcher__items {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
}

.theme-switcher__items button {
  position: relative;
  display: flex;
  padding: 14px 24px;
  align-items: center;
  gap: 13px;
  text-align: left;
  color: rgba(255, 255, 255, 0.58);
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-switcher__items button::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 3px;
  content: "";
  background: #efbd61;
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.theme-switcher__items button:hover,
.theme-switcher__items button.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.theme-switcher__items button.is-active::after {
  transform: scaleX(1);
}

.theme-switcher__items button > span:first-child {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 0.8rem;
}

.theme-switcher__items button > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.theme-switcher__items strong {
  font-size: 0.82rem;
}

.theme-switcher__items small {
  overflow: hidden;
  margin-top: 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.6rem;
  opacity: 0.72;
}

.site {
  overflow: hidden;
  width: min(100%, 1680px);
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 30px 80px rgba(19, 30, 25, 0.12);
}

.site--cream {
  --ink: #3f4a44;
  --bg: #fff9ef;
  --surface: #fff;
  --surface-soft: #f7eee1;
  --accent: #e77f55;
  --accent-2: #f1bc56;
  --deep: #40564a;
  --line: rgba(45, 57, 50, 0.14);
  --radius: 30px;
  --shadow: 0 20px 55px rgba(45, 57, 50, 0.1);
}

.site--sage {
  --ink: #51445a;
  --bg: #fff8fd;
  --surface: #fffefd;
  --surface-soft: #f8eaf6;
  --accent: #bd6fa6;
  --accent-2: #f4b8c9;
  --deep: #72537b;
  --line: rgba(113, 79, 122, 0.15);
  --radius: 34px;
  --shadow: 0 22px 58px rgba(113, 79, 122, 0.14);
}

.site--pop {
  --ink: #3d3544;
  --bg: #fff3ee;
  --surface: #fffdf9;
  --surface-soft: #ffe4d9;
  --accent: #ed664f;
  --accent-2: #f4ce4d;
  --deep: #4f3d66;
  --line: rgba(63, 47, 72, 0.16);
  --radius: 20px;
  --shadow: 8px 8px 0 #f1c94e;
}

.site-header {
  display: flex;
  min-height: 86px;
  padding: 0 5vw;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--bg);
  border-bottom: 1px solid transparent;
}

.site--sage .site-header {
  background: rgba(255, 250, 254, 0.96);
  border-bottom-color: var(--line);
}

.site--pop .site-header {
  background: #fffaf5;
  border-bottom: 3px solid var(--deep);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
}

.brand__mark {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: cover;
  background: #ffd91a;
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(91, 57, 22, 0.14);
}

.site--sage .brand__mark {
  transform: rotate(-4deg);
  border: 3px solid #fff;
  border-radius: 17px;
  box-shadow: 0 6px 0 #f6d5e5;
}

.site--pop .brand__mark {
  border: 2px solid var(--deep);
  border-radius: 13px;
  box-shadow: 3px 3px 0 var(--deep);
}

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

.brand__text strong {
  font-size: 0.95rem;
}

.brand__text small {
  margin-top: 2px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(17px, 2.5vw, 36px);
  font-size: 0.72rem;
  font-weight: 800;
}

.site-header nav a {
  padding: 32px 0 28px;
  border-bottom: 2px solid transparent;
}

.site-header nav a:hover {
  border-color: var(--accent);
}

.header-cta {
  display: inline-flex;
  min-height: 46px;
  padding: 0 18px;
  align-items: center;
  gap: 20px;
  color: #fff;
  background: var(--deep);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.header-cta--line {
  background: #32a852;
}

.header-cta--line > .header-cta__line {
  display: grid;
  width: 30px;
  height: 30px;
  margin-left: -9px;
  place-items: center;
  color: #23753c;
  background: #fff;
  border-radius: 50%;
  font-size: 0.48rem;
  font-weight: 900;
}

.site--sage .header-cta {
  background: linear-gradient(135deg, #76517f, #a96395);
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(113, 79, 122, 0.2);
}

.site--pop .header-cta {
  color: #fff;
  border: 2px solid var(--deep);
  box-shadow: 4px 4px 0 var(--accent-2);
}

.hero {
  position: relative;
  display: grid;
  min-height: 740px;
  padding: 70px 6vw 90px;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  column-gap: 5vw;
  row-gap: 45px;
  background: var(--surface-soft);
}

.site--cream .hero {
  border-radius: 0 0 80px 80px;
}

.site--sage .hero {
  background:
    radial-gradient(circle at 9% 12%, rgba(244, 184, 201, 0.52) 0 8%, transparent 8.2%),
    radial-gradient(circle at 88% 16%, rgba(214, 190, 236, 0.55) 0 12%, transparent 12.2%),
    linear-gradient(135deg, #fff5fb, #f7ecfb 58%, #fff9f5);
  border-radius: 0 0 90px 90px;
}

.site--pop .hero {
  background:
    radial-gradient(circle at 8% 14%, rgba(244, 206, 77, 0.9) 0 7%, transparent 7.2%),
    radial-gradient(circle at 93% 20%, rgba(237, 102, 79, 0.18) 0 11%, transparent 11.2%),
    #fff1e9;
  border-bottom: 3px solid var(--deep);
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__copy > span,
.section-heading > span,
.application-section__copy > span,
.support-section > div:first-child > span,
.final-cta > span {
  color: var(--accent);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.hero__copy > .hero__service-title {
  display: flex;
  width: fit-content;
  max-width: 100%;
  padding: 11px 18px;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 15px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(48, 57, 51, 0.08);
  font-size: clamp(1.15rem, 2vw, 1.85rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.hero__service-title small {
  padding: 5px 9px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.hero__copy h1 {
  margin: 20px 0 24px;
  font-size: clamp(4rem, 7vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.04;
}

.site--sage .hero__copy h1 {
  font-family: var(--font-rounded);
  font-weight: 850;
  line-height: 1.06;
  text-shadow: 4px 4px 0 #fff;
}

.site--pop .hero__copy h1 {
  text-shadow: 4px 4px 0 #fff;
}

.hero__copy h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero__copy > p {
  max-width: 520px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 2;
}

.hero__actions {
  display: flex;
  margin-top: 25px;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__actions a {
  display: inline-flex;
  min-height: 48px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background: var(--deep);
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 900;
}

.hero__actions a:last-child {
  background: #23753c;
}

.hero__facts {
  display: flex;
  margin-top: 36px;
  gap: 34px;
}

.hero__facts > span {
  display: flex;
  flex-direction: column;
}

.hero__facts strong {
  color: var(--deep);
  font-size: 1.3rem;
}

.hero__facts small {
  margin-top: 4px;
  color: #5f6a63;
  font-size: 0.58rem;
}

.hero__image {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: #f5ede2;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site--cream .hero__image {
  border-radius: 50% 50% 30px 30px;
}

.site--sage .hero__image {
  transform: rotate(-1.4deg);
  border: 8px solid #fff;
  border-radius: 46% 54% 38px 38px;
}

.site--pop .hero__image {
  transform: rotate(2deg);
  border: 3px solid var(--deep);
}

.hero__image > img,
.hero-carousel__frame > img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.hero-carousel {
  position: relative;
  min-height: 520px;
  height: 100%;
}

.hero-carousel__image {
  display: block;
  width: 100%;
  min-height: 520px;
  padding: 0;
  background: transparent;
  border: 0;
}

.hero-carousel__frame {
  display: block;
  min-height: 520px;
  animation: carousel-in 520ms ease both;
}

.hero-carousel__frame img {
  display: block;
  width: 100%;
}

.hero-carousel__caption {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 36px;
  left: 18px;
  display: grid;
  padding: 15px 70px 15px 18px;
  color: #fff;
  background: rgba(50, 67, 58, 0.9);
  border-radius: calc(var(--radius) / 2);
  grid-template-columns: 1fr auto;
  gap: 3px 20px;
  backdrop-filter: blur(9px);
}

.hero-carousel__caption > span,
.hero-carousel__caption > small {
  font-size: 0.55rem;
}

.hero-carousel__caption > strong {
  font-size: 0.92rem;
}

.hero-carousel__caption > small {
  opacity: 0.78;
}

.hero-carousel__caption > button {
  grid-row: 1 / 4;
  grid-column: 2;
  align-self: center;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 0.58rem;
  font-weight: 800;
}

.hero-carousel__arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.9);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(23, 34, 28, 0.14);
  font-size: 1.45rem;
  transform: translateY(-50%);
}

.hero-carousel__arrow--prev {
  left: 14px;
}

.hero-carousel__arrow--next {
  right: 14px;
}

.hero-carousel__dots {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 13px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 0;
}

.hero-carousel__dots button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.hero-carousel__dots button::before {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  content: "";
  transition: width 180ms ease, background 180ms ease;
}

.hero-carousel__dots button.is-active::before {
  width: 25px;
  background: #fff;
  border-radius: 999px;
}

.hero-carousel__toggle {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  display: inline-flex;
  min-height: 38px;
  padding: 0 13px;
  align-items: center;
  gap: 7px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.94);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(23, 34, 28, 0.14);
  font-size: 0.56rem;
  font-weight: 850;
}

.site--cream .hero-carousel__toggle {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes carousel-in {
  from {
    opacity: 0;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero__image > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 15px 18px;
  color: #fff;
  background: rgba(50, 67, 58, 0.88);
  border-radius: calc(var(--radius) / 2);
  font-size: 0.66rem;
  line-height: 1.5;
  backdrop-filter: blur(8px);
}

.hero__image > span strong {
  font-size: 0.85rem;
}

.hero__search {
  position: static;
  z-index: 5;
  display: grid;
  grid-column: 1 / -1;
  padding: 30px;
  grid-template-columns: 230px 1fr;
  align-items: start;
  gap: 32px;
  color: #fff;
  background: var(--deep);
  border-radius: var(--radius);
  box-shadow: 0 24px 55px rgba(25, 37, 31, 0.22);
}

.site--pop .hero__search {
  border: 3px solid var(--deep);
  box-shadow: 8px 8px 0 var(--accent-2);
}

.hero__search > div:first-child {
  padding-right: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero__search > div:first-child > span {
  color: var(--accent-2);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.hero__search h2 {
  margin: 8px 0 0;
  font-size: 1.15rem;
}

.filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 11px;
}

.filters .animal-filters__type,
.filters .animal-filters__status,
.filters .keyword-field,
.filters .filters__result {
  grid-column: 1 / -1;
}

.filters .animal-filters__type {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
}

.filters .animal-filters__status {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.filters .animal-filters__status legend {
  display: flex;
  min-height: 32px;
  margin-bottom: 8px;
  align-items: center;
  font-size: 0.57rem;
  font-weight: 800;
  opacity: 0.76;
}

.filters .animal-status-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters .animal-status-option {
  position: relative;
  display: block;
}

.filters .animal-status-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.filters .animal-status-option > span {
  display: inline-flex;
  min-height: 44px;
  padding: 0 15px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  opacity: 1;
}

.filters .animal-status-option input:checked + span {
  color: var(--deep);
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.filters .animal-status-option input:focus-visible + span {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.filters .animal-filters__type legend {
  display: flex;
  min-height: 32px;
  margin-bottom: 8px;
  padding-right: 7.5em;
  align-items: center;
  font-size: 0.57rem;
  font-weight: 800;
  opacity: 0.76;
}

.filters .animal-type-clear {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
}

.filters .animal-type-clear input,
.filters .animal-type-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.filters .animal-type-clear > span {
  display: inline-flex;
  min-height: 32px;
  padding: 0 6px;
  align-items: center;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.filters .animal-type-clear input:checked + span {
  text-decoration: none;
  opacity: 0.72;
}

.filters .animal-type-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.filters .animal-type-option {
  position: relative;
  display: block;
  min-width: 0;
}

.filters .animal-type-option > span {
  display: flex;
  min-height: 44px;
  padding: 8px 10px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: #fff;
  border-radius: 16px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
}

.filters .animal-type-option input:checked + span {
  color: var(--deep);
  background: var(--accent-2);
}

.filters .animal-type-option input:focus-visible + span,
.filters .animal-type-clear input:focus-visible + span {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.filters label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.filters label > span {
  font-size: 0.57rem;
  font-weight: 800;
  opacity: 0.76;
}

.filters .animal-type-option,
.filters .animal-type-clear {
  display: block;
}

.filters .animal-type-option > span,
.filters .animal-type-clear > span {
  opacity: 1;
}

.filters input,
.filters select {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 0.68rem;
}

.site--sage .filters input,
.site--sage .filters select {
  border-radius: 999px;
}

.site--pop .filters input,
.site--pop .filters select {
  border: 2px solid var(--deep);
}

.filters__result {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.filters__result strong {
  color: var(--accent-2);
  font-size: 1.35rem;
}

.filters__result span {
  font-size: 0.62rem;
}

.filters__result button {
  margin-left: 8px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 0.58rem;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  margin: 11px 0 0;
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.site--sage .section-heading h2 {
  font-family: var(--font-rounded);
  font-weight: 780;
  letter-spacing: -0.045em;
}

.section-heading > p {
  margin: 18px 0 0;
  color: #657068;
  font-size: 0.8rem;
  line-height: 1.9;
}

.dogs-section,
.before-section,
.howto-section,
.options-section,
.screening-section,
.operation-section,
.policy-section,
.stories-section,
.content-hub,
.faq-section {
  padding: 130px 6vw 110px;
}

.dogs-section {
  padding-top: 130px;
  background: var(--bg);
}

.dog-grid {
  display: grid;
  margin-top: 50px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(17px, 2vw, 28px);
}

.dog-card {
  overflow: hidden;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.site--cream .dog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.site--sage .dog-card {
  border-color: rgba(189, 111, 166, 0.16);
  box-shadow: 0 15px 40px rgba(113, 79, 122, 0.1);
}

.site--pop .dog-card {
  border: 2px solid var(--deep);
  box-shadow: 6px 6px 0 var(--accent-2);
}

.site--pop .dog-card:nth-child(even) {
  box-shadow: 6px 6px 0 #ffb7aa;
}

.line-quick {
  display: grid;
  width: min(760px, 100%);
  min-height: 82px;
  margin: 38px auto 0;
  padding: 14px 20px;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  column-gap: 15px;
  color: #fff;
  background: linear-gradient(135deg, #3ab45a, #279a48);
  border-radius: 999px;
  box-shadow: 0 14px 35px rgba(39, 154, 72, 0.22);
}

.line-quick > .line-quick__bubble {
  display: grid;
  width: 52px;
  height: 52px;
  grid-row: 1 / 3;
  place-items: center;
  color: #279a48;
  background: #fff;
  border-radius: 50%;
  font-size: 0.58rem;
  font-weight: 950;
}

.line-quick > strong {
  align-self: end;
  font-size: 0.84rem;
}

.line-quick > small {
  align-self: start;
  margin-top: 4px;
  font-size: 0.56rem;
  opacity: 0.82;
}

.line-quick > span:last-child {
  grid-row: 1 / 3;
  grid-column: 3;
  font-size: 1rem;
}

.floating-line {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
}

.line-quick--compact {
  width: auto;
  min-height: 64px;
  margin: 0;
  padding: 9px 16px 9px 9px;
  grid-template-columns: 46px auto auto;
  column-gap: 10px;
  box-shadow: 0 16px 36px rgba(26, 99, 47, 0.3);
}

.line-quick--compact > .line-quick__bubble {
  width: 46px;
  height: 46px;
  font-size: 0.62rem;
}

.line-quick--compact > strong {
  font-size: 0.68rem;
}

.line-quick--compact > small {
  font-size: 0.5rem;
}

.dog-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 0;
  aspect-ratio: 1 / 0.92;
  background: #eee7de;
  border: 0;
}

.dog-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.dog-card:hover .dog-card__image img {
  transform: scale(1.02);
}

.dog-placeholder {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: #817368;
  background: #e9dfd2;
}

.dog-placeholder > span {
  font-size: 2.3rem;
}

.dog-placeholder small {
  font-size: 0.62rem;
  font-weight: 800;
}

.status {
  position: absolute;
  top: 13px;
  right: 13px;
  display: inline-flex;
  min-height: 28px;
  padding: 0 12px;
  align-items: center;
  color: #fff;
  border-radius: 999px;
  font-size: 0.61rem;
  font-weight: 900;
}

.status--open {
  background: #236a48;
}

.status--check {
  background: #924a31;
}

.adoption-fee-badge {
  position: absolute;
  right: 13px;
  bottom: 13px;
  z-index: 2;
	display: inline-flex;
	max-width: calc(100% - 26px);
	min-height: 28px;
	padding: 5px 12px;
  align-items: center;
  border: 1px solid #f0c987;
  border-radius: 999px;
  background: #fff4e5;
  color: #8a6100;
  font-size: 0.58rem;
  font-weight: 900;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.adoption-fee-badge--free {
	border-color: #9bcfb2;
	background: #ecf8f1;
	color: #14633d;
}

.adoption-fee-list-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid #dba617;
  background: #fcf9e8;
  color: #5c4a1f;
  font-size: 0.72rem;
  line-height: 1.65;
}

.adoption-fee-footnote {
  margin: 14px 0 0;
  color: rgba(52, 64, 57, 0.78);
  font-size: 0.62rem;
  line-height: 1.65;
}

.adoption-fee-callout {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid #f0c987;
  border-radius: 18px;
  background: #fff8ed;
}

.adoption-fee-callout strong {
  display: block;
  margin-bottom: 8px;
  color: #8a6100;
  font-size: 0.86rem;
}

.adoption-fee-callout p {
  margin: 0;
  color: #5c4a1f;
  font-size: 0.72rem;
  line-height: 1.7;
}

.detail-fee-line {
  margin: 0 0 14px;
  font-size: 0.74rem;
  line-height: 1.6;
}

.detail-fee-line strong {
  color: var(--ink);
}

.dog-card__body {
  padding: 21px;
}

.dog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #778079;
  font-size: 0.57rem;
}

.dog-card__reason,
.detail-type-reason {
  display: flex;
  margin: 11px 0 0;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.65;
}

.dog-card__reason strong {
  color: var(--deep);
}

.dog-card h3 {
  display: flex;
  margin: 10px 0 14px;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 1.35rem;
}

.dog-card h3 small {
  font-size: 0.61rem;
  font-weight: 600;
}

.chips {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.chips li {
  padding: 5px 9px;
  color: var(--deep);
  background: var(--surface-soft);
  border-radius: 999px;
  font-size: 0.57rem;
}

.site--sage .chips li {
  color: #76517f;
  background: #faedf7;
  border-radius: 999px;
}

.dog-card__body > p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 58px;
  margin: 14px 0;
  color: #667068;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.68rem;
  line-height: 1.75;
}

.dog-card__body > .dog-card__reason {
  display: flex;
  min-height: 0;
  margin: 11px 0 0;
  color: var(--accent);
  -webkit-box-orient: initial;
  -webkit-line-clamp: initial;
  font-size: 0.62rem;
  line-height: 1.65;
}

.dog-card__footer {
  display: flex;
  padding-top: 13px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.dog-card__footer > small {
  color: #879089;
  font-size: 0.52rem;
}

.dog-card__footer button,
.dog-card__footer a {
  display: inline-flex;
  padding: 0;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  background: transparent;
  border: 0;
  font-size: 0.63rem;
  font-weight: 900;
  text-decoration: none;
}

.empty-state {
  margin-top: 45px;
  padding: 65px 30px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.empty-state > span {
  font-size: 2rem;
}

.empty-state h3 {
  margin: 12px 0 18px;
}

.empty-state button {
  padding: 11px 18px;
  color: #fff;
  background: var(--deep);
  border: 0;
  border-radius: 999px;
}

.archive-link {
  display: flex;
  width: fit-content;
  min-height: 48px;
  margin: 34px auto 0;
  padding: 0 22px;
  align-items: center;
  gap: 12px;
  color: #fff;
  background: var(--deep);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  text-decoration: none;
}

.stories-section {
  background: var(--deep);
}

.stories-section .section-heading h2,
.stories-section .section-heading > p {
  color: #fff;
}

.stories-section .section-heading > span {
  color: var(--accent-2);
}

.stories-grid {
  display: grid;
  margin-top: 48px;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stories-grid article {
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border-radius: var(--radius);
}

.site--pop .stories-grid article {
  border: 2px solid #fff;
}

.stories-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 1.35 / 1;
  background: var(--surface-soft);
}

.stories-grid figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stories-grid figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(35, 42, 38, 0.72);
  border-radius: 999px;
  font-size: 0.46rem;
}

.stories-grid article > div {
  padding: 26px 28px 30px;
}

.stories-grid article > div > span {
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 900;
}

.stories-grid h3 {
  margin: 18px 0 13px;
  font-size: 1.45rem;
  line-height: 1.55;
}

.stories-grid p {
  margin: 0;
  color: #667069;
  font-size: 0.72rem;
  line-height: 1.85;
}

.stories-quote {
  display: grid;
  margin: 18px 0 0;
  padding: 24px 28px;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 28px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.stories-quote span {
  color: var(--accent-2);
  font-size: 0.62rem;
  font-weight: 900;
}

.stories-quote p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.9;
}

.before-section {
  background: var(--surface-soft);
}

.reading-grid {
  display: grid;
  margin-top: 48px;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.reading-grid a {
  display: flex;
  min-height: 285px;
  padding: 28px;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.site--pop .reading-grid a {
  border: 2px solid var(--deep);
  box-shadow: 5px 5px 0 var(--accent-2);
}

.reading-grid a > span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 38px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 0.68rem;
}

.reading-grid a > strong {
  font-size: 1.03rem;
  line-height: 1.55;
}

.reading-grid p {
  margin: 10px 0 24px;
  color: #667069;
  font-size: 0.7rem;
  line-height: 1.85;
}

.reading-grid small {
  display: flex;
  margin-top: auto;
  justify-content: space-between;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 900;
}

.reality-note {
  display: grid;
  margin-top: 18px;
  padding: 28px 32px;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 35px;
  color: #fff;
  background: var(--deep);
  border-radius: var(--radius);
}

.reality-note strong {
  font-size: 1.08rem;
  line-height: 1.6;
}

.reality-note p {
  margin: 0;
  padding-left: 35px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  line-height: 1.9;
  opacity: 0.86;
}

.howto-section {
  background: var(--bg);
}

.flow-list {
  position: relative;
  display: grid;
  margin: 52px 0 0;
  padding: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.flow-list li {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 245px;
  padding: 18px 14px 20px;
  align-items: center;
  flex-direction: column;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flow-list .flow-list__number {
  color: var(--accent);
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.flow-list .flow-list__icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 22px 0 19px;
  place-items: center;
  color: var(--deep);
  background: var(--surface-soft);
  border-radius: 50%;
  font-size: 1.55rem;
}

.flow-list__line .flow-list__icon {
  color: #23753c;
  background: #e7f6eb;
  font-size: 0.66rem;
  font-weight: 950;
}

.flow-list strong {
  display: block;
  font-size: 0.78rem;
  line-height: 1.5;
}

.flow-list p {
  margin: 9px 0 0;
  color: #5f6a63;
  font-size: 0.59rem;
  line-height: 1.75;
}

.flow-list .flow-list__arrow {
  position: absolute;
  z-index: 3;
  top: 88px;
  right: -16px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border: 3px solid var(--bg);
  border-radius: 50%;
  font-size: 0.62rem;
}

.flow-line-cta {
  display: grid;
  margin-top: 18px;
  padding: 19px 22px;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  color: #31553d;
  background: #eaf7ed;
  border: 1px solid #cce7d2;
  border-radius: calc(var(--radius) / 1.2);
}

.flow-line-cta > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
}

.flow-line-cta strong {
  display: block;
  font-size: 0.76rem;
}

.flow-line-cta p {
  margin: 5px 0 0;
  font-size: 0.6rem;
  line-height: 1.7;
}

.flow-line-cta a {
  display: inline-flex;
  min-height: 44px;
  padding: 0 16px;
  align-items: center;
  gap: 22px;
  color: #fff;
  background: #32a852;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
}

.flow-alert {
  margin: 22px 0 0;
  padding: 16px 20px;
  color: #6b625b;
  background: var(--surface-soft);
  border-radius: calc(var(--radius) / 2);
  font-size: 0.67rem;
  line-height: 1.75;
}

.options-section {
  background: var(--surface-soft);
}

.options-grid {
  display: grid;
  margin-top: 48px;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.options-grid article {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.options-grid article > span {
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.options-grid h3 {
  margin: 18px 0 10px;
  font-size: 1.4rem;
}

.options-grid article > strong {
  color: var(--deep);
  font-size: 0.78rem;
}

.options-grid p {
  margin: 16px 0;
  color: #69736c;
  font-size: 0.7rem;
  line-height: 1.85;
}

.options-grid ul,
.operation-grid ul {
  margin: 0;
  padding: 16px 0 0 18px;
  border-top: 1px solid var(--line);
  color: #667069;
  font-size: 0.65rem;
  line-height: 1.9;
}

.content-note {
	margin-top: 18px;
	padding: 24px 28px;
	color: #fff;
	background: var(--deep);
	border-radius: var(--radius);
}

.content-note strong {
	font-size: 0.8rem;
}

.content-note p {
  margin: 7px 0 0;
  font-size: 0.67rem;
  line-height: 1.8;
  opacity: 0.88;
}

.application-section {
  display: grid;
  padding: 110px 7vw;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 7vw;
  color: #fff;
  background: #46a962;
  scroll-margin-top: 22px;
}

.application-section__copy > span {
  color: #dff7b2;
}

.application-section__copy h2 {
  margin: 18px 0 22px;
  font-size: clamp(2.5rem, 4.2vw, 4.5rem);
  line-height: 1.3;
}

.application-section__copy p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.95;
  opacity: 0.86;
}

.application-section__copy .application-guidance p {
  opacity: 1;
}

.application-actions {
  display: grid;
  max-width: 460px;
  margin-top: 28px;
  gap: 12px;
}

.application-template-source {
  position: fixed;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.application-copy-button {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 52px;
  padding: 11px 18px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: rgba(35, 112, 57, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.55;
  text-align: left;
}

.application-copy-button:hover {
  background: rgba(30, 95, 49, 0.75);
}

.application-copy-button > span {
  font-size: 1rem;
  line-height: 1;
}

.application-copy-status {
  min-height: 1.5em;
  color: #efffd7;
  font-size: 0.68rem;
  font-weight: 800;
}

.application-line-access {
  display: grid;
  padding: 14px;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  color: #315842;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(25, 91, 45, 0.16);
}

.application-line-access img {
  width: 112px;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 8px;
}

.application-line-access strong,
.application-line-access small {
  display: block;
}

.application-line-access strong {
  font-size: 0.8rem;
}

.application-line-access small {
  margin-top: 5px;
  color: #647068;
  font-size: 0.62rem;
  line-height: 1.65;
}

.application-line-link {
  display: inline-flex;
  min-height: 44px;
  margin-top: 10px;
  padding: 8px 13px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  background: #23753c;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.5;
  text-decoration: none;
}

.application-line-link:hover {
  background: #21763a;
}

.application-list {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  list-style: none;
}

.application-list li {
  display: flex;
  min-height: 64px;
  padding: 13px 16px;
  align-items: center;
  gap: 12px;
  color: #315842;
  background: rgba(255, 255, 255, 0.93);
  border-radius: 14px;
}

.application-list span {
  color: #23753c;
  font-family: Georgia, serif;
  font-size: 0.62rem;
}

.application-list strong {
  font-size: 0.68rem;
}

.screening-section {
  background: var(--bg);
}

.screening-grid {
  display: grid;
  margin-top: 48px;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.screening-grid article {
  min-height: 235px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.screening-grid article > span {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 0.68rem;
}

.screening-grid strong {
  display: block;
  margin-top: 50px;
  font-size: 0.84rem;
  line-height: 1.55;
}

.screening-grid p {
  color: #5f6a63;
  font-size: 0.65rem;
  line-height: 1.75;
}

.about-section {
  display: grid;
  padding: 120px 6vw;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 7vw;
  background: var(--deep);
  color: #fff;
}

.about-section .section-heading > span {
  color: var(--accent-2);
}

.about-section .section-heading h2 {
  color: #fff;
}

.about-section__main > p {
  margin: 28px 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.75rem;
  line-height: 2;
}

.about-section blockquote {
  margin: 0;
  padding: 22px 0 22px 25px;
  border-left: 3px solid var(--accent-2);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.6;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.activity-grid article {
  min-height: 175px;
  padding: 22px;
  color: var(--ink);
  background: var(--surface);
  border-radius: calc(var(--radius) / 1.6);
}

.activity-grid span {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 0.62rem;
}

.activity-grid strong {
  display: block;
  margin-top: 25px;
  font-size: 0.83rem;
}

.activity-grid p {
  color: #69736c;
  font-size: 0.63rem;
  line-height: 1.7;
}

.operation-section {
  background: var(--surface-soft);
}

.operation-grid {
  display: grid;
  margin-top: 48px;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.operation-grid article {
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
}

.operation-grid article > span {
  color: var(--accent);
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.operation-grid h3 {
  margin: 18px 0;
  font-size: 1.2rem;
}

.operation-grid__condition {
	margin: -8px 0 15px;
	color: #667069;
	font-size: 0.7rem;
	line-height: 1.7;
}

.transparency-note {
  display: grid;
  margin-top: 18px;
  padding: 28px;
  grid-template-columns: 0.5fr 1.5fr;
  align-items: start;
  gap: 30px;
  color: #fff;
  background: var(--deep);
  border-radius: var(--radius);
}

.transparency-note p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.85;
  opacity: 0.84;
}

.policy-section {
  background: var(--bg);
}

.policy-grid {
  display: grid;
  margin-top: 45px;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.policy-grid article {
  min-height: 175px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.policy-grid span {
  display: block;
  margin-bottom: 38px;
  color: var(--accent);
  font-size: 0.61rem;
  font-weight: 900;
}

.policy-grid strong {
  font-size: 0.75rem;
  line-height: 1.8;
}

.policy-section > p {
  margin: 22px 0 0;
  padding: 20px 24px;
  color: #606b64;
  background: var(--surface-soft);
  border-radius: calc(var(--radius) / 2);
  font-size: 0.7rem;
  line-height: 1.85;
}

.support-section {
  display: grid;
  padding: 100px 7vw;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  color: #fff;
  background: #5f4332;
}

.support-section > div:first-child > span {
  color: #ffd77a;
}

.support-section h2 {
  margin: 16px 0 20px;
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.support-section p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.95;
  opacity: 1;
}

.support-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-links a {
  display: flex;
  min-height: 66px;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  color: #684d38;
  background: #fffaf0;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
}

.support-links small {
  margin-top: 8px;
  font-size: 0.56rem;
  line-height: 1.7;
  opacity: 0.7;
}

.content-hub {
  background: var(--surface-soft);
}

.content-groups {
  display: grid;
  margin-top: 48px;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.content-groups article {
  padding: 30px;
  background: var(--surface);
  border-radius: var(--radius);
}

.content-groups article > span {
  color: var(--accent);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.content-groups h3 {
  min-height: 72px;
  margin: 20px 0;
  font-size: 1.2rem;
  line-height: 1.55;
}

.content-groups ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.content-groups li {
  border-bottom: 1px solid var(--line);
}

.content-groups a {
  display: flex;
  min-height: 70px;
  padding: 12px 0;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 0.67rem;
  line-height: 1.6;
}

.aio-note {
  display: block;
  margin-top: 20px;
  color: #778079;
  font-size: 0.61rem;
}

.faq-section {
  background: var(--bg);
}

.faq-section > div:last-child {
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.faq-section details {
  border-bottom: 1px solid var(--line);
}

.faq-section summary {
  padding: 23px 4px;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.faq-section details p {
  margin: 0;
  padding: 0 4px 22px;
  color: #667069;
  font-size: 0.72rem;
  line-height: 1.9;
}

.final-cta {
  padding: 110px 6vw;
  text-align: center;
  color: #fff;
  background: var(--deep);
}

.final-cta > span {
  color: var(--accent-2);
}

.final-cta h2 {
  margin: 18px 0 20px;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.35;
}

.final-cta p {
  margin: 0;
  font-size: 0.76rem;
  opacity: 0.78;
}

.final-cta a {
  display: inline-flex;
  margin-top: 32px;
  padding: 14px 22px;
  align-items: center;
  gap: 28px;
  color: var(--deep);
  background: var(--accent-2);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
}

.site-footer {
  display: grid;
  padding: 70px 7vw 34px;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  color: #f6f3ec;
  background: #17201c;
}

.site-footer .brand__mark {
  transform: none;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: none;
}

.site-footer > div:first-child p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: start;
  gap: 13px 22px;
  font-size: 0.68rem;
}

.site-footer > small {
  padding-top: 28px;
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.55rem;
}

.detail-backdrop {
  position: fixed;
  z-index: 400;
  inset: 0;
  display: grid;
  padding: 30px;
  overflow-y: auto;
  place-items: center;
  background: rgba(30, 41, 35, 0.74);
  backdrop-filter: blur(8px);
}

html.has-open-dog-detail,
html.has-open-dog-detail body {
  overflow: hidden;
}

.dog-detail {
  position: relative;
  display: grid;
  overflow-x: hidden;
  overflow-y: auto;
  width: min(1060px, 100%);
  max-height: calc(100vh - 60px);
  max-height: calc(100dvh - 60px);
  grid-template-columns: minmax(340px, 0.9fr) minmax(430px, 1.1fr);
  align-items: start;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 35px 90px rgba(18, 29, 23, 0.32);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.dog-detail__close {
  position: absolute;
  z-index: 4;
  top: 15px;
  right: 15px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 0;
  border-radius: 50%;
  font-size: 1.4rem;
}

.dog-detail__image {
  position: relative;
  position: sticky;
  top: 0;
  min-height: 620px;
  background: #eee6dc;
}

.dog-detail__image img {
  height: 100%;
  object-fit: cover;
}

.dog-detail__content {
  overflow: visible;
  padding: clamp(34px, 4vw, 58px);
}

.detail-scroll-cue {
  display: flex;
  margin: 16px 0 0;
  padding: 10px 13px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #6d756f;
  background: var(--surface-soft);
  border-radius: 999px;
  font-size: 0.58rem;
}

.detail-scroll-cue span {
  color: var(--accent);
  font-size: 1rem;
}

.detail-eyebrow {
  display: flex;
  justify-content: space-between;
  color: #7c857f;
  font-size: 0.62rem;
}

.dog-detail h2 {
  display: flex;
  margin: 10px 0 16px;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.dog-detail h2 small {
  font-size: 0.68rem;
}

.detail-block {
  margin-top: 23px;
}

.detail-block > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.65rem;
}

.detail-block p {
  margin: 0;
  color: #606c65;
  font-size: 0.78rem;
  line-height: 1.9;
}

.detail-block--health {
  padding: 16px 18px;
  background: var(--surface-soft);
  border-radius: calc(var(--radius) / 2);
}

.match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.match-tags span {
  padding: 7px 10px;
  color: var(--deep);
  background: var(--surface-soft);
  border-radius: 999px;
  font-size: 0.61rem;
}

.detail-source {
  margin-top: 24px;
  padding: 16px 18px;
  color: #68726b;
  background: #f1ece5;
  border-radius: calc(var(--radius) / 2);
}

.detail-source p {
  margin: 0;
  font-size: 0.62rem;
  line-height: 1.75;
}

.detail-source a {
  display: inline-flex;
  margin-top: 8px;
  gap: 12px;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 900;
}

.line-cta {
  display: flex;
  width: 100%;
  min-height: 62px;
  margin-top: 23px;
  padding: 0 18px;
  align-items: center;
  gap: 13px;
  color: #fff;
  background: #46aa61;
  border: 0;
  border-radius: 999px;
}

.line-cta > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: #fff;
  color: #31944a;
  border-radius: 50%;
  font-size: 0.55rem;
  font-weight: 900;
}

.line-cta strong {
  flex: 1;
  text-align: left;
  font-size: 0.72rem;
}

.line-guide > span {
  color: #31944a;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.line-guide > h2 {
  display: block;
  margin: 16px 0;
  line-height: 1.35;
}

.line-guide > p {
  color: #657169;
  font-size: 0.72rem;
  line-height: 1.85;
}

.line-guide__list {
  margin: 22px 0;
  padding: 18px;
  color: #365945;
  background: #eaf5ed;
  border-radius: calc(var(--radius) / 2);
}

.line-guide__list > strong {
  font-size: 0.72rem;
}

.line-guide__list ul {
  display: grid;
  margin: 12px 0 0;
  padding: 13px 0 0 18px;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
  border-top: 1px solid #c8e2ce;
  font-size: 0.61rem;
  line-height: 1.55;
}

.line-guide__button {
  display: flex;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: #46aa61;
  border: 0;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
}

.line-guide > small {
  display: block;
  margin-top: 9px;
  color: #7e8983;
  font-size: 0.56rem;
}

.line-guide__back {
  margin-top: 17px;
  padding: 0;
  color: #627068;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 0.62rem;
}

@media (max-width: 1180px) {
  .site-header nav {
    display: none;
  }

  .filters {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters .animal-type-options {
    grid-template-columns: 1fr;
  }

  .filters__result {
    grid-column: 1 / -1;
  }

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

  .screening-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .theme-switcher {
    min-height: 72px;
  }

  .theme-switcher__intro {
    display: none;
  }

  .theme-switcher__items button {
    padding: 10px 12px;
    justify-content: center;
  }

  .theme-switcher__items small {
    display: none;
  }

  .site-header {
    min-height: 74px;
    padding: 0 24px;
  }

  .hero {
    padding: 60px 6vw 80px;
    grid-template-columns: 1fr;
  }

  .hero__image {
    min-height: 440px;
  }

  .hero__search {
    grid-template-columns: 1fr;
  }

  .hero__search > div:first-child {
    padding: 0 0 13px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .dogs-section {
    padding-top: 130px;
  }

  .stories-grid,
  .reading-grid,
  .options-grid,
  .operation-grid,
  .content-groups {
    grid-template-columns: 1fr;
  }

  .flow-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .policy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .application-section,
  .about-section,
  .support-section {
    grid-template-columns: 1fr;
  }

  .screening-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reality-note,
  .transparency-note {
    grid-template-columns: 1fr;
  }

  .reality-note p {
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .dog-detail {
    max-height: 100vh;
    max-height: 100dvh;
    grid-template-columns: 1fr;
  }

  .dog-detail__image {
    position: relative;
    min-height: 420px;
    max-height: 520px;
  }
}

@media (max-width: 680px) {
  .theme-switcher__items button > span:last-child {
    display: none;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand__text strong {
    font-size: 0.84rem;
  }

  .header-cta {
    padding: 0 13px;
  }

  .header-cta--line > .header-cta__line {
    display: none;
  }

  .hero {
    padding-right: 18px;
    padding-bottom: 56px;
    padding-left: 18px;
  }

  .hero__copy h1 {
    font-size: clamp(3.4rem, 18vw, 5.2rem);
  }

  .hero__facts {
    gap: 18px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions a {
    width: 100%;
  }

  .hero-carousel__caption {
    padding-right: 18px;
    grid-template-columns: 1fr;
  }

  .hero-carousel__caption > button {
    display: none;
  }

  .hero__search {
    margin-top: 0;
    padding: 22px;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .filters .animal-type-options {
    grid-template-columns: 1fr;
  }

  .filters__result {
    grid-column: auto;
  }

  .dogs-section,
  .before-section,
  .howto-section,
  .options-section,
  .screening-section,
  .operation-section,
  .policy-section,
  .stories-section,
  .content-hub,
  .faq-section,
  .application-section,
  .about-section,
  .support-section,
  .final-cta {
    padding: 56px 18px;
  }

  .dog-grid,
  .flow-list,
  .screening-grid,
  .policy-grid,
  .activity-grid,
  .application-list,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .flow-list {
    gap: 18px;
  }

  .flow-list .flow-list__arrow {
    top: auto;
    right: calc(50% - 11px);
    bottom: -20px;
    transform: rotate(90deg);
  }

  .flow-line-cta {
    grid-template-columns: 44px 1fr;
  }

  .flow-line-cta a {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .stories-quote {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section-heading h2 {
    font-size: 2.25rem;
  }

  .flow-list li,
  .screening-grid article {
    min-height: auto;
  }

  .screening-grid strong {
    margin-top: 25px;
  }

  .application-section__copy h2 {
    font-size: 2.6rem;
  }

  .application-actions {
    max-width: none;
  }

  .application-line-access {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

  .application-line-access img {
    width: 88px;
  }

  .application-copy-button,
  .application-line-link {
    width: 100%;
  }

  .support-links a {
    border-radius: 16px;
  }

  .site-footer {
    gap: 30px;
  }

  .site-footer > small {
    grid-column: auto;
  }

  .detail-backdrop {
    padding: 0;
  }

  .dog-detail {
    min-height: 100vh;
    border-radius: 0;
  }

  .dog-detail__content {
    padding: 32px 20px 45px;
  }

  .floating-line {
    right: 10px;
    bottom: 10px;
  }

  .line-quick--compact {
    min-height: 56px;
    grid-template-columns: 40px auto auto;
  }

  .line-quick--compact > .line-quick__bubble {
    width: 40px;
    height: 40px;
  }

  .line-quick--compact > small {
    display: none;
  }

  .line-quick:not(.line-quick--compact) {
    padding-right: 17px;
    grid-template-columns: 48px 1fr auto;
    border-radius: 28px;
  }

  .line-guide__list ul {
    grid-template-columns: 1fr;
  }

  .dog-card__footer {
    padding-top: 6px;
  }

  .dog-card__footer > small {
    font-size: 0.66rem;
  }

  .dog-card__footer a,
  .dog-card__footer button {
    min-height: 44px;
    padding: 4px 0;
    font-size: 0.76rem;
  }

  .filters__result span {
    font-size: 0.72rem;
  }

  .filters__result button {
    min-height: 44px;
    padding: 0 2px;
    font-size: 0.76rem;
  }

  .hero-carousel__arrow,
  .hero-carousel__dots button {
    width: 44px;
    height: 44px;
  }

  .hero-carousel__toggle {
    min-height: 44px;
    font-size: 0.68rem;
  }

  .hero-carousel__caption > button {
    min-height: 44px;
    font-size: 0.7rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Shared A-1 chrome: the same header and footer are used on every route. */
.site {
  overflow: clip;
}

.site-header {
  position: sticky;
  z-index: 300;
  top: 0;
  display: block;
  min-height: 0;
  padding: 0;
  background: rgba(255, 249, 239, 0.96);
  border-bottom: 1px solid rgba(45, 57, 50, 0.1);
  box-shadow: 0 8px 30px rgba(45, 57, 50, 0.05);
  backdrop-filter: blur(16px);
}

.admin-bar .site-header {
  top: 32px;
}

.site-header__inner {
  display: flex;
  width: 100%;
  min-height: 86px;
  padding: 0 5vw;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-header .primary-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: clamp(17px, 2.5vw, 36px);
}

.site-header .primary-nav a {
  padding: 32px 0 28px;
  border-bottom: 2px solid transparent;
  font-size: 0.72rem;
  font-weight: 800;
}

.site-header .primary-nav a:hover,
.site-header .primary-nav a:focus-visible {
  border-color: var(--accent);
}

.menu-toggle__icon {
  display: grid;
  width: 20px;
  gap: 4px;
}

.menu-toggle__icon i {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.site-footer {
  display: block;
  padding: 70px 0 34px;
}

.site-footer__inner {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
}

.site-footer__brand p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
}

.site-footer .footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 13px 22px;
  font-size: 0.68rem;
}

.site-footer__bottom {
  display: flex;
  padding-top: 28px;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.58rem;
}

@media (max-width: 1180px) {
  .site-header__inner {
    min-height: 74px;
    padding: 0 24px;
  }

  .site-header .menu-toggle {
    display: grid;
    margin-left: auto;
    place-items: center;
  }

  .site-header .primary-nav {
    position: fixed;
    z-index: 290;
    top: 74px;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 74px);
    margin: 0;
    padding: 18px 24px 30px;
    overflow-y: auto;
    background: #fff9ef;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(45, 57, 50, 0.12);
  }

  .admin-bar .site-header .primary-nav {
    top: 106px;
  }

  .site-header .primary-nav[data-open="true"] {
    display: grid;
  }

  .site-header .primary-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 0.82rem;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .site-header .primary-nav {
    top: 120px;
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    padding: 0 16px;
  }

  .site-header .header-cta {
    display: none;
  }

  .site-footer__inner {
    width: calc(100% - 36px);
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .site-footer__bottom {
    grid-column: auto;
    flex-direction: column;
  }
}

/* このファイル後半の共通ヘッダー・フッター定義（.site-footer 以下）は
   メディアクエリ外で宣言されており、同じ詳細度なら後述が優先される。
   狭い画面向けのフッター上書きは、それらより後ろに置く必要がある。 */
@media (max-width: 680px) {
  /* 追従LINEボタンは fixed で最下部に重なる。逃げ余白がないと著作権表記と
     「掲載時点の情報」注記がボタンの下に隠れる。 */
  .site-footer {
    padding-bottom: 96px;
  }

  /* 2カラムのままだと1カラム約166pxで「家族ストーリー」等が不自然に折り返す。 */
  .site-footer .footer-links,
  .site-footer .footer-links__menu {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-footer .footer-links a {
    display: flex;
    min-height: 44px;
    align-items: center;
    font-size: 0.8rem;
  }

  /* small は親サイズからさらに縮むため、親だけ広げても9px台に留まる。 */
  .site-footer__bottom,
  .site-footer__bottom small {
    font-size: 0.7rem;
  }
}

/* 2026-08-21 contrast hotfix: synchronize top-page colors with the shared theme. */
:root,
.site--cream {
  --accent: #ad482f;
}

.header-cta--line,
.flow-line-cta a {
  background: #23753c;
}

.header-cta--line > .header-cta__line,
.line-quick > .line-quick__bubble {
  color: #23753c;
}

.line-quick {
  background: linear-gradient(135deg, #23753c, #195e31);
}

.application-section {
  background: #23753c;
}

.dog-card__meta,
.dog-card__body > p,
.dog-card__footer > small,
.stories-grid p,
.reading-grid p,
.flow-list p,
.options-grid p,
.options-grid ul,
.operation-grid ul,
.activity-grid p,
.operation-grid p,
.content-groups p,
.detail-eyebrow,
.detail-block p,
.section-heading > p {
  color: #5f6a63;
}

.site-footer__bottom {
  color: rgba(255, 255, 255, 0.6);
}
