/* ============================================================
   mochikuro Corporate Site - Design System v2
   洗練されたモダン × 日本の余白感
   ============================================================ */

:root {
  /* カラー: 静かな日本のモダン */
  --c-bg: #fafaf7;              /* 生成り */
  --c-bg-soft: #f3f2ed;
  --c-surface: #ffffff;
  --c-ink: #0a0a0a;              /* 墨 */
  --c-graphite: #2d2d2d;
  --c-muted: #6b6b6b;
  --c-line: #e5e3dd;
  --c-accent: #1a365d;           /* 深い藍 */
  --c-accent-bright: #2563eb;    /* 鮮明な青 */
  --c-gold: #a87f3c;              /* 落ち着いた金 */
  --c-warm: #c2603b;              /* 温かい朱 */

  /* タイポ: 全てゲームフォント */
  --f-sans: 'DotGothic16', 'Noto Sans JP', monospace;
  --f-serif: 'DotGothic16', 'Noto Sans JP', monospace;
  --f-display: 'DotGothic16', 'Noto Sans JP', monospace;

  /* サイズ */
  --container: 1280px;
  --container-narrow: 960px;

  /* motion */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Reset
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--f-sans);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.75;
  font-size: 15px;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}

/* ============================================================
   Layout
   ============================================================ */

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }

.section { padding: 140px 0; position: relative; }
.section-sm { padding: 80px 0; }

/* Section label (small cap letters) */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 20px;
  position: relative;
  padding-left: 32px;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--c-ink);
}

.h-display {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.h-lead {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--c-muted);
  max-width: 560px;
  line-height: 1.9;
}

/* ============================================================
   Header / Navigation
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.4s var(--ease);
  padding: 16px 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  padding: 10px 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}


.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fafaf7;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fafaf7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.brand-mark::before,
.brand-mark::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  top: 4px;
  border-radius: 50% 50% 0 0;
  background: #1e293b;
}
.brand-mark::before { left: 4px; transform: rotate(-30deg); }
.brand-mark::after { right: 4px; transform: rotate(30deg); }

.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
  font-size: 14px;
}
.nav-menu a {
  color: rgba(250, 250, 247, 0.7);
  font-weight: 500;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s;
}
.nav-menu a:hover { color: #fafaf7; }
.nav-menu a.active { color: #fafaf7; }
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 4px; height: 4px;
  background: #d4af37;
  border-radius: 50%;
  transform: translateX(-50%);
}
.nav-cta {
  padding: 10px 20px !important;
  background: #d4af37;
  color: #0a0a0a !important;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s var(--ease) !important;
}
.nav-cta:hover {
  background: #c2603b;
  color: #fafaf7 !important;
  transform: translateY(-1px);
}
.nav-cta.active::after { display: none; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: #fafaf7;
  margin-left: auto;
  transition: all 0.3s var(--ease);
}

/* ============================================================
   Hero (v2)
   ============================================================ */

.hero-v2 {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: var(--c-bg);
}

/* Animated gradient mesh background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 20% 30%, rgba(26, 54, 93, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(168, 127, 60, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
  animation: meshMove 20s ease-in-out infinite alternate;
  filter: blur(40px);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='3'/></filter><rect width='100' height='100' filter='url(%23n)' opacity='0.4'/></svg>");
  opacity: 0.4;
  mix-blend-mode: multiply;
  pointer-events: none;
}

@keyframes meshMove {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-5%, 3%) rotate(1deg); }
  100% { transform: translate(3%, -3%) rotate(-1deg); }
}

.hero-v2 .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}

.hero-text {
  max-width: 720px;
}

.hero-catch {
  font-family: var(--f-display);
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 32px;
}
.hero-catch .line { display: block; overflow: hidden; }
.hero-catch .word {
  display: inline-block;
  transform: translateY(100%);
  animation: heroUp 0.9s var(--ease-out) forwards;
}
.hero-catch .word.d1 { animation-delay: 0.1s; }
.hero-catch .word.d2 { animation-delay: 0.25s; }
.hero-catch .word.d3 { animation-delay: 0.4s; }
.hero-catch em {
  font-style: normal;
  color: var(--c-warm);
  position: relative;
}
.hero-catch em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  animation: lineIn 1s var(--ease-out) 1.3s forwards;
}

@keyframes heroUp {
  to { transform: translateY(0); }
}
@keyframes lineIn {
  to { transform: scaleX(1); }
}

.hero-sub {
  font-size: clamp(14px, 1.3vw, 17px);
  color: var(--c-muted);
  line-height: 1.9;
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.8s forwards;
}

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

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1s forwards;
}

/* Hero accent visual (subtle cat silhouettes in corner) */
.hero-mark {
  position: relative;
  width: 280px;
  height: 280px;
  opacity: 0;
  animation: markIn 1.4s var(--ease-out) 0.5s forwards;
}
.hero-mark-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a365d 0%, #0a0a0a 100%);
  overflow: hidden;
}
.hero-mark-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
}
.hero-mark .cat {
  position: absolute;
  color: var(--c-bg);
}
.hero-mark .cat.omochi {
  bottom: 30px; left: 40px;
  width: 90px; height: 90px;
  color: #fafaf7;
}
.hero-mark .cat.kuro {
  bottom: 30px; right: 40px;
  width: 90px; height: 90px;
  color: #2a2a2a;
}

