/* ==========================================================================
   Polson Real Assets — ICHIGO ICHIE (minimal / zen) theme
   No third-party requests: system serif only, no web fonts, no trackers.
   Contrast: body 6.4:1, ink 12.7:1, seal accent 5.3:1, dark panel 12.7:1
   ========================================================================== */

:root {
  --paper: #f6f1e6;
  --paper-2: #efe8d8;
  --ink: #2b2a28;
  --ink-soft: #5a5750;
  --seal: #b03a2e;
  --gold: #c5a059;
  --white: #ffffff;

  --line: rgba(43, 42, 40, 0.14);
  --line-strong: rgba(43, 42, 40, 0.28);
  --glass: rgba(246, 241, 230, 0.82);
  --glass-strong: rgba(246, 241, 230, 0.94);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;

  --font-serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho",
    "YuMincho", "Noto Serif JP", "Songti SC", "Times New Roman", Georgia, serif;

  --shadow-sm: 0 1px 2px rgba(43, 42, 40, 0.06);
  --shadow-card: 0 18px 40px -32px rgba(43, 42, 40, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  /* 18px base: every rem-based size on the site scales up with it */
  font-size: 112.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Paper grain — inline SVG, no network request, purely decorative */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.25; letter-spacing: 0.01em; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.wrap { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  transform: translate(-50%, -160%);
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); outline-color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 96px;
  padding: 0.875rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  transition: opacity 0.25s var(--ease);
}
.brand:hover { opacity: 0.72; }
.brand-logo {
  width: clamp(170px, 15vw, 210px);
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--ink); background: rgba(239, 232, 216, 0.7); }

/* ---------- Shared section parts ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tint {
  background: linear-gradient(180deg, rgba(239, 232, 216, 0.55), rgba(239, 232, 216, 0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--seal);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.2;
}

.lead {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.95;
  color: var(--ink-soft);
  margin-top: 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
}
.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}
.hero-copy { flex: 1 1 330px; max-width: 34rem; }
.hero-title {
  font-size: clamp(2.125rem, 4.6vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: 0.005em;
}
.hero-lead {
  margin-top: 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.95;
  color: var(--ink-soft);
  max-width: 42ch;
}
.hero-meta {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-meta::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--seal);
  border-radius: 50%;
  flex: none;
}

.hero-figure {
  flex: 1 1 380px;
  max-width: 37rem;
  position: relative;
  margin: 0;
}
.hero-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  translate: 14px 14px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  opacity: 0.7;
  pointer-events: none;
}
.hero-figure img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -40px rgba(43, 42, 40, 0.65);
  filter: saturate(0.92) contrast(1.03);
}

/* ---------- Approach ---------- */
.approach-inner { max-width: 46rem; margin-inline: auto; text-align: center; }
.approach-inner .eyebrow { justify-content: center; }
.approach-inner .approval, .approach-inner .lead { text-align: center; }
.approach-rule {
  width: 1px;
  height: 56px;
  margin: 2.5rem auto 0;
  background: linear-gradient(180deg, var(--line-strong), transparent);
}

/* ---------- Focus / pillars ---------- */
.focus-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.focus-head > div { align-self: flex-start; }
.focus-head p {
  max-width: 100%;
  margin-inline: auto;
  color: var(--ink-soft);
  line-height: 1.9;
  text-align: center;
  text-wrap: balance;
}

.pillar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.pillar {
  flex: 1 1 230px;
  position: relative;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.pillar:hover,
.pillar:focus-within {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 50px -34px rgba(43, 42, 40, 0.7);
}
.pillar-num {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  color: var(--seal);
  font-variant-numeric: tabular-nums;
}
.pillar h3 {
  margin-top: 0.875rem;
  font-size: 1.125rem;
  line-height: 1.4;
}
.pillar p {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* ---------- Partnership (dark panel) ---------- */
.panel-dark {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: 0 40px 70px -55px rgba(43, 42, 40, 0.9);
}
.panel-dark::before {
  content: "";
  position: absolute;
  inset: -40% 35% 40% -20%;
  background: radial-gradient(60% 60% at 30% 20%, rgba(197, 160, 89, 0.28), transparent 70%);
  pointer-events: none;
}
.panel-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23g)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}
.panel-dark > * { position: relative; }
.panel-dark .eyebrow { color: rgba(246, 241, 230, 0.72); }
.panel-dark h2 { font-size: clamp(1.75rem, 3.2vw, 2.375rem); line-height: 1.25; }
.panel-dark p {
  margin-top: 1.25rem;
  max-width: 58ch;
  color: rgba(246, 241, 230, 0.84);
  line-height: 1.95;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 3.75rem) 0 clamp(2.5rem, 4vw, 3.5rem);
}
.disclaimer {
  font-size: 0.8125rem;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 76ch;
}
.footer-meta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.copyright {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.footer-links a,
.footer-links button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.625rem;
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.footer-links a:hover,
.footer-links button:hover,
.footer-links a:focus-visible,
.footer-links button:focus-visible { color: var(--ink); background: rgba(239, 232, 216, 0.8); }

/* ---------- Cookie notice ---------- */
.cookie {
  position: fixed;
  z-index: 60;
  right: 1.25rem;
  bottom: 1.25rem;
  width: min(26rem, calc(100vw - 2.5rem));
  padding: 1.25rem 1.375rem;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px -30px rgba(43, 42, 40, 0.55);
}
.cookie[hidden] { display: none; }
.cookie p {
  font-size: 0.8125rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.cookie p a { color: var(--ink); text-decoration-color: var(--line-strong); }
.cookie-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.cookie .button { flex: 1 1 auto; justify-content: center; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.125rem;
  font-family: inherit;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.button:hover { opacity: 0.86; }
.button:active { transform: translateY(1px); }
.button--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}
.button--ghost:hover { background: rgba(239, 232, 216, 0.75); opacity: 1; }

/* ---------- Legal pages ---------- */
.legal-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.legal-header-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 1rem 0;
  display: flex;
  align-items: center;
}
.legal-logo { width: clamp(150px, 24vw, 190px); height: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }

.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); }
.legal-inner { width: min(720px, calc(100% - 2.5rem)); margin-inline: auto; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.legal-back:hover { color: var(--seal); }
.legal h1 {
  margin-top: 1.25rem;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.15;
}
.legal-updated {
  margin-top: 0.875rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.legal-section h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  line-height: 1.4;
}
.legal-section p {
  margin-bottom: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.9;
}
.legal-section a { color: var(--ink); text-decoration-color: var(--seal); text-underline-offset: 3px; }
.legal-note { margin-top: 2.5rem; font-size: 0.875rem; color: var(--ink-soft); }

/* ---------- Motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.hero-copy, .hero-figure { animation: rise 0.7s var(--ease) both; }
.hero-figure { animation-delay: 0.08s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .site-nav { display: none; }
  .hero-figure::before { display: none; }
  .hero-copy { max-width: none; }
  .hero-lead { max-width: none; }
  .hero-meta { font-size: 0.625rem; letter-spacing: 0.16em; }
  .cookie { right: 0.75rem; left: 0.75rem; width: auto; bottom: 0.75rem; }
  .footer-meta { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: -0.625rem; }
}

@media (min-width: 721px) and (max-width: 1000px) {
  .pillar { flex: 1 1 calc(50% - 0.625rem); }
}

/* ---------- Small utility marks ---------- */
.rule-mark {
  display: block;
  width: 34px;
  height: 1px;
  background: var(--seal);
  margin-bottom: 1.25rem;
}
.approach-inner .rule-mark { margin-inline: auto; width: 44px; }
.cookie-title {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.625rem;
}
