/* Office Miyachi — site stylesheet (shared by company top + all apps) */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --fg: #1a1a1a;
  --muted: #5a5a5a;
  --accent: #0066cc;
  --accent-hover: #004f9e;
  --accent-soft: #e5f0ff;
  --border: #e0e0e0;
  --border-strong: #cfd8e3;
  --shadow-sm: 0 1px 2px rgba(15, 30, 60, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 30, 60, 0.08);
  --radius: 10px;
  --max-width: 880px;
  --max-width-prose: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Yu Gothic UI", "Segoe UI", "Hiragino Sans",
               -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ----- Layout containers ----- */

header, main, footer {
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

header, footer {
  max-width: var(--max-width);
}

main {
  max-width: var(--max-width);
  flex: 1;
  padding-bottom: 56px;
}

main.prose {
  max-width: var(--max-width-prose);
}

/* ----- Top-bar header (used on sub pages) ----- */

header {
  padding-top: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

header h1 a {
  color: var(--fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

header h1 .logo-mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: linear-gradient(135deg, #0066cc 0%, #2a8af6 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

header .lede {
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* ----- Hero (index page) ----- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(42, 138, 246, 0.18), transparent 60%),
    radial-gradient(800px 360px at -10% 110%, rgba(0, 102, 204, 0.12), transparent 60%),
    linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  margin: 0 0 12px 0;
  font-size: 38px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-text h1 .logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0066cc 0%, #2a8af6 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.hero-text .tagline {
  margin: 0 0 24px 0;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #0a76e0 0%, #0061c4 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #1485ef 0%, #0a6cd6 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: #fff;
  color: var(--accent);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
  text-decoration: none;
}

/* Microsoft Store badge style (used on LP hero and buy notice) */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #111;
  color: #fff;
  padding: 10px 22px 10px 18px;
  border-radius: 6px;
  border: 1px solid #111;
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.5);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-store:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.55);
}

.btn-store-mark {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 22px;
  height: 22px;
}

.btn-store-mark span {
  display: block;
  background: #fff;
  border-radius: 1px;
}

.btn-store-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  align-items: flex-start;
}

.btn-store-text .small {
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  opacity: 0.78;
  font-weight: 400;
  margin-bottom: 2px;
}

.btn-store-text .large {
  font-size: 14px;
  letter-spacing: 0.005em;
  font-weight: 600;
}

.hero-mock {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 110px 1fr;
}

.hero-mock-thumbs {
  background: #fafbfd;
  border-right: 1px solid var(--border);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-mock-thumb {
  height: 56px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f3f8 100%);
  border: 1px solid var(--border);
  position: relative;
}

.hero-mock-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(10, 118, 224, 0.18);
}

.hero-mock-thumb::after {
  content: "";
  position: absolute;
  inset: 8px 10px;
  background: repeating-linear-gradient(
    180deg,
    #d8dee7 0px,
    #d8dee7 1.5px,
    transparent 1.5px,
    transparent 8px
  );
  opacity: 0.6;
}

.hero-mock-page {
  background: #ffffff;
  padding: 16px;
}

.hero-mock-page-inner {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: repeating-linear-gradient(
    180deg,
    #e6eaf0 0px,
    #e6eaf0 2px,
    transparent 2px,
    transparent 14px
  );
  background-color: #fcfdfe;
}

/* ----- Feature cards ----- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 8px 0 0 0;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: border-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.feature-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ----- Sections ----- */

main section + section {
  margin-top: 40px;
}

main h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.01em;
}

main ul, main ol {
  padding-left: 22px;
}

main li {
  margin-bottom: 4px;
}

.pricing {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.pricing p {
  margin: 0 0 8px 0;
}

.pricing p:last-child {
  margin-bottom: 0;
}

/* ----- General typography ----- */

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: 14px;
}

small {
  color: var(--muted);
  font-size: 13px;
}

.note {
  background: #fff8e1;
  border-left: 4px solid #f4b400;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14px;
  border-radius: 4px;
}

