/* BeyondUS コーポレートサイト（旧 beyondus.link の React + Tailwind の見た目を素の CSS で再現） */

:root {
  --black: #0f172a;
  --dark: #1e293b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --pink: #e95785;
  --blue: #3f67f6;
  --cyan: #4ccacc;
  --link: #2563eb;
  --brand-gradient: linear-gradient(90deg, var(--pink) 0%, var(--blue) 50%, var(--cyan) 100%);
  --hero-gradient: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #2d2d2d 100%);
  --font-body: 'Roboto', system-ui, sans-serif;
  --font-head: 'Noto Sans', sans-serif;
  --font-jp: 'Noto Sans JP', 'Noto Sans', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  min-height: 100vh;
  color: inherit;
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

img,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
}

/* ページの地 */
.site-bg {
  background-color: #fff;
  background-image:
    radial-gradient(circle at 7% 8%, rgba(233, 87, 133, 0.03), transparent 30rem),
    radial-gradient(circle at 94% 22%, rgba(76, 202, 204, 0.035), transparent 34rem),
    radial-gradient(circle at 45% 72%, rgba(63, 103, 246, 0.02), transparent 38rem),
    linear-gradient(180deg, #fff 0%, #fcfcff 48%, #fff 100%);
}

/* Tailwind の container mx-auto px-4 md:px-8 */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; padding-inline: 2rem; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }

.inner {
  max-width: 72rem;
  margin-inline: auto;
}

