/* =============================================
   Design Polish CSS — LP, Articles, Static Pages
   Scoped to .page-lp-polish, .page-articles-polish, .page-static-polish
   Does NOT affect index.html or geriatrics pages
   ============================================= */

/* ─── Google Font ─── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ─── Design Tokens (scoped) ─── */
:root {
  --dp-font-body: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --dp-font-heading: 'Noto Sans JP', 'Inter', sans-serif;
  --dp-navy: #1a365d;
  --dp-navy-light: #2a4a7f;
  --dp-teal: #234e52;
  --dp-teal-light: #38a169;
  --dp-purple: #553c9a;
  --dp-mint: #e6fffa;
  --dp-bg-light: #f7fafc;
  --dp-bg-card: #ffffff;
  --dp-text: #2d3748;
  --dp-text-muted: #718096;
  --dp-text-heading: #1a202c;
  --dp-border: #e2e8f0;
  --dp-line-green: #06c755;
  --dp-line-green-hover: #05b34a;
  --dp-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --dp-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --dp-shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
  --dp-radius-sm: 8px;
  --dp-radius-md: 12px;
  --dp-radius-lg: 16px;
  --dp-radius-xl: 24px;
  --dp-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --dp-max-width: 1100px;
  --dp-max-width-narrow: 760px;
}

/* ─── LP Design System ─── */

/* --- Hero: Two-column --- */
.dp-hero {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: center;
}

.dp-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.dp-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.dp-hero__brand {
  position: absolute;
  top: 20px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  z-index: 10;
}

.dp-hero__brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.dp-hero__inner {
  position: relative;
  z-index: 5;
  max-width: var(--dp-max-width);
  margin: 0 auto;
  padding: 80px 32px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.dp-hero__text {
  color: #fff;
}

.dp-hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.dp-hero__title {
  font-family: var(--dp-font-heading);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 16px;
  color: #fff;
}

.dp-hero__title em {
  font-style: normal;
  display: inline;
  background: linear-gradient(transparent 60%, rgba(255,255,255,0.25) 60%);
}

.dp-hero__subtitle {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 28px;
  opacity: 0.92;
}

.dp-hero__note {
  font-size: 13px;
  margin-top: 12px;
  opacity: 0.8;
}

.dp-hero__image {
  border-radius: var(--dp-radius-lg);
  overflow: hidden;
  box-shadow: var(--dp-shadow-lg);
}

.dp-hero__image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* --- CTA Buttons --- */
.dp-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--dp-line-green);
  color: #fff;
  font-family: var(--dp-font-heading);
  font-size: 17px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--dp-transition);
  box-shadow: 0 4px 14px rgba(6,199,85,0.3);
  letter-spacing: 0.02em;
}

.dp-cta-btn:hover {
  background: var(--dp-line-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6,199,85,0.4);
}

.dp-cta-btn--large {
  font-size: 18px;
  padding: 18px 44px;
}

.dp-cta-btn::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19.365 9.863c.349 0 .63.285.63.637 0 .353-.281.64-.63.64H17.61v1.74h1.755c.349 0 .63.283.63.636 0 .353-.281.64-.63.64H16.97a.64.64 0 0 1-.634-.64V8.87c0-.352.285-.637.634-.637h2.395c.349 0 .63.285.63.637 0 .353-.281.64-.63.64H17.61v1.353h1.755zM13.258 12.503c0 .353-.283.64-.633.64a.636.636 0 0 1-.541-.302l-2.455-3.399v3.064a.636.636 0 0 1-.634.637.633.633 0 0 1-.63-.637V8.87c0-.352.282-.637.63-.637a.64.64 0 0 1 .544.306l2.449 3.387V8.87c0-.352.285-.637.634-.637.352 0 .636.285.636.637v3.633zM7.782 12.503a.635.635 0 0 1-.636.64.632.632 0 0 1-.631-.64V8.87c0-.352.282-.637.631-.637.353 0 .636.285.636.637v3.633zM4.97 12.503a.637.637 0 0 1-.637.64H1.968a.634.634 0 0 1-.631-.64V8.87c0-.352.282-.637.631-.637.355 0 .638.285.638.637v2.996h1.734c.349 0 .63.283.63.636z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* --- Trust Indicators --- */
.dp-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  max-width: var(--dp-max-width);
  margin: 0 auto;
  padding: 32px 24px;
}

.dp-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--dp-bg-card);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-md);
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dp-text);
  box-shadow: var(--dp-shadow-sm);
}

.dp-trust-item__icon {
  font-size: 22px;
  flex-shrink: 0;
}

/* --- Section --- */
.dp-section {
  padding: 72px 24px;
}

.dp-section--alt {
  background: var(--dp-bg-light);
}

.dp-section--cta {
  background: linear-gradient(135deg, var(--dp-navy) 0%, var(--dp-navy-light) 100%);
  color: #fff;
  text-align: center;
}

.dp-section__inner {
  max-width: var(--dp-max-width);
  margin: 0 auto;
}

