:root {
  color-scheme: light;
  --ink: #14201a;
  --muted: #52645b;
  --paper: #ffffff;
  --surface: #f4f8f5;
  --line-green: #06c755;
  --line-deep: #04883d;
  --teal: #126a72;
  --coral: #c5574d;
  --line: rgba(20, 32, 26, 0.14);
  --shadow: 0 24px 70px rgba(7, 58, 32, 0.16);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(6, 199, 85, 0.11), transparent 28rem),
    linear-gradient(135deg, #f9fbfa 0%, var(--paper) 48%, #ecf6f0 100%);
  color: var(--ink);
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1160px;
  padding: 24px clamp(18px, 5vw, 42px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--line-green);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 18px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

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

main {
  margin: 0 auto;
  max-width: 1160px;
  padding: 0 clamp(18px, 5vw, 42px) 56px;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(36px, 7vw, 82px);
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.76fr);
  min-height: calc(100vh - 96px);
  padding: 28px 0 52px;
}

.eyebrow {
  color: var(--line-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-size: clamp(44px, 7vw, 86px);
  font-weight: 800;
  line-height: 1.06;
  margin-bottom: 24px;
}

.lead {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.85;
  max-width: 650px;
}

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

.primary-link,
.secondary-link,
.legal-links a {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  padding: 13px 18px;
  text-decoration: none;
}

.line-friend-link {
  align-items: center;
  display: inline-flex;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 38%),
    linear-gradient(135deg, #06c755 0%, #07b74e 56%, #04883d 100%);
  box-shadow: 0 20px 42px rgba(6, 155, 67, 0.28);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 800;
  gap: 14px 18px;
  justify-content: space-between;
  min-height: 68px;
  padding: 14px 16px 14px 18px;
  position: relative;
  text-decoration: none;
  width: min(100%, 480px);
}

.line-friend-link::after {
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  content: ">";
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.line-friend-main {
  align-items: center;
  display: inline-flex;
  gap: 12px;
}

.line-friend-badge {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  color: var(--line-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 7px 10px;
}

.line-friend-text {
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 900;
  line-height: 1;
}

.line-friend-meta {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.line-friend-link:hover {
  box-shadow: 0 24px 48px rgba(6, 155, 67, 0.34);
  transform: translateY(-1px);
}

.primary-link {
  background: var(--line-green);
  color: #ffffff;
}

.secondary-link,
.legal-links a {
  border: 1px solid var(--line);
  color: var(--teal);
}

.line-visual {
  justify-self: center;
  max-width: 390px;
  width: 100%;
}

.phone-shell {
  background: #111a15;
  border: 9px solid #0a120e;
  border-radius: 32px;
  box-shadow: var(--shadow);
  color: #ffffff;
  min-height: 610px;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.phone-shell::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 40%),
    radial-gradient(circle at 100% 20%, rgba(6, 199, 85, 0.42), transparent 38%);
  content: "";
  inset: 0;
  position: absolute;
}

.phone-top,
.message,
.match-card {
  position: relative;
}

.phone-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.phone-top span {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 99px;
  height: 8px;
  width: 42px;
}

.message {
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 12px;
  max-width: 82%;
  padding: 12px 14px;
}

.message.bot {
  background: rgba(255, 255, 255, 0.12);
  border-bottom-left-radius: 6px;
}

.message.user {
  background: var(--line-green);
  border-bottom-right-radius: 6px;
  color: #ffffff;
  margin-left: auto;
}

.match-card {
  background: var(--paper);
  border-radius: 18px;
  color: var(--ink);
  margin-top: 34px;
  padding: 20px;
}

.match-card span {
  color: var(--line-deep);
  display: block;
  font-weight: 900;
  margin-bottom: 8px;
}

.match-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

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

.intro-band {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

.intro-band h2,
.safety-grid h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.intro-band p,
.safety-grid p,
.flow-list p,
.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.82;
}

.flow-section,
.safety-section,
.legal-callout {
  padding: clamp(58px, 8vw, 96px) 0 0;
}

.section-heading {
  margin-bottom: 26px;
  max-width: 620px;
}

.section-heading h2,
.legal-callout h2,
.legal-hero h1 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  margin-bottom: 0;
}

.flow-list {
  display: grid;
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.flow-list li {
  align-items: start;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  display: grid;
  gap: 22px;
  grid-template-columns: 54px minmax(0, 1fr);
  padding: clamp(20px, 4vw, 32px);
}

.flow-list li:first-child {
  border-radius: 8px 8px 0 0;
}

.flow-list li:last-child {
  border-radius: 0 0 8px 8px;
}

.flow-list span {
  color: var(--line-green);
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 800;
}

.flow-list h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.flow-list p {
  margin-bottom: 0;
}

.safety-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.safety-grid article {
  border-top: 3px solid var(--line-green);
  padding-top: 18px;
}

.legal-callout {
  align-items: end;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-top: 72px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 14px;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1160px;
  padding: 24px clamp(18px, 5vw, 42px);
}

.site-footer a {
  text-decoration: none;
}

.legal-page {
  max-width: 940px;
}

.legal-hero {
  padding: clamp(52px, 8vw, 92px) 0 42px;
}

.legal-hero p:last-child {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  max-width: 720px;
}

.legal-content {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 48px);
}

.legal-content section + section {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 30px;
}

.legal-content h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.legal-content p:last-child,
.legal-content ul {
  margin-bottom: 0;
}

.legal-content ul {
  padding-left: 1.2em;
}

.legal-content a {
  color: var(--line-deep);
  font-weight: 800;
}

@media (max-width: 840px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .intro-band,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .line-visual {
    justify-self: start;
  }

  .phone-shell {
    min-height: 560px;
  }

  .legal-callout {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav a {
    font-size: 13px;
  }

  h1 {
    font-size: 42px;
  }

  .flow-list li {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
