/* 医療安全ポケットマニュアル Webサービス LP */
.digitalbook {
  --db-navy: #16324f;
  --db-blue: #2c6aa0;
  --db-green: #2a9b7a;
  --db-green-dark: #217a60;
  --db-off: #f5f7f9;
  --db-soft: #eef4f8;
  --db-text: #243040;
  --db-muted: #5a6570;
  --db-line: #dce3ea;
  --db-white: #fff;
  --db-shadow: 0 8px 24px rgba(22, 50, 79, 0.08);
  --db-radius: 16px;
  --db-nav-h: 64px;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--db-text);
  background: var(--db-white);
}

.digitalbook h1,
.digitalbook h2,
.digitalbook h3,
.digitalbook p,
.digitalbook ul,
.digitalbook ol,
.digitalbook figure {
  margin-top: 0;
}

.digitalbook .db-cta {
  color: var(--db-white);
}

.digitalbook .db-cta--ghost,
.digitalbook .db-cta--light {
  color: var(--db-navy);
}

.digitalbook .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.digitalbook-article {
  margin: 0;
}

.db-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.db-wrap--narrow {
  width: min(760px, calc(100% - 40px));
}

.db-section {
  padding: 88px 0;
  background: var(--db-white);
}

.db-section--muted {
  background: var(--db-off);
}

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

.db-heading {
  margin: 0 0 20px;
  color: var(--db-navy);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-align: center;
}

.db-heading--light {
  color: var(--db-white);
}

.db-lead {
  margin: 0 auto 40px;
  max-width: 40em;
  color: var(--db-muted);
  font-size: 16px;
  line-height: 1.9;
  text-align: center;
}

.db-lead--light {
  color: rgba(255, 255, 255, 0.88);
}

.db-kicker {
  margin: 0 0 12px;
  color: var(--db-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.db-kicker--center {
  text-align: center;
}

.db-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--db-green);
  color: var(--db-white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(42, 155, 122, 0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}

.db-cta:hover,
.db-cta:focus-visible {
  background: var(--db-green-dark);
  color: var(--db-white);
  transform: translateY(-1px);
}

.db-cta--ghost {
  background: transparent;
  color: var(--db-navy);
  border: 1.5px solid var(--db-navy);
  box-shadow: none;
}

.db-cta--ghost:hover,
.db-cta--ghost:focus-visible,
.digitalbook .db-cta--ghost:hover,
.digitalbook .db-cta--ghost:focus-visible {
  background: var(--db-navy);
  color: var(--db-white);
}

.db-cta--light {
  background: var(--db-white);
  color: var(--db-navy);
  box-shadow: none;
}

.db-cta--light:hover,
.db-cta--light:focus-visible {
  background: var(--db-off);
  color: var(--db-navy);
}

/* LP nav */
.db-lp-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--db-line);
  backdrop-filter: blur(8px);
}

.digitalbook img {
  max-width: 100%;
  height: auto;
}

.db-lp-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  min-height: var(--db-nav-h);
  margin: 0 auto;
}

.db-lp-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.db-lp-nav__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--db-navy);
  color: var(--db-white);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.db-lp-nav__logo-text {
  color: var(--db-navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.db-lp-nav__menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.db-lp-nav__menu a {
  color: var(--db-navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.db-lp-nav__menu a:hover,
.db-lp-nav__menu a:focus-visible {
  color: var(--db-blue);
}

.db-lp-nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--db-green);
  color: var(--db-white) !important;
}

.db-lp-nav__cta:hover,
.db-lp-nav__cta:focus-visible {
  background: var(--db-green-dark);
  color: var(--db-white) !important;
}

.db-lp-nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
}

.db-lp-nav__toggle-bar,
.db-lp-nav__toggle-bar::before,
.db-lp-nav__toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--db-navy);
  content: "";
}

.db-lp-nav__toggle-bar::before {
  transform: translateY(-6px);
}

.db-lp-nav__toggle-bar::after {
  transform: translateY(4px);
}

/* Hero */
.db-hero {
  padding-top: 28px;
  padding-bottom: 36px;
  background:
    linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.db-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.04fr);
  align-items: center;
  gap: 28px;
}

