:root {
  --paper: #f0f2ee;
  --surface: #f8f9f6;
  --ink: #17211e;
  --muted: #55625d;
  --line: #c9d1cb;
  --soft: #dce5df;
  --accent: #27594b;
  --accent-dark: #173b32;
  --accent-text: #f4f7f4;
  --focus: #f4c95d;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
h1, h2, h3, p { margin: 0; text-wrap: pretty; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent-dark);
  color: var(--accent-text);
  text-decoration: none;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgb(240 242 238 / 96%);
  backdrop-filter: blur(12px);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 48px, 1440px);
  height: 72px;
  margin: 0 auto;
}
.brand {
  width: max-content;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
}
.nav-links a:hover { color: var(--accent); }
.header-cta {
  justify-self: end;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  border: 1px solid var(--accent-dark);
  font-size: .74rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.header-cta:hover {
  background: var(--accent-dark);
  color: var(--accent-text);
}
.header-cta:active { transform: translateY(1px); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 47%) minmax(0, 53%);
  min-height: calc(100dvh - 72px);
  max-height: 900px;
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 64px clamp(28px, 6vw, 96px);
}
.eyebrow {
  margin-bottom: 26px;
  color: var(--accent);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
}
.hero h1 {
  max-width: 610px;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 5.2vw, 5.6rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.075em;
}
.hero-lead {
  max-width: 390px;
  margin-top: 28px;
  color: var(--muted);
  font-size: .98rem;
  line-height: 2;
}
.hero-actions {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 34px;
}
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--accent-dark);
  background: var(--accent-dark);
  color: var(--accent-text);
  font-size: .8rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, transform .18s ease;
}
.button:hover { background: var(--accent); }
.button:active { transform: translateY(1px); }
.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid #78827d;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.hero-image {
  min-height: 0;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-proof {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: clamp(70px, 9vw, 150px);
  align-items: center;
  padding: clamp(90px, 9vw, 150px) max(7vw, calc((100vw - 1440px) / 2));
  background: var(--surface);
}
.phone-stage {
  position: relative;
  width: min(310px, 78%);
  margin: 0 auto;
}
.phone-stage::before {
  position: absolute;
  inset: 8% -22% -8% 24%;
  content: "";
  background: var(--soft);
}
.phone {
  position: relative;
  overflow: hidden;
  border: 8px solid #21302b;
  border-radius: 31px;
  background: #fff;
  box-shadow: 0 26px 60px rgb(23 33 30 / 17%);
}
.phone img { width: 100%; height: auto; }
.section-copy h2,
.pet-copy h2,
.region h2,
.final-cta h2 {
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4vw, 4.4rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.06em;
}
.section-copy > p,
.pet-copy > p,
.region-copy > p {
  max-width: 560px;
  margin-top: 26px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 2;
}
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 38px;
  margin: 36px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.feature-list li {
  color: #33413c;
  font-size: .78rem;
  line-height: 1.7;
}
.feature-list strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: .9rem;
}
.guides {
  padding: clamp(90px, 9vw, 145px) max(7vw, calc((100vw - 1440px) / 2));
  border-top: 1px solid var(--line);
}
.guides-title {
  max-width: 690px;
  margin-bottom: clamp(50px, 6vw, 84px);
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.065em;
}
.guides-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
  gap: clamp(54px, 7vw, 110px);
}
.pet-feature {
  min-width: 0;
}
.pet-image {
  overflow: hidden;
  height: min(48vw, 600px);
  min-height: 360px;
}
.pet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pet-copy { padding-top: 34px; }
.pet-copy h2 { max-width: 620px; }
.pet-copy .text-link { margin-top: 24px; }
.guide-index {
  align-self: end;
  border-top: 1px solid #9ea8a2;
}
.guide-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.guide-number {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem;
}
.guide-item h3 {
  margin-bottom: 7px;
  font-size: .92rem;
}
.guide-item p {
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.75;
}
.guide-arrow { color: var(--accent); }
.region {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  gap: clamp(70px, 9vw, 150px);
  align-items: end;
  padding: clamp(95px, 9vw, 145px) max(7vw, calc((100vw - 1440px) / 2));
  background: var(--accent-dark);
  color: var(--accent-text);
}
.region h2 { max-width: 750px; color: #f4f7f4; }
.region-copy > p { color: #c5d2cc; }
.region-facts {
  display: grid;
  gap: 22px;
  padding-top: 30px;
  border-top: 1px solid #5a766c;
}
.region-facts strong {
  display: block;
  margin-bottom: 5px;
  color: #f4f7f4;
  font-size: .87rem;
}
.region-facts span {
  display: block;
  color: #b8c8c1;
  font-size: .74rem;
  line-height: 1.75;
}
.trust {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(60px, 8vw, 130px);
  padding: clamp(90px, 8vw, 130px) max(7vw, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.trust-heading {
  max-width: 560px;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 3.8vw, 4rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.055em;
}
.trust-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 45px;
}
.trust-item {
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.trust-item h3 {
  margin-bottom: 8px;
  font-size: .9rem;
}
.trust-item p {
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.8;
}
.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 50px;
  align-items: center;
  padding: clamp(80px, 8vw, 125px) max(7vw, calc((100vw - 1440px) / 2));
}
.final-cta h2 { max-width: 820px; }
.final-cta .button { min-height: 56px; padding-inline: 28px; }
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 44px;
  align-items: end;
  padding: 58px max(7vw, calc((100vw - 1440px) / 2)) 68px;
  background: #142c26;
  color: #c9d4cf;
}
.footer-brand {
  margin-bottom: 13px;
  color: #f4f7f4;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: .08em;
}
.site-footer p,
.site-footer address {
  margin: 0;
  font-size: .7rem;
  font-style: normal;
  line-height: 1.9;
}
.site-footer address a { text-underline-offset: .2em; }
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: .68rem;
  text-underline-offset: .2em;
}
@media (max-width: 960px) {
  .hero h1 { font-size: clamp(3rem, 6.2vw, 4.5rem); }
  .product-proof { gap: 70px; }
  .guides-grid { grid-template-columns: minmax(0, 1fr) minmax(230px, .65fr); }
}
@media (max-width: 767px) {
  .nav {
    grid-template-columns: 1fr auto;
    width: min(100% - 36px, 720px);
    height: 64px;
  }
  .nav-links { display: none; }
  .header-cta { padding-inline: 13px; font-size: .68rem; }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
  }
  .hero-copy { padding: 64px 24px 58px; }
  .hero h1 {
    max-width: 520px;
    font-size: clamp(2.8rem, 13vw, 4.6rem);
    line-height: 1.22;
  }
  .hero-lead { font-size: .92rem; }
  .hero-actions { gap: 18px; }
  .button { padding-inline: 18px; font-size: .75rem; }
  .hero-image { height: 68vh; min-height: 440px; max-height: 650px; }
  .product-proof {
    grid-template-columns: 1fr;
    gap: 76px;
    padding: 82px 24px 92px;
  }
  .phone-stage { width: min(280px, 75%); }
}
/* 1ブロックが長くなり過ぎないよう、同じ条件でセクション単位に分ける */
@media (max-width: 767px) {
  .section-copy h2,
  .pet-copy h2,
  .region h2,
  .final-cta h2 { font-size: clamp(2.25rem, 10vw, 3.6rem); }
  .feature-list { grid-template-columns: 1fr; gap: 20px; }
  .guides { padding: 82px 24px 92px; }
  .guides-title { font-size: clamp(2.55rem, 11vw, 4rem); }
  .guides-grid { grid-template-columns: 1fr; gap: 74px; }
  .pet-image { height: 390px; min-height: 0; }
  .region {
    grid-template-columns: 1fr;
    gap: 58px;
    padding: 82px 24px 92px;
  }
  .trust {
    grid-template-columns: 1fr;
    gap: 54px;
    padding: 82px 24px 92px;
  }
  .trust-list { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 767px) {
  .final-cta {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 82px 24px 90px;
  }
  .final-cta .button { justify-self: start; }
  .site-footer {
    grid-template-columns: 1fr;
    padding: 52px 24px 60px;
  }
  .footer-links { justify-content: flex-start; gap: 10px 20px; }
}
@media (max-width: 390px) {
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero h1 { font-size: clamp(2.55rem, 12.5vw, 3.1rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* 法務ページ（旧 legal.css を body class 配下へ移す） */
.legal-page {
  background: var(--surface);
}
.legal-page .page {
  width: min(44rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}
.legal-page header,
.legal-page footer {
  border-color: var(--line);
  border-style: solid;
  border-width: 0;
}
.legal-page header {
  padding-bottom: 1rem;
  border-bottom-width: 1px;
}
.legal-page footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top-width: 1px;
}
.legal-page .legal-brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: .08em;
}
.legal-page nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: .75rem 0 0;
  padding: 0;
  list-style: none;
}
.legal-page nav a,
.legal-page main a {
  color: var(--accent);
}
.legal-page h1 {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.3;
}
.legal-page h2 {
  margin: 2rem 0 .75rem;
  font-size: 1.05rem;
  line-height: 1.4;
}
.legal-page main p {
  margin: 0 0 1rem;
  font-size: .88rem;
}
.legal-page pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: .72rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.legal-page address {
  font-size: .78rem;
  font-style: normal;
}

/* ガイド記事 */
.guide-page .guide {
  width: min(46rem, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 7vw, 104px);
}
.guide-page h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.05em;
}
.guide-lead {
  max-width: 40rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 2;
}
.updated {
  margin-top: 16px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
}
.guide-body h2 {
  margin: 44px 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 600;
  line-height: 1.45;
}
.guide-body h3 {
  margin: 30px 0 10px;
  font-size: 1rem;
}
.guide-body p,
.guide-body li {
  font-size: .92rem;
  line-height: 1.95;
}
.guide-body p {
  margin: 0 0 18px;
}
.guide-body ul,
.guide-body ol {
  margin: 0 0 18px;
  padding-left: 1.4em;
}
.guide-body li {
  margin-bottom: 8px;
}
.guide-body table {
  display: block;
  overflow-x: auto;
  width: 100%;
  margin: 0 0 22px;
  border-collapse: collapse;
  font-size: .82rem;
}
.guide-body th,
.guide-body td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.guide-body th {
  background: var(--soft);
  white-space: nowrap;
}
.guide-body a {
  color: var(--accent);
}
.guide-body blockquote {
  margin: 0 0 20px;
  padding: 12px 18px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}
.guide-page section[aria-labelledby="sources-title"] {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.guide-page section[aria-labelledby="sources-title"] h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}
.sources {
  margin: 0;
  padding-left: 1.4em;
}
.sources li {
  margin-bottom: 10px;
  font-size: .8rem;
  line-height: 1.7;
}
.sources a {
  color: var(--accent);
  word-break: break-all;
}
.source-date {
  display: block;
  color: var(--muted);
  font-size: .72rem;
}
.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 24px;
  margin-top: clamp(32px, 4vw, 54px);
}
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
}
.guide-card:hover {
  border-color: var(--accent);
}
.guide-card h3 {
  font-size: .95rem;
  line-height: 1.6;
}
.guide-card p {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.75;
}
.guide-card .card-meta {
  margin-top: auto;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem;
}
.guide-section {
  padding: clamp(70px, 8vw, 120px) max(7vw, calc((100vw - 1440px) / 2));
  border-top: 1px solid var(--line);
}
.guide-section h2 {
  max-width: 690px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.055em;
}
.guide-section > p {
  max-width: 560px;
  margin-top: 22px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 2;
}
@media (max-width: 767px) {
  .guide-section {
    padding: 72px 24px 80px;
  }
  .guide-page .guide {
    width: calc(100% - 48px);
  }
}

/* サービス案件の導線 */
.offers {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.offers h2 {
  margin: 0 0 16px;
  font-size: 1rem;
}
.offer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.offer-name {
  flex: 1 1 12rem;
  min-width: 0;
  font-size: .9rem;
  font-weight: 700;
}
.ad-disclosure {
  padding: 2px 8px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: #33413c;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.offer-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--accent-dark);
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.offer-link:hover {
  background: var(--accent-dark);
  color: var(--accent-text);
}
.offers-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.8;
}

/* ガイドから診断への導線 */
.diagnosis-cta {
  margin-top: 44px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.diagnosis-cta h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.5;
}
.diagnosis-cta p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.9;
}
