/* PlaMatch visual refinement layer — design only.
   Loaded after plamatch-ds.css. Does not change HTML, JS, IDs, handlers, or functionality. */

:root {
  --pm-color-bg-secondary: #f7f9fc;
  --pm-color-bg-app: #f4f7fb;
  --pm-color-border: #e5eaf1;
  --pm-radius-md: 0.75rem;
  --pm-radius-lg: 1rem;
  --pm-shadow-card: 0 1px 2px rgba(15, 23, 42, .035);
  --pm-shadow-md: 0 10px 28px rgba(15, 23, 42, .07);
  --pm-section-gap: 2.75rem;
}

/* Global typography and canvas */
html { scroll-behavior: smooth; }
body.pm-body-shell {
  background: #fff;
  color: #142033;
  font-family: "Inter", "Noto Sans JP", system-ui, sans-serif;
  letter-spacing: .005em;
}
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .24); outline-offset: 2px; }

/* Marketing header: clean, bright, restrained */
body.pm-mode-marketing-chrome .pm-site-header,
.pm-site-header {
  background: rgba(255,255,255,.94);
  color: #0f172a;
  border-bottom: 1px solid #e8edf4;
  box-shadow: 0 2px 12px rgba(15,23,42,.035);
  backdrop-filter: blur(14px);
}
.pm-site-header__bar {
  min-height: 6.25rem;
  padding-block: 1rem;
  gap: 1.25rem;
  overflow: visible;
}

body.pm-mode-marketing-chrome .pm-site-header__bar {
  min-height: unset;
  padding-block: 0.85rem 0.35rem;
}