/* ---------- ヘッダー ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-block: 1.75rem;
  transition: padding 0.3s;
}
.nav.is-scrolled {
  padding-block: 1rem;
}
.nav__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background 0.3s;
}
.nav.is-scrolled .nav__bar,
.nav.is-scrolled .nav__menu {
  background: rgba(255, 255, 255, 0.6);
}
.nav__brand {
  display: flex;
  align-items: center;
}
.nav__brand img {
  height: 2.5rem;
  width: auto;
}
.nav__brand span {
  margin-left: 0.75rem;
  color: var(--black);
  font: bold 1.5rem/2rem Arial, sans-serif;
}
.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 500;
}
.nav__links a,
.nav__menu a {
  color: var(--gray-600);
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__menu a:hover {
  color: var(--black);
}
.nav a.btn-hero {
  color: #fff;
}
.nav__toggle {
  display: inline-flex;
  color: var(--black);
}
.nav__toggle .icon-close,
.nav.is-open .nav__toggle .icon-open {
  display: none;
}
.nav.is-open .nav__toggle .icon-close {
  display: block;
}
.nav__menu {
  margin-top: 1rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
}
.nav.is-open .nav__menu {
  max-height: 24rem;
  opacity: 1;
  padding-block: 1rem;
}
.nav__menu ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 1rem;
  font-size: 1.125rem;
  font-weight: 500;
}
.nav__menu li > a:not(.btn-hero) {
  display: block;
  padding: 0.25rem 0.5rem;
}
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__toggle,
  .nav__menu { display: none; }
}

/* 黒いグラデーションの丸ボタン（RECRUIT・Contact など） */
.btn-hero {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background-image: var(--hero-gradient);
  color: #fff;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s;
}
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.btn-black {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  background: var(--black);
  color: #fff;
  transition: all 0.3s;
}
.btn-black:hover {
  background: var(--dark);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.btn-black svg,
.link-arrow svg {
  transition: transform 0.3s;
}
.btn-black:hover svg,
.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---------- 見出しと下線 ---------- */
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--black);
  font-size: 1.5rem;
  line-height: 2rem;
}
.section-title--lg {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
@media (min-width: 768px) {
  .section-title { font-size: 1.875rem; line-height: 2.25rem; }
  .section-title--lg { font-size: 2.25rem; line-height: 2.5rem; }
}
.underline {
  height: 2px;
  margin-top: 0.5rem;
  width: 11rem;
  border-radius: 9999px;
  background: var(--brand-gradient);
  opacity: 0.9;
  transform-origin: left;
}
.underline--sm {
  width: 8rem;
}
.underline--advisory {
  width: 12rem;
}
@media (min-width: 768px) {
  .underline { width: 16rem; }
  .underline--sm { width: 12rem; }
  .underline--advisory { width: 20rem; }
}

/* ふわっと出る（JS が .is-visible を付ける。JS が無いときは最初から見える） */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .reveal .underline {
  transform: scaleX(0);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.js .reveal.is-visible .underline {
  transform: scaleX(1);
}

/* ---------- トップ：ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.78;
}
.hero__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  padding-block: 5rem;
  text-align: center;
}
.hero h1 {
  margin-bottom: 2rem;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 4px 20px rgba(0, 0, 0, 0.2);
}
.hero h1 span {
  display: block;
}
.hero h1 .nowrap {
  white-space: nowrap;
}
.hero p {
  margin: 0 auto 2rem;
  max-width: 48rem;
  color: var(--gray-700);
  font-size: 1.5rem;
  line-height: 1.625;
  font-weight: 700;
}
@media (min-width: 768px) {
  .hero h1 { font-size: 3.75rem; line-height: 1; }
  .hero p { font-size: 1.875rem; line-height: 2.25rem; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 4.5rem; }
}
.hero__down {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  width: fit-content;
  margin-inline: auto;
  color: var(--black);
  opacity: 0.75;
  transition: opacity 0.2s;
}
.hero__down:hover {
  opacity: 1;
}
.hero__down svg {
  animation: bounce 1s infinite;
}
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}
.delay-100 { animation-delay: 0.1s; }
.delay-300 { animation-delay: 0.3s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

/* ---------- トップ：News ---------- */
.top-news {
  padding-block: 4rem;
  background: var(--gray-50);
}
.top-news__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.top-news__more {
  color: var(--gray-600);
  font-weight: 500;
}
.top-news__more:hover {
  color: var(--black);
}

/* お知らせの部品（MONJU の news.js が描く monju-news__*）をカードに見せる */
.news-cards .monju-news__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 2.5rem;
}
@media (max-width: 639px) {
  .news-cards .monju-news__list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    scroll-padding-right: 1rem;
  }
  .news-cards .monju-news__list::-webkit-scrollbar {
    display: none;
  }
  .news-cards .monju-news__item {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
  .news-cards .monju-news__item:nth-child(n + 4) {
    display: none;
  }
}
@media (min-width: 640px) {
  .news-cards .monju-news__list { grid-template-columns: repeat(2, 1fr); }
  .news-cards .monju-news__item { max-width: 320px; }
}
@media (min-width: 1024px) {
  .news-cards .monju-news__list { grid-template-columns: repeat(3, 1fr); }
}
.news-cards .monju-news__item {
  border: 0;
  padding: 0;
}
.news-cards .monju-news__row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.news-cards .news-thumb {
  order: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 9rem;
  overflow: hidden;
  border-radius: 0.375rem;
  background: #fff;
  margin-bottom: 0.75rem;
}
.news-cards .news-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@media (min-width: 768px) {
  .news-cards .news-thumb { height: 10rem; }
}
.news-cards .monju-news__date {
  color: var(--gray-500);
  font-size: 0.75rem;
  line-height: 1rem;
  opacity: 1;
}
.news-cards .monju-news__tag {
  display: none;
}
.news-cards .monju-news__title {
  margin-top: 0.25rem;
  color: var(--gray-600);
  font-family: var(--font-head);
  font-size: 0.875rem;
  line-height: 1.25rem;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) {
  .news-cards .monju-news__date { font-size: 0.875rem; line-height: 1.25rem; }
  .news-cards .monju-news__title { font-size: 1rem; line-height: 1.5rem; }
}
.news-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.news-dots span {
  height: 2px;
  flex: 1;
  border-radius: 9999px;
  background: var(--gray-200);
  transition: background 0.3s;
}
.news-dots span.is-active {
  background: #ea4335;
}
@media (min-width: 640px) {
  .news-dots { display: none; }
}

/* ---------- サービス ---------- */
.services {
  padding-block: 5rem;
}
@media (min-width: 768px) {
  .services { padding-block: 8rem; }
}
.services__head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .services__head { flex-direction: row; align-items: flex-end; }
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s;
}
.link-arrow:hover {
  color: var(--blue);
}

