/* ============================================================
   REPERIO site — shared styles for sub pages
   (matches the tone of index.html)
   ============================================================ */

:root {
  --ink: #0c1626;
  --navy: #14233d;
  --text: #283546;
  --muted-text: #5d6b7e;
  --line: #e6eaf0;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --bg-deep: #0c1626;
  --accent: #2f5bea;
  --accent-2: #18b07e;
  --accent-soft: #eef2fe;
  --radius: 18px;
  --shadow: 0 18px 50px -22px rgba(20, 35, 61, .35);
  --shadow-sm: 0 8px 24px -14px rgba(20, 35, 61, .3);
  --maxw: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.en {
  font-family: "Manrope", sans-serif;
  letter-spacing: .04em;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(20, 35, 61, .5);
}

.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 30px;
  width: auto;
  display: block;
}

.brand-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  padding-left: 12px;
  margin-left: 2px;
  border-left: 1px solid var(--line);
  letter-spacing: .02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy);
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  padding: 11px 22px;
  border-radius: 999px;
  transition: transform .18s var(--ease), box-shadow .25s, background .2s, color .2s;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(47, 91, 234, .7);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -12px rgba(47, 91, 234, .8);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 16px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--navy);
  transition: transform .3s, opacity .2s;
}

.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }

body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
}

/* ---------- Page hero band ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  color: #fff;
  padding: 150px 0 64px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../images/2020/vision.jpg) right center / cover no-repeat;
  opacity: .26;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(10, 18, 32, .94) 20%, rgba(12, 22, 38, .7) 100%),
    radial-gradient(680px 360px at 86% 12%, rgba(47, 91, 234, .4), transparent 62%);
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-hero .kicker {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #93acff;
}

.page-hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.4;
  color: #fff;
  margin-top: 12px;
}

.page-hero p {
  margin-top: 12px;
  color: #c4cee0;
  font-size: 15px;
  max-width: 40em;
}

/* ---------- Page body ---------- */
.page {
  min-height: 60vh;
}

.page-body {
  max-width: 860px;
  padding-top: 60px;
  padding-bottom: 80px;
}

.page-body h2 {
  font-size: 22px;
  color: var(--ink);
  font-weight: 800;
  margin: 40px 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.page-body h3 {
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
  margin: 32px 0 10px;
}

.page-body h4 {
  font-size: 15.5px;
  color: var(--navy);
  font-weight: 700;
  margin: 22px 0 8px;
}

.page-body p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 14px;
}

.page-body ul,
.page-body ol {
  margin: 0 0 16px 0;
  padding-left: 0;
  list-style: none;
}

.page-body ul > li,
.page-body ol > li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 8px;
}

.page-body ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.page-body li ul {
  margin-top: 8px;
}

.page-body strong {
  font-weight: 700;
  color: var(--navy);
}

/* legal / info tables */
.page-body table,
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-body table th,
.info-table th {
  text-align: left;
  vertical-align: top;
  background: var(--bg-alt);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  width: 32%;
  min-width: 160px;
}

.page-body table td,
.info-table td {
  vertical-align: top;
  font-size: 14.5px;
  color: var(--text);
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.page-body table tr:last-child th,
.page-body table tr:last-child td {
  border-bottom: none;
}

/* contact card */
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfcff, #f5f7fb);
  box-shadow: var(--shadow-sm);
  padding: 40px;
  text-align: center;
  margin: 8px 0 32px;
}

.contact-card .label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted-text);
}

.contact-card .mail {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  color: var(--ink);
  margin: 10px 0 6px;
  font-family: "Manrope", sans-serif;
}

.contact-card .note {
  font-size: 13px;
  color: var(--muted-text);
}

/* alert (scam warning) */
.alert {
  border: 1px solid #f3c0c0;
  background: #fff6f6;
  border-left: 4px solid #e53e3e;
  border-radius: 12px;
  padding: 22px 24px;
  margin: 8px 0 30px;
}

.alert .head {
  color: #d23b3b;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.alert p {
  font-size: 14px;
  color: #4a5360;
  margin-bottom: 12px;
}

.alert .examples {
  background: #fff8e6;
  border: 1px solid #f3d28a;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 14px 0;
}

.alert .examples h4 {
  color: #9a6a08;
  font-size: 14.5px;
  font-weight: 800;
  margin-bottom: 10px;
}

.alert .examples ul {
  list-style: none;
}

.alert .examples li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: #7a5a12;
  font-weight: 600;
  margin-bottom: 6px;
}

.alert .examples li::before {
  content: "⚠";
  position: absolute;
  left: 0;
  top: 0;
}

.alert small {
  display: block;
  margin-top: 6px;
  color: #8693a5;
  font-size: 12.5px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep);
  color: #aeb9c9;
  padding: 56px 0 30px;
}

.foot-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.foot-brand .en {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .12em;
}

.foot-brand p {
  font-size: 13px;
  margin-top: 12px;
  max-width: 30em;
}

.foot-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.foot-col h4 {
  font-size: 12px;
  letter-spacing: .1em;
  color: #6f7e92;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 800;
}

.foot-col a {
  display: block;
  font-size: 13.5px;
  color: #c3cee0;
  padding: 5px 0;
  transition: color .2s;
}

.foot-col a:hover {
  color: #fff;
  text-decoration: none;
}

.foot-bottom {
  padding-top: 22px;
  font-size: 12px;
  color: #6f7e92;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-cta .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    inset: 68px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 99;
    padding: 14px 24px 24px;
  }

  body.menu-open .mobile-menu {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .mobile-menu a {
    display: block;
    padding: 13px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu a:hover {
    text-decoration: none;
  }

  .mobile-menu .btn {
    width: 100%;
    margin-top: 16px;
  }

  .page-hero {
    padding: 120px 0 50px;
  }

  .page-body {
    padding-top: 40px;
  }

  .contact-card {
    padding: 28px 22px;
  }

  .page-body table th,
  .page-body table td,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    border-bottom: none;
  }

  .page-body table th,
  .info-table th {
    padding-bottom: 4px;
  }

  .page-body table tr,
  .info-table tr {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 6px 0;
  }
}

@media (max-width: 480px) {
  .brand-name {
    display: none;
  }
}
