/* うちのこ DOG LAB — 共通スタイル */
:root {
  --cream: #fbf8f1;
  --paper: #ffffff;
  --brown: #5a3220;
  --brown-soft: #7a5440;
  --green: #6b7f5a;
  --green-soft: #e9eee3;
  --beige: #e8cfa8;
  --beige-soft: #f5ead8;
  --line: #e7ddcc;
  --text: #3f2a1e;
  --muted: #7d6a5c;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(90, 50, 32, 0.08);
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--brown); }
h1, h2, h3 { color: var(--brown); line-height: 1.5; font-weight: 700; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brown); }
.brand img { width: 44px; height: 41px; }
.brand-name { font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.brand-name small { display: block; font-family: "Cormorant Garamond", serif; color: var(--green); font-size: 0.8rem; letter-spacing: 0.2em; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  width: 44px; height: 44px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--brown); margin: 5px auto; transition: 0.3s; border-radius: 2px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.global-nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  text-decoration: none; color: var(--brown); font-size: 0.92rem;
}
.global-nav a:hover, .global-nav a[aria-current="page"] { background: var(--beige-soft); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .global-nav {
    position: fixed; inset: 64px 0 auto 0; background: var(--cream);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  }
  .nav-open .global-nav { max-height: 80vh; }
  .global-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .global-nav a { padding: 12px 8px; border-radius: 10px; border-bottom: 1px dashed var(--line); }
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 48px 0 56px; }
.hero-logo { width: min(520px, 100%); margin: 0 auto; }
.hero-lead { font-size: clamp(1.4rem, 4.5vw, 2rem); color: var(--brown); font-weight: 700; margin: 24px 0 4px; }
.hero-sub { color: var(--muted); margin: 0 0 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  background: var(--brown); color: #fff; text-decoration: none; font-weight: 700;
  transition: transform 0.2s, background 0.2s;
}
.btn:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--brown); border: 2px solid var(--brown); }
.btn-outline:hover { background: var(--brown); color: #fff; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link::after { content: " →"; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--paper); }
.section-label {
  display: inline-block; font-family: "Cormorant Garamond", serif;
  color: var(--green); letter-spacing: 0.25em; font-size: 0.9rem; font-weight: 700;
}
.section-title { font-size: clamp(1.4rem, 4vw, 1.9rem); margin: 4px 0 12px; }
.section-desc { color: var(--muted); margin: 0 0 24px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.feature.reverse .feature-media { order: 2; }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 20px; }
  .feature.reverse .feature-media { order: 0; }
}

/* 写真の代わりに表示するプレースホルダー */
.ph {
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--beige-soft), var(--green-soft));
  display: grid; place-items: center; text-align: center;
  color: var(--brown-soft); font-size: 0.85rem; padding: 16px;
  border: 1px dashed var(--beige);
}
.ph .ph-icon { font-size: 2.6rem; display: block; line-height: 1.2; }
.ph.square { aspect-ratio: 1; }
.ph img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ph.photo { padding: 0; border: 0; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.ph.photo img { position: absolute; inset: 0; object-position: center 30%; }
.ph.photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; border: 1px solid var(--line);
}
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .tag {
  display: inline-block; font-size: 0.75rem; padding: 2px 10px; border-radius: 999px;
  background: var(--green-soft); color: var(--green); margin-bottom: 10px; font-weight: 700;
}
a.card { text-decoration: none; color: inherit; transition: transform 0.2s; }
a.card:hover { transform: translateY(-3px); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* みなさまの愛犬写真館 */
.pet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 8px 0 32px; text-align: left; }
@media (max-width: 760px) { .pet-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 420px) { .pet-grid { grid-template-columns: 1fr; } }
.pet-card {
  margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.pet-card .ph { border-radius: 0; border: 0; }
.pet-comment { padding: 14px 16px 18px; font-size: 0.9rem; color: var(--muted); line-height: 1.7; }
.pet-comment p { margin: 0; }
.pet-comment .pet-name { color: var(--brown); font-weight: 700; margin-bottom: 4px; }
.pet-comment .pet-name span { font-weight: 400; font-size: 0.8rem; color: var(--muted); margin-left: 4px; }

/* ---------- Page header & article ---------- */
.page-hero { padding: 48px 0 32px; text-align: center; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin: 4px 0 8px; }
.page-hero p { color: var(--muted); margin: 0; }
.breadcrumb { font-size: 0.8rem; color: var(--muted); padding: 12px 0; }
.breadcrumb a { color: var(--muted); }

.article { padding: 40px 0 64px; }
.article h2 { font-size: 1.35rem; margin: 48px 0 12px; padding-left: 14px; border-left: 5px solid var(--green); }
.article h3 { font-size: 1.1rem; margin: 28px 0 8px; }
.article p { margin: 0 0 1.2em; }
.article ul, .article ol { padding-left: 1.4em; }
.note {
  background: var(--beige-soft); border-radius: 12px; padding: 16px 20px; margin: 24px 0;
  font-size: 0.95rem;
}
.note.green { background: var(--green-soft); }
.draft { color: #a0522d; background: #fff4e5; border-radius: 6px; padding: 0 4px; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 24px; }
.toc strong { color: var(--brown); }
.toc ol { margin: 8px 0 0; }

table.spec { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
table.spec th, table.spec td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
table.spec th { width: 32%; color: var(--brown); background: var(--beige-soft); }

/* ---------- SNS ---------- */
.sns-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.sns-list a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--brown); font-weight: 700;
}
.sns-list a:hover { background: var(--beige-soft); }
.sns-list svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: #f4e9da; padding: 48px 0 24px; font-size: 0.9rem; }
.site-footer a { color: #f4e9da; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { margin: 0 0 8px; color: var(--beige); font-size: 0.95rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 4px 0; }
.footer-brand { font-weight: 700; font-size: 1.1rem; }
.copyright { text-align: center; margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.8rem; opacity: 0.8; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Form ---------- */
.form label { display: block; font-weight: 700; color: var(--brown); margin: 16px 0 6px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  font: inherit; background: var(--paper);
}
.form textarea { min-height: 160px; }

/* ---------- Animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s, transform 0.7s; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.to-top {
  position: fixed; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: #fff; border: 0; cursor: pointer; font-size: 1.2rem;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
