body.unitime {
  --bs-font-sans-serif: "Noto Sans JP", sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  font-family: var(--bs-body-font-family);
  font-weight: 500;
  background-color: #f5f5f7; /* Apple-like background gray */
  color: #1d1d1f; /* Apple-like text black */
  overflow-x: hidden;
}

body.unitime.with-fixed-navbar {
  /* unitime navbar is taller than the global default offset on some mobile widths */
  padding-top: 5.8rem;
}

@media (max-width: 767.98px) {
  body.unitime.with-fixed-navbar {
    padding-top: 6.4rem;
  }
}

body.unitime
  :where(
    p,
    a,
    span,
    button,
    label,
    small,
    li,
    dt,
    dd,
    th,
    td,
    legend,
    summary,
    div
  ) {
  font-weight: 500;
}

body.unitime :where(h1, h2, h3, h4, h5, h6, strong, b) {
  font-weight: 600;
}

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}

/* カスタムユーティリティ */
.glass-nav {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.unitime-nav-shell {
  max-width: 960px;
}

@media (max-width: 767.98px) {
  .unitime-nav-shell {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.unitime-nav-row {
  display: flex;
  align-items: center;
  min-height: 56px;
  width: 100%;
  justify-content: space-between;
}

.unitime-brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  margin-right: auto;
}

.unitime-created-by {
  font-size: 0.58rem;
  color: #6b7280;
  opacity: 0.82;
  margin-top: -0.1rem;
  margin-left: 2rem;
  line-height: 1;
  white-space: nowrap;
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}

@media (max-width: 767.98px) {
  .unitime-created-by {
    white-space: normal;
    line-height: 1.2;
  }
}

.unitime-created-by:hover {
  color: #4b5563;
  opacity: 1;
}

.unitime .navbar-brand {
  margin-right: 0;
  flex-shrink: 0;
}

.unitime .navbar-brand img {
  border-radius: 6px;
}

footer img[src*="unitime-logo"] {
  border-radius: 5px;
}

.unitime .navbar-toggler {
  flex-shrink: 0;
  margin-left: 0;
}

.unitime-nav-collapse {
  flex-basis: 100%;
  width: 100%;
}

.unitime-nav-collapse .navbar-nav {
  padding-top: 0.5rem;
  padding-bottom: 0.4rem;
}

@media (min-width: 768px) {
  .unitime-nav-row {
    width: auto;
    justify-content: flex-start;
  }

  .unitime-brand-wrap {
    flex-direction: row;
    align-items: flex-end;
  }

  .unitime-created-by {
    font-size: 0.65rem;
    margin-top: 0;
    margin-left: 0.2rem;
    margin-bottom: 0.35rem;
  }

  .unitime-nav-collapse {
    flex-basis: auto;
    width: auto;
    margin-left: auto;
  }

  .unitime-nav-collapse .navbar-nav {
    padding-top: 0;
    padding-bottom: 0;
  }
}

.apple-card {
  background-color: #ffffff;
  border-radius: 30px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.apple-card:hover {
  transform: none;
  box-shadow: none;
}

.bg-unitime {
  background-color: #f5f5f7;
}

.unitime-hero {
  padding-top: 2rem;
  padding-bottom: 2rem;
  overflow: hidden;
}

@media (min-width: 992px) {
  .unitime-hero {
    padding-top: 0.1rem;
    padding-bottom: 4rem;
  }
}

.unitime-gradient-title {
  background-image: linear-gradient(200deg, #c4ff8a, #4be1ff, #b3ffcd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: saturate(0.9) drop-shadow(0 1px 8px rgba(0, 0, 0, 0.14));
}

.unitime-hero-kicker {
  font-size: 1.875rem;
  overflow-wrap: anywhere;
  font-weight: 600;
  line-height: 1.08;
}

/* Global span weight rule is strong; re-assert hierarchy specifically for hero heading */
body.unitime .unitime-hero-heading .unitime-hero-kicker {
  font-weight: 600;
}

@media (min-width: 576px) {
  .unitime-hero-kicker {
    font-size: 2.25rem;
  }
}

@media (min-width: 992px) {
  .unitime-hero-kicker {
    font-size: 2.5rem;
  }
}

.unitime-hero-brand {
  font-size: 3.25rem;
  line-height: 1;
  overflow-wrap: anywhere;
  font-weight: 800;
}

body.unitime .unitime-hero-heading .unitime-hero-brand {
  font-weight: 800;
}

.unitime-hero .lead {
  overflow-wrap: anywhere;
  max-width: 42rem;
}

@media (min-width: 576px) {
  .unitime-hero-brand {
    font-size: 4rem;
  }
}

@media (min-width: 992px) {
  .unitime-hero-brand {
    font-size: 4.5rem;
  }
}

.unitime-hero-phones {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
}

@media (max-width: 991.98px) {
  .unitime-hero-layout {
    display: flex;
    flex-direction: column;
    --bs-gutter-y: 0.75rem;
    gap: 0.45rem;
  }

  .unitime-hero-copy {
    display: contents;
  }

  .unitime-hero-heading {
    order: 1;
    width: 100%;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    margin-top: 0.8rem;
  }

  .unitime-hero-visual {
    order: 2;
  }

  .unitime-hero-body {
    order: 3;
    width: 100%;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .unitime-hero {
    padding-top: 1rem;
    overflow: visible;
  }

  .unitime-hero-heading h1 {
    margin-bottom: 0.2rem;
  }

  .unitime-hero .lead {
    margin-bottom: 1.2rem;
    font-size: 0.98rem;
    line-height: 1.45;
    max-width: 21rem;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 992px) {
  .unitime-hero-phones {
    margin: 0;
    max-width: none;
  }
}

.unitime-device-shot {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 2.4rem;
  filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.14));
}

.unitime-device-shot--hero {
  max-width: 390px;
  margin-inline: auto;
}

.unitime-device-shot--feature {
  max-width: 350px;
}

.unitime-device-shot--mini {
  max-width: 228px;
}

.unitime-device-shot--subfeature {
  max-width: 180px;
}

.unitime-device-shot--compact {
  max-width: 220px;
}

@media (max-width: 767.98px) {
  .unitime-device-shot--hero {
    max-width: 300px;
  }

  .unitime-device-shot--feature {
    max-width: 280px;
  }

  .unitime-device-shot--mini {
    max-width: 190px;
  }

  .unitime-device-shot--subfeature {
    max-width: 150px;
  }

  .unitime-device-shot--compact {
    max-width: 180px;
  }
}

.unitime-feature-large {
  min-height: 500px;
}

@media (min-width: 768px) {
  .unitime-feature-large {
    min-height: 600px;
  }
}

.unitime-store-badge {
  height: 3rem;
  width: auto;
  max-width: 200px;
}

.unitime-store-badge--cta {
  height: 3.5rem;
  max-width: 220px;
}

.unitime-heading-tight {
  letter-spacing: 0;
}

.unitime-store-link--disabled {
  filter: grayscale(100%);
  opacity: 0.5;
  pointer-events: none;
}

.unitime-copy-measure {
  max-width: 48rem;
}

.unitime-section-narrow {
  max-width: 800px;
}

.unitime-section-compact {
  max-width: 600px;
}

.unitime-section-wide {
  max-width: 900px;
}

.unitime-readable-copy {
  line-height: 1.8;
}

.unitime-readable-copy--loose {
  line-height: 1.9;
}

.unitime-status-green {
  color: rgb(20, 188, 20);
}

.unitime-status-yellow {
  color: rgb(193, 172, 33);
}

.unitime-status-red {
  color: rgb(188, 31, 20);
}

.guide-sidebar {
  position: sticky;
  top: 100px;
  height: calc(100vh - 120px);
  overflow-y: auto;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  padding-right: 1rem;
}

.guide-sidebar .nav-link {
  color: #4b5563;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.guide-sidebar .nav-link:hover {
  color: #111827;
  background-color: rgba(0, 0, 0, 0.04);
}

.guide-sidebar .nav-link.active {
  color: #0ea5e9;
  background-color: rgba(14, 165, 233, 0.1);
  font-weight: 600;
}

.guide-content-section {
  padding-top: 4rem;
  margin-top: -3rem;
  margin-bottom: 4rem;
}

.guide-page-header {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  border-bottom: 1px solid rgba(14, 165, 233, 0.1);
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.guide-step-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #0ea5e9;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.guide-image-wrapper {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.guide-tip-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.guide-tip-card .tip-icon {
  color: #0ea5e9;
}

.guide-sidebar-title {
  font-size: 0.9rem;
}

.unitime-guide-shot--tall {
  max-height: 480px;
  width: auto;
}

.unitime-guide-shot--medium {
  max-height: 400px;
  width: auto;
}

.unitime-guide-shot--compact {
  max-height: 300px;
  width: auto;
}

.unitime-guide-accent-amber {
  background-color: #f59e0b;
}

.unitime-guide-accent-purple {
  background-color: #8b5cf6;
}

.unitime-guide-accent-orange {
  background-color: #f97316;
}

.unitime-guide-accent-indigo {
  background-color: #6366f1;
}

.unitime-guide-accent-pink {
  background-color: #ec4899;
}

.unitime-guide-accent-emerald {
  background-color: #10b981;
}

.unitime-guide-store-badge {
  height: 44px;
  width: auto;
}

.apple-privacy-hero {
  padding: 10rem 0 6rem;
  background-color: #f5f5f7;
  text-align: center;
}

.apple-privacy-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0;
  color: #1d1d1f;
  margin-bottom: 1.5rem;
}

.apple-privacy-hero p {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 500;
  color: #86868b;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

.privacy-section {
  padding: 6rem 0;
  background-color: #fff;
}

.privacy-section.alt {
  background-color: #f5f5f7;
}

.privacy-section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0;
  color: #1d1d1f;
  margin-bottom: 2rem;
}

.privacy-section p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #1d1d1f;
  line-height: 1.6;
  font-weight: 500;
}

.privacy-section .detail-text {
  font-size: 0.95rem;
  color: #6e6e73;
  line-height: 1.7;
  font-weight: 400;
  margin-top: 1rem;
}

.privacy-icon-wrap {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background-color: #1d1d1f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.privacy-grid-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  height: 100%;
}

.privacy-grid-card.dark-card {
  background: #1d1d1f;
  color: #fff;
}

.privacy-grid-card.dark-card .privacy-icon-wrap {
  background-color: #fff;
  color: #1d1d1f;
}

.privacy-grid-card.dark-card h3 {
  color: #fff;
}

.privacy-grid-card.dark-card p {
  color: rgba(255, 255, 255, 0.65);
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f5f9;
  color: #475569;
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0.25rem;
}

.tech-badge--dark {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

.unitime-readable-container {
  max-width: 1000px;
}

.unitime-security-hero-icon {
  width: 64px;
  height: 64px;
  color: #1d1d1f;
}

.unitime-security-visual-icon {
  width: 200px;
  height: 200px;
  color: #1d1d1f;
  opacity: 0.9;
}

.unitime-security-badge-icon {
  width: 14px;
  height: 14px;
}

.unitime-security-note {
  font-size: 0.95rem;
  font-weight: 500;
}

.unitime-security-section-title {
  letter-spacing: 0;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.security-flow {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.security-flow-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.security-flow-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-flow-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.security-flow-icon.blue {
  background: #dbeafe;
  color: #2563eb;
}

.security-flow-icon.purple {
  background: #ede9fe;
  color: #7c3aed;
}

.security-flow-icon.orange {
  background: #ffedd5;
  color: #ea580c;
}

.text-unitime-purple {
  color: #7c3aed;
}

.text-unitime-orange {
  color: #fb923c;
}
