/* Property Media Japan: "For photographers" section (articles and index). Loaded only on /for-photographers/ pages. */
:root { --fp-text: #d8d2c7; --fp-soft: #a9a399; --fp-line: #2c2b28; --fp-card: #151412; }

.fp-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.fp-col { max-width: 46rem; }

/* Breadcrumb */
.fp-crumbs { font-size: 0.8rem; color: var(--fp-soft); margin-bottom: 1.1rem; }
.fp-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; }
.fp-crumbs li + li::before { content: '/'; margin-right: 0.5rem; color: var(--mid); }
.fp-crumbs a { color: var(--fp-soft); text-decoration: underline; text-decoration-color: rgba(169,163,153,0.4); text-underline-offset: 3px; display: inline-block; padding: 0.35rem 0; }
.fp-crumbs a:hover { color: var(--cream); }

/* Hero / cover */
.fp-hero { background: var(--charcoal); padding: 7.2rem 0 3.5rem; border-bottom: 1px solid var(--fp-line); }
.fp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.fp-kicker { font-size: 0.86rem; letter-spacing: 0.04em; color: var(--gold-light); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.8rem; }
.fp-kicker::before { content: ''; width: 28px; height: 1px; background: var(--gold); flex-shrink: 0; }
.fp-hero h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.1rem, 4.2vw, 3.7rem); line-height: 1.06; letter-spacing: -0.015em; color: var(--warm-white); margin-bottom: 1.1rem; text-wrap: balance; }
.fp-hero h1 em { font-style: italic; color: var(--gold-light); }
.fp-byline { font-size: 0.84rem; color: var(--fp-soft); margin-bottom: 1.4rem; }
.fp-byline a { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(240,235,227,0.35); text-underline-offset: 3px; }
.fp-cover { margin: 0; }
.fp-cover img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.fp-cover figcaption { font-size: 0.8rem; color: var(--fp-soft); margin-top: 0.6rem; line-height: 1.6; }

/* Answer box */
.fp-answer { background: var(--ink); border: 1px solid rgba(184,151,90,0.35); border-left: 3px solid var(--gold); padding: 1.25rem 1.4rem 1.35rem; }
.fp-answer h2 { font-family: var(--font-ui); font-size: 0.82rem; font-weight: 400; letter-spacing: 0.06em; color: var(--gold-light); margin-bottom: 0.45rem; }
.fp-answer p { font-size: 0.98rem; line-height: 1.7; color: var(--warm-white); }
.fp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; margin-top: 1rem; }
.fp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0.7rem 1.5rem; background: var(--gold); color: var(--ink); font-size: 0.9rem; font-weight: 400; letter-spacing: 0.03em; border: 1px solid var(--gold); transition: background 0.2s; }
.fp-btn:hover { background: var(--gold-light); border-color: var(--gold-light); }
.fp-btn-ghost { background: transparent; color: var(--gold-light); }
.fp-btn-ghost:hover { background: rgba(184,151,90,0.12); color: var(--warm-white); }
.fp-link { color: var(--gold-light); text-decoration: underline; text-decoration-color: rgba(212,184,122,0.45); text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; font-size: 0.92rem; }
.fp-link:hover { color: var(--warm-white); }
.fp-status { font-size: 0.8rem; color: var(--fp-soft); margin-top: 0.4rem; }

/* Stat cards */
.fp-stats-sec { background: var(--ink); padding: 3.5rem 0 1rem; }
.fp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--fp-line); border: 1px solid var(--fp-line); }
.fp-stat { background: var(--fp-card); padding: 1.5rem 1.4rem; }
.fp-stat-num { font-family: var(--font-display); font-size: clamp(2.2rem, 3.4vw, 3rem); font-weight: 300; line-height: 1; color: var(--gold-light); font-variant-numeric: lining-nums; }
.fp-stat-num small { font-size: 0.5em; margin-left: 0.15em; }
.fp-stat-label { font-size: 0.86rem; line-height: 1.55; color: var(--fp-text); margin-top: 0.7rem; }
.fp-stat-tag { display: inline-block; margin-top: 0.6rem; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink); background: var(--fp-soft); padding: 0.1rem 0.5rem; }
.fp-note { font-size: 0.84rem; color: var(--fp-soft); line-height: 1.7; margin-top: 1rem; max-width: 60rem; }

