:root {
  --blue: #2f9ddb;
  --blue-dark: #1677ad;
  --ink: #202b31;
  --muted: #64727b;
  --line: #dbe3e7;
  --paper: #ffffff;
  --soft: #f3f7f9;
  --footer: #3f4854;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #f3c74d;
  outline-offset: 4px;
}

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

h1,
h2,
h3 {
  line-height: 1.3;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  color: var(--ink);
  background: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  color: #fff;
}

.site-header--light {
  position: relative;
  color: var(--ink);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand img {
  width: 116px;
  max-height: 34px;
  object-fit: contain;
  object-position: left center;
}

.site-header--light .brand img {
  filter: invert(1);
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.global-nav a {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.global-nav a:hover {
  text-decoration: underline;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 2px solid var(--blue);
  border-radius: 2px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.button:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.button--outline {
  color: var(--blue);
  background: transparent;
}

.button--outline:hover {
  color: #fff;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 52px;
}

.section-heading h2 {
  margin-bottom: 0;
  color: var(--blue);
  font-size: clamp(28px, 4vw, 44px);
}

.section-heading--center {
  text-align: center;
}

.site-section {
  padding: 104px 0;
}

.site-section--soft {
  background: var(--soft);
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #5faad1;
}

.home-hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 31, 47, 0.38), rgba(11, 31, 47, 0.12)), url("../images/home-hero.webp") center / cover no-repeat;
  content: "";
}

.home-hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 820px);
  text-align: center;
}

.home-hero-mark {
  width: min(78vw, 520px);
  margin: 0 auto 30px;
}

.home-hero h1 {
  margin-bottom: 0;
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 650;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.about-layout {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: clamp(42px, 8vw, 96px);
}

.profile-photo {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
}

.about-copy h2 {
  margin-bottom: 22px;
  color: var(--blue);
  font-size: clamp(28px, 4vw, 46px);
}

.about-copy .role {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 800;
}

.about-copy p:not(.eyebrow):not(.role) {
  max-width: 720px;
  color: #4f5c64;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.skill {
  min-height: 420px;
  padding: 36px 28px;
  background: #fff;
}

.skill-media {
  display: flex;
  height: 140px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.skill-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.skill h3 {
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 19px;
}

.skill p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.organizations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.organization {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.organization-logo {
  display: flex;
  height: 88px;
  align-items: center;
  margin-bottom: 24px;
}

.organization-logo img {
  width: auto;
  max-width: min(100%, 360px);
  height: auto;
  max-height: 88px;
  object-fit: contain;
}

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

.organization-current {
  font-size: 0.72em;
  font-weight: 650;
}

.organization p {
  margin-bottom: 0;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.work-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.work-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--soft);
}

.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card-body {
  display: grid;
  flex: 1;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 24px 0 8px;
}

.work-card h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.work-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.work-card-link {
  align-self: end;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
}

.links-row a {
  color: var(--blue-dark);
  font-weight: 750;
}

.product-hero {
  position: relative;
  display: grid;
  min-height: 82vh;
  place-items: center;
  overflow: hidden;
  background: #e9eef0;
}

.product-hero::before {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  content: "";
}

.product-hero--unlearn::before {
  background-image: linear-gradient(90deg, rgba(244, 207, 212, 0.22), rgba(244, 207, 212, 0.04)), url("../images/unlearn-hero.webp");
}

.product-hero--anynote::before {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14)), url("../images/anynote-hero.webp");
}

.product-hero--tenki::before {
  background-image: linear-gradient(90deg, rgba(17, 71, 102, 0.10), rgba(17, 71, 102, 0.02)), url("../images/tenki-hero.webp");
}

.product-hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--content));
}

.product-wordmark {
  width: min(60vw, 455px);
  max-height: 120px;
  margin-bottom: 26px;
  object-fit: contain;
  object-position: left center;
}

.product-hero--tenki .product-wordmark {
  width: min(72vw, 480px);
  max-height: 220px;
}

.product-hero h1 {
  max-width: 640px;
  margin-bottom: 0;
  color: #18232a;
  font-size: clamp(30px, 5vw, 64px);
  letter-spacing: 0.02em;
}

.product-intro {
  max-width: 750px;
  margin-inline: auto;
  text-align: center;
}

.product-intro h2 {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: clamp(30px, 4vw, 46px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
  margin-top: 70px;
}

.feature {
  text-align: center;
}

.feature img {
  width: 94px;
  height: 94px;
  margin: 0 auto 26px;
  object-fit: contain;
}

.feature h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.feature p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.coming-soon {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.creator-panel {
  display: grid;
  align-items: center;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}

.creator-panel img {
  width: 180px;
  height: 180px;
  object-fit: cover;
}

.creator-panel h2 {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: clamp(28px, 4vw, 42px);
}

.creator-panel p {
  max-width: 680px;
  color: var(--muted);
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.download-panel h2 {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: clamp(28px, 4vw, 42px);
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-item {
  margin: 0;
}

.product-item a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  text-decoration: none;
}

.product-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-item figcaption {
  padding-top: 14px;
  font-weight: 800;
}

.product-item a:hover figcaption {
  color: var(--blue-dark);
  text-decoration: underline;
}

.legal {
  padding: 78px 0 120px;
}

.legal article {
  width: min(100%, 820px);
}

.legal h1 {
  margin-bottom: 44px;
  font-size: clamp(32px, 5vw, 50px);
}

.legal h2 {
  margin-top: 50px;
  margin-bottom: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 21px;
}

.legal p,
.legal li {
  color: #3f4a51;
}

.legal ol,
.legal ul {
  padding-left: 1.5em;
}

.site-footer {
  padding: 56px 0;
  color: #fff;
  background: var(--footer);
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 18px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 700;
}

.copyright {
  margin-bottom: 0;
  font-size: 12px;
}

.back-home {
  font-size: 13px;
  font-weight: 750;
}

@media (max-width: 900px) {
  .skills-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout {
    align-items: start;
    grid-template-columns: 240px 1fr;
    gap: 44px;
  }

  .product-hero {
    min-height: 680px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 32px), var(--content));
  }

  .header-inner {
    min-height: 72px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 18px 0;
  }

  .global-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 10px 20px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .global-nav a {
    font-size: 12px;
    white-space: nowrap;
  }

  .site-section {
    padding: 72px 0;
  }

  .home-hero {
    min-height: 720px;
  }

  .home-hero-content {
    width: min(calc(100% - 32px), 820px);
  }

  .about-layout,
  .creator-panel,
  .download-panel,
  .footer-inner {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .profile-photo {
    aspect-ratio: 1;
    width: min(52vw, 200px);
    height: auto;
    justify-self: center;
    object-fit: cover;
  }

  .creator-panel img {
    width: min(44vw, 160px);
    height: min(44vw, 160px);
    justify-self: center;
  }

  .skills-grid,
  .feature-grid,
  .work-grid,
  .product-gallery,
  .organizations {
    grid-template-columns: 1fr;
  }

  .skill {
    min-height: auto;
  }

  .work-card-body {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .work-card-link {
    justify-self: start;
  }

  .product-hero {
    min-height: 720px;
  }

  .product-hero-content {
    width: min(calc(100% - 32px), var(--content));
    padding-top: 100px;
  }

  .product-wordmark {
    width: min(80vw, 420px);
  }

  .feature-grid {
    gap: 56px;
  }

  .store-links {
    justify-content: flex-start;
  }
}

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