.dp-section__title {
  font-family: var(--dp-font-heading);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: var(--dp-text-heading);
  text-align: center;
  margin: 0 0 40px;
  line-height: 1.4;
}

.dp-section--cta .dp-section__title {
  color: #fff;
}

.dp-section__subtitle {
  font-size: 15px;
  color: var(--dp-text-muted);
  text-align: center;
  max-width: 640px;
  margin: -28px auto 40px;
  line-height: 1.7;
}

/* --- Pain Cards --- */
.dp-pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.dp-pain-card {
  background: var(--dp-bg-card);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--dp-shadow-sm);
  transition: box-shadow var(--dp-transition);
}

.dp-pain-card:hover {
  box-shadow: var(--dp-shadow-md);
}

.dp-pain-card__icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.dp-pain-card__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--dp-text);
}

.dp-section__body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--dp-text);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* --- Feature Cards --- */
.dp-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.dp-feature-card {
  background: var(--dp-bg-card);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-md);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--dp-shadow-sm);
  transition: transform var(--dp-transition), box-shadow var(--dp-transition);
}

.dp-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dp-shadow-md);
}

.dp-feature-card__icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.dp-feature-card__title {
  font-family: var(--dp-font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--dp-text-heading);
  margin-bottom: 10px;
}

.dp-feature-card__desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--dp-text-muted);
}

/* --- Steps --- */
.dp-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step-counter;
}

.dp-step {
  background: var(--dp-bg-card);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-md);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  box-shadow: var(--dp-shadow-sm);
  counter-increment: step-counter;
}

.dp-step::before {
  content: 'STEP ' counter(step-counter);
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--dp-navy);
  background: rgba(26,54,93,0.08);
  border-radius: 20px;
  padding: 4px 14px;
  margin: 0 auto 14px;
  width: fit-content;
  letter-spacing: 0.05em;
}

.dp-step__icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.dp-step__title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--dp-text-heading);
}

.dp-step__desc {
  font-size: 13px;
  color: var(--dp-text-muted);
  line-height: 1.7;
}

/* --- Spec Table --- */
.dp-spec-table {
  max-width: 600px;
  margin: 0 auto;
}

.dp-spec-row {
  display: flex;
  border-bottom: 1px solid var(--dp-border);
  padding: 14px 0;
}

.dp-spec-label {
  width: 120px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 14px;
  color: var(--dp-text-muted);
}

.dp-spec-value {
  font-size: 15px;
  color: var(--dp-text);
  line-height: 1.6;
}

/* --- FAQ --- */
.dp-faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dp-faq-item {
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-md);
  background: var(--dp-bg-card);
  overflow: hidden;
}

.dp-faq-item summary {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dp-text-heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--dp-transition);
}

.dp-faq-item summary:hover {
  background: var(--dp-bg-light);
}

.dp-faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 700;
  color: var(--dp-text-muted);
  transition: transform var(--dp-transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.dp-faq-item[open] summary::after {
  content: '−';
}

.dp-faq-item summary::-webkit-details-marker { display: none; }

.dp-faq-item__body {
  padding: 0 24px 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--dp-text-muted);
}

/* --- Final CTA --- */
.dp-final-cta {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 32px;
}

.dp-final-cta__title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.5;
}

.dp-final-cta__body {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 28px;
  opacity: 0.9;
}

.dp-final-cta__note {
  font-size: 12px;
  margin-top: 14px;
  opacity: 0.7;
}

/* --- Related Articles --- */
.dp-related {
  max-width: var(--dp-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.dp-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.dp-related__card {
  background: var(--dp-bg-card);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-md);
  padding: 22px;
  text-decoration: none;
  color: var(--dp-text);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--dp-transition), box-shadow var(--dp-transition);
}

.dp-related__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--dp-shadow-md);
}

.dp-related__card-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--dp-navy);
  background: rgba(26,54,93,0.06);
  padding: 3px 10px;
  border-radius: 12px;
  width: fit-content;
  text-transform: uppercase;
}

.dp-related__card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--dp-text-heading);
}

.dp-related__card-arrow {
  font-size: 13px;
  color: var(--dp-navy);
  font-weight: 600;
  margin-top: auto;
}

/* --- Sticky CTA (bottom) --- */
.dp-sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.dp-sticky-bottom .dp-cta-btn {
  width: 100%;
  max-width: 400px;
  font-size: 15px;
  padding: 14px 24px;
}

/* --- Footer --- */
.dp-footer {
  background: #1a202c;
  color: #a0aec0;
  padding: 40px 24px;
  text-align: center;
}

.dp-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.dp-footer__links a {
  color: #a0aec0;
  text-decoration: none;
  font-size: 13px;
  transition: color var(--dp-transition);
}

.dp-footer__links a:hover {
  color: #fff;
}

.dp-footer__copy {
  font-size: 12px;
  opacity: 0.6;
}

/* ─── Articles List Page ─── */

