/* ============================================================
   Life with Paws — style.css
   テイスト: wellness / natural green
   ============================================================ */

:root {
  /* --- カラー --- */
  --bg:          #F4F8F2;       /* 淡いグリーン背景 */
  --bg-alt:      #EAF2E6;       /* セクション交互背景 */
  --bg-card:     #FFFFFF;
  --green-main:  #5A8A5A;       /* メイングリーン */
  --green-dark:  #3A6240;       /* 濃いグリーン */
  --green-light: #C8DFC2;       /* 淡いグリーン装飾 */
  --green-pale:  #E4F0DF;       /* さらに淡い */
  --amber:       #C8863A;       /* アクセント（デメリット・警告） */
  --amber-light: #FDF3E7;
  --text:        #2B3A2B;       /* ほぼ黒のダークグリーン */
  --text-mid:    #4A5E4A;       /* 中程度の本文 */
  --text-light:  #7A9A7A;       /* 薄いテキスト */
  --border:      #D4E6CF;
  --white:       #FFFFFF;

  /* --- タイポグラフィ --- */
  --font-serif:  'Shippori Mincho', 'Georgia', serif;
  --font-sans:   'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-en:     'Playfair Display', serif;

  /* --- スペーシング --- */
  --sp-xs:  8px;
  --sp-sm:  16px;
  --sp-md:  24px;
  --sp-lg:  48px;
  --sp-xl:  80px;
  --sp-2xl: 120px;

  /* --- 角丸・影 --- */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(58,98,64,.08);
  --shadow-md: 0 4px 24px rgba(58,98,64,.12);
  --shadow-lg: 0 8px 40px rgba(58,98,64,.16);

  /* --- コンテナ --- */
  --max-w: 1100px;
}

/* ============================================================
   リセット・ベース
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-dark);
  text-decoration: none;
  transition: color .2s, opacity .2s;
}

a:hover { color: var(--green-main); opacity: .85; }

ul { list-style: none; }

/* ============================================================
   コンテナ
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

/* ============================================================
   ヘッダー・ナビ
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(244,248,242,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-md);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: .02em;
  flex-shrink: 0;
}

.logo-paw { font-size: 1.4rem; line-height: 1; }

.global-nav ul {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.global-nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.global-nav a:hover {
  color: var(--green-dark);
  border-color: var(--green-main);
  opacity: 1;
}

/* ハンバーガー */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   ボタン
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--green-main);
  color: var(--white) !important;
  font-size: .9375rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 999px;
  letter-spacing: .06em;
  box-shadow: 0 4px 16px rgba(90,138,90,.3);
  transition: background .2s, transform .15s, box-shadow .2s;
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(58,98,64,.35);
  opacity: 1;
}

.btn-large { padding: 18px 52px; font-size: 1.0625rem; }

/* ============================================================
   ヒーロー
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20,40,20,.68) 0%,
    rgba(40,70,40,.45) 55%,
    rgba(90,138,90,.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-xl) var(--sp-md);
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 1rem;
  color: var(--green-light);
  letter-spacing: .12em;
  margin-bottom: var(--sp-sm);
}

.hero-heading {
  margin-bottom: var(--sp-md);
}

.hero-heading-main {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
  letter-spacing: .02em;
}

.hero-heading-sub {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: var(--green-light);
  font-weight: 400;
  margin-top: 8px;
  letter-spacing: .06em;
}

.hero-lead {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  line-height: 1.9;
  margin-bottom: var(--sp-lg);
  max-width: 480px;
}

/* ヒーロー: 愛犬バッジ */
.hero-photo-badge {
  position: absolute;
  bottom: 48px;
  right: 48px;
  z-index: 2;
  text-align: center;
}

.hero-photo-badge img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-lg);
}

.hero-photo-badge span {
  display: block;
  font-size: .8125rem;
  color: var(--white);
  margin-top: 6px;
  font-family: var(--font-serif);
  letter-spacing: .08em;
}

