*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --pink: #e91e8c;
  --pink-dark: #c0176e;
  --pink-bg: #fdf0f7;
  --ink: #111111;
  --mid: #555555;
  --light: #aaaaaa;
  --bg: #ffffff;
  --white: #ffffff;
  --border: #e4dfd8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

/* ─── NAV ─── */

.r-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.r-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  touch-action: manipulation;
}

.r-logo svg,
.r-logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.r-logo span {
  font-weight: 700;
  font-size: .88rem;
  color: var(--ink);
  letter-spacing: .04em;
}

.r-nav-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .2s ease;
}

.r-nav-cta:hover {
  background: var(--pink-dark);
}

/* ─── BUTTON ─── */

.r-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 40px;
  background: var(--pink);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: .06em;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .2s ease, transform .18s ease;
}

.r-btn-primary:hover {
  background: var(--pink-dark);
  transform: translateY(-2px);
}

/* ─── BUTTON OUTLINE ─── */

.r-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 36px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .2s ease, color .2s ease;
}

.r-btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.r-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── HERO ─── */

.r-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 clamp(24px, 7vw, 96px) clamp(60px, 8vw, 96px);
  background: var(--bg);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.r-hero-bg-text {
  position: absolute;
  right: -2vw;
  bottom: -4vw;
  font-family: "Oswald", sans-serif;
  font-size: clamp(12rem, 32vw, 44rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--ink);
  opacity: .045;
  pointer-events: none;
  user-select: none;
}

.r-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 140px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.r-hero-content {
  max-width: 600px;
}

.r-hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.r-hero-logo {
  width: clamp(180px, 26vw, 360px);
  height: auto;
}

.r-eyebrow {
  font-family: "Oswald", sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .28em;
  color: var(--pink);
  margin-bottom: 22px;
}

.r-hero-title {
  font-family: "Oswald", sans-serif;
  font-size: clamp(3rem, 6vw, 8rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 32px;
  max-width: 860px;
}

.r-hero-sub {
  font-size: clamp(.96rem, 1.6vw, 1.08rem);
  color: var(--mid);
  line-height: 1.9;
  max-width: 480px;
  margin-bottom: 40px;
}

/* ─── NUMBERS ─── */

.r-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  padding: clamp(32px, 5vw, 52px) clamp(24px, 7vw, 96px);
}

.r-num-item {
  flex: 1;
  text-align: center;
}

.r-num-item strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  margin-bottom: 8px;
}

.r-num-item strong span {
  font-size: 50%;
  letter-spacing: .04em;
}

.r-num-item p {
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.45);
  letter-spacing: .1em;
}

.r-num-divider {
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
  margin: 0 clamp(20px, 4vw, 60px);
}

/* ─── SECTION COMMON ─── */

.r-section-inner {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 10vw, 130px) clamp(24px, 7vw, 96px);
}

.r-section-head {
  margin-bottom: 56px;
}

.r-section-label {
  font-family: "Oswald", sans-serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--pink);
  margin-bottom: 12px;
}

.r-section-title {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -.01em;
  color: var(--ink);
}

.r-section-bg-text {
  position: absolute;
  right: clamp(-10px, -1vw, 0px);
  bottom: clamp(-20px, -2vw, -10px);
  font-family: "Oswald", sans-serif;
  font-size: clamp(8rem, 20vw, 28rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--ink);
  opacity: .042;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ─── WORK ─── */

.r-work {
  position: relative;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.r-work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.r-work-card {
  background: var(--white);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background .22s ease;
}

.r-work-card:hover {
  background: var(--pink-bg);
}

.r-work-num {
  font-family: "Oswald", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--pink);
  line-height: 1;
}

.r-work-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 900;
  line-height: 1.2;
}

.r-work-tag {
  display: inline-flex;
  align-items: center;
  font-family: "Oswald", sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--pink);
  border: 1px solid var(--pink);
  padding: 3px 10px;
  width: fit-content;
}