.dp-articles-hero {
  position: relative;
  padding: 80px 24px 48px;
  background: linear-gradient(135deg, #1a365d 0%, #2a4a7f 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.dp-articles-hero__inner {
  max-width: var(--dp-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.dp-articles-hero h1 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}

.dp-articles-hero p {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* Category Nav */
.dp-cat-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 20px 24px;
  max-width: var(--dp-max-width);
  margin: 0 auto;
}

.dp-cat-btn {
  display: inline-block;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dp-text);
  border: 1px solid var(--dp-border);
  border-radius: 20px;
  text-decoration: none;
  background: var(--dp-bg-card);
  transition: all var(--dp-transition);
}

.dp-cat-btn:hover, .dp-cat-btn.active {
  background: var(--dp-navy);
  color: #fff;
  border-color: var(--dp-navy);
}

/* Article Cards */
.dp-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 32px 24px;
  max-width: var(--dp-max-width);
  margin: 0 auto;
}

.dp-article-card {
  background: var(--dp-bg-card);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-md);
  padding: 24px;
  text-decoration: none;
  color: var(--dp-text);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--dp-transition), box-shadow var(--dp-transition);
}

.dp-article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--dp-shadow-md);
}

.dp-article-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dp-article-card__category {
  font-size: 11px;
  font-weight: 700;
  color: var(--dp-navy);
  background: rgba(26,54,93,0.07);
  padding: 3px 10px;
  border-radius: 12px;
}

.dp-article-card__date {
  font-size: 12px;
  color: var(--dp-text-muted);
}

.dp-article-card__readtime {
  font-size: 12px;
  color: var(--dp-text-muted);
}

.dp-article-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--dp-text-heading);
}

.dp-article-card__lead {
  font-size: 13px;
  line-height: 1.7;
  color: var(--dp-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dp-article-card__arrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--dp-navy);
  margin-top: auto;
  padding-top: 8px;
}

/* ─── Article Detail Improvements ─── */

.article-meta-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--dp-border);
  margin-bottom: 20px;
}

.article-meta-item {
  font-size: 13px;
  color: var(--dp-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Article TOC */
.dp-article-toc {
  background: var(--dp-bg-light);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.dp-article-toc summary {
  font-weight: 700;
  font-size: 14px;
  color: var(--dp-text-heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dp-article-toc summary::-webkit-details-marker { display: none; }

.dp-article-toc summary::after {
  content: '▼';
  font-size: 10px;
  color: var(--dp-text-muted);
  transition: transform 0.2s;
}

.dp-article-toc[open] summary::after {
  transform: rotate(180deg);
}

.dp-article-toc__list {
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  list-style: none;
}

.dp-article-toc__list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--dp-border);
}

.dp-article-toc__list li:last-child {
  border-bottom: none;
}

.dp-article-toc__list a {
  color: var(--dp-navy);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
}

.dp-article-toc__list a:hover {
  text-decoration: underline;
}

/* ─── Static Pages (about, voices, privacy, join) ─── */

.dp-static-hero {
  position: relative;
  padding: 80px 24px 48px;
  background: linear-gradient(135deg, #1a365d 0%, #2a4a7f 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.dp-static-hero__inner {
  max-width: var(--dp-max-width-narrow);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.dp-static-hero h1 {
  font-family: var(--dp-font-heading);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin-bottom: 12px;
}

.dp-static-hero p {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.7;
}

.dp-static-hero__image {
  max-width: 500px;
  margin: 24px auto 0;
  border-radius: var(--dp-radius-md);
  overflow: hidden;
  box-shadow: var(--dp-shadow-lg);
}

.dp-static-hero__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Voice Cards --- */
.dp-voice-card {
  background: var(--dp-bg-card);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-md);
  padding: 24px;
  box-shadow: var(--dp-shadow-sm);
}

.dp-voice-card__attr {
  font-size: 13px;
  font-weight: 700;
  color: var(--dp-navy);
  margin-bottom: 8px;
}

.dp-voice-card__text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--dp-text);
}

.dp-voice-card__text::before {
  content: '"';
  font-size: 24px;
  color: var(--dp-navy);
  opacity: 0.3;
  font-weight: 700;
  margin-right: 4px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .dp-hero__inner {
    grid-template-columns: 1fr;
    padding: 70px 20px 40px;
    gap: 28px;
  }

  .dp-hero__image {
    max-width: 400px;
    margin: 0 auto;
  }

  .dp-hero {
    min-height: auto;
  }

  .dp-hero__title {
    font-size: 24px;
  }

  .dp-pain-grid {
    grid-template-columns: 1fr;
  }

  .dp-feature-grid {
    grid-template-columns: 1fr;
  }

  .dp-steps {
    grid-template-columns: 1fr;
  }

  .dp-article-grid {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }

  .dp-related__grid {
    grid-template-columns: 1fr;
  }

  .dp-trust-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 16px;
  }

  .dp-section {
    padding: 48px 16px;
  }

  .dp-spec-label {
    width: 90px;
  }

  .dp-final-cta {
    padding: 32px 16px;
  }
}

@media (max-width: 480px) {
  .dp-cta-btn {
    font-size: 15px;
    padding: 14px 28px;
    width: 100%;
    max-width: 340px;
  }

  .dp-hero__subtitle {
    font-size: 14px;
  }
}