/* ============================================================
   イントロバンド
   ============================================================ */
.intro-band {
  background: var(--green-dark);
  padding: var(--sp-lg) 0;
}

.intro-text {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--green-light);
  text-align: center;
  line-height: 2;
  letter-spacing: .04em;
}

/* ============================================================
   コンテンツセクション 共通
   ============================================================ */
.content-section {
  padding: var(--sp-2xl) 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-num {
  display: inline-block;
  font-family: var(--font-en);
  font-size: .875rem;
  font-weight: 700;
  color: var(--green-main);
  letter-spacing: .18em;
  background: var(--green-pale);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.3;
  margin-bottom: 12px;
  text-wrap: balance;
}

.section-lead {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 540px;
  margin: 0 auto;
}

/* ============================================================
   交互ブロック（セクション1）
   ============================================================ */
.alternating-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: start;
  margin-bottom: var(--sp-xl);
}

.alternating-block.reverse {
  direction: rtl;
}

.alternating-block.reverse > * {
  direction: ltr;
}

.alternating-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.block-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--green-dark);
  margin-bottom: var(--sp-md);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: .08em;
}

.badge-green {
  background: var(--green-main);
  color: var(--white);
}

.badge-amber {
  background: var(--amber);
  color: var(--white);
}

/* メリットリスト */
.merit-list, .demerit-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.merit-list li, .demerit-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.icon-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-main);
  margin-top: 2px;
}

.icon-wrap svg {
  width: 18px;
  height: 18px;
}

.demerit-icon {
  background: var(--amber-light);
  color: var(--amber);
}

.merit-list li strong,
.demerit-list li strong {
  display: block;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.merit-list li p,
.demerit-list li p {
  font-size: .875rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ============================================================
   カードグリッド（セクション2）
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-xl);
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-md);
}

.card-responsibility .card-icon {
  background: var(--green-pale);
  color: var(--green-main);
}

.card-health .card-icon {
  background: #E8F4FD;
  color: #4A90D9;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--green-dark);
  margin-bottom: var(--sp-sm);
}

.card p {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: var(--sp-sm);
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-list li {
  font-size: .875rem;
  color: var(--text-mid);
  padding-left: 20px;
  position: relative;
}

.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-light);
}

/* 引用ブロック */
.quote-block {
  text-align: center;
  padding: var(--sp-xl) var(--sp-md);
}

.quote-block blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: var(--green-dark);
  line-height: 2;
  position: relative;
  display: inline-block;
  padding: 0 40px;
}

.quote-block blockquote::before,
.quote-block blockquote::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 3px;
  background: var(--green-main);
  border-radius: 2px;
}

.quote-block blockquote::before { top: 12px; left: 0; }
.quote-block blockquote::after  { bottom: 12px; right: 0; }

/* ============================================================
   繁殖犬セクション（セクション3）
   ============================================================ */
.breeding-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-xl);
  align-items: start;
}

.breeding-text p {
  font-size: .9375rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: var(--sp-md);
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  margin-bottom: var(--sp-md);
}

.info-card h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.info-card-green {
  background: var(--green-pale);
  border-color: var(--green-light);
}

.info-card-green h4 {
  border-color: var(--green-light);
  color: var(--green-dark);
}

.info-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-card li {
  font-size: .875rem;
  color: var(--text-mid);
  padding-left: 20px;
  position: relative;
  line-height: 1.65;
}

.info-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green-main);
  font-size: .8rem;
}

.breeding-note {
  font-size: .8125rem !important;
  color: var(--text-light) !important;
  font-style: italic;
  border-left: 3px solid var(--green-light);
  padding-left: 14px;
  margin-top: var(--sp-md);
}

.breeding-img img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.img-caption {
  font-size: .8125rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
  line-height: 1.7;
}

/* ============================================================
   しつけセクション（セクション4）
   ============================================================ */
.training-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: var(--sp-xl);
  align-items: start;
  margin-bottom: var(--sp-lg);
}

