/* Quiet motion and consistent typography, shared by all six pages. */
:root {
  --ease-refined: cubic-bezier(.22, 1, .36, 1);
  --ease-interface: cubic-bezier(.2, .65, .3, 1);
  --fine-line: #dce4e9;
}
body { line-break: strict; }
h1, h2, h3 { text-wrap: balance; }
p, dd { overflow-wrap: anywhere; }
a, button, summary { touch-action: manipulation; }
.container > *, .directory-grid > *, .work-grid > * { min-width: 0; }
.site-header {
  background: rgba(255,255,255,.96);
  box-shadow: 0 3px 18px rgba(24,47,67,0);
  transition: box-shadow 500ms var(--ease-interface), background-color 500ms;
}
.site-header.has-scrolled {
  background: rgba(255,255,255,.985);
  box-shadow: 0 3px 18px rgba(24,47,67,.045);
}
.brand-name { font-weight: 600; letter-spacing: .16em; }
.brand-name small { font-size: .75rem; letter-spacing: .2em; }
.brand-mark { transition: background-color 450ms, color 450ms; }
.brand:focus-visible { outline-offset: 7px; }
.header-inner nav { font-size: .875rem; }
.header-inner nav a { transition: color 350ms var(--ease-interface); }
.header-inner nav a::after {
  content: ''; position: absolute; height: 1px;
  left: 0; right: 0; bottom: 22px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 500ms var(--ease-refined);
}
.header-inner nav a:last-child::after { left: 27px; }
.header-inner nav a[aria-current='page']::after {
  height: 1px; bottom: 22px; transform: scaleX(1); background: var(--accent);
}
.header-inner nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* Underlines grow inside their existing bounds without moving the text. */
.text-link, .related-links a, .quiet-links a, .directory-link {
  border-bottom: 0;
  background-image: linear-gradient(var(--accent),var(--accent)), linear-gradient(#a5b4bf,#a5b4bf);
  background-size: 0 1px, 100% 1px;
  background-repeat: no-repeat; background-position: left bottom;
  transition: background-size 550ms var(--ease-refined), color 350ms;
  padding-bottom: 4px;
}
.text-link:focus-visible, .related-links a:focus-visible,
.quiet-links a:focus-visible, .directory-grid a:focus-visible .directory-link {
  background-size: 100% 1px, 100% 1px;
}
.footer-main nav a {
  background: linear-gradient(#c4d0d9,#c4d0d9) left bottom / 0 1px no-repeat;
  transition: background-size 500ms var(--ease-refined), color 350ms; padding-bottom: 3px;
}
.footer-main nav a:focus-visible { background-size: 100% 1px; }
.directory-grid > a { position: relative; isolation: isolate; transition: color 400ms; }
.directory-grid > a::before {
  content: ''; position: absolute; inset: 0;
  background: #e9eff3; opacity: 0; z-index: -1;
  transition: opacity 650ms var(--ease-refined);
}
.directory-grid a:focus-visible::before { opacity: .8; }
.directory-grid h3 { letter-spacing: .025em; transition: color 400ms; }
.directory-link { font-size: .875rem; }
.directory-en, .corporate-heading > span, .eyebrow,
.page-heading .eyebrow, .footer-bottom small, .breadcrumb { font-size: .75rem; }
.corporate-hero { height: auto; min-height: 350px; background: #edf3f7; }
.corporate-hero-content { min-height: 350px; padding-block: 54px; }
.corporate-hero-content h1 { font-weight: 500; letter-spacing: .055em; line-height: 1.8; }
.corporate-hero-content > p:last-child { font-size: 1rem; margin-top: 22px; }
.corporate-message { padding-block: 62px; }
.corporate-message > div > p { font-size: 1rem; line-height: 2.1; }
.corporate-message .message-signature { font-size: .875rem; letter-spacing: .06em; }
.corporate-heading h2 { letter-spacing: .055em; font-weight: 550; }
.corporate-heading > span { letter-spacing: .17em; }
.corporate-directory { padding-block: 43px 55px; }
.directory-grid p { font-size: 1rem; line-height: 1.95; }
.directory-grid p br { display: none; }
.directory-title { letter-spacing: .04em; }
.page-heading h1 { font-weight: 550; letter-spacing: .065em; }
.page-lead, .work-summary, .work-card dd, .career-list p,
.info-table dd, .plain-list, .faq-list details p, .process-grid p { font-size: 1rem; line-height: 2; }
.status, .work-card dt, .footer-main nav { font-size: .875rem; }
.work-card { border-color: var(--fine-line); }
.info-table > div, .career-list article { border-bottom-color: var(--fine-line); }
.faq-list summary { transition: color 350ms, background-color 350ms; }
.faq-list summary::after { transition: color 350ms; }
.faq-list details[open] summary { color: var(--accent); }
.menu-toggle { min-height: 44px; transition: border-color 300ms, background-color 300ms; }
.menu-toggle[aria-expanded='true'] { background: var(--wash); border-color: #a4b7c5; }

/* Added only after IntersectionObserver is ready; no hidden static markup. */
.reveal-item {
  transition: opacity 800ms var(--ease-refined) var(--reveal-delay,0ms),
    transform 800ms var(--ease-refined) var(--reveal-delay,0ms);
}
.reveal-item.reveal-pending { opacity: 0; transform: translate3d(0,12px,0); }
.reveal-item:focus-within { opacity: 1; transform: none; transition-delay: 0ms; }

@media (hover: hover) and (pointer: fine) {
  .header-inner nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .directory-grid a:hover::before { opacity: .8; }
  .directory-grid a:hover .directory-link, .text-link:hover,
  .related-links a:hover, .quiet-links a:hover { background-size: 100% 1px,100% 1px; }
  .footer-main nav a:hover { background-size: 100% 1px; }
  .brand:hover .brand-mark { background: #36536a; }
  .site-footer .brand:hover .brand-mark { background: #dfeaf1; }
  .faq-list summary:hover { color: var(--accent); background: #fafbfc; }
}
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .corporate-hero-image { animation: hero-settle 1800ms var(--ease-refined) both; }
  .motion-ready .corporate-hero-content .eyebrow { animation: title-appear 900ms var(--ease-refined) 120ms both; }
  .motion-ready .corporate-hero-content h1 { animation: title-appear 1000ms var(--ease-refined) 220ms both; }
  .motion-ready .corporate-hero-content > p:last-child { animation: title-appear 1000ms var(--ease-refined) 360ms both; }
  .motion-ready .page-heading h1 { animation: title-appear 750ms var(--ease-refined) 80ms both; }
  .motion-ready .page-lead { animation: title-appear 750ms var(--ease-refined) 160ms both; }
  .faq-list details[open] > p { animation: answer-appear 350ms var(--ease-interface) both; }
}
@keyframes hero-settle {
  from { opacity: 0; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes title-appear {
  from { opacity: 0; transform: translate3d(0,7px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}
@keyframes answer-appear { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 1050px) { .header-inner nav a:last-child::after { left: 18px; } }
@media (max-width: 800px) {
  .header-inner nav a::after { display: none; }
  .header-inner { min-height: 78px; }
  .header-inner nav.open { max-height: calc(100svh - 90px); overflow-y: auto; }
  .corporate-hero, .corporate-hero-content { min-height: 300px; }
  .corporate-hero-content { padding-block: 42px; }
  .corporate-hero-content h1 { font-size: clamp(1.65rem,6vw,1.9rem); letter-spacing: .025em; }
  .corporate-hero-content > p:last-child { font-size: .9375rem; }
  .corporate-message { padding-block: 42px; gap: 26px; }
  .corporate-message > div > p { font-size: 1rem; line-height: 2; }
  .corporate-directory { padding-block: 34px 42px; }
  .directory-grid p { font-size: 1rem; }
  .directory-grid h3 { line-height: 1.8; }
  .directory-link { font-size: .875rem; }
  .directory-grid > a::before { inset: 0 -3px; }
  .footer-main nav a { padding-block: 5px; }
  .reveal-item { transition-duration: 1000ms; }
  .reveal-item.reveal-pending { transform: translate3d(0,18px,0); }
}
@media (max-width: 800px) and (prefers-reduced-motion: no-preference) {
  .motion-ready .corporate-hero-image { animation-name: mobile-hero-settle; animation-duration: 2200ms; }
  .motion-ready .corporate-hero-content .eyebrow { animation-delay: 180ms; }
  .motion-ready .corporate-hero-content h1 { animation-name: mobile-title-appear; animation-duration: 1200ms; animation-delay: 380ms; }
  .motion-ready .corporate-hero-content > p:last-child { animation-name: mobile-title-appear; animation-duration: 1000ms; animation-delay: 650ms; }
  .header-inner nav.open { animation: mobile-menu-appear 300ms var(--ease-refined); }
}
@keyframes mobile-hero-settle {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: .9; transform: scale(1); }
}
@keyframes mobile-title-appear {
  from { opacity: 0; transform: translate3d(0,14px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}
@keyframes mobile-menu-appear {
  from { opacity: 0; transform: translate3d(0,-4px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}
@media (hover: none) and (pointer: coarse) {
  .directory-grid > a:active::before { opacity: .9; transition-duration: 80ms; }
  .directory-grid > a:active .directory-link { background-size: 100% 1px,100% 1px; transition-duration: 80ms; }
  .header-inner nav a:active, .related-links a:active, .text-link:active { background-color: #e9eff3; }
}
@media (max-width: 480px) {
  .directory-grid { grid-template-columns: 1fr; gap: 0; }
  .directory-grid > a, .directory-grid > a + a,
  .directory-grid > a:nth-child(3), .directory-grid > a:nth-child(n+3) {
    padding: 24px 0; border-left: 0; border-top: 0; border-bottom: 1px solid var(--fine-line);
  }
  .directory-en { margin-bottom: 7px; }
  .directory-grid h3 { font-size: 1.125rem; margin-bottom: 10px; }
  .directory-grid p { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-item.reveal-pending { opacity: 1; transform: none; }
}
@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-item.reveal-pending { opacity: 1; transform: none; }
  .site-header { position: static; box-shadow: none; }
}

/* RAIJIN wordmark */
.brand-name{font-family:Arial,"Noto Sans JP",sans-serif;letter-spacing:.14em;white-space:nowrap}.brand-name small{font-family:"Noto Sans JP","Yu Gothic",Meiryo,sans-serif;font-size:.75rem;letter-spacing:.25em}

/* 2026-10-03: 本文をひと回り大きく（ルート 16px → 17px。サイズは全て rem 指定なので比例して拡大） */
html { font-size: 106.25%; }

/* 2026-10-03: 文字を太く（ゆうさん指示）。本文 600、見出し・ナビ・ラベル系 700（speelead.com の見出し/ナビ 700 に合わせた階層） */
body { font-weight: 600; }
h1, h2, h3,
.corporate-hero-content h1, .corporate-heading h2, .page-heading h1,
.directory-grid h3, .directory-title, .brand-name,
.about-grid .about-copy, .work-card dt, .eyebrow,
.header-inner nav, .faq-list summary, .info-table dt, .brand-name small { font-weight: 700; }

/* 2026-10-03: Web フォント化（Google Fonts）。英数字は Jost、日本語は Noto Sans JP。Arial 指定だったラベル類も Jost に */
body { font-family: "Jost", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
.eyebrow, .hero-index, .item-number, .directory-en, .corporate-heading > span, .roman-name, .work-id, .process-grid span, .brand-name { font-family: "Jost", "Noto Sans JP", sans-serif; }
