/* Meanwhile Nagara static site demo - Mono style */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-strong: #f4f4f4;
  --text: #111111;
  --muted: #666666;
  --line: rgba(0, 0, 0, 0.18);
  --shadow: 10px 10px 0 rgba(0, 0, 0, 0.95);
  --radius: 10px;
  --accent: #000000;
  --accent-soft: #ebebeb;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: -0.02em;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 14px 16px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.92);
}

.brand, .nav, .header-actions { display: flex; align-items: center; }
.brand { gap: 10px; font-weight: 900; }
.header-actions { gap: 12px; }
.brand-icon {
  width: 38px;
  height: 38px;
  padding: 3px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  background: #ffffff;
}
.nav {
  gap: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}
.nav a {
  padding: 9px 12px;
  border-radius: 999px;
}
.nav a:hover { background: var(--surface-strong); color: var(--text); }
.lang-switch {
  display: inline-flex;
  padding: 4px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: #ffffff;
}
.lang-switch button {
  min-width: 48px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}
.lang-switch button.active { background: var(--accent); color: #ffffff; }

main {
  width: min(1120px, calc(100% - 32px));
  margin: 72px auto 0;
}
.section-shell, .feature-card {
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: center;
  padding: clamp(32px, 6vw, 72px);
  min-height: 560px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 10vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.065em;
}
h3 {
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.hero-lead {
  max-width: 760px;
}

.hero-lead span {
  display: block;
}

.lead, .section-note {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  font-weight: 900;
}
.button.primary { background: var(--accent); color: #ffffff; }
.button.secondary { background: var(--surface); }
.hero-visual { display: grid; place-items: center; }
.icon-card {
  width: min(100%, 300px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 2px solid var(--accent);
  border-radius: 36px;
  background: #ffffff;
  box-shadow: var(--shadow);
}
.icon-card img {
  width: 100%;
  background: #ffffff;
  border-radius: 26%;
}
.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
  padding: clamp(28px, 5vw, 56px);
}
.copy-block { display: grid; gap: 20px; padding-top: 10px; }
.info-list {
  display: grid;
  gap: 0;
  margin: 0;
  border: 2px solid var(--accent);
  border-radius: 18px;
  overflow: hidden;
}
.info-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 48px;
  border-bottom: 2px solid var(--accent);
}
.info-list div:last-child { border-bottom: 0; }
.info-list dt,
.info-list dd {
  margin: 0;
  padding: 13px 16px;
  line-height: 1.55;
}
.info-list dt {
  background: var(--surface-strong);
  font-weight: 900;
  border-right: 2px solid var(--accent);
}
.info-list dd {
  color: var(--text);
  word-break: break-word;
}
.info-list a { text-decoration: underline; text-underline-offset: 3px; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.section-heading { grid-column: 1 / -1; padding: 20px 8px 6px; }
.feature-card {
  min-height: 280px;
  padding: 26px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.92);
}
.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}
.feature-card .small-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px solid var(--accent);
  font-size: 0.88rem;
  line-height: 1.7;
}
.feature-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: var(--accent);
  color: #ffffff;
  border: 2px solid var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
}
.screenshots { margin-top: 24px; padding: clamp(28px, 5vw, 56px); }
.phone-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.phone-mock {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 431 / 912;
  border: 2px solid var(--accent);
  border-radius: 28px;
  background: var(--surface-strong);
  padding: 14px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.92);
}
.phone-mock span {
  display: block;
  width: 38%;
  height: 5px;
  margin: 0 auto;
  border-radius: 99px;
  background: var(--line);
}
.phone-mock p {
  margin: auto 0 0;
  text-align: center;
  font-weight: 900;
  color: var(--muted);
}
.phone-screenshot {
  padding: 0;
  overflow: hidden;
  background: #e6ece8;
  display: grid;
  place-items: stretch;
}
.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 26px;
  display: block;
}
.information-box, .page-shell { margin-bottom: 24px; }
.link-list { display: grid; gap: 12px; }
.link-list a {
  padding: 18px 20px;
  border: 2px solid var(--accent);
  border-radius: 18px;
  background: #ffffff;
  font-weight: 900;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.92rem;
}
.page-content {
  display: grid;
  gap: 18px;
  color: var(--muted);
  line-height: 1.9;
}
.qa-list {
  display: grid;
  gap: 18px;
}
.qa-item {
  padding: 18px;
  border: 2px solid var(--accent);
  border-radius: 18px;
}
.qa-item h3 { margin-bottom: 8px; }
.qa-item p { margin-bottom: 0; color: var(--muted); line-height: 1.8; }

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    border-radius: 24px;
    flex-direction: column;
  }
  .header-actions { width: 100%; justify-content: space-between; }
  .nav { flex-wrap: wrap; }
  main { margin-top: 36px; }
  .hero, .two-column, .cards-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 30px; }
  .hero-visual { order: -1; }
  .icon-card { max-width: 220px; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 860px) {
  .phone-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-actions { align-items: stretch; flex-direction: column; }
  .nav { display: none; }
  h1 { font-size: 3.15rem; }
  .phone-row { grid-template-columns: 1fr; }
  .info-list div { grid-template-columns: 1fr; }
  .info-list dt { border-right: 0; border-bottom: 2px solid var(--accent); }
  .site-header { position: static; }
}