body.pm-mode-marketing-chrome .pm-site-header .pm-brand-lockup__logo {
  max-height: 4.65rem;
  max-width: min(21rem, 46vw);
}
.pm-brand-mark:not(.pm-brand-mark--image) {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: .85rem;
  background: linear-gradient(145deg,#3b82f6,#1d4ed8);
  box-shadow: 0 5px 12px rgba(37,99,235,.18);
}
.pm-brand-mark--image .pm-brand-mark__img {
  height: 3.5rem;
}
.pm-brand-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; color: #0f172a; }
.pm-brand-tag { border: 1px solid #dbeafe; background: #eff6ff; color: #2563eb; font-weight: 700; }
.pm-site-header__tagline { color: #64748b; }
.pm-site-nav {
  border-top: 0;
  padding: 0;
  gap: .25rem;
}
.pm-nav-link {
  color: #526176;
  border-radius: .65rem;
  padding: .6rem .78rem;
  font-weight: 650;
  transition: background .18s ease, color .18s ease;
}
.pm-nav-link:hover,
.pm-nav-link[aria-current="page"],
.pm-nav-link.active {
  color: #1d4ed8;
  background: #eff6ff;
}
.pm-site-header__actions { gap: .55rem; align-items: center; }

.pm-site-header__menu-btn {
  min-width: 3.25rem;
  min-height: 3.25rem;
}

.pm-site-header__menu-icon {
  width: 1.875rem;
  height: 1.875rem;
}
@media (min-width: 1024px) {
  .pm-site-header__cta-stack { width: 20.5rem; }
}

/* Layout: more generous, consistent marketing page width */
.pm-marketing-page { background: #fff; }
.pm-marketing-shell {
  max-width: 82rem;
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2.5vw, 2rem) 4rem;
}
.pm-marketing-shell--narrow { max-width: 68rem; }
.pm-marketing-shell--flow { max-width: 78rem; }
.pm-home-content { max-width: 82rem; padding-inline: clamp(1rem, 2.5vw, 2rem); }

/* Section rhythm and page headings */
.pm-section,
.pm-home-section--capabilities,
.pm-home-section--audience {
  padding-block: clamp(3rem, 5vw, 5rem);
}
.pm-page-header { margin-bottom: 2rem; }
.pm-overline {
  color: #2563eb;
  letter-spacing: .11em;
  font-weight: 800;
}
.pm-h1 {
  color: #101b30;
  letter-spacing: -.035em;
  line-height: 1.22;
}
.pm-h2, .pm-h3 { color: #142033; letter-spacing: -.02em; }
.pm-caption { color: #66758b; }
.pm-marketing-shell > .space-y-8 { --tw-space-y-reverse: 0; }
.pm-marketing-shell > * + * { margin-top: 2rem; }

/* Cards: quieter borders, subtle depth, consistent padding */
.pm-card,
.pm-home-capability-card,
.pm-home-audience-card,
.pm-app-stat-card {
  border-color: #e6ebf2;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.035);
}
.pm-card { padding: clamp(1.1rem, 2vw, 1.6rem); }
.pm-home-capability-card { padding: clamp(1.25rem, 2vw, 1.75rem); }
.pm-home-capability-card:hover,
.pm-home-audience-card:hover {
  border-color: #d7e2f0;
  box-shadow: 0 8px 24px rgba(15,23,42,.055);
}
.pm-home-capability-card__icon {
  border: 1px solid #dbeafe;
  background: #f4f8ff;
  border-radius: .9rem;
}
.pm-home-capability-card__title { letter-spacing: -.02em; }
.pm-home-capability-card__body { color: #64748b; }
.pm-home-audience-card--buyer { background: linear-gradient(135deg,#f7faff,#fff 68%); }
.pm-home-audience-card--maker { background: linear-gradient(135deg,#f8fafc,#fff 68%); }
.pm-home-audience-card__visual { background: #f5f8fc; }

/* Hero: make the message and CTAs the focal point */
.pm-home-hero--immersive {
  min-height: clamp(27rem, 64vh, 39rem);
}
.pm-home-hero__content {
  max-width: 46rem;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.pm-home-hero__lead { max-width: 42rem; font-size: clamp(1rem, 1.35vw, 1.15rem); }
.pm-home-hero__promo { margin-top: 1.75rem; }
.pm-home-hero__ctas { margin-top: 1.35rem; gap: .85rem; }
.pm-home-trust-bar { gap: 1rem 1.8rem; margin-top: 2.25rem; }

/* Buttons: clear hierarchy, consistent sizing */
.pm-btn {
  border-radius: .75rem;
  font-size: .8125rem;
  font-weight: 700;
  padding: .75rem 1.1rem;
  min-height: 2.65rem;
}
.pm-btn--lg { min-height: 3.1rem; padding: .9rem 1.35rem; }
.pm-btn--primary {
  box-shadow: 0 3px 9px rgba(37,99,235,.14);
}
.pm-btn--primary:hover:not(:disabled) {
  box-shadow: 0 6px 16px rgba(37,99,235,.2);
  transform: translateY(-1px);
}
.pm-btn--secondary { border-color: #dbe3ee; background: #fff; }
.pm-btn--tertiary { color: #526176; }

/* Forms: professional and accessible */
.pm-input {
  min-height: 2.75rem;
  border-radius: .7rem;
  border-color: #dbe3ee;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.pm-input:focus {
  border-color: #7da9f8;
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}
.pm-form-shell { border-radius: 1.15rem; border-color: #e5eaf1; }
.pm-fieldset-legend { color: #142033; }

/* Knowledge illustrations, tables and diagrams: preserve their content, improve framing only */
.pm-knowledge-figure,
.pm-diagram-wrap,
.pm-table-wrap {
  border-radius: 1rem;
  border-color: #e5eaf1;
}
.pm-table-wrap { overflow-x: auto; }
table { border-color: #e5eaf1; }
thead th { color: #526176; background: #f6f8fb; }
tbody tr:hover { background: #f8fbff; }

/* Content illustrations: responsive, white canvas, no crop */
.pm-marketing-page img {
  max-width: 100%;
}
.pm-marketing-page img[alt*="図"],
.pm-marketing-page img[alt*="マップ"],
.pm-marketing-page img[alt*="フロー"] {
  object-fit: contain;
}
.pm-marketing-page .rounded-2xl {
  border-radius: 1rem;
}

/* Footer */
.pm-site-footer {
  background: #101f35;
  color: #e5edf8;
  border-top: 1px solid rgba(255,255,255,.08);
}
.pm-site-footer a { color: #cbd5e1; }
.pm-site-footer a:hover { color: #fff; }

/* Logged-in app: site header visible + workspace chrome */
@media (max-width: 767px) {
  .pm-mode-app {
    --pm-site-header-app-offset: 5.5rem;
  }
}

/* Logged-in app: separate product workspace, same brand language */
.pm-mode-app main { background: #f4f7fb; }
.pm-mode-maker-app .pm-maker-sidebar { border-right-color: #c7d2fe; }
.pm-app-sidebar {
  background: #fff;
  border-right-color: #e5eaf1;
}
.pm-app-topbar {
  background: rgba(255,255,255,.94);
  border-bottom-color: #e5eaf1;
}
.pm-app-nav-btn { border-radius: .7rem; }
.pm-app-nav-btn--active { background: #eff6ff; border-color: #dbeafe; }
.pm-app-stat-card, .pm-app-toolbar, .pm-app-task-item {
  border-radius: .9rem;
  border-color: #e5eaf1;
}

/* Mobile: compact navigation, comfortable reading and no horizontal overflow */
@media (max-width: 767px) {
  .pm-site-header__bar { min-height: 5.25rem; padding-block: .75rem; gap: .65rem; }
  .pm-site-header .pm-brand-lockup__logo { max-height: 3.5rem; max-width: min(16.5rem, 58vw); }
  .pm-brand-mark:not(.pm-brand-mark--image) { width: 2.35rem; height: 2.35rem; }
  .pm-brand-mark--image .pm-brand-mark__img { height: 3rem; }
  .pm-brand-name { font-size: 1.05rem; }
  .pm-marketing-shell { padding: 1.35rem 1rem 2.75rem; }
  .pm-home-hero--immersive { min-height: 33rem; }
  .pm-home-hero__content { padding: 3rem 1rem; }
  .pm-home-section-head { margin-bottom: 2rem; }
  .pm-home-capability-card { padding: 1.15rem; }
  .pm-card { padding: 1rem; }
  .pm-btn { min-height: 2.8rem; }
  .pm-home-trust-bar { gap: .8rem; }
  .pm-marketing-page .overflow-x-auto { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
