/* Royal One renewed website */
:root {
  --navy: #0b1733;
  --navy-2: #14254d;
  --ink: #111827;
  --text: #263248;
  --muted: #667085;
  --line: #d9dfeb;
  --paper: #f6f8fc;
  --white: #ffffff;
  --blue: #2d5bff;
  --coral: #e85949;
  --coral-2: #c94337;
  --green: #2f9b72;
  --gold: #b8923d;
  --shadow: 0 18px 50px rgba(11, 23, 51, 0.14);
  --radius: 8px;
  --max: 1180px;
  --nav-h: 74px;
  --font: Helvetica, Arial, "Noto Sans JP", sans-serif;
  --jp: "Noto Sans JP", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.lang-ja {
  font-family: var(--jp);
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-tight {
  padding: 72px 0;
}

.section-dark {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
}

.section-soft {
  background: var(--paper);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

h1 {
  max-width: 900px;
  font-size: clamp(2.7rem, 6vw, 5.9rem);
  font-weight: 800;
}

h2 {
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

p {
  font-size: 1rem;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.13rem;
}

.section-dark .lead,
.section-dark p {
  color: rgba(255, 255, 255, 0.78);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.lang-ja .eyebrow {
  font-size: 0.82rem;
  text-transform: none;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--coral);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.62fr);
  gap: 52px;
  align-items: end;
  margin-bottom: 42px;
}

.section-head p {
  margin-bottom: 0;
}

.nav {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav.is-scrolled,
.nav.nav-solid {
  background: rgba(7, 15, 34, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 36px rgba(3, 8, 20, 0.22);
  backdrop-filter: blur(14px);
}

.nav-inner {
  width: min(calc(100% - 36px), 1280px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.nav-logo img {
  width: 154px;
  height: auto;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 27px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white) !important;
}

.nav-lang {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 70px) 0 78px;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 9, 22, 0.92) 0%, rgba(7, 15, 34, 0.76) 44%, rgba(7, 15, 34, 0.22) 100%),
    linear-gradient(0deg, rgba(5, 12, 28, 0.72) 0%, rgba(5, 12, 28, 0) 35%);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 12px;
  background: linear-gradient(90deg, var(--coral), var(--blue), var(--green));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(780px, 100%);
}

.hero h1,
.hero p {
  color: var(--white);
}

.hero h1 {
  margin-bottom: 24px;
}

.hero p {
  max-width: 720px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-signal strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.2;
}

.hero-signal span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--coral-2);
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.36);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.13);
}

.btn-dark {
  color: var(--white);
  background: var(--navy);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 800;
}

.btn-link i {
  font-size: 0.85rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.58fr);
  gap: 58px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(320px, 0.58fr) minmax(0, 0.82fr);
}

.copy-stack {
  display: grid;
  gap: 20px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.check-list i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green);
  font-size: 0.78rem;
}

.visual-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--navy);
  aspect-ratio: 16 / 10;
}

.visual-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(8, 17, 39, 0.86);
  color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.visual-note strong {
  display: block;
  color: var(--white);
}

.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tile {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.tile.dark {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.tile h3 {
  margin-bottom: 10px;
}

.tile p {
  margin-bottom: 0;
  color: var(--muted);
}

.tile.dark p {
  color: rgba(255, 255, 255, 0.7);
}

.tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--navy);
}

.tile.dark .tile-icon {
  background: var(--coral);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.offer {
  display: grid;
  grid-template-rows: 250px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(11, 23, 51, 0.08);
}

.offer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-body {
  padding: 30px;
}

.offer-body p {
  color: var(--muted);
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(11, 23, 51, 0.08);
}

.home-news-card a {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100%;
}

.home-news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.home-news-card div {
  padding: 24px;
}

.home-news-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 800;
}

.home-news-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.home-news-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.home-news-action {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.step {
  padding: 30px 24px 0 0;
  position: relative;
}

.step::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--coral);
}

.step-num {
  color: var(--coral);
  font-weight: 900;
  margin-bottom: 10px;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(260px, 100%);
  min-height: 118px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.logo-tile img {
  max-height: 74px;
  width: auto;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.profile-table th,
.profile-table td {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.profile-table th {
  width: 150px;
  color: var(--ink);
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 0.72fr);
  gap: 54px;
  align-items: start;
}

.contact-points {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.contact-point {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.contact-point i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--white);
  background: var(--navy);
}

.form-shell {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd6e5;
  border-radius: 8px;
  background: #fbfcff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45, 91, 255, 0.12);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  min-height: 18px;
  color: var(--coral-2);
  font-size: 0.8rem;
}

.form-status {
  min-height: 22px;
  margin-top: 14px;
  color: var(--green);
  font-weight: 800;
}

.form-status.error {
  color: var(--coral-2);
}

footer {
  padding: 48px 0;
  color: rgba(255, 255, 255, 0.68);
  background: #07101f;
}

.footer-inner {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.footer-inner img {
  width: 160px;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .section {
    padding: 78px 0;
  }

  .section-head,
  .split,
  .split.reverse,
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .grid-3,
  .grid-4,
  .offer-grid,
  .home-news-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    display: grid;
    align-content: start;
    gap: 0;
    padding: 24px 20px;
    background: rgba(7, 15, 34, 0.98);
    transform: translateX(100%);
    transition: transform 220ms ease;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links a {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 18px 4px;
    font-size: 1rem;
  }

  .nav-cta,
  .nav-lang {
    justify-content: center !important;
    margin-top: 14px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav-inner {
    width: min(calc(100% - 24px), 1280px);
  }

  .nav-logo img {
    width: 136px;
  }

  .hero {
    min-height: 90svh;
    padding-top: calc(var(--nav-h) + 42px);
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(4, 9, 22, 0.96) 0%, rgba(7, 15, 34, 0.82) 100%),
      linear-gradient(0deg, rgba(5, 12, 28, 0.82) 0%, rgba(5, 12, 28, 0) 38%);
  }

  .hero p {
    font-size: 1.05rem;
  }

  .hero-actions,
  .logos {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .grid-3,
  .grid-4,
  .offer-grid,
  .home-news-grid,
  .timeline,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .offer {
    grid-template-rows: 210px minmax(0, 1fr);
  }

  .tile,
  .offer-body,
  .form-shell {
    padding: 22px;
  }

  .logo-tile {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
