/*
  概要: YuiMate LP の基本スタイル定義。
  主な仕様: 単一カラム中心の読みやすいレイアウトと、CTAを強調する配色を提供する。
  制限事項: デザインシステム未導入のため、将来的にコンポーネント化を推奨。
*/

:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --primary: #5b4fe9;
  --primaryDark: #4338ca;
  --primaryLight: #eef2ff;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP",
    "Hiragino Sans", "Yu Gothic UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(760px, calc(100% - 32px));
}

.siteHeader {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.siteHeader .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
}

.brandLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.brandIcon {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}

.brandName {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.brand a {
  color: inherit;
  text-decoration: none;
}

.topNav {
  display: flex;
  gap: 16px;
}

.topNav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
}

.topNav a.navLinkCurrent {
  color: var(--primaryDark);
}

.navLinkPrimary {
  font-weight: 600;
  color: var(--text);
}

.navLinkSecondary {
  font-size: 0.78rem;
  color: var(--muted);
}

.topNav a.navLinkCurrent .navLinkPrimary {
  color: var(--primaryDark);
}

.hero {
  padding: 40px 0 56px;
}

.appPitch {
  margin: 0 0 40px;
  padding: 28px 32px;
  max-width: 720px;
  background: linear-gradient(145deg, #ffffff 0%, var(--primaryLight) 100%);
  border: 1px solid rgba(91, 79, 233, 0.15);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(91, 79, 233, 0.1);
}

.appPitchEyebrow {
  margin: 0 0 16px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primaryDark);
}

.appPitchHeadline {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.appPitchEn {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

.appPitchFeatures {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.appPitchFeatures li {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(91, 79, 233, 0.2);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primaryDark);
}

.appPitchJa {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(91, 79, 233, 0.12);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero h1 {
  margin: 0 0 16px;
  line-height: 1.25;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

.entranceHeading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 20px;
  max-width: 720px;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.entranceHeadingEn {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.entranceHeadingJa {
  font-size: clamp(0.92rem, 1.8vw, 1.02rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--primaryDark);
}

.lead {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
}

.section {
  padding: 56px 0;
  background: var(--surface);
}

.section.alt {
  background: var(--primaryLight);
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
}

.cardList,
.steps {
  margin: 0 0 16px 20px;
  padding: 0;
}

.faqList dt {
  font-weight: 700;
  margin-top: 16px;
}

.faqList dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.howToGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.howToStep {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.howToStep img {
  width: 140px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  align-self: center;
  flex-shrink: 0;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}

.howToStepBody {
  flex: 1;
}

.howToStepNumber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.howToStep h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  line-height: 1.35;
}

.howToStep p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

.sectionLead {
  margin: -8px 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta {
  text-align: left;
}

.ctaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.entranceLinks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
  max-width: 720px;
}

.entranceLink {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 24px;
  border-radius: 14px;
  border: 2px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.entranceLink:hover {
  transform: translateY(-2px);
}

.entranceLinkPrimary {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 8px 28px rgba(91, 79, 233, 0.35);
}

.entranceLinkPrimary:hover {
  background: var(--primaryDark);
  box-shadow: 0 10px 32px rgba(91, 79, 233, 0.42);
}

.entranceLinkSecondary {
  color: var(--primary);
  background: var(--surface);
  border-color: var(--primary);
}

.entranceLinkSecondary:hover {
  background: var(--primaryLight);
}

.entranceLinkLabel {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.entranceLinkSub {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.88;
}

.entranceLinkDesc {
  margin-top: 8px;
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 500;
  line-height: 1.5;
}

.entranceLinkPrimary .entranceLinkDesc {
  color: rgba(255, 255, 255, 0.92);
}

.entranceLinkSecondary .entranceLinkDesc {
  color: var(--text);
}

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
}

.button.primary {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 4px 20px rgba(91, 79, 233, 0.35);
}

.button.primary:hover {
  background: var(--primaryDark);
}

.button.secondary {
  color: var(--primary);
  background: var(--surface);
  border-color: var(--primary);
}

.button.secondary:hover {
  background: var(--primaryLight);
}

.siteFooter {
  border-top: 1px solid var(--border);
  padding: 20px 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footerNav {
  margin-bottom: 8px;
}

.footerNav a {
  color: var(--muted);
  text-decoration: none;
}

.footerNav a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footerNavSep {
  margin: 0 8px;
  color: var(--border);
}

.supportContact {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--primaryLight);
  border: 1px solid rgba(91, 79, 233, 0.15);
  border-radius: 12px;
}

.supportContactLabel {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.supportContactEmail {
  margin: 0;
}

.supportContactEmail a {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--primaryDark);
  text-decoration: none;
}

.supportContactEmail a:hover {
  text-decoration: underline;
}

.legalProse h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 4vw, 2rem);
  line-height: 1.25;
}

.legalProse h2 {
  margin: 32px 0 12px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.legalProse h3 {
  margin: 20px 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.legalProse p,
.legalProse ul {
  margin: 0 0 12px;
}

.legalProse ul {
  padding-left: 1.25rem;
}

.legalProse li {
  margin-bottom: 4px;
}

.legalProse a {
  color: var(--primary);
}

.legalMeta {
  color: var(--muted);
  font-size: 0.92rem;
}

.langNav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0 28px;
  padding: 12px 16px;
  background: var(--primaryLight);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.langNavLabel {
  color: var(--muted);
  font-size: 0.88rem;
}

.langNav a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.langNav a:hover {
  text-decoration: underline;
}

.langBlock,
.langSection {
  scroll-margin-top: 72px;
}

.langSection {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .howToGrid {
    grid-template-columns: 1fr;
  }

  .howToStep {
    flex-direction: row;
    align-items: flex-start;
  }

  .howToStep img {
    width: 88px;
    height: auto;
    align-self: flex-start;
    margin: 0;
  }

  .topNav {
    gap: 8px;
  }

  .topNav a {
    font-size: 0.85rem;
    align-items: flex-end;
  }

  .navLinkSecondary {
    font-size: 0.7rem;
  }

  .siteHeader .container {
    min-height: 58px;
  }

  .hero {
    padding-top: 28px;
  }

  .entranceLinks {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .entranceLink {
    padding: 24px 20px;
  }

  .appPitch {
    padding: 22px 20px;
  }
}
