html.theme-ocean {
  --gold: #2b6f8b;
  --gold-light: #3f87a5;
  --gold-dark: #1f4f63;
  --accent-rgb: 63, 135, 165;
  --accent2-rgb: 143, 188, 203;
  --cream: #1f3f4a;
  --muted: rgba(31, 63, 74, 0.74);
  --ink: #f2f8f8;
  --ink-soft: #e7f1f2;
  /* ファーストビュー：端末の実表示高に追従 */
  --ks-view-h: 100vh;
  --ks-logo-h: 56px;
  --ks-header-gap: calc(var(--ks-logo-h) + 2px);
}

@supports (height: 100dvh) {
  html.theme-ocean {
    --ks-view-h: 100dvh;
  }
}

html.theme-ocean body {
  background: #f2f8f8;
  color: var(--cream);
}

html.theme-ocean .bg-orb,
html.theme-ocean #particles-canvas {
  display: none !important;
}

/* デモスライド：opacity フェードなし */
html.theme-ocean .page-bg .hero-demo-slide {
  transition: none !important;
}

/* 上部エリア */
html.theme-ocean .site-header,
html.theme-ocean .hero {
  position: relative;
  isolation: isolate;
  z-index: 1;
}

html.theme-ocean .site-header::before,
html.theme-ocean .hero::before {
  content: none;
}

html.theme-ocean .hero::before {
  filter: none;
}

html.theme-ocean .site-header::after,
html.theme-ocean .hero::after {
  content: none;
}

html.theme-ocean .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  width: auto;
  margin-left: 0;
  margin-right: 0;
  border: 1px solid rgba(63, 135, 165, 0.2);
  border-radius: 0;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
  padding-top: 0;
  padding-bottom: 0;
  background: rgba(242, 248, 248, 0.8);
  box-shadow: 0 16px 36px rgba(31, 79, 99, 0.12);
  backdrop-filter: blur(12px);
}

html.theme-ocean .content-wrap {
  padding-top: var(--ks-header-gap);
}

html.theme-ocean .hero {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
  margin-top: 0;
  padding-top: 1rem;
}

