/* Sanary TOP / About / Contact pages (JA + EN). Shared layout lives in sanary-layout.css. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
      --bg: #F8FAF8;
      --ink: #18201D;
      --muted: #697770;
      --soft: #EDF4F0;
      --soft-2: #E6F0F4;
      --surface: #FFFFFF;
      --line: rgba(24, 32, 29, 0.10);
      --accent: #2F6F67;
      --accent-soft: rgba(47, 111, 103, 0.10);
      --deep: #14211F;
      --deep-muted: rgba(248, 250, 248, 0.64);
      --log: #3FAE5A;
      --medication: #66C56F;
      --money: #2F80ED;
      --point: #4DA3FF;
      --eat: #F59E0B;
      --fit: #8B5CF6;
      --fashion: #C35AE8;
      --beauty: #EC4899;
      --dev: #7567DF;
      --serif: 'Noto Serif JP', serif;
      --sans: 'Noto Sans JP', sans-serif;
      --max: 1080px;
      --pad: clamp(22px, 6vw, 80px);
    }

html { scroll-behavior: smooth; }

body {
      font-family: var(--sans);
      color: var(--ink);
      background: var(--bg);
      line-height: 1.9;
      font-weight: 300;
      -webkit-font-smoothing: antialiased;
    }

a { color: inherit; }

section {
      padding: clamp(76px, 11vw, 140px) var(--pad);
    }

.inner {
      width: min(100%, var(--max));
      margin: 0 auto;
    }

.label {
      margin-bottom: 22px;
      color: var(--accent);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.18em;
      text-transform: uppercase;
    }

.title {
      font-family: var(--serif);
      font-size: clamp(27px, 4vw, 46px);
      font-weight: 300;
      line-height: 1.62;
      letter-spacing: 0.02em;
    }

.lead {
      max-width: 620px;
      margin-top: 24px;
      color: var(--muted);
      font-size: clamp(14px, 1.5vw, 16px);
      line-height: 2.25;
    }

.button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 50px;
      padding: 0 26px;
      border: 1px solid rgba(47, 111, 103, 0.22);
      border-radius: 999px;
      background: var(--surface);
      color: var(--accent);
      text-decoration: none;
      font-size: 13px;
      font-weight: 500;
      letter-spacing: 0.04em;
      box-shadow: 0 14px 40px rgba(24, 32, 29, 0.06);
      transition: transform 0.2s ease, border-color 0.2s ease;
    }

.button:hover {
      transform: translateY(-2px);
      border-color: rgba(47, 111, 103, 0.46);
    }

#hero {
      min-height: 100svh;
      display: grid;
      place-items: center;
      position: relative;
      overflow: hidden;
      padding-top: 110px;
      background:
        radial-gradient(circle at 18% 18%, rgba(151, 215, 181, 0.28), transparent 28%),
        radial-gradient(circle at 85% 12%, rgba(145, 211, 234, 0.24), transparent 26%),
        linear-gradient(180deg, #FBFCFB 0%, var(--bg) 72%, var(--soft) 100%);
    }

.hero-pattern {
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: 0.42;
      background-image:
        linear-gradient(rgba(24, 32, 29, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 32, 29, 0.05) 1px, transparent 1px);
      background-size: 72px 72px;
      mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
    }

.hero-inner {
      position: relative;
      width: min(100%, 900px);
      margin: 0 auto;
      text-align: center;
    }

.hero-logo {
      width: clamp(112px, 18vw, 174px);
      height: clamp(112px, 18vw, 174px);
      margin: 0 auto 34px;
      display: block;
      border-radius: 24px;
      object-fit: cover;
      filter: drop-shadow(0 18px 44px rgba(24, 32, 29, 0.10));
      animation: fadeUp 0.8s ease both;
    }

.hero-title {
      font-family: var(--serif);
      font-size: clamp(32px, 6vw, 72px);
      font-weight: 300;
      line-height: 1.5;
      letter-spacing: 0.02em;
      animation: fadeUp 0.8s ease 0.12s both;
    }

.hero-title span {
      display: block;
      color: var(--accent);
    }

.hero-copy {
      margin: 32px auto 0;
      max-width: 620px;
      color: var(--muted);
      font-family: var(--serif);
      font-size: clamp(16px, 2vw, 21px);
      line-height: 2.25;
      animation: fadeUp 0.8s ease 0.24s both;
    }

.hero-fragments {
      margin: 44px auto 0;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 10px;
      animation: fadeUp 0.8s ease 0.36s both;
    }

.fragment {
      padding: 8px 14px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.74);
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }

.hero-action {
      margin-top: 38px;
      animation: fadeUp 0.8s ease 0.48s both;
    }

#why {
      background: var(--surface);
    }

.why-layout {
      display: grid;
      grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
      gap: clamp(40px, 7vw, 88px);
      align-items: start;
    }

.connection-list {
      display: grid;
      gap: 2px;
      background: var(--line);
      border: 1px solid var(--line);
    }

.connection-list li {
      list-style: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 20px 24px;
      background: var(--surface);
      color: var(--ink);
      font-family: var(--serif);
      font-size: clamp(17px, 2vw, 22px);
      line-height: 1.5;
    }

.connection-list li::after {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent);
      opacity: 0.34;
      flex: 0 0 auto;
    }

.problem-band {
      background: var(--soft);
    }

.problem-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1px;
      margin-top: 44px;
      background: var(--line);
      border: 1px solid var(--line);
    }

.problem-item {
      min-height: 160px;
      display: flex;
      align-items: flex-end;
      padding: 24px;
      background: rgba(255, 255, 255, 0.78);
      color: var(--muted);
      font-size: 15px;
      line-height: 2;
    }

#philosophy {
      background: var(--deep);
      color: var(--bg);
      position: relative;
      overflow: hidden;
    }

#philosophy::before {
      content: "";
      position: absolute;
      width: 560px;
      height: 560px;
      top: -220px;
      right: -140px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(151, 215, 181, 0.18), transparent 66%);
    }

.philosophy-inner {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
      gap: clamp(42px, 8vw, 100px);
      align-items: start;
    }

#philosophy .label {
      color: rgba(151, 215, 181, 0.86);
    }

#philosophy .title {
      color: var(--bg);
    }

.philosophy-lines {
      display: grid;
      gap: 18px;
      color: var(--deep-muted);
      font-family: var(--serif);
      font-size: clamp(18px, 2.4vw, 28px);
      line-height: 1.75;
    }

.philosophy-note {
      margin-top: 36px;
      max-width: 530px;
      color: rgba(248, 250, 248, 0.54);
      font-size: 15px;
      line-height: 2.25;
    }

#symbol {
      background: var(--bg);
    }

.symbol-layout {
      display: grid;
      grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
      gap: clamp(40px, 7vw, 88px);
      align-items: center;
    }

.symbol-mark {
      display: grid;
      place-items: center;
      min-height: 420px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.94), rgba(237, 244, 240, 0.72)),
        linear-gradient(135deg, var(--soft), var(--soft-2));
    }

.symbol-mark img {
      width: min(72%, 320px);
      height: auto;
      border-radius: 28px;
      filter: drop-shadow(0 18px 34px rgba(24, 32, 29, 0.10));
    }

.meaning-list {
      margin-top: 34px;
      display: grid;
      gap: 18px;
    }

.meaning-item {
      padding: 0 0 18px 22px;
      border-bottom: 1px solid var(--line);
      border-left: 3px solid rgba(47, 111, 103, 0.26);
      color: var(--muted);
      font-size: 15px;
      line-height: 2.1;
    }

.meaning-item strong {
      display: block;
      color: var(--ink);
      font-weight: 500;
      margin-bottom: 4px;
    }

#products {
      background: var(--surface);
    }

.product-grid {
      margin-top: 48px;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }

.product-card {
      --app-color: var(--accent);
      min-height: 260px;
      padding: 30px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--surface);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 28px;
      position: relative;
      overflow: hidden;
      cursor: pointer;
    }

.product-card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: var(--app-color);
    }

.app-log { --app-color: var(--log); }

.app-medication { --app-color: var(--medication); }

.app-money { --app-color: var(--money); }

.app-eat { --app-color: var(--eat); }

.app-fit { --app-color: var(--fit); }

.app-point { --app-color: var(--point); }

.app-beauty { --app-color: var(--beauty); }

.app-fashion { --app-color: var(--fashion); }

.app-dev { --app-color: var(--dev); }

.product-head {
      display: grid;
      grid-template-columns: 56px minmax(0, 1fr);
      gap: 18px;
      align-items: start;
    }

.app-icon {
      width: 56px;
      height: 56px;
      border-radius: 16px;
      display: grid;
      place-items: center;
      background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
        var(--app-color);
      color: #fff;
      font-family: var(--serif);
      font-size: 34px;
      font-weight: 500;
      line-height: 1;
      box-shadow: 0 14px 28px color-mix(in srgb, var(--app-color) 24%, transparent);
      overflow: hidden;
    }

.app-icon img { width: 100%; height: 100%; object-fit: cover; }

.product-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 18px;
      color: var(--app-color);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.13em;
      text-transform: uppercase;
    }

.product-status {
      padding: 4px 10px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--app-color) 12%, white);
      letter-spacing: 0.08em;
      white-space: nowrap;
    }

.product-name {
      font-family: var(--serif);
      font-size: clamp(24px, 3vw, 34px);
      font-weight: 400;
      line-height: 1.35;
    }

.product-desc {
      margin-top: 16px;
      color: var(--muted);
      font-size: 15px;
      line-height: 2.05;
    }

.product-steps {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

.product-steps span {
      padding: 6px 11px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--app-color) 10%, white);
      color: color-mix(in srgb, var(--app-color) 64%, var(--ink));
      font-size: 12px;
      line-height: 1.5;
    }

.product-link {
      display: inline-block;
      margin-top: 18px;
      color: var(--accent);
      text-decoration: none;
      font-size: 13px;
      font-weight: 500;
      letter-spacing: 0.04em;
    }

#roadmap {
      background: var(--soft);
    }

.roadmap-flow {
      margin: 50px 0;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      align-items: stretch;
    }

.roadmap-step {
      --app-color: var(--accent);
      position: relative;
      min-height: 130px;
      padding: 20px 16px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.76);
    }

.roadmap-step::after {
      content: "";
      position: absolute;
      top: 50%;
      right: -10px;
      width: 8px;
      height: 8px;
      border-top: 1px solid var(--app-color);
      border-right: 1px solid var(--app-color);
      transform: translateY(-50%) rotate(45deg);
      opacity: 0.5;
    }

.roadmap-step:last-child::after { display: none; }

.roadmap-step:nth-child(4)::after { display: none; }

.roadmap-year {
      color: var(--app-color);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      margin-bottom: 0;
    }

.roadmap-head {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 16px;
    }

.roadmap-icon {
      width: 30px;
      height: 30px;
      border-radius: 9px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      background: var(--app-color);
      color: #fff;
      font-family: var(--serif);
      font-size: 18px;
      line-height: 1;
    }

.roadmap-name {
      font-family: var(--serif);
      font-size: 19px;
      line-height: 1.45;
    }

.roadmap-sub {
      margin-top: 10px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.65;
    }

.aim {
      width: min(100%, 700px);
      margin: 0 auto;
      text-align: center;
      color: var(--muted);
      font-family: var(--serif);
      font-size: clamp(20px, 3vw, 32px);
      line-height: 1.85;
    }

#message {
      background: var(--surface);
    }

.message-lines {
      max-width: 760px;
      margin: 0 auto;
      text-align: center;
      color: var(--ink);
      font-family: var(--serif);
      font-size: clamp(24px, 4vw, 44px);
      font-weight: 300;
      line-height: 1.9;
    }

.message-lines .muted {
      color: var(--muted);
    }

#cta {
      background:
        radial-gradient(circle at 50% 24%, rgba(145, 211, 234, 0.16), transparent 36%),
        var(--deep);
      color: var(--bg);
      text-align: center;
    }

.cta-logo {
      width: 92px;
      height: 92px;
      margin: 0 auto 28px;
      display: block;
      border-radius: 18px;
      object-fit: cover;
      filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.16));
    }

.cta-title {
      font-family: var(--serif);
      font-size: clamp(28px, 5vw, 52px);
      font-weight: 300;
      line-height: 1.65;
    }

.cta-copy {
      margin: 26px auto 38px;
      max-width: 460px;
      color: var(--deep-muted);
      font-size: 15px;
      line-height: 2.25;
    }

#cta .button {
      background: var(--bg);
      color: var(--deep);
      border-color: transparent;
      box-shadow: none;
    }

@keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(14px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

@media (max-width: 900px) {
  .why-layout, .philosophy-inner, .symbol-layout {
        grid-template-columns: 1fr;
      }

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

  .roadmap-flow {
        grid-template-columns: repeat(2, 1fr);
      }

  .roadmap-step:nth-child(2n)::after {
        display: none;
      }

  .roadmap-step:nth-child(4)::after {
        display: none;
      }
}

@media (max-width: 640px) {
  section {
        padding-top: 72px;
        padding-bottom: 72px;
      }

  #hero {
        padding-top: 94px;
      }

  .hero-fragments {
        align-items: center;
        flex-direction: column;
      }

  .fragment {
        width: min(100%, 270px);
      }

  .connection-list li {
        padding: 18px 20px;
      }

  .problem-grid, .product-grid, .roadmap-flow {
        grid-template-columns: 1fr;
      }

  .problem-item {
        min-height: 116px;
      }

  .symbol-mark {
        min-height: 300px;
      }

  .roadmap-step::after {
        top: auto;
        right: 50%;
        bottom: -10px;
        transform: translateX(50%) rotate(135deg);
      }

  .roadmap-step:nth-child(3)::after {
        display: block;
      }

  .roadmap-step:nth-child(2n)::after {
        display: block;
      }

  .roadmap-step:nth-child(4)::after {
        display: block;
      }

  .roadmap-step:last-child::after {
        display: none;
      }
}

/* ── Shared header / footer are provided by assets/sanary-layout.css ─────── */

