/* MetaFact corporate site. Layout mirrors kakebo.metafactinc.com. */

:root {
  --base: #eadfca;
  --accent: #9ec3bc;
  --sub: #aa998a;

  --bg: var(--base);
  --surface: #f7f2e8;
  --border: #d9cdb6;
  --divider: #cfc2aa;
  --ink: #2f3b39;
  --ink-deep: #222b2a;
  --text: #2f3b39;
  --text-body: #3b4543;
  --text-sub: #6b6158;
  --accent-deep: #4f7f77;
  --accent-lt: #dde9e4;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

header {
  background: var(--ink);
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: 19px;
  color: #fff;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

nav a {
  color: #c9d6d2;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 82% 22%, rgba(158, 195, 188, 0.28), transparent 38%),
    radial-gradient(circle at 12% 88%, rgba(170, 153, 138, 0.22), transparent 36%),
    linear-gradient(135deg, var(--ink) 0%, #3a4644 100%);
  border-bottom: 1px solid #45524f;
  color: #f4efe4;
  min-height: 480px;
  padding: 72px 40px 60px;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.4;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}

.hero-copy {
  max-width: 640px;
  color: #d4cdc1;
  font-size: 15px;
  line-height: 2;
  margin-bottom: 32px;
}

h1 .phrase { display: inline-block; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.button:hover { opacity: 0.85; }

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-deep);
  font-weight: 400;
}

.button-secondary {
  color: #eadfca;
  border-color: var(--sub);
}

/* Main */
main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 40px 96px;
}

section {
  margin-bottom: 64px;
  scroll-margin-top: 24px;
}

section:last-child { margin-bottom: 0; }

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--divider);
}

.section-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-deep);
  flex-shrink: 0;
}

h2 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: 19px;
  color: var(--text);
  letter-spacing: 0.04em;
}

p {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.95;
}

.text-link {
  color: var(--accent-deep);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* App feature */
.app-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 10px;
  padding: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: center;
}

.app-label {
  color: var(--text-sub);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.app-name {
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: 0.06em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.app-copy {
  font-family: 'Noto Serif JP', serif;
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.app-detail {
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 26px;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.button-store {
  background: var(--ink);
  border-color: var(--ink);
  color: #f4efe4;
  min-width: 150px;
}

.app-feature .text-link { font-size: 13px; }

.app-panel {
  background: #fbf8f2;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  color: var(--text);
  box-shadow: 0 20px 48px rgba(47, 59, 57, 0.16);
}

.app-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 18px;
}

.month {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  letter-spacing: 0.05em;
}

.balance {
  font-size: 12px;
  color: var(--text-sub);
  text-align: right;
}

.balance strong {
  display: block;
  color: var(--text);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.3;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.summary-item,
.records li {
  background: #fff;
  border: 1px solid #ebe3d4;
  border-radius: 6px;
  padding: 11px 14px;
}

.summary-label {
  color: var(--text-sub);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.summary-value {
  font-size: 16px;
  font-weight: 400;
}

.records {
  list-style: none;
  display: grid;
  gap: 10px;
}

.records li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.record-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.dot-accent { background: var(--accent); }
.dot-sub { background: var(--sub); }
.dot-ink { background: var(--ink); }

/* Business */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.feature-number {
  color: var(--accent-deep);
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.9;
}

/* Company */
.company-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.company-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border-bottom: 1px solid var(--border);
}

.company-row:last-child { border-bottom: none; }

.company-row dt {
  background: var(--accent-lt);
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 16px 22px;
}

.company-row dd {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.85;
  padding: 16px 22px;
}

/* Contact */
.contact-band {
  background: var(--ink);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 32px 36px;
}

.contact-band h2 {
  color: #f4efe4;
  margin-bottom: 8px;
}

.contact-band p {
  color: #c9c1b5;
  font-size: 13px;
  line-height: 1.9;
}

.button-contact {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-deep);
  font-weight: 400;
}

footer {
  background: var(--ink-deep);
  padding: 32px 40px;
  text-align: center;
}

.footer-logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  color: var(--sub);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.footer-copy {
  font-size: 11px;
  color: #7d8784;
  letter-spacing: 0.08em;
}

@media (max-width: 860px) {
  .app-feature {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px 28px;
  }

  .app-panel { max-width: 420px; }

  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  header {
    height: auto;
    min-height: 60px;
    padding: 14px 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  nav {
    gap: 14px;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding: 48px 16px 44px;
  }

  h1 { font-size: 24px; }

  .br-pc { display: none; }

  .hero-actions,
  .store-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button { width: 100%; }

  main { padding: 44px 16px 72px; }

  .app-feature { padding: 26px 20px; }

  .company-row { grid-template-columns: 1fr; }

  .company-row dt { padding: 10px 18px; }

  .company-row dd { padding: 12px 18px 14px; }

  .contact-band {
    grid-template-columns: 1fr;
    padding: 26px 20px;
  }

  .button-contact {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  footer { padding: 28px 16px; }
}
