/* Singularity Leeway — 明るい企業サイト風 */
:root {
  --bg: #f5f7fb;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --text: #1a2744;
  --text-muted: #5a6d85;
  --accent: #1e5bb8;
  --accent-hover: #154a9c;
  --accent-soft: rgba(30, 91, 184, 0.08);
  --accent-border: rgba(30, 91, 184, 0.2);
  --border: #dfe6ef;
  --shadow-sm: 0 1px 3px rgba(26, 39, 68, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 39, 68, 0.08);
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-display: "DM Sans", "Noto Sans JP", sans-serif;
  --font-wordmark: "Outfit", "DM Sans", system-ui, sans-serif;
  --radius: 10px;
  --max: 1080px;
  --space: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3rem, 6vw, 3.5rem);
  --footer-bg: #1a2744;
  --footer-text: rgba(255, 255, 255, 0.9);
  --footer-muted: rgba(255, 255, 255, 0.65);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-hover);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

.nav-toggle__icon {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand:hover .brand__w-bottom {
  letter-spacing: -0.02em;
}

.brand__logo {
  display: block;
  height: clamp(38px, 6.5vw, 46px);
  width: auto;
  aspect-ratio: 1;
  max-width: 46px;
  flex-shrink: 0;
  object-fit: contain;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.brand:hover .brand__logo {
  opacity: 0.92;
  transform: scale(1.03);
}

/* Roman wordmark — logo + typographic lockup */
.brand__wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.14em;
  font-family: var(--font-wordmark);
  line-height: 1;
  min-width: 0;
}

.brand__w-top {
  font-size: clamp(0.56rem, 1.45vw, 0.66rem);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-indent: 0.08em;
  color: #6b7f99;
}

.brand__w-bottom {
  font-size: clamp(1.02rem, 2.35vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  text-transform: capitalize;
  color: #152a4a;
  background: linear-gradient(108deg, #0f2748 0%, #1a4a8c 38%, #256fd4 72%, #3d8aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  transition: letter-spacing 0.22s ease, filter 0.22s ease;
}

@supports not (background-clip: text) {
  .brand__w-bottom {
    color: #1a4a8c;
    background: none;
    -webkit-text-fill-color: unset;
  }
}

.brand:hover .brand__w-bottom {
  filter: brightness(1.06);
}

.brand:hover .brand__w-top {
  color: #5a6d85;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: var(--space);
    left: var(--space);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 110;
  }

  .site-header.is-nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 0.65rem 0.85rem;
    border-radius: calc(var(--radius) - 2px);
  }

  .nav a:hover {
    background: var(--accent-soft);
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: min(48vh, 560px);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(165deg, #ffffff 0%, #eef4fc 45%, #e8f0fa 100%);
}

.hero-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  /* Safari で背景動画が真っ白になる事例への対策（合成レイヤー化） */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }

  .hero {
    background:
      linear-gradient(165deg, rgba(255, 255, 255, 0.88) 0%, rgba(238, 244, 252, 0.88) 45%, rgba(232, 240, 250, 0.88) 100%),
      url("../images/hero-video-poster.jpg?v=4") center / cover no-repeat;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* 動画が見えにくくならないようトーンをやや弱める */
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(30, 91, 184, 0.055), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(30, 91, 184, 0.04), transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 12vw, 6.5rem) var(--space);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.8vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.hero .tagline {
  font-size: clamp(1.08rem, 2.4vw, 1.28rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 36em;
  margin: 0;
}

/* Sections */
section {
  padding: var(--section-y) var(--space);
  border-bottom: 1px solid var(--border);
}

section:nth-child(even) {
  background: var(--bg);
}

section:nth-child(odd) {
  background: var(--bg-elev);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 1.75rem);
  font-weight: 600;
  margin: 0 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  line-height: 1.3;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 1.1em;
  background: var(--accent);
  border-radius: 2px;
}

.section-lead {
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 52em;
  font-size: 1rem;
  line-height: 1.75;
}

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease;
}

.service-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--accent);
}

.service-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.service-card li {
  margin-bottom: 0.5rem;
}

.service-card li:last-child {
  margin-bottom: 0;
}

/* Lists / blocks */
.note-block {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.tools-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.tools-table th,
.tools-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.tools-table th {
  width: 11em;
  color: var(--text);
  font-weight: 600;
  background: var(--bg);
}

.tools-table tr:nth-child(even) td {
  background: var(--bg);
}

.tools-table tr:nth-child(even) th {
  background: #eef2f8;
}

.tools-table tr:last-child th,
.tools-table tr:last-child td {
  border-bottom: 0;
}

.tools-table td {
  color: var(--text-muted);
}

.ref-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.ref-list li {
  margin-bottom: 0.45rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 52rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-card__value {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(30, 91, 184, 0.25);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 91, 184, 0.3);
}

@media (max-width: 479px) {
  .btn--primary {
    width: 100%;
    word-break: break-all;
    text-align: center;
  }
}

/* Legacy contact layout (subpages) */
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-item .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.contact-item a,
.contact-item .value {
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--accent);
}