/* Article body */
.fp-article { background: var(--ink); padding: 2.5rem 0 4rem; }
.fp-article h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.85rem, 3vw, 2.5rem); line-height: 1.15; color: var(--warm-white); margin: 3.6rem 0 1.1rem; scroll-margin-top: 96px; }
.fp-article h3 { font-family: var(--font-ui); font-weight: 400; font-size: 1.08rem; color: var(--warm-white); margin: 1.8rem 0 0.5rem; }
.fp-article p, .fp-article li { font-size: 1.02rem; line-height: 1.85; color: var(--fp-text); }
.fp-article p + p { margin-top: 1rem; }
.fp-article p a, .fp-article li a, .fp-article td a, .fp-article figcaption a { color: var(--gold-light); text-decoration: underline; text-decoration-color: rgba(212,184,122,0.45); text-underline-offset: 3px; }
.fp-article p a:hover, .fp-article li a:hover { color: var(--warm-white); }
.fp-article strong { font-weight: 400; color: var(--warm-white); }

/* Figure with tile grid */
.fp-figure { margin: 1.8rem 0 0.4rem; }
.fp-figure img { width: 100%; height: auto; }
.fp-figure figcaption { font-size: 0.84rem; color: var(--fp-soft); line-height: 1.65; margin-top: 0.7rem; }
.fp-tiles { position: relative; }
.fp-tiles::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(212,184,122,0.75) 1px, transparent 1px), linear-gradient(to bottom, rgba(212,184,122,0.75) 1px, transparent 1px);
  background-size: calc(100% / 11.72) calc(100% / 7.81); }
.fp-tile-flag { position: absolute; z-index: 1; border: 2px solid var(--gold-light); background: rgba(13,12,10,0.25); }
.fp-tile-flag span { position: absolute; left: 0; top: 100%; margin-top: 4px; white-space: nowrap; font-size: 0.74rem; background: var(--ink); color: var(--warm-white); padding: 0.15rem 0.5rem; }

/* Steps */
.fp-steps { list-style: none; counter-reset: fp; display: grid; gap: 1px; background: var(--fp-line); border: 1px solid var(--fp-line); margin-top: 1.4rem; }
.fp-steps li { counter-increment: fp; background: var(--fp-card); padding: 1.3rem 1.4rem 1.3rem 4.4rem; position: relative; }
.fp-steps li::before { content: counter(fp, decimal-leading-zero); position: absolute; left: 1.3rem; top: 1.05rem; font-family: var(--font-display); font-size: 1.9rem; color: var(--gold); line-height: 1; }
.fp-steps h3 { margin: 0 0 0.3rem; }
.fp-steps p { font-size: 0.96rem !important; }
.fp-tip { border-left: 2px solid var(--gold-dim); padding: 0.2rem 0 0.2rem 1.1rem; margin-top: 1.4rem; }
.fp-tip p { font-size: 0.95rem !important; color: var(--fp-soft) !important; }

/* Tables */
.fp-table-wrap { margin-top: 1.4rem; border: 1px solid var(--fp-line); }
.fp-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.fp-table caption { text-align: left; font-size: 0.84rem; color: var(--fp-soft); padding: 0.8rem 1rem; caption-side: bottom; border-top: 1px solid var(--fp-line); line-height: 1.6; }
.fp-table th, .fp-table td { text-align: left; vertical-align: top; padding: 0.85rem 1rem; border-bottom: 1px solid var(--fp-line); line-height: 1.6; color: var(--fp-text); }
.fp-table thead th { font-weight: 400; color: var(--gold-light); font-size: 0.84rem; background: var(--fp-card); }
.fp-table tbody th { font-weight: 400; color: var(--warm-white); width: 34%; }
.fp-table tr:last-child th, .fp-table tr:last-child td { border-bottom: 0; }
.fp-table .num { white-space: nowrap; }

