:root {
  --ink: #1b302d;
  --muted: #63716e;
  --paper: #f7f8f4;
  --white: #ffffff;
  --line: #d9dfdc;
  --mint: #d9f2e9;
  --aqua: #e2f5fb;
  --blue: #0775af;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans JP', 'Yu Gothic', sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  height: 88px;
  max-width: 1320px;
  margin: auto;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark { font-size: 20px; font-weight: 700; letter-spacing: -.04em; }
.wordmark span { color: #18a182; }
nav { display: flex; gap: 36px; color: var(--muted); font-size: 13px; }
nav a:hover, .footer-links a:hover { color: var(--ink); }

.hero {
  position: relative;
  min-height: 610px;
  max-width: 1248px;
  margin: 0 auto;
  padding: 108px 72px 56px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--mint);
}
.hero::after {
  content: 'R';
  position: absolute;
  right: -30px;
  top: -135px;
  color: rgba(255,255,255,.62);
  font-size: 660px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.12em;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-label, .section-label, .section-heading > p, .app-number {
  margin: 0;
  color: #397066;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 { margin: 28px 0 24px; font-size: clamp(52px, 6.2vw, 86px); line-height: 1.3; letter-spacing: -.045em; }
.hero-copy { max-width: 580px; margin: 0 0 38px; color: #52645f; font-size: 17px; line-height: 2; }
.text-link { display: inline-block; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-size: 14px; font-weight: 500; }
.hero-note { position: absolute; left: 72px; right: 72px; bottom: 36px; display: flex; gap: 28px; color: #64867e; font-size: 11px; letter-spacing: .08em; }
.hero-note span:first-child { margin-right: auto; }

.apps { max-width: 1248px; margin: auto; padding: 130px 0; }
.section-heading { display: grid; grid-template-columns: .65fr 1.35fr; align-items: start; margin-bottom: 56px; }
.section-heading h2, .about h2, .contact h2 { margin: 0; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.5; letter-spacing: -.035em; }
.app-feature { display: grid; grid-template-columns: 1.25fr .75fr; min-height: 620px; overflow: hidden; border-radius: 28px; background: var(--white); }
.app-visual { position: relative; min-height: 620px; overflow: hidden; }
.app-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.app-visual:hover img { transform: scale(1.015); }
.app-status { position: absolute; top: 24px; left: 24px; padding: 10px 15px; border-radius: 999px; background: rgba(255,255,255,.9); font-size: 12px; }
.app-info { padding: 58px 48px; display: flex; flex-direction: column; align-items: flex-start; }
.app-number { color: #478297; }
.aqua-logo { width: 260px; margin: 76px 0 34px; }
.app-info h3 { margin: 0 0 22px; font-size: 32px; line-height: 1.55; letter-spacing: -.025em; }
.app-info > p:not(.app-number) { margin: 0; color: var(--muted); font-size: 15px; line-height: 2; }
.button { margin-top: auto; width: 100%; min-height: 58px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-radius: 999px; background: var(--ink); color: white; font-size: 14px; font-weight: 500; }
.button:hover { background: #284841; }
.next-app { margin-top: 22px; padding: 25px 30px; display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.next-app p { margin: 0; }.next-app span { margin-right: 16px; color: var(--ink); font-weight: 600; }

.about, .contact {
  max-width: 1248px;
  margin: auto;
  padding: 110px 0;
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  border-top: 1px solid var(--line);
}
.about > div, .contact > div { max-width: 740px; }
.about p:not(.section-label), .contact p:not(.section-label) { max-width: 620px; margin: 28px 0 0; color: var(--muted); font-size: 16px; line-height: 2; }
.contact { padding-bottom: 130px; }
.contact a { display: inline-block; margin-top: 34px; padding-bottom: 7px; border-bottom: 1px solid var(--ink); font-size: clamp(20px, 2.5vw, 32px); font-weight: 600; }

footer { padding: 42px max(36px, calc((100vw - 1248px)/2)); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 25px; background: var(--ink); color: white; }
footer .wordmark { font-size: 24px; }
.footer-links { display: flex; gap: 28px; color: #c5cfcc; font-size: 12px; }
footer > p { grid-column: 1/-1; margin: 24px 0 0; padding-top: 22px; border-top: 1px solid #ffffff26; color: #9eaaa7; font-size: 11px; }

a:focus-visible { outline: 3px solid #168eaa; outline-offset: 5px; }
section[id] { scroll-margin-top: 30px; }

@media (max-width: 1320px) {
  .hero, .apps, .about, .contact { margin-left: 36px; margin-right: 36px; }
}
@media (max-width: 900px) {
  .hero { min-height: 570px; padding: 84px 48px 50px; }
  .hero::after { right: -90px; font-size: 600px; }
  .hero-note { left: 48px; right: 48px; }
  .app-feature { grid-template-columns: 1fr; }
  .app-visual { min-height: 500px; }
  .app-info { min-height: 500px; }
  .aqua-logo { margin-top: 48px; }
}
@media (max-width: 620px) {
  .site-header { height: 76px; padding: 0 22px; }
  nav { gap: 17px; font-size: 11px; }
  .hero, .apps, .about, .contact { margin-left: 14px; margin-right: 14px; }
  .hero { min-height: 610px; padding: 70px 24px 34px; border-radius: 24px; }
  .hero::after { top: 150px; right: -100px; font-size: 410px; }
  .hero h1 { font-size: 46px; line-height: 1.35; }
  .hero-copy { font-size: 15px; }
  .hero-note { left: 24px; right: 24px; bottom: 27px; gap: 14px; }
  .hero-note span:nth-child(2) { display: none; }
  .apps { padding: 90px 0; }
  .section-heading, .about, .contact { grid-template-columns: 1fr; gap: 25px; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2, .about h2, .contact h2 { font-size: 34px; }
  .app-feature { border-radius: 20px; }
  .app-visual { min-height: 370px; }
  .app-info { min-height: 460px; padding: 38px 25px; }
  .aqua-logo { width: 235px; margin: 44px 0 30px; }
  .app-info h3 { font-size: 27px; }
  .next-app { padding: 22px 4px; flex-direction: column; gap: 8px; line-height: 1.8; }
  .about, .contact { padding: 76px 0; }
  .contact { padding-bottom: 90px; }
  footer { padding: 38px 22px; grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}

.aqua-legal .legal-hero { background: #e7f8fc; }
.aqua-legal .legal-hero > p:first-child,
.aqua-legal .legal-layout aside p,
.aqua-legal .legal-content h2 span { color: #0775af; }
.aqua-legal-logo { display: block; line-height: 0; }
.aqua-legal-logo img { width: 235px; height: auto; }
.aqua-legal footer .aqua-legal-logo img { width: 210px; }
@media (max-width: 620px) {
  .aqua-legal-logo img { width: 175px; }
  .aqua-legal .site-header nav { font-size: 10px; }
  .aqua-legal footer .aqua-legal-logo img { width: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app-visual img { transition: none; }
}

/* Legal pages */
.legal-page { max-width: 1248px; margin: 0 auto 120px; }
.legal-hero { min-height: 410px; padding: 76px 72px; display: flex; flex-direction: column; justify-content: center; border-radius: 34px; background: var(--mint); }
.legal-hero > p:first-child { margin: 0 0 24px; color: #397066; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.legal-hero h1 { margin: 0; font-size: clamp(48px, 6vw, 76px); line-height: 1.25; letter-spacing: -.045em; }
.legal-hero > p:last-child { margin: 28px 0 0; color: #52645f; font-size: 16px; }
.legal-layout { display: grid; grid-template-columns: .42fr 1fr; gap: 90px; padding: 100px 72px 0; }
.legal-layout aside { align-self: start; position: sticky; top: 30px; }
.legal-layout aside p { margin: 0 0 22px; color: #397066; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.legal-layout aside a { display: block; width: fit-content; padding-bottom: 5px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.legal-layout aside a + a { margin-top: 18px; }
.legal-content { max-width: 720px; }
.legal-intro { margin: 0 0 90px; font-size: 17px; line-height: 2.15; }
.legal-content section { padding: 54px 0; border-top: 1px solid var(--line); }
.legal-content h2 { margin: 0 0 28px; display: grid; grid-template-columns: 42px 1fr; gap: 12px; font-size: 24px; line-height: 1.5; letter-spacing: -.02em; }
.legal-content h2 span { padding-top: 7px; color: #5d847c; font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.legal-content p, .legal-content li { color: #4f5f5c; font-size: 15px; line-height: 2; }
.legal-content p { margin: 0; }
.legal-content ol, .legal-content ul { margin: 20px 0 0; padding-left: 1.45em; }
.legal-content li + li { margin-top: 10px; }
.legal-content li ul { margin-top: 8px; }
.legal-content strong { color: var(--ink); font-weight: 600; }
.legal-note { margin-top: 20px !important; padding: 18px 20px; border-radius: 10px; background: #eef3f0; font-size: 13px !important; }
.legal-contact { margin-top: 24px; padding: 24px; border-radius: 14px; background: var(--mint); }
.legal-contact p { margin-bottom: 6px; }
.legal-contact a, .inline-link { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1320px) { .legal-page { margin-left: 36px; margin-right: 36px; } }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; gap: 54px; }.legal-layout aside { position: static; }.legal-intro { margin-bottom: 60px; } }
@media (max-width: 620px) {
  .legal-page { margin: 0 14px 80px; }
  .legal-hero { min-height: 360px; padding: 55px 24px; border-radius: 24px; }
  .legal-hero h1 { font-size: 46px; }
  .legal-hero > p:last-child { font-size: 14px; line-height: 1.8; }
  .legal-layout { padding: 62px 10px 0; gap: 50px; }
  .legal-intro { font-size: 16px; }
  .legal-content section { padding: 42px 0; }
  .legal-content h2 { grid-template-columns: 32px 1fr; font-size: 21px; }
  .legal-content p, .legal-content li { font-size: 14px; }
}
