/* =====================================================================
   Office Miyachi — Top page stylesheet
   Aesthetic: Editorial Japanese Craft / Cream Paper / Vermilion Accent
   Used only by web/index.html. LP / sub pages keep using /style.css.
   ===================================================================== */

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

:root {
  --paper:       #f4ede0;
  --paper-deep:  #ebe1c8;
  --paper-light: #fbf6ea;
  --ink:         #1a1410;
  --ink-soft:    #423629;
  --ink-muted:   #8a7c66;
  --vermilion:       #d4451a;
  --vermilion-deep:  #a8350e;
  --rule-faint:  rgba(26, 20, 16, 0.10);
  --rule-soft:   rgba(26, 20, 16, 0.06);

  --display-jp: "Shippori Mincho B1", "Hiragino Mincho Pro", "Yu Mincho", serif;
  --display-en: "Fraunces", "Times New Roman", serif;
  --body-jp:    "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --body-en:    "Sora", -apple-system, BlinkMacSystemFont, sans-serif;
}

html { background: var(--paper); }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-jp), var(--body-en);
  font-size: 16px;
  line-height: 1.7;
  font-feature-settings: "palt" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ----- Paper grain texture overlay ----- */

.paper {
  position: relative;
  min-height: 100vh;
}

.paper::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* Subtle off-page vermilion arc for atmosphere */
.paper::after {
  content: "";
  position: fixed;
  top: -200px;
  right: -300px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(212, 69, 26, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

/* ===== Top bar ===== */

.top {
  position: relative;
  z-index: 5;
  padding: 28px 56px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule-faint);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.brand-icon {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--vermilion);
  border-radius: 50%;
  transform: translateY(-2px);
}

.brand-en {
  font-family: var(--display-en);
  font-weight: 600;
  font-style: italic;
  font-size: 19px;
  font-variation-settings: "opsz" 24, "SOFT" 50;
  color: var(--ink);
}

.top-nav {
  display: flex;
  gap: 36px;
  font-family: var(--body-en);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
}

.top-nav a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--vermilion);
  transition: right 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.top-nav a:hover {
  color: var(--ink);
}

.top-nav a:hover::after {
  right: 0;
}

/* ===== Hero ===== */

.hero {
  position: relative;
  z-index: 2;
  padding: 120px 56px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.chapter {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 22px;
  margin-bottom: 64px;
  opacity: 0;
  animation: rise 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s forwards;
}

.chapter-num {
  font-family: var(--display-en);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(72px, 8vw, 112px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--vermilion);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.chapter-label {
  font-family: var(--body-en);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.6;
  padding-bottom: 18px;
  font-weight: 500;
}

.chapter-label .chapter-sep {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--ink-muted);
  vertical-align: middle;
  margin: 0 8px 3px;
}

.hero-title {
  font-family: var(--display-jp);
  font-weight: 700;
  font-size: clamp(56px, 11vw, 156px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 56px;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(36px);
  animation: rise 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.25s; }
.hero-line:nth-child(2) { animation-delay: 0.40s; }

.hero-line .dot {
  color: var(--vermilion);
  font-feature-settings: "palt" 0;
  margin-left: -0.05em;
}

.hero-sub {
  font-family: var(--body-jp);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 2.05;
  color: var(--ink-soft);
  max-width: 580px;
  margin-bottom: 40px;
  font-weight: 400;
  opacity: 0;
  animation: rise 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) 0.65s forwards;
}

.hero-meta {
  font-family: var(--body-en);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  opacity: 0;
  animation: rise 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) 0.85s forwards;
}

.hero-rule {
  margin-top: 96px;
  height: 1px;
  background: var(--rule-faint);
  position: relative;
  overflow: hidden;
}

.hero-rule::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  width: 120px;
  background: var(--vermilion);
  transform: scaleX(0);
  transform-origin: left;
  animation: drawline 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 1.0s forwards;
}

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

@keyframes drawline {
  to { transform: scaleX(1); }
}

/* ===== Featured release ===== */

