/* NekoQA（ねこQ&A） base design
   AdSense審査向け：広告感を抑えた読みやすい猫情報メディア用CSS
*/
:root {
  --bg: #fffaf1;
  --surface: #ffffff;
  --surface-soft: #fff4df;
  --text: #2f2923;
  --muted: #6f6258;
  --line: #eadfce;
  --accent: #e9854f;
  --accent-dark: #c96b37;
  --green: #6fa780;
  --green-soft: #eef8ef;
  --shadow: 0 14px 34px rgba(96, 65, 37, 0.10);
  --radius: 22px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 228, 184, .75), transparent 34rem),
    linear-gradient(180deg, #fffaf1 0%, #fffdf7 46%, #fffaf1 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .01em;
}

a {
  color: #c7652e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 241, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(234, 223, 206, .9);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.08rem;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffb36b, #f37f4b);
  color: #fff;
  box-shadow: 0 8px 18px rgba(233, 133, 79, .28);
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.site-nav a:hover {
  background: var(--surface-soft);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 11px;
  font-size: 1.25rem;
  cursor: pointer;
}

.hero {
  padding: 72px 0 58px;
}

.hero-content {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 92% 20%, rgba(111, 167, 128, .24), transparent 18rem),
    radial-gradient(circle at 12% 8%, rgba(255, 178, 104, .26), transparent 18rem),
    linear-gradient(135deg, #ffffff, #fff4df);
  border: 1px solid rgba(234, 223, 206, .85);
  box-shadow: var(--shadow);
}

.hero-content::after {
  content: "🐾";
  position: absolute;
  right: clamp(18px, 5vw, 56px);
  bottom: clamp(10px, 4vw, 34px);
  font-size: clamp(4rem, 13vw, 8.5rem);
  opacity: .13;
  transform: rotate(-12deg);
  pointer-events: none;
}

.eyebrow,
.category-label,
.pr-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.5;
}

.eyebrow {
  background: var(--green-soft);
  color: #3f7b52;
  margin-bottom: 14px;
}

.category-label {
  background: #fff0db;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.pr-label {
  background: #fff7e9;
  color: #7a6551;
  border: 1px solid #f1dfc3;
  margin-top: 16px;
}

h1, h2, h3, h4 {
  line-height: 1.35;
  letter-spacing: .015em;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 900;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 3.4vw, 2.1rem);
  font-weight: 900;
}

h3 {
  margin: 30px 0 12px;
  font-size: 1.22rem;
  font-weight: 850;
}

p {
  margin: 0 0 1.05em;
}

.lead {
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  color: var(--muted);
  max-width: 820px;
}

.section {
  padding: 34px 0;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.card,
.notice,
.profile-box,
.side-box,
.toc,
.checklist {
  background: var(--surface);
  border: 1px solid rgba(234, 223, 206, .88);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 26px rgba(96, 65, 37, .07);
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(233, 133, 79, .38);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-weight: 800;
  color: var(--accent-dark);
}

.card-link::after {
  content: " →";
}

.notice {
  background: linear-gradient(135deg, #ffffff, #fff8eb);
}

.notice.soft {
  background: linear-gradient(135deg, #f5fff5, #ffffff);
  border-color: #d4ebd6;
}

.small {
  font-size: .92rem;
  color: var(--muted);
}

.simple-list,
.checklist ul,
.toc ul {
  margin: .25rem 0 0;
  padding-left: 1.25rem;
}

.simple-list li,
.checklist li,
.toc li {
  margin: .25rem 0;
}

.footer {
  margin-top: 48px;
  padding: 34px 0;
  background: #3d3128;
  color: #fff6e8;
}

.footer a {
  color: #fff0c9;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 10px;
}

.breadcrumb {
  width: min(var(--max), calc(100% - 32px));
  margin: 24px auto 0;
  color: var(--muted);
  font-size: .9rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  width: min(var(--max), calc(100% - 32px));
  margin: 34px auto;
  align-items: start;
}

.article-body {
  background: var(--surface);
  border: 1px solid rgba(234, 223, 206, .88);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.article-body h1 {
  font-size: clamp(1.85rem, 4.8vw, 3rem);
}

.article-meta {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 18px;
}

.article-body h2 {
  margin-top: 42px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.article-body h2:first-child {
  margin-top: 0;
  border-top: 0;
}

.side-box {
  position: sticky;
  top: 92px;
}

.toc {
  background: #fff8ec;
  margin: 22px 0;
}

.checklist {
  background: var(--green-soft);
  border-color: #d6eadb;
}

.faq-item {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  margin: 14px 0;
}

.faq-item h3 {
  margin-top: 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th, td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

th {
  background: #fff3df;
  color: #4b3a2b;
  font-weight: 850;
}

tr:last-child td {
  border-bottom: 0;
}

.profile-box {
  background: linear-gradient(135deg, #fff, #fff7e8);
}

.profile-box h3 {
  margin-top: 0;
}

.bottom-pr-banner {
  display: none;
}

/* アドセンス審査後に有効化する場合はJS側で .is-active を付けます */
.bottom-pr-banner.is-active {
  display: block;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 100;
  padding: 12px 44px 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.bottom-pr-banner button {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: #f4e7d5;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .grid.two,
  .grid.three,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .side-box {
    position: static;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15.5px;
  }

  .container,
  .header-inner,
  .breadcrumb,
  .article-layout {
    width: min(100% - 22px, var(--max));
  }

  .hero {
    padding: 28px 0 22px;
  }

  .hero-content,
  .article-body,
  .card,
  .notice,
  .profile-box,
  .side-box {
    border-radius: 18px;
  }

  .header-inner {
    min-height: 64px;
  }

  .site-nav {
    top: 64px;
  }

  .brand {
    font-size: .98rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }
}

@media print {
  .site-header,
  .footer,
  .nav-toggle,
  .bottom-pr-banner {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .article-body,
  .card,
  .notice {
    box-shadow: none;
  }
}


.article-image {
  margin: 24px 0 28px;
}

.article-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid rgba(234, 223, 206, .88);
  box-shadow: 0 12px 28px rgba(96, 65, 37, .10);
}