.page-back-link {
  margin: 0 0 20px 0;
  font-size: 14px;
}

.page-back-link a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.page-back-link a:hover {
  color: var(--accent);
  text-decoration: none;
}

.prose p, .prose li {
  font-size: 15px;
}

.prose h2 {
  margin-top: 36px;
}

table.kv {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

table.kv th, table.kv td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

table.kv tr:last-child th,
table.kv tr:last-child td {
  border-bottom: none;
}

table.kv th {
  background: var(--bg-soft);
  width: 30%;
  font-weight: 600;
  color: var(--muted);
}

.cta-card {
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  border: 1px solid #cfe3ff;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.cta-card h2 {
  border-bottom: none;
  margin: 0 0 12px 0;
  color: var(--accent);
}

footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 13px;
  color: var(--muted);
}

footer nav {
  margin-bottom: 8px;
}

footer .copyright {
  margin: 0;
}

/* ----- Responsive ----- */

@media (max-width: 760px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 24px 44px;
  }
  .hero-text h1 { font-size: 30px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  header { padding-top: 24px; }
  header h1 { font-size: 20px; }
  main h2 { font-size: 18px; }
  table.kv th, table.kv td { padding: 10px 12px; font-size: 13px; }
  table.kv th { width: 38%; }
  .hero-text h1 { font-size: 26px; }
  .hero-text h1 .logo-mark { width: 36px; height: 36px; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Top page (Office Miyachi portfolio) — extends .hero / global section h2
   ===================================================================== */

/* ----- Top hero: 2-col text + flagship spotlight ----- */

.hero--top {
  background:
    radial-gradient(1000px 420px at 95% -10%, rgba(255, 138, 76, 0.16), transparent 55%),
    radial-gradient(900px 400px at 0% 100%, rgba(42, 138, 246, 0.18), transparent 55%),
    radial-gradient(700px 320px at 50% 50%, rgba(150, 100, 230, 0.08), transparent 60%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.page-top .hero-text h1 {
  display: block;
  gap: 0;
  font-size: 44px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.018em;
  color: #1a1a1a;
}

.hero-text .hero-eyebrow {
  margin: 0 0 14px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-h1-accent {
  color: #0a6cd6;
}

.hero-h1-accent--warm {
  color: #d4691f;
}

.page-top .hero-text .tagline {
  margin: 0 0 20px 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: rgba(10, 108, 214, 0.06);
  border: 1px solid rgba(10, 108, 214, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #0a6cd6;
}

.hero-meta-item svg {
  color: #0a6cd6;
}

/* ----- Hero right: flagship product spotlight ----- */

.hero-feature {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-feature-bg {
  position: absolute;
  inset: 12px;
  z-index: 0;
  border-radius: 24px;
  background:
    radial-gradient(280px 220px at 75% 25%, rgba(255, 138, 76, 0.20), transparent 60%),
    radial-gradient(280px 220px at 25% 80%, rgba(42, 138, 246, 0.24), transparent 60%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-feature-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 280px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px 24px;
  text-align: center;
  box-shadow: 0 18px 44px rgba(15, 30, 60, 0.10);
}

.hero-feature-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff7a59 0%, #ff9a40 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(255, 122, 89, 0.30);
}

.hero-feature-icon {
  display: block;
  width: 140px;
  height: 140px;
  margin: 0 auto 14px;
  filter: drop-shadow(0 8px 20px rgba(15, 30, 60, 0.14));
}

.hero-feature-title {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}

.hero-feature-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* ----- Section wrapper used on top page ----- */

.section-block {
  margin-bottom: 56px;
}

.section-block:last-of-type {
  margin-bottom: 0;
}

/* ----- Platform chip on app card ----- */

.app-card-platform {
  margin: 0 0 8px 0;
}

.platform-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  padding: 3px 10px;
  border-radius: 999px;
}

.platform-chip--windows {
  background: rgba(10, 108, 214, 0.10);
  color: #0a6cd6;
  border: 1px solid rgba(10, 108, 214, 0.22);
}

/* ----- App portfolio cards (top page) ----- */

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0;
}

.app-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 32px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid #0a6cd6;
  border-radius: 14px;
  padding: 32px 36px 32px 34px;
  transition: box-shadow 0.2s ease, transform 0.12s ease, border-color 0.2s ease;
}

.app-card:hover {
  border-color: #cfe0f5;
  border-left-color: #0a6cd6;
  box-shadow: 0 14px 36px rgba(15, 30, 60, 0.08);
  transform: translateY(-2px);
}

.app-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0066cc 0%, #2a8af6 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.app-card-body h3 {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--fg);
}

.app-card-tagline {
  margin: 0 0 10px 0;
  color: var(--fg);
  font-size: 15px;
  line-height: 1.65;
}

.app-card-meta {
  margin: 0 0 16px 0;
  color: var(--muted);
  font-size: 13px;
}

.app-card-cta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ----- Value cards (About Office Miyachi) ----- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 8px 0 0 0;
}

.value-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.value-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.value-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(10, 108, 214, 0.10) 0%, rgba(10, 108, 214, 0.20) 100%);
  color: #0a6cd6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.value-card-icon--warm {
  background: linear-gradient(135deg, rgba(255, 138, 76, 0.10) 0%, rgba(255, 138, 76, 0.22) 100%);
  color: #d4691f;
}