.training-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.training-intro {
  font-size: .9375rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: var(--sp-md);
}

.training-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.training-step {
  display: flex;
  gap: var(--sp-sm);
  align-items: flex-start;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--sp-sm) var(--sp-md);
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}

.training-step:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--green-main);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 2px;
}

.step-body h4 {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.step-body p {
  font-size: .875rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ヒントブロック */
.training-tip {
  display: flex;
  gap: var(--sp-md);
  align-items: flex-start;
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: var(--radius-md);
  padding: var(--sp-md) var(--sp-lg);
}

.tip-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.tip-body strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.tip-body p {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ============================================================
   CTAバンド
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--green-dark) 0%, #2A4E2A 100%);
  padding: var(--sp-2xl) 0;
  text-align: center;
}

.cta-eyebrow {
  font-family: var(--font-en);
  font-style: italic;
  font-size: .9375rem;
  color: var(--green-light);
  letter-spacing: .12em;
  margin-bottom: 16px;
}

.cta-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1rem;
  color: var(--green-light);
  margin-bottom: var(--sp-lg);
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  background: #1E321E;
  padding: var(--sp-lg) 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--green-light);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  justify-content: center;
}

.footer-nav a {
  font-size: .8125rem;
  color: #7A9A7A;
  transition: color .2s;
}

.footer-nav a:hover { color: var(--green-light); opacity: 1; }

.footer-copy {
  font-size: .75rem;
  color: #4A6A4A;
  letter-spacing: .04em;
}

/* ============================================================
   br制御
   ============================================================ */
.br-pc { display: none; }

/* ============================================================
   レスポンシブ — タブレット (768px以上)
   ============================================================ */
@media (min-width: 768px) {
  .br-pc { display: inline; }
}

/* ============================================================
   レスポンシブ — モバイル (767px以下)
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --sp-xl: 48px;
    --sp-2xl: 72px;
  }

  /* ナビ */
  .nav-toggle { display: flex; }

  .global-nav {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(244,248,242,.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99;
  }

  .global-nav.open { display: flex; }

  .global-nav ul {
    flex-direction: column;
    gap: var(--sp-lg);
    text-align: center;
  }

  .global-nav a {
    font-size: 1.25rem;
  }

  /* ヒーロー */
  .hero-photo-badge {
    bottom: 24px;
    right: 16px;
  }

  .hero-photo-badge img {
    width: 100px;
    height: 100px;
  }

  /* 交互ブロック */
  .alternating-block {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }

  .alternating-block.reverse {
    direction: ltr;
  }

  .alternating-block.reverse .alternating-img {
    order: -1;
  }

  /* カードグリッド */
  .cards-grid {
    grid-template-columns: 1fr;
  }

  /* 繁殖犬 */
  .breeding-content {
    grid-template-columns: 1fr;
  }

  .breeding-img {
    order: -1;
  }

  .breeding-img img {
    aspect-ratio: 16/9;
  }

  /* しつけ */
  .training-layout {
    grid-template-columns: 1fr;
  }

  /* 引用 */
  .quote-block blockquote {
    padding: 0 20px;
    font-size: 1rem;
  }

  .training-tip {
    flex-direction: column;
    padding: var(--sp-md);
  }
}

/* ============================================================
   AOS / アニメーション
   ============================================================ */
[data-aos] { transition-duration: .7s !important; }

/* アクセシビリティ: 動き軽減 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Life with these Paws — メンバー紹介セクション
   ============================================================ */
.section-eyebrow {
  display: block;
  font-family: var(--font-en);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
  opacity: .8;
}
.pets-section .section-title em {
  font-style: italic;
  color: var(--green);
}
.pets-section { background: var(--bg); }

.pets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: var(--sp-xl);
}

/* カード */
.pet-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(58,98,64,.06), 0 8px 32px rgba(58,98,64,.07);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}

.pet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(58,98,64,.1), 0 16px 48px rgba(58,98,64,.1);
}