.featured {
  position: relative;
  z-index: 2;
  padding: 64px 56px 96px;
  max-width: 1440px;
  margin: 0 auto;
}

.featured-eyebrow {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 36px;
}

.eyebrow-vol {
  font-family: var(--display-en);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--vermilion);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 24;
}

.eyebrow-divider {
  color: var(--ink-muted);
  font-family: var(--display-en);
  font-size: 18px;
  font-weight: 300;
}

.eyebrow-label {
  font-family: var(--body-en);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 88px;
  align-items: center;
  padding: 72px 80px;
  background: var(--paper-light);
  border: 1px solid var(--rule-faint);
  border-radius: 3px;
  position: relative;
  box-shadow:
    0 1px 0 rgba(26, 20, 16, 0.04),
    0 30px 80px -40px rgba(26, 20, 16, 0.20);
}

.featured-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 6px;
  bottom: -1px;
  background: var(--vermilion);
}

.featured-platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body-en);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 22px;
  font-weight: 500;
}

.featured-platform::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--ink-muted);
}

.featured-title {
  font-family: var(--display-en);
  font-weight: 600;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 26px;
  font-variation-settings: "opsz" 120, "SOFT" 50;
}

.featured-desc {
  font-family: var(--body-jp);
  font-size: 15px;
  line-height: 2.0;
  color: var(--ink-soft);
  margin-bottom: 40px;
  max-width: 480px;
  font-weight: 400;
}

.featured-cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

/* Microsoft Store style primary CTA */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: var(--paper-light);
  padding: 12px 22px 12px 18px;
  border-radius: 4px;
  border: 1px solid var(--ink);
  font-family: var(--body-en);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 22px -10px rgba(26, 20, 16, 0.5);
}

.btn-store:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -10px rgba(26, 20, 16, 0.6);
}

.btn-store-mark {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 22px;
  height: 22px;
}

.btn-store-mark span {
  display: block;
  background: var(--paper-light);
  border-radius: 1px;
}

.btn-store-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  align-items: flex-start;
}

.btn-store-text .small {
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  opacity: 0.78;
  font-weight: 400;
  margin-bottom: 2px;
}

.btn-store-text .large {
  font-size: 15px;
  letter-spacing: 0.005em;
  font-weight: 600;
}

/* Ghost / secondary CTA */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--body-jp);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--ink);
  transition: color 0.2s ease, border-color 0.2s ease, padding-bottom 0.2s ease;
}

.btn-ghost:hover {
  color: var(--vermilion);
  border-bottom-color: var(--vermilion);
}

/* ----- Featured visual ----- */

.featured-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
}

.featured-visual-frame {
  position: relative;
  width: 88%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 30% 28%, rgba(212, 69, 26, 0.12), transparent 60%),
    radial-gradient(circle at 75% 78%, rgba(26, 20, 16, 0.08), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(235, 225, 200, 0.4));
  border: 1px solid var(--rule-faint);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-visual-frame::before,
.featured-visual-frame::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--ink-muted);
  opacity: 0.5;
}

.featured-visual-frame::before {
  top: -8px;
  left: -8px;
  border-right: none;
  border-bottom: none;
}

.featured-visual-frame::after {
  bottom: -8px;
  right: -8px;
  border-left: none;
  border-top: none;
}

.featured-visual img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(26, 20, 16, 0.20));
}

.featured-stamp {
  position: absolute;
  top: -14px;
  right: -14px;
  font-family: var(--display-en);
  font-style: italic;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vermilion);
  background: var(--paper-light);
  border: 1px solid var(--vermilion);
  padding: 6px 14px;
  border-radius: 999px;
  transform: rotate(6deg);
  box-shadow: 0 4px 12px rgba(212, 69, 26, 0.18);
}

/* ===== Coming next ===== */

.upcoming {
  position: relative;
  z-index: 2;
  padding: 24px 56px 140px;
  max-width: 1440px;
  margin: 0 auto;
}

.upcoming-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 0 0;
  border-top: 1px solid var(--rule-faint);
  position: relative;
}

