:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(2,6,23,.12);
  --glass: rgba(255,255,255,.72);
  --accent: #2563eb;
  --accent2: #06b6d4;
  --ok: #16a34a;
  --warn: #b45309;
  --r: 18px;
  --shadow: 0 18px 60px rgba(2,6,23,.12);
  --max: 1180px;
  --transition: all .7s cubic-bezier(.16,1,.3,1);
  /* fixed header anchor offset */
  scroll-padding-top: 90px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.8;
  background: radial-gradient(1200px 700px at 18% -10%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(900px 600px at 92% 0%, rgba(6,182,212,.10), transparent 55%),
    var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 84px;
  display: flex;
  align-items: center;
  transition: var(--transition);
  background: rgba(0,0,0,.55);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
}

/*
 * Scrolled header state
 * - 背景を明るくしてコンテンツとのコントラストを上げる
 * - 文字色は各要素側で切り替える（logo/title/nav/button）
 */
header.scrolled {
  background: rgba(255,255,255,.86);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(2,6,23,.10);
}

header .wrap {
  max-width: none;
  width: 100%;
}

.hbar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand .logo {
  height: 45px;
  width: auto;
  display: block;
  filter: invert(1) brightness(2);
}

header.scrolled .brand .logo {
  filter: none;
}

.brand-text {
  display: flex;
  align-items: center;
}

.brand-title {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
  font-size: 1rem;
  line-height: 1.1;
  color: #fff;
}

header.scrolled .brand-title {
  color: var(--text);
}

/* Nav */
nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 10px 10px;
  border-radius: 12px;
  transition: .2s;
  white-space: nowrap;
  color: rgba(255,255,255,.92);
}

.nav-links a:hover {
  background: rgba(255,255,255,.10);
  color: #fff;
}

header.scrolled .nav-links a {
  color: rgba(15,23,42,.84);
}

header.scrolled .nav-links a:hover {
  background: rgba(2,6,23,.05);
  color: rgba(15,23,42,1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: .04em;
  transition: .2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(2,6,23,.22);
}

.btn.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg,var(--accent),var(--accent2));
}

header .btn {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

header.scrolled .btn {
  background: rgba(255,255,255,.9);
  border-color: var(--line);
  color: var(--text);
}

/* Mobile nav */
.menu-btn {
  display: none;
}

.menu-btn button {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.15);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: .2s;
}

.menu-btn button:hover {
  border-color: rgba(255,255,255,.50);
}

header.scrolled .menu-btn button {
  border-color: rgba(2,6,23,.18);
  background: rgba(255,255,255,.9);
  color: var(--text);
}

.mnav {
  display: none;
  position: absolute;
  top: 72px;
  right: 20px;
  width: min(360px, calc(100vw - 40px));
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(2,6,23,.12);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 10px;
}

.mnav.open {
  display: block;
}

.mnav a {
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(15,23,42,.92);
  font-weight: 750;
  letter-spacing: .06em;
}

.mnav a:hover {
  background: rgba(2,6,23,.05);
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f8fafc;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none !important;
  transform: none !important;
}

.hero .kicker,
.hero h1,
.hero .lead {
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}

.hero .hero-card,
.hero .hero-card h3,
.hero .hero-card li,
.hero .hero-card b {
  color: var(--text) !important;
  text-shadow: none !important;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: end;
  padding: 64px 0 34px;
}

.kicker {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: .18em;
  font-size: .82rem;
  color: rgba(29,78,216,1);
  text-transform: uppercase;
}

h1 {
  margin: .55rem 0 1rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  font-size: clamp(2.2rem, 4.2vw, 4.2rem);
  line-height: 1.08;
  color: var(--text);
  text-shadow: none;
}

.lead {
  margin: 0;
  color: #1f2937;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  letter-spacing: .06em;
  max-width: 48rem;
  opacity: .95;
}

.hero-card {
  border: 1px solid rgba(2,6,23,.10);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: var(--text);
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-card li {
  padding: 10px 12px;
  border: 1px solid rgba(2,6,23,.08);
  border-radius: 14px;
  background: rgba(2,6,23,.02);
  color: rgba(15,23,42,.92);
  font-size: .92rem;
}

.hero-card b {
  color: rgba(15,23,42,1);
}

/* Page hero */
.page-hero {
  position: relative;
  padding: 130px 0 54px;
  overflow: hidden;
}

/* Page hero media (Company / Cases etc.) */
.page-hero .page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-hero .page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-hero .bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  border-bottom: none;
}