.service-list {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .service-list { gap: 3.5rem; }
}
.service {
  scroll-margin-top: 7rem;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .service { grid-template-columns: repeat(12, 1fr); }
  .service__visual { grid-column: span 7; }
  .service__text { grid-column: span 5; }
  .service--reverse .service__visual { order: 2; }
  .service--reverse .service__text { order: 1; }
}
.service__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  overflow: hidden;
  padding: 2.5rem 1.25rem;
}
@media (min-width: 768px) {
  .service__visual { min-height: 420px; padding-inline: 2.5rem; }
}
.service__visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}
@media (min-width: 768px) {
  .service__visual img { max-height: 380px; }
}
.service__visual img.is-wide {
  transform: scale(1.06);
}
.glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
}
.glow--a { left: -4rem; top: -5rem; width: 14rem; height: 14rem; }
.glow--b { bottom: -6rem; left: 33%; width: 13rem; height: 13rem; }
.glow--c { right: -2.5rem; top: 2.5rem; width: 11rem; height: 11rem; }

.service--pink .service__visual { background: linear-gradient(145deg, rgba(233, 87, 133, 0.07) 0%, rgba(63, 103, 246, 0.04) 52%, rgba(76, 202, 204, 0.06) 100%); }
.service--pink .glow--a { background: rgba(233, 87, 133, 0.1); }
.service--pink .glow--b { background: rgba(63, 103, 246, 0.06); }
.service--pink .glow--c { background: rgba(76, 202, 204, 0.08); }
.service--pink .service__category { color: #e95785; }
.service--blue .service__visual { background: linear-gradient(145deg, rgba(63, 103, 246, 0.06) 0%, rgba(76, 202, 204, 0.05) 50%, rgba(233, 87, 133, 0.05) 100%); }
.service--blue .glow--a { background: rgba(63, 103, 246, 0.1); }
.service--blue .glow--b { background: rgba(76, 202, 204, 0.08); }
.service--blue .glow--c { background: rgba(233, 87, 133, 0.06); }
.service--blue .service__category { color: #3f67f6; }
.service--cyan .service__visual { background: linear-gradient(145deg, rgba(76, 202, 204, 0.07) 0%, rgba(233, 87, 133, 0.04) 48%, rgba(63, 103, 246, 0.05) 100%); }
.service--cyan .glow--a { background: rgba(76, 202, 204, 0.1); }
.service--cyan .glow--b { background: rgba(233, 87, 133, 0.06); }
.service--cyan .glow--c { background: rgba(63, 103, 246, 0.06); }
.service--cyan .service__category { color: #2ba8aa; }

.service__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}
@media (min-width: 768px) {
  .service__text { padding: 3.5rem 2.5rem; }
}
.service__category {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.service__title {
  margin-top: 0.75rem;
  color: var(--black);
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.service__lead {
  margin-top: 1.25rem;
  color: var(--gray-800);
  font-size: 1.125rem;
  line-height: 1.625;
  font-weight: 600;
}
.service__desc {
  margin-top: 1rem;
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 2rem;
}
@media (min-width: 768px) {
  .service__title { font-size: 2.25rem; line-height: 2.5rem; }
  .service__lead { font-size: 1.25rem; line-height: 1.75rem; }
  .service__desc { font-size: 1rem; line-height: 1.5rem; }
}
.service__consult {
  margin-top: 1.75rem;
  align-self: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.service__consult:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* ---------- お問い合わせ ---------- */
.contact {
  padding-block: 5rem;
  text-align: center;
}
.contact h2 {
  margin-bottom: 1.5rem;
  color: var(--black);
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 2.25rem;
}
@media (min-width: 768px) {
  .contact h2 { font-size: 2.25rem; line-height: 2.5rem; }
}
.contact__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
@media (min-width: 640px) {
  .contact__actions { flex-direction: row; align-items: stretch; gap: 2rem; }
}
.contact__mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--gray-600);
  transition: color 0.2s;
}
.contact__mail:hover {
  color: #4285f4;
}
.contact__form {
  width: 16rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ---------- フッター ---------- */
.footer {
  position: relative;
  padding-block: 3rem;
  background-image: var(--hero-gradient);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(110deg, rgba(255, 255, 255, 0.02), transparent 45%, rgba(255, 255, 255, 0.05));
}
.footer__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer__inner { flex-direction: row; }
}
.footer__brand {
  display: flex;
  align-items: center;
}
.footer__brand .logo-bg {
  padding: 2px;
  border-radius: 9999px;
  background: #fff;
}
.footer__brand img {
  height: 2rem;
  width: auto;
}
.footer__brand span {
  margin-left: 0.75rem;
  font: bold 1.25rem/1.75rem Arial, sans-serif;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer__links { gap: 1.5rem; }
}
.footer__links > a,
.footer__privacy > span,
.footer__copy {
  color: var(--gray-400);
}
.footer__links > a {
  transition: color 0.2s;
}
.footer__links > a:hover,
.footer__privacy:hover > span {
  color: #fff;
}
.footer__top,
.footer__privacy {
  display: none;
}
@media (min-width: 768px) {
  .footer__top { display: inline; }
  .footer__privacy { display: block; }
}
.footer__privacy {
  position: relative;
  cursor: default;
}
.footer__privacy-menu {
  position: absolute;
  bottom: 100%;
  left: 50%;
  z-index: 50;
  display: flex;
  margin-bottom: 0.5rem;
  transform: translateX(-50%);
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  background: rgba(26, 26, 26, 0.95);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s;
}
.footer__privacy:hover .footer__privacy-menu,
.footer__privacy:focus-within .footer__privacy-menu {
  opacity: 1;
  visibility: visible;
}
.footer__privacy-menu a {
  padding: 0.5rem 1rem;
  color: var(--gray-300);
  font-size: 0.875rem;
}
.footer__privacy-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.footer__privacy-menu a:first-child { border-radius: 9999px 0 0 9999px; }
.footer__privacy-menu a:last-child { border-radius: 0 9999px 9999px 0; }
.footer__privacy-menu i {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- 下層ページ共通 ---------- */
.page {
  min-height: 100vh;
}
.page-head {
  margin-bottom: 2.5rem;
}
.page-head p {
  margin-top: 1rem;
  color: var(--gray-600);
}
@media (min-width: 768px) {
  .page-head { margin-bottom: 3rem; }
}

/* ---------- ABOUT US ---------- */
.about {
  padding-top: 10rem;
  padding-bottom: 5rem;
}
.about__block {
  margin-bottom: 6rem;
}
.about__block > .reveal,
.company > .reveal {
  margin-bottom: 1.5rem;
}
.mission {
  position: relative;
  overflow: hidden;
}
.mission__balloon {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: min(72%, 580px);
  max-width: none;
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
}
@media (min-width: 768px) {
  .mission__balloon { width: min(58%, 640px); }
}
.mission > :not(.mission__balloon) {
  position: relative;
  z-index: 1;
}
.mission__catch {
  display: inline-block;
  margin: 1rem 0 2.5rem;
  background: linear-gradient(90deg, var(--pink), var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
}
@media (min-width: 768px) {
  .mission__catch { margin-top: 1.5rem; font-size: 3rem; line-height: 1.375; white-space: nowrap; }
}
.mission__text {
  max-width: 56rem;
  display: grid;
  gap: 1.5rem;
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 2rem;
}
@media (min-width: 768px) {
  .mission__text { font-size: 1.125rem; line-height: 1.75rem; }
}
.mission__text span {
  display: block;
}
.team__label {
  margin-bottom: 1rem;
  color: var(--black);
  font-size: 1.125rem;
  font-weight: 600;
  font-style: italic;
}
.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 0.75rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .team { grid-template-columns: repeat(3, 1fr); }
}
.member img {
  width: 100%;
  height: 230px;
  margin: 0 auto 0.75rem;
  object-fit: contain;
}
@media (min-width: 768px) {
  .member img { width: 450px; height: 450px; }
}
.member h4 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.member__role {
  margin-bottom: 1rem;
  color: var(--black);
  font-weight: 500;
}
.member__bio {
  color: var(--gray-600);
  font-size: 0.75rem;
  line-height: 1.625;
}
.advisors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 1.5rem;
}
@media (min-width: 768px) {
  .advisors { grid-template-columns: repeat(3, 1fr); }
  .advisors .member:only-child { grid-column-start: 2; }
}
.advisors .member img {
  width: 100%;
  height: auto;
  max-width: 260px;
}
@media (min-width: 768px) {
  .advisors .member img { max-width: 100%; }
}
.advisors .member__role {
  margin-bottom: 0.5rem;
}
.company {
  margin-top: 8rem;
}
.company__table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--gray-300);
}
.company__table th,
.company__table td {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
}
.company__table th {
  width: 14rem;
  padding-right: 1.5rem;
  color: var(--gray-600);
  font-weight: 400;
}
.company__table td {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.company__table td li + li {
  margin-top: 0.5rem;
}
@media (max-width: 639px) {
  .company__table th,
  .company__table td {
    display: block;
    width: auto;
  }
  .company__table th {
    padding: 1rem 0 0;
    border-bottom: 0;
  }
  .company__table td {
    padding: 0.25rem 0 1rem;
  }
}
.text-link {
  color: var(--link);
  text-decoration: underline;
}
.text-link:hover {
  color: #1d4ed8;
}

/* ---------- SERVICES ---------- */
.services-page {
  padding-top: 8rem;
  padding-bottom: 6rem;
}
@media (min-width: 768px) {
  .services-page { padding-top: 10rem; padding-bottom: 8rem; }
}
.services-page .page-head {
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .services-page .page-head { margin-bottom: 5rem; }
}
.services-page .underline {
  margin-top: 0.75rem;
}
.services-page .page-head p {
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.75rem;
}
@media (min-width: 768px) {
  .services-page .page-head p { font-size: 1rem; line-height: 1.5rem; }
}
.consult {
  margin-top: 5rem;
  padding: 3rem 1.5rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}
@media (min-width: 768px) {
  .consult { margin-top: 6rem; padding-inline: 3rem; }
}
.consult h2 {
  color: var(--black);
  font-size: 1.5rem;
  font-weight: 700;
}
.consult p {
  max-width: 36rem;
  margin: 0.75rem auto 0;
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.75rem;
}
@media (min-width: 768px) {
  .consult p { font-size: 1rem; line-height: 1.5rem; }
}
.consult .btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ---------- NEWS ---------- */
.news-page {
  position: relative;
  z-index: 1;
  padding-top: 10rem;
  padding-bottom: 7rem;
}
.news-page .underline {
  margin-top: 0.75rem;
}

/* 一覧：右にカテゴリ（スマホは上に横並び）、左に記事 */
.news-list.monju-news {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 768px) {
  .news-list.monju-news { gap: 2rem; }
}
@media (min-width: 1024px) {
  .news-list.monju-news { grid-template-columns: 2fr 1fr; }
  .news-list .monju-news__filters { grid-column: 2; grid-row: 1; }
  .news-list .monju-news__list,
  .news-list .monju-news__empty { grid-column: 1; grid-row: 1; }
  .news-list .monju-news__nav { grid-column: 1; }
}
@media (min-width: 1280px) {
  .news-list.monju-news { grid-template-columns: 3fr 1fr; }
}
.news-list .monju-news__filters {
  display: flex;
  gap: 0.5rem;
  margin: 0 -1rem;
  padding: 0 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.news-list .monju-news__filters::-webkit-scrollbar {
  display: none;
}
@media (min-width: 1024px) {
  .news-list .monju-news__filters {
    position: sticky;
    top: 7rem;
    flex-direction: column;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--gray-100);
    border-radius: 0.75rem;
    background: #fff;
  }
  .news-list .monju-news__filters::before {
    content: 'カテゴリ';
    margin-bottom: 0.25rem;
    color: var(--gray-500);
    font-size: 0.875rem;
  }
}
.news-list .monju-news__filter {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 9999px;
  background: #fff;
  color: var(--gray-700);
  font-size: 0.875rem;
  text-align: left;
  transition: all 0.15s;
}
.news-list .monju-news__filter:hover {
  border-color: rgba(63, 103, 246, 0.3);
  background: rgba(63, 103, 246, 0.05);
}
.news-list .monju-news__filter[aria-pressed='true'] {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
  font-weight: 500;
}
.news-list .monju-news__filter[aria-pressed='true']:hover {
  background: var(--dark);
}
@media (min-width: 1024px) {
  .news-list .monju-news__filter { width: 100%; padding-block: 0.625rem; }
}
.news-list .monju-news__list {
  border-top: 1px solid var(--gray-200);
}
.news-list .monju-news__item {
  padding: 0;
  border-bottom: 1px solid var(--gray-200);
}
.news-list .monju-news__row {
  position: relative;
  display: grid;
  grid-template-columns: 6rem 1fr 18px;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.375rem;
  padding: 1.25rem 0;
  transition: background 0.3s;
}
@media (min-width: 768px) {
  .news-list .monju-news__row { grid-template-columns: 8rem 1fr 18px; column-gap: 1.25rem; }
}
.news-list .monju-news__row:hover {
  background: rgba(249, 250, 251, 0.5);
}
.news-list .news-thumb {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 4rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #fff;
}
@media (min-width: 768px) {
  .news-list .news-thumb { width: 8rem; height: 5rem; }
}
.news-list .news-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.news-list .news-meta {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.news-list .monju-news__date {
  color: var(--gray-400);
  font-size: 0.75rem;
  opacity: 1;
}
.news-list .monju-news__tag {
  padding: 0.125rem 0.5rem;
  border: 0;
  border-radius: 0.25rem;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.75rem;
  font-weight: 500;
}
.news-list .monju-news__title {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  color: var(--gray-800);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
@media (min-width: 768px) {
  .news-list .monju-news__title { font-size: 1rem; line-height: 1.5rem; }
}
.news-list .monju-news__row:hover .monju-news__title {
  color: var(--gray-600);
}
.news-list .monju-news__row::after {
  content: '';
  grid-column: 3;
  grid-row: 1 / 3;
  width: 18px;
  height: 18px;
  background: var(--gray-300);
  -webkit-mask: url('../img/arrow-right.svg') center / contain no-repeat;
  mask: url('../img/arrow-right.svg') center / contain no-repeat;
  transition: all 0.3s;
}
.news-list .monju-news__row:hover::after {
  background: var(--gray-500);
  transform: translateX(2px);
}
.news-list .monju-news__empty {
  padding-block: 2rem;
  color: var(--gray-500);
}

/* 記事のページ（?id=） */
.news-page.is-article {
  padding-top: 8rem;
}
.news-page.is-article .page-head {
  display: none;
}
.news-list .monju-news__article {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.news-list .monju-news__article-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0 0;
}
.news-list .monju-news__article-head .monju-news__date {
  color: var(--gray-500);
  font-size: 1rem;
}
.news-list .monju-news__article-head .monju-news__title {
  flex-basis: 100%;
  margin: 0.5rem 0 1rem;
  color: inherit;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.75rem;
  display: block;
  overflow: visible;
}
@media (min-width: 768px) {
  .news-list .monju-news__article-head .monju-news__title { font-size: 1.5rem; line-height: 2rem; }
}
/* 記事のサムネイルは日付・タイトルの上に出す（news-extras.js が見出しの前に動かす） */
.news-list .monju-news__article .monju-news__article-thumbnail {
  width: 100%;
  height: 28vh;
  min-height: 180px;
  max-height: 420px;
  margin: 0;
  object-fit: contain;
  border-radius: 1rem;
  background: #fff;
}
.news-list .monju-news__article .monju-news__body > * {
  font-family: var(--font-jp);
  color: var(--gray-700);
}
.news-list .monju-news__nav {
  grid-column: 1 / -1;
  max-width: 48rem;
  width: 100%;
  margin: 3rem auto 0;
}
/* 記事のページでは「一覧へ」を上に出す（旧サイトの「戻る」の位置） */
.news-list .monju-news__article ~ .monju-news__nav {
  order: -1;
  margin: 0 auto 1.5rem;
}
.news-list .monju-news__article ~ .monju-news__nav .monju-news__home {
  display: none;
}
.news-list .monju-news__back,
.news-list .monju-news__home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
}
.news-list .monju-news__back:hover,
.news-list .monju-news__home:hover {
  color: var(--black);
}
.news-list .monju-news__back::before {
  content: '←';
}

@media (min-width: 768px) {
  .news-list .monju-news__article .monju-news__article-thumbnail { height: 32vh; }
}
@media (min-width: 1024px) {
  .news-list .monju-news__article .monju-news__article-thumbnail { height: 36vh; }
}

/* 記事の本文（旧サイトの .rich-text-content） */
.monju-news__body {
  font-family: var(--font-jp);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-700);
}
.monju-news__body p,
.monju-news__body .monju-news__paragraph {
  margin: 0 0 1.25rem;
  line-height: 1.9;
}
.monju-news__body .monju-news__paragraph:empty {
  min-height: 1.5em;
}
.monju-news__body h3,
.monju-news__body h4 {
  color: #111827;
  font-family: var(--font-jp);
  font-weight: 700;
  line-height: 1.4;
}
.monju-news__body h3 {
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
  font-size: 1.4rem;
}
.monju-news__body h4 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.2rem;
}
.monju-news__body strong {
  font-weight: 700;
}
.monju-news__body a {
  color: var(--link);
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.monju-news__body ul,
.monju-news__body ol {
  margin: 0.2rem 0 1.25rem;
  padding-left: 2.2rem;
}
.monju-news__body ul { list-style: disc outside; }
.monju-news__body ol { list-style: decimal outside; }
.monju-news__body li {
  padding-left: 0.3rem;
  line-height: 1.45;
}
/* 箇条書きの各項目は段落の間を空けず、旧サイトと同じ詰まった行にする */
.monju-news__body li p,
.monju-news__body li .monju-news__paragraph {
  margin: 0;
  line-height: inherit;
}
.monju-news__body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--gray-300);
  border-radius: 0 0.5rem 0.5rem 0;
  background: var(--gray-50);
  font-style: italic;
}
.monju-news__body .monju-news__image {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
}
.monju-news__body hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--gray-200);
}
.monju-news__error {
  color: #dc2626;
  text-align: center;
}

