/*
Theme Name: Niigata_pet_garden_2026
Theme URI: https://n-pet.net/
Author: @Shift
Description: A custom WordPress theme for Niigata PET Garden.
Version: 0.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: Niigata_pet_garden_2026
*/

:root {
  --body-font: "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --heading-font: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --pink-50: #fbf1ff;
  --pink-100: #f8dff0;
  --pink-300: #ff9fd4;
  --pink-500: #df108a;
  --pink-600: #b90f73;
  --green-500: #3f8f72;
  --ink: #342f33;
  --muted: #6f666d;
  --line: #efd8e8;
  --paper: #fffdfa;
  --white: #fff;
  --shadow: 0 18px 50px rgba(141, 52, 104, .16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(251, 241, 255, .9) 0, rgba(255, 253, 250, .96) 520px),
    var(--pink-50);
  font-family: var(--body-font);
  line-height: 1.8;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(255, 253, 250, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(360px, 36vw, 480px);
  height: auto;
}

.site-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--pink-600);
  background: var(--pink-50);
}

.header-call {
  padding: 9px 14px;
  color: var(--pink-600);
  border: 1px solid var(--pink-300);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  padding: clamp(72px, 10vw, 130px) clamp(18px, 6vw, 80px) 48px;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(50, 28, 42, .68), rgba(50, 28, 42, .32) 48%, rgba(50, 28, 42, .04)),
    url("assets/illustrations/header-pet-memory.jpg") right center / cover no-repeat;
}

.hero-content {
  position: relative;
  width: min(980px, 100%);
  max-width: calc(100vw - clamp(36px, 12vw, 160px));
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--pink-500);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd4eb;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

h1 {
  max-width: 15em;
  font-size: clamp(2.25rem, 5.4vw, 4.6rem);
  text-shadow: 3px 3px 4px rgba(222, 17, 126, 0.4);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.05rem);
}

h3 {
  font-size: 1.2rem;
}

.hero-lead {
  max-width: 980px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--pink-500);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .65);
  background: rgba(255, 255, 255, .14);
}

.button.wide {
  width: 100%;
}

.text-link,
.section-link a {
  color: var(--pink-600);
  font-weight: 800;
}

.section-link {
  margin-top: 28px;
  text-align: center;
}

.page-hero {
  position: relative;
  min-height: 360px;
  display: grid;
  align-items: end;
  padding: 80px clamp(18px, 6vw, 80px) 48px;
  overflow: hidden;
}

.page-hero::before {
  position: absolute;
  inset: -28% 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(50, 28, 42, .66), rgba(50, 28, 42, .28) 56%, rgba(50, 28, 42, .08)),
    url("assets/illustrations/header-pet-memory.jpg") right bottom / cover no-repeat;
  transform: translate3d(0, var(--page-hero-parallax, 0px), 0);
  will-change: transform;
}

.page-hero-content {
  position: relative;
  max-width: min(1180px, 100%);
  color: var(--white);
}

.page-hero .eyebrow {
  color: #ffd4eb;
}

.page-hero h1 {
  max-width: none;
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

.page-hero p {
  max-width: none;
  margin: 18px 0 0;
  font-size: 1.05rem;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

.notice-band {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  color: var(--pink-600);
  background: var(--pink-100);
  border-block: 1px solid var(--pink-300);
  text-align: center;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 94px) 0;
}

.latest-news {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding-block: clamp(38px, 6vw, 64px);
}

.news-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.news-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 84px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.news-card:hover {
  border-color: var(--pink-300);
}

.news-card time {
  color: var(--pink-600);
  font-weight: 800;
  white-space: nowrap;
}

.news-title {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.news-more {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
  white-space: nowrap;
}

.split,
.access-grid,
.price-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.split > *,
.access-grid > *,
.price-layout > * {
  min-width: 0;
}

.split.reverse {
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1fr);
}

.section p {
  margin: 18px 0 0;
}

.prose {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(52px, 7vw, 86px) 0;
}

.prose h2,
.prose h3 {
  margin-top: 38px;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin: 18px 0 0;
}

.quote-panel {
  margin: 30px 0;
  padding: 24px;
  color: var(--pink-600);
  background: var(--pink-50);
  border: 1px solid var(--pink-300);
  border-radius: var(--radius);
  font-size: 1.18rem;
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.info-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.info-card h3 {
  margin: 0 0 10px;
  color: var(--pink-600);
}

.note-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 1.2em;
}

.photo-card,
.photo-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo-card img,
.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 0;
}

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

.price-layout {
  align-items: stretch;
}

.price-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.price-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.price-table caption {
  padding: 18px;
  color: var(--pink-600);
  font-weight: 800;
  text-align: left;
}

.price-table th,
.price-table td {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.price-table thead th {
  color: var(--pink-600);
  background: var(--pink-50);
}

.price-table tbody td:last-child {
  color: var(--pink-600);
  font-weight: 800;
}

.price-table.compact {
  min-width: 520px;
}

.soft-panel {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.soft-panel ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 1.25em;
}

.flow-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0 14px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flow-list span {
  grid-row: span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--green-500);
  border-radius: 50%;
  font-weight: 800;
}

.flow-list strong {
  line-height: 1.35;
}

.flow-list p {
  margin: 4px 0 0;
  color: var(--muted);
}

.faq-section {
  width: min(980px, calc(100% - 36px));
}