.upcoming-inner::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--vermilion);
}

.upcoming-eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--body-en);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.upcoming-eyebrow .eyebrow-vol {
  color: var(--ink-muted);
  font-size: 18px;
}

.upcoming-text {
  font-family: var(--display-jp);
  font-weight: 500;
  font-size: clamp(20px, 2.0vw, 26px);
  line-height: 1.85;
  color: var(--ink-soft);
}

.upcoming-text em {
  font-style: normal;
  color: var(--vermilion);
  font-weight: 700;
  font-feature-settings: "palt" 0;
}

.upcoming-link {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--body-en);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink-muted);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.upcoming-link:hover {
  color: var(--vermilion);
  border-bottom-color: var(--vermilion);
}

/* ===== Footer ===== */

.bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--rule-faint);
  padding: 56px 56px 32px;
  background: var(--paper-deep);
}

.bottom-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.bottom-brand .bottom-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--display-en);
  font-weight: 600;
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 6px;
}

.bottom-brand .bottom-mark::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--vermilion);
  border-radius: 50%;
  transform: translateY(-3px);
}

.bottom-tagline {
  font-family: var(--display-en);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

.bottom-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: var(--body-en);
  font-size: 13px;
  color: var(--ink-soft);
}

.bottom-nav a {
  transition: color 0.2s ease;
}

.bottom-nav a:hover {
  color: var(--vermilion);
}

.bottom-copyright {
  max-width: 1440px;
  margin: 0 auto;
  font-family: var(--body-en);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid var(--rule-soft);
}

/* ===== Responsive ===== */

@media (max-width: 960px) {
  .top { padding: 22px 32px; }
  .top-nav { gap: 24px; font-size: 10px; }
  .hero { padding: 72px 32px 56px; }
  .chapter-num { font-size: 72px; }
  .hero-title { font-size: clamp(48px, 12vw, 96px); }
  .featured { padding: 48px 32px 72px; }
  .featured-card {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 56px 40px;
  }
  .featured-visual-frame { width: 75%; max-width: 320px; }
  .upcoming { padding: 16px 32px 96px; }
  .bottom { padding: 48px 32px 28px; }
  .bottom-inner { grid-template-columns: 1fr; gap: 28px; }
  .bottom-nav { align-items: flex-start; }
}

@media (max-width: 560px) {
  .top { padding: 20px 22px; flex-wrap: wrap; gap: 14px; }
  .brand-en { font-size: 16px; }
  .top-nav { gap: 18px; font-size: 9.5px; }
  .top-nav a:last-child { display: none; }
  .hero { padding: 56px 22px 40px; }
  .chapter { gap: 14px; margin-bottom: 40px; }
  .chapter-num { font-size: 56px; }
  .chapter-label { font-size: 10px; padding-bottom: 8px; }
  .chapter-label .chapter-sep { display: none; }
  .hero-title { margin-bottom: 36px; }
  .hero-sub { font-size: 14.5px; line-height: 1.95; }
  .hero-meta { font-size: 10px; letter-spacing: 0.22em; }
  .hero-rule { margin-top: 64px; }
  .featured { padding: 32px 22px 56px; }
  .featured-eyebrow { flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
  .eyebrow-vol { font-size: 18px; }
  .featured-card { padding: 40px 26px; }
  .featured-title { font-size: 38px; line-height: 1.05; }
  .featured-desc { font-size: 14.5px; line-height: 1.95; }
  .featured-cta { flex-direction: column; align-items: stretch; gap: 14px; }
  .btn-store { justify-content: center; padding: 14px 22px; }
  .btn-ghost { text-align: left; align-self: flex-start; }
  .featured-visual-frame { width: 80%; }
  .featured-stamp { font-size: 9.5px; padding: 5px 10px; }
  .upcoming { padding: 16px 22px 72px; }
  .upcoming-inner { padding-top: 40px; }
  .upcoming-text { font-size: 19px; line-height: 1.85; }
  .bottom { padding: 40px 22px 24px; }
}