/* 写真エリア */
.pet-card-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--green-pale);
  position: relative;
  overflow: hidden;
}

.pet-photo-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.pet-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* プレースホルダー */
.pet-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--green-main);
  background: linear-gradient(145deg, var(--green-pale) 0%, #ddf0d8 100%);
}

.pet-photo-placeholder svg {
  width: 72px;
  height: 72px;
}

.pet-photo-placeholder span {
  font-size: .8rem;
  color: var(--text-light);
  letter-spacing: .06em;
}

/* 画像があるときプレースホルダーを隠す */
.pet-photo-inner:has(.pet-img[src]:not([src=""])) .pet-photo-placeholder {
  display: none;
}

/* カード本文 */
.pet-card-body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pet-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.pet-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}

.pet-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 9px;
  border-radius: 99px;
  text-transform: uppercase;
}

.pet-badge-dog {
  background: var(--green-pale);
  color: var(--green-dark);
  border: 1px solid var(--green-light);
}

.pet-badge-cat {
  background: #f0ecfa;
  color: #7060a8;
  border: 1px solid #d8d0f0;
}

.pet-breed {
  font-size: .82rem;
  color: var(--text-light);
  letter-spacing: .04em;
  margin: 0;
}

.pet-age {
  font-size: .95rem;
  color: var(--green-main);
  font-weight: 700;
  margin: 4px 0 8px;
}

.pet-desc {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin: 0;
}

/* 管理ページリンク */
.pets-admin-link {
  margin-top: 32px;
  text-align: right;
}

.btn-ghost-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 6px 16px;
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}

.btn-ghost-small:hover {
  color: var(--green-main);
  border-color: var(--green-main);
  background: var(--green-pale);
}

/* レスポンシブ */
@media (max-width: 900px) {
  .pets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .pets-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================================
   ペット写真管理ページ（pet-admin.html）
   ============================================================ */
.admin-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px var(--sp-md) 80px;
}

.admin-header {
  margin-bottom: 48px;
}

.admin-header h1 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text);
  margin: 0 0 8px;
}

.admin-header p {
  font-size: .9rem;
  color: var(--text-light);
  margin: 0;
}

.admin-pets-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.admin-pet-item {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(58,98,64,.06);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: start;
}

.admin-pet-preview {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--green-pale);
  position: relative;
  border: 2px solid var(--border);
}

.admin-pet-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-pet-preview .no-photo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-light);
  font-size: .78rem;
}

.admin-pet-info h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text);
  margin: 0 0 4px;
}

.admin-pet-info .breed-label {
  font-size: .82rem;
  color: var(--text-light);
  margin: 0 0 20px;
}

/* ドロップゾーン */
.drop-zone {
  border: 2px dashed var(--green-light);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  position: relative;
  background: var(--green-pale);
}

.drop-zone:hover,
.drop-zone.dragover {
  background: #d8ecd4;
  border-color: var(--green-main);
}

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.drop-zone-label {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-mid);
}

.drop-zone-label svg {
  width: 32px;
  height: 32px;
  color: var(--green-main);
}

.drop-zone-label span {
  font-size: .85rem;
  line-height: 1.6;
}

.drop-zone-label small {
  font-size: .75rem;
  color: var(--text-light);
}

/* 削除ボタン */
.btn-delete-photo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: .8rem;
  color: #c0392b;
  background: #fff0ee;
  border: 1px solid #f5c6c2;
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background .2s;
}

.btn-delete-photo:hover { background: #ffe0dc; }
.btn-delete-photo.hidden { display: none; }

.admin-save-note {
  margin-top: 8px;
  font-size: .78rem;
  color: var(--text-light);
}

.admin-back {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color .2s;
}

.admin-back:hover { color: var(--green-main); }

@media (max-width: 640px) {
  .admin-pet-item {
    grid-template-columns: 1fr;
  }
  .admin-pet-preview {
    width: 100%;
    height: 220px;
  }
}
