@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800&family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

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

:root {
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Zen Maru Gothic', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  background-color: #FAFAFA;
  color: #1A1A1A;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

/* ── Layout ── */
.container { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Navigation ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,250,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #E0E0DC;
}
.nav-inner {
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #1A1A1A;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0;
}
.nav-logo .enso { width: 26px; height: 26px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; color: #777; font-size: 14px; letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: #1A1A1A; }
.page-content { padding-top: 60px; }

/* ── Hero ── */
.hero { padding: 96px 0 72px; text-align: center; }
.hero-label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #2D6A4F; margin-bottom: 28px; display: block;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 76px; font-weight: 700; letter-spacing: 0;
  line-height: 0.95; color: #1A1A1A; margin-bottom: 24px;
}
.hero-enso {
  width: 72px; height: 72px; margin: 0 auto 36px; opacity: 0.12;
}
.hero-tagline {
  font-size: 19px; color: #666; max-width: 440px;
  margin: 0 auto; line-height: 1.55;
}
.hero-sub { font-size: 15px; color: #999; margin-top: 12px; }

/* ── Divider ── */
hr.divider { border: none; border-top: 1px solid #E0E0DC; margin: 0; }

/* ── Sections ── */
.section { padding: 80px 0; }
.section--alt { background: #F4F4F2; }
.section--dark { background: #1A1A1A; color: #FAFAFA; }
.section-label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #2D6A4F; margin-bottom: 10px; display: block;
}
.section--dark .section-label { color: #6BA07A; }
.section-title {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 700; letter-spacing: 0;
  color: #1A1A1A; margin-bottom: 12px; line-height: 1.2;
}
.section--dark .section-title { color: #FAFAFA; }
.section-subtitle { font-size: 17px; color: #777; max-width: 500px; line-height: 1.55; }

/* ── Values Dojo (homepage) ── */
.values-section {
  background:
    radial-gradient(circle at 20% 18%, rgba(45,106,79,0.08), transparent 28%),
    linear-gradient(180deg, #FAFAFA 0%, #F6F6F3 100%);
}
.values-wrap {
  display: grid; grid-template-columns: minmax(280px, 0.85fr) 1.35fr;
  gap: 64px; align-items: center; position: relative;
}
.values-intro { position: relative; padding: 20px 0; }
.values-mark {
  width: 150px; height: 150px; color: #2D6A4F;
  opacity: 0.08; position: absolute; top: -28px; left: -34px;
  pointer-events: none;
}
.values-lead {
  font-size: 19px; color: #4E5D54; line-height: 1.72;
  margin: 18px 0 32px; max-width: 390px;
}
.values-dojo {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #DDDCD5; border-radius: 18px; overflow: hidden;
  background: rgba(255,255,255,0.68);
  box-shadow: 0 24px 70px rgba(26,26,26,0.06);
}
.value-item {
  min-height: 190px; padding: 28px;
  display: flex; gap: 18px; align-items: flex-start;
  border-right: 1px solid #E3E2DC; border-bottom: 1px solid #E3E2DC;
}
.value-item:nth-child(2n) { border-right: none; }
.value-item:nth-last-child(-n+2) { border-bottom: none; }
.value-number {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  color: #2D6A4F; background: #E8F5EE;
  border: 1px solid #D8EADF; border-radius: 999px;
  padding: 4px 9px; line-height: 1; flex-shrink: 0;
}
.value-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: #1A1A1A; margin-bottom: 8px; }
.value-desc { font-size: 15px; color: #5F665F; line-height: 1.68; }

/* ── App Grid ── */
.app-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 40px;
}
.app-card {
  background: #FFF; border: 1px solid #E8E8E4; border-radius: 16px;
  padding: 22px; text-decoration: none; color: inherit; display: block;
  transition: background-color 0.18s, border-color 0.18s, transform 0.18s;
}
.app-card:hover { background: #F4F4F2; border-color: #C8C8C0; transform: translateY(-1px); }
.app-card--muted { opacity: 0.55; }
.app-card--muted:hover { transform: none; }

.app-icon {
  width: 60px; height: 60px; border-radius: 13px; margin-bottom: 14px;
  overflow: hidden; flex-shrink: 0;
}
.app-icon svg, .app-icon img { width: 100%; height: 100%; display: block; }
.app-icon img, .app-detail-icon img, .support-icon img { object-fit: cover; }
.app-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #1A1A1A; margin-bottom: 4px; letter-spacing: 0; }
.app-tagline { font-size: 13px; color: #888; line-height: 1.45; margin-bottom: 12px; }
.app-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-block; font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; border-radius: 4px; padding: 2px 7px;
}
.badge--cat { color: #2D6A4F; background: #E8F5EE; }
.badge--status-live { color: #2D6A4F; background: #E8F5EE; }
.badge--status-soon { color: #777; background: #F0F0EE; }
.badge--platform { color: #555; background: #EFEFED; }

/* ── Footer ── */
.site-footer { background: #161616; color: #FAFAFA; padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  color: #FAFAFA; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 16px;
  letter-spacing: 0;
}
.footer-logo .enso { width: 24px; height: 24px; flex-shrink: 0; }
.footer-logo .enso path { stroke: #FAFAFA; }
.footer-tagline { font-size: 13px; color: #666; line-height: 1.5; max-width: 240px; }
.footer-heading {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #555; margin-bottom: 14px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { text-decoration: none; color: #888; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: #FAFAFA; }
.footer-bottom {
  border-top: 1px solid #2A2A2A; padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 12px; color: #444; }

/* ── App Detail Header ── */
.app-detail-hero { padding: 80px 0 56px; }
.app-detail-header { display: flex; align-items: flex-start; gap: 28px; margin-bottom: 32px; }
.app-detail-icon { width: 88px; height: 88px; border-radius: 20px; overflow: hidden; flex-shrink: 0; }
.app-detail-icon svg, .app-detail-icon img { width: 100%; height: 100%; display: block; }
.app-detail-name {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 700; letter-spacing: 0;
  line-height: 1.05; margin-bottom: 8px;
}
.app-detail-tagline { font-size: 17px; color: #777; margin-bottom: 20px; line-height: 1.5; }
.app-store-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1A1A1A; color: #FAFAFA; text-decoration: none;
  padding: 11px 20px; border-radius: 10px; font-size: 14px; font-weight: 500;
  transition: background 0.2s; border: none; cursor: pointer;
}
.app-store-btn:hover { background: #2D6A4F; }
.app-store-btn svg { width: 18px; height: 18px; }
.app-store-btn--disabled {
  background: #E8E8E4; color: #999; cursor: default;
}
.app-store-btn--disabled:hover { background: #E8E8E4; }
.app-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }

/* ── Features ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.feature-item { padding-top: 18px; border-top: 2px solid #E0E0DC; }
.feature-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 6px; letter-spacing: 0; }
.feature-desc { font-size: 13px; color: #777; line-height: 1.55; }

/* ── Philosophy Note ── */
.philosophy-note {
  background: #E8F5EE; border-radius: 12px;
  padding: 24px 28px; margin: 48px 0;
}
.philosophy-note-label {
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: #2D6A4F; margin-bottom: 8px; display: block;
}
.philosophy-note-text { font-size: 16px; color: #1A1A1A; line-height: 1.65; font-style: italic; }

/* ── Version History ── */
.version-list { display: flex; flex-direction: column; margin-top: 20px; }
.version-item {
  display: flex; gap: 20px; padding: 16px 0;
  border-bottom: 1px solid #E0E0DC; align-items: baseline;
}
.version-number { font-family: var(--font-display); font-size: 13px; color: #2D6A4F; min-width: 52px; flex-shrink: 0; }
.version-date { font-size: 12px; color: #999; min-width: 80px; flex-shrink: 0; }
.version-notes { font-size: 14px; color: #444; }

/* ── Buttons ── */
.btn { display: inline-block; text-decoration: none; padding: 11px 22px; border-radius: 8px; font-family: var(--font-display); font-size: 14px; font-weight: 500; transition: all 0.2s; }
.btn--primary { background: #2D6A4F; color: #FAFAFA; }
.btn--primary:hover { background: #245940; }
.btn--secondary { background: transparent; color: #1A1A1A; border: 1px solid #D8D8D4; }
.btn--secondary:hover { border-color: #999; background: #F4F4F2; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

/* ── Support / FAQ ── */
.support-header {
  padding: 80px 0 48px; border-bottom: 1px solid #E0E0DC;
  display: flex; align-items: flex-start; gap: 24px;
}
.support-icon { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.support-icon svg, .support-icon img { width: 100%; height: 100%; display: block; }
.support-title { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: 0; margin-bottom: 4px; }
.support-version { font-family: var(--font-display); font-size: 12px; color: #999; }
.faq-list { display: flex; flex-direction: column; margin: 32px 0; }
.faq-item { border-bottom: 1px solid #E8E8E4; }
.faq-question {
  font-family: var(--font-display); font-size: 15px; font-weight: 500; color: #1A1A1A;
  padding: 18px 0; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; background: none; border: none;
  width: 100%; text-align: left; transition: color 0.18s;
}
.faq-question:hover { color: #2D6A4F; }
.faq-icon { font-size: 18px; color: #999; transition: transform 0.25s; flex-shrink: 0; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: #2D6A4F; }
.faq-answer {
  font-size: 14px; color: #555; line-height: 1.75;
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding-bottom 0.3s;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 20px; }
.contact-box {
  background: #F4F4F2; border-radius: 14px;
  padding: 40px; text-align: center; margin: 56px 0 80px;
}
.contact-box h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 10px; letter-spacing: 0; }
.contact-box p { color: #777; font-size: 15px; margin-bottom: 20px; }
.contact-email { color: #2D6A4F; font-size: 17px; font-weight: 600; text-decoration: none; }
.contact-email:hover { text-decoration: underline; }
.response-note { font-size: 13px; color: #999; margin-top: 8px; }

/* ── Privacy ── */
.privacy-header { padding: 80px 0 40px; border-bottom: 1px solid #E0E0DC; }
.privacy-header img { width: 100%; height: 100%; display: block; object-fit: cover; }
.effective-date {
  font-family: var(--font-display); font-size: 12px; color: #999;
  background: #F4F4F2; padding: 12px 16px; border-radius: 6px;
  display: inline-block; margin-bottom: 40px;
}
.privacy-content { padding: 40px 0 80px; }
.privacy-content h2 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; color: #1A1A1A;
  margin: 44px 0 12px; letter-spacing: 0; padding-top: 4px;
  border-top: 1px solid #E0E0DC;
}
.privacy-content h2:first-child { margin-top: 0; border-top: none; }
.privacy-content p { font-size: 15px; color: #444; line-height: 1.8; margin-bottom: 14px; }
.privacy-content ul { margin: 8px 0 14px 20px; }
.privacy-content li { font-size: 15px; color: #444; line-height: 1.75; margin-bottom: 6px; }
.privacy-content strong { color: #1A1A1A; font-weight: 600; }
.privacy-content a { color: #2D6A4F; text-decoration: underline; }

/* ── Philosophy Page ── */
.manifesto-hero { padding: 80px 0 60px; }
.manifesto-hero h1 { font-family: var(--font-display); font-size: 52px; font-weight: 700; letter-spacing: 0; line-height: 1.1; margin-bottom: 16px; }
.manifesto-hero .lead { font-size: 19px; color: #666; max-width: 560px; line-height: 1.6; }
.manifesto { padding: 0 0 80px; }
.manifesto h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: 0; color: #1A1A1A; margin: 60px 0 16px; }
.manifesto h2:first-child { margin-top: 0; }
.manifesto p { font-size: 16px; color: #444; line-height: 1.8; margin-bottom: 18px; }
.manifesto .pull { border-left: 3px solid #2D6A4F; padding-left: 22px; margin: 32px 0; font-size: 19px; color: #1A1A1A; font-style: italic; line-height: 1.55; }
.never-list { list-style: none; margin: 16px 0 24px; }
.never-list li {
  padding: 13px 0; border-bottom: 1px solid #E0E0DC;
  font-size: 15px; color: #555; display: flex; align-items: flex-start; gap: 12px; line-height: 1.5;
}
.never-list li::before { content: "×"; color: #CCC; font-size: 14px; flex-shrink: 0; margin-top: 1px; }

/* ── Apps Index ── */
.apps-hero { padding: 80px 0 48px; }
.apps-hero h1 { font-family: var(--font-display); font-size: 48px; font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-tab {
  padding: 7px 16px; border-radius: 100px; font-family: var(--font-display); font-size: 13px; font-weight: 500;
  border: 1px solid #E0E0DC; background: transparent; color: #777;
  cursor: pointer; transition: all 0.18s;
}
.filter-tab:hover { background: #F4F4F2; color: #1A1A1A; border-color: #C0C0BC; }
.filter-tab.active { background: #1A1A1A; color: #FAFAFA; border-color: #1A1A1A; }

/* ── 404 ── */
.not-found {
  min-height: 80vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.not-found-code { font-family: var(--font-display); font-size: 88px; color: #E0E0DC; line-height: 1; margin-bottom: 24px; }
.not-found-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin-bottom: 10px; letter-spacing: 0; }
.not-found-text { color: #777; margin-bottom: 28px; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #999; margin-bottom: 32px; }
.breadcrumb a { color: #999; text-decoration: none; }
.breadcrumb a:hover { color: #2D6A4F; }
.breadcrumb span { color: #CCC; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-title { font-size: 52px; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .values-wrap { grid-template-columns: 1fr; gap: 36px; }
  .values-lead { max-width: none; }
  .values-dojo { grid-template-columns: 1fr; }
  .value-item,
  .value-item:nth-child(2n),
  .value-item:nth-last-child(-n+2) { border-right: none; border-bottom: 1px solid #E3E2DC; }
  .value-item:last-child { border-bottom: none; }
  .section { padding: 56px 0; }
  .app-detail-hero { padding: 56px 0 36px; }
  .app-detail-header { flex-direction: column; gap: 20px; }
  .app-detail-name { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .support-header { flex-direction: column; gap: 16px; padding: 56px 0 36px; }
  .manifesto-hero h1 { font-size: 38px; }
  .apps-hero h1 { font-size: 36px; }
  .section-title { font-size: 28px; }
}
@media (max-width: 480px) {
  .app-grid { grid-template-columns: 1fr; }
  .value-item { min-height: auto; padding: 22px; }
  .hero-title { font-size: 40px; }
  .nav-links { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
