/* Shared styles for the public pages of the app.
   Follows the app's look (white surface, thin rules, generous spacing);
   the accent colors come from the app icon. */

:root {
  --ink: #2c3755;        /* icon navy */
  --coral: #ef5b63;      /* icon crest */
  --amber: #f5a524;      /* icon beak; decoration only (low contrast on white) */
  --amber-text: #a15c00; /* amber for text, about 5.2:1 on white */
  --text: #1f2433;
  --muted: #5b6478;
  --line: #e3e6ee;
  --surface: #ffffff;
  --surface-2: #f6f7fa;
  --max: 1040px;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* Keep in-page targets clear of the sticky header. */
section[id] { scroll-margin-top: 80px; }

body {
  margin: 0;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
a:hover { color: var(--coral); }

img { max-width: 100%; height: auto; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.95rem; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
h1 {
  font-size: clamp(1.55rem, 3.6vw, 2.4rem);
  line-height: 1.4;
  margin: 0 0 20px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
/* Wrap headings at phrase boundaries instead of inside a word. */
.phrase { display: inline-block; }
.lead { font-size: 1.05rem; color: var(--muted); margin: 0 0 28px; }

.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  min-height: 48px;
}
.store:hover { background: #3a4870; color: #fff; }
.store svg { width: 20px; height: 20px; fill: currentColor; }
.store-note { color: var(--muted); font-size: 0.9rem; margin: 12px 0 0; }

/* Screenshots inside a CSS-drawn phone frame (not modeled on any real device). */
.shot {
  position: relative;
  margin: 0;
  padding: 26px 12px 18px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2a3450 0%, #1b2236 60%, #141a2b 100%);
  box-shadow:
    0 28px 48px rgba(44, 55, 85, 0.22),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.shot::before {
  /* front camera on the top bezel */
  content: '';
  position: absolute;
  top: 9px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: #0a0d16;
  box-shadow: inset 0 0 0 2px #2d3550, 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.shot::after {
  /* power button on the right edge */
  content: '';
  position: absolute;
  top: 22%;
  right: -3px;
  width: 3px;
  height: 11%;
  border-radius: 2px;
  background: #2d3550;
}
.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 1080 / 2400;
  object-fit: cover;
  border-radius: 24px;
  background: var(--surface-2);
}
.hero .shot { max-width: 320px; margin: 0 auto; }
.hero-figure { margin: 0; }
.hero-figure figcaption {
  max-width: 320px;
  margin: 16px auto 0;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}

/* Sections */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 0 32px; }
h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.4;
  margin: 0 0 12px;
  color: var(--ink);
}
.section-head p { margin: 0; color: var(--muted); }

/* Recruitments and deals: alternating steps */
.steps { display: grid; gap: 40px; }
.step {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: center;
}
.step:nth-child(even) { grid-template-columns: 260px 1fr; }
.step:nth-child(even) .step-text { order: 2; }
.step-num {
  display: inline-block;
  color: var(--amber-text);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.step h3 { font-size: 1.3rem; margin: 0 0 10px; color: var(--ink); }
.step p { margin: 0; color: var(--text); }

/* Goods management: gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }

/* Data protection: items */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.rule { padding: 20px 0; border-bottom: 1px solid var(--line); }
.rule h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--ink); }
.rule h3::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--coral);
  margin-right: 10px;
  vertical-align: 2px;
}
.rule p { margin: 0; color: var(--text); }
.aside { margin: 28px 0 0; color: var(--muted); }
.trust-figure { max-width: 300px; margin: 32px auto 0; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary {
  display: flex;
  align-items: baseline;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q'; color: var(--amber-text); font-weight: 700; margin-right: 12px; }
/* Open/closed marker in place of the hidden default triangle. */
.faq summary::after { content: '+'; margin-left: auto; padding-left: 16px; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 10px 0 0 28px; color: var(--text); }

/* Closing call to action */
.closing { text-align: center; padding: 64px 0; border-top: 1px solid var(--line); background: var(--surface-2); }
.closing h2 { margin-bottom: 20px; }
.closing .stores { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); }

/* Documents (terms of use, privacy policy) */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 64px; }
.doc h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.doc .effective { color: var(--muted); margin: 0 0 32px; }
.doc h2 {
  font-size: 1.2rem;
  margin: 40px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--coral);
}
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.4em; }
.doc li { margin-bottom: 0.4em; }
.doc .important {
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  background: var(--surface-2);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 16px 0;
}
.doc .contact {
  margin-top: 40px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.doc .contact ul { margin: 8px 0 0; }

@media (max-width: 800px) {
  .hero { padding: 40px 0 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero .shot { max-width: 260px; }
  .hero-figure figcaption { max-width: 300px; }
  .step, .step:nth-child(even) { grid-template-columns: 1fr; }
  .step:nth-child(even) .step-text { order: 0; }
  .step .shot { max-width: 240px; margin: 0 auto; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .shot { max-width: 260px; margin: 0 auto; }
  .rules { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}