/* Before and after (shared slider behaviour from site.js) */
.ba-slider { position: relative; overflow: hidden; cursor: col-resize; user-select: none; -webkit-user-select: none; margin-top: 1.6rem; }
.ba-slider-track { position: relative; width: 100%; aspect-ratio: 3 / 2; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba-slider .ba-after { clip-path: inset(0 50% 0 0); }
.ba-slider-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--gold); transform: translateX(-50%); z-index: 10; }
.ba-slider-handle::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; background: var(--gold); border-radius: 50%; }
.ba-slider-handle::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 16px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpolygon points='0,5 5,0 5,10' fill='%230d0c0a'/%3E%3Cpolygon points='16,5 11,0 11,10' fill='%230d0c0a'/%3E%3C/svg%3E") no-repeat center / contain; }
.ba-label { position: absolute; bottom: 0.9rem; font-size: 0.78rem; letter-spacing: 0.05em; padding: 0.25rem 0.7rem; z-index: 5; pointer-events: none; }
.ba-label.left { left: 0.9rem; background: var(--gold); color: var(--ink); }
.ba-label.right { right: 0.9rem; background: rgba(13,12,10,0.8); color: var(--cream); }

/* Checklist */
.fp-check { list-style: none; margin-top: 1.2rem; border: 1px solid var(--fp-line); background: var(--fp-card); padding: 0.4rem 1.3rem; }
.fp-check li { position: relative; padding: 0.8rem 0 0.8rem 2.1rem; border-bottom: 1px solid var(--fp-line); font-size: 0.98rem !important; }
.fp-check li:last-child { border-bottom: 0; }
.fp-check li::before { content: ''; position: absolute; left: 0.15rem; top: 1.15rem; width: 1rem; height: 0.55rem; border-left: 2px solid var(--gold-light); border-bottom: 2px solid var(--gold-light); transform: rotate(-45deg); }

/* App cards */
.fp-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.6rem; }
.fp-app { background: var(--fp-card); border: 1px solid var(--fp-line); display: flex; flex-direction: column; }
.fp-app-shot { background: #e9e7e3; aspect-ratio: 16 / 10; overflow: hidden; }
.fp-app-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.fp-app-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.fp-app-head { display: flex; align-items: center; gap: 0.75rem; }
.fp-app-head img { width: 40px; height: 40px; border-radius: 9px; }
.fp-app-name { font-family: var(--font-ui); font-size: 1.1rem !important; font-weight: 400; color: var(--warm-white); margin: 0 !important; }
.fp-app-body p { font-size: 0.93rem !important; line-height: 1.7 !important; }
.fp-app-price { color: var(--gold-light) !important; font-size: 0.9rem !important; }
.fp-app-body .fp-link { margin-top: auto; }

/* FAQ uses the site's .pm-faq accordion; only spacing tweaks here */
.fp-faq { background: var(--charcoal); padding: 5rem 0; }
.fp-faq h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.85rem, 3vw, 2.5rem); color: var(--warm-white); margin-bottom: 1.6rem; }
.fp-faq .faq-question { font-size: 1.15rem !important; min-height: 56px; }
.fp-faq .faq-answer p { color: var(--fp-text) !important; font-size: 0.98rem !important; }

/* Author, sources, related */
.fp-after { background: var(--ink); padding: 4.5rem 0 1rem; }
.fp-author { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1.3rem; border: 1px solid var(--fp-line); background: var(--fp-card); padding: 1.6rem; }
.fp-mono { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-light); }
.fp-author h2 { font-family: var(--font-ui); font-size: 1.1rem; font-weight: 400; color: var(--warm-white); }
.fp-author-role { font-size: 0.86rem; color: var(--gold-light); margin-bottom: 0.6rem; }
.fp-author p { font-size: 0.95rem; line-height: 1.75; color: var(--fp-text); }
.fp-author p + p { margin-top: 0.7rem; }
.fp-author a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.fp-sources { margin-top: 3rem; }
.fp-sources h2, .fp-related h2 { font-family: var(--font-display); font-weight: 300; font-size: 1.9rem; color: var(--warm-white); margin-bottom: 1rem; }
.fp-sources ol { padding-left: 1.3rem; }
.fp-sources li { font-size: 0.92rem; line-height: 1.7; color: var(--fp-soft); padding: 0.3rem 0; }
.fp-sources a { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(240,235,227,0.35); text-underline-offset: 3px; }
.fp-related { margin-top: 3rem; }
.fp-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--fp-line); border: 1px solid var(--fp-line); }
.fp-related-grid a { background: var(--fp-card); padding: 1.3rem 1.3rem 1.4rem; display: block; transition: background 0.2s; }
.fp-related-grid a:hover, .fp-related-grid a:focus-visible { background: #1d1c19; }
.fp-related-grid .t { display: block; color: var(--warm-white); font-size: 1rem; line-height: 1.45; margin-bottom: 0.4rem; }
.fp-related-grid .d { display: block; font-size: 0.86rem; line-height: 1.6; color: var(--fp-soft); }
.fp-related-grid .s { display: block; font-size: 0.78rem; color: var(--gold-light); margin-top: 0.6rem; }

/* Closing CTA */
.fp-cta { background: var(--charcoal); padding: 4.5rem 0; text-align: center; margin-top: 4rem; border-top: 1px solid var(--fp-line); }
.fp-cta h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.9rem, 3.4vw, 2.8rem); color: var(--warm-white); margin-bottom: 0.8rem; }
.fp-cta p { color: var(--fp-text); max-width: 38rem; margin: 0 auto; font-size: 0.98rem; line-height: 1.75; }
.fp-cta .fp-actions { justify-content: center; }