@keyframes markIn {
  from { opacity: 0; transform: scale(0.9) rotate(-5deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--c-muted);
  text-transform: uppercase;
  z-index: 3;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px; height: 40px;
  background: var(--c-muted);
  margin: 12px auto 0;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-align: center;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-ink);
  color: var(--c-bg);
}
.btn-primary:hover {
  background: var(--c-accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border: 1.5px solid var(--c-ink);
}
.btn-ghost:hover {
  background: var(--c-ink);
  color: var(--c-bg);
}
.btn-arrow::after {
  content: '→';
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn-arrow::after,
.btn-arrow:hover::after { transform: translateX(4px); }

/* ============================================================
   Section: Philosophy
   ============================================================ */

.philosophy {
  background: var(--c-bg);
  padding: 160px 0;
}
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: center;
}
.philosophy-quote {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.5;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.philosophy-quote em {
  font-style: normal;
  color: var(--c-warm);
  display: block;
  margin: 16px 0;
}
.philosophy-body p {
  color: var(--c-muted);
  line-height: 2;
  margin-bottom: 20px;
}

/* ============================================================
   Section: Our Business (Services)
   ============================================================ */

.services {
  background: var(--c-ink);
  color: var(--c-bg);
  padding: 160px 0;
}
.services h2, .services .eyebrow { color: var(--c-bg); }
.services .eyebrow { color: rgba(255,255,255,0.6); }
.services .eyebrow::before { background: var(--c-bg); }
.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}
.services-intro p {
  color: rgba(250, 250, 247, 0.7);
  font-size: 17px;
  line-height: 1.9;
  max-width: 520px;
}

.service-list {
  display: grid;
  gap: 1px;
  background: rgba(255,255,255,0.1);
}
.service-item {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  gap: 40px;
  padding: 48px 0;
  background: var(--c-ink);
  align-items: start;
  transition: padding 0.4s var(--ease);
  cursor: pointer;
}
.service-item:hover {
  padding-left: 20px;
}
.service-num {
  font-family: var(--f-display);
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.2em;
}
.service-content h3 {
  color: var(--c-bg);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.service-content p {
  color: rgba(250, 250, 247, 0.6);
  font-size: 15px;
  line-height: 1.9;
  max-width: 560px;
}
.service-link {
  align-self: center;
  justify-self: end;
  font-size: 13px;
  color: rgba(250, 250, 247, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service-link::after {
  content: '→';
  transition: transform 0.3s;
}
.service-item:hover .service-link::after { transform: translateX(6px); }
.service-item:hover .service-link { color: var(--c-bg); }

/* ============================================================
   Section: Cat Philosophy (猫の哲学)
   ============================================================ */

.cat-philosophy {
  background: var(--c-bg-soft);
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}
.cat-philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 60px;
}
.cat-trait {
  padding: 40px 0;
  border-top: 1px solid var(--c-line);
}
.cat-trait .num {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-muted);
  margin-bottom: 16px;
}
.cat-trait h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.cat-trait p {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.9;
}

/* Subtle floating cat silhouette */
.cat-philosophy-bg {
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 500px;
  height: 500px;
  opacity: 0.04;
  color: var(--c-ink);
  pointer-events: none;
}

/* ============================================================
   Section: Stats (数値)
   ============================================================ */

.stats {
  padding: 120px 0;
  background: var(--c-bg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: left;
}
.stat {
  padding: 32px 0;
  border-top: 1px solid var(--c-line);
}
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num .unit {
  font-size: 0.4em;
  color: var(--c-muted);
  margin-left: 4px;
}
.stat-label {
  font-size: 13px;
  color: var(--c-muted);
  letter-spacing: 0.05em;
}

/* ============================================================
   CTA
   ============================================================ */

.cta {
  padding: 160px 0;
  background: var(--c-ink);
  color: var(--c-bg);
  position: relative;
  overflow: hidden;
}
.cta-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: end;
}
.cta h2 {
  color: var(--c-bg);
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cta .btn-primary {
  background: var(--c-bg);
  color: var(--c-ink);
}
.cta .btn-primary:hover {
  background: var(--c-accent-bright);
  color: var(--c-bg);
}
.cta .btn-ghost {
  color: var(--c-bg);
  border-color: rgba(255,255,255,0.3);
}
.cta .btn-ghost:hover {
  background: var(--c-bg);
  color: var(--c-ink);
  border-color: var(--c-bg);
}

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

.site-footer {
  background: var(--c-ink);
  color: rgba(250, 250, 247, 0.7);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
  margin-bottom: 60px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-brand .brand { color: #fafaf7; }
.footer-brand p { font-size: 13px; max-width: 320px; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-nav h4 {
  color: var(--c-bg);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.6;
  font-weight: 500;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 12px; }
.footer-nav a {
  font-size: 14px;
  color: rgba(250, 250, 247, 0.8);
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--c-bg); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

/* Subtle cat cameo in footer */
.footer-cats {
  display: flex;
  gap: 6px;
  align-items: center;
  opacity: 0.3;
}
.footer-cats svg {
  width: 20px;
  height: 20px;
  color: currentColor;
}

/* ============================================================
   Page hero (sub pages)
   ============================================================ */

.page-hero-v2 {
  padding: 180px 0 100px;
  background: var(--c-bg-soft);
  position: relative;
  overflow: hidden;
}
.page-hero-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='3'/></filter><rect width='100' height='100' filter='url(%23n)' opacity='0.3'/></svg>");
  opacity: 0.3;
  pointer-events: none;
}
.page-hero-v2 .container { position: relative; z-index: 2; }
.page-hero-v2 .eyebrow { color: var(--c-muted); }
.page-hero-v2 h1 {
  font-size: clamp(36px, 6vw, 80px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  font-weight: 500;
  max-width: 900px;
}
.page-hero-v2 .lead {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--c-muted);
  max-width: 640px;
  line-height: 1.8;
}

/* ============================================================
   Content
   ============================================================ */

.content { padding: 120px 0; }
.content-narrow { max-width: 760px; margin: 0 auto; }
.content-narrow h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin: 80px 0 24px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.content-narrow h2:first-child { margin-top: 0; }
.content-narrow h3 {
  font-size: 20px;
  margin: 40px 0 16px;
  font-weight: 500;
}
.content-narrow p { margin-bottom: 20px; line-height: 2; color: var(--c-graphite); }
.content-narrow ul, .content-narrow ol { margin: 20px 0 20px 24px; }
.content-narrow li { margin-bottom: 8px; line-height: 1.9; color: var(--c-graphite); }

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14px;
}
.data-table th,
.data-table td {
  padding: 20px 0;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}
.data-table th {
  width: 200px;
  font-weight: 500;
  color: var(--c-muted);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.data-table td { color: var(--c-graphite); }

/* Info cards */
.card {
  background: var(--c-surface);
  padding: 40px;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  transition: all 0.3s var(--ease);
}
.card:hover {
  border-color: var(--c-ink);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.1);
}

/* ============================================================
   Rank cards (for agencies)
   ============================================================ */

.rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 48px 0;
}
.rank-card {
  position: relative;
  background: var(--c-surface);
  padding: 48px 32px;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  transition: all 0.3s var(--ease);
}
.rank-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.1); }
.rank-card.featured {
  background: var(--c-ink);
  color: var(--c-bg);
  border-color: var(--c-ink);
}
.rank-card.featured h3, .rank-card.featured .rank-price { color: var(--c-bg); }
.rank-name {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 12px;
}
.rank-card.featured .rank-name { color: rgba(250,250,247,0.6); }
.rank-card h3 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.rank-qualification {
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-line);
}
.rank-card.featured .rank-qualification { color: rgba(250,250,247,0.6); border-color: rgba(255,255,255,0.1); }
.rank-price {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.rank-price .unit { font-size: 0.5em; color: var(--c-muted); }
.rank-card.featured .rank-price .unit { color: rgba(250,250,247,0.5); }
.rank-features { list-style: none; }
.rank-features li {
  font-size: 14px;
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--c-graphite);
  line-height: 1.7;
}
.rank-card.featured .rank-features li { color: rgba(250,250,247,0.8); }
.rank-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 12px; height: 1px;
  background: var(--c-ink);
}
.rank-card.featured .rank-features li::before { background: var(--c-bg); }
.rank-bonus {
  margin-top: 24px;
  padding: 16px;
  background: var(--c-bg-soft);
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
}
.rank-card.featured .rank-bonus { background: rgba(255,255,255,0.08); color: var(--c-bg); }

