/* ==========================================================================
   Tralunga — static pages (about, careers, partners, cancellation, contact, safety, terms, privacy, cookies).
   Uses the shared tokens in styles.css and the form fields and checkboxes in booking.css.
   ========================================================================== */

.page-static main { min-height: 60vh; }
.page-static .site-footer { margin-top: 0; }

/* Language fallback notice */
.pg-fallback { margin: 16px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: #FFF6E5; border: 1px solid #F3D9A6; color: #7A5A12; font-size: 14px; }
.pg-fallback[hidden] { display: none; }

/* Hero */
.pg-hero { background: linear-gradient(120deg, var(--navy-800), var(--navy-700)); color: #fff; padding: 36px 0 32px; margin-top: 16px; }
.pg-lang > .pg-hero { margin-top: 0; }
.pg-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9CCBE6; margin-bottom: 6px; }
html[lang="ja"] .pg-eyebrow, html[lang="ko"] .pg-eyebrow { text-transform: none; letter-spacing: 0; }
.pg-h1 { color: #fff; font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; line-height: 1.15; text-wrap: balance; }
.pg-lead { margin-top: 12px; max-width: 720px; font-size: clamp(16px, 2vw, 19px); line-height: 1.55; color: #D4E4EF; }

/* Layout: article, with an "On this page" list beside long pages */
.pg-layout { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 72px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .pg-layout { grid-template-columns: minmax(0, 760px); justify-content: center; }
  .pg-layout.has-toc { grid-template-columns: 240px minmax(0, 760px); align-items: start; gap: 48px; }
}
.pg-toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
@media (min-width: 960px) { .pg-toc { position: sticky; top: calc(var(--header-h) + 16px); } }
.pg-toc-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
html[lang="ja"] .pg-toc-title, html[lang="ko"] .pg-toc-title { text-transform: none; letter-spacing: 0; }
.pg-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.pg-toc li { counter-increment: toc; }
.pg-toc a { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px; padding: 5px 0; font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.pg-toc a::before { content: counter(toc) '.'; color: var(--muted); font-variant-numeric: tabular-nums; }
.pg-toc a:hover { color: var(--primary-600); text-decoration: none; }
@media (max-width: 959px) { .pg-toc ol { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 16px; } }

/* Prose */
.prose { min-width: 0; font-size: 16px; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 14px; }
.prose h2 { margin-top: 36px; font-size: 22px; font-weight: 800; line-height: 1.3; color: var(--ink); scroll-margin-top: calc(var(--header-h) + 16px); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 22px; font-size: 17px; font-weight: 800; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose a { color: var(--primary-600); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; }
.prose li::marker { color: var(--primary); }
.prose code { padding: 1px 6px; border-radius: 5px; background: var(--bg-alt); border: 1px solid var(--line); font-size: .9em; }
.pg-muted { color: var(--muted); font-size: 14px; }

/* Numbered steps */
.prose .pg-steps { list-style: none; padding: 0; counter-reset: step; }
.prose .pg-steps > li { counter-increment: step; position: relative; padding: 4px 0 4px 44px; min-height: 32px; }
.prose .pg-steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums;
}

/* Callouts */
.callout { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--primary); color: var(--ink-2); }
.callout > * + * { margin-top: 10px; }
.callout-info { background: var(--primary-50); border-color: var(--primary-100); border-left-color: var(--primary); }
.callout-alert { background: #FBEDEB; border-color: #F1C9C5; border-left-color: var(--danger); }
.pg-numbers { list-style: none; padding: 0 !important; display: flex !important; flex-wrap: wrap; gap: 8px 20px !important; }
.pg-numbers li { display: flex; align-items: baseline; gap: 8px; }
.pg-numbers strong { font-size: 20px; font-variant-numeric: tabular-nums; color: var(--danger); }

/* Company facts */
.pg-facts { display: grid; gap: 0; margin: 18px 0 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.pg-facts > div { display: grid; gap: 2px 16px; padding: 12px 16px; grid-template-columns: minmax(0, 1fr); }
.pg-facts > div + div { border-top: 1px solid var(--line); }
@media (min-width: 640px) { .pg-facts > div { grid-template-columns: 160px minmax(0, 1fr); } }
.pg-facts dt { font-weight: 700; color: var(--muted); font-size: 14px; }
.pg-facts dd { margin: 0; color: var(--ink); font-weight: 600; }

/* Tables */
.pg-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; -webkit-overflow-scrolling: touch; }
.pg-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.pg-table th, .pg-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.pg-table thead th { background: var(--bg-alt); font-size: 13px; color: var(--muted); font-weight: 800; }
.pg-table tbody th { font-weight: 800; color: var(--ink); white-space: nowrap; }
.pg-table tbody tr:last-child th, .pg-table tbody tr:last-child td { border-bottom: 0; }

/* Contact cards */
.pg-contact-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .pg-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-contact-card { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pg-contact-card > * + * { margin-top: 6px; }
.prose .pg-contact-card h2 { margin: 0; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
html[lang="ja"] .pg-contact-card h2, html[lang="ko"] .pg-contact-card h2 { text-transform: none; letter-spacing: 0; }
.pg-contact-card p:not(.pg-muted) { font-size: 17px; font-weight: 700; color: var(--ink); }
.pg-contact-card a { text-decoration: none; }
.pg-contact-card a:hover { text-decoration: underline; }

/* Forms */
.pg-form { display: grid; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pg-form .co-field label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pg-form .co-field textarea {
  width: 100%; min-height: 120px; padding: 10px 12px; font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink); resize: vertical;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff;
}
.pg-form .co-field textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.pg-form .co-field.is-invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(194, 48, 42, .12); }
.pg-form .btn { justify-self: start; }
.pg-form-note { font-size: 14px; color: var(--ink-2); }
.pg-form-note[hidden] { display: none; }
@media (max-width: 559px) { .pg-form { padding: 16px; } .pg-form .co-grid { grid-template-columns: minmax(0, 1fr); } .pg-form .btn { justify-self: stretch; } }

/* Cookie setting */
.pg-card { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.cookie-box { display: grid; gap: 12px; }
.cookie-box .check { align-items: flex-start; font-size: 16px; line-height: 1.5; }
.cookie-box .check-box { margin-top: 3px; }