/* Readable long-form pages */
.lang-panel[hidden] { display: none !important; }
.page-readable {
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 5vw, 56px);
}
.page-side {
  position: sticky;
  top: 118px;
}
.page-side h1 {
  max-width: 520px;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  margin-bottom: 16px;
}
.page-side-note {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  font-weight: 900;
  color: var(--text);
  background: #ffffff;
}
.readable-content {
  gap: 24px;
  color: var(--text);
  font-size: 1rem;
}
.lead-copy {
  margin-bottom: 20px;
  padding: 22px;
  border: 2px solid var(--accent);
  border-radius: 20px;
  background: var(--accent);
  color: #ffffff;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 900;
  line-height: 1.65;
}
.notice-card,
.legal-section,
.page-meta {
  border: 2px solid var(--accent);
  border-radius: 20px;
  background: #ffffff;
}
.notice-card {
  padding: 24px;
}
.notice-card h2,
.legal-section h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: -0.04em;
}
.notice-card p,
.legal-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}
.notice-card p + p { margin-top: 10px; }
.page-meta {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  overflow: hidden;
}
.page-meta div {
  display: grid;
  grid-template-columns: 110px 1fr;
  border-bottom: 2px solid var(--accent);
}
.page-meta div:last-child { border-bottom: 0; }
.page-meta dt,
.page-meta dd {
  margin: 0;
  padding: 12px 14px;
  line-height: 1.5;
}
.page-meta dt {
  border-right: 2px solid var(--accent);
  background: var(--surface-strong);
  font-weight: 900;
}
.page-meta dd { color: var(--muted); word-break: break-word; }
.legal-content .lang-panel {
  display: grid;
  gap: 14px;
}
.legal-section {
  position: relative;
  padding: 22px 22px 22px 72px;
}
.legal-section > span {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.9rem;
}
.legal-section a,
.page-meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 980px) {
  .page-readable { grid-template-columns: 1fr; }
  .page-side { position: static; }
}
@media (max-width: 640px) {
  .legal-section { padding: 18px; }
  .legal-section > span {
    position: static;
    margin-bottom: 12px;
  }
  .page-meta div { grid-template-columns: 1fr; }
  .page-meta dt { border-right: 0; border-bottom: 2px solid var(--accent); }
}

.page-side .eyebrow {
  margin-bottom: 10px;
}


/* Language-specific content blocks */
.lang-content { display: none; }
html[lang="ja"] .lang-content-ja,
html[lang="en"] .lang-content-en { display: block; }

/* Q&A page */
.qa-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 2px solid rgba(0, 0, 0, 0.12);
}
.qa-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.qa-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  letter-spacing: -0.02em;
}
.qa-list {
  display: grid;
  gap: 10px;
}
.qa-item {
  border: 2px solid var(--accent);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.88);
}
.qa-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 900;
  line-height: 1.55;
}
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary::before {
  content: "Q.";
  display: inline-block;
  margin-right: 0.5em;
  font-weight: 900;
}
.qa-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.9;
}
.qa-item p::before {
  content: "A.";
  display: inline-block;
  margin-right: 0.5em;
  font-weight: 900;
  color: var(--accent);
}


/* Compact subpage headings */
.page-shell .page-heading {
  padding: 10px 0 18px;
  margin-bottom: 10px;
}
.page-shell .page-heading .eyebrow {
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.page-shell .page-heading h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.legal-shell {
  max-width: 920px;
}
.qa-section {
  margin-top: 22px;
  padding-top: 18px;
}
.qa-item {
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.88);
}
.qa-item summary {
  padding: 14px 16px;
}
.qa-item p {
  padding: 0 16px 16px;
}


/* Static Q&A page */
.qa-static-page {
  max-width: 920px;
}
.qa-static-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 2px solid rgba(0, 0, 0, 0.12);
}
.qa-static-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.qa-static-section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.qa-static-list {
  display: grid;
  gap: 16px;
}
.qa-static-item {
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.qa-static-item:last-child {
  border-bottom: 0;
}
.qa-static-item h3 {
  margin: 0 0 8px;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.55;
  letter-spacing: -0.015em;
}
.qa-static-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}


/* Compact subpage navigation */
.subpage-mini-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 28px;
  padding: 10px 0 18px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}
.mini-back {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.88);
}
.mini-back::before {
  content: "←";
  margin-right: 0.45em;
}
.mini-brand {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.qa-static-page .page-heading,
.legal-shell .page-heading {
  padding-top: 0;
}
@media (max-width: 640px) {
  .subpage-mini-nav {
    margin-bottom: 22px;
  }
  .mini-brand {
    display: none;
  }
}


body.subpage-clean main {
  margin-top: 28px;
}