.with-illustration {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 24px;
  align-items: end;
  max-width: none;
}

.with-illustration img {
  width: 180px;
  border-radius: var(--radius);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.faq-section .faq-more {
  margin-top: 32px;
}

details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

summary {
  cursor: pointer;
  padding: 18px 22px;
  color: var(--pink-600);
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 22px 20px;
}

.qa-card {
  margin-top: 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.qa-card h2 {
  padding: 20px 22px;
  color: var(--pink-600);
  background: var(--pink-50);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.qa-card .qa-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.qa-block {
  padding: 22px;
  border-top: 1px solid var(--line);
}

.qa-block + .qa-block {
  border-left: 1px solid var(--line);
}

.qa-block h3 {
  margin: 0 0 10px;
  color: var(--green-500);
  font-size: 1rem;
}

.qa-block p {
  margin: 0;
}

.link-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  color: var(--pink-600);
  font-weight: 800;
}

.access-grid {
  grid-template-columns: .85fr 1fr;
}

.access-info {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

dl {
  display: grid;
  gap: 16px;
  margin: 0 0 22px;
}

dl div {
  display: grid;
  gap: 4px;
}

dt {
  color: var(--pink-600);
  font-weight: 800;
}

dd {
  margin: 0;
}

.site-footer {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 38px 18px;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 20;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--white);
  background: var(--pink-500);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(141, 52, 104, .22);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.back-to-top:hover {
  background: var(--pink-600);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .page-hero::before {
    inset: 0;
    transform: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: center;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .header-call {
    display: inline-flex;
    justify-content: center;
    text-align: center;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 680px;
  }

  .split,
  .split.reverse,
  .access-grid,
  .price-layout,
  .latest-news {
    grid-template-columns: 1fr;
  }

  .latest-news {
    gap: 14px;
  }

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

  .price-table-wrap {
    overflow-x: visible;
  }

  .price-table,
  .price-table.compact,
  .price-table caption,
  .price-table tbody,
  .price-table tr,
  .price-table th,
  .price-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .price-table {
    border-collapse: separate;
  }

  .price-table caption {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .price-table thead {
    display: none;
  }

  .price-table tbody {
    display: block;
  }

  .price-table tr {
    overflow: hidden;
    border-top: 12px solid var(--pink-50);
  }

  .price-table tbody tr:first-child {
    border-top: 0;
  }

  .price-table th,
  .price-table td {
    display: grid;
    grid-template-columns: minmax(6.8em, 34%) 1fr;
    gap: 14px;
    align-items: baseline;
    padding: 13px 16px;
    border-top: 1px solid var(--line);
    text-align: left;
  }

  .price-table tr > :first-child {
    border-top: 0;
    background: rgba(251, 241, 255, .72);
  }

  .price-table th::before,
  .price-table td::before {
    content: attr(data-label);
    color: var(--pink-600);
    font-size: .82rem;
    font-weight: 800;
  }

  .price-table tbody td:last-child {
    font-size: 1.08rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
    padding-inline: 14px;
  }

  .brand-logo {
    width: min(250px, 58vw);
  }

  .header-call {
    padding: 8px 10px;
    font-size: .84rem;
  }

  .back-to-top {
    width: 50px;
    height: 50px;
    font-size: .76rem;
  }

  .hero {
    min-height: 610px;
    padding-inline: 18px;
  }

  .hero-photo {
    background:
      linear-gradient(180deg, rgba(50, 28, 42, .64), rgba(50, 28, 42, .52)),
      url("assets/illustrations/header-pet-memory.jpg") right center / cover no-repeat;
  }

  .notice-band {
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }

  .news-card {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .with-illustration {
    grid-template-columns: 1fr;
  }

  .with-illustration img {
    width: min(190px, 70vw);
  }

  .page-hero {
    min-height: 310px;
    padding-inline: 18px;
  }

  .content-grid,
  .qa-card .qa-body {
    grid-template-columns: 1fr;
  }

  .price-table-wrap {
    overflow-x: visible;
  }

  .price-table,
  .price-table.compact,
  .price-table caption,
  .price-table tbody,
  .price-table tr,
  .price-table th,
  .price-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .price-table {
    border-collapse: separate;
  }

  .price-table caption {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .price-table thead {
    display: none;
  }

  .price-table tbody {
    display: block;
  }

  .price-table tr {
    overflow: hidden;
    border-top: 12px solid var(--pink-50);
  }

  .price-table tbody tr:first-child {
    border-top: 0;
  }

  .price-table th,
  .price-table td {
    display: grid;
    grid-template-columns: minmax(6.8em, 34%) 1fr;
    gap: 14px;
    align-items: baseline;
    padding: 13px 16px;
    border-top: 1px solid var(--line);
    text-align: left;
  }

  .price-table tr > :first-child {
    border-top: 0;
    background: rgba(251, 241, 255, .72);
  }

  .price-table th::before,
  .price-table td::before {
    content: attr(data-label);
    color: var(--pink-600);
    font-size: .82rem;
    font-weight: 800;
  }

  .price-table tbody td:last-child {
    font-size: 1.08rem;
  }

  .qa-block + .qa-block {
    border-left: 0;
  }

  .soft-panel,
  .access-info {
    padding: 18px;
  }
}
 .mt-4{margin-top:2em}
 .mr-2{margin-right:7px}