/* ============================================================
   Contact form
   ============================================================ */

.form {
  max-width: 720px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { margin-bottom: 28px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--c-graphite);
  letter-spacing: 0.02em;
}
.form-label .req {
  color: var(--c-warm);
  margin-left: 4px;
  font-size: 14px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  font-family: inherit;
  font-size: 15px;
  color: var(--c-ink);
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--c-ink);
  box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.05);
}
.form-textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.7;
}
.form-radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.form-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-size: 14px;
  border-radius: 2px;
}
.form-radio:hover { border-color: var(--c-ink); }
.form-radio input { margin: 0; }
.form-radio:has(input:checked) {
  background: var(--c-ink);
  color: var(--c-bg);
  border-color: var(--c-ink);
}
.form-submit { text-align: left; margin-top: 40px; }

.form-success {
  text-align: center;
  padding: 80px 40px;
  display: none;
}
.form-success.show { display: block; }
.form-error {
  padding: 14px 18px;
  background: #fef2f2;
  border-left: 3px solid var(--c-warm);
  color: var(--c-warm);
  font-size: 14px;
  margin-top: 20px;
  display: none;
}
.form-error.show { display: block; }

/* ============================================================
   Reveal animations (simplified)
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* ============================================================
   FAQ accordion
   ============================================================ */

