:root {
  --orange: #ff6816;
  --pink: #fac1de;
  --hot: #ff45c0;
  --cream: #fff4d3;
  --paper: #f3efe7;
  --ink: #222;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--pink);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.sub-header {
  height: 84px;
  padding: 0 max(28px, 5vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--orange);
}
.logo {
  font:
    800 22px Outfit,
    sans-serif;
  letter-spacing: 0.12em;
}
.back {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  transition: transform 0.25s;
}
.back span {
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: 0.25s;
}
.back:hover {
  transform: translateX(-4px);
}
.back:hover span {
  background: var(--ink);
  color: var(--orange);
}
.livers-hero {
  height: 520px;
  padding: 100px 24px 70px;
  position: relative;
  overflow: hidden;
  background: var(--pink);
  text-align: center;
}
.livers-hero h1 {
  margin: 0;
  font:
    400 clamp(110px, 15vw, 205px) / 0.82 Modak,
    cursive;
  letter-spacing: 0.025em;
  background: linear-gradient(90deg, var(--orange), #fc972f);
  -webkit-background-clip: text;
  color: transparent;
}
.livers-hero > p {
  margin: 35px 0 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.hero-deco {
  position: absolute;
  filter: drop-shadow(8px 8px 10px #0002);
}
.heart {
  left: 9%;
  top: 105px;
  color: var(--hot);
  font-size: 70px;
  transform: rotate(-14deg);
}
.star {
  right: 10%;
  bottom: 75px;
  color: var(--cream);
  font-size: 65px;
  transform: rotate(17deg);
}
.live {
  right: 13%;
  top: 90px;
  padding: 10px 22px;
  border-radius: 99px;
  background: var(--cream);
  color: var(--hot);
  font: 800 20px Outfit;
  transform: rotate(8deg);
}
.livers-area {
  padding: 0 24px 140px;
}
.livers-panel {
  width: min(1320px, 100%);
  margin: -65px auto 0;
  padding: 82px clamp(25px, 5vw, 72px) 100px;
  position: relative;
  border: 7px solid var(--orange);
  border-radius: 76px;
  background: var(--paper);
  box-shadow: 18px 16px 0 rgba(255, 104, 22, 0.18);
}
.panel-heading {
  text-align: center;
}
.panel-heading > p {
  margin: 0 0 8px;
  color: var(--hot);
  font: 600 13px Outfit;
  letter-spacing: 0.2em;
}
.panel-heading h2 {
  margin: 0 0 18px;
  font-size: 32px;
}
.panel-heading > span {
  font-size: 15px;
  line-height: 1.8;
}
.filters {
  margin: 52px 0 62px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.filters button {
  min-width: 115px;
  padding: 11px 24px;
  border: 1px solid var(--hot);
  border-radius: 99px;
  background: transparent;
  color: var(--hot);
  font: 500 14px "Noto Sans JP";
  cursor: pointer;
  transition: 0.25s;
}
.filters button:hover,
.filters button.active {
  background: var(--hot);
  color: white;
  box-shadow: 0 8px 16px #ff45c033;
}
.liver-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 70px 38px;
}
.liver-card {
  text-align: center;
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.liver-card.hidden {
  display: none;
}
.liver-card:hover {
  transform: translateY(-7px);
}
.portrait {
  height: 500px;
  padding: 11px;
  border-radius: 68px;
  background: var(--cream);
  box-shadow: 2px 4px 14px #0003;
  transition: box-shadow 0.3s;
}
.liver-card:hover .portrait {
  box-shadow: 0 18px 35px #7d31572b;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 58px;
}
.profile {
  padding-top: 28px;
  position: relative;
}
.profile > span {
  display: inline-block;
  padding: 8px 25px;
  border: 1px solid var(--hot);
  border-radius: 99px;
  color: var(--hot);
  font-size: 17px;
}
.profile h3 {
  margin: 20px 0 7px;
  font-size: 29px;
}
.profile p {
  margin: 0;
  color: #0005;
  font: 20px Outfit;
  letter-spacing: 0.04em;
}
.profile small {
  min-height: 52px;
  margin: 18px auto 0;
  display: block;
  max-width: 290px;
  color: #555;
  font-size: 13px;
  line-height: 1.8;
}
.profile b {
  position: absolute;
  right: 6px;
  top: 28px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--orange);
  color: white;
  font-size: 10px;
  font-weight: 500;
}
.site-footer {
  height: 316px;
  padding: 80px max(150px, calc(50% - 570px));
  display: flex;
  gap: 64px;
  align-items: center;
  background: var(--cream);
  font-size: 16px;
}
.footer-logo {
  width: 164px;
  height: 156px;
  flex: 0 0 164px;
  position: relative;
  overflow: hidden;
}
.footer-logo img {
  position: absolute;
  width: 163.88%;
  height: 214.78%;
  max-width: none;
  left: -20.49%;
  top: -24.89%;
}
.footer-content {
  height: 156px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.footer-contact {
  width: 245px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.footer-contact img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.footer-contact a:last-child img {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  margin: 1px;
}
.footer-divider {
  width: 2px;
  height: 156px;
  object-fit: fill;
  flex: 0 0 2px;
}
.footer-links {
  width: 140px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.privacy {
  width: 240px;
  white-space: nowrap;
}
.site-footer a {
  position: relative;
  transition:
    color 0.25s,
    transform 0.25s;
}
.site-footer a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: var(--orange);
  transition: right 0.3s;
}
.site-footer a:hover {
  color: var(--orange);
  transform: translateY(-2px);
}
.site-footer a:hover::after {
  right: 0;
}
.footer-contact a img {
  transition: 0.3s;
}
.footer-contact a:hover img {
  transform: translateY(-2px) scale(1.08);
  filter: drop-shadow(0 5px 5px #ff681638);
}
@media (max-width: 900px) {
  .liver-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portrait {
    height: 480px;
  }
  .site-footer {
    height: auto;
    padding: 55px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 35px;
  }
  .footer-logo {
    width: 145px;
    height: 138px;
  }
  .footer-content {
    width: 100%;
    height: auto;
    display: grid;
    gap: 28px;
  }
  .footer-contact,
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .footer-contact a {
    white-space: normal;
  }
  .footer-contact img {
    width: 22px;
    height: 22px;
  }
  .footer-divider {
    display: none;
  }
  .footer-links {
    width: 100%;
    padding-top: 28px;
    border-top: 1px solid var(--orange);
  }
  .privacy {
    width: 100%;
    padding-top: 28px;
    border-top: 1px solid var(--orange);
  }
}
@media (max-width: 650px) {
  .sub-header {
    height: 70px;
    padding: 0 18px;
  }
  .logo {
    font-size: 18px;
  }
  .back {
    font-size: 13px;
  }
  .back span {
    width: 30px;
    height: 30px;
  }
  .livers-hero {
    height: 400px;
    padding-top: 82px;
  }
  .livers-hero h1 {
    font-size: 96px;
  }
  .livers-hero > p {
    font-size: 16px;
  }
  .heart {
    left: 3%;
    top: 65px;
    font-size: 46px;
  }
  .star {
    right: 4%;
    bottom: 60px;
    font-size: 44px;
  }
  .live {
    right: 6%;
    top: 45px;
    font-size: 14px;
  }
  .livers-area {
    padding: 0 14px 80px;
  }
  .livers-panel {
    margin-top: -45px;
    padding: 55px 14px 70px;
    border-width: 5px;
    border-radius: 45px;
    box-shadow: 10px 10px 0 #ff681629;
  }
  .panel-heading h2 {
    font-size: 23px;
  }
  .panel-heading > span {
    font-size: 13px;
  }
  .filters {
    margin: 38px 0 48px;
    gap: 8px;
  }
  .filters button {
    min-width: auto;
    padding: 9px 16px;
    font-size: 12px;
  }
  .liver-list {
    grid-template-columns: 1fr;
    gap: 55px;
  }
  .liver-card {
    width: min(100%, 380px);
    margin: auto;
  }
  .portrait {
    height: 510px;
  }
  .profile small {
    min-height: 0;
  }
  .profile b {
    right: 14px;
  }
}

.filters a {
  min-width: 115px;
  padding: 11px 24px;
  border: 1px solid var(--hot);
  border-radius: 99px;
  color: var(--hot);
  font-size: 14px;
  text-align: center;
  transition: 0.25s;
}

.filters a:hover,
.filters a.active {
  background: var(--hot);
  color: #fff;
  box-shadow: 0 8px 16px #ff45c033;
}

.pagination .page-numbers {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hot);
  border-radius: 50%;
  color: var(--hot);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--hot);
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .back,
  .back span,
  .filters button,
  .liver-card,
  .portrait,
  .site-footer a,
  .site-footer a::after,
  .footer-contact img {
    transition: none;
  }
  .liver-card:hover,
  .site-footer a:hover,
  .footer-contact a:hover img {
    transform: none;
  }
}
.pagination {
  margin-top: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.pagination button {
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--hot);
  border-radius: 50%;
  background: transparent;
  color: var(--hot);
  font: 600 15px Outfit;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s;
}
.pagination button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--cream);
}
.pagination button.active {
  background: var(--hot);
  color: white;
}
.pagination button:disabled {
  opacity: 0.3;
  cursor: default;
}
@media (max-width: 650px) {
  .pagination {
    margin-top: 55px;
    gap: 8px;
  }
  .pagination button {
    width: 42px;
    height: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pagination button {
    transition: none;
  }
  .pagination button:hover {
    transform: none;
  }
}

/* TOPページと共通の3Dデコレーション */
.livers-hero .hero-deco {
  position: absolute;
  display: block;
  padding: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url("../images/contact-decor.png");
  background-repeat: no-repeat;
  background-size: 720px 960px;
  font-size: 0;
  filter: drop-shadow(10px 12px 10px #6b26052b);
}
.livers-hero .heart {
  left: 8%;
  top: 92px;
  width: 126px;
  height: 142px;
  background-position: -391px -184px;
  transform: rotate(-9deg);
}
.livers-hero .star {
  right: 8%;
  bottom: 112px;
  width: 150px;
  height: 150px;
  background-position: -32px -340px;
  transform: rotate(13deg);
}
.livers-hero .live {
  right: 11%;
  top: 78px;
  width: 155px;
  height: 115px;
  background-position: -543px -199px;
  transform: rotate(7deg);
}
@media (max-width: 650px) {
  .livers-hero .hero-deco {
    background-size: 480px 640px;
  }
  .livers-hero .heart {
    left: 1%;
    top: 57px;
    width: 84px;
    height: 94px;
    background-position: -261px -123px;
  }
  .livers-hero .star {
    right: 1%;
    bottom: 92px;
    width: 100px;
    height: 100px;
    background-position: -21px -226px;
  }
  .livers-hero .live {
    right: 2%;
    top: 43px;
    width: 104px;
    height: 77px;
    background-position: -362px -133px;
  }
}