.page-hero .inner {
  position: relative;
  z-index: 3;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.2vw, 3.1rem);
  margin: .4rem 0 .7rem;
}

.breadcrumb {
  color: rgba(71,85,105,1);
  font-size: .9rem;
}

.breadcrumb a {
  text-decoration: none;
  opacity: .95;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Sections */
.section {
  padding: 84px 0;
}

.section.alt {
  background: #f8fafc;
  border-top: 1px solid rgba(2,6,23,.06);
  border-bottom: 1px solid rgba(2,6,23,.06);
}

.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-header .eyebrow {
  display: inline-block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: .20em;
  font-size: .82rem;
  color: rgba(29,78,216,1);
  text-transform: uppercase;
}

.section-header h2 {
  margin: 12px 0 0;
  font-size: 2.05rem;
  letter-spacing: .03em;
  color: var(--text);
}

.section-header p {
  margin: 10px auto 0;
  color: var(--muted);
  max-width: 54rem;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

/* Cards */
.card {
  border: 1px solid rgba(2,6,23,.10);
  border-radius: var(--r);
  background: var(--panel);
  padding: 18px;
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(37,99,235,.22);
  box-shadow: 0 18px 60px rgba(2,6,23,.10);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--text);
}

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

a.card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Media thumbnail (shared) */
.media-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--r) - 2px);
  background: #f8fafc;
  border: 1px solid rgba(2,6,23,.10);
  box-shadow: 0 12px 26px rgba(2,6,23,.08);
  margin: 0 0 12px;
}

/* Case cards: add top spacing so it matches Services cards */
/* Case / Feature cards: add top spacing */
.card.case .media-thumb,
.card.feature .media-thumb {
  margin-top: 6px;
}


.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}

.card:hover .media-thumb img,
.card:hover .media-thumb video {
  transform: scale(1.05);
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(2,6,23,.10);
  background: rgba(255,255,255,.92);
  color: rgba(15,23,42,.85);
  font-size: .8rem;
  margin-bottom: 10px;
  letter-spacing: .06em;
  white-space: nowrap;
}

.hr {
  border: 0;
  border-top: 1px solid rgba(2,6,23,.10);
  margin: 14px 0;
}

/* Notice */
.notice {
  max-width: 52rem;
  margin: 0 auto;
  border-radius: 14px;
  padding: 14px 16px;
  border: 2px solid rgba(217, 119, 6, .75);
  background: rgba(255, 237, 213, .92);
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(2,6,23,.10);
}

.notice-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: baseline;
  margin-bottom: 8px;
}

.notice strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(180,83,9,.12);
  border: 1px solid rgba(180,83,9,.25);
  color: #9a3412;
  font-weight: 900;
  letter-spacing: .02em;
}

.notice-title {
  font-weight: 800;
  color: #7c2d12;
}

.notice-body {
  display: block;
  color: #1f2937;
  margin-top: 6px;
  white-space: pre-line;
  line-height: 1.9;
}

.notice-date {
  margin-top: 10px;
  text-align: right;
  color: rgba(15,23,42,.70);
  font-size: .92rem;
  font-weight: 700;
}

/* Layout helpers */
.frame {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid rgba(2,6,23,.10);
  background: rgba(248,250,252,1);
  box-shadow: var(--shadow);
}

.frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.feature {
  grid-column: span 4;
}

.feature--media {
  padding-top: 18px;
}

.step {
  grid-column: span 3;
}

.case {
  grid-column: span 4;
}

/* Stats */
.stats {
  grid-column: span 4;
  text-align: center;
  padding: 22px;
}

.stats .num {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 3.2rem;
  letter-spacing: .02em;
  background: linear-gradient(135deg,var(--accent),var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 6px 0 6px;
}

.stats .label {
  color: var(--text);
  font-weight: 800;
  letter-spacing: .08em;
  font-size: .88rem;
}

.stats .desc {
  color: var(--muted);
  margin-top: 8px;
  font-size: .92rem;
}

/* Meta chips */
.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: rgba(15,23,42,.82);
  font-size: .86rem;
}

.meta span {
  padding: 6px 10px;
  border: 1px solid rgba(2,6,23,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.90);
}

/* Contact */
.contact-card {
  grid-column: span 6;
}

.contact-card a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-card a:hover {
  opacity: .85;
}

.small {
  color: var(--muted);
  font-size: .92rem;
  margin-top: 10px;
}