.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--c-line);
}
.faq-q {
  padding: 28px 40px 28px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  position: relative;
  font-size: 17px;
  font-weight: 500;
  transition: color 0.3s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--c-warm); }
.faq-q::after {
  content: '+';
  position: absolute;
  right: 0;
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 40px 32px 0;
  font-size: 15px;
  line-height: 2;
  color: var(--c-muted);
}

/* ============================================================
   Mobile
   ============================================================ */

@media (max-width: 860px) {
  .section { padding: 80px 0; }
  .philosophy { padding: 80px 0; }
  .services { padding: 100px 0; }
  .cat-philosophy, .cta, .stats { padding: 80px 0; }

  .menu-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: #0a0a0a;
    flex-direction: column;
    padding: 40px 32px;
    gap: 24px;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    height: calc(100vh - 60px);
  }
  .nav-menu.open { transform: translateX(0); }

  .hero-v2 .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-mark { margin: 0 auto; width: 200px; height: 200px; }
  .hero-mark .cat.omochi, .hero-mark .cat.kuro { width: 60px; height: 60px; }

  .philosophy-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-intro { grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; }
  .service-item { grid-template-columns: auto 1fr; gap: 24px; padding: 32px 0; }
  .service-num { grid-row: span 2; }
  .service-link { grid-column: 2; justify-self: start; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }

  .cta-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-buttons { justify-content: flex-start; }

  .form-row { grid-template-columns: 1fr; }
  .data-table th, .data-table td { display: block; padding: 8px 0; }
  .data-table th { width: auto; padding-top: 16px; }
}

/* ============================================================
   ✨ 遊び心レイヤー: RPG × ドット絵 × 侘び寂び
   ============================================================ */

/* ピクセルフォント用 */
@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=VT323&display=swap');

:root {
  --f-pixel: 'DotGothic16', 'VT323', monospace;
  --c-pixel: #1a1a1a;
  --c-paper: #ede6d3;     /* 色褪せた和紙 */
}

.pixel {
  font-family: var(--f-pixel);
  letter-spacing: 0.05em;
}

/* ドット絵猫スプライト */
.pixel-cat {
  display: inline-block;
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
}
.pixel-cat.sm { width: 24px; height: 24px; }
.pixel-cat.lg { width: 96px; height: 96px; }
.pixel-cat.xl { width: 160px; height: 160px; }

/* RPGメニュー風: hoverで ▶ が表示 */
.rpg-menu a {
  position: relative;
  padding-left: 0;
  transition: padding-left 0.2s var(--ease);
}
.rpg-menu a::before {
  content: '▶';
  position: absolute;
  left: -20px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.2s var(--ease);
  color: var(--c-warm);
  font-size: 0.8em;
}
.rpg-menu a:hover {
  padding-left: 20px;
}
.rpg-menu a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* RPGダイアログボックス */
.rpg-dialog {
  position: relative;
  background: var(--c-ink);
  color: var(--c-bg);
  padding: 24px 28px;
  font-family: var(--f-pixel);
  font-size: 16px;
  line-height: 1.8;
  border: 3px solid var(--c-bg);
  box-shadow:
    0 0 0 3px var(--c-ink),
    0 0 0 6px var(--c-bg),
    0 0 0 9px var(--c-ink);
  max-width: 520px;
}
.rpg-dialog::after {
  content: '▼';
  position: absolute;
  bottom: 12px;
  right: 20px;
  color: var(--c-warm);
  animation: dialogBlink 1s steps(2) infinite;
  font-size: 14px;
}
@keyframes dialogBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.rpg-dialog .speaker {
  display: inline-block;
  background: var(--c-bg);
  color: var(--c-ink);
  padding: 2px 10px;
  font-size: 12px;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

/* ▼ blinking arrow */
.blink-arrow::after {
  content: ' ▼';
  animation: dialogBlink 1s steps(2) infinite;
  color: var(--c-warm);
}

/* 和紙テクスチャ（侘び寂び） */
.washi-bg {
  position: relative;
}
.washi-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='w'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' seed='7'/><feColorMatrix values='0 0 0 0 0.6  0 0 0 0 0.55  0 0 0 0 0.45  0 0 0 0.08 0'/></filter><rect width='200' height='200' filter='url(%23w)'/></svg>");
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}
.washi-bg > * { position: relative; z-index: 1; }

/* 墨のにじみ枠 */
.sumi-border {
  position: relative;
  padding: 40px;
  background: var(--c-surface);
}
.sumi-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: url("../assets/patterns/sumi-wash.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}
.sumi-border > * { position: relative; z-index: 1; }

/* 円相（Enso）アクセント */
.enso {
  width: 80px;
  height: 80px;
  background: url("../assets/patterns/enso.svg") center/contain no-repeat;
  opacity: 0.7;
  display: inline-block;
}

/* スキャンライン(CRT)効果: サブトルに */
.crt-overlay {
  position: relative;
}
.crt-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0,0,0,0.02) 2px,
    rgba(0,0,0,0.02) 3px
  );
  pointer-events: none;
  z-index: 5;
}