.value-card-icon--purple {
  background: linear-gradient(135deg, rgba(150, 100, 230, 0.10) 0%, rgba(150, 100, 230, 0.20) 100%);
  color: #6b46c1;
}

.value-card h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}

.value-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ----- Support card (uses .pricing-like framed background) ----- */

.support-card {
  background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 100%);
  border: 1px solid #d8e8f7;
  border-radius: var(--radius);
  padding: 26px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.support-card-body p {
  margin: 0;
}

.support-card-email {
  margin: 10px 0 6px 0 !important;
  font-size: 18px;
  font-weight: 600;
}

.support-card-note {
  color: var(--muted);
  font-size: 13px;
}

.support-card-side {
  display: flex;
  align-items: center;
}

/* ----- Logo / icon as raster image (no gradient wrapper) ----- */

.logo-mark.logo-mark--image,
.app-card-icon.app-card-icon--image {
  background: none;
  box-shadow: none;
  color: inherit;
}

.app-card-icon.app-card-icon--image {
  width: 96px;
  height: 96px;
}

.hero-text h1 .logo-mark.logo-mark--image {
  width: 56px;
  height: 56px;
  border-radius: 0;
}

header h1 .logo-mark.logo-mark--image {
  width: 32px;
  height: 32px;
  border-radius: 0;
}

.logo-mark--image img,
.app-card-icon--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ----- Top page responsive ----- */

@media (max-width: 760px) {
  .page-top .hero-text h1 { font-size: 36px; }
  .hero-meta { gap: 8px; }
  .hero-meta-item { padding: 6px 11px; font-size: 12px; }
  .hero-feature { min-height: auto; padding-top: 8px; }
  .hero-feature-card { max-width: 240px; padding: 24px 20px 20px; }
  .hero-feature-icon { width: 110px; height: 110px; }
  .value-grid { grid-template-columns: 1fr; }
  .app-card {
    grid-template-columns: 80px 1fr;
    gap: 20px;
    padding: 24px 22px 24px 20px;
  }
  .app-card-icon.app-card-icon--image { width: 80px; height: 80px; }
  .app-card-body h3 { font-size: 20px; }
  .support-card {
    grid-template-columns: 1fr;
    padding: 22px 22px;
  }
  .support-card-side { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .page-top .hero-text h1 { font-size: 30px; line-height: 1.22; }
  .hero-meta-item { font-size: 11px; }
  .app-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 20px 22px 18px;
    text-align: left;
  }
  .app-card-icon.app-card-icon--image { width: 72px; height: 72px; }
  .app-card-body h3 { font-size: 19px; }
}