/* Table */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(2,6,23,.10);
  border-radius: var(--r);
  background: #ffffff;
}

.table th, .table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(2,6,23,.08);
  vertical-align: top;
}

.table th {
  width: 26%;
  color: rgba(15,23,42,.92);
  text-align: left;
  background: #f8fafc;
}

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

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

/* Footer */
footer {
  border-top: 1px solid rgba(2,6,23,.10);
  background: #ffffff;
  padding: 56px 0 40px;
  color: var(--muted);
}

footer .wrap {
  max-width: none;
  width: 100%;
  padding-left: 64px;
  padding-right: 64px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}

.foot-brand {
  margin-bottom: 6px;
}

.footer-company {
  font-size: 1.02rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.25;
  margin: 0;
}

.foot-links {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.foot-links a {
  text-decoration: none;
  color: var(--muted);
  opacity: .95;
}

.foot-links a:hover {
  text-decoration: underline;
  color: var(--text);
  opacity: 1;
}

footer .footer-address {
  display: flex;
  flex-wrap: wrap;
  column-gap: .45em;
  row-gap: .15em;
  line-height: 1.45;
}

footer .footer-zip {
  flex-basis: 100%;
}

footer .footer-addr,
footer .footer-bld {
  white-space: nowrap;
}

footer .footer-tel {
  flex-basis: 100%;
  white-space: nowrap;
}

.copyright {
  margin-top: 26px;
  font-size: .82rem;
  opacity: .7;
}

.privacy-badge img {
  width: 100px;
  height: auto;
  display: block;
}

.privacy-links {
  display: grid;
  gap: 10px;
  text-align: right;
}

.privacy-links a {
  display: block;
}

/* Utilities */
.center-row {
  grid-column: 1/-1;
  text-align: center;
  margin-top: 10px;
}

.muted {
  color: var(--muted);
}

/* Utilities (avoid inline styles) */
.u-m0 {
  margin: 0 !important;
}

.u-muted {
  color: var(--muted) !important;
}

.u-mt-lg {
  margin-top: 18px !important;
}

.span-all {
  grid-column: 1 / -1;
}

.cta-row {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 18px;
}

/* Reveal */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: 1.1s all ease;
}

.js .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Pages: Cases */
.page-cases .card.case {
  grid-column: 1 / -1;
  padding: 22px;
}

/* Show more media height on Cases page only */
.page-cases .media-thumb {
  aspect-ratio: 4 / 3;
}

/* Cases card layout: keep the media on the left and content on the right (PC) */
.page-cases .card.case.case--media {
  display: block;
}

@media (min-width: 980px) {
  .page-cases .card.case.case--media .media-thumb {
    grid-area: media;
  }

  .page-cases .card.case.case--media .tag {
    grid-area: tag;
    align-self: start;
    justify-self: start;
  }

  .page-cases .card.case.case--media h3 {
    grid-area: title;
  }

  .page-cases .card.case.case--media p {
    grid-area: body;
  }

  .page-cases .card.case.case--media .hr {
    grid-area: hr;
  }

  .page-cases .card.case.case--media .small {
    grid-area: meta;
  }
}

@media (min-width: 980px) {
  .page-cases .card.case.case--media {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 18px;
    align-items: start;
    grid-template-areas: "media tag"
      "media title"
      "media body"
      "media hr"
      "media meta";
  }

  .page-cases .card.case.case--media .media-thumb {
    margin: 0;
    align-self: start;
    grid-area: media;
  }

  .page-cases .card.case.case--media .tag {
    grid-area: tag;
    align-self: start;
    justify-self: start;
  }

  .page-cases .card.case.case--media h3 {
    grid-area: title;
  }

  .page-cases .card.case.case--media p {
    grid-area: body;
  }

  .page-cases .card.case.case--media .hr {
    grid-area: hr;
  }

  .page-cases .card.case.case--media .small {
    grid-area: meta;
  }
}

/* Cases page uses .media-thumb (shared) */
.page-cases .media-thumb {
  margin-top: 6px;
}

/* Slightly reduce the large empty space on desktop when the page-hero is tall */
@media (min-width: 980px) {
  .page-cases .section {
    padding-top: 64px;
  }
}

/* Pages: Company */
.officer-table {
  width: 100%;
  border-collapse: collapse;
}

.officer-table td {
  padding: 2px 0;
  border: 0;
  vertical-align: top;
}

.officer-table .role {
  width: 12em;
  white-space: nowrap;
  padding-right: 1em;
}