/* ピクセルボーダー（RPGウィンドウ風） */
.pixel-border {
  position: relative;
  padding: 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 2px;
}

/* ステータスバー（RPG風） */
.stat-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-pixel);
  font-size: 13px;
  color: var(--c-ink);
}
.stat-bar-label {
  letter-spacing: 0.08em;
}
.stat-bar-track {
  width: 120px;
  height: 10px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-ink);
  overflow: hidden;
  position: relative;
}
.stat-bar-fill {
  height: 100%;
  background: var(--c-warm);
  background-image: linear-gradient(
    90deg,
    var(--c-warm) 0%,
    var(--c-warm) 50%,
    transparent 50%,
    transparent 60%,
    var(--c-warm) 60%,
    var(--c-warm) 80%,
    transparent 80%,
    transparent 90%,
    var(--c-warm) 90%
  );
  background-size: 10px 100%;
  animation: statBarPulse 1.2s ease-in-out infinite alternate;
}
@keyframes statBarPulse {
  from { filter: brightness(0.95); }
  to { filter: brightness(1.1); }
}

/* セクションナンバー (章番号・RPGの章タイトル風) */
.chapter-head {
  font-family: var(--f-pixel);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--c-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.chapter-head::before {
  content: '❖';
  color: var(--c-warm);
  font-size: 1.3em;
}

/* RPGカード (選択可能メニュー風) */
.rpg-card {
  position: relative;
  padding: 32px;
  background: var(--c-surface);
  border: 2px solid var(--c-ink);
  transition: all 0.2s var(--ease);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.rpg-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 var(--c-ink);
}
.rpg-card:hover .rpg-card-arrow {
  transform: translateX(6px);
}
.rpg-card-arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease);
  color: var(--c-warm);
}
.rpg-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rpg-card-desc {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.8;
}
.rpg-card-meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--c-line);
  font-family: var(--f-pixel);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  display: flex;
  justify-content: space-between;
}

/* 字が1文字ずつ出るtypewriter effect */
.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--c-warm);
  animation: typing 2.5s steps(30) 0.5s 1 normal both, cursorBlink 0.7s steps(2) infinite;
}
@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes cursorBlink {
  50% { border-color: transparent; }
}

/* 猫足跡 (クリックで出現) */
.paw-trail {
  position: fixed;
  font-size: 20px;
  pointer-events: none;
  z-index: 9999;
  animation: pawFade 1.2s ease-out forwards;
}
@keyframes pawFade {
  0% { opacity: 1; transform: scale(1.4); }
  100% { opacity: 0; transform: scale(0.8) translateY(-20px); }
}

/* 侘び寂び: アシンメトリーグリッド */
.asymmetric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.asymmetric-grid > *:nth-child(1) { margin-top: 60px; }
.asymmetric-grid > *:nth-child(3) { margin-top: 40px; }
.asymmetric-grid > *:nth-child(2) { margin-top: 0; }

@media (max-width: 860px) {
  .asymmetric-grid { grid-template-columns: 1fr; }
  .asymmetric-grid > * { margin-top: 0 !important; }
}

/* 肉球スタンプラリー（隠し機能・復活） */
.hidden-paw {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--c-ink);
  border: 2px solid var(--c-ink);
  color: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--f-pixel);
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  z-index: 80;
  opacity: 0.5;
  transition: all 0.3s var(--ease);
  box-shadow: 3px 3px 0 var(--c-ink);
}
.hidden-paw:hover {
  opacity: 1;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--c-ink);
}
.hidden-paw .count {
  font-family: var(--f-pixel);
  font-size: 14px;
  display: block;
  color: var(--c-warm);
}

/* スタンプモーダル */
.paw-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.paw-modal.open { display: flex; }
.paw-modal-inner {
  background: var(--c-paper);
  max-width: 600px;
  width: 100%;
  padding: 48px 40px;
  border: 3px solid var(--c-ink);
  box-shadow: 8px 8px 0 var(--c-ink);
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}
.paw-modal-inner::before {
  content: '';
  position: absolute;
  inset: -2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='w'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' seed='7'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.48  0 0 0 0 0.38  0 0 0 0.1 0'/></filter><rect width='200' height='200' filter='url(%23w)'/></svg>");
  pointer-events: none;
  z-index: 0;
}
.paw-modal-inner > * { position: relative; z-index: 1; }
.paw-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--c-ink);
  z-index: 2;
}
.paw-stamp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.paw-stamp {
  aspect-ratio: 1;
  border: 2px dashed var(--c-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--f-pixel);
  font-size: 10px;
  padding: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.3);
}
.paw-stamp.got {
  background: var(--c-warm);
  color: var(--c-bg);
  border-style: solid;
  border-color: var(--c-warm);
}
.paw-stamp .label { margin-top: 4px; }

@media (max-width: 860px) {
  .paw-stamp-grid { grid-template-columns: repeat(3, 1fr); }
  .hidden-paw { width: 44px; height: 44px; bottom: 16px; right: 16px; }
}

