body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  color: #000;
  background: #fff;
  line-height: 1.5;
}

/* Bootstrap theme overrides (runtime CSS variables) */
:root,
[data-bs-theme="light"] {
  --bs-font-sans-serif: "Noto Sans JP", sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-color: #1d1d1f;
  --bs-body-bg: #ffffff;

  --bs-primary: #0077ed;
  --bs-primary-rgb: 0, 119, 237;
  --bs-link-color: var(--bs-primary);
  --bs-link-hover-color: #006edb;

  --bs-secondary-color: #86868b;
  --bs-secondary-color-rgb: 134, 134, 139;
}

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

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

::selection {
  background: rgba(var(--bs-primary-rgb), 0.22);
}

.navbar-glass {
  background-color: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.navbar-mypage .navbar-mypage-container {
  max-width: none;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.timinify-banner {
  display: inline-block;
  object-fit: contain;
  vertical-align: middle;
}

.lift-on-hover {
  transition: transform 0.2s ease;
}

.lift-on-hover:hover {
  transform: translateY(-4px);
}

.card-soft {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1.125rem;
  background: #fff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card-soft:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

.news-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: 0.25rem;
  scroll-behavior: smooth;
}

.news-scroll .news-card {
  flex-shrink: 0;
}

/* Navigation arrows */
.news-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1d1d1f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition:
    background 0.2s,
    box-shadow 0.2s;
  padding: 0;
}

.news-scroll-btn:hover {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.news-scroll-btn--prev {
  left: -0.5rem;
}

.news-scroll-btn--next {
  right: -0.5rem;
}

body.with-fixed-navbar {
  padding-top: 4.5rem;
}

.news-card {
  width: 24rem;
}

/* Ensure news release images display at a consistent size across orientations */
.news-modal-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  object-fit: cover;
  background-color: #f1f1f1;
  display: block;
}

/* Portrait screenshots should fit without aggressive cropping */
.news-modal-image--portrait {
  object-fit: contain;
}

@media (max-width: 576px) {
  .news-card {
    width: 20rem;
  }
}

@media (max-width: 400px) {
  .news-card {
    width: calc(100vw - 3rem);
  }
}

.card-soft.lift-on-hover:hover {
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.08);
}

.card-img-zoom {
  transition: none;
}

.lift-on-hover:hover .card-img-zoom {
  transform: none;
}

body.portal .news-scroll .lift-on-hover:hover {
  transform: translateY(-4px);
}

body.portal .news-scroll .card-soft.lift-on-hover:hover {
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08);
}

.icon-12 {
  width: 0.75rem;
  height: 0.75rem;
}

.icon-16 {
  width: 1rem;
  height: 1rem;
}

.icon-20 {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-24 {
  width: 1.5rem;
  height: 1.5rem;
}

.news-scroll-wrapper {
  position: relative;
}

/* ── Common Section Styles (portal only) ── */
body.portal section {
  padding: 0.85rem 0.85rem;
}

/* Keep portal bottom sections on the same typeface as the top area */
body.portal .about-timinify,
body.portal .about-timinify *,
body.portal footer,
body.portal footer * {
  font-family: var(--bs-body-font-family);
}

.section-headline {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: #1d1d1f;
}

/* ── Hero Section ── */
.hero-section {
  padding: 5rem 0 7rem;
  background: #ffffff;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-headline {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: #1d1d1f;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: #86868b;
  line-height: 1.4;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.hero-visual {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.08);
}

/* ── Features Section ── */
.features-section {
  padding: 6rem 0;
  background: #f5f5f7;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card {
  padding: 0;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.feature-text {
  font-size: 1.0625rem;
  font-weight: 400;
  color: #86868b;
  line-height: 1.6;
  margin: 0;
}

/* ── Services Section ── */
.services-section {
  padding: 7rem 0;
  background: #f5f5f7;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.service-card-text {
  font-size: 1.0625rem;
  font-weight: 400;
  color: #86868b;
  margin: 0;
}

/* ── News Section ── */
.news-section {
  padding: 7rem 0;
  background: #ffffff;
}

/* ── CTA Section ── */
.cta-section {
  padding: 7rem 0 8rem;
  background: #f5f5f7;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.cta-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: #1d1d1f;
  margin-bottom: 1.5rem;
}

.cta-text {
  font-size: 1.25rem;
  font-weight: 400;
  color: #86868b;
  line-height: 1.5;
  margin-bottom: 2.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  margin-top: 2.5rem;
}

/* ── Button Overrides ── */
.btn-dark {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
  border-radius: 0.625rem;
  font-weight: 400;
  transition: all 0.2s ease;
}

.btn-dark:hover {
  background: #1d1d1f;
  border-color: #1d1d1f;
  color: #ffffff;
}

.btn-link {
  color: #0077ed;
  text-decoration: none;
  font-weight: 400;
}

.btn-link:hover {
  color: #006edb;
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0 4rem;
  }

  .features-section {
    padding: 4rem 0;
  }

  .cta-section {
    padding: 4rem 0;
  }
}