.officer-table .name {
  width: auto;
}

.history-table .year {
  width: 9em;
  white-space: nowrap;
  vertical-align: top;
}

.history-table th.year {
  font-weight: 700;
}

.history-table td {
  line-height: 1.7;
}

.history-subtable {
  width: 100%;
  border-collapse: collapse;
}

.history-subtable td {
  padding: 0;
  border: 0;
  vertical-align: top;
}

.history-subtable .who {
  width: 10em;
  white-space: nowrap;
  padding-right: 1em;
}

.history-subtable .what {
  width: auto;
}

.map iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  border: 0;
  display: block;
}

.message-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.message-media {
  border: 1px solid rgba(2,6,23,.10);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.message-media video {
  width: 100%;
  height: auto;
  display: block;
}

.message-media picture {
  width: 100%;
  height: 100%;
  display: block;
}

.message-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.message-body {
  border: 1px solid rgba(2,6,23,.10);
  border-radius: var(--r);
  background: #fff;
  padding: 18px;
  height: 100%;
}

.message-body p {
  margin: 0 0 12px;
  color: var(--muted);
}

.message-sign {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(2,6,23,.10);
  color: rgba(15,23,42,.92);
  font-weight: 500;
}

.message-sign .org {
  font-weight: 700;
}

.message-sign .name {
  margin-top: 4px;
}

.message-rule {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.rule-block {
  border: 1px solid rgba(2,6,23,.10);
  border-radius: var(--r);
  background: #fff;
  padding: 14px 14px;
  margin: 6px 0;
  line-height: 1.8;
}

.rule-block h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: rgba(15,23,42,.92);
}

.rule-block ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.rule-block li {
  margin: 6px 0;
  line-height: 1.8;
  color: var(--muted);
}

.rule-lead {
  margin: 0;
  color: rgba(15,23,42,.90);
  font-weight: 700;
  line-height: 1.7;
}

/* Nav active */
.nav-links a.active,
.mnav a.active {
  background: rgba(2,6,23,.06);
  border: 1px solid rgba(2,6,23,.12);
}


header:not(.scrolled) .nav-links a.active {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 48px 0 28px;
  }

  .frame img {
    height: 320px;
  }

  .feature {
    grid-column: span 6;
  }

  .step {
    grid-column: span 6;
  }

  .case {
    grid-column: span 6;
  }

  .stats {
    grid-column: span 6;
  }

  .contact-card {
    grid-column: span 12;
  }
}

@media (max-width: 1050px) {
  .brand-text {
    display: none;
  }
}