/* ============================================================
   🏯 城下町ヒーロー（夜景・提灯・桜）
   ============================================================ */

.castle-hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0e1a 0%, #1a2332 40%, #3d3456 70%, #6b5d7a 90%, var(--c-bg) 100%);
  color: var(--c-bg);
  padding-top: 80px;
}

/* 星空 */
.castle-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 10%, #fff, transparent),
    radial-gradient(1px 1px at 32% 25%, #fff, transparent),
    radial-gradient(2px 2px at 55% 8%, #fff, transparent),
    radial-gradient(1px 1px at 78% 18%, #fff, transparent),
    radial-gradient(1px 1px at 90% 30%, #fff, transparent),
    radial-gradient(1px 1px at 25% 40%, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 65% 35%, rgba(255,255,255,0.8), transparent);
  animation: starsFade 4s ease-in-out infinite alternate;
}
@keyframes starsFade { 0% { opacity: 0.7; } 100% { opacity: 1; } }

/* 満月 */
.castle-moon {
  position: absolute;
  top: 12%;
  right: 8%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff9e0, #f0d98c);
  box-shadow:
    0 0 80px rgba(244, 215, 122, 0.4),
    0 0 30px rgba(255, 249, 224, 0.7);
  animation: moonRise 2s var(--ease-out) backwards;
}
@keyframes moonRise {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 城下町シルエット */
.castle-silhouette {
  position: absolute;
  bottom: 8%;
  left: 0;
  right: 0;
  height: 35%;
  pointer-events: none;
  z-index: 2;
}

/* 提灯（浮遊する） */
.lantern {
  position: absolute;
  width: 20px;
  height: 28px;
  border-radius: 50% 50% 40% 40%;
  box-shadow: 0 0 20px currentColor;
  animation: lanternFloat 4s ease-in-out infinite alternate;
}
.lantern::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.3);
}
.lantern::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: rgba(0,0,0,0.3);
  box-shadow: 0 4px 0 rgba(0,0,0,0.3), 0 8px 0 rgba(0,0,0,0.3);
}
.lantern.red { background: radial-gradient(circle at 40% 30%, #ff6b6b, #c8102e); color: #c8102e; }
.lantern.gold { background: radial-gradient(circle at 40% 30%, #ffd966, #d4af37); color: #d4af37; }

@keyframes lanternFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

/* 桜の花びら */
.sakura {
  position: absolute;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #fddde6 0%, #f8a5bf 100%);
  clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
  animation: sakuraFall linear infinite;
  opacity: 0.7;
}
@keyframes sakuraFall {
  0% { transform: translate(0, -30vh) rotate(0); opacity: 0; }
  10% { opacity: 0.7; }
  100% { transform: translate(50px, 120vh) rotate(720deg); opacity: 0; }
}

/* Hero content center */
.castle-content {
  position: relative;
  z-index: 3;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 120px;
}

.castle-catch {
  font-family: var(--f-display);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  color: var(--c-bg);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.castle-catch em {
  font-style: normal;
  color: var(--c-gold);
  position: relative;
}
.castle-catch em::before {
  content: '';
  position: absolute;
  inset: -6px -10px;
  border: 2px solid var(--c-gold);
  opacity: 0;
  transform: scale(1.3);
  animation: emFrame 1s var(--ease-out) 1.2s forwards;
}
@keyframes emFrame {
  to { opacity: 0.6; transform: scale(1); }
}

.castle-sub {
  font-size: clamp(14px, 1.3vw, 18px);
  color: rgba(250, 250, 247, 0.85);
  max-width: 580px;
  line-height: 2;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1s forwards;
}

.castle-cta {
  display: flex;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.3s forwards;
  margin-bottom: 32px;
}
.castle-cta .btn-primary {
  background: var(--c-gold);
  color: var(--c-ink);
}
.castle-cta .btn-primary:hover {
  background: var(--c-warm);
  color: var(--c-bg);
}
.castle-cta .btn-ghost {
  color: var(--c-bg);
  border-color: var(--c-bg);
}
.castle-cta .btn-ghost:hover {
  background: var(--c-bg);
  color: var(--c-ink);
}

/* 屋根上の小さな2匹 */
.roof-cats {
  position: absolute;
  bottom: 40%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 20px;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 1.8s forwards;
}
.roof-cats svg { width: 70px; height: 70px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4)); }

@media (max-width: 860px) {
  .castle-moon { width: 90px; height: 90px; top: 8%; right: 10%; }
  .roof-cats { display: none; }
}

/* ============================================================
   🎏 暖簾セクション（事業区画）
   ============================================================ */

.noren-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 60px;
}
.noren-card {
  position: relative;
  display: block;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  text-decoration: none;
  color: inherit;
  transition: all 0.4s var(--ease);
  overflow: hidden;
}
.noren-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.2);
  border-color: var(--c-ink);
}
.noren-top {
  background: linear-gradient(180deg, var(--c-ink) 0%, var(--c-graphite) 100%);
  color: var(--c-bg);
  padding: 40px 24px 30px;
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-align: center;
  position: relative;
}
.noren-top::before {
  content: '';
  position: absolute;
  left: 33%;
  top: 0;
  bottom: 24px;
  width: 1px;
  background: rgba(255,255,255,0.15);
}
.noren-top::after {
  content: '';
  position: absolute;
  left: 66%;
  top: 0;
  bottom: 24px;
  width: 1px;
  background: rgba(255,255,255,0.15);
}
.noren-cut {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 16px;
  background:
    linear-gradient(135deg, transparent 40%, var(--c-surface) 40%) 0 0/16px 16px,
    linear-gradient(-135deg, transparent 40%, var(--c-surface) 40%) 0 0/16px 16px;
}
.noren-body {
  padding: 32px 28px;
}
.noren-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.noren-body p {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.9;
  margin-bottom: 18px;
}
.noren-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-warm);
  font-family: var(--f-pixel);
  letter-spacing: 0.1em;
}
.noren-link::after {
  content: '▶';
  transition: transform 0.3s var(--ease);
}
.noren-card:hover .noren-link::after { transform: translateX(4px); }