/* ---------- RECRUIT ---------- */
.recruit {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 5rem;
  background: #fff;
}
.recruit__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url('../img/recruit-bg.png') center top 120px / 1600px auto no-repeat;
  opacity: 0.14;
}
.recruit canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  pointer-events: none;
}
.recruit__body {
  position: relative;
  z-index: 10;
  padding-top: 10rem;
  padding-bottom: 7rem;
}
.recruit__body p {
  max-width: 48rem;
  margin-top: 1rem;
  color: var(--gray-600);
  font-size: 1rem;
}
@media (min-width: 768px) {
  .recruit__body p { font-size: 1.125rem; line-height: 1.75rem; }
}
.recruit__body .btn-black {
  margin-top: 1.5rem;
}

/* ---------- プライバシーポリシー ---------- */
.policy {
  padding-top: 10rem;
  padding-bottom: 5rem;
  background: #fff;
}
.policy__inner {
  max-width: 56rem;
  margin-inline: auto;
  color: var(--gray-600);
}
.policy h1 {
  margin-bottom: 3rem;
  color: var(--black);
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
  text-align: center;
}
@media (min-width: 768px) {
  .policy h1 { font-size: 3rem; line-height: 1; }
}
.policy h2 {
  margin: 0 0 1rem;
  color: var(--gray-800);
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
}
.policy h2:first-of-type {
  margin-top: 3rem;
}
.policy p,
.policy ul {
  margin-bottom: 2rem;
}
.policy p.lead-in {
  margin-bottom: 1rem;
}
.policy ul {
  padding-left: 1.5rem;
  list-style: disc outside;
}
.policy li + li {
  margin-top: 0.5rem;
}
.policy__contact {
  margin-bottom: 2rem;
  padding: 2rem;
  border-radius: 0.75rem;
  background: var(--gray-50);
  color: var(--gray-800);
}
.policy__contact h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.policy__contact dl {
  display: grid;
  gap: 1rem;
}
.policy__contact dt {
  font-weight: 500;
}
.policy__contact a {
  color: #4285f4;
}
.policy__contact a:hover {
  text-decoration: underline;
}
.policy__dates {
  margin-top: 2rem;
  text-align: right;
}