/* Index page */
.fp-index-hero { padding-bottom: 3rem; }
.fp-index-hero .fp-intro { font-size: 1.02rem; line-height: 1.8; color: var(--fp-text); max-width: 40rem; }
.fp-list { background: var(--ink); padding: 3.5rem 0 4rem; }
.fp-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); background: var(--fp-card); border: 1px solid var(--fp-line); transition: border-color 0.25s; }
.fp-card:hover, .fp-card:focus-within { border-color: var(--gold-dim); }
.fp-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.fp-card-body { padding: 2rem 2.2rem; display: flex; flex-direction: column; gap: 0.8rem; justify-content: center; }
.fp-card-meta { font-size: 0.8rem; color: var(--fp-soft); }
.fp-card h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.15; color: var(--warm-white); }
.fp-card h2 a::after { content: ''; position: absolute; inset: 0; }
.fp-card { position: relative; }
.fp-card p { font-size: 0.96rem; line-height: 1.75; color: var(--fp-text); }
.fp-card-more { color: var(--gold-light); font-size: 0.9rem; }
.fp-about-sec { margin-top: 2.6rem; max-width: 46rem; }
.fp-about-sec p { font-size: 0.94rem; line-height: 1.8; color: var(--fp-soft); }
.fp-about-sec p + p { margin-top: 0.8rem; }
.fp-about-sec a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }

/* Responsive */
@media (max-width: 1024px) {
  .fp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .fp-cover { max-width: 46rem; }
  .fp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-apps { grid-template-columns: minmax(0, 1fr); max-width: 46rem; }
  .fp-app { flex-direction: row; }
  .fp-app-shot { flex: 0 0 42%; aspect-ratio: auto; }
  .fp-related-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .fp-wrap { padding: 0 1.25rem; }
  .fp-hero { padding: 5.4rem 0 2.4rem; }
  .fp-crumbs { margin-bottom: 0.4rem; font-size: 0.78rem; }
  .fp-kicker { font-size: 0.8rem; margin-bottom: 0.5rem; }
  .fp-hero h1 { font-size: clamp(1.85rem, 8.2vw, 2.4rem); margin-bottom: 0.7rem; }
  .fp-byline { font-size: 0.78rem; margin-bottom: 0.9rem; }
  .fp-answer { padding: 1rem 1.05rem 1.05rem; }
  .fp-answer p { font-size: 0.93rem; line-height: 1.62; }
  .fp-actions { gap: 0.2rem 1rem; margin-top: 0.75rem; }
  .fp-btn { width: 100%; }
  .fp-app { flex-direction: column; }
  .fp-app-shot { aspect-ratio: 16 / 10; }
  .fp-card { grid-template-columns: minmax(0, 1fr); }
  .fp-card-body { padding: 1.4rem 1.3rem 1.6rem; }
  .fp-author { grid-template-columns: minmax(0, 1fr); }
  .fp-steps li { padding: 1.2rem 1.1rem 1.2rem 3.6rem; }
  .fp-steps li::before { left: 1rem; font-size: 1.6rem; }
  .fp-table tbody th { width: 40%; }
  .fp-table th, .fp-table td { padding: 0.75rem 0.8rem; font-size: 0.9rem; }
}
@media (max-width: 480px) {
  .fp-stat { padding: 1.2rem 1rem; }
  .fp-stat-label { font-size: 0.82rem; }
  .fp-table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fp-table-stack tr { display: block; border-bottom: 1px solid var(--fp-line); padding: 0.6rem 0; }
  .fp-table-stack tr:last-child { border-bottom: 0; }
  .fp-table-stack th, .fp-table-stack td { display: block; border: 0; padding: 0.2rem 0.9rem; width: auto !important; }
  .fp-table-stack td[data-label]::before { content: attr(data-label) ': '; color: var(--fp-soft); }
}