/* 暖簾色バリエーション */
.noren-ai .noren-top { background: linear-gradient(180deg, #1a365d, #2d4a6e); }
.noren-ec .noren-top { background: linear-gradient(180deg, #c2603b, #e0764a); }
.noren-comm .noren-top { background: linear-gradient(180deg, #5c7a70, #7a9388); }
.noren-co .noren-top { background: linear-gradient(180deg, #2d2d2d, #4a4a4a); }

/* ============================================================
   🧭 マップ型セクション
   ============================================================ */

.map-section {
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-soft) 100%);
  position: relative;
  padding: 140px 0;
  overflow: hidden;
}
.map-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'><g fill='none' stroke='%231a1a1a' stroke-width='1' opacity='0.04'><path d='M0 40 A20 20 0 0 1 40 40'/><path d='M40 40 A20 20 0 0 1 80 40'/><path d='M-20 20 A20 20 0 0 1 20 20'/><path d='M20 20 A20 20 0 0 1 60 20'/><path d='M60 20 A20 20 0 0 1 100 20'/></g></svg>");
  background-size: 80px 40px;
  pointer-events: none;
  opacity: 0.5;
}
.map-section > * { position: relative; z-index: 1; }

/* ============================================================
   📜 巻物セクション
   ============================================================ */

.scroll-section {
  background: var(--c-paper);
  padding: 120px 0;
  position: relative;
}
.scroll-section::before,
.scroll-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(180deg, rgba(0,0,0,0.1), transparent);
}
.scroll-section::before { top: 0; }
.scroll-section::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.1), transparent);
}
.scroll-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  position: relative;
}
.scroll-title::before {
  content: '❖';
  display: block;
  color: var(--c-warm);
  font-size: 24px;
  margin-bottom: 12px;
}

/* ============================================================
   🔴 判子風バッジ
   ============================================================ */

.hanko {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 3px solid var(--c-warm);
  color: var(--c-warm);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 24px;
  background: rgba(194, 96, 59, 0.04);
  transform: rotate(-5deg);
  position: relative;
}
.hanko::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid var(--c-warm);
  opacity: 0.4;
}

/* ============================================================
   🗡️ 3つの立場（提携構造図）
   ============================================================ */

