/* ===================================================================
   Pet-Talk — Design System
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Inter:wght@400;500;600;700&display=swap');

/* --- Tokens --- */
:root {
  --color-bg:        #FAFAF8;
  --color-surface:   #FFFFFF;
  --color-border:    #E8E6E1;
  --color-text:      #1A1A1A;
  --color-text-sub:  #6B6B6B;
  --color-accent:    #D4663A;
  --color-accent-bg: #FFF4EF;
  --font-ja: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1080px;
  --radius-s: 8px;
  --radius-m: 16px;
  --shadow-s: 0 1px 3px rgba(0,0,0,.06);
  --shadow-m: 0 8px 30px rgba(0,0,0,.07);
  --ease: cubic-bezier(.25,.46,.45,.94);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-ja);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  font-size: 15px;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================================================
   Header
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.site-logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.3px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.site-nav { display: flex; align-items: center; gap: 32px; }

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-sub);
  transition: color .2s var(--ease);
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width .25s var(--ease);
}

.site-nav a:hover { color: var(--color-text); }
.site-nav a:hover::after { width: 100%; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle svg { width: 24px; height: 24px; color: var(--color-text); }

/* ===================================================================
   Hero
   =================================================================== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-bg);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.5px;
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero-lead {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--color-text-sub);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.9;
}

.hero-visual {
  max-width: 380px;
  margin: 0 auto;
  position: relative;
}

.hero-visual img {
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
}

.store-badge {
  display: inline-block;
  margin-bottom: 56px;
  transition: opacity .2s var(--ease);
}

.store-badge:hover { opacity: .8; }

.store-badge img {
  height: 52px;
  width: auto;
}

/* ===================================================================
   Features
   =================================================================== */
.features {
  padding: 80px 0;
}

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
  text-align: center;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 64px;
  letter-spacing: -.3px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 40px 32px;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}

.feature-item:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-4px);
}

.feature-item .icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--color-accent-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-item .icon-wrap svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.feature-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -.2px;
}

.feature-item p {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* ===================================================================
   CTA Band
   =================================================================== */
.cta-band {
  padding: 80px 0;
  text-align: center;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-band h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-band p {
  color: var(--color-text-sub);
  margin-bottom: 40px;
  font-size: 15px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background .2s var(--ease), transform .15s var(--ease);
}

.btn-primary:hover {
  background: #C05A32;
  transform: translateY(-2px);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

/* ===================================================================
   Footer
   =================================================================== */
.site-footer {
  padding: 48px 0;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--color-text-sub);
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--color-text-sub);
  transition: color .2s var(--ease);
}

.footer-nav a:hover { color: var(--color-text); }

/* ===================================================================
   Legal Pages  (privacy / terms / support)
   =================================================================== */
.legal {
  padding: 64px 0 96px;
}

.legal-inner {
  max-width: 680px;
  margin: 0 auto;
}

.legal-inner h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.3px;
}

.legal-inner .meta {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.legal-inner h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -.2px;
}

.legal-inner h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-inner p {
  margin-bottom: 20px;
  color: var(--color-text-sub);
  font-size: 15px;
}

.legal-inner ul {
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--color-text-sub);
}

.legal-inner li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.8;
}

.legal-inner a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: rgba(212,102,58,.3);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s var(--ease);
}

.legal-inner a:hover {
  text-decoration-color: var(--color-accent);
}

.legal-inner .contact-box {
  background: var(--color-accent-bg);
  border-radius: var(--radius-m);
  padding: 32px;
  margin-top: 40px;
}

.legal-inner .contact-box p {
  color: var(--color-text);
  margin-bottom: 8px;
}

.legal-inner .contact-box .email {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 17px;
  color: var(--color-accent);
}

/* FAQ accordion style */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--color-text);
  display: flex;
  gap: 8px;
}

.faq-q::before {
  content: 'Q.';
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}

.faq-a {
  font-size: 14px;
  color: var(--color-text-sub);
  padding-left: 28px;
  line-height: 1.8;
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-m);
  }
  .menu-toggle { display: block; }

  .hero { padding: 64px 0 48px; }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
  .footer-nav { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero-visual { max-width: 280px; }
  .feature-item { padding: 28px 24px; }
}

/* --- Utility (scroll-reveal placeholder) --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