.r-work-card p:last-child {
  font-size: .9rem;
  color: var(--mid);
  line-height: 1.9;
  margin-top: auto;
}

.r-work-highlight {
  color: var(--pink);
  font-weight: 900;
}

/* ─── CAREER ─── */

.r-career {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.r-career-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.r-career-text-block p {
  font-size: .98rem;
  color: var(--mid);
  line-height: 2;
  margin-bottom: 36px;
}

.r-universities {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.r-uni-label {
  font-family: "Oswald", sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--light);
  margin-bottom: 14px;
}

.r-uni-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.r-uni-tags span {
  font-size: .72rem;
  font-weight: 700;
  color: var(--mid);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 4px 12px;
  white-space: nowrap;
}

.r-support-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 2px solid var(--ink);
}

.r-support-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.r-support-num {
  font-family: "Oswald", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pink);
  flex-shrink: 0;
  line-height: 1;
  padding-top: 4px;
}

.r-support-item strong {
  display: block;
  font-size: .96rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4;
}

.r-support-item p {
  font-size: .86rem;
  color: var(--mid);
  line-height: 1.8;
}

/* ─── COMPANY ─── */

.r-company-section {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.r-company-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--ink);
}

.r-company-heading {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-top: 12px;
}

.r-company-logo {
  width: clamp(72px, 10vw, 120px);
  height: auto;
  flex-shrink: 0;
}

.r-company-table {
  width: 100%;
}

.r-company-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}

.r-company-row dt {
  font-family: "Oswald", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--pink);
  padding-top: 3px;
}

.r-company-row dd {
  font-weight: 500;
  line-height: 1.8;
  color: var(--ink);
}

.r-company-row a {
  color: var(--mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── APPLY ─── */

.r-apply {
  position: relative;
  background: var(--white);
  border-top: 1px solid var(--border);
  scroll-margin-top: 64px;
}

.r-apply-lead {
  font-size: .98rem;
  color: var(--mid);
  line-height: 1.9;
  margin-bottom: 40px;
  margin-top: -28px;
}

.r-apply-info {
  border-top: 2px solid var(--ink);
  margin-bottom: 44px;
  max-width: 680px;
}

.r-info-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}

.r-info-row dt {
  font-family: "Oswald", sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--pink);
  padding-top: 2px;
}

.r-info-row dd {
  font-weight: 500;
  line-height: 1.8;
}

/* ─── FLOATING WIDGET ─── */

.r-widget {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.r-widget-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pink);
  border: none;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  font-family: "Noto Sans JP", sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 4px 20px rgba(233,30,140,.35);
  transition: background .2s, transform .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  order: 2;
}

.r-widget-toggle:hover {
  background: var(--pink-dark);
  transform: scale(1.06);
}

.r-widget-toggle-close {
  display: none;
  font-size: 1rem;
}

.r-widget.is-open .r-widget-toggle-open { display: none; }
.r-widget.is-open .r-widget-toggle-close { display: block; }

.r-widget-body {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
  padding: 24px;
  width: 240px;
  order: 1;
  opacity: 0;
  transform: translateY(12px) scale(.97);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.r-widget.is-open .r-widget-body {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.r-widget-label {
  font-family: "Oswald", sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--pink);
  margin-bottom: 16px;
}

.r-widget-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.r-widget-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
}

.r-widget-list span {
  font-family: "Oswald", sans-serif;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--light);
  flex-shrink: 0;
  min-width: 28px;
}

.r-widget-btn {
  display: block;
  background: var(--pink);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  padding: 12px 0;
  transition: background .2s;
  touch-action: manipulation;
}

.r-widget-btn:hover {
  background: var(--pink-dark);
}