/* Japanese */
html[lang="ja"] .fp-hero h1 { font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.38; letter-spacing: 0.03em; word-break: keep-all; overflow-wrap: anywhere; }
html[lang="ja"] .fp-hero h1 em { font-style: normal; }
html[lang="ja"] .fp-article h2, html[lang="ja"] .fp-faq h2, html[lang="ja"] .fp-sources h2, html[lang="ja"] .fp-related h2, html[lang="ja"] .fp-cta h2, html[lang="ja"] .fp-card h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.45; letter-spacing: 0.03em; word-break: keep-all; overflow-wrap: anywhere; }
html[lang="ja"] .fp-article p, html[lang="ja"] .fp-article li { font-size: 0.98rem; line-height: 1.95; }
html[lang="ja"] .fp-answer p { font-size: 0.95rem; line-height: 1.8; }
html[lang="ja"] .fp-btn { letter-spacing: 0.06em; }
html[lang="ja"] .fp-faq .faq-question { font-size: 1.02rem !important; line-height: 1.6; }
html[lang="ja"] .fp-stat-label { font-size: 0.84rem; }
@media (max-width: 768px) {
  html[lang="ja"] .fp-hero h1 { font-size: clamp(1.5rem, 6.6vw, 1.9rem); }
  html[lang="ja"] .fp-answer p { font-size: 0.9rem; line-height: 1.72; }
}

/* Desktop: contents and a quiet waitlist card beside the article */
.fp-aside { display: none; }
.fp-crumbs li[aria-current] { padding: 0.35rem 0; }
@media (min-width: 1100px) {
  .fp-article-grid { display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 18rem); gap: 4.5rem; justify-content: start; align-items: start; }
  .fp-aside { display: block; position: sticky; top: 104px; margin-top: 3.6rem; }
  .fp-aside-h { font-size: 0.84rem; color: var(--gold-light); margin-bottom: 0.6rem; }
  .fp-aside ol { list-style: none; border-left: 1px solid var(--fp-line); }
  .fp-aside li a { display: block; padding: 0.42rem 0 0.42rem 1rem; font-size: 0.9rem; color: var(--fp-soft); line-height: 1.45; }
  .fp-aside li a:hover, .fp-aside li a:focus-visible { color: var(--warm-white); }
  .fp-aside-cta { margin-top: 1.8rem; border: 1px solid var(--fp-line); background: var(--fp-card); padding: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; }
  .fp-aside-cta p { font-size: 0.86rem; line-height: 1.6; color: var(--fp-text); }
  .fp-aside-cta .fp-app-name { font-size: 1rem; color: var(--warm-white); }
  .fp-aside-cta .fp-btn { width: 100%; }
}
.fp-cta h2 { line-height: 1.2; }
html[lang="ja"] .fp-cta h2 { line-height: 1.5; }
.fp-check + p { margin-top: 1.4rem !important; }
html[lang="ja"] .fp-steps h3, html[lang="ja"] .fp-app-name { word-break: keep-all; overflow-wrap: anywhere; }

