*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN',
    'Yu Gothic', 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Layout — containers
   ============================================================ */

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

/* Standard container — support / privacy / terms and LP content sections */
.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Wide container — LP header and hero only */
.container-wide {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
   Header — shared (support / privacy / terms)
   ============================================================ */

header {
  padding: 40px 0 32px;
  border-bottom: 1px solid #f0f0f0;
}

header .container {
  display: flex;
  align-items: center;
}

.site-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  text-decoration: none;
}

/* ============================================================
   Main — shared
   ============================================================ */

main {
  flex: 1;
  padding: 64px 0 80px;
}

.page-heading {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
  color: #1a1a1a;
}

.section {
  margin-bottom: 56px;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 20px;
}

/* ============================================================
   Typography
   ============================================================ */

p {
  font-size: 15px;
  color: #444;
  margin-bottom: 16px;
}

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

a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #555;
}

.divider {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 40px 0;
}

/* ============================================================
   Support page — FAQ
   ============================================================ */

.faq-item {
  margin-bottom: 40px;
}

.faq-question {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.faq-answer {
  font-size: 15px;
  color: #444;
}

.contact-email {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 1px;
}

.contact-email:hover {
  color: #555;
  border-bottom-color: #555;
}

/* ============================================================
   Privacy / Terms — policy content placeholder
   ============================================================ */

.policy-content {
  font-size: 15px;
  color: #444;
}

.policy-content h2 {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 40px;
  margin-bottom: 12px;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p {
  margin-bottom: 16px;
}

.policy-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.policy-content li {
  margin-bottom: 8px;
}

/* ============================================================
   Footer — shared
   ============================================================ */

footer {
  padding: 32px 0 40px;
  border-top: 1px solid #f0f0f0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: #aaa;
  text-decoration: none;
}

.footer-links a:hover {
  color: #1a1a1a;
}

.footer-contact {
  font-size: 13px;
  color: #aaa;
  text-decoration: none;
}

.footer-contact:hover {
  color: #1a1a1a;
}

/* ============================================================
   LP — Header
   ============================================================ */

.lp-header {
  padding: 28px 0;
  border-bottom: none;
}

.lp-header .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-header .site-title {
  font-size: 18px;
}

/* ============================================================
   LP — Hero (two-column layout)
   ============================================================ */

.lp-hero {
  padding: 72px 0 96px;
  overflow: hidden;
}

.lp-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Left column */
.lp-hero-content {
  /* inherits from grid */
}

.lp-hero-headline {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.lp-hero-body {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* App Store button */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 12px;
  letter-spacing: 0.01em;
  transition: background 0.15s ease;
}

.appstore-btn:hover {
  background: #333;
  color: #fff;
}

.appstore-btn svg {
  flex-shrink: 0;
}

/* ============================================================
   LP — Phone mockup (right column)
   ============================================================ */

.lp-mockup-area {
  position: relative;
  height: 480px;
  /* Phones are absolutely positioned inside */
}

/* Base phone frame */
.lp-phone {
  position: absolute;
  overflow: hidden;
  background: #f2f2f2;
}

.lp-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*
  Main phone — front center
  Image to replace: /images/screen-list.png (募集一覧画面)
  Swap .lp-phone-placeholder with:
    <img src="/images/screen-list.png" alt="募集一覧画面" />
*/
.lp-phone-main {
  width: 180px;
  height: 390px;
  border-radius: 36px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.18),
    0 6px 20px rgba(0, 0, 0, 0.08);
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/*
  Back-left phone — behind and left
  Image to replace: /images/screen-chat.png (チャット画面)
*/
.lp-phone-back-left {
  width: 152px;
  height: 330px;
  border-radius: 28px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);
  z-index: 1;
  opacity: 0.82;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% - 110px), calc(-50% + 18px)) rotate(-4deg);
}

/*
  Back-right phone — behind and right
  Image to replace: /images/screen-detail.png (募集詳細画面)
*/
.lp-phone-back-right {
  width: 152px;
  height: 330px;
  border-radius: 28px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);
  z-index: 2;
  opacity: 0.9;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + 85px), calc(-50% - 18px)) rotate(4deg);
}

/* Placeholder shown before real screenshots are added */
.lp-phone-placeholder {
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-phone-placeholder span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c0c0c0;
}

/* ============================================================
   LP — Content sections (About / How it works / Safety)
   ============================================================ */

.lp-section {
  padding: 72px 0;
  border-top: 1px solid #f0f0f0;
}

.lp-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FF8000;
  margin-bottom: 16px;
}

.lp-section-heading {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.4;
}

.lp-section-body {
  font-size: 15px;
  color: #555;
  line-height: 1.85;
  max-width: 560px;
}

/* Steps */
.lp-steps {
  margin-top: 40px;
}

.lp-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 20px;
  padding: 28px 0;
  border-top: 1px solid #f4f4f4;
}

.lp-step:first-child {
  border-top: none;
  padding-top: 0;
}

.lp-step-number {
  font-size: 13px;
  font-weight: 700;
  color: #FF8000;
  letter-spacing: 0.02em;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}

.lp-step-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.lp-step-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Safety */
.lp-safety-list {
  margin-top: 32px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lp-safety-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.lp-safety-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #FF8000;
}

.lp-safety-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.lp-safety-text span {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
}

/* ============================================================
   Mobile — up to 768px: hero switches to single column
   ============================================================ */

@media (max-width: 768px) {
  .lp-hero {
    padding: 48px 0 64px;
  }

  .lp-hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .lp-hero-headline {
    font-size: 32px;
  }

  /* On mobile, show only the main phone centered */
  .lp-mockup-area {
    height: 360px;
  }

  .lp-phone-back-left,
  .lp-phone-back-right {
    display: none;
  }

  .lp-phone-main {
    width: 160px;
    height: 347px;
  }
}

/* ============================================================
   Mobile — up to 600px: shared page adjustments
   ============================================================ */

@media (max-width: 600px) {
  header {
    padding: 28px 0 24px;
  }

  main {
    padding: 48px 0 64px;
  }

  .page-heading {
    font-size: 24px;
    margin-bottom: 36px;
  }

  .container-wide {
    padding: 0 24px;
  }

  .lp-section {
    padding: 56px 0;
  }

  .lp-section-heading {
    font-size: 21px;
  }

  .lp-step {
    grid-template-columns: 40px 1fr;
    gap: 0 16px;
    padding: 24px 0;
  }

  .footer-links {
    gap: 20px;
  }
}