/* ---------- 404 ---------- */
.notfound {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 7rem 1rem 3rem;
  text-align: center;
}
.notfound h1 {
  margin-bottom: 1.5rem;
  color: var(--black);
  font-size: 2.25rem;
  font-weight: 700;
}
.notfound p {
  margin-bottom: 2rem;
  color: var(--gray-600);
  font-size: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in-up { animation: none; opacity: 1; }
  .hero__down svg { animation: none; }
  .js .reveal,
  .js .reveal .underline { transition: none; opacity: 1; transform: none; }
}

.news-list .monju-news__article-head .monju-news__tag {
  display: none;
}
/* 外部リンクの記事の「外部サイト」の印は、旧サイトに合わせて出さない */
.news-cards .monju-news__external,
.news-list .monju-news__external {
  display: none;
}
.monju-news__body a.news-external {
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  color: #fff;
  text-decoration: none;
}
.monju-news__body a.news-external::after {
  content: '';
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url('../img/external-link.svg') center / contain no-repeat;
  mask: url('../img/external-link.svg') center / contain no-repeat;
}

/* プライバシーポリシー：どのサービスの文面かを右上にうすく示す */
.policy p.policy__target {
  margin-bottom: 0.5rem;
  color: var(--gray-400);
  font-size: 0.8125rem;
  text-align: right;
}
