/* ========================================================
   Off By One — LP
   和紙トーン（washi #f5f0e8 / ink #1a1714 / accent #8b4513）
   ======================================================== */

:root {
  --washi: #f5f0e8;
  --washi-soft: #ede5d7;
  --ink: #1a1714;
  --ink-60: rgba(26, 23, 20, 0.6);
  --ink-35: rgba(26, 23, 20, 0.35);
  --ink-12: rgba(26, 23, 20, 0.12);
  --ink-08: rgba(26, 23, 20, 0.08);
  --accent: #8b4513;
  --accent-soft: rgba(139, 69, 19, 0.1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --serif: 'Cormorant Garamond', 'Noto Serif JP', Georgia, serif;
  --body: 'Noto Serif JP', 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--washi);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: min(1100px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 -1px 0 var(--ink-08);
}
.nav-inner {
  max-width: min(1100px, 100% - 48px);
  margin-inline: auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-cta {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--washi);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
.nav-cta:active { transform: scale(0.97); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 9rem 24px 4rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 69, 19, 0.09) 0%, transparent 65%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin-inline: auto;
  text-align: center;
}
.hero-tagline {
  font-family: var(--body);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--ink-60);
  margin-bottom: 1.5rem;
  text-transform: none;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 400;
  color: var(--ink-60);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}
.hero-cta {
  margin-bottom: 4rem;
}

/* ---------- Phones mockup ---------- */
.phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.2rem;
  perspective: 1200px;
  mask-image: linear-gradient(to bottom, black 75%, transparent 98%);
  -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 98%);
  margin-top: 1rem;
}
.phone {
  width: 180px;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease);
}
.phone-left { transform: rotateY(10deg) translateY(18px); opacity: 0.92; }
.phone-center { transform: translateY(-10px); z-index: 2; }
.phone-right { transform: rotateY(-10deg) translateY(18px); opacity: 0.92; }

.phone-frame {
  border-radius: 26px;
  background: #1a1714;
  padding: 6px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 30px 60px -12px rgba(26, 23, 20, 0.35),
    0 12px 24px -8px rgba(26, 23, 20, 0.2);
}
.phone-frame img {
  border-radius: 20px;
  display: block;
  width: 100%;
}

@media (max-width: 720px) {
  .phones { gap: 0.6rem; }
  .phone { width: 36vw; max-width: 160px; }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 1.2rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--ink-60);
  text-align: center;
  line-height: 1.9;
  margin-bottom: 4rem;
}

/* ---------- Features grid ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  box-shadow: inset 0 0 0 1px var(--ink-08);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--ink-12), 0 18px 30px -12px rgba(26, 23, 20, 0.12);
}
.card-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.card p {
  font-size: 0.95rem;
  color: var(--ink-60);
  line-height: 1.8;
}

/* ---------- Showcase ---------- */
.showcase {
  background: var(--washi-soft);
  position: relative;
}
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 820px;
  margin-inline: auto;
}
@media (min-width: 720px) {
  .showcase-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
.showcase figure {
  text-align: center;
}
.showcase figure img {
  border-radius: 22px;
  box-shadow: 0 24px 50px -18px rgba(26, 23, 20, 0.35);
  margin: 0 auto 1.2rem;
  max-width: 280px;
}
.showcase figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-60);
  letter-spacing: 0.02em;
}

/* ---------- CTA section ---------- */
.cta-section {
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(139, 69, 19, 0.06) 0%, transparent 60%),
    var(--washi);
}
.cta-section .section-title { margin-bottom: 2.5rem; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--washi);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(26, 23, 20, 0.28);
}
.btn-primary:active { transform: scale(0.97); }
.btn-large {
  padding: 18px 42px;
  font-size: 1rem;
}

/* ---------- Footer ---------- */
.footer {
  padding: 3rem 0 2.5rem;
  box-shadow: inset 0 1px 0 var(--ink-08);
  background: var(--washi);
}
.footer-inner {
  text-align: center;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--ink-60);
  margin-bottom: 1.5rem;
}
.footer-links a {
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--ink); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--ink-35);
  letter-spacing: 0.05em;
}

/* ---------- Animations ---------- */
.animate-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero: auto stagger on load */
.hero .animate-in:nth-child(1) { animation: fadeUp 0.9s var(--ease) 0.1s both; }
.hero .animate-in:nth-child(2) { animation: fadeUp 0.9s var(--ease) 0.25s both; }
.hero .animate-in:nth-child(3) { animation: fadeUp 0.9s var(--ease) 0.4s both; }
.hero .animate-in:nth-child(4) { animation: fadeUp 0.9s var(--ease) 0.55s both; }
.hero .animate-in:nth-child(5) { animation: fadeUp 1.1s var(--ease) 0.75s both; }

/* hero の phone-center に上下動を与えつつ初期フェードも適用 */
.phone-center {
  animation: floatGentle 4.5s var(--ease) infinite;
}
@keyframes floatGentle {
  0%, 100% { transform: translateY(-10px); }
  50% { transform: translateY(-18px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .phone-center { animation: none; transform: translateY(-10px); }
}