.db-hero__title {
  margin: 0 0 12px;
  color: var(--db-navy);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.db-hero__lead {
  margin: 0 0 16px;
  color: var(--db-muted);
  font-size: 15px;
  line-height: 1.7;
}

.db-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.db-hero .db-cta {
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
}

.db-hero .db-kicker {
  margin-bottom: 8px;
}

.db-hero .db-phone--lg {
  width: 210px;
}

.db-hero .db-phone__screen,
.db-hero .db-manual {
  min-height: 340px;
}

.db-hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.db-hero__points li {
  position: relative;
  padding-left: 16px;
  color: var(--db-navy);
  font-size: 13px;
  font-weight: 700;
}

.db-hero__points li::before {
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--db-green);
  content: "";
}

.db-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.db-hero__shot {
  display: block;
  width: 100%;
  max-width: 680px;
  height: auto;
}

/* Phone mock */
.db-phone {
  width: 230px;
}

.db-phone--lg {
  width: 260px;
}

.db-phone__bezel {
  padding: 10px;
  border-radius: 32px;
  background: #1a2430;
  box-shadow: var(--db-shadow);
}

.db-phone__notch {
  width: 72px;
  height: 10px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: #0f1620;
}

.db-phone__screen {
  overflow: hidden;
  min-height: 420px;
  border-radius: 22px;
  background: var(--db-white);
}

.db-phone__screen img {
  display: block;
  width: 100%;
  height: auto;
}

.db-manual {
  min-height: 420px;
  padding: 28px 20px;
}

.db-manual--cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #1a3d5c;
  color: var(--db-white);
  text-align: center;
}

.db-manual__hospital {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.db-manual__label {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

.db-manual__edition,
.db-manual__note {
  margin: 0;
  font-size: 13px;
  opacity: 0.85;
}

.db-manual--toc,
.db-manual--content {
  background: #f8fafc;
  color: var(--db-navy);
}

.db-manual__heading {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
}

.db-manual--toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.db-manual--toc li {
  padding: 10px 0;
  border-bottom: 1px solid var(--db-line);
  font-size: 13px;
}

.db-manual--content p + p {
  margin-top: 12px;
}

.db-manual--content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

/* Cards */
.db-card-grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.db-card-grid--3,
.db-card-grid--features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.db-card-grid--features {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.db-card-grid--features .db-card:nth-child(-n + 3) {
  grid-column: span 2;
}

.db-card-grid--features .db-card:nth-child(n + 4) {
  grid-column: span 3;
}

.db-card-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.db-card {
  padding: 24px;
  border: 1px solid var(--db-line);
  border-radius: var(--db-radius);
  background: var(--db-white);
  box-shadow: var(--db-shadow);
}

.db-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--db-soft);
  color: var(--db-blue);
  font-size: 24px;
}

.db-card__title {
  margin: 0;
  color: var(--db-navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.db-card__text {
  margin: 10px 0 0;
  color: var(--db-muted);
  font-size: 14px;
  line-height: 1.8;
}

.db-card__image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 12px;
  border-radius: 12px;
}

.db-card__num {
  margin: 0 0 8px;
  color: var(--db-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Solution / update */
.db-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 20px;
}

.db-flow__item,
.db-compare__col,
.db-intro__item,
.db-future__item,
.db-price {
  padding: 28px;
  border: 1px solid var(--db-line);
  border-radius: var(--db-radius);
  background: var(--db-white);
  box-shadow: var(--db-shadow);
  text-align: center;
}

.db-flow__item--accent,
.db-compare__col--accent {
  border-color: #cfe4dc;
  background: #f4fbf8;
}

.db-flow__label,
.db-intro__step,
.db-future__badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--db-soft);
  color: var(--db-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.db-flow__icon {
  display: block;
  margin: 0 auto 12px;
  color: var(--db-navy);
  font-size: 40px;
}

.db-flow__title,
.db-intro__title,
.db-compare__title {
  margin: 0 0 8px;
  color: var(--db-navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.db-flow__note {
  margin: 0;
  color: var(--db-muted);
  font-size: 14px;
}

.db-flow__arrow {
  align-self: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--db-navy);
  color: var(--db-white);
  font-size: 13px;
  font-weight: 700;
}

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

.db-phones__item {
  position: relative;
  margin: 0;
  text-align: center;
}

.db-phones__item figcaption {
  margin-top: 12px;
  color: var(--db-navy);
  font-size: 14px;
  font-weight: 700;
}

.db-phones__tag {
  position: absolute;
  top: -8px;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--db-green);
  color: var(--db-white);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.db-phones .db-phone {
  margin: 16px auto 0;
}

.db-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.db-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.db-steps li {
  position: relative;
  padding: 10px 0;
  color: var(--db-navy);
  font-weight: 700;
}

.db-steps li:not(:last-child)::after {
  display: block;
  margin: 8px auto 0;
  color: var(--db-blue);
  font-size: 16px;
  font-weight: 400;
  content: "↓";
}

.db-compare__image {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 16px auto 0;
}

.db-intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.db-intro__item p {
  margin: 0;
  color: var(--db-muted);
  line-height: 1.8;
}

.db-price {
  text-align: center;
}

.db-price__row + .db-price__row {
  margin-top: 16px;
}

.db-price__label {
  margin: 0 0 4px;
  color: var(--db-muted);
  font-size: 14px;
  font-weight: 700;
}

.db-price__value {
  margin: 0;
  color: var(--db-navy);
  font-size: 20px;
  font-weight: 700;
}

.db-price__value span {
  font-size: 40px;
  letter-spacing: 0.02em;
}

.db-price__note {
  margin: 24px 0;
  color: var(--db-muted);
  line-height: 1.8;
}

/* FAQ */
.db-faq {
  display: grid;
  gap: 10px;
}

.db-faq__item {
  border: 1px solid var(--db-line);
  border-radius: 12px;
  background: var(--db-white);
}

.db-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 48px 18px 20px;
  color: var(--db-navy);
  font-weight: 700;
  position: relative;
}

.db-faq__item summary::-webkit-details-marker {
  display: none;
}

.db-faq__item summary::after {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--db-blue);
  font-size: 20px;
  content: "+";
}

.db-faq__item[open] summary::after {
  content: "−";
}

.db-faq__item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--db-muted);
  line-height: 1.8;
}

