/* ========================================
   シンプル・チューリップ
   Japanese Quiet Pet Care Design System
   ======================================== */

:root {
  /* Core palette - warm, calm, natural */
  --cream: #F9F5F0;
  --cream-warm: #F5EFE6;
  --blush: #E8B4B8;
  --blush-deep: #D89A9F;
  --sage: #A8B5A2;
  --sage-dark: #8A9A84;
  --ink: #2F2C28;
  --charcoal: #3C3C3C;
  --warm-gray: #6B655C;
  --accent: #A86B6B;
  --accent-deep: #8C5C5C;
  --sand: #EDE4D7;
  --moss: #8B9A7D;
  --soft-white: #FBF8F3;

  /* Typography scale */
  --text-xs: 13px;
  --text-sm: 14.5px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 21px;
  --text-2xl: 26px;
  --text-3xl: 32px;
  --text-4xl: 42px;
  --text-5xl: 54px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 14px;
  --space-4: 20px;
  --space-5: 28px;
  --space-6: 36px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 88px;

  /* Radii */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  /* Shadows - very soft, paper-like */
  --shadow-soft: 0 2px 8px rgba(60, 60, 60, 0.06);
  --shadow-card: 0 4px 18px rgba(60, 60, 60, 0.07);
  --shadow-elevated: 0 10px 30px rgba(60, 60, 60, 0.09);
}

/* Base reset & reading comfort */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Shippori Mincho', system-ui, serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.82;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .logo, .section-title, .ritual-title {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
h1 { font-size: var(--text-4xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.015em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-lg); font-weight: 600; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-deep); }
p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

/* Refined reading text */
.reading-text {
  max-width: 68ch;
  font-size: var(--text-lg);
  line-height: 1.88;
}
.reading-text p + p { margin-top: var(--space-4); }

/* Header & Navigation - calm, sticky, spacious */
header {
  background: rgba(251, 248, 243, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo img { height: 42px; width: auto; }
nav ul {
  display: flex;
  list-style: none;
  gap: 26px;
  margin: 0;
  padding: 0;
}
nav ul li a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--charcoal);
  padding: 6px 0;
  position: relative;
}
nav ul li a:after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
nav ul li a:hover:after { width: 100%; }

.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--ink);
  padding: 4px;
  line-height: 1;
}

/* Hero - quiet presence, not loud */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-warm);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(249,245,240,0.35) 0%,
    rgba(249,245,240,0.72) 55%,
    rgba(249,245,240,0.88) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 30px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 56px);
  max-width: 18ch;
  margin-bottom: 18px;
}
.hero .lead {
  font-size: var(--text-xl);
  max-width: 58ch;
  color: var(--warm-gray);
  margin-bottom: 34px;
}
.hero .pill {
  display: inline-block;
  background: rgba(255,255,255,0.9);
  color: var(--accent);
  font-size: 12.5px;
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

/* Buttons - soft, human */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  min-height: 48px;
}
.btn:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  padding: 12px 24px;
}
.btn-ghost:hover {
  background: var(--sand);
  color: var(--ink);
}

/* Section rhythm */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-8) 28px;
}
.section-compact { padding: var(--space-6) 28px; }

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: 10px;
  text-align: left;
}
.section-subtitle {
  color: var(--warm-gray);
  max-width: 62ch;
  margin-bottom: var(--space-6);
  font-size: var(--text-lg);
}

/* Observation cards & Rituals - core component */
.observation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.ritual-card, .observation-card {
  background: var(--soft-white);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
  border: 1px solid rgba(0,0,0,0.025);
}
.ritual-card:hover, .observation-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
}
.ritual-card .pill, .observation-card .pill {
  display: inline-block;
  background: var(--sand);
  color: var(--accent-deep);
  font-size: 11.5px;
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 13px;
  letter-spacing: 0.3px;
}
.ritual-card h3, .observation-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--ink);
}
.ritual-card p, .observation-card p {
  font-size: 15px;
  color: var(--warm-gray);
  line-height: 1.75;
  margin: 0;
}