/* TOP hero: an entrance to the Sanary brands rather than a long explanation */
#hero {
  min-height: min(calc(100svh - 93px), 860px);
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.hero-title.tagline {
  font-size: clamp(44px, 9vw, 108px);
  line-height: 1.3;
  letter-spacing: 0.06em;
}

.hero-title.tagline span {
  margin-top: 8px;
  font-size: clamp(15px, 2vw, 22px);
  letter-spacing: 0.04em;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  animation: fadeUp 0.8s ease 0.36s both;
}

.button.ghost {
  background: transparent;
  box-shadow: none;
}

/* Brands */
#brands { background: var(--surface); }
#brands .lead { max-width: 640px; }
#brands sanary-brands { margin-top: 48px; }

/* Link to the About page */
.about-strip { background: var(--soft); padding-block: clamp(56px, 8vw, 96px); }
.about-strip .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.about-strip .lead { margin-top: 12px; }

/* About / Contact page heading */
.page-hero {
  padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px);
  background:
    radial-gradient(circle at 18% 18%, rgba(151, 215, 181, 0.26), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(145, 211, 234, 0.22), transparent 28%),
    linear-gradient(180deg, #FBFCFB 0%, var(--bg) 100%);
}

.page-hero .title { font-size: clamp(30px, 5vw, 56px); }
.page-hero .hero-fragments { justify-content: flex-start; margin: 32px 0 0; animation: none; }