/* Future / CTA / footer */
.db-future {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
}

.db-future__item ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.db-future__item li + li,
.db-future__item p {
  margin: 0;
}

.db-future__item li {
  padding: 4px 0;
  color: var(--db-navy);
  font-weight: 700;
}

.db-future__item--now,
.db-future__item--goal {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.db-future__arrow {
  align-self: center;
  width: 18px;
  height: 18px;
  border-right: 2px solid var(--db-blue);
  border-bottom: 2px solid var(--db-blue);
  transform: rotate(-45deg);
}

.db-cta-band {
  background: var(--db-navy);
  text-align: center;
}

.db-cta-band .db-heading {
  margin-bottom: 16px;
}

.digitalbook .to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.digitalbook .to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.digitalbook .to-top img {
  width: 64px;
  height: auto;
}

#about,
#features,
#flow,
#price,
#faq,
#contact,
#preview,
#scenes,
#update,
#future,
#issues,
#db-hero {
  scroll-margin-top: calc(var(--db-nav-h) + 12px);
}

@media (max-width: 1024px) {
  .db-hero__grid,
  .db-card-grid--4,
  .db-phones,
  .db-intro,
  .db-future {
    grid-template-columns: 1fr;
  }

  .db-card-grid--3,
  .db-card-grid--features {
    grid-template-columns: 1fr 1fr;
  }

  .db-card-grid--features .db-card:nth-child(-n + 3),
  .db-card-grid--features .db-card:nth-child(n + 4) {
    grid-column: auto;
  }

  .db-future__arrow {
    justify-self: center;
    transform: rotate(45deg);
  }
}

@media (max-width: 768px) {
  .db-section {
    padding: 64px 0;
  }

  .db-hero {
    padding-top: 20px;
    padding-bottom: 28px;
  }

  .db-hero__title {
    font-size: 22px;
  }

  .db-hero__lead {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .db-hero__grid,
  .db-flow,
  .db-compare,
  .db-card-grid--3,
  .db-card-grid--features,
  .db-card-grid--features .db-card:nth-child(-n + 3),
  .db-card-grid--features .db-card:nth-child(n + 4) {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .db-lp-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .db-lp-nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--db-white);
    border-bottom: 1px solid var(--db-line);
    box-shadow: var(--db-shadow);
  }

  .db-lp-nav.is-open .db-lp-nav__menu {
    display: flex;
  }

  .db-lp-nav__menu a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--db-line);
  }

  .db-lp-nav__cta {
    justify-content: center;
    margin-top: 8px;
    border-bottom: 0;
  }

  .db-lp-nav__logo-text {
    font-size: 12px;
  }

  .db-flow__arrow {
    justify-self: center;
  }

  .db-price__value span {
    font-size: 32px;
  }

  .digitalbook .to-top {
    right: 16px;
    bottom: 16px;
  }

  .digitalbook .to-top img {
    width: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .db-cta,
  .db-lp-nav__menu a {
    transition: none;
  }
}