@media (max-width: 768px) {
  header {
    height: 72px;
  }

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .hero {
    min-height: 680px;
  }

  .section {
    padding: 64px 0;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .feature, .step, .case, .stats {
    grid-column: span 12;
  }

  .brand-text {
    display: none;
  }

  .map iframe {
    min-height: 260px;
  }

  .officer-table,
  .officer-table tbody,
  .officer-table tr {
    display: block;
    width: 100%;
  }

  .officer-table tr {
    padding: 10px 0;
    border-bottom: 1px solid rgba(2,6,23,.08);
  }

  .officer-table tr:last-child {
    border-bottom: 0;
  }

  .officer-table td {
    display: block;
    padding: 0;
  }

  .officer-table .role {
    width: auto;
    white-space: normal;
    margin-bottom: 4px;
    font-weight: 500;
    color: rgba(15,23,42,.92);
  }

  .officer-table .name {
    width: auto;
    white-space: nowrap;
    font-weight: 500;
    color: rgba(15,23,42,.92);
  }

  .history-subtable,
  .history-subtable tbody,
  .history-subtable tr {
    display: block;
    width: 100%;
  }

  .history-subtable tr {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(2,6,23,.10);
  }

  .history-subtable tr:last-child {
    border-bottom: 0;
  }

  .history-subtable td {
    display: block;
    padding: 0;
  }

  .history-subtable .who {
    width: auto;
    white-space: nowrap;
    margin-bottom: 2px;
    font-weight: 500;
  }

  .history-subtable .what {
    width: auto;
    color: var(--muted);
  }

  .message-grid {
    grid-template-columns: 1fr;
  }

  .message-body {
    padding: 16px;
  }

  .foot-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .foot-links {
    text-align: left;
  }

  footer .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  footer .muted {
    line-height: 1.45;
  }

  .copyright {
    order: 999;
    margin-top: 18px;
  }
}

@media (min-width: 980px) {
  .message-rule {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  footer .footer-addr,
  footer .footer-bld,
  footer .footer-tel {
    flex-basis: 100%;
    white-space: normal;
  }

  .foot-links {
    margin-top: 20px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    transition: none;
    transform: none;
    opacity: 1;
  }

  .hero-media video {
    display: none;
  }
}

.page-hero .wrap {
  position: relative;
  z-index: 3;
  color: #fff;
}

.page-hero .breadcrumb,
.page-hero .breadcrumb a,
.page-hero h1 {
  color: #fff;
}

.page-hero .breadcrumb a {
  text-decoration: underline;
}

.page-cases   .page-hero .bg,
.page-company .page-hero .bg,
.page-contact .page-hero .bg,
.page-disclosure .page-hero .bg,
.page-privacy .page-hero .bg,
.page-recruit .page-hero .bg,
.page-welfare .page-hero .bg,
.page-safety .page-hero .bg,
.page-services .page-hero .bg {
  background: rgba(0,0,0,.35);
}

/* About (index)
   PC: text spans full width, photos are 2-up under it
   SP: stacked
*/
.about-block {
  display: grid;
  gap: 18px;
}

.about-card {
  width: 100%;
}

/* Photos row */
.about-photos--row {
  display: grid;
  gap: 14px;
}

.about-photos--row .frame {
  height: 260px;
}

.about-photos--row .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 981px) {
  .about-photos--row {
    grid-template-columns: 1fr 1fr;
  }

  /* Give a bit more presence on PC */
  .about-photos--row .frame {
    height: 340px;
  }
}

/* index hero: mobile only shade overlay for readability */
@media (max-width: 768px) {
  .hero {
    position: relative;
    overflow: hidden;
  }

  /* 画像の上にシェードを置く */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    /* 画像 < シェード < テキスト */
    background: linear-gradient(
      180deg,
      rgba(0,0,0,.55) 0%,
      rgba(0,0,0,.35) 45%,
      rgba(0,0,0,.15) 100%
    );
    pointer-events: none;
  }

  /* テキストがシェードより前に来るように */
  .hero .hero-inner {
    position: relative;
    z-index: 3;
  }
  /* 会社概要・沿革のテーブルを“縦積み（カード風）”にする（PCは変更なし） */
  .page-company .table {
    border: 0;
    background: transparent;
  }

  .page-company .table,
  .page-company .table tbody,
  .page-company .table tr {
    display: block;
    width: 100%;
  }

  .page-company .table tr {
    border: 1px solid rgba(2,6,23,.10);
    border-radius: var(--r);
    background: #fff;
    padding: 14px 14px;
    margin: 0 0 12px;
  }

  .page-company .table th,
  .page-company .table td {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
  }

  .page-company .table th {
    margin: 0 0 6px;
    font-weight: 800;
    color: rgba(15,23,42,.92);
    background: transparent;
  }

  .page-company .table td {
    color: var(--muted);
    line-height: 1.7;
  }

  /* 沿革：年（th.year）を少し強調（任意：好みで） */
  .page-company .history-table th.year {
    white-space: normal;
  }

/* 採用ページ：募集要項テーブルを“縦積み（カード風）”にする（PCは変更なし） */
.page-recruit .table {
  border: 0;
  background: transparent;
}

.page-recruit .table,
.page-recruit .table tbody,
.page-recruit .table tr {
  display: block;
  width: 100%;
}

.page-recruit .table tr {
  border: 1px solid rgba(2,6,23,.10);
  border-radius: var(--r);
  background: #fff;
  padding: 14px 14px;
  margin: 0 0 12px;
}

.page-recruit .table th,
.page-recruit .table td {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
}

.page-recruit .table th {
  margin: 0 0 6px;
  font-weight: 800;
  color: rgba(15,23,42,.92);
  background: transparent;
}

.page-recruit .table td {
  color: var(--muted);
  line-height: 1.7;
}
}

/* 選考プロセス：5枚横並び */
#flow .grid {
  grid-template-columns: repeat(5, 1fr);
}

#flow .step {
  grid-column: auto; /* span 3 を無効化 */
}

/* 画面が狭い時は崩す（任意） */
@media (max-width: 1024px) {
  #flow .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  #flow .grid { grid-template-columns: 1fr; }
}

/* 番号付きリストの自動番号（1.）を消す */
ol.jpnum {
  list-style: none;
  padding-left: 0;
}
