:root {
  --primary: #087c70;
  --primary-dark: #05665d;
  --primary-soft: #d7f2ee;
  --accent: #f39a74;
  --ink: #172321;
  --muted: #52615f;
  --line: #cbd9d6;
  --surface: #ffffff;
  --surface-soft: #f4f9f8;
  --surface-mint: #e9f5f3;
  --shadow: 0 18px 50px rgba(29, 68, 62, 0.13);
  --radius-large: 32px;
  --radius-medium: 22px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    "YuGothic",
    "Noto Sans JP",
    sans-serif;
  line-height: 1.8;
}

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

a {
  color: inherit;
}

/* Japanese typography: keep headings balanced and avoid awkward one-character wraps. */
h1,
h2,
h3 {
  line-break: strict;
  word-break: auto-phrase;
  text-wrap: balance;
}

p,
li,
figcaption {
  line-break: strict;
  text-wrap: pretty;
}

.title-line {
  display: block;
}

.keep-together {
  white-space: nowrap;
}

.mobile-title-break {
  display: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(203, 217, 214, 0.8);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(8, 124, 112, 0.22);
}

.header-nav {
  display: flex;
  gap: 28px;
}

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

.header-nav a:hover {
  color: var(--primary);
}

.hero {
  overflow: hidden;
  padding: 80px 0 92px;
  background:
    radial-gradient(circle at 85% 18%, rgba(151, 235, 224, 0.55), transparent 28%),
    linear-gradient(180deg, #f8fcfb 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(2.75rem, 4.9vw, 3.95rem);
  line-height: 1.17;
  letter-spacing: -0.04em;
}

.hero-title-accent {
  color: var(--primary);
}

.hero-lead {
  max-width: 720px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

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

.button-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(8, 124, 112, 0.23);
}

.button-secondary {
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--line);
}

