/* Vegetability — minimal serif */

:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-mute: #8a8a8a;
  --line: #e5e5e5;
  --paper: #ffffff;
  --paper-warm: #faf8f5;
  --accent: #2c4a3e;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Serif JP", "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt";
  line-height: 1.85;
}

.font-display {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 400;
}

.headline-jp {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.headline-display {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.rule {
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: var(--ink);
  vertical-align: middle;
  margin: 0 0.8rem 0.3em;
}

.rule-soft {
  background: var(--ink-mute);
}

/* Link styles */
a.link-underline {
  position: relative;
  display: inline-block;
}
a.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}
a.link-underline:hover::after {
  transform-origin: left center;
  transform: scaleX(1);
}

/* Header */
.site-header {
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

/* Hero */
.hero-grid-overlay {
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 12.5% 100%;
}

.hero-fade-in > * {
  opacity: 0;
  transform: translateY(14px);
  animation: heroIn 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-fade-in > *:nth-child(1) { animation-delay: 0.10s; }
.hero-fade-in > *:nth-child(2) { animation-delay: 0.30s; }
.hero-fade-in > *:nth-child(3) { animation-delay: 0.55s; }
.hero-fade-in > *:nth-child(4) { animation-delay: 0.80s; }
.hero-fade-in > *:nth-child(5) { animation-delay: 1.05s; }

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
  display: inline-block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--ink) 0%, var(--ink) 50%, transparent 50%);
  background-size: 100% 200%;
  background-position: 0 0;
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { background-position: 0 -100%; }
  100% { background-position: 0 100%; }
}

/* Service cards */
.service-card {
  position: relative;
  padding: 2.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  transition: padding-left 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.service-card:last-child { border-bottom: 1px solid var(--line); }
.service-card .service-num {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--ink-mute);
  letter-spacing: 0.2em;
}
.service-card:hover { padding-left: 1rem; }

/* Table */
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table th,
.info-table td {
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0.5rem;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}
.info-table th {
  width: 9rem;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  font-size: 0.92rem;
}

/* Prose */
.prose-jp p { margin: 1.1em 0; line-height: 1.95; }
.prose-jp h3 {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  margin-top: 2.6em;
  margin-bottom: 0.6em;
  color: var(--ink);
}
.prose-jp ul {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}
.prose-jp ul li {
  padding-left: 1.2em;
  position: relative;
  margin: 0.6em 0;
}
.prose-jp ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 0.5rem;
  height: 1px;
  background: var(--ink-mute);
}

/* AOS fallback (in case CDN is blocked, content still shows) */
[data-aos] {
  opacity: 1;
}
.aos-init[data-aos] {
  opacity: 0;
}
.aos-init.aos-animate[data-aos] {
  opacity: 1;
}

/* Map */
.map-wrap {
  position: relative;
  padding-bottom: 56%;
  height: 0;
  overflow: hidden;
  background: var(--paper-warm);
}
.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer { background: var(--paper); }

/* Selection */
::selection { background: var(--ink); color: var(--paper); }

/* Mobile tweaks */
@media (max-width: 640px) {
  .headline-display { line-height: 1.15; }
  .info-table th { width: 7rem; font-size: 0.85rem; }
}
