:root {
  --bg: #111;
  --panel: #1e1e1e;
  --panel-2: #262727;
  --line: rgba(255, 255, 255, 0.18);
  --muted: #aeaece;
  --soft: #b3c0d1;
  --pink: #f894fe;
  --orange: #ffaa87;
  --hot-pink: #fa59c0;
  --lime: #f0fe87;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: #fff;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100svh;
  width: 100%;
  background: var(--bg);
  font-family: "Inter", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
}

.hero-section {
  position: relative;
  min-height: min(100svh, 700px);
  overflow: hidden;
  padding: 24px 18px 36px;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.38) 0%, rgba(17, 17, 17, 0.76) 52%, #111 90%),
    radial-gradient(circle at 24% 18%, rgba(255, 170, 135, 0.48), transparent 34%),
    radial-gradient(circle at 62% 24%, rgba(255, 122, 24, 0.24), transparent 32%),
    radial-gradient(circle at 76% 16%, rgba(248, 148, 254, 0.22), transparent 28%),
    linear-gradient(135deg, #29150d 0%, #17110d 34%, #111 62%, #0b0b0b 100%);
  opacity: 1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 86%);
}

.hero-nav,
.hero-content,
.tree-section,
.partners-section,
.contact-section {
  position: relative;
  z-index: 1;
}

.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.pf-logo {
  width: 164px;
  height: auto;
}

.language-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.language-toggle button {
  width: 44px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--soft);
  background: transparent;
  font-weight: 800;
  font-size: 12px;
}