/* Round 2: FAQ, author, sources and related sit in the article column beside the sticky contents */
.fp-article .fp-faq.pm-faq { background: none; padding: 0; margin-top: 3.6rem; }
.fp-article .fp-faq h2 { margin-top: 0; }
.fp-article .fp-after { background: none; padding: 0; margin-top: 3.6rem; }
.fp-article .fp-author h2, .fp-article .fp-sources h2, .fp-article .fp-related h2 { margin-top: 0; }
.fp-article .fp-author h2 { font-family: var(--font-ui); font-size: 1.1rem; }
.fp-article .fp-author p, .fp-article .fp-sources li, .fp-article .fp-related-grid span { line-height: 1.7; }
.fp-article .fp-sources li { font-size: 0.92rem; color: var(--fp-soft); }
.fp-article .fp-related-grid .d { font-size: 0.86rem; color: var(--fp-soft); }
.fp-article .fp-related-grid .t { font-size: 1rem; color: var(--warm-white); }
.fp-article .fp-related-grid .s { font-size: 0.78rem; color: var(--gold-light); }
.fp-cta { margin-top: 0; }
@media (min-width: 1100px) { .fp-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Tap targets */
.fp-crumbs a { min-height: 44px; display: inline-flex; align-items: center; padding: 0; }
.fp-crumbs li[aria-current] { padding: 0; display: inline-flex; align-items: center; min-height: 44px; }
.fp-crumbs ol { align-items: center; }
.fp-table th a { display: inline-flex; align-items: center; min-height: 44px; }
.fp-table th:has(a) { padding-top: 0.2rem; padding-bottom: 0.2rem; vertical-align: middle; }
@media (min-width: 1100px) { .fp-aside li a { display: flex; align-items: center; min-height: 44px; padding-top: 0.2rem; padding-bottom: 0.2rem; } }

/* App card notes and the JpegRescue illustration */
.fp-app-note { font-size: 0.8rem !important; color: var(--fp-soft) !important; line-height: 1.6 !important; }
.fp-illus { position: relative; background: #f3f1ed !important; color: #2a2926; padding: 2.1rem 1rem 0.8rem; display: flex; flex-direction: column; justify-content: center; gap: 0.35rem; font-family: var(--font-ui); }
.fp-illus-tag { position: absolute; top: 0.6rem; left: 0.75rem; font-size: 0.7rem; color: #6b6862; letter-spacing: 0.04em; }
.fp-illus ul { list-style: none; display: grid; gap: 0.3rem; }
.fp-illus li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; background: #fff; border: 1px solid #e2dfd9; padding: 0.3rem 0.5rem; color: #2a2926 !important; line-height: 1.3 !important; }
.fp-illus b, .fp-illus i { font-style: normal; font-weight: 400; font-size: 0.66rem; padding: 0.05rem 0.35rem; border-radius: 3px; }
.fp-illus b { background: #e8e4dc; color: #4a4845; }
.fp-illus i { margin-left: auto; background: var(--gold); color: var(--ink); }
.fp-illus p { font-size: 0.72rem !important; color: #5e5b55 !important; margin-top: 0.2rem; line-height: 1.4 !important; }

/* Index: compact waitlist card after the article card */
.fp-index-cta { margin-top: 1.6rem; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 1.2rem 1.4rem; align-items: center; border: 1px solid rgba(184,151,90,0.35); background: var(--fp-card); padding: 1.3rem 1.5rem; }
.fp-index-cta img { border-radius: 12px; }
.fp-index-cta h2 { font-family: var(--font-ui); font-size: 1.05rem; font-weight: 400; color: var(--warm-white); }
.fp-index-cta p { font-size: 0.9rem; color: var(--fp-text); line-height: 1.6; margin-top: 0.2rem; }
.fp-index-cta .fp-actions { margin-top: 0; }
@media (max-width: 768px) {
  .fp-index-cta { grid-template-columns: 48px minmax(0, 1fr); padding: 1.2rem; }
  .fp-index-cta img { width: 48px; height: 48px; }
  .fp-index-cta .fp-actions { grid-column: 1 / -1; }
}
.fp-steps + p { margin-top: 1.4rem !important; }
.fp-table caption a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 0.25rem 0; }
.fp-app-body .fp-app-note { font-size: 0.8rem !important; color: var(--fp-soft) !important; line-height: 1.6 !important; }
.fp-app-shot.fp-illus { justify-content: flex-start; padding: 2rem 0.8rem 0.6rem; gap: 0.3rem; }
.fp-illus ul { gap: 0.22rem; }
.fp-illus li { font-size: 0.72rem; padding: 0.18rem 0.45rem; }
.fp-illus li:nth-child(n+4) { display: none; }
@media (max-width: 768px) { .fp-illus li { font-size: 0.8rem; padding: 0.3rem 0.55rem; } .fp-illus li:nth-child(n+4) { display: flex; } .fp-app-shot.fp-illus { justify-content: center; } }
.fp-table caption a { display: inline; padding: 0; }

/* Round 3 */
.nw { white-space: nowrap; }
/* App cards: one per row, screenshot left and text right, from tablet up */
.fp-apps { grid-template-columns: minmax(0, 1fr) !important; max-width: none; }
@media (min-width: 769px) {
  .fp-app { flex-direction: row; }
  .fp-app-shot { flex: 0 0 44%; aspect-ratio: auto; }
  .fp-app-shot img { height: 100%; object-fit: cover; object-position: left top; }
}
.fp-app-shot.fp-illus { aspect-ratio: auto !important; overflow: visible; height: auto; justify-content: center; padding: 2.2rem 1rem 1rem; }
.fp-illus li, .fp-illus li:nth-child(n+4) { display: flex; font-size: max(0.78rem, 12.5px); padding: 0.3rem 0.55rem; }
.fp-illus b, .fp-illus i { font-size: max(0.72rem, 12px); }
.fp-illus-tag { font-size: max(0.72rem, 12px); }
.fp-illus p { font-size: max(0.72rem, 12px) !important; }
html[lang="ja"] .fp-link { word-break: keep-all; overflow-wrap: anywhere; }
/* Contents column from 1024px so the article never sits beside an empty gutter */
@media (min-width: 1024px) {
  .fp-article-grid { display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 16rem); gap: 3rem; justify-content: start; align-items: start; }
  .fp-aside { display: block; position: sticky; top: 104px; margin-top: 3.6rem; }
  .fp-aside-h { font-size: 0.84rem; color: var(--gold-light); margin-bottom: 0.6rem; }
  .fp-aside ol { list-style: none; border-left: 1px solid var(--fp-line); }
  .fp-aside li a { display: flex; align-items: center; min-height: 44px; padding: 0.2rem 0 0.2rem 1rem; font-size: 0.9rem; color: var(--fp-soft); line-height: 1.45; }
  .fp-aside li a:hover, .fp-aside li a:focus-visible { color: var(--warm-white); }
  .fp-aside-cta { margin-top: 1.8rem; border: 1px solid var(--fp-line); background: var(--fp-card); padding: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; }
  .fp-aside-cta p { font-size: 0.86rem; line-height: 1.6; color: var(--fp-text); }
  .fp-aside-cta .fp-app-name { font-size: 1rem; color: var(--warm-white); }
  .fp-aside-cta .fp-btn { width: 100%; }
}
@media (min-width: 1100px) { .fp-article-grid { grid-template-columns: minmax(0, 46rem) minmax(0, 18rem); gap: 4.5rem; } }
@media (min-width: 1024px) and (max-width: 1099px) { .fp-related-grid { grid-template-columns: minmax(0, 1fr); } }
/* Breadcrumb stays on one line; the current page name shortens with an ellipsis */
.fp-crumbs ol { flex-wrap: nowrap; }
.fp-crumbs li { flex: 0 0 auto; white-space: nowrap; }
.fp-crumbs li[aria-current] { flex: 1 1 auto; min-width: 0; display: block; line-height: 44px; overflow: hidden; text-overflow: ellipsis; }
/* Index card title is an h3 under the section h2 */
.fp-card h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.15; color: var(--warm-white); }
.fp-card h3 a::after { content: ''; position: absolute; inset: 0; }
html[lang="ja"] .fp-card h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.45; letter-spacing: 0.03em; word-break: keep-all; overflow-wrap: anywhere; }

/* Metric matched fallbacks so the web fonts swap in without moving the layout (CLS) */
@font-face { font-family: 'Cormorant Fallback'; src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Liberation Serif'); size-adjust: 95%; }
@font-face { font-family: 'Jost Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'); size-adjust: 93.5%; }
:root { --font-display: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif; --font-ui: 'Jost', 'Jost Fallback', system-ui, sans-serif; }
html[lang="ja"] {
  --font-display: 'Cormorant Garamond', 'Cormorant Fallback', "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "Noto Serif CJK JP", serif;
  --font-ui: 'Jost', 'Jost Fallback', "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
}
.fp-hero-grid { align-items: start; }
html[lang] .fp-crumbs ol > li { white-space: nowrap; text-wrap-mode: nowrap; }

/* Launch minors */
.fp-stat-tag { font-size: 0.78rem; }
html[lang="ja"] .fp-faq .faq-question { font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "Noto Serif CJK JP", serif !important; }
html[lang="ja"] .fp-related-grid .t { word-break: keep-all; overflow-wrap: anywhere; }
.fp-intro a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