.triad {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  margin: 60px 0;
}
.triad-box {
  padding: 40px 32px;
  background: var(--c-surface);
  border: 2px solid var(--c-ink);
  box-shadow: 6px 6px 0 var(--c-ink);
  position: relative;
}
.triad-box .label {
  font-family: var(--f-pixel);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--c-muted);
  margin-bottom: 8px;
}
.triad-box h3 {
  font-size: 20px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.triad-box p {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.9;
}
.triad-center {
  text-align: center;
  color: var(--c-warm);
  font-family: var(--f-display);
  font-size: 44px;
  font-weight: 700;
  opacity: 0.8;
  min-width: 60px;
}

@media (max-width: 860px) {
  .triad { grid-template-columns: 1fr; gap: 20px; }
  .triad-center { transform: rotate(90deg); font-size: 32px; }
}

/* ============================================================
   Motion reduce
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bg::before { animation: none !important; }
}

/* ============================================================
   🎮 ゲームエフェクト（全ページ共通）
   ============================================================ */

/* ゲームフォント統一 */
body, h1, h2, h3, h4, p, a, span, div, button, li, label, input, textarea, select {
  font-family: 'DotGothic16', 'Noto Sans JP', monospace !important;
}

/* ブート画面 */
.game-boot {
  position: fixed; inset: 0; z-index: 9999;
  background: #0a0a0a;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  transition: opacity 0.8s ease;
}
.game-boot.fade-out { opacity: 0; pointer-events: none; }
.game-boot-text {
  color: #d4af37; font-size: 14px; letter-spacing: 0.3em;
  animation: bootBlink 1s steps(2) infinite;
}
.game-boot-bar { width: 200px; height: 6px; background: #222; border: 1px solid #333; overflow: hidden; }
.game-boot-fill { height: 100%; width: 0%; background: #d4af37; animation: bootLoad 1.8s ease-in-out forwards; }
@keyframes bootBlink { 50% { opacity: 0.3; } }
@keyframes bootLoad { 0% { width: 0%; } 100% { width: 100%; } }

/* パーティクル */
.particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.particle {
  position: absolute; width: 3px; height: 3px;
  background: #d4af37; border-radius: 50%; opacity: 0;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.6; } 90% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* XPバー */
.xp-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, #d4af37, #c2603b, #d4af37);
  background-size: 200% 100%;
  animation: xpShimmer 2s linear infinite;
  z-index: 9998; transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(212,175,55,0.6);
}
@keyframes xpShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* レベルバッジ */
.level-badge {
  position: fixed; bottom: 20px; right: 20px; z-index: 90;
  background: #0a0a0a; border: 2px solid #d4af37; color: #d4af37;
  padding: 8px 14px; font-size: 11px; letter-spacing: 0.15em;
  box-shadow: 0 0 16px rgba(212,175,55,0.3); cursor: default; transition: all 0.3s;
}
.level-badge:hover { box-shadow: 0 0 24px rgba(212,175,55,0.6); transform: scale(1.05); }
.level-badge .lv { font-size: 18px; font-weight: 700; }

/* コンボ: 削除済 */

/* グリッチ */
.glitch { position: relative; }
.glitch:hover::before, .glitch:hover::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; height: 100%;
}
.glitch:hover::before { color: #c2603b; z-index: -1; animation: glitch1 0.3s ease infinite; }
.glitch:hover::after { color: #4a9eff; z-index: -2; animation: glitch2 0.3s ease infinite; }
@keyframes glitch1 {
  0%,100% { clip-path: inset(0 0 80% 0); transform: translate(-2px,0); }
  25% { clip-path: inset(20% 0 60% 0); transform: translate(2px,0); }
  50% { clip-path: inset(40% 0 40% 0); transform: translate(-1px,0); }
  75% { clip-path: inset(60% 0 20% 0); transform: translate(1px,0); }
}
@keyframes glitch2 {
  0%,100% { clip-path: inset(80% 0 0 0); transform: translate(2px,0); }
  25% { clip-path: inset(60% 0 20% 0); transform: translate(-2px,0); }
  50% { clip-path: inset(40% 0 40% 0); transform: translate(1px,0); }
  75% { clip-path: inset(20% 0 60% 0); transform: translate(-1px,0); }
}

/* スキャンライン: 削除済 */
.svc-card { position: relative; overflow: hidden; }

/* ボタンエフェクト */
.btn-gold, .btn-line, .btn-primary, .btn-ghost, .nav-cta {
  position: relative; overflow: hidden; transition: all 0.15s ease !important;
}
.btn-gold:active, .btn-line:active, .btn-primary:active, .btn-ghost:active, .nav-cta:active {
  transform: scale(0.95) !important; filter: brightness(1.2);
}
.btn-gold::after, .btn-primary::after, .nav-cta::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}
.btn-gold:hover::after, .btn-primary:hover::after, .nav-cta:hover::after { left: 150%; }

/* セクションワイプ */
.section-wipe { position: relative; overflow: hidden; }
.section-wipe::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: #d4af37; transform: translateX(-101%); z-index: 5;
}
.section-wipe.wipe-in::after { animation: wipeIn 0.8s cubic-bezier(0.76,0,0.24,1) forwards; }
@keyframes wipeIn { 0% { transform: translateX(-101%); } 50% { transform: translateX(0); } 100% { transform: translateX(101%); } }

/* RPGダイアログ */
.rpg-dialog-float {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  z-index: 95; background: #0a0a0a; border: 2px solid #d4af37; color: #fafaf7;
  padding: 14px 24px; font-size: 13px; max-width: 440px; width: 90%;
  box-shadow: 0 0 30px rgba(0,0,0,0.5), 0 0 10px rgba(212,175,55,0.2);
  opacity: 0; transform: translateX(-50%) translateY(20px); transition: all 0.4s ease; pointer-events: none;
}
.rpg-dialog-float.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.rpg-dialog-float .speaker {
  display: inline-block; background: #d4af37; color: #0a0a0a;
  font-size: 10px; font-weight: 700; padding: 2px 8px; margin-bottom: 8px; letter-spacing: 0.1em;
}
.rpg-dialog-float .blink { display: inline-block; animation: bootBlink 1s steps(2) infinite; color: #d4af37; margin-left: 4px; }

/* フラッシュ */
.screen-flash { position: fixed; inset: 0; background: #d4af37; z-index: 99999; opacity: 0; pointer-events: none; animation: flash 0.5s ease; }
@keyframes flash { 0% { opacity: 0.8; } 100% { opacity: 0; } }

@media (max-width: 768px) {
  .game-boot-text { font-size: 12px; }
  .particles { display: none; }
  .combo { right: 16px; }
  .level-badge { bottom: 12px; right: 12px; padding: 6px 10px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .particles, .game-boot { display: none !important; }
}