.hero-points {
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.hero-points li {
  padding: 7px 13px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(100%, 360px);
  padding: 12px;
  background: #101817;
  border-radius: 44px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.phone-frame img {
  width: 100%;
  border-radius: 34px;
}

section {
  padding: 100px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 54px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.problem-section .section-heading.centered,
.recommend-section .section-heading.centered {
  max-width: 900px;
}

.section-heading h2,
.offline-card h2,
.closing-card h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.32;
  letter-spacing: -0.03em;
}

.section-heading p,
.offline-card p,
.closing-card p {
  margin: 0;
  color: var(--muted);
}

.problem-section {
  background: var(--surface);
}

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

.problem-card {
  padding: 30px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
}

.problem-number {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.problem-card h3 {
  margin: 14px 0 10px;
  font-size: 1.2rem;
}

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

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

.feature-row {
  margin: 0 0 110px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 76px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse .feature-image {
  order: 2;
}

.feature-row.reverse .feature-copy {
  order: 1;
}

.feature-image {
  display: flex;
  justify-content: center;
}

.feature-image img {
  max-height: 720px;
  width: auto;
  border: 10px solid #fff;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.feature-label {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.feature-copy h3 {
  margin: 14px 0 22px;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.feature-copy p {
  margin: 0 0 16px;
  color: var(--muted);
}

.check-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 11px 0;
  padding-left: 32px;
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  font-size: 0.78rem;
}

.screens-section {
  background: #fff;
}

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

.screen-card {
  margin: 0;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.screen-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  border-radius: 20px;
}

.screen-card figcaption {
  padding: 16px 8px 8px;
  font-weight: 800;
  text-align: center;
}

.offline-section {
  padding-top: 30px;
}

.offline-card {
  padding: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  align-items: center;
  gap: 50px;
  background: linear-gradient(145deg, var(--primary-soft), #f7fcfb);
  border: 1px solid #b8ddd7;
  border-radius: var(--radius-large);
}

.small-note {
  margin-top: 18px !important;
  font-size: 0.85rem;
}

.offline-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.offline-badges span {
  padding: 14px 18px;
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid #b8ddd7;
  border-radius: 999px;
  font-weight: 800;
}

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

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

.recommend-grid article {
  padding: 30px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
}

.recommend-grid article > span {
  font-size: 2rem;
}

.recommend-grid h3 {
  margin: 14px 0 10px;
  font-size: 1.1rem;
}

.recommend-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.closing-section {
  background: #fff;
}

.closing-card {
  padding: 68px 54px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.18), transparent 30%),
    var(--primary);
  border-radius: var(--radius-large);
  text-align: center;
  box-shadow: var(--shadow);
}

.closing-card .eyebrow,
.closing-card p {
  color: rgba(255, 255, 255, 0.86);
}

.site-footer {
  padding: 48px 0 28px;
  color: #dbe7e5;
  background: #182421;
}

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

.footer-inner strong {
  color: #fff;
  font-size: 1.1rem;
}

.footer-inner p {
  margin: 5px 0 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.copyright p {
  margin: 0;
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .header-nav {
    display: none;
  }

  .hero-grid,
  .feature-row,
  .offline-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-lead {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions,
  .hero-points {
    justify-content: center;
  }

  .phone-frame {
    width: min(78vw, 340px);
    transform: none;
  }

  .feature-row {
    gap: 42px;
    margin-bottom: 86px;
  }

  .feature-row.reverse .feature-image,
  .feature-row.reverse .feature-copy {
    order: initial;
  }

  .feature-image img {
    max-height: 650px;
  }

  .problem-grid,
  .screens-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .offline-card {
    padding: 40px 30px;
  }
}

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

  .header-inner {
    min-height: 66px;
  }

  .brand {
    font-size: 0.98rem;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .hero,
  section {
    padding: 68px 0;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 10.4vw, 2.55rem);
  }

  .hero-title-accent {
    white-space: normal;
  }

  .mobile-title-break {
    display: inline;
  }

  .hero-lead {
    font-size: 1rem;
    text-align: left;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .problem-grid,
  .screens-grid,
  .recommend-grid {
    grid-template-columns: 1fr;
  }

  .feature-copy h3 {
    font-size: 2rem;
  }

  .feature-image img {
    max-height: none;
    width: min(100%, 360px);
  }

  .screen-card {
    max-width: 380px;
    margin-inline: auto;
  }

  .offline-card,
  .closing-card {
    padding: 36px 24px;
    border-radius: 24px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* Privacy policy navigation and page */
.header-privacy-link,
.header-home-link {
  min-height: 42px;
  padding: 8px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.header-privacy-link:hover,
.header-home-link:hover {
  color: #fff;
  background: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(8, 124, 112, 0.2);
  transform: translateY(-1px);
}

.legal-page {
  background: var(--surface-soft);
}

.legal-hero {
  padding: 64px 0 52px;
  background:
    radial-gradient(circle at 86% 15%, rgba(151, 235, 224, 0.52), transparent 30%),
    linear-gradient(180deg, #f8fcfb 0%, var(--surface-soft) 100%);
}

.legal-container {
  max-width: 900px;
}

.breadcrumb {
  margin-bottom: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.86rem;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

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

.legal-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.legal-date {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.legal-lead {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-section {
  padding-top: 18px;
}

.legal-card {
  padding: 58px 64px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  box-shadow: 0 18px 50px rgba(29, 68, 62, 0.08);
}

.policy-section + .policy-section {
  margin-top: 46px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}

.policy-section h2 {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.4;
}

.policy-section h2 span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  background: var(--primary);
  border-radius: 10px;
  font-size: 0.9rem;
}

.policy-section p {
  margin: 0;
  color: var(--muted);
}

.policy-section ul {
  margin: 18px 0 0;
  padding-left: 1.4em;
  color: var(--muted);
}

.policy-section li + li {
  margin-top: 6px;
}

.contact-section {
  padding: 38px;
  background: var(--surface-mint);
  border: 1px solid #b8ddd7;
  border-radius: var(--radius-medium);
}

.policy-section + .contact-section {
  border-top: 1px solid #b8ddd7;
}

.contact-list {
  margin: 26px 0 0;
  display: grid;
  gap: 13px;
}

.contact-list div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
}

.contact-list dt {
  color: var(--primary-dark);
  font-weight: 800;
}

.contact-list dd {
  margin: 0;
  color: var(--ink);
}

.contact-list a {
  color: var(--primary-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.legal-back-action {
  margin-top: 34px;
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .header-inner {
    gap: 14px;
  }

  .header-privacy-link,
  .header-home-link {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .header-privacy-link,
  .header-home-link {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 0.74rem;
  }

  .legal-hero {
    padding: 44px 0 38px;
  }

  .breadcrumb {
    margin-bottom: 25px;
  }

  .legal-section {
    padding-top: 14px;
  }

  .legal-card {
    padding: 34px 22px;
    border-radius: 24px;
  }

  .policy-section + .policy-section {
    margin-top: 34px;
    padding-top: 34px;
  }

  .contact-section {
    padding: 26px 20px;
  }

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Controlled line breaks for key headings and introductory copy. */
.fixed-two-line-title {
  text-align: center;
}

.fixed-two-line-title > .title-line {
  display: block !important;
  width: 100%;
  white-space: nowrap;
}

.hero-title-centered {
  text-align: center;
}

.problem-title {
  text-align: center;
}

.feature-intro .sentence-line {
  display: block;
  white-space: nowrap;
}

.feature-title-one-line {
  font-size: clamp(2rem, 3vw, 2.35rem);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .hero-title-centered {
    font-size: clamp(1.65rem, 7.2vw, 2.2rem);
    line-height: 1.25;
  }

  .problem-title {
    font-size: clamp(1.4rem, 6.8vw, 1.9rem);
    line-height: 1.35;
    letter-spacing: -0.04em;
  }

  .feature-intro .sentence-line {
    white-space: normal;
  }

  .feature-title-one-line {
    font-size: 2rem;
    white-space: normal;
  }
}
