/*
 * PRAME portal — styles derived from Figma export (DIV-1772).
 * Original export was absolute-position fragments; this file maps those tokens
 * to reusable classes for semantic HTML.
 */

:root {
  --figma-neutral-100: #ffffff;
  --figma-neutral-95: #f3f3f5;
  --figma-neutral-90: #e7e7ea;
  --figma-neutral-80: #cfcfd6;
  --figma-neutral-50: #706f83;
  --figma-neutral-20: #282746;

  --figma-primary-50: #4f4bf5;
  --figma-primary-60: #6d69f7;
  --figma-primary-10: #0b088e;

  --portal-cta-bg: #4F4BF5;
  --portal-cta-bg-hover: #4944e0;

  --portal-page-bg: #f3f3f5;
  --portal-text-muted: #5c5a68;

  --portal-mark-border: #B2AFFB;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Roboto,'Noto Sans JP',sans-serif;
  background: var(--portal-page-bg);
  color: var(--figma-neutral-20);
}

h2, p{
  margin: 0;
}

.portal-frame {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  min-height: 100vh;
  background: var(--figma-neutral-95);
  box-shadow: none;
}

@media (min-width: 768px) {
  .portal-frame {
    max-width: 375px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 16px 48px rgba(15, 23, 42, 0.08);
  }
}

.portal-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px;
  background: var(--figma-neutral-100);
  box-shadow: 0px 1px 2px 0px #0000004d;
  margin-bottom: 10px;
}

.portal-logo-mark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
  vertical-align: middle;
  object-fit: contain;
}

.portal-topbar__title {
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.15px;
}

.portal-h2-18 {
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0.15px;
}

.portal-h2-16 {
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.15px;
}

.portal-h2-14 {
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.25px;
}

.portal-h2__mark-container {
  display: flex;
  align-items: center;
}

.portal-h2__mark {
  border: 1.5px solid var(--portal-mark-border);
  border-radius: 3px;
  margin-right: 10px;
  height: 24px;
}

.portal-body-lg-16 {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.15px;
  color: var(--figma-neutral-20);
}

.portal-body-lg-14 {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.15px;
  color: var(--figma-neutral-20);
}

.portal-section {
  padding: 0px 10px 10px;
}

.portal-section:has(#poi-title) {
  padding: 0px 10px 20px;
}

.portal-section--tight-top {
  padding-top: 10px;
}

.portal-section__heading {
  margin: 0 0 15px;
}

.portal-section__body {
  margin: 0 0 18px;
}

article.portal-link-section .portal-section__body {
  margin-bottom: 20px;
}

.portal-section__body p {
  margin: 0 0 12px;
}

.portal-section-precautions__body p {
  margin: 0 0 12px;
}

.portal-section-precautions__body ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.portal-section__body p:last-child {
  margin-bottom: 0;
}

.portal-btn-primary {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 80%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 14px 20px;
  min-height: 48px;
  box-sizing: border-box;
  background: var(--portal-cta-bg);
  border: none;
  border-radius: 50px;
  font-family: sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.1px;
  color: var(--figma-neutral-100);
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.portal-btn-primary:hover {
  background: var(--portal-cta-bg-hover);
  filter: none;
}

.portal-btn-primary:active {
  background: var(--portal-cta-bg-hover);
  filter: brightness(0.97);
}

.portal-btn-note {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.4px;
  color: var(--figma-neutral-20);
  text-align: center;
}

.portal-sheet {
  flex: 1;
  background: var(--figma-neutral-100);
  padding: 10px 0 20px 0;
}

.portal-scroll-bleed {
  margin-right: -10px;
}

.portal-scroll-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  padding: 0 8px 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.portal-scroll-row::-webkit-scrollbar {
  display: none;
}

.portal-poi-card {
  flex: 0 0 auto;
  width: 72px;
  height: 98px;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
  display: block;
  line-height: 0;
  text-decoration: none;
}

.portal-poi-card img {
  display: block;
  width: 72px;
  height: 98px;
  object-fit: cover;
}

.portal-poi-card:focus-visible {
  outline: 2px solid var(--figma-primary-50);
  outline-offset: 2px;
}

.portal-footer {
  margin-top: auto;
  padding: 24px 22px 32px;
  text-align: center;
  font-family: sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.5px;
  color: var(--figma-neutral-50);
  background: var(--figma-neutral-95);
  border-top: none;
}