.contact-list { display: grid; gap: 12px; margin-top: 40px; padding: 0; list-style: none; }

.contact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-list a:hover { transform: translateY(-2px); border-color: rgba(47, 111, 103, 0.4); }
.contact-list strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 400; line-height: 1.5; }
.contact-list small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.contact-list .arrow { flex: none; color: var(--accent); font-size: 13px; }

@media (max-width: 640px) {
  #hero { min-height: auto; }
  .hero-actions .button { width: min(100%, 280px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo, .hero-title, .hero-copy, .hero-actions { animation: none; }
}

/* English typography: the base styles are tuned for Japanese line height and tracking */
    html[lang="en"] body { line-height: 1.75; }
    html[lang="en"] .hero-title:not(.tagline) { font-size: clamp(32px, 5.2vw, 62px); line-height: 1.3; letter-spacing: 0; }
    html[lang="en"] .title { line-height: 1.35; letter-spacing: 0; }
    html[lang="en"] .hero-copy { line-height: 1.85; }
    html[lang="en"] .lead,
    html[lang="en"] .philosophy-note,
    html[lang="en"] .cta-copy { line-height: 1.85; }
    html[lang="en"] .product-desc,
    html[lang="en"] .meaning-item,
    html[lang="en"] .problem-item { line-height: 1.75; }
    html[lang="en"] .philosophy-lines { line-height: 1.5; }
    html[lang="en"] .aim,
    html[lang="en"] .message-lines,
    html[lang="en"] .cta-title { line-height: 1.5; }
    html[lang="en"] .roadmap-name { line-height: 1.3; }
html[lang="en"] .hero-title.tagline { letter-spacing: 0.02em; }
html[lang="en"] .hero-title.tagline span { line-height: 1.7; }
html[lang="en"] .contact-list small { line-height: 1.7; }

/* TOP banner: link to the Private Cloud Compute page, directly below the brands */
.pcc-banner { background: var(--surface); padding-top: 0; padding-bottom: clamp(56px, 8vw, 96px); }

.pcc-banner-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 60px);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 12%, rgba(145, 211, 234, 0.2), transparent 40%),
    radial-gradient(circle at 6% 96%, rgba(151, 215, 181, 0.16), transparent 38%),
    var(--deep);
  color: var(--bg);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pcc-banner-link:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(24, 32, 29, 0.14); }
.pcc-banner-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pcc-banner-body { display: block; min-width: 0; }

.pcc-banner-label {
  display: block;
  margin-bottom: 14px;
  color: rgba(151, 215, 181, 0.86);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pcc-banner-title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(24px, 3.6vw, 42px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.pcc-banner-title { word-break: auto-phrase; text-wrap: balance; }
.pcc-banner-copy { display: block; margin-top: 14px; color: var(--deep-muted); font-size: clamp(13px, 1.5vw, 15px); line-height: 2; }

.pcc-banner-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--deep);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .pcc-banner-link { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .pcc-banner-link { transition: none; }
  .pcc-banner-link:hover { transform: none; }
}

html[lang="en"] .pcc-banner-title { line-height: 1.35; letter-spacing: 0; }
html[lang="en"] .pcc-banner-copy { line-height: 1.75; }
