/* =========================================================
   Malet Palet — Corporate Site Styles
   ========================================================= */

:root {
  --color-bg: #fbfaf6;
  --color-surface: #ffffff;
  --color-muted: #f3f1ea;
  --color-ink: #14141b;
  --color-ink-2: #4b4b57;
  --color-line: #e6e3da;

  --color-accent-1: #f97316;
  --color-accent-2: #ec4899;
  --color-accent-3: #8b5cf6;
  --gradient-brand: linear-gradient(
    135deg,
    var(--color-accent-1) 0%,
    var(--color-accent-2) 50%,
    var(--color-accent-3) 100%
  );

  --max-w: 1140px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 27, 0.04), 0 2px 8px rgba(20, 20, 27, 0.04);
  --shadow-md: 0 6px 24px rgba(20, 20, 27, 0.08);
  --header-h: 68px;

  --font-sans: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}

/* ---------- A11y ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}
:focus-visible {
  outline: 2px solid var(--color-accent-3);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 40px, var(--max-w));
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}
.section-muted {
  background: var(--color-muted);
}
.section-head {
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head.center {
  text-align: center;
}
.section-eyebrow,
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink-2);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.section-desc {
  margin-top: 14px;
  color: var(--color-ink-2);
}

.pc-only {
  display: inline;
}
@media (max-width: 640px) {
  .pc-only {
    display: none;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--color-line);
  opacity: 0.6;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.08);
}
.brand-text {
  font-size: 18px;
}

.primary-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
}
.primary-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink-2);
  transition: color 0.15s ease;
}
.primary-nav a:hover {
  color: var(--color-ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: var(--color-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--color-bg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 4px;
    padding: 24px 20px 40px;
    align-items: stretch;
  }
  .primary-nav a {
    display: block;
    padding: 14px 8px;
    font-size: 18px;
    border-bottom: 1px solid var(--color-line);
  }
  body.is-nav-open {
    overflow: hidden;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vw, 140px) 0 clamp(80px, 12vw, 140px);
  background:
    radial-gradient(1100px 500px at 12% -10%, rgba(249, 115, 22, 0.10), transparent 60%),
    radial-gradient(900px 480px at 90% 0%, rgba(139, 92, 246, 0.10), transparent 60%),
    radial-gradient(700px 400px at 60% 110%, rgba(236, 72, 153, 0.10), transparent 60%),
    var(--color-bg);
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: left;
}
.hero-title {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.25;
  letter-spacing: 0.01em;
  font-weight: 700;
  margin-top: 8px;
}
.grad-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin-top: 24px;
  max-width: 640px;
  color: var(--color-ink-2);
  font-size: clamp(15px, 1.5vw, 17px);
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-deco .dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  filter: blur(0.2px);
  opacity: 0.85;
}
.hero-deco .dot-a {
  top: 22%;
  right: 8%;
  background: var(--color-accent-1);
}
.hero-deco .dot-b {
  top: 64%;
  right: 20%;
  width: 10px;
  height: 10px;
  background: var(--color-accent-2);
}
.hero-deco .dot-c {
  top: 36%;
  right: 30%;
  width: 8px;
  height: 8px;
  background: var(--color-accent-3);
}
.hero-deco .dot-d {
  top: 80%;
  right: 6%;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-3));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: #2a2a36;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border-color: var(--color-line);
  color: var(--color-ink);
}
.btn-ghost:hover {
  border-color: var(--color-ink);
}

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
.two-col-body p + p {
  margin-top: 16px;
  color: var(--color-ink-2);
}
.two-col-body p:first-child {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 500;
  color: var(--color-ink);
}
@media (max-width: 820px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 980px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  color: #fff;
  margin-bottom: 20px;
}
.card-icon svg {
  width: 24px;
  height: 24px;
}
.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.card-text {
  color: var(--color-ink-2);
  font-size: 15px;
}
.card-list {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--color-line);
  display: grid;
  gap: 8px;
}
.card-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--color-ink-2);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  counter-reset: feat;
}
@media (max-width: 820px) {
  .features {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.feature {
  position: relative;
  padding: 28px 4px 4px;
  border-top: 2px solid var(--color-ink);
}
.feature-num {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--color-ink-2);
  margin-bottom: 10px;
}
.feature-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature p {
  color: var(--color-ink-2);
  font-size: 15px;
}

/* ---------- Company table ---------- */
.company-table-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 820px;
  margin-inline: auto;
  box-shadow: var(--shadow-sm);
}
.company-table {
  width: 100%;
  border-collapse: collapse;
}
.company-table th,
.company-table td {
  text-align: left;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-line);
  font-size: 15px;
  vertical-align: top;
}
.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: 0;
}
.company-table th {
  width: 180px;
  font-weight: 600;
  color: var(--color-ink-2);
  background: #faf9f5;
}
@media (max-width: 640px) {
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 14px 18px;
  }
  .company-table th {
    border-bottom: 0;
    padding-bottom: 4px;
    background: transparent;
    color: var(--color-ink-2);
    font-size: 13px;
    letter-spacing: 0.05em;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-line);
  background: var(--color-bg);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.copyright {
  font-size: 13px;
  color: var(--color-ink-2);
}

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