:root {
  --ink: #292723;
  --muted: #6f6a63;
  --paper: #fffdf9;
  --ivory: #f8f4ed;
  --sand: #efe7da;
  --rose: #b87874;
  --rose-dark: #82534f;
  --green: #486153;
  --green-soft: #e7eee8;
  --gold: #a78655;
  --line: #e5ddd2;
  --white: #fff;
  --shadow: 0 20px 60px rgba(64, 51, 37, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(184, 120, 116, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border-bottom: 1px solid rgba(229, 221, 210, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  max-width: var(--content);
  min-height: 70px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 18px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  color: #59544e;
  font-size: 14px;
}

.desktop-nav a {
  padding: 8px 0;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--rose-dark);
}

.mobile-menu {
  display: none;
  margin-left: auto;
}

.mobile-menu summary {
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu nav {
  position: absolute;
  top: 69px;
  right: 16px;
  left: 16px;
  display: grid;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.mobile-menu nav a {
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
}

.mobile-menu nav a:hover {
  background: var(--ivory);
}

.container {
  width: min(100% - 48px, var(--content));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.section.compact {
  padding: 72px 0;
}

.section.ivory {
  background: var(--ivory);
}

.section.green-soft {
  background: var(--green-soft);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 42px;
}

.section-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 24px;
  font-family: Georgia, "Yu Mincho", "YuMincho", serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.18;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Yu Mincho", "YuMincho", serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.3;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.45;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(35, 30, 26, 0.8) 0%, rgba(35, 30, 26, 0.58) 43%, rgba(35, 30, 26, 0.1) 76%),
    url("jema-hero-beauty-lifestyle.jpg") center / cover no-repeat;
}

.hero-content {
  max-width: 690px;
  padding: 110px 0 96px;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.hero-copy {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid var(--rose-dark);
  border-radius: 999px;
  color: var(--white);
  background: var(--rose-dark);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  background: #6f4542;
  box-shadow: 0 10px 24px rgba(130, 83, 79, 0.2);
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--rose-dark);
  background: transparent;
}

.button.secondary:hover {
  background: rgba(184, 120, 116, 0.08);
}

.button.light {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.button.light-outline {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
}

.text-link {
  color: var(--rose-dark);
  font-weight: 800;
  text-underline-offset: 4px;
}

.intro-grid,
.story-grid,
.about-grid,
.beauty-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.image-frame {
  position: relative;
  overflow: hidden;
  background: var(--sand);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame.landscape {
  aspect-ratio: 4 / 3;
}

.image-frame.portrait {
  aspect-ratio: 4 / 5;
}

.product-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.product-card {
  min-width: 0;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
}

.product-card h3 {
  margin: 16px 0 6px;
  font-size: 17px;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.path-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.path-card.primary {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.path-number {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  place-items: center;
  color: var(--rose-dark);
  background: var(--ivory);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.path-card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.path-card.primary p {
  color: rgba(255, 255, 255, 0.78);
}

.path-card .button,
.path-card .status {
  margin-top: auto;
}

.status {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  color: var(--muted);
  background: var(--ivory);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.story-copy p,
.about-copy p {
  color: var(--muted);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.note-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.note-card:hover {
  border-color: #cba9a5;
  box-shadow: 0 14px 34px rgba(64, 51, 37, 0.08);
  transform: translateY(-2px);
}

.note-card .source {
  margin-bottom: 18px;
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.note-card p {
  margin: 0;
  color: var(--muted);
}

.note-card .read-more {
  margin-top: auto;
  padding-top: 22px;
  color: var(--rose-dark);
  font-weight: 800;
}

.feature-band {
  color: #202842;
  background:
    radial-gradient(circle at 88% 18%, rgba(194, 111, 218, 0.2), transparent 34%),
    linear-gradient(135deg, #eef6ff 0%, #f7f1ff 54%, #fff7fb 100%);
}

.feature-band .eyebrow {
  color: #6253c7;
}

.feature-band .lead {
  color: #505a73;
}

.feature-band .button.light {
  color: var(--white);
  background: linear-gradient(135deg, #2767d7, #7440c9);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(92, 83, 201, 0.2);
}

.feature-band .button.light:hover {
  background: linear-gradient(135deg, #1f58c2, #6333b7);
}

.feature-band .button.light-outline {
  color: #40385f;
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(80, 69, 137, 0.34);
}

.feature-band .button.light-outline:hover {
  color: #2f2850;
  background: var(--white);
  border-color: rgba(80, 69, 137, 0.55);
}

.feature-band .external-note {
  color: #687087;
}

.feature-band-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: center;
}

.phone-preview {
  display: grid;
  min-height: 320px;
  place-items: center;
  padding: 36px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(91, 91, 152, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: 0 26px 70px rgba(67, 73, 131, 0.16);
  text-align: center;
}

.phone-preview img {
  width: min(190px, 62%);
  height: auto;
  margin-bottom: 18px;
  border-radius: 34px;
  box-shadow: 0 18px 45px rgba(48, 88, 185, 0.2);
}

.phone-preview strong {
  color: #202842;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.phone-preview span {
  color: #687087;
  font-size: 14px;
}

.company-list {
  display: grid;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.company-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

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

.company-row dt {
  font-weight: 800;
}

.company-row dd {
  margin: 0;
  color: var(--muted);
}

.external-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.page-hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, var(--ivory), var(--paper));
}

.page-hero h1 {
  max-width: 800px;
}

.beauty-hero-grid .image-frame {
  max-height: 580px;
}

.routine {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  counter-reset: routine;
}

.routine-step {
  position: relative;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  counter-increment: routine;
}

.routine-step::before {
  content: counter(routine, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  color: var(--rose-dark);
  font-size: 13px;
  font-weight: 800;
}

.routine-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.notice-box {
  padding: 22px 24px;
  color: var(--muted);
  background: var(--ivory);
  border-left: 4px solid var(--gold);
  border-radius: 4px 14px 14px 4px;
  font-size: 14px;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 34px;
  align-items: center;
  padding: 44px;
  color: var(--white);
  background: var(--green);
  border-radius: var(--radius-lg);
}

.cta-panel h2 {
  margin-bottom: 12px;
}

.cta-panel p {
  max-width: 670px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  padding: 54px 0 32px;
  color: #ddd5ca;
  background: #2f3530;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 46px;
}

.site-footer .brand {
  color: var(--white);
}

.site-footer p {
  color: #c8c0b6;
  font-size: 14px;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-links strong {
  margin-bottom: 6px;
  color: var(--white);
}

.footer-links a {
  color: #ddd5ca;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #aba49a;
  font-size: 12px;
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .intro-grid,
  .story-grid,
  .about-grid,
  .beauty-hero-grid,
  .feature-band-grid {
    grid-template-columns: 1fr;
  }

  .product-strip,
  .routine {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .path-card {
    min-height: 0;
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 62px;
    padding-inline: 18px;
  }

  .mobile-menu nav {
    top: 61px;
  }

  .container {
    width: min(100% - 32px, var(--content));
  }

  .section {
    padding: 72px 0;
  }

  .section.compact {
    padding: 56px 0;
  }

  .hero {
    min-height: 650px;
    background-position: 62% center;
  }

  .hero-content {
    padding: 92px 0 76px;
  }

  .hero-copy,
  .lead {
    font-size: 16px;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .product-strip,
  .routine,
  .note-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-panel {
    padding: 30px 24px;
  }

  .page-hero {
    padding: 72px 0 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