.sns-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  padding: 2rem var(--space) 2.25rem;
  text-align: center;
  color: var(--footer-muted);
  font-size: 0.85rem;
  background: var(--footer-bg);
  border-top: 0;
}

.site-footer nav {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.site-footer a {
  color: var(--footer-text);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer p {
  margin: 0;
  color: var(--footer-muted);
}

/* Subpage (privacy) */
.subpage {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem var(--space) 4rem;
  background: var(--bg-elev);
  min-height: 50vh;
}

.subpage h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.subpage p,
.subpage li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.subpage a.back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

/* Compact hero (subpages) */
.hero--compact {
  min-height: unset;
}

.hero--compact .hero-inner {
  padding: clamp(2rem, 6vw, 3.25rem) var(--space);
}

.hero--compact h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin-bottom: 0.65rem;
}

.hero--compact .tagline {
  margin-bottom: 0;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

/* Representative / profile page */
.subpage--profile {
  max-width: var(--max);
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(3rem, 8vw, 4.5rem);
}

/* HR / training sample PDFs */
.subpage--samples {
  max-width: var(--max);
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(3rem, 8vw, 4.5rem);
}

.pdf-sample-list {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3rem);
}

.pdf-sample__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.pdf-sample__desc {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.pdf-sample__embed {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8ecf3;
  box-shadow: var(--shadow-sm);
}

.pdf-sample__embed iframe {
  display: block;
  width: 100%;
  min-height: min(70vh, 720px);
  border: 0;
  background: var(--surface);
}

.pdf-sample__actions {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.samples-cta {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding: 1.5rem 1.35rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
}

.samples-cta__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  color: var(--text);
}

.samples-cta__text {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.samples-cta__mail {
  margin: 0;
  font-size: 0.95rem;
}

.profile-intro {
  display: grid;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 720px) {
  .profile-intro {
    grid-template-columns: minmax(160px, 200px) 1fr;
    gap: 2.5rem;
  }
}

.profile-intro__visual {
  text-align: center;
}

@media (min-width: 720px) {
  .profile-intro__visual {
    text-align: left;
  }
}

.profile-avatar {
  width: clamp(140px, 36vw, 180px);
  height: clamp(140px, 36vw, 180px);
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8f1fc 0%, #cde0fa 45%, #a8c8f0 100%);
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 720px) {
  .profile-avatar {
    margin-left: 0;
    margin-right: 0;
  }
}

.profile-avatar__initials {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 3.25rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

img.profile-avatar.profile-avatar--photo {
  display: block;
  padding: 0;
  width: clamp(140px, 36vw, 180px);
  height: clamp(140px, 36vw, 180px);
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-md);
  margin: 0 auto 1rem;
}

@media (min-width: 720px) {
  img.profile-avatar.profile-avatar--photo {
    margin-left: 0;
    margin-right: 0;
  }
}

.profile-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.35rem;
  letter-spacing: 0.04em;
}

.profile-name {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2rem);
  font-weight: 600;
  margin: 0 0 0.15rem;
  color: var(--text);
}

.profile-name-ruby {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.profile-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.85;
  max-width: 40em;
}

.profile-section {
  margin-bottom: 2.25rem;
}

.profile-section:last-child {
  margin-bottom: 0;
}

.profile-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--accent-soft);
}

.profile-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-timeline li {
  display: grid;
  gap: 0.25rem 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 520px) {
  .profile-timeline li {
    grid-template-columns: 7.5rem 1fr;
    align-items: baseline;
  }
}

.profile-timeline__period {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.profile-timeline__text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-tags li {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.profile-section--message .profile-quote {
  margin: 0;
  padding: 0;
  border: none;
}

.profile-quote p {
  margin: 0;
  padding: 1.25rem 1.35rem;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-muted);
  background: linear-gradient(165deg, #f8fafc 0%, #eef4fc 100%);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.profile-section--cta {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
}

.profile-section--cta .profile-section-title {
  border-bottom: 0;
  margin-bottom: 0.65rem;
  padding-bottom: 0;
}

.profile-cta-text {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.profile-cta-mail {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.profile-cta-mail a {
  text-decoration: none;
}

.profile-cta-mail a:hover {
  text-decoration: underline;
}

/* お問い合わせエリア（非表示） */
#contact,
.profile-section--cta {
  display: none !important;
}

/* ヘッダーナビの「お問い合わせ」リンクのみ非表示 */
.nav a[href="#contact"],
.nav a[href="./index.html#contact"] {
  display: none !important;
}