@media (max-width: 620px) {
  .r-widget {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 10px;
    gap: 6px;
  }

  .r-widget-toggle {
    width: 40px;
    height: 40px;
    font-size: .6rem;
  }

  .r-widget-body {
    width: 120px;
    padding: 10px 8px;
  }

  .r-widget-label {
    font-size: .52rem;
    margin-bottom: 8px;
    letter-spacing: .1em;
  }

  .r-widget-list {
    gap: 5px;
    margin-bottom: 8px;
    padding-top: 8px;
  }

  .r-widget-list li {
    font-size: .64rem;
    gap: 4px;
    flex-direction: column;
    align-items: flex-start;
  }

  .r-widget-list span {
    font-size: .52rem;
    min-width: auto;
  }

  .r-widget-btn {
    font-size: .64rem;
    padding: 7px 0;
  }
}

/* ─── APPLY NOTE ─── */

.r-apply-note {
  margin-top: 20px;
  font-size: .82rem;
  color: var(--light);
}

/* ─── FOOTER ─── */

.r-footer {
  background: var(--ink);
  padding: clamp(32px, 4vw, 48px) clamp(24px, 7vw, 96px);
  display: flex;
  align-items: center;
  gap: 32px;
}

.r-footer-logo img {
  width: 36px;
  height: 36px;
}

.r-footer-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.r-footer-links a {
  font-family: "Oswald", sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: rgba(255,255,255,.4);
  transition: color .18s ease;
}

.r-footer-links a:hover {
  color: rgba(255,255,255,.9);
}

.r-footer-copy {
  font-family: "Oswald", sans-serif;
  font-size: .76rem;
  letter-spacing: .1em;
  color: rgba(255,255,255,.3);
}

/* ─── MOBILE CTA BAR ─── */

.r-mobile-bar {
  display: none;
}

/* ─── RESPONSIVE ─── */

@media (max-width: 900px) {
  .r-career-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Hero */
  .r-hero-inner {
    grid-template-columns: 1fr;
    padding-top: 88px;
  }

  .r-hero-logo-wrap {
    order: -1;
  }

  .r-hero-logo {
    width: clamp(80px, 28vw, 140px);
  }

  .r-hero-title {
    font-size: clamp(2rem, 8.5vw, 3.2rem);
    margin-bottom: 18px;
  }

  .r-hero-sub {
    margin-bottom: 28px;
    font-size: .92rem;
  }

  /* Sections — smaller padding */
  .r-section-inner {
    padding-top: clamp(44px, 7vw, 80px);
    padding-bottom: clamp(44px, 7vw, 80px);
  }

  .r-section-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .r-section-head {
    margin-bottom: 36px;
  }

  /* Company */
  .r-company-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .r-company-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  /* Sticky mobile CTA */
  .r-mobile-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    z-index: 150;
  }

  .r-mobile-bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    background: var(--pink);
    color: #fff;
    font-weight: 900;
    font-size: .92rem;
    letter-spacing: .06em;
    touch-action: manipulation;
    transition: background .2s;
  }

  .r-mobile-bar-btn:active {
    background: var(--pink-dark);
  }

  /* Push content above sticky bar */
  body {
    padding-bottom: 74px;
  }

  /* Hide widget on mobile — sticky bar handles it */
  .r-widget {
    display: none;
  }
}

@media (max-width: 620px) {
  /* Hide decorative bg text — too large on small screens */
  .r-hero-bg-text,
  .r-section-bg-text {
    display: none;
  }

  /* Hero no longer needs full-screen height */
  .r-hero {
    min-height: auto;
  }

  .r-logo span {
    display: none;
  }

  .r-work-grid {
    grid-template-columns: 1fr;
    border-top: 1px solid var(--border);
    border-left: none;
  }

  .r-work-card {
    border-right: none;
    border-left: none;
  }

  .r-numbers {
    flex-direction: column;
    gap: 28px;
    padding: 36px 24px;
  }

  .r-num-item strong {
    font-size: 2.6rem;
  }

  .r-num-divider {
    width: 48px;
    height: 1px;
    margin: 0;
  }

  .r-info-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .r-company-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .r-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .r-footer-links {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