.language-toggle button.active {
  color: #111;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.hero-content {
  width: 100%;
  max-width: 1120px;
  margin: auto;
  padding: 92px 0 0;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.hero-main-logo {
  display: block;
  width: min(88vw, 780px);
  height: auto;
}

.hero-content h1 {
  margin: 18px 0 0;
  font-size: clamp(56px, 13vw, 132px);
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-title {
  display: block;
  max-width: 820px;
  margin-top: 28px;
  font-size: clamp(28px, 5.4vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(90deg, #fff 0%, var(--orange) 48%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 720px;
  margin: 24px 0 0;
  color: #d9d9e8;
  font-size: 17px;
  line-height: 1.8;
}

.lang-ja .hero-title {
  max-width: 900px;
  font-size: clamp(27px, 4.8vw, 50px);
  line-height: 1.22;
}

.lang-ja .hero-desc,
.lang-ja .platform-desc,
.lang-ja .contact-body p {
  line-height: 1.85;
}

.lang-ja .section-head h2 {
  line-height: 1.18;
}

.lang-ja .platform-label {
  line-height: 1.7;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 54px;
  margin-top: 34px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #111;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  font-weight: 800;
  text-decoration: none;
}

.visual-showcase {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  padding: 10px 0 62px;
  background: var(--bg);
  perspective: 1200px;
}

.showcase-title {
  width: 100%;
  max-width: 1156px;
  margin: 0 auto 26px;
  padding: 0 18px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.showcase-cards {
  position: relative;
  width: min(100%, 1120px);
  height: 404px;
  margin: 0 auto;
  transform-style: preserve-3d;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.showcase-cards.is-dragging {
  cursor: grabbing;
}

.showcase-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 232px;
  height: 392px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: #151515;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.38);
  transform-style: preserve-3d;
  transition: transform 460ms cubic-bezier(0.22, 0.8, 0.22, 1), opacity 360ms ease, filter 360ms ease;
  will-change: transform;
}

.showcase-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.02), rgba(17, 17, 17, 0.2));
}

.showcase-card.center {
  z-index: 5;
  transform: translateX(-50%) translateZ(86px);
}

.showcase-card.near-left {
  z-index: 4;
  opacity: 0.9;
  filter: brightness(0.88);
  transform: translateX(calc(-50% - 218px)) translateZ(-12px) rotateY(30deg) scale(0.92);
}

.showcase-card.near-right {
  z-index: 4;
  opacity: 0.9;
  filter: brightness(0.88);
  transform: translateX(calc(-50% + 218px)) translateZ(-12px) rotateY(-30deg) scale(0.92);
}

.showcase-card.far-left {
  z-index: 3;
  opacity: 0.52;
  filter: brightness(0.66);
  transform: translateX(calc(-50% - 386px)) translateZ(-115px) rotateY(48deg) scale(0.76);
}

.showcase-card.far-right {
  z-index: 3;
  opacity: 0.52;
  filter: brightness(0.66);
  transform: translateX(calc(-50% + 386px)) translateZ(-115px) rotateY(-48deg) scale(0.76);
}

.showcase-control {
  position: absolute;
  top: calc(50% - 52px);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  background: rgba(30, 30, 30, 0.74);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.showcase-control::before {
  content: "";
  width: 11px;
  height: 11px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.showcase-control.previous::before {
  transform: translateX(2px) rotate(-135deg);
}

.showcase-control.next::before {
  transform: translateX(-2px) rotate(45deg);
}

.showcase-control:hover {
  border-color: rgba(248, 148, 254, 0.5);
  background: rgba(45, 33, 48, 0.9);
}

.showcase-control.previous {
  left: max(22px, calc(50% - 530px));
}

.showcase-control.next {
  right: max(22px, calc(50% - 530px));
}

.showcase-dots {
  position: absolute;
  bottom: 78px;
  left: 50%;
  z-index: 6;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.showcase-dots span {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  transition: width 220ms ease, background 220ms ease;
}

.showcase-dots span.active {
  width: 23px;
  background: var(--pink);
}

.metrics-section {
  width: 100%;
  padding: 0 18px 0;
  background: var(--bg);
}

.metrics-title {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto 22px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.metric-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: center;
  padding: 30px 28px 26px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  background: rgba(30, 30, 30, 0.94);
}

.metric-label {
  margin: 0 0 27px;
  color: #fff;
  font-size: clamp(16px, 1.42vw, 19px);
  font-weight: 650;
  line-height: 1.25;
}

.metric-number {
  color: var(--pink);
  background: linear-gradient(90deg, var(--orange), var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(14px);
  font-size: clamp(32px, 2.85vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, filter 720ms ease, transform 720ms cubic-bezier(0.22, 0.8, 0.22, 1);
}

.metric-number.is-visible {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}

.metric-compact {
  display: none;
}

.metric-source {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.metric-source-logos {
  display: flex;
  gap: 16px;
  align-items: center;
  height: 22px;
}

.metric-source-logos img {
  display: block;
  width: auto;
  height: 22px;
}

.metric-source-logos img:last-child {
  height: 21px;
}

.metric-source-icons {
  gap: 15px;
}

.metric-source-icons img,
.metric-source-icons img:last-child {
  width: 22px;
  height: 22px;
}

.metric-source-icons img:first-child {
  width: 21px;
  height: 21px;
}

.metric-source-icons img:last-child {
  width: 20px;
  height: 20px;
  transform: translateY(-1px);
}

.metric-source-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  height: 22px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-source-badge img {
  width: 20px;
  height: auto;
}

/* .metrics-divider removed — spacing handled by section padding */

.tree-section,
.partners-section,
.contact-section {
  padding: 76px 18px;
}

/* Desktop: extra breathing room between sections */
@media (min-width: 761px) {
  .visual-showcase {
    padding-top: 58px;
    padding-bottom: 110px;
  }

  .metrics-section {
    padding: 48px 18px 48px;
  }

  .tree-section,
  .partners-section,
  .contact-section {
    padding: 124px 18px;
  }
}

.section-head {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.section-head h2 {
  max-width: 860px;
  margin: 12px 0 0;
  font-size: clamp(30px, 5.6vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.platforms-intro {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.tree-wrap {
  position: relative;
  --tree-branch: min(34vw, 230px);
  --tree-stroke: rgba(248, 148, 254, 0.54);
  width: 100%;
  max-width: 920px;
  min-height: 520px;
  margin: 48px auto 0;
}

.tree-line {
  position: absolute;
  background: var(--tree-stroke);
  border-radius: 999px;
}

.tree-line.vertical {
  top: 92px;
  left: 50%;
  width: 2px;
  height: 86px;
}

.tree-line.left,
.tree-line.right {
  top: 178px;
  width: var(--tree-branch);
  height: 2px;
}

.tree-line.left {
  right: 50%;
}

.tree-line.right {
  left: 50%;
}

.tree-line.down-left,
.tree-line.down-right {
  top: 178px;
  width: 2px;
  height: 42px;
}

.tree-line.down-left {
  left: calc(50% - var(--tree-branch));
}

.tree-line.down-right {
  left: calc(50% + var(--tree-branch));
}

.tree-root {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  width: 248px;
  height: 116px;
  transform: translateX(-50%);
  flex-direction: column;
  gap: 11px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.tree-root:hover {
  transform: translateX(-50%) translateY(-3px);
  border-color: rgba(255, 255, 255, 0.34);
}

.tree-root img {
  width: 190px;
}

.tree-root-visit {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(248, 148, 254, 0.36);
  border-radius: 999px;
  color: #fff;
  background: rgba(248, 148, 254, 0.1);
  box-shadow: 0 8px 18px rgba(248, 148, 254, 0.1);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.tree-root-visit span {
  color: var(--pink);
  font-size: 15px;
  line-height: 0.8;
  letter-spacing: 0;
}

.tree-root:hover .tree-root-visit {
  color: #fff;
  border-color: rgba(248, 148, 254, 0.72);
  background: rgba(248, 148, 254, 0.18);
  box-shadow: 0 12px 24px rgba(248, 148, 254, 0.16);
  transform: translateX(2px) translateY(-1px);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 220px;
}

.platform-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(30, 30, 30, 0.9);
}

.platform-card {
  position: relative;
  display: grid;
  grid-template-rows: 104px 64px minmax(126px, auto) auto;
  min-width: 0;
  padding: 28px;
  color: #fff;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.platform-visit {
  position: absolute;
  top: 24px;
  right: 26px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 170, 135, 0.42);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 170, 135, 0.1);
  box-shadow: 0 8px 20px rgba(255, 170, 135, 0.1);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.platform-visit-arrow {
  color: var(--orange);
  font-size: 17px;
  line-height: 0.8;
  letter-spacing: 0;
}

.platform-card.soundpay .platform-visit {
  border-color: rgba(240, 254, 135, 0.38);
  background: rgba(240, 254, 135, 0.08);
  box-shadow: 0 8px 20px rgba(240, 254, 135, 0.08);
}

.platform-card.soundpay .platform-visit-arrow {
  color: var(--lime);
}

.platform-card:hover .platform-visit {
  color: #fff;
  border-color: rgba(255, 170, 135, 0.76);
  background: rgba(255, 170, 135, 0.18);
  box-shadow: 0 12px 28px rgba(255, 170, 135, 0.16);
  transform: translateX(2px) translateY(-1px);
}

.platform-card.soundpay:hover .platform-visit {
  border-color: rgba(240, 254, 135, 0.74);
  background: rgba(240, 254, 135, 0.15);
  box-shadow: 0 12px 28px rgba(240, 254, 135, 0.14);
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 170, 135, 0.58);
}

.platform-card.soundpay:hover {
  border-color: rgba(240, 254, 135, 0.68);
}

.platform-brand {
  display: flex;
  align-items: center;
}

.platform-brand img {
  width: 156px;
  max-width: 100%;
}

.platform-card.allthings .platform-brand img {
  width: 92px;
}

.platform-label {
  align-self: start;
  margin: 0;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.platform-card.soundpay .platform-label {
  color: var(--lime);
}

.platform-desc {
  margin: 18px 0 0;
  color: #d8d8e8;
  font-size: 15px;
  line-height: 1.8;
}

.platform-card ul {
  display: grid;
  align-self: end;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.platform-card li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.platform-card li span {
  flex: 0 0 auto;
  color: var(--orange);
  font-weight: 900;
}

.platform-card.soundpay li span {
  color: var(--lime);
}

.partners-section {
  overflow: hidden;
  background: #050505;
}

.partner-marquee {
  width: calc(100% + 36px);
  margin: 34px -18px 0;
  padding: 22px 0;
  overflow: hidden;
  background: transparent;
}

.partner-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 0 14px;
  animation: partner-marquee 50s linear infinite;
}

.partner-mobile-rows {
  display: none;
}

.partner-logo {
  display: flex;
  width: 170px;
  height: 66px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.partner-logo img {
  display: block;
  width: 124px;
  max-width: calc(100% - 30px);
  max-height: 34px;
  object-fit: contain;
}

.partner-logo img.logo-mono {
  filter: grayscale(1) brightness(0) invert(1);
}

.partner-logo img.logo-reverse {
  filter: grayscale(1) invert(1) contrast(1.25);
  mix-blend-mode: screen;
}

.partner-logo img.logo-adjust-314 {
  width: 150px;
  max-width: none;
  transform: translateX(26%);
}

.partner-logo img.logo-adjust-cube {
  width: 132px;
  height: 40px;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.partner-logo img.logo-adjust-xx {
  width: auto;
  height: 48px;
  max-height: none;
}

@keyframes partner-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes partner-marquee-reverse {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.contact-section {
  background:
    linear-gradient(180deg, #111 0%, #090909 100%),
    radial-gradient(circle at 50% 0%, rgba(250, 89, 192, 0.18), transparent 40%);
  padding-bottom: 92px;
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 0 18px 22px;
  background: #090909;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: rgba(255, 255, 255, 0.7);
}

.privacy-page {
  min-height: 100svh;
  background:
    linear-gradient(180deg, #111 0%, #090909 100%),
    radial-gradient(circle at 16% 0%, rgba(248, 148, 254, 0.1), transparent 34%);
  font-family: "Inter", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.privacy-wrap {
  width: min(100% - 36px, 760px);
  margin: 0 auto;
  padding: 72px 0 80px;
}

.privacy-logo {
  display: block;
  width: 180px;
  height: auto;
  margin-bottom: 54px;
}

.privacy-wrap h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: 0;
}

.privacy-updated,
.privacy-wrap p,
.privacy-wrap li {
  color: #d8d8e8;
  font-size: 14px;
  line-height: 1.8;
}

.privacy-updated {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.privacy-section {
  margin-top: 42px;
}

.privacy-section h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.privacy-section p {
  margin: 0;
}

.privacy-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.privacy-section a,
.privacy-back {
  color: var(--pink);
  text-decoration: none;
}

.privacy-back {
  display: inline-flex;
  margin-top: 54px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 720px;
  margin: 34px auto 0;
}

@media (min-width: 761px) {
  .contact-list {
    grid-template-columns: repeat(2, minmax(0, 460px));
    column-gap: 32px;
    row-gap: 12px;
    justify-content: center;
    max-width: 1120px;
    margin: 48px auto 0;
  }

  .contact-card {
    width: 100%;
  }
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 10px;
  align-items: center;
  padding: 18px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.contact-card.has-qr {
  padding-right: 116px;
}

/* contact divider lines removed — using section spacing instead */

.contact-photo {
  grid-column: 1;
  grid-row: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  object-fit: cover;
}

.contact-body {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.contact-body h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 850;
}

.contact-body p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-links {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  gap: 2px;
}

.contact-links a,
.contact-region {
  display: flex;
  gap: 10px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0;
  text-decoration: none;
  word-break: break-all;
}

.contact-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1px solid rgba(240, 254, 135, 0.55);
  border-radius: 50%;
}

.mail-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 8px;
  height: 5px;
  border: 1.5px solid var(--lime);
  border-radius: 1px;
}

.mail-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 5px;
  height: 5px;
  border-left: 1.5px solid var(--lime);
  border-bottom: 1.5px solid var(--lime);
  transform: rotate(-45deg);
}

.phone-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: 1.5px solid var(--lime);
  border-radius: 4px;
  transform: rotate(-28deg);
}

.phone-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  width: 3px;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
  transform: rotate(-28deg);
}

.region-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--lime);
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Legacy text labels, kept harmless if older markup is cached. */
.contact-links a > span:not(.contact-icon) {
  color: var(--lime);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.line-qr {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
}

.line-qr img {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  background: #fff;
}

.line-qr span {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid rgba(240, 254, 135, 0.28);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(240, 254, 135, 0.06);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 1080px) and (min-width: 761px) {
  .metric-number {
    font-size: 40px;
  }

  .metric-full {
    display: none;
  }

  .metric-compact {
    display: inline;
  }

  .contact-card.has-qr {
    padding-right: 86px;
  }

  .contact-links a,
  .contact-region {
    font-size: 14px;
    white-space: nowrap;
    word-break: normal;
  }

  .line-qr img {
    width: 68px;
    height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .partner-track,
  .platform-card,
  .showcase-card,
  .showcase-dots span,
  .metric-number {
    animation: none;
    transition: none;
  }
}

@media (max-width: 760px) {
  .hero-section {
    min-height: min(92svh, 640px);
    padding: 20px 18px 30px;
  }

  .pf-logo {
    width: 142px;
  }

  .hero-content {
    padding-top: 72px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .visual-showcase {
    padding: 0 0 42px;
    perspective: 760px;
  }

  .showcase-title {
    margin-bottom: 20px;
    font-size: 10px;
    letter-spacing: 0.24em;
  }

  .showcase-cards {
    height: 292px;
    touch-action: auto;
    cursor: default;
  }

  .showcase-card {
    width: 156px;
    height: 276px;
    border-radius: 21px;
  }

  .showcase-card.center {
    transform: translateX(-50%) translateZ(45px);
  }

  .showcase-card.near-left {
    transform: translateX(calc(-50% - 120px)) translateZ(-16px) rotateY(43deg) scale(0.88);
  }

  .showcase-card.near-right {
    transform: translateX(calc(-50% + 120px)) translateZ(-16px) rotateY(-43deg) scale(0.88);
  }

  .showcase-card.far-left {
    opacity: 0.22;
    transform: translateX(calc(-50% - 196px)) translateZ(-94px) rotateY(56deg) scale(0.7);
  }

  .showcase-card.far-right {
    opacity: 0.22;
    transform: translateX(calc(-50% + 196px)) translateZ(-94px) rotateY(-56deg) scale(0.7);
  }

  .showcase-control {
    top: 148px;
    display: flex;
    width: 40px;
    height: 40px;
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.66);
    background: rgba(30, 30, 30, 0.3);
  }

  .showcase-control:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(30, 30, 30, 0.38);
  }

  .showcase-control::before {
    width: 9px;
    height: 9px;
    border-width: 2px 2px 0 0;
  }

  .showcase-control.previous {
    left: 18px;
  }

  .showcase-control.next {
    right: 18px;
  }

  .showcase-dots {
    bottom: 62px;
  }

  .metrics-section {
    padding: 0 18px;
  }

  .metrics-title {
    margin-bottom: 18px;
    font-size: 10px;
    letter-spacing: 0.24em;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .metric-card {
    min-height: 120px;
    padding: 19px 20px 17px;
    border-radius: 12px;
  }

  .metric-label {
    margin-bottom: 13px;
    font-size: 15px;
  }

  .metric-number {
    font-size: 42px;
  }

  .metric-full {
    display: none;
  }

  .metric-compact {
    display: inline;
  }

  .metric-source {
    margin-top: 10px;
    font-size: 10px;
  }

  .metric-source-logos {
    gap: 12px;
    height: 18px;
  }

  .metric-source-logos img {
    height: 18px;
  }

  .metric-source-logos img:last-child {
    height: 17px;
  }

  .metric-source-icons {
    gap: 13px;
  }

  .metric-source-icons img,
  .metric-source-icons img:last-child {
    width: 18px;
    height: 18px;
  }

  .metric-source-icons img:first-child {
    width: 17px;
    height: 17px;
  }

  .metric-source-icons img:last-child {
    width: 16px;
    height: 16px;
    transform: translateY(-1px);
  }

  .metric-source-badge {
    gap: 7px;
    height: 18px;
    font-size: 10px;
  }

  .metric-source-badge img {
    width: 17px;
  }

  .metrics-divider {
    margin-top: 42px;
  }

  .lang-ja .hero-title {
    font-size: 27px;
    line-height: 1.25;
  }

  .lang-ja .section-head h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .tree-section,
  .partners-section,
  .contact-section {
    padding: 62px 18px;
  }

  .contact-section {
    padding-bottom: 54px;
  }

  .site-footer {
    padding-bottom: 18px;
  }

  .privacy-wrap {
    padding: 42px 0 62px;
  }

  .privacy-logo {
    width: 148px;
    margin-bottom: 42px;
  }

  .tree-wrap {
    --tree-rail: 10px;
    --tree-card-gutter: 30px;
    min-height: auto;
    margin-top: 34px;
    padding-left: 0;
  }

  .tree-line.vertical {
    left: var(--tree-rail);
    top: 40px;
    height: calc(75% - 4px);
    z-index: 2;
    border-radius: 0;
  }

  .tree-line.left {
    display: block;
    top: 40px;
    right: auto;
    left: var(--tree-rail);
    width: calc(50% - var(--tree-rail) - 100px);
    z-index: 2;
    border-radius: 0;
  }

  .tree-line.right,
  .tree-line.down-left,
  .tree-line.down-right {
    display: none;
  }

  .tree-root {
    left: 50%;
    width: 200px;
    height: 100px;
    gap: 8px;
    transform: translateX(-50%);
  }

  .tree-root:hover {
    transform: translateX(-50%) translateY(-3px);
  }

  .tree-root img {
    width: 150px;
  }

  .tree-root-visit {
    gap: 5px;
    padding: 6px 8px;
    font-size: 8px;
  }

  .tree-root-visit span {
    font-size: 13px;
  }

  .platform-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-top: 128px;
  }

  .platform-card {
    position: relative;
    width: calc(100% - (2 * var(--tree-card-gutter)));
    margin: 0 auto;
    grid-template-rows: auto auto auto auto;
    padding: 20px;
  }

  .platform-visit {
    top: 20px;
    right: 20px;
    gap: 6px;
    padding: 7px 9px;
    font-size: 10px;
  }

  .platform-visit-arrow {
    font-size: 15px;
  }

  .platform-card::before {
    content: "";
    position: absolute;
    left: calc(var(--tree-rail) - var(--tree-card-gutter));
    top: calc(50% - 1px);
    width: calc(var(--tree-card-gutter) - var(--tree-rail));
    height: 2px;
    background: var(--tree-stroke);
    border-radius: 0;
  }

  .platform-brand {
    min-height: 38px;
  }

  .platform-brand img {
    width: 112px;
  }

  .platform-card.allthings .platform-brand img {
    width: 70px;
  }

  .platform-label {
    margin-top: 24px;
    font-size: 10px;
    min-height: 0;
  }

  .platform-desc {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.7;
  }

  .platform-card li {
    align-items: flex-start;
    font-size: 12px;
  }

  .partner-logo {
    width: 142px;
    height: 58px;
  }

  .partner-marquee {
    margin-top: 28px;
    padding: 16px 0;
  }

  .partner-track-desktop {
    display: none;
  }

  .partner-mobile-rows {
    display: grid;
    gap: 8px;
  }

  .partner-track-mobile {
    display: flex;
    gap: 8px 10px;
    padding: 0 10px;
    animation-duration: 44s;
  }

  .partner-track-reverse {
    animation-name: partner-marquee-reverse;
  }

  .contact-card {
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 10px;
    padding: 16px;
  }

  .contact-card:not(:last-child)::after {
    right: 16px;
    left: 82px;
  }

  .contact-card.has-qr {
    grid-template-columns: 54px minmax(0, 1fr) 82px;
    padding-right: 0;
  }

  .contact-body {
    padding-right: 0;
  }

  .contact-body h3 {
    font-size: 16px;
  }

  .contact-body p {
    max-width: 140px;
    font-size: 11px;
    line-height: 1.35;
  }

  .contact-links {
    grid-column: 1 / 3;
    grid-row: 2;
    padding-left: 0;
    padding-right: 4px;
  }

  .contact-links a,
  .contact-region {
    gap: 7px;
    font-size: 11px;
    line-height: 1.65;
    white-space: nowrap;
    word-break: normal;
  }

  .contact-icon {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }

  .region-icon {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }

  .mail-icon::before {
    left: 3px;
    top: 5px;
    width: 7px;
    height: 4px;
  }

  .mail-icon::after {
    left: 5px;
    top: 5px;
    width: 4px;
    height: 4px;
  }

  .contact-photo {
    width: 54px;
    height: 54px;
  }

  .line-qr img {
    width: 76px;
    height: 76px;
    border-radius: 7px;
  }

  .line-qr {
    position: static;
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    transform: none;
  }

  .line-qr.is-action {
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
  }

  .line-qr.is-action img,
  .line-qr.is-action span {
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  }

  .line-qr.is-action:active img,
  .line-qr.is-action:focus-visible img {
    box-shadow: 0 0 0 2px rgba(240, 254, 135, 0.64);
    transform: translateY(-1px);
  }

  .line-qr.is-action:active span,
  .line-qr.is-action:focus-visible span {
    border-color: rgba(240, 254, 135, 0.62);
    background: rgba(240, 254, 135, 0.13);
  }

  .line-qr.is-action:focus-visible {
    outline: none;
  }

  .line-qr span {
    padding: 4px 6px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }
}
