/* Radiant Bunny Studio — brand tokens taken from the logo */
:root {
  --night: #18195a;      /* logo navy */
  --night-deep: #10114a;
  --bunny: #f15e11;      /* logo orange */
  --bunny-dark: #c8480a;
  --sky: #5ea9d3;        /* logo ring blue */
  --moon: #f8f2e4;       /* logo cream */
  --paper: #ffffff;
  --ink: #18195a;
  --ink-soft: #4a4b7c;
  --line: #dcdcea;

  --font-latin: "Montserrat", system-ui, sans-serif;
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

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

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

body {
  margin: 0;
  font-family: "Montserrat", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "palt" 1;
}

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

a { color: var(--bunny-dark); text-underline-offset: 3px; }
a:hover { color: var(--bunny); }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

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

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--moon); color: var(--night); padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { background: var(--night); color: var(--moon); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--moon);
  font-family: var(--font-latin); line-height: 1.05;
}
.site-header.is-overlay {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  background: linear-gradient(to bottom, rgba(16, 17, 74, .55), transparent);
}
.brand img { width: 42px; height: 42px; }
.brand-name { display: flex; flex-direction: column; }
.brand-name b { color: var(--bunny); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.brand-name span { color: var(--moon); font-weight: 400; font-size: 15px; }
.brand:hover { color: var(--moon); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.site-nav .nav-x { display: flex; align-items: center; padding: 6px 0; }
.site-nav .nav-x:hover { color: var(--bunny); border-bottom-color: transparent; }
.site-nav a {
  color: var(--moon); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--moon); border-bottom-color: var(--bunny); }

/* ---------- Hero ---------- */
.hero { background: var(--night); color: var(--moon); }

/* Key art fills the width. The eyes sit at the image centre, so the copy
   centred on top of it always lands on the eyes (as on the Vstar wiki). */
.hero-art {
  position: relative; overflow: hidden;
  height: clamp(460px, 58vw, 86vh);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-art::after { /* fade the bottom into the night */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
  background: linear-gradient(to bottom, transparent, var(--night));
}

.hero-copy {
  position: absolute; left: 50%; top: 50.5%; z-index: 1;
  transform: translate(-50%, -50%);
  width: max-content; max-width: calc(100% - 2 * var(--gutter));
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
/* Each line is a solid navy bar laid across the eyes */
.hero-copy .bar {
  display: block; width: fit-content; margin: 0 auto;
  background: var(--bunny); color: var(--night); padding: 2px clamp(10px, 0.45em, 22px);
}
.hero-copy .bar > span { display: inline-block; }
.hero-copy h1 .bar { color: var(--moon); }
/* Overlap by 1px so no hairline of the art shows between bars on fractional pixel edges */
.hero-copy h1 .bar + .bar, .hero-copy .hero-en { margin-top: -1px; }
.hero-copy h1 {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  /* no cap: grows with the art so the eyes stay covered; a little smaller on very narrow phones */
  font-weight: 800; font-size: max(min(24px, 6.4vw), 3.4vw);
  line-height: 1.28; letter-spacing: 0.01em; color: var(--moon);
}
/* Stagger the two lines off the centre axis: first to the left, second to the right */
.hero-copy h1 .bar:nth-child(1) { transform: translateX(-0.9em); }
.hero-copy h1 .bar:nth-child(2) { transform: translateX(0.9em); }
.hero-en {
  margin: 0; font-family: var(--font-latin);
  font-weight: 700; font-size: max(13px, 1.5vw); line-height: 1.7;
}

.hero-lead {
  margin: 0; padding: 8px 0 clamp(48px, 7vw, 88px);
  max-width: 40em; color: var(--sky); font-size: 15px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: settle 1.6s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy .bar { animation: wipe .7s cubic-bezier(.6,0,.2,1) both; }
  .hero-copy h1 .bar:nth-child(1) { animation-delay: .5s; }
  .hero-copy h1 .bar:nth-child(2) { animation-delay: .65s; }
  .hero-copy .hero-en { animation-delay: .8s; }
  @keyframes settle { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
  @keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-title {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 32px;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.4;
}
.section-title svg { width: 22px; height: 22px; flex: none; }

.statement {
  margin: 0; max-width: 30em;
  font-size: clamp(19px, 2.1vw, 24px); line-height: 1.85; font-weight: 500;
}
.statement + p { max-width: 38em; color: var(--ink-soft); margin-top: 24px; }

/* What we make: three columns divided by thin sky lines, no cards */
.domains {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.domains li { padding: 8px 28px 8px 28px; border-left: 2px solid var(--sky); }
.domains li:first-child { padding-left: 24px; }
.domains h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; line-height: 1.5; }
.domains .en { margin: 0 0 12px; font-family: var(--font-latin); font-size: 13px; font-weight: 600; color: var(--bunny-dark); }
.domains p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* Company profile */
.profile { margin: 0; display: grid; grid-template-columns: 11em 1fr; max-width: 820px; }
.profile dt, .profile dd { padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0; }
.profile dt { font-weight: 700; font-size: 14px; color: var(--ink-soft); padding-right: 16px; }
.profile dd { font-size: 15px; }
.profile dd small { display: block; color: var(--ink-soft); font-size: 13px; }

/* News: date + one line, divided by thin lines like the profile */
.news-list { list-style: none; margin: 0; padding: 0; max-width: 820px; border-top: 1px solid var(--line); }
.news-list li {
  display: grid; grid-template-columns: 8em 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.news-list time { font-family: var(--font-latin); font-weight: 600; font-size: 14px; color: var(--bunny-dark); line-height: 1.9; }
.news-list p { margin: 0; font-size: 15px; }
.doc .news-list { max-width: 820px; padding-left: 0; }
.doc .news-list li + li { margin-top: 0; }
.more-link { margin: 24px 0 0; font-size: 14px; font-weight: 700; }
.more-link a::after { content: " →"; }

/* Official SNS: a simple list of icon links */
.section.sns { padding: clamp(48px, 7vw, 80px) 0; }
.sns-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 32px; }
.sns-list a {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px;
}
.sns-list .sns-handle { font-family: var(--font-latin); font-weight: 500; color: var(--ink-soft); }
.sns-list a:hover, .sns-list a:hover .sns-handle { color: var(--bunny); }

/* Contact band */
.contact-band { background: var(--night); color: var(--moon); }
.contact-band .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px);
}
.contact-band h2 { margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; }
.contact-band p { margin: 0; color: #d9d9ee; max-width: 32em; }

.button {
  display: inline-block; text-decoration: none;
  background: var(--bunny); color: #fff;
  font-weight: 700; font-size: 15px;
  padding: 15px 28px; border-radius: 999px;
  transition: background-color .15s ease;
}
.button:hover { background: var(--bunny-dark); color: #fff; }

/* ---------- Document pages (privacy / support) ---------- */
.page-head { background: var(--night); color: var(--moon); padding: clamp(40px, 6vw, 72px) 0; }
.page-head h1 { margin: 0; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1.35; }
.page-head p { margin: 8px 0 0; color: var(--sky); font-family: var(--font-latin); font-weight: 600; }

.doc { padding: clamp(48px, 7vw, 88px) 0; }
.doc .wrap > * { max-width: 44em; }
.doc h2 {
  margin: 48px 0 12px; font-size: 19px; font-weight: 800; line-height: 1.5;
  padding-left: 14px; border-left: 4px solid var(--bunny);
}
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { font-size: 15px; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li + li { margin-top: 6px; }
.doc .meta { margin-top: 48px; color: var(--ink-soft); font-size: 14px; }
.doc .contact-box {
  margin: 20px 0; padding: 20px 24px;
  background: var(--moon); border-radius: 12px;
}
.doc .contact-box p { margin: 0; }

/* ---------- Career ---------- */
.career .wrap > * { max-width: 820px; }
.career-lead { font-size: clamp(16px, 1.8vw, 19px) !important; font-weight: 500; margin: 0 0 20px; }
.job { padding-top: 56px; }
.doc .job h2, .doc .job-howto h2 { margin: 0 0 4px; font-size: clamp(20px, 2.2vw, 24px); }
.job-en { margin: 0 0 16px; font-family: var(--font-latin); font-weight: 600; font-size: 14px; color: var(--bunny-dark); }
.job-terms { margin-top: 24px; }
.job-terms dd ul { margin: 0; padding-left: 1.2em; }
.job-terms dd li { font-size: 15px; }
.job-terms dd li + li { margin-top: 2px; }
.job-apply { margin: 28px 0 0; }
.job-howto { padding-top: 64px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-deep); color: #b9b9d8; font-size: 13px; }
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 28px; padding-bottom: 28px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: #d9d9ee; text-decoration: none; }
.site-footer a:hover { color: var(--moon); text-decoration: underline; }
.site-footer small { font-family: var(--font-latin); font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .domains { grid-template-columns: 1fr; gap: 28px; }
  .domains li, .domains li:first-child { padding: 4px 0 4px 20px; }
  .profile { grid-template-columns: 1fr; }
  .profile dt { padding-bottom: 0; border-bottom: 0; }
  .profile dd { padding-top: 4px; }
  .news-list li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 560px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 14px; padding-bottom: 10px; }
  .brand-name b { font-size: 15px; }
}
@media (max-width: 360px) {
  .site-nav ul { gap: 12px; }
  .site-nav a { font-size: 13px; }
}