/* Two-column thoughtful layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: start;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}

/* Life stage / Species detail blocks */
.life-stage {
  background: var(--soft-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  border-left: 5px solid var(--sage);
}
.life-stage h4 {
  color: var(--sage-dark);
  margin-bottom: 8px;
  font-size: 17px;
}
.life-stage ul {
  margin: 12px 0 0;
  padding-left: 20px;
  line-height: 1.78;
}
.life-stage li { margin-bottom: 5px; }

/* Gentle callout */
.callout {
  background: var(--cream-warm);
  border-radius: var(--radius);
  padding: 22px 26px;
  border-left: 4px solid var(--blush);
  font-size: 15.5px;
  color: var(--charcoal);
}
.callout strong { color: var(--ink); }

/* Pull quote - Japanese aesthetic */
.pull-quote {
  font-family: 'Shippori Mincho', serif;
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink);
  border-left: 3px solid var(--sage);
  padding-left: 22px;
  margin: 32px 0;
  max-width: 58ch;
}

/* Species navigation */
.pet-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-6);
}
.pet-nav a {
  background: var(--soft-white);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--charcoal);
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pet-nav a:hover {
  background: var(--sand);
}

/* Image treatment */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}
.figure {
  margin: 28px 0;
}
.figure img {
  box-shadow: var(--shadow-card);
}
.figure figcaption {
  font-size: 13px;
  color: var(--warm-gray);
  margin-top: 8px;
  text-align: center;
}

/* Refined grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* Deep content blocks */
.content-block {
  max-width: 72ch;
}
.content-block h3 {
  margin-top: 32px;
  margin-bottom: 10px;
}
.content-block h3:first-child { margin-top: 0; }

/* Mobile-first responsive */
@media (max-width: 768px) {
  .nav-container { padding: 16px 20px; }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--soft-white);
    padding: 20px;
    box-shadow: var(--shadow-elevated);
    gap: 6px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  nav ul.show { display: flex; }
  .hamburger { display: block; }
  
  .hero { min-height: 520px; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 17px; }
  
  .section { padding: 52px 20px; }
  .section-title { font-size: 26px; }
  
  .ritual-card, .observation-card { padding: 22px; }
  
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  
  .split { gap: 28px; }
  
  .btn { padding: 14px 26px; font-size: 15px; }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero h1 { font-size: 46px; }
}

/* Subtle scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  background: var(--soft-white);
  padding: 60px 28px 38px;
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 40px;
}
.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 46px;
}
footer h4 {
  font-size: 13.5px;
  margin-bottom: 14px;
  color: var(--ink);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer ul li {
  margin-bottom: 7px;
}
footer ul li a {
  font-size: 14px;
  color: var(--warm-gray);
}
footer ul li a:hover { color: var(--accent); }
.address {
  font-size: 13.5px;
  color: var(--warm-gray);
  line-height: 1.7;
}
.copyright {
  max-width: 1120px;
  margin: 50px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(0,0,0,0.06);
  text-align: center;
  font-size: 12.5px;
  color: #888;
  line-height: 1.6;
}

/* Toast / gentle notification */
.popup {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-elevated);
  display: none;
  align-items: center;
  gap: 14px;
  z-index: 9999;
  max-width: 380px;
  font-size: 14.5px;
}
.popup.show { display: flex; }
.popup .close {
  cursor: pointer;
  font-size: 18px;
  color: #999;
  padding-left: 8px;
}

/* Form improvements */
.form-group { margin-bottom: 18px; }
label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  color: var(--warm-gray);
}
input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15.5px;
  background: #fff;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { min-height: 148px; resize: vertical; }

/* Print friendliness */
@media print {
  header, footer, .btn { display: none !important; }
  body { background: white; color: black; }
}