/* テキストとUIを lp_back.webp の寒色系に寄せる */
html.theme-ocean .brand {
  background: linear-gradient(110deg, #2f6f8b 0%, #4a96b3 52%, #7eaebe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html.theme-ocean .brand-sub,
html.theme-ocean .nav-links a,
html.theme-ocean .hero-lead,
html.theme-ocean .hero-sub {
  color: rgba(26, 62, 75, 0.78);
  text-shadow: none;
}

html.theme-ocean .hero-visual {
  position: relative;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  line-height: 0;
}

html.theme-ocean .hero-visual-image {
  display: block;
  width: 100%;
  height: auto;
}

html.theme-ocean .hero-visual-heading {
  position: absolute;
  top: clamp(1.35rem, 2.8vw, 2.2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: min(92%, 980px);
  margin: 0;
  padding: 0;
  color: #1f4f63;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, 0.96),
    1px -1px 0 rgba(255, 255, 255, 0.96),
    -1px 1px 0 rgba(255, 255, 255, 0.96),
    1px 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 24px rgba(255, 255, 255, 0.78),
    0 2px 10px rgba(31, 79, 99, 0.12);
}

html.theme-ocean .hero-copy {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1rem 0;
  text-align: center;
}

html.theme-ocean .hero-feature-copy {
  position: absolute;
  inset: 0;
  padding: 0;
  z-index: 2;
}

html.theme-ocean .hero-feature-copy-item {
  position: absolute;
  bottom: clamp(1.8rem, 4vw, 3.2rem);
  width: 21.5%;
  transform: translateX(-50%);
  padding: clamp(0.7rem, 1.4vw, 0.9rem) clamp(0.55rem, 1.3vw, 1rem);
  border-radius: 14px;
  background: rgba(242, 248, 248, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 34px rgba(31, 79, 99, 0.16);
  backdrop-filter: blur(10px);
  text-align: center;
}

html.theme-ocean .hero-feature-copy-item p {
  margin: 0;
  font-size: clamp(0.95rem, 1.75vw, 1.2rem);
  font-weight: 700;
  line-height: 1.45;
  color: #1f4f63;
}

html.theme-ocean .hero-feature-copy-item--left {
  left: 21.25%;
}

html.theme-ocean .hero-feature-copy-item--center {
  left: 51.5%;
}

html.theme-ocean .hero-feature-copy-item--right {
  left: 80.75%;
}

@media (max-width: 980px) {
  html.theme-ocean .hero-feature-copy {
    left: 0.5rem;
    right: 0.5rem;
    bottom: -2.1rem;
    top: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  html.theme-ocean .hero-feature-copy-item {
    position: static;
    width: auto;
    transform: none;
    padding: 0.55rem 0.45rem;
    border-radius: 10px;
  }

  html.theme-ocean .hero-feature-copy-item--left,
  html.theme-ocean .hero-feature-copy-item--center,
  html.theme-ocean .hero-feature-copy-item--right {
    left: auto;
    right: auto;
  }

  html.theme-ocean .hero-feature-copy-item p {
    font-size: 0.88rem;
    line-height: 1.35;
  }
}

/* ヘッダーはロゴ + CTA を常時表示 */
html.theme-ocean .site-header-top {
  min-height: var(--ks-logo-h);
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

html.theme-ocean .site-header-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

html.theme-ocean .site-header-logo {
  display: block;
  width: auto;
  height: var(--ks-logo-h);
}

html.theme-ocean .site-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-left: auto;
}

html.theme-ocean .site-header-start.btn-primary,
html.theme-ocean .site-header-login.btn-secondary,
html.theme-ocean .nav-links .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

html.theme-ocean .site-header-start.btn-primary,
html.theme-ocean .nav-links .btn-primary {
  background: linear-gradient(145deg, #5aa4c0, #3f87a5 48%, #2f6f8b);
  color: #ffffff;
  border-color: rgba(43, 111, 139, 0.4);
}

html.theme-ocean .site-header-login.btn-secondary {
  color: #1f4f63;
  background: rgba(255, 255, 255, 0.72);
}

html.theme-ocean .hero h1 {
  background: linear-gradient(135deg, #1f4f63 0%, #2b6f8b 45%, #4a96b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: none;
}

html.theme-ocean .hero-badge {
  color: #1f4f63;
  border-color: rgba(43, 111, 139, 0.34);
  background: rgba(242, 248, 248, 0.72);
  box-shadow: none;
}

html.theme-ocean .btn-primary {
  color: #ffffff;
  background: linear-gradient(145deg, #5aa4c0, #3f87a5 48%, #2f6f8b);
  box-shadow: 0 8px 22px rgba(43, 111, 139, 0.28);
}

html.theme-ocean .btn-secondary {
  color: #2b6f8b;
  border-color: rgba(63, 135, 165, 0.4);
  background: rgba(255, 255, 255, 0.56);
}

html.theme-ocean .store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

html.theme-ocean .store-badge-link:hover {
  transform: translateY(-1px);
}

html.theme-ocean .store-badge-image {
  display: block;
  width: auto;
  height: 52px;
  max-width: 100%;
}

/* 中段以降は背景なし（単色ベース） */
html.theme-ocean .section,
html.theme-ocean .section-trust-base,
html.theme-ocean .hero-flow-demo-section {
  background: transparent;
}

/* フッター（リンクエリア）は別背景色 */
html.theme-ocean .site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 3.2rem;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 2rem clamp(1rem, 4vw, 2rem) 0.8rem;
  border: 1px solid rgba(31, 63, 74, 0.14);
  border-radius: 0;
  background:
    radial-gradient(circle at top right, rgba(116, 182, 204, 0.24), transparent 34%),
    linear-gradient(180deg, #2a4f5f 0%, #203b47 100%);
}

html.theme-ocean .site-footer > * {
  position: relative;
  z-index: 1;
}

html.theme-ocean .site-footer-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  color: rgba(242, 248, 248, 0.96);
}

html.theme-ocean .footer-tagline,
html.theme-ocean .footer-col h3,
html.theme-ocean .footer-col a,
html.theme-ocean .footer-bottom,
html.theme-ocean .footer-bottom a {
  color: rgba(232, 245, 247, 0.92);
}

html.theme-ocean .footer-bottom {
  border-top-color: rgba(232, 245, 247, 0.25);
}

/* 背景ヒーロー直下：無料で始める（流れデモの直前） */
html.theme-ocean .ks-quick-start-kicker {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 1.25rem;
}

html.theme-ocean .ks-quick-start-kicker-text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

html.theme-ocean .ks-quick-start-kicker-btn {
  display: inline-flex;
}

/* タブレット縦向き：縦長アート用 */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  html.theme-ocean {
    --ks-logo-h: 52px;
    --ks-header-gap: calc(var(--ks-logo-h) + 2px);
  }
}

/* 低い画面（ランドスケープ等）：はみ出しを抑える */
@media (max-height: 520px) and (min-width: 768px) {
  html.theme-ocean {
    --ks-logo-h: 48px;
    --ks-header-gap: calc(var(--ks-logo-h) + 2px);
  }
}

/* スマホ最適化 */
@media (max-width: 767px) {
  html.theme-ocean {
    --ks-logo-h: 42px;
    --ks-header-gap: calc(var(--ks-logo-h) + 2px);
  }

  html.theme-ocean .site-header {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    padding-top: 0;
    padding-bottom: 0;
  }

  html.theme-ocean .site-header-top {
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  html.theme-ocean .site-header-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  html.theme-ocean .site-header-logo {
    width: min(34vw, 138px);
    height: auto;
  }

  html.theme-ocean .site-header-actions {
    flex: 0 0 auto;
    gap: 0.35rem;
  }

  html.theme-ocean .hero {
    padding-top: 0.5rem;
  }

  html.theme-ocean .hero-visual {
    display: flex;
    flex-direction: column;
    width: auto;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 245, 247, 0.92));
    box-shadow: 0 18px 40px rgba(31, 79, 99, 0.14);
  }

  html.theme-ocean .hero-visual::after {
    content: none;
  }

  html.theme-ocean .hero-visual-image {
    border-radius: 0 0 22px 22px;
  }

  html.theme-ocean .hero-visual-heading {
    position: static;
    order: -1;
    transform: none;
    width: auto;
    margin: 0;
    padding: 1rem 0.9rem 0.75rem;
    font-size: 1.35rem;
    line-height: 1.35;
  }

  html.theme-ocean .site-header-login.btn-secondary,
  html.theme-ocean .site-header-start.btn-primary,
  html.theme-ocean .nav-links .btn-primary {
    min-height: 2.15rem;
    font-size: 0.7rem;
    padding: 0.28rem 0.58rem;
    white-space: nowrap;
  }

  html.theme-ocean .store-badge-image {
    height: 46px;
  }

  html.theme-ocean .ks-quick-start-kicker {
    padding: 1.1rem 0.75rem 1rem;
  }

  html.theme-ocean .ks-quick-start-kicker-text {
    font-size: 0.88rem;
  }

  html.theme-ocean .hero-copy {
    padding: 1rem 0.75rem 0;
  }

  html.theme-ocean .hero-feature-copy {
    position: static;
    inset: auto;
    left: auto;
    right: auto;
    width: auto;
    margin: 0.35rem 0.75rem 0;
    gap: 0.45rem;
  }

  html.theme-ocean .hero-feature-copy-item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 4.1rem;
    padding: 0.85rem 0.9rem 0.85rem 3.1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 250, 0.95));
    border: 1px solid rgba(143, 188, 203, 0.36);
    box-shadow: 0 10px 24px rgba(31, 79, 99, 0.1);
    backdrop-filter: none;
    text-align: left;
  }

  html.theme-ocean .hero-feature-copy-item::before {
    content: "01";
    position: absolute;
    left: 0.8rem;
    top: 50%;
    width: 1.7rem;
    height: 1.7rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(145deg, #5aa4c0, #2f6f8b);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 18px rgba(43, 111, 139, 0.22);
  }

  html.theme-ocean .hero-feature-copy-item--center::before {
    content: "02";
  }

  html.theme-ocean .hero-feature-copy-item--right::before {
    content: "03";
  }

  html.theme-ocean .hero-feature-copy-item p {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.4;
  }